uncomment dh_makeshlibs in debian/rules
[framework/uifw/libhangul.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libhangul 0.0.7.
4 #
5 # Report bugs to <http://kldp.net/projects/hangul/>.
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='libhangul'
730 PACKAGE_TARNAME='libhangul'
731 PACKAGE_VERSION='0.0.7'
732 PACKAGE_STRING='libhangul 0.0.7'
733 PACKAGE_BUGREPORT='http://kldp.net/projects/hangul/'
734
735 ac_unique_file="hangul/hangul.h"
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 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 LIBHANGUL_CURRENT
832 LIBHANGUL_REVISION
833 LIBHANGUL_AGE
834 CC
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
850 build
851 build_cpu
852 build_vendor
853 build_os
854 host
855 host_cpu
856 host_vendor
857 host_os
858 SED
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP
893 F77
894 FFLAGS'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures libhangul 0.0.7 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/libhangul]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 Program names:
1455   --program-prefix=PREFIX            prepend PREFIX to installed program names
1456   --program-suffix=SUFFIX            append SUFFIX to installed program names
1457   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459 System types:
1460   --build=BUILD     configure for building on BUILD [guessed]
1461   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466   case $ac_init_help in
1467      short | recursive ) echo "Configuration of libhangul 0.0.7:";;
1468    esac
1469   cat <<\_ACEOF
1470
1471 Optional Features:
1472   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474   --disable-dependency-tracking  speeds up one-time build
1475   --enable-dependency-tracking   do not reject slow dependency extractors
1476   --enable-shared[=PKGS]  build shared libraries [default=yes]
1477   --enable-static[=PKGS]  build static libraries [default=yes]
1478   --enable-fast-install[=PKGS]
1479                           optimize for fast installation [default=yes]
1480   --disable-libtool-lock  avoid locking (might break parallel builds)
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486   --with-pic              try to use only PIC/non-PIC objects [default=use
1487                           both]
1488   --with-tags[=TAGS]      include additional configurations [automatic]
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   LIBS        libraries to pass to the linker, e.g. -l<library>
1496   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CXXCPP      C++ preprocessor
1502   F77         Fortran 77 compiler command
1503   FFLAGS      Fortran 77 compiler flags
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <http://kldp.net/projects/hangul/>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514   # If there are subdirs, report their specific --help.
1515   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516     test -d "$ac_dir" || continue
1517     ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523   # A ".." for each directory in $ac_dir_suffix.
1524   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525   case $ac_top_builddir_sub in
1526   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528   esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536   .)  # We are building in place.
1537     ac_srcdir=.
1538     ac_top_srcdir=$ac_top_builddir_sub
1539     ac_abs_top_srcdir=$ac_pwd ;;
1540   [\\/]* | ?:[\\/]* )  # Absolute name.
1541     ac_srcdir=$srcdir$ac_dir_suffix;
1542     ac_top_srcdir=$srcdir
1543     ac_abs_top_srcdir=$srcdir ;;
1544   *) # Relative name.
1545     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546     ac_top_srcdir=$ac_top_build_prefix$srcdir
1547     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551     cd "$ac_dir" || { ac_status=$?; continue; }
1552     # Check for guested configure.
1553     if test -f "$ac_srcdir/configure.gnu"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556     elif test -f "$ac_srcdir/configure"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure" --help=recursive
1559     else
1560       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561     fi || ac_status=$?
1562     cd "$ac_pwd" || { ac_status=$?; break; }
1563   done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568   cat <<\_ACEOF
1569 libhangul configure 0.0.7
1570 generated by GNU Autoconf 2.61
1571
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577   exit
1578 fi
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1582
1583 It was created by libhangul $as_me 0.0.7, which was
1584 generated by GNU Autoconf 2.61.  Invocation command line was
1585
1586   $ $0 $@
1587
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1595
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1604
1605 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1606 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1609 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1610 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1611 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1612
1613 _ASUNAME
1614
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1623
1624 } >&5
1625
1626 cat >&5 <<_ACEOF
1627
1628
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1632
1633 _ACEOF
1634
1635
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647   for ac_arg
1648   do
1649     case $ac_arg in
1650     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652     | -silent | --silent | --silen | --sile | --sil)
1653       continue ;;
1654     *\'*)
1655       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656     esac
1657     case $ac_pass in
1658     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659     2)
1660       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661       if test $ac_must_keep_next = true; then
1662         ac_must_keep_next=false # Got value, back to normal.
1663       else
1664         case $ac_arg in
1665           *=* | --config-cache | -C | -disable-* | --disable-* \
1666           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668           | -with-* | --with-* | -without-* | --without-* | --x)
1669             case "$ac_configure_args0 " in
1670               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671             esac
1672             ;;
1673           -* ) ac_must_keep_next=true ;;
1674         esac
1675       fi
1676       ac_configure_args="$ac_configure_args '$ac_arg'"
1677       ;;
1678     esac
1679   done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log.  We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690   # Save into config.log some information that might help in debugging.
1691   {
1692     echo
1693
1694     cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699     echo
1700     # The following way of writing the cache mishandles newlines in values,
1701 (
1702   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703     eval ac_val=\$$ac_var
1704     case $ac_val in #(
1705     *${as_nl}*)
1706       case $ac_var in #(
1707       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709       esac
1710       case $ac_var in #(
1711       _ | IFS | as_nl) ;; #(
1712       *) $as_unset $ac_var ;;
1713       esac ;;
1714     esac
1715   done
1716   (set) 2>&1 |
1717     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718     *${as_nl}ac_space=\ *)
1719       sed -n \
1720         "s/'\''/'\''\\\\'\'''\''/g;
1721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722       ;; #(
1723     *)
1724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725       ;;
1726     esac |
1727     sort
1728 )
1729     echo
1730
1731     cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736     echo
1737     for ac_var in $ac_subst_vars
1738     do
1739       eval ac_val=\$$ac_var
1740       case $ac_val in
1741       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742       esac
1743       echo "$ac_var='\''$ac_val'\''"
1744     done | sort
1745     echo
1746
1747     if test -n "$ac_subst_files"; then
1748       cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753       echo
1754       for ac_var in $ac_subst_files
1755       do
1756         eval ac_val=\$$ac_var
1757         case $ac_val in
1758         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759         esac
1760         echo "$ac_var='\''$ac_val'\''"
1761       done | sort
1762       echo
1763     fi
1764
1765     if test -s confdefs.h; then
1766       cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771       echo
1772       cat confdefs.h
1773       echo
1774     fi
1775     test "$ac_signal" != 0 &&
1776       echo "$as_me: caught signal $ac_signal"
1777     echo "$as_me: exit $exit_status"
1778   } >&5
1779   rm -f core *.core core.conftest.* &&
1780     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781     exit $exit_status
1782 ' 0
1783 for ac_signal in 1 2 13 15; do
1784   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1787
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1790
1791 # Predefined preprocessor variables.
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1816
1817
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821   set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825   set x "$ac_default_prefix/share/config.site" \
1826         "$ac_default_prefix/etc/config.site"
1827 fi
1828 shift
1829 for ac_site_file
1830 do
1831   if test -r "$ac_site_file"; then
1832     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834     sed 's/^/| /' "$ac_site_file" >&5
1835     . "$ac_site_file"
1836   fi
1837 done
1838
1839 if test -r "$cache_file"; then
1840   # Some versions of bash will fail to source /dev/null (special
1841   # files actually), so we avoid doing that.
1842   if test -f "$cache_file"; then
1843     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845     case $cache_file in
1846       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847       *)                      . "./$cache_file";;
1848     esac
1849   fi
1850 else
1851   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853   >$cache_file
1854 fi
1855
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861   eval ac_new_set=\$ac_env_${ac_var}_set
1862   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863   eval ac_new_val=\$ac_env_${ac_var}_value
1864   case $ac_old_set,$ac_new_set in
1865     set,)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,set)
1870       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872       ac_cache_corrupted=: ;;
1873     ,);;
1874     *)
1875       if test "x$ac_old_val" != "x$ac_new_val"; then
1876         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1879 echo "$as_me:   former value:  $ac_old_val" >&2;}
1880         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1881 echo "$as_me:   current value: $ac_new_val" >&2;}
1882         ac_cache_corrupted=:
1883       fi;;
1884   esac
1885   # Pass precious variables to config.status.
1886   if test "$ac_new_set" = set; then
1887     case $ac_new_val in
1888     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889     *) ac_arg=$ac_var=$ac_new_val ;;
1890     esac
1891     case " $ac_configure_args " in
1892       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1893       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894     esac
1895   fi
1896 done
1897 if $ac_cache_corrupted; then
1898   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936 am__api_version='1.10'
1937
1938 ac_aux_dir=
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940   if test -f "$ac_dir/install-sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install-sh -c"
1943     break
1944   elif test -f "$ac_dir/install.sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install.sh -c"
1947     break
1948   elif test -f "$ac_dir/shtool"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/shtool install -c"
1951     break
1952   fi
1953 done
1954 if test -z "$ac_aux_dir"; then
1955   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1967
1968
1969 # Find a good install program.  We prefer a C program (faster),
1970 # so one script is as good as another.  But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1975 # AIX /bin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   # Account for people who put trailing slashes in PATH elements.
1994 case $as_dir/ in
1995   ./ | .// | /cC/* | \
1996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998   /usr/ucb/* ) ;;
1999   *)
2000     # OSF1 and SCO ODT 3.0 have their own names for install.
2001     # Don't use installbsd from OSF since it installs stuff as root
2002     # by default.
2003     for ac_prog in ginstall scoinst install; do
2004       for ac_exec_ext in '' $ac_executable_extensions; do
2005         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006           if test $ac_prog = install &&
2007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008             # AIX install.  It has an incompatible calling convention.
2009             :
2010           elif test $ac_prog = install &&
2011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012             # program-specific install script used by HP pwplus--don't use.
2013             :
2014           else
2015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016             break 3
2017           fi
2018         fi
2019       done
2020     done
2021     ;;
2022 esac
2023 done
2024 IFS=$as_save_IFS
2025
2026
2027 fi
2028   if test "${ac_cv_path_install+set}" = set; then
2029     INSTALL=$ac_cv_path_install
2030   else
2031     # As a last resort, use the slow shell script.  Don't cache a
2032     # value for INSTALL within a source directory, because that will
2033     # break other packages using the cache if that directory is
2034     # removed, or if the value is a relative name.
2035     INSTALL=$ac_install_sh
2036   fi
2037 fi
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2040
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 # Just in case
2052 sleep 1
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments.  Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2058 # directory).
2059 if (
2060    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061    if test "$*" = "X"; then
2062       # -L didn't work.
2063       set X `ls -t $srcdir/configure conftest.file`
2064    fi
2065    rm -f conftest.file
2066    if test "$*" != "X $srcdir/configure conftest.file" \
2067       && test "$*" != "X conftest.file $srcdir/configure"; then
2068
2069       # If neither matched, then we have a broken ls.  This can happen
2070       # if, for instance, CONFIG_SHELL is bash and it inherits a
2071       # broken ls alias from the environment.  This has actually
2072       # happened.  Such a system could not be considered "sane".
2073       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2076 alias in your environment" >&2;}
2077    { (exit 1); exit 1; }; }
2078    fi
2079
2080    test "$2" = conftest.file
2081    )
2082 then
2083    # Ok.
2084    :
2085 else
2086    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090    { (exit 1); exit 1; }; }
2091 fi
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $.  echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2103 _ACEOF
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 rm -f conftest.sed
2106
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2109
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113   am_missing_run="$MISSING --run "
2114 else
2115   am_missing_run=
2116   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118 fi
2119
2120 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2121 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2122 if test -z "$MKDIR_P"; then
2123   if test "${ac_cv_path_mkdir+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 do
2129   IFS=$as_save_IFS
2130   test -z "$as_dir" && as_dir=.
2131   for ac_prog in mkdir gmkdir; do
2132          for ac_exec_ext in '' $ac_executable_extensions; do
2133            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2134            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2135              'mkdir (GNU coreutils) '* | \
2136              'mkdir (coreutils) '* | \
2137              'mkdir (fileutils) '4.1*)
2138                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2139                break 3;;
2140            esac
2141          done
2142        done
2143 done
2144 IFS=$as_save_IFS
2145
2146 fi
2147
2148   if test "${ac_cv_path_mkdir+set}" = set; then
2149     MKDIR_P="$ac_cv_path_mkdir -p"
2150   else
2151     # As a last resort, use the slow shell script.  Don't cache a
2152     # value for MKDIR_P within a source directory, because that will
2153     # break other packages using the cache if that directory is
2154     # removed, or if the value is a relative name.
2155     test -d ./--version && rmdir ./--version
2156     MKDIR_P="$ac_install_sh -d"
2157   fi
2158 fi
2159 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2160 echo "${ECHO_T}$MKDIR_P" >&6; }
2161
2162 mkdir_p="$MKDIR_P"
2163 case $mkdir_p in
2164   [\\/$]* | ?:[\\/]*) ;;
2165   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2166 esac
2167
2168 for ac_prog in gawk mawk nawk awk
2169 do
2170   # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_AWK+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$AWK"; then
2178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187     ac_cv_prog_AWK="$ac_prog"
2188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189     break 2
2190   fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 fi
2196 fi
2197 AWK=$ac_cv_prog_AWK
2198 if test -n "$AWK"; then
2199   { echo "$as_me:$LINENO: result: $AWK" >&5
2200 echo "${ECHO_T}$AWK" >&6; }
2201 else
2202   { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2204 fi
2205
2206
2207   test -n "$AWK" && break
2208 done
2209
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   cat >conftest.make <<\_ACEOF
2217 SHELL = /bin/sh
2218 all:
2219         @echo '@@@%%%=$(MAKE)=@@@%%%'
2220 _ACEOF
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223   *@@@%%%=?*=@@@%%%*)
2224     eval ac_cv_prog_make_${ac_make}_set=yes;;
2225   *)
2226     eval ac_cv_prog_make_${ac_make}_set=no;;
2227 esac
2228 rm -f conftest.make
2229 fi
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231   { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2233   SET_MAKE=
2234 else
2235   { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237   SET_MAKE="MAKE=${MAKE-make}"
2238 fi
2239
2240 rm -rf .tst 2>/dev/null
2241 mkdir .tst 2>/dev/null
2242 if test -d .tst; then
2243   am__leading_dot=.
2244 else
2245   am__leading_dot=_
2246 fi
2247 rmdir .tst 2>/dev/null
2248
2249 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2250   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2251   # is not polluted with repeated "-I."
2252   am__isrc=' -I$(srcdir)'
2253   # test to see if srcdir already configured
2254   if test -f $srcdir/config.status; then
2255     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2256 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2257    { (exit 1); exit 1; }; }
2258   fi
2259 fi
2260
2261 # test whether we have cygpath
2262 if test -z "$CYGPATH_W"; then
2263   if (cygpath --version) >/dev/null 2>/dev/null; then
2264     CYGPATH_W='cygpath -w'
2265   else
2266     CYGPATH_W=echo
2267   fi
2268 fi
2269
2270
2271 # Define the identity of the package.
2272  PACKAGE='libhangul'
2273  VERSION='0.0.7'
2274
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE "$PACKAGE"
2278 _ACEOF
2279
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define VERSION "$VERSION"
2283 _ACEOF
2284
2285 # Some tools Automake needs.
2286
2287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2288
2289
2290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2291
2292
2293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2294
2295
2296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2297
2298
2299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2300
2301 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302
2303 # Installed binaries are usually stripped using `strip' when the user
2304 # run `make install-strip'.  However `strip' might not be the right
2305 # tool to use in cross-compilation environments, therefore Automake
2306 # will honor the `STRIP' environment variable to overrule this program.
2307 if test "$cross_compiling" != no; then
2308   if test -n "$ac_tool_prefix"; then
2309   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}strip; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_STRIP+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   if test -n "$STRIP"; then
2317   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 STRIP=$ac_cv_prog_STRIP
2337 if test -n "$STRIP"; then
2338   { echo "$as_me:$LINENO: result: $STRIP" >&5
2339 echo "${ECHO_T}$STRIP" >&6; }
2340 else
2341   { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2343 fi
2344
2345
2346 fi
2347 if test -z "$ac_cv_prog_STRIP"; then
2348   ac_ct_STRIP=$STRIP
2349   # Extract the first word of "strip", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   if test -n "$ac_ct_STRIP"; then
2357   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364   for ac_exec_ext in '' $ac_executable_extensions; do
2365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366     ac_cv_prog_ac_ct_STRIP="strip"
2367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368     break 2
2369   fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377 if test -n "$ac_ct_STRIP"; then
2378   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2379 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2380 else
2381   { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2383 fi
2384
2385   if test "x$ac_ct_STRIP" = x; then
2386     STRIP=":"
2387   else
2388     case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet.  If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398     STRIP=$ac_ct_STRIP
2399   fi
2400 else
2401   STRIP="$ac_cv_prog_STRIP"
2402 fi
2403
2404 fi
2405 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406
2407 # We need awk for the "check" target.  The system "awk" is bad on
2408 # some platforms.
2409 # Always define AMTAR for backward compatibility.
2410
2411 AMTAR=${AMTAR-"${am_missing_run}tar"}
2412
2413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2414
2415
2416
2417
2418
2419
2420 ac_config_headers="$ac_config_headers config.h"
2421
2422
2423 # library version
2424 LIBHANGUL_CURRENT=1
2425 LIBHANGUL_REVISION=0
2426 LIBHANGUL_AGE=1
2427
2428
2429
2430
2431
2432 # Checks for programs.
2433 ac_ext=c
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$CC"; then
2447   ac_cv_prog_CC="$CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 CC=$ac_cv_prog_CC
2467 if test -n "$CC"; then
2468   { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2470 else
2471   { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475
2476 fi
2477 if test -z "$ac_cv_prog_CC"; then
2478   ac_ct_CC=$CC
2479   # Extract the first word of "gcc", so it can be a program name with args.
2480 set dummy gcc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$ac_ct_CC"; then
2487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     ac_cv_prog_ac_ct_CC="gcc"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6; }
2510 else
2511   { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2513 fi
2514
2515   if test "x$ac_ct_CC" = x; then
2516     CC=""
2517   else
2518     case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet.  If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528     CC=$ac_ct_CC
2529   fi
2530 else
2531   CC="$ac_cv_prog_CC"
2532 fi
2533
2534 if test -z "$CC"; then
2535           if test -n "$ac_tool_prefix"; then
2536     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   if test -n "$CC"; then
2544   ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553     ac_cv_prog_CC="${ac_tool_prefix}cc"
2554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 CC=$ac_cv_prog_CC
2564 if test -n "$CC"; then
2565   { echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6; }
2567 else
2568   { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2570 fi
2571
2572
2573   fi
2574 fi
2575 if test -z "$CC"; then
2576   # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   if test -n "$CC"; then
2584   ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586   ac_prog_rejected=no
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595        ac_prog_rejected=yes
2596        continue
2597      fi
2598     ac_cv_prog_CC="cc"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 if test $ac_prog_rejected = yes; then
2607   # We found a bogon in the path, so make sure we never use it.
2608   set dummy $ac_cv_prog_CC
2609   shift
2610   if test $# != 0; then
2611     # We chose a different compiler from the bogus one.
2612     # However, it has the same basename, so the bogon will be chosen
2613     # first if we set CC to just the basename; use the full file name.
2614     shift
2615     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2616   fi
2617 fi
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622   { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630 fi
2631 if test -z "$CC"; then
2632   if test -n "$ac_tool_prefix"; then
2633   for ac_prog in cl.exe
2634   do
2635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_CC+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$CC"; then
2643   ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664   { echo "$as_me:$LINENO: result: $CC" >&5
2665 echo "${ECHO_T}$CC" >&6; }
2666 else
2667   { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2669 fi
2670
2671
2672     test -n "$CC" && break
2673   done
2674 fi
2675 if test -z "$CC"; then
2676   ac_ct_CC=$CC
2677   for ac_prog in cl.exe
2678 do
2679   # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   if test -n "$ac_ct_CC"; then
2687   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2691 do
2692   IFS=$as_save_IFS
2693   test -z "$as_dir" && as_dir=.
2694   for ac_exec_ext in '' $ac_executable_extensions; do
2695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696     ac_cv_prog_ac_ct_CC="$ac_prog"
2697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698     break 2
2699   fi
2700 done
2701 done
2702 IFS=$as_save_IFS
2703
2704 fi
2705 fi
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6; }
2710 else
2711   { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2713 fi
2714
2715
2716   test -n "$ac_ct_CC" && break
2717 done
2718
2719   if test "x$ac_ct_CC" = x; then
2720     CC=""
2721   else
2722     case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet.  If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732     CC=$ac_ct_CC
2733   fi
2734 fi
2735
2736 fi
2737
2738
2739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&2;}
2743    { (exit 1); exit 1; }; }
2744
2745 # Provide some information about the compiler.
2746 echo "$as_me:$LINENO: checking for C compiler version" >&5
2747 ac_compiler=`set X $ac_compile; echo $2`
2748 { (ac_try="$ac_compiler --version >&5"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compiler --version >&5") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }
2758 { (ac_try="$ac_compiler -v >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_compiler -v >&5") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774   (eval "$ac_compiler -V >&5") 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }
2778
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 int
2787 main ()
2788 {
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 ac_clean_files_save=$ac_clean_files
2795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2796 # Try to create an executable without -o first, disregard a.out.
2797 # It will help us diagnose broken compilers, and finding out an intuition
2798 # of exeext.
2799 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802 #
2803 # List of possible output files, starting from the most likely.
2804 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2805 # only as a last resort.  b.out is created by i960 compilers.
2806 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2807 #
2808 # The IRIX 6 linker writes into existing files which may not be
2809 # executable, retaining their permissions.  Remove them first so a
2810 # subsequent execution test works.
2811 ac_rmfiles=
2812 for ac_file in $ac_files
2813 do
2814   case $ac_file in
2815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817   esac
2818 done
2819 rm -f $ac_rmfiles
2820
2821 if { (ac_try="$ac_link_default"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_link_default") 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; then
2831   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2835 # Autoconf.
2836 for ac_file in $ac_files ''
2837 do
2838   test -f "$ac_file" || continue
2839   case $ac_file in
2840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2841         ;;
2842     [ab].out )
2843         # We found the default executable, but exeext='' is most
2844         # certainly right.
2845         break;;
2846     *.* )
2847         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2848         then :; else
2849            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850         fi
2851         # We set ac_cv_exeext here because the later test for it is not
2852         # safe: cross compilers may not add the suffix if given an `-o'
2853         # argument, so we may need to know it at that point already.
2854         # Even if this section looks crufty: it has the advantage of
2855         # actually working.
2856         break;;
2857     * )
2858         break;;
2859   esac
2860 done
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2862
2863 else
2864   ac_file=''
2865 fi
2866
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&2;}
2877    { (exit 77); exit 77; }; }
2878 fi
2879
2880 ac_exeext=$ac_cv_exeext
2881
2882 # Check that the compiler produces executables we can run.  If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889   if { ac_try='./$ac_file'
2890   { (case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_try") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899     cross_compiling=no
2900   else
2901     if test "$cross_compiling" = maybe; then
2902         cross_compiling=yes
2903     else
2904         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot run C compiled programs.
2908 If you meant to cross compile, use \`--host'.
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911     fi
2912   fi
2913 fi
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2916
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run.  If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2925
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_link") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; then
2938   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 # `rm'.
2942 for ac_file in conftest.exe conftest conftest.*; do
2943   test -f "$ac_file" || continue
2944   case $ac_file in
2945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947           break;;
2948     * ) break;;
2949   esac
2950 done
2951 else
2952   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956    { (exit 1); exit 1; }; }
2957 fi
2958
2959 rm -f conftest$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962
2963 rm -f conftest.$ac_ext
2964 EXEEXT=$ac_cv_exeext
2965 ac_exeext=$EXEEXT
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_compile") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; then
2997   for ac_file in conftest.o conftest.obj conftest.*; do
2998   test -f "$ac_file" || continue;
2999   case $ac_file in
3000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002        break;;
3003   esac
3004 done
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&2;}
3013    { (exit 1); exit 1; }; }
3014 fi
3015
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 fi
3018 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3021 ac_objext=$OBJEXT
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037 #ifndef __GNUC__
3038        choke me
3039 #endif
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } && {
3059          test -z "$ac_c_werror_flag" ||
3060          test ! -s conftest.err
3061        } && test -s conftest.$ac_objext; then
3062   ac_compiler_gnu=yes
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067         ac_compiler_gnu=no
3068 fi
3069
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072
3073 fi
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   ac_save_c_werror_flag=$ac_c_werror_flag
3085    ac_c_werror_flag=yes
3086    ac_cv_prog_cc_g=no
3087    CFLAGS="-g"
3088    cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 int
3096 main ()
3097 {
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compile") 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } && {
3117          test -z "$ac_c_werror_flag" ||
3118          test ! -s conftest.err
3119        } && test -s conftest.$ac_objext; then
3120   ac_cv_prog_cc_g=yes
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125         CFLAGS=""
3126       cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_compile") 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } && {
3155          test -z "$ac_c_werror_flag" ||
3156          test ! -s conftest.err
3157        } && test -s conftest.$ac_objext; then
3158   :
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163         ac_c_werror_flag=$ac_save_c_werror_flag
3164          CFLAGS="-g"
3165          cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } && {
3194          test -z "$ac_c_werror_flag" ||
3195          test ! -s conftest.err
3196        } && test -s conftest.$ac_objext; then
3197   ac_cv_prog_cc_g=yes
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 fi
3210
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212    ac_c_werror_flag=$ac_save_c_werror_flag
3213 fi
3214 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217   CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219   if test "$GCC" = yes; then
3220     CFLAGS="-g -O2"
3221   else
3222     CFLAGS="-g"
3223   fi
3224 else
3225   if test "$GCC" = yes; then
3226     CFLAGS="-O2"
3227   else
3228     CFLAGS=
3229   fi
3230 fi
3231 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   ac_cv_prog_cc_c89=no
3237 ac_save_CC=$CC
3238 cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #include <stdarg.h>
3245 #include <stdio.h>
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3249 struct buf { int x; };
3250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251 static char *e (p, i)
3252      char **p;
3253      int i;
3254 {
3255   return p[i];
3256 }
3257 static char *f (char * (*g) (char **, int), char **p, ...)
3258 {
3259   char *s;
3260   va_list v;
3261   va_start (v,p);
3262   s = g (p, va_arg (v,int));
3263   va_end (v);
3264   return s;
3265 }
3266
3267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3268    function prototypes and stuff, but not '\xHH' hex character constants.
3269    These don't provoke an error unfortunately, instead are silently treated
3270    as 'x'.  The following induces an error, until -std is added to get
3271    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3272    array size at least.  It's necessary to write '\x00'==0 to get something
3273    that's true only with -std.  */
3274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275
3276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277    inside strings and character constants.  */
3278 #define FOO(x) 'x'
3279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280
3281 int test (int i, double x);
3282 struct s1 {int (*f) (int a);};
3283 struct s2 {int (*f) (double a);};
3284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3285 int argc;
3286 char **argv;
3287 int
3288 main ()
3289 {
3290 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3297 do
3298   CC="$ac_save_CC $ac_arg"
3299   rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_compile") 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } && {
3313          test -z "$ac_c_werror_flag" ||
3314          test ! -s conftest.err
3315        } && test -s conftest.$ac_objext; then
3316   ac_cv_prog_cc_c89=$ac_arg
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext
3325   test "x$ac_cv_prog_cc_c89" != "xno" && break
3326 done
3327 rm -f conftest.$ac_ext
3328 CC=$ac_save_CC
3329
3330 fi
3331 # AC_CACHE_VAL
3332 case "x$ac_cv_prog_cc_c89" in
3333   x)
3334     { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3336   xno)
3337     { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3339   *)
3340     CC="$CC $ac_cv_prog_cc_c89"
3341     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 esac
3344
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 DEPDIR="${am__leading_dot}deps"
3352
3353 ac_config_commands="$ac_config_commands depfiles"
3354
3355
3356 am_make=${MAKE-make}
3357 cat > confinc << 'END'
3358 am__doit:
3359         @echo done
3360 .PHONY: am__doit
3361 END
3362 # If we don't find an include directive, just comment out the code.
3363 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3364 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3365 am__include="#"
3366 am__quote=
3367 _am_result=none
3368 # First try GNU make style include.
3369 echo "include confinc" > confmf
3370 # We grep out `Entering directory' and `Leaving directory'
3371 # messages which can occur if `w' ends up in MAKEFLAGS.
3372 # In particular we don't look at `^make:' because GNU make might
3373 # be invoked under some other name (usually "gmake"), in which
3374 # case it prints its new name instead of `make'.
3375 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3376    am__include=include
3377    am__quote=
3378    _am_result=GNU
3379 fi
3380 # Now try BSD make style include.
3381 if test "$am__include" = "#"; then
3382    echo '.include "confinc"' > confmf
3383    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3384       am__include=.include
3385       am__quote="\""
3386       _am_result=BSD
3387    fi
3388 fi
3389
3390
3391 { echo "$as_me:$LINENO: result: $_am_result" >&5
3392 echo "${ECHO_T}$_am_result" >&6; }
3393 rm -f confinc confmf
3394
3395 # Check whether --enable-dependency-tracking was given.
3396 if test "${enable_dependency_tracking+set}" = set; then
3397   enableval=$enable_dependency_tracking;
3398 fi
3399
3400 if test "x$enable_dependency_tracking" != xno; then
3401   am_depcomp="$ac_aux_dir/depcomp"
3402   AMDEPBACKSLASH='\'
3403 fi
3404  if test "x$enable_dependency_tracking" != xno; then
3405   AMDEP_TRUE=
3406   AMDEP_FALSE='#'
3407 else
3408   AMDEP_TRUE='#'
3409   AMDEP_FALSE=
3410 fi
3411
3412
3413
3414 depcc="$CC"   am_compiler_list=
3415
3416 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3417 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3418 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3422   # We make a subdir and do the tests there.  Otherwise we can end up
3423   # making bogus files that we don't know about and never remove.  For
3424   # instance it was reported that on HP-UX the gcc test will end up
3425   # making a dummy file named `D' -- because `-MD' means `put the output
3426   # in D'.
3427   mkdir conftest.dir
3428   # Copy depcomp to subdir because otherwise we won't find it if we're
3429   # using a relative directory.
3430   cp "$am_depcomp" conftest.dir
3431   cd conftest.dir
3432   # We will build objects and dependencies in a subdirectory because
3433   # it helps to detect inapplicable dependency modes.  For instance
3434   # both Tru64's cc and ICC support -MD to output dependencies as a
3435   # side effect of compilation, but ICC will put the dependencies in
3436   # the current directory while Tru64 will put them in the object
3437   # directory.
3438   mkdir sub
3439
3440   am_cv_CC_dependencies_compiler_type=none
3441   if test "$am_compiler_list" = ""; then
3442      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443   fi
3444   for depmode in $am_compiler_list; do
3445     # Setup a source with many dependencies, because some compilers
3446     # like to wrap large dependency lists on column 80 (with \), and
3447     # we should not choose a depcomp mode which is confused by this.
3448     #
3449     # We need to recreate these files for each test, as the compiler may
3450     # overwrite some of them when testing with obscure command lines.
3451     # This happens at least with the AIX C compiler.
3452     : > sub/conftest.c
3453     for i in 1 2 3 4 5 6; do
3454       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3455       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3456       # Solaris 8's {/usr,}/bin/sh.
3457       touch sub/conftst$i.h
3458     done
3459     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3460
3461     case $depmode in
3462     nosideeffect)
3463       # after this tag, mechanisms are not by side-effect, so they'll
3464       # only be used when explicitly requested
3465       if test "x$enable_dependency_tracking" = xyes; then
3466         continue
3467       else
3468         break
3469       fi
3470       ;;
3471     none) break ;;
3472     esac
3473     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3474     # mode.  It turns out that the SunPro C++ compiler does not properly
3475     # handle `-M -o', and we need to detect this.
3476     if depmode=$depmode \
3477        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3478        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3479        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3480          >/dev/null 2>conftest.err &&
3481        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3482        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3483        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3484        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485       # icc doesn't choke on unknown options, it will just issue warnings
3486       # or remarks (even with -Werror).  So we grep stderr for any message
3487       # that says an option was ignored or not supported.
3488       # When given -MP, icc 7.0 and 7.1 complain thusly:
3489       #   icc: Command line warning: ignoring option '-M'; no argument required
3490       # The diagnosis changed in icc 8.0:
3491       #   icc: Command line remark: option '-MP' not supported
3492       if (grep 'ignoring option' conftest.err ||
3493           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3494         am_cv_CC_dependencies_compiler_type=$depmode
3495         break
3496       fi
3497     fi
3498   done
3499
3500   cd ..
3501   rm -rf conftest.dir
3502 else
3503   am_cv_CC_dependencies_compiler_type=none
3504 fi
3505
3506 fi
3507 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3508 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3510
3511  if
3512   test "x$enable_dependency_tracking" != xno \
3513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514   am__fastdepCC_TRUE=
3515   am__fastdepCC_FALSE='#'
3516 else
3517   am__fastdepCC_TRUE='#'
3518   am__fastdepCC_FALSE=
3519 fi
3520
3521
3522 if test "x$CC" != xcc; then
3523   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3524 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3525 else
3526   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3527 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3528 fi
3529 set dummy $CC; ac_cc=`echo $2 |
3530                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3531 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 # Make sure it works both with $CC and with simple cc.
3550 # We do the test twice because some compilers refuse to overwrite an
3551 # existing .o file with -o, though they will create one.
3552 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3553 rm -f conftest2.*
3554 if { (case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559   (eval "$ac_try") 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } &&
3563    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); };
3572 then
3573   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3574   if test "x$CC" != xcc; then
3575     # Test first that cc exists at all.
3576     if { ac_try='cc -c conftest.$ac_ext >&5'
3577   { (case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_try") 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; }; then
3586       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3587       rm -f conftest2.*
3588       if { (case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_try") 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } &&
3597          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_try") 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); };
3606       then
3607         # cc works too.
3608         :
3609       else
3610         # cc exists but doesn't like -o.
3611         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3612       fi
3613     fi
3614   fi
3615 else
3616   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3617 fi
3618 rm -f core conftest*
3619
3620 fi
3621 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3622   { echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6; }
3624 else
3625   { echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6; }
3627
3628 cat >>confdefs.h <<\_ACEOF
3629 #define NO_MINUS_C_MINUS_O 1
3630 _ACEOF
3631
3632 fi
3633
3634 # FIXME: we rely on the cache variable name because
3635 # there is no other way.
3636 set dummy $CC
3637 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3639    # Losing compiler, so override with the script.
3640    # FIXME: It is wrong to rewrite CC.
3641    # But if we don't then we get into trouble of one sort or another.
3642    # A longer-term fix would be to have automake use am__CC in this case,
3643    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644    CC="$am_aux_dir/compile $CC"
3645 fi
3646
3647
3648 # Check whether --enable-shared was given.
3649 if test "${enable_shared+set}" = set; then
3650   enableval=$enable_shared; p=${PACKAGE-default}
3651     case $enableval in
3652     yes) enable_shared=yes ;;
3653     no) enable_shared=no ;;
3654     *)
3655       enable_shared=no
3656       # Look at the argument we got.  We use all the common list separators.
3657       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3658       for pkg in $enableval; do
3659         IFS="$lt_save_ifs"
3660         if test "X$pkg" = "X$p"; then
3661           enable_shared=yes
3662         fi
3663       done
3664       IFS="$lt_save_ifs"
3665       ;;
3666     esac
3667 else
3668   enable_shared=yes
3669 fi
3670
3671
3672 # Check whether --enable-static was given.
3673 if test "${enable_static+set}" = set; then
3674   enableval=$enable_static; p=${PACKAGE-default}
3675     case $enableval in
3676     yes) enable_static=yes ;;
3677     no) enable_static=no ;;
3678     *)
3679      enable_static=no
3680       # Look at the argument we got.  We use all the common list separators.
3681       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682       for pkg in $enableval; do
3683         IFS="$lt_save_ifs"
3684         if test "X$pkg" = "X$p"; then
3685           enable_static=yes
3686         fi
3687       done
3688       IFS="$lt_save_ifs"
3689       ;;
3690     esac
3691 else
3692   enable_static=yes
3693 fi
3694
3695
3696 # Check whether --enable-fast-install was given.
3697 if test "${enable_fast_install+set}" = set; then
3698   enableval=$enable_fast_install; p=${PACKAGE-default}
3699     case $enableval in
3700     yes) enable_fast_install=yes ;;
3701     no) enable_fast_install=no ;;
3702     *)
3703       enable_fast_install=no
3704       # Look at the argument we got.  We use all the common list separators.
3705       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3706       for pkg in $enableval; do
3707         IFS="$lt_save_ifs"
3708         if test "X$pkg" = "X$p"; then
3709           enable_fast_install=yes
3710         fi
3711       done
3712       IFS="$lt_save_ifs"
3713       ;;
3714     esac
3715 else
3716   enable_fast_install=yes
3717 fi
3718
3719
3720 # Make sure we can run config.sub.
3721 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3722   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3723 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3724    { (exit 1); exit 1; }; }
3725
3726 { echo "$as_me:$LINENO: checking build system type" >&5
3727 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3728 if test "${ac_cv_build+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   ac_build_alias=$build_alias
3732 test "x$ac_build_alias" = x &&
3733   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3734 test "x$ac_build_alias" = x &&
3735   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3737    { (exit 1); exit 1; }; }
3738 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3739   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3740 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3741    { (exit 1); exit 1; }; }
3742
3743 fi
3744 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3745 echo "${ECHO_T}$ac_cv_build" >&6; }
3746 case $ac_cv_build in
3747 *-*-*) ;;
3748 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3749 echo "$as_me: error: invalid value of canonical build" >&2;}
3750    { (exit 1); exit 1; }; };;
3751 esac
3752 build=$ac_cv_build
3753 ac_save_IFS=$IFS; IFS='-'
3754 set x $ac_cv_build
3755 shift
3756 build_cpu=$1
3757 build_vendor=$2
3758 shift; shift
3759 # Remember, the first character of IFS is used to create $*,
3760 # except with old shells:
3761 build_os=$*
3762 IFS=$ac_save_IFS
3763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3764
3765
3766 { echo "$as_me:$LINENO: checking host system type" >&5
3767 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3768 if test "${ac_cv_host+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   if test "x$host_alias" = x; then
3772   ac_cv_host=$ac_cv_build
3773 else
3774   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3775     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3776 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3777    { (exit 1); exit 1; }; }
3778 fi
3779
3780 fi
3781 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3782 echo "${ECHO_T}$ac_cv_host" >&6; }
3783 case $ac_cv_host in
3784 *-*-*) ;;
3785 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3786 echo "$as_me: error: invalid value of canonical host" >&2;}
3787    { (exit 1); exit 1; }; };;
3788 esac
3789 host=$ac_cv_host
3790 ac_save_IFS=$IFS; IFS='-'
3791 set x $ac_cv_host
3792 shift
3793 host_cpu=$1
3794 host_vendor=$2
3795 shift; shift
3796 # Remember, the first character of IFS is used to create $*,
3797 # except with old shells:
3798 host_os=$*
3799 IFS=$ac_save_IFS
3800 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3801
3802
3803 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3804 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3805 if test "${lt_cv_path_SED+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   # Loop through the user's path and test for sed and gsed.
3809 # Then use that list of sed's as ones to test for truncation.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for lt_ac_prog in sed gsed; do
3816     for ac_exec_ext in '' $ac_executable_extensions; do
3817       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3818         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3819       fi
3820     done
3821   done
3822 done
3823 IFS=$as_save_IFS
3824 lt_ac_max=0
3825 lt_ac_count=0
3826 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3827 # along with /bin/sed that truncates output.
3828 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3829   test ! -f $lt_ac_sed && continue
3830   cat /dev/null > conftest.in
3831   lt_ac_count=0
3832   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3833   # Check for GNU sed and select it if it is found.
3834   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3835     lt_cv_path_SED=$lt_ac_sed
3836     break
3837   fi
3838   while true; do
3839     cat conftest.in conftest.in >conftest.tmp
3840     mv conftest.tmp conftest.in
3841     cp conftest.in conftest.nl
3842     echo >>conftest.nl
3843     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3844     cmp -s conftest.out conftest.nl || break
3845     # 10000 chars as input seems more than enough
3846     test $lt_ac_count -gt 10 && break
3847     lt_ac_count=`expr $lt_ac_count + 1`
3848     if test $lt_ac_count -gt $lt_ac_max; then
3849       lt_ac_max=$lt_ac_count
3850       lt_cv_path_SED=$lt_ac_sed
3851     fi
3852   done
3853 done
3854
3855 fi
3856
3857 SED=$lt_cv_path_SED
3858
3859 { echo "$as_me:$LINENO: result: $SED" >&5
3860 echo "${ECHO_T}$SED" >&6; }
3861
3862 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3863 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3864 if test "${ac_cv_path_GREP+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   # Extract the first word of "grep ggrep" to use in msg output
3868 if test -z "$GREP"; then
3869 set dummy grep ggrep; ac_prog_name=$2
3870 if test "${ac_cv_path_GREP+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   ac_path_GREP_found=false
3874 # Loop through the user's path and test for each of PROGNAME-LIST
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880   for ac_prog in grep ggrep; do
3881   for ac_exec_ext in '' $ac_executable_extensions; do
3882     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3883     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3884     # Check for GNU ac_path_GREP and select it if it is found.
3885   # Check for GNU $ac_path_GREP
3886 case `"$ac_path_GREP" --version 2>&1` in
3887 *GNU*)
3888   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3889 *)
3890   ac_count=0
3891   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3892   while :
3893   do
3894     cat "conftest.in" "conftest.in" >"conftest.tmp"
3895     mv "conftest.tmp" "conftest.in"
3896     cp "conftest.in" "conftest.nl"
3897     echo 'GREP' >> "conftest.nl"
3898     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3899     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3900     ac_count=`expr $ac_count + 1`
3901     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3902       # Best one so far, save it but keep looking for a better one
3903       ac_cv_path_GREP="$ac_path_GREP"
3904       ac_path_GREP_max=$ac_count
3905     fi
3906     # 10*(2^10) chars as input seems more than enough
3907     test $ac_count -gt 10 && break
3908   done
3909   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3910 esac
3911
3912
3913     $ac_path_GREP_found && break 3
3914   done
3915 done
3916
3917 done
3918 IFS=$as_save_IFS
3919
3920
3921 fi
3922
3923 GREP="$ac_cv_path_GREP"
3924 if test -z "$GREP"; then
3925   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3926 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3927    { (exit 1); exit 1; }; }
3928 fi
3929
3930 else
3931   ac_cv_path_GREP=$GREP
3932 fi
3933
3934
3935 fi
3936 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3937 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3938  GREP="$ac_cv_path_GREP"
3939
3940
3941 { echo "$as_me:$LINENO: checking for egrep" >&5
3942 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3943 if test "${ac_cv_path_EGREP+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947    then ac_cv_path_EGREP="$GREP -E"
3948    else
3949      # Extract the first word of "egrep" to use in msg output
3950 if test -z "$EGREP"; then
3951 set dummy egrep; ac_prog_name=$2
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   ac_path_EGREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_prog in egrep; do
3963   for ac_exec_ext in '' $ac_executable_extensions; do
3964     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3965     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3966     # Check for GNU ac_path_EGREP and select it if it is found.
3967   # Check for GNU $ac_path_EGREP
3968 case `"$ac_path_EGREP" --version 2>&1` in
3969 *GNU*)
3970   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3971 *)
3972   ac_count=0
3973   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3974   while :
3975   do
3976     cat "conftest.in" "conftest.in" >"conftest.tmp"
3977     mv "conftest.tmp" "conftest.in"
3978     cp "conftest.in" "conftest.nl"
3979     echo 'EGREP' >> "conftest.nl"
3980     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982     ac_count=`expr $ac_count + 1`
3983     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3984       # Best one so far, save it but keep looking for a better one
3985       ac_cv_path_EGREP="$ac_path_EGREP"
3986       ac_path_EGREP_max=$ac_count
3987     fi
3988     # 10*(2^10) chars as input seems more than enough
3989     test $ac_count -gt 10 && break
3990   done
3991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3992 esac
3993
3994
3995     $ac_path_EGREP_found && break 3
3996   done
3997 done
3998
3999 done
4000 IFS=$as_save_IFS
4001
4002
4003 fi
4004
4005 EGREP="$ac_cv_path_EGREP"
4006 if test -z "$EGREP"; then
4007   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4009    { (exit 1); exit 1; }; }
4010 fi
4011
4012 else
4013   ac_cv_path_EGREP=$EGREP
4014 fi
4015
4016
4017    fi
4018 fi
4019 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4020 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4021  EGREP="$ac_cv_path_EGREP"
4022
4023
4024
4025 # Check whether --with-gnu-ld was given.
4026 if test "${with_gnu_ld+set}" = set; then
4027   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4028 else
4029   with_gnu_ld=no
4030 fi
4031
4032 ac_prog=ld
4033 if test "$GCC" = yes; then
4034   # Check if gcc -print-prog-name=ld gives a path.
4035   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4036 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4037   case $host in
4038   *-*-mingw*)
4039     # gcc leaves a trailing carriage return which upsets mingw
4040     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4041   *)
4042     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4043   esac
4044   case $ac_prog in
4045     # Accept absolute paths.
4046     [\\/]* | ?:[\\/]*)
4047       re_direlt='/[^/][^/]*/\.\./'
4048       # Canonicalize the pathname of ld
4049       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4050       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4051         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4052       done
4053       test -z "$LD" && LD="$ac_prog"
4054       ;;
4055   "")
4056     # If it fails, then pretend we aren't using GCC.
4057     ac_prog=ld
4058     ;;
4059   *)
4060     # If it is relative, then search for the first ld in PATH.
4061     with_gnu_ld=unknown
4062     ;;
4063   esac
4064 elif test "$with_gnu_ld" = yes; then
4065   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4066 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4067 else
4068   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4069 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4070 fi
4071 if test "${lt_cv_path_LD+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   if test -z "$LD"; then
4075   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4076   for ac_dir in $PATH; do
4077     IFS="$lt_save_ifs"
4078     test -z "$ac_dir" && ac_dir=.
4079     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4080       lt_cv_path_LD="$ac_dir/$ac_prog"
4081       # Check to see if the program is GNU ld.  I'd rather use --version,
4082       # but apparently some variants of GNU ld only accept -v.
4083       # Break only if it was the GNU/non-GNU ld that we prefer.
4084       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4085       *GNU* | *'with BFD'*)
4086         test "$with_gnu_ld" != no && break
4087         ;;
4088       *)
4089         test "$with_gnu_ld" != yes && break
4090         ;;
4091       esac
4092     fi
4093   done
4094   IFS="$lt_save_ifs"
4095 else
4096   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4097 fi
4098 fi
4099
4100 LD="$lt_cv_path_LD"
4101 if test -n "$LD"; then
4102   { echo "$as_me:$LINENO: result: $LD" >&5
4103 echo "${ECHO_T}$LD" >&6; }
4104 else
4105   { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4107 fi
4108 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4109 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4110    { (exit 1); exit 1; }; }
4111 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4112 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4113 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4117 case `$LD -v 2>&1 </dev/null` in
4118 *GNU* | *'with BFD'*)
4119   lt_cv_prog_gnu_ld=yes
4120   ;;
4121 *)
4122   lt_cv_prog_gnu_ld=no
4123   ;;
4124 esac
4125 fi
4126 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4127 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4128 with_gnu_ld=$lt_cv_prog_gnu_ld
4129
4130
4131 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4132 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4133 if test "${lt_cv_ld_reload_flag+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   lt_cv_ld_reload_flag='-r'
4137 fi
4138 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4139 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4140 reload_flag=$lt_cv_ld_reload_flag
4141 case $reload_flag in
4142 "" | " "*) ;;
4143 *) reload_flag=" $reload_flag" ;;
4144 esac
4145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4146 case $host_os in
4147   darwin*)
4148     if test "$GCC" = yes; then
4149       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4150     else
4151       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4152     fi
4153     ;;
4154 esac
4155
4156 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4158 if test "${lt_cv_path_NM+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$NM"; then
4162   # Let the user override the test.
4163   lt_cv_path_NM="$NM"
4164 else
4165   lt_nm_to_check="${ac_tool_prefix}nm"
4166   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4167     lt_nm_to_check="$lt_nm_to_check nm"
4168   fi
4169   for lt_tmp_nm in $lt_nm_to_check; do
4170     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4171     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4172       IFS="$lt_save_ifs"
4173       test -z "$ac_dir" && ac_dir=.
4174       tmp_nm="$ac_dir/$lt_tmp_nm"
4175       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4176         # Check to see if the nm accepts a BSD-compat flag.
4177         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4178         #   nm: unknown option "B" ignored
4179         # Tru64's nm complains that /dev/null is an invalid object file
4180         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4181         */dev/null* | *'Invalid file or object type'*)
4182           lt_cv_path_NM="$tmp_nm -B"
4183           break
4184           ;;
4185         *)
4186           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4187           */dev/null*)
4188             lt_cv_path_NM="$tmp_nm -p"
4189             break
4190             ;;
4191           *)
4192             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4193             continue # so that we can try to find one that supports BSD flags
4194             ;;
4195           esac
4196           ;;
4197         esac
4198       fi
4199     done
4200     IFS="$lt_save_ifs"
4201   done
4202   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4203 fi
4204 fi
4205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4207 NM="$lt_cv_path_NM"
4208
4209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4211 LN_S=$as_ln_s
4212 if test "$LN_S" = "ln -s"; then
4213   { echo "$as_me:$LINENO: result: yes" >&5
4214 echo "${ECHO_T}yes" >&6; }
4215 else
4216   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4217 echo "${ECHO_T}no, using $LN_S" >&6; }
4218 fi
4219
4220 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4221 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4222 if test "${lt_cv_deplibs_check_method+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   lt_cv_file_magic_cmd='$MAGIC_CMD'
4226 lt_cv_file_magic_test_file=
4227 lt_cv_deplibs_check_method='unknown'
4228 # Need to set the preceding variable on all platforms that support
4229 # interlibrary dependencies.
4230 # 'none' -- dependencies not supported.
4231 # `unknown' -- same as none, but documents that we really don't know.
4232 # 'pass_all' -- all dependencies passed with no checks.
4233 # 'test_compile' -- check by making test program.
4234 # 'file_magic [[regex]]' -- check by looking for files in library path
4235 # which responds to the $file_magic_cmd with a given extended regex.
4236 # If you have `file' or equivalent on your system and you're not sure
4237 # whether `pass_all' will *always* work, you probably want this one.
4238
4239 case $host_os in
4240 aix4* | aix5*)
4241   lt_cv_deplibs_check_method=pass_all
4242   ;;
4243
4244 beos*)
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 bsdi[45]*)
4249   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4250   lt_cv_file_magic_cmd='/usr/bin/file -L'
4251   lt_cv_file_magic_test_file=/shlib/libc.so
4252   ;;
4253
4254 cygwin*)
4255   # func_win32_libid is a shell function defined in ltmain.sh
4256   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4257   lt_cv_file_magic_cmd='func_win32_libid'
4258   ;;
4259
4260 mingw* | pw32*)
4261   # Base MSYS/MinGW do not provide the 'file' command needed by
4262   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4263   # unless we find 'file', for example because we are cross-compiling.
4264   if ( file / ) >/dev/null 2>&1; then
4265     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4266     lt_cv_file_magic_cmd='func_win32_libid'
4267   else
4268     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4269     lt_cv_file_magic_cmd='$OBJDUMP -f'
4270   fi
4271   ;;
4272
4273 darwin* | rhapsody*)
4274   lt_cv_deplibs_check_method=pass_all
4275   ;;
4276
4277 freebsd* | dragonfly*)
4278   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4279     case $host_cpu in
4280     i*86 )
4281       # Not sure whether the presence of OpenBSD here was a mistake.
4282       # Let's accept both of them until this is cleared up.
4283       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4284       lt_cv_file_magic_cmd=/usr/bin/file
4285       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4286       ;;
4287     esac
4288   else
4289     lt_cv_deplibs_check_method=pass_all
4290   fi
4291   ;;
4292
4293 gnu*)
4294   lt_cv_deplibs_check_method=pass_all
4295   ;;
4296
4297 hpux10.20* | hpux11*)
4298   lt_cv_file_magic_cmd=/usr/bin/file
4299   case $host_cpu in
4300   ia64*)
4301     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4302     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4303     ;;
4304   hppa*64*)
4305     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]'
4306     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4307     ;;
4308   *)
4309     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4310     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4311     ;;
4312   esac
4313   ;;
4314
4315 interix[3-9]*)
4316   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4317   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4318   ;;
4319
4320 irix5* | irix6* | nonstopux*)
4321   case $LD in
4322   *-32|*"-32 ") libmagic=32-bit;;
4323   *-n32|*"-n32 ") libmagic=N32;;
4324   *-64|*"-64 ") libmagic=64-bit;;
4325   *) libmagic=never-match;;
4326   esac
4327   lt_cv_deplibs_check_method=pass_all
4328   ;;
4329
4330 # This must be Linux ELF.
4331 linux* | k*bsd*-gnu)
4332   lt_cv_deplibs_check_method=pass_all
4333   ;;
4334
4335 netbsd* | netbsdelf*-gnu)
4336   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4337     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4338   else
4339     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4340   fi
4341   ;;
4342
4343 newos6*)
4344   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4345   lt_cv_file_magic_cmd=/usr/bin/file
4346   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4347   ;;
4348
4349 nto-qnx*)
4350   lt_cv_deplibs_check_method=unknown
4351   ;;
4352
4353 openbsd*)
4354   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4355     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4356   else
4357     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4358   fi
4359   ;;
4360
4361 osf3* | osf4* | osf5*)
4362   lt_cv_deplibs_check_method=pass_all
4363   ;;
4364
4365 rdos*)
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368
4369 solaris*)
4370   lt_cv_deplibs_check_method=pass_all
4371   ;;
4372
4373 sysv4 | sysv4.3*)
4374   case $host_vendor in
4375   motorola)
4376     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]'
4377     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4378     ;;
4379   ncr)
4380     lt_cv_deplibs_check_method=pass_all
4381     ;;
4382   sequent)
4383     lt_cv_file_magic_cmd='/bin/file'
4384     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4385     ;;
4386   sni)
4387     lt_cv_file_magic_cmd='/bin/file'
4388     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4389     lt_cv_file_magic_test_file=/lib/libc.so
4390     ;;
4391   siemens)
4392     lt_cv_deplibs_check_method=pass_all
4393     ;;
4394   pc)
4395     lt_cv_deplibs_check_method=pass_all
4396     ;;
4397   esac
4398   ;;
4399
4400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4401   lt_cv_deplibs_check_method=pass_all
4402   ;;
4403 esac
4404
4405 fi
4406 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4407 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4411
4412
4413
4414
4415 # If no C compiler was specified, use CC.
4416 LTCC=${LTCC-"$CC"}
4417
4418 # If no C compiler flags were specified, use CFLAGS.
4419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4420
4421 # Allow CC to be a program name with arguments.
4422 compiler=$CC
4423
4424
4425 # Check whether --enable-libtool-lock was given.
4426 if test "${enable_libtool_lock+set}" = set; then
4427   enableval=$enable_libtool_lock;
4428 fi
4429
4430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4431
4432 # Some flags need to be propagated to the compiler or linker for good
4433 # libtool support.
4434 case $host in
4435 ia64-*-hpux*)
4436   # Find out which ABI we are using.
4437   echo 'int i;' > conftest.$ac_ext
4438   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439   (eval $ac_compile) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; then
4443     case `/usr/bin/file conftest.$ac_objext` in
4444     *ELF-32*)
4445       HPUX_IA64_MODE="32"
4446       ;;
4447     *ELF-64*)
4448       HPUX_IA64_MODE="64"
4449       ;;
4450     esac
4451   fi
4452   rm -rf conftest*
4453   ;;
4454 *-*-irix6*)
4455   # Find out which ABI we are using.
4456   echo '#line 4456 "configure"' > conftest.$ac_ext
4457   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; then
4462    if test "$lt_cv_prog_gnu_ld" = yes; then
4463     case `/usr/bin/file conftest.$ac_objext` in
4464     *32-bit*)
4465       LD="${LD-ld} -melf32bsmip"
4466       ;;
4467     *N32*)
4468       LD="${LD-ld} -melf32bmipn32"
4469       ;;
4470     *64-bit*)
4471       LD="${LD-ld} -melf64bmip"
4472       ;;
4473     esac
4474    else
4475     case `/usr/bin/file conftest.$ac_objext` in
4476     *32-bit*)
4477       LD="${LD-ld} -32"
4478       ;;
4479     *N32*)
4480       LD="${LD-ld} -n32"
4481       ;;
4482     *64-bit*)
4483       LD="${LD-ld} -64"
4484       ;;
4485     esac
4486    fi
4487   fi
4488   rm -rf conftest*
4489   ;;
4490
4491 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4492 s390*-*linux*|sparc*-*linux*)
4493   # Find out which ABI we are using.
4494   echo 'int i;' > conftest.$ac_ext
4495   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; then
4500     case `/usr/bin/file conftest.o` in
4501     *32-bit*)
4502       case $host in
4503         x86_64-*kfreebsd*-gnu)
4504           LD="${LD-ld} -m elf_i386_fbsd"
4505           ;;
4506         x86_64-*linux*)
4507           LD="${LD-ld} -m elf_i386"
4508           ;;
4509         ppc64-*linux*|powerpc64-*linux*)
4510           LD="${LD-ld} -m elf32ppclinux"
4511           ;;
4512         s390x-*linux*)
4513           LD="${LD-ld} -m elf_s390"
4514           ;;
4515         sparc64-*linux*)
4516           LD="${LD-ld} -m elf32_sparc"
4517           ;;
4518       esac
4519       ;;
4520     *64-bit*)
4521       case $host in
4522         x86_64-*kfreebsd*-gnu)
4523           LD="${LD-ld} -m elf_x86_64_fbsd"
4524           ;;
4525         x86_64-*linux*)
4526           LD="${LD-ld} -m elf_x86_64"
4527           ;;
4528         ppc*-*linux*|powerpc*-*linux*)
4529           LD="${LD-ld} -m elf64ppc"
4530           ;;
4531         s390*-*linux*)
4532           LD="${LD-ld} -m elf64_s390"
4533           ;;
4534         sparc*-*linux*)
4535           LD="${LD-ld} -m elf64_sparc"
4536           ;;
4537       esac
4538       ;;
4539     esac
4540   fi
4541   rm -rf conftest*
4542   ;;
4543
4544 *-*-sco3.2v5*)
4545   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4546   SAVE_CFLAGS="$CFLAGS"
4547   CFLAGS="$CFLAGS -belf"
4548   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4549 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4550 if test "${lt_cv_cc_needs_belf+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559      cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565
4566 int
4567 main ()
4568 {
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (ac_try="$ac_link"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_link") 2>conftest.er1
4582   ac_status=$?
4583   grep -v '^ *+' conftest.er1 >conftest.err
4584   rm -f conftest.er1
4585   cat conftest.err >&5
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && {
4588          test -z "$ac_c_werror_flag" ||
4589          test ! -s conftest.err
4590        } && test -s conftest$ac_exeext &&
4591        $as_test_x conftest$ac_exeext; then
4592   lt_cv_cc_needs_belf=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597         lt_cv_cc_needs_belf=no
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4601       conftest$ac_exeext conftest.$ac_ext
4602      ac_ext=c
4603 ac_cpp='$CPP $CPPFLAGS'
4604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607
4608 fi
4609 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4610 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4611   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4612     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4613     CFLAGS="$SAVE_CFLAGS"
4614   fi
4615   ;;
4616 sparc*-*solaris*)
4617   # Find out which ABI we are using.
4618   echo 'int i;' > conftest.$ac_ext
4619   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620   (eval $ac_compile) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; then
4624     case `/usr/bin/file conftest.o` in
4625     *64-bit*)
4626       case $lt_cv_prog_gnu_ld in
4627       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4628       *)    LD="${LD-ld} -64" ;;
4629       esac
4630       ;;
4631     esac
4632   fi
4633   rm -rf conftest*
4634   ;;
4635
4636
4637 esac
4638
4639 need_locks="$enable_libtool_lock"
4640
4641
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4648 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4649 # On Suns, sometimes $CPP names a directory.
4650 if test -n "$CPP" && test -d "$CPP"; then
4651   CPP=
4652 fi
4653 if test -z "$CPP"; then
4654   if test "${ac_cv_prog_CPP+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657       # Double quotes because CPP needs to be expanded
4658     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4659     do
4660       ac_preproc_ok=false
4661 for ac_c_preproc_warn_flag in '' yes
4662 do
4663   # Use a header file that comes with gcc, so configuring glibc
4664   # with a fresh cross-compiler works.
4665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666   # <limits.h> exists even on freestanding compilers.
4667   # On the NeXT, cc -E runs the code through the compiler's parser,
4668   # not just through cpp. "Syntax error" is here to catch this case.
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 #ifdef __STDC__
4676 # include <limits.h>
4677 #else
4678 # include <assert.h>
4679 #endif
4680                      Syntax error
4681 _ACEOF
4682 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689   ac_status=$?
4690   grep -v '^ *+' conftest.er1 >conftest.err
4691   rm -f conftest.er1
4692   cat conftest.err >&5
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); } >/dev/null && {
4695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696          test ! -s conftest.err
4697        }; then
4698   :
4699 else
4700   echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4702
4703   # Broken: fails on valid input.
4704 continue
4705 fi
4706
4707 rm -f conftest.err conftest.$ac_ext
4708
4709   # OK, works on sane cases.  Now check whether nonexistent headers
4710   # can be detected and how.
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717 #include <ac_nonexistent.h>
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722   *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726   ac_status=$?
4727   grep -v '^ *+' conftest.er1 >conftest.err
4728   rm -f conftest.er1
4729   cat conftest.err >&5
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } >/dev/null && {
4732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733          test ! -s conftest.err
4734        }; then
4735   # Broken: success on invalid input.
4736 continue
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741   # Passes both tests.
4742 ac_preproc_ok=:
4743 break
4744 fi
4745
4746 rm -f conftest.err conftest.$ac_ext
4747
4748 done
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then
4752   break
4753 fi
4754
4755     done
4756     ac_cv_prog_CPP=$CPP
4757
4758 fi
4759   CPP=$ac_cv_prog_CPP
4760 else
4761   ac_cv_prog_CPP=$CPP
4762 fi
4763 { echo "$as_me:$LINENO: result: $CPP" >&5
4764 echo "${ECHO_T}$CPP" >&6; }
4765 ac_preproc_ok=false
4766 for ac_c_preproc_warn_flag in '' yes
4767 do
4768   # Use a header file that comes with gcc, so configuring glibc
4769   # with a fresh cross-compiler works.
4770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771   # <limits.h> exists even on freestanding compilers.
4772   # On the NeXT, cc -E runs the code through the compiler's parser,
4773   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4781 # include <limits.h>
4782 #else
4783 # include <assert.h>
4784 #endif
4785                      Syntax error
4786 _ACEOF
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 case "(($ac_try" in
4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790   *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } >/dev/null && {
4800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801          test ! -s conftest.err
4802        }; then
4803   :
4804 else
4805   echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808   # Broken: fails on valid input.
4809 continue
4810 fi
4811
4812 rm -f conftest.err conftest.$ac_ext
4813
4814   # OK, works on sane cases.  Now check whether nonexistent headers
4815   # can be detected and how.
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 #include <ac_nonexistent.h>
4823 _ACEOF
4824 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 case "(($ac_try" in
4826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827   *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } >/dev/null && {
4837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838          test ! -s conftest.err
4839        }; then
4840   # Broken: success on invalid input.
4841 continue
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846   # Passes both tests.
4847 ac_preproc_ok=:
4848 break
4849 fi
4850
4851 rm -f conftest.err conftest.$ac_ext
4852
4853 done
4854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4855 rm -f conftest.err conftest.$ac_ext
4856 if $ac_preproc_ok; then
4857   :
4858 else
4859   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4860 See \`config.log' for more details." >&5
4861 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4862 See \`config.log' for more details." >&2;}
4863    { (exit 1); exit 1; }; }
4864 fi
4865
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872
4873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4875 if test "${ac_cv_header_stdc+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884 #include <stdlib.h>
4885 #include <stdarg.h>
4886 #include <string.h>
4887 #include <float.h>
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904   (eval "$ac_compile") 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } && {
4911          test -z "$ac_c_werror_flag" ||
4912          test ! -s conftest.err
4913        } && test -s conftest.$ac_objext; then
4914   ac_cv_header_stdc=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919         ac_cv_header_stdc=no
4920 fi
4921
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923
4924 if test $ac_cv_header_stdc = yes; then
4925   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4926   cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #include <string.h>
4933
4934 _ACEOF
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936   $EGREP "memchr" >/dev/null 2>&1; then
4937   :
4938 else
4939   ac_cv_header_stdc=no
4940 fi
4941 rm -f conftest*
4942
4943 fi
4944
4945 if test $ac_cv_header_stdc = yes; then
4946   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #include <stdlib.h>
4954
4955 _ACEOF
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957   $EGREP "free" >/dev/null 2>&1; then
4958   :
4959 else
4960   ac_cv_header_stdc=no
4961 fi
4962 rm -f conftest*
4963
4964 fi
4965
4966 if test $ac_cv_header_stdc = yes; then
4967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4968   if test "$cross_compiling" = yes; then
4969   :
4970 else
4971   cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #include <ctype.h>
4978 #include <stdlib.h>
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982 #else
4983 # define ISLOWER(c) \
4984                    (('a' <= (c) && (c) <= 'i') \
4985                      || ('j' <= (c) && (c) <= 'r') \
4986                      || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988 #endif
4989
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4991 int
4992 main ()
4993 {
4994   int i;
4995   for (i = 0; i < 256; i++)
4996     if (XOR (islower (i), ISLOWER (i))
4997         || toupper (i) != TOUPPER (i))
4998       return 2;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest$ac_exeext
5003 if { (ac_try="$ac_link"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_link") 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5013   { (case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_try") 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   :
5023 else
5024   echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ( exit $ac_status )
5029 ac_cv_header_stdc=no
5030 fi
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5032 fi
5033
5034
5035 fi
5036 fi
5037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5039 if test $ac_cv_header_stdc = yes; then
5040
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5043 _ACEOF
5044
5045 fi
5046
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058                   inttypes.h stdint.h unistd.h
5059 do
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5078 case "(($ac_try" in
5079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080   *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083   (eval "$ac_compile") 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } && {
5090          test -z "$ac_c_werror_flag" ||
5091          test ! -s conftest.err
5092        } && test -s conftest.$ac_objext; then
5093   eval "$as_ac_Header=yes"
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098         eval "$as_ac_Header=no"
5099 fi
5100
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 fi
5103 ac_res=`eval echo '${'$as_ac_Header'}'`
5104                { echo "$as_me:$LINENO: result: $ac_res" >&5
5105 echo "${ECHO_T}$ac_res" >&6; }
5106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5107   cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 _ACEOF
5110
5111 fi
5112
5113 done
5114
5115
5116
5117 for ac_header in dlfcn.h
5118 do
5119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 fi
5126 ac_res=`eval echo '${'$as_ac_Header'}'`
5127                { echo "$as_me:$LINENO: result: $ac_res" >&5
5128 echo "${ECHO_T}$ac_res" >&6; }
5129 else
5130   # Is the header compilable?
5131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 $ac_includes_default
5140 #include <$ac_header>
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5144 case "(($ac_try" in
5145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146   *) ac_try_echo=$ac_try;;
5147 esac
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149   (eval "$ac_compile") 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } && {
5156          test -z "$ac_c_werror_flag" ||
5157          test ! -s conftest.err
5158        } && test -s conftest.$ac_objext; then
5159   ac_header_compiler=yes
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164         ac_header_compiler=no
5165 fi
5166
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169 echo "${ECHO_T}$ac_header_compiler" >&6; }
5170
5171 # Is the header present?
5172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 #include <$ac_header>
5181 _ACEOF
5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } >/dev/null && {
5195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5196          test ! -s conftest.err
5197        }; then
5198   ac_header_preproc=yes
5199 else
5200   echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203   ac_header_preproc=no
5204 fi
5205
5206 rm -f conftest.err conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6; }
5209
5210 # So?  What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5212   yes:no: )
5213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217     ac_header_preproc=yes
5218     ;;
5219   no:yes:* )
5220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5232     ( cat <<\_ASBOX
5233 ## ----------------------------------------------- ##
5234 ## Report this to http://kldp.net/projects/hangul/ ##
5235 ## ----------------------------------------------- ##
5236 _ASBOX
5237      ) | sed "s/^/$as_me: WARNING:     /" >&2
5238     ;;
5239 esac
5240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   eval "$as_ac_Header=\$ac_header_preproc"
5246 fi
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248                { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5250
5251 fi
5252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253   cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5256
5257 fi
5258
5259 done
5260
5261 ac_ext=cpp
5262 ac_cpp='$CXXCPP $CPPFLAGS'
5263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5266 if test -z "$CXX"; then
5267   if test -n "$CCC"; then
5268     CXX=$CCC
5269   else
5270     if test -n "$ac_tool_prefix"; then
5271   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272   do
5273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_prog_CXX+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   if test -n "$CXX"; then
5281   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 CXX=$ac_cv_prog_CXX
5301 if test -n "$CXX"; then
5302   { echo "$as_me:$LINENO: result: $CXX" >&5
5303 echo "${ECHO_T}$CXX" >&6; }
5304 else
5305   { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5307 fi
5308
5309
5310     test -n "$CXX" && break
5311   done
5312 fi
5313 if test -z "$CXX"; then
5314   ac_ct_CXX=$CXX
5315   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   if test -n "$ac_ct_CXX"; then
5325   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332   for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_prog_ac_ct_CXX="$ac_prog"
5335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5345 if test -n "$ac_ct_CXX"; then
5346   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5348 else
5349   { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5351 fi
5352
5353
5354   test -n "$ac_ct_CXX" && break
5355 done
5356
5357   if test "x$ac_ct_CXX" = x; then
5358     CXX="g++"
5359   else
5360     case $cross_compiling:$ac_tool_warned in
5361 yes:)
5362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5363 whose name does not start with the host triplet.  If you think this
5364 configuration is useful to you, please write to autoconf@gnu.org." >&5
5365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5366 whose name does not start with the host triplet.  If you think this
5367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370     CXX=$ac_ct_CXX
5371   fi
5372 fi
5373
5374   fi
5375 fi
5376 # Provide some information about the compiler.
5377 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5378 ac_compiler=`set X $ac_compile; echo $2`
5379 { (ac_try="$ac_compiler --version >&5"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_compiler --version >&5") 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }
5389 { (ac_try="$ac_compiler -v >&5"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compiler -v >&5") 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }
5399 { (ac_try="$ac_compiler -V >&5"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_compiler -V >&5") 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }
5409
5410 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421
5422 int
5423 main ()
5424 {
5425 #ifndef __GNUC__
5426        choke me
5427 #endif
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440   (eval "$ac_compile") 2>conftest.er1
5441   ac_status=$?
5442   grep -v '^ *+' conftest.er1 >conftest.err
5443   rm -f conftest.er1
5444   cat conftest.err >&5
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } && {
5447          test -z "$ac_cxx_werror_flag" ||
5448          test ! -s conftest.err
5449        } && test -s conftest.$ac_objext; then
5450   ac_compiler_gnu=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455         ac_compiler_gnu=no
5456 fi
5457
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5460
5461 fi
5462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5464 GXX=`test $ac_compiler_gnu = yes && echo yes`
5465 ac_test_CXXFLAGS=${CXXFLAGS+set}
5466 ac_save_CXXFLAGS=$CXXFLAGS
5467 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5469 if test "${ac_cv_prog_cxx_g+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5473    ac_cxx_werror_flag=yes
5474    ac_cv_prog_cxx_g=no
5475    CXXFLAGS="-g"
5476    cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 int
5484 main ()
5485 {
5486
5487   ;
5488   return 0;
5489 }
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_compile") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } && {
5505          test -z "$ac_cxx_werror_flag" ||
5506          test ! -s conftest.err
5507        } && test -s conftest.$ac_objext; then
5508   ac_cv_prog_cxx_g=yes
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513         CXXFLAGS=""
5514       cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 int
5522 main ()
5523 {
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_cxx_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest.$ac_objext; then
5546   :
5547 else
5548   echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552          CXXFLAGS="-g"
5553          cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559
5560 int
5561 main ()
5562 {
5563
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compile") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && {
5582          test -z "$ac_cxx_werror_flag" ||
5583          test ! -s conftest.err
5584        } && test -s conftest.$ac_objext; then
5585   ac_cv_prog_cxx_g=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 fi
5598
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 fi
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5604 if test "$ac_test_CXXFLAGS" = set; then
5605   CXXFLAGS=$ac_save_CXXFLAGS
5606 elif test $ac_cv_prog_cxx_g = yes; then
5607   if test "$GXX" = yes; then
5608     CXXFLAGS="-g -O2"
5609   else
5610     CXXFLAGS="-g"
5611   fi
5612 else
5613   if test "$GXX" = yes; then
5614     CXXFLAGS="-O2"
5615   else
5616     CXXFLAGS=
5617   fi
5618 fi
5619 ac_ext=cpp
5620 ac_cpp='$CXXCPP $CPPFLAGS'
5621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5624
5625 depcc="$CXX"  am_compiler_list=
5626
5627 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5628 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5629 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5633   # We make a subdir and do the tests there.  Otherwise we can end up
5634   # making bogus files that we don't know about and never remove.  For
5635   # instance it was reported that on HP-UX the gcc test will end up
5636   # making a dummy file named `D' -- because `-MD' means `put the output
5637   # in D'.
5638   mkdir conftest.dir
5639   # Copy depcomp to subdir because otherwise we won't find it if we're
5640   # using a relative directory.
5641   cp "$am_depcomp" conftest.dir
5642   cd conftest.dir
5643   # We will build objects and dependencies in a subdirectory because
5644   # it helps to detect inapplicable dependency modes.  For instance
5645   # both Tru64's cc and ICC support -MD to output dependencies as a
5646   # side effect of compilation, but ICC will put the dependencies in
5647   # the current directory while Tru64 will put them in the object
5648   # directory.
5649   mkdir sub
5650
5651   am_cv_CXX_dependencies_compiler_type=none
5652   if test "$am_compiler_list" = ""; then
5653      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5654   fi
5655   for depmode in $am_compiler_list; do
5656     # Setup a source with many dependencies, because some compilers
5657     # like to wrap large dependency lists on column 80 (with \), and
5658     # we should not choose a depcomp mode which is confused by this.
5659     #
5660     # We need to recreate these files for each test, as the compiler may
5661     # overwrite some of them when testing with obscure command lines.
5662     # This happens at least with the AIX C compiler.
5663     : > sub/conftest.c
5664     for i in 1 2 3 4 5 6; do
5665       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5666       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5667       # Solaris 8's {/usr,}/bin/sh.
5668       touch sub/conftst$i.h
5669     done
5670     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5671
5672     case $depmode in
5673     nosideeffect)
5674       # after this tag, mechanisms are not by side-effect, so they'll
5675       # only be used when explicitly requested
5676       if test "x$enable_dependency_tracking" = xyes; then
5677         continue
5678       else
5679         break
5680       fi
5681       ;;
5682     none) break ;;
5683     esac
5684     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5685     # mode.  It turns out that the SunPro C++ compiler does not properly
5686     # handle `-M -o', and we need to detect this.
5687     if depmode=$depmode \
5688        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5689        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5690        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5691          >/dev/null 2>conftest.err &&
5692        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5693        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5694        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5695        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5696       # icc doesn't choke on unknown options, it will just issue warnings
5697       # or remarks (even with -Werror).  So we grep stderr for any message
5698       # that says an option was ignored or not supported.
5699       # When given -MP, icc 7.0 and 7.1 complain thusly:
5700       #   icc: Command line warning: ignoring option '-M'; no argument required
5701       # The diagnosis changed in icc 8.0:
5702       #   icc: Command line remark: option '-MP' not supported
5703       if (grep 'ignoring option' conftest.err ||
5704           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5705         am_cv_CXX_dependencies_compiler_type=$depmode
5706         break
5707       fi
5708     fi
5709   done
5710
5711   cd ..
5712   rm -rf conftest.dir
5713 else
5714   am_cv_CXX_dependencies_compiler_type=none
5715 fi
5716
5717 fi
5718 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5719 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5720 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5721
5722  if
5723   test "x$enable_dependency_tracking" != xno \
5724   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5725   am__fastdepCXX_TRUE=
5726   am__fastdepCXX_FALSE='#'
5727 else
5728   am__fastdepCXX_TRUE='#'
5729   am__fastdepCXX_FALSE=
5730 fi
5731
5732
5733
5734
5735 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5736     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5737     (test "X$CXX" != "Xg++"))) ; then
5738   ac_ext=cpp
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5744 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5745 if test -z "$CXXCPP"; then
5746   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749       # Double quotes because CXXCPP needs to be expanded
5750     for CXXCPP in "$CXX -E" "/lib/cpp"
5751     do
5752       ac_preproc_ok=false
5753 for ac_cxx_preproc_warn_flag in '' yes
5754 do
5755   # Use a header file that comes with gcc, so configuring glibc
5756   # with a fresh cross-compiler works.
5757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758   # <limits.h> exists even on freestanding compilers.
5759   # On the NeXT, cc -E runs the code through the compiler's parser,
5760   # not just through cpp. "Syntax error" is here to catch this case.
5761   cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #ifdef __STDC__
5768 # include <limits.h>
5769 #else
5770 # include <assert.h>
5771 #endif
5772                      Syntax error
5773 _ACEOF
5774 if { (ac_try="$ac_cpp conftest.$ac_ext"
5775 case "(($ac_try" in
5776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777   *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5781   ac_status=$?
5782   grep -v '^ *+' conftest.er1 >conftest.err
5783   rm -f conftest.er1
5784   cat conftest.err >&5
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } >/dev/null && {
5787          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5788          test ! -s conftest.err
5789        }; then
5790   :
5791 else
5792   echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795   # Broken: fails on valid input.
5796 continue
5797 fi
5798
5799 rm -f conftest.err conftest.$ac_ext
5800
5801   # OK, works on sane cases.  Now check whether nonexistent headers
5802   # can be detected and how.
5803   cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809 #include <ac_nonexistent.h>
5810 _ACEOF
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } >/dev/null && {
5824          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5825          test ! -s conftest.err
5826        }; then
5827   # Broken: success on invalid input.
5828 continue
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833   # Passes both tests.
5834 ac_preproc_ok=:
5835 break
5836 fi
5837
5838 rm -f conftest.err conftest.$ac_ext
5839
5840 done
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then
5844   break
5845 fi
5846
5847     done
5848     ac_cv_prog_CXXCPP=$CXXCPP
5849
5850 fi
5851   CXXCPP=$ac_cv_prog_CXXCPP
5852 else
5853   ac_cv_prog_CXXCPP=$CXXCPP
5854 fi
5855 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5856 echo "${ECHO_T}$CXXCPP" >&6; }
5857 ac_preproc_ok=false
5858 for ac_cxx_preproc_warn_flag in '' yes
5859 do
5860   # Use a header file that comes with gcc, so configuring glibc
5861   # with a fresh cross-compiler works.
5862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863   # <limits.h> exists even on freestanding compilers.
5864   # On the NeXT, cc -E runs the code through the compiler's parser,
5865   # not just through cpp. "Syntax error" is here to catch this case.
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 #ifdef __STDC__
5873 # include <limits.h>
5874 #else
5875 # include <assert.h>
5876 #endif
5877                      Syntax error
5878 _ACEOF
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5886   ac_status=$?
5887   grep -v '^ *+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } >/dev/null && {
5892          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5893          test ! -s conftest.err
5894        }; then
5895   :
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900   # Broken: fails on valid input.
5901 continue
5902 fi
5903
5904 rm -f conftest.err conftest.$ac_ext
5905
5906   # OK, works on sane cases.  Now check whether nonexistent headers
5907   # can be detected and how.
5908   cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 #include <ac_nonexistent.h>
5915 _ACEOF
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } >/dev/null && {
5929          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5930          test ! -s conftest.err
5931        }; then
5932   # Broken: success on invalid input.
5933 continue
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938   # Passes both tests.
5939 ac_preproc_ok=:
5940 break
5941 fi
5942
5943 rm -f conftest.err conftest.$ac_ext
5944
5945 done
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then
5949   :
5950 else
5951   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954 See \`config.log' for more details." >&2;}
5955    { (exit 1); exit 1; }; }
5956 fi
5957
5958 ac_ext=cpp
5959 ac_cpp='$CXXCPP $CPPFLAGS'
5960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5963
5964 fi
5965
5966
5967 ac_ext=f
5968 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5969 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5971 if test -n "$ac_tool_prefix"; then
5972   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
5973   do
5974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_F77+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   if test -n "$F77"; then
5982   ac_cv_prog_F77="$F77" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989   for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 F77=$ac_cv_prog_F77
6002 if test -n "$F77"; then
6003   { echo "$as_me:$LINENO: result: $F77" >&5
6004 echo "${ECHO_T}$F77" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010
6011     test -n "$F77" && break
6012   done
6013 fi
6014 if test -z "$F77"; then
6015   ac_ct_F77=$F77
6016   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
6017 do
6018   # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if test -n "$ac_ct_F77"; then
6026   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033   for ac_exec_ext in '' $ac_executable_extensions; do
6034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035     ac_cv_prog_ac_ct_F77="$ac_prog"
6036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040 done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6046 if test -n "$ac_ct_F77"; then
6047   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6048 echo "${ECHO_T}$ac_ct_F77" >&6; }
6049 else
6050   { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6052 fi
6053
6054
6055   test -n "$ac_ct_F77" && break
6056 done
6057
6058   if test "x$ac_ct_F77" = x; then
6059     F77=""
6060   else
6061     case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6064 whose name does not start with the host triplet.  If you think this
6065 configuration is useful to you, please write to autoconf@gnu.org." >&5
6066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6067 whose name does not start with the host triplet.  If you think this
6068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6069 ac_tool_warned=yes ;;
6070 esac
6071     F77=$ac_ct_F77
6072   fi
6073 fi
6074
6075
6076 # Provide some information about the compiler.
6077 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6078 ac_compiler=`set X $ac_compile; echo $2`
6079 { (ac_try="$ac_compiler --version >&5"
6080 case "(($ac_try" in
6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082   *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085   (eval "$ac_compiler --version >&5") 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }
6089 { (ac_try="$ac_compiler -v >&5"
6090 case "(($ac_try" in
6091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092   *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095   (eval "$ac_compiler -v >&5") 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }
6099 { (ac_try="$ac_compiler -V >&5"
6100 case "(($ac_try" in
6101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102   *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105   (eval "$ac_compiler -V >&5") 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }
6109 rm -f a.out
6110
6111 # If we don't use `.F' as extension, the preprocessor is not run on the
6112 # input file.  (Note that this only needs to work for GNU compilers.)
6113 ac_save_ext=$ac_ext
6114 ac_ext=F
6115 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6116 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6117 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   cat >conftest.$ac_ext <<_ACEOF
6121       program main
6122 #ifndef __GNUC__
6123        choke me
6124 #endif
6125
6126       end
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_compile") 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } && {
6142          test -z "$ac_f77_werror_flag" ||
6143          test ! -s conftest.err
6144        } && test -s conftest.$ac_objext; then
6145   ac_compiler_gnu=yes
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150         ac_compiler_gnu=no
6151 fi
6152
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6155
6156 fi
6157 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6158 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6159 ac_ext=$ac_save_ext
6160 ac_test_FFLAGS=${FFLAGS+set}
6161 ac_save_FFLAGS=$FFLAGS
6162 FFLAGS=
6163 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6164 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_f77_g+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   FFLAGS=-g
6169 cat >conftest.$ac_ext <<_ACEOF
6170       program main
6171
6172       end
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6176 case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_compile") 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } && {
6188          test -z "$ac_f77_werror_flag" ||
6189          test ! -s conftest.err
6190        } && test -s conftest.$ac_objext; then
6191   ac_cv_prog_f77_g=yes
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196         ac_cv_prog_f77_g=no
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200
6201 fi
6202 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6203 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6204 if test "$ac_test_FFLAGS" = set; then
6205   FFLAGS=$ac_save_FFLAGS
6206 elif test $ac_cv_prog_f77_g = yes; then
6207   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6208     FFLAGS="-g -O2"
6209   else
6210     FFLAGS="-g"
6211   fi
6212 else
6213   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6214     FFLAGS="-O2"
6215   else
6216     FFLAGS=
6217   fi
6218 fi
6219
6220 G77=`test $ac_compiler_gnu = yes && echo yes`
6221 ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227
6228
6229 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6230
6231 # find the maximum length of command line arguments
6232 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6233 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6234 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237     i=0
6238   teststring="ABCD"
6239
6240   case $build_os in
6241   msdosdjgpp*)
6242     # On DJGPP, this test can blow up pretty badly due to problems in libc
6243     # (any single argument exceeding 2000 bytes causes a buffer overrun
6244     # during glob expansion).  Even if it were fixed, the result of this
6245     # check would be larger than it should be.
6246     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6247     ;;
6248
6249   gnu*)
6250     # Under GNU Hurd, this test is not required because there is
6251     # no limit to the length of command line arguments.
6252     # Libtool will interpret -1 as no limit whatsoever
6253     lt_cv_sys_max_cmd_len=-1;
6254     ;;
6255
6256   cygwin* | mingw*)
6257     # On Win9x/ME, this test blows up -- it succeeds, but takes
6258     # about 5 minutes as the teststring grows exponentially.
6259     # Worse, since 9x/ME are not pre-emptively multitasking,
6260     # you end up with a "frozen" computer, even though with patience
6261     # the test eventually succeeds (with a max line length of 256k).
6262     # Instead, let's just punt: use the minimum linelength reported by
6263     # all of the supported platforms: 8192 (on NT/2K/XP).
6264     lt_cv_sys_max_cmd_len=8192;
6265     ;;
6266
6267   amigaos*)
6268     # On AmigaOS with pdksh, this test takes hours, literally.
6269     # So we just punt and use a minimum line length of 8192.
6270     lt_cv_sys_max_cmd_len=8192;
6271     ;;
6272
6273   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6274     # This has been around since 386BSD, at least.  Likely further.
6275     if test -x /sbin/sysctl; then
6276       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6277     elif test -x /usr/sbin/sysctl; then
6278       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6279     else
6280       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6281     fi
6282     # And add a safety zone
6283     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6284     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6285     ;;
6286
6287   interix*)
6288     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6289     lt_cv_sys_max_cmd_len=196608
6290     ;;
6291
6292   osf*)
6293     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6294     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6295     # nice to cause kernel panics so lets avoid the loop below.
6296     # First set a reasonable default.
6297     lt_cv_sys_max_cmd_len=16384
6298     #
6299     if test -x /sbin/sysconfig; then
6300       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6301         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6302       esac
6303     fi
6304     ;;
6305   sco3.2v5*)
6306     lt_cv_sys_max_cmd_len=102400
6307     ;;
6308   sysv5* | sco5v6* | sysv4.2uw2*)
6309     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6310     if test -n "$kargmax"; then
6311       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6312     else
6313       lt_cv_sys_max_cmd_len=32768
6314     fi
6315     ;;
6316   *)
6317     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6318     if test -n "$lt_cv_sys_max_cmd_len"; then
6319       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6320       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6321     else
6322       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6323       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6324                = "XX$teststring") >/dev/null 2>&1 &&
6325               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6326               lt_cv_sys_max_cmd_len=$new_result &&
6327               test $i != 17 # 1/2 MB should be enough
6328       do
6329         i=`expr $i + 1`
6330         teststring=$teststring$teststring
6331       done
6332       teststring=
6333       # Add a significant safety factor because C++ compilers can tack on massive
6334       # amounts of additional arguments before passing them to the linker.
6335       # It appears as though 1/2 is a usable value.
6336       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6337     fi
6338     ;;
6339   esac
6340
6341 fi
6342
6343 if test -n $lt_cv_sys_max_cmd_len ; then
6344   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6345 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: none" >&5
6348 echo "${ECHO_T}none" >&6; }
6349 fi
6350
6351
6352
6353
6354
6355 # Check for command to grab the raw symbol name followed by C symbol from nm.
6356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361
6362 # These are sane defaults that work on at least a few old systems.
6363 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6364
6365 # Character class describing NM global symbol codes.
6366 symcode='[BCDEGRST]'
6367
6368 # Regexp to match symbols that can be accessed directly from C.
6369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6370
6371 # Transform an extracted symbol line into a proper C declaration
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6373
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 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'"
6376
6377 # Define system-specific variables.
6378 case $host_os in
6379 aix*)
6380   symcode='[BCDT]'
6381   ;;
6382 cygwin* | mingw* | pw32*)
6383   symcode='[ABCDGISTW]'
6384   ;;
6385 hpux*) # Its linker distinguishes data from code symbols
6386   if test "$host_cpu" = ia64; then
6387     symcode='[ABCDEGRST]'
6388   fi
6389   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6390   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'"
6391   ;;
6392 linux* | k*bsd*-gnu)
6393   if test "$host_cpu" = ia64; then
6394     symcode='[ABCDGIRSTW]'
6395     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6396     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'"
6397   fi
6398   ;;
6399 irix* | nonstopux*)
6400   symcode='[BCDEGRST]'
6401   ;;
6402 osf*)
6403   symcode='[BCDEGQRST]'
6404   ;;
6405 solaris*)
6406   symcode='[BDRT]'
6407   ;;
6408 sco3.2v5*)
6409   symcode='[DT]'
6410   ;;
6411 sysv4.2uw2*)
6412   symcode='[DT]'
6413   ;;
6414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6415   symcode='[ABDT]'
6416   ;;
6417 sysv4)
6418   symcode='[DFNSTU]'
6419   ;;
6420 esac
6421
6422 # Handle CRLF in mingw tool chain
6423 opt_cr=
6424 case $build_os in
6425 mingw*)
6426   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6427   ;;
6428 esac
6429
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433   symcode='[ABCDGIRSTW]' ;;
6434 esac
6435
6436 # Try without a prefix undercore, then with it.
6437 for ac_symprfx in "" "_"; do
6438
6439   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6440   symxfrm="\\1 $ac_symprfx\\2 \\2"
6441
6442   # Write the raw and C identifiers.
6443   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6444
6445   # Check to see that the pipe works correctly.
6446   pipe_works=no
6447
6448   rm -f conftest*
6449   cat > conftest.$ac_ext <<EOF
6450 #ifdef __cplusplus
6451 extern "C" {
6452 #endif
6453 char nm_test_var;
6454 void nm_test_func(){}
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 EOF
6460
6461   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; then
6466     # Now try to grab the symbols.
6467     nlist=conftest.nm
6468     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6469   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6482         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<EOF > conftest.$ac_ext
6484 #ifdef __cplusplus
6485 extern "C" {
6486 #endif
6487
6488 EOF
6489           # Now generate the symbol file.
6490           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6491
6492           cat <<EOF >> conftest.$ac_ext
6493 #if defined (__STDC__) && __STDC__
6494 # define lt_ptr_t void *
6495 #else
6496 # define lt_ptr_t char *
6497 # define const
6498 #endif
6499
6500 /* The mapping between symbol names and symbols. */
6501 const struct {
6502   const char *name;
6503   lt_ptr_t address;
6504 }
6505 lt_preloaded_symbols[] =
6506 {
6507 EOF
6508           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6509           cat <<\EOF >> conftest.$ac_ext
6510   {0, (lt_ptr_t) 0}
6511 };
6512
6513 #ifdef __cplusplus
6514 }
6515 #endif
6516 EOF
6517           # Now try linking the two files.
6518           mv conftest.$ac_objext conftstm.$ac_objext
6519           lt_save_LIBS="$LIBS"
6520           lt_save_CFLAGS="$CFLAGS"
6521           LIBS="conftstm.$ac_objext"
6522           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524   (eval $ac_link) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6528             pipe_works=yes
6529           fi
6530           LIBS="$lt_save_LIBS"
6531           CFLAGS="$lt_save_CFLAGS"
6532         else
6533           echo "cannot find nm_test_func in $nlist" >&5
6534         fi
6535       else
6536         echo "cannot find nm_test_var in $nlist" >&5
6537       fi
6538     else
6539       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6540     fi
6541   else
6542     echo "$progname: failed program was:" >&5
6543     cat conftest.$ac_ext >&5
6544   fi
6545   rm -f conftest* conftst*
6546
6547   # Do not use the global_symbol_pipe unless it works.
6548   if test "$pipe_works" = yes; then
6549     break
6550   else
6551     lt_cv_sys_global_symbol_pipe=
6552   fi
6553 done
6554
6555 fi
6556
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558   lt_cv_sys_global_symbol_to_cdecl=
6559 fi
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561   { echo "$as_me:$LINENO: result: failed" >&5
6562 echo "${ECHO_T}failed" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: ok" >&5
6565 echo "${ECHO_T}ok" >&6; }
6566 fi
6567
6568 { echo "$as_me:$LINENO: checking for objdir" >&5
6569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6570 if test "${lt_cv_objdir+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   rm -f .libs 2>/dev/null
6574 mkdir .libs 2>/dev/null
6575 if test -d .libs; then
6576   lt_cv_objdir=.libs
6577 else
6578   # MS-DOS does not allow filenames that begin with a dot.
6579   lt_cv_objdir=_libs
6580 fi
6581 rmdir .libs 2>/dev/null
6582 fi
6583 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6584 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6585 objdir=$lt_cv_objdir
6586
6587
6588
6589
6590
6591 case $host_os in
6592 aix3*)
6593   # AIX sometimes has problems with the GCC collect2 program.  For some
6594   # reason, if we set the COLLECT_NAMES environment variable, the problems
6595   # vanish in a puff of smoke.
6596   if test "X${COLLECT_NAMES+set}" != Xset; then
6597     COLLECT_NAMES=
6598     export COLLECT_NAMES
6599   fi
6600   ;;
6601 esac
6602
6603 # Sed substitution that helps us do robust quoting.  It backslashifies
6604 # metacharacters that are still active within double-quoted strings.
6605 Xsed='sed -e 1s/^X//'
6606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6607
6608 # Same as above, but do not quote variable references.
6609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6610
6611 # Sed substitution to delay expansion of an escaped shell variable in a
6612 # double_quote_subst'ed string.
6613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6614
6615 # Sed substitution to avoid accidental globbing in evaled expressions
6616 no_glob_subst='s/\*/\\\*/g'
6617
6618 # Constants:
6619 rm="rm -f"
6620
6621 # Global variables:
6622 default_ofile=libtool
6623 can_build_shared=yes
6624
6625 # All known linkers require a `.a' archive for static linking (except MSVC,
6626 # which needs '.lib').
6627 libext=a
6628 ltmain="$ac_aux_dir/ltmain.sh"
6629 ofile="$default_ofile"
6630 with_gnu_ld="$lt_cv_prog_gnu_ld"
6631
6632 if test -n "$ac_tool_prefix"; then
6633   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   if test -n "$AR"; then
6641   ac_cv_prog_AR="$AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_prog_AR="${ac_tool_prefix}ar"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 AR=$ac_cv_prog_AR
6661 if test -n "$AR"; then
6662   { echo "$as_me:$LINENO: result: $AR" >&5
6663 echo "${ECHO_T}$AR" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_AR"; then
6672   ac_ct_AR=$AR
6673   # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$ac_ct_AR"; then
6681   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_ac_ct_AR="ar"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6703 echo "${ECHO_T}$ac_ct_AR" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709   if test "x$ac_ct_AR" = x; then
6710     AR="false"
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet.  If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&5
6717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet.  If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722     AR=$ac_ct_AR
6723   fi
6724 else
6725   AR="$ac_cv_prog_AR"
6726 fi
6727
6728 if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_RANLIB+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   if test -n "$RANLIB"; then
6737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6759 echo "${ECHO_T}$RANLIB" >&6; }
6760 else
6761   { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768   ac_ct_RANLIB=$RANLIB
6769   # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$ac_ct_RANLIB"; then
6777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_ac_ct_RANLIB="ranlib"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805   if test "x$ac_ct_RANLIB" = x; then
6806     RANLIB=":"
6807   else
6808     case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet.  If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet.  If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     RANLIB=$ac_ct_RANLIB
6819   fi
6820 else
6821   RANLIB="$ac_cv_prog_RANLIB"
6822 fi
6823
6824 if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_STRIP+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   if test -n "$STRIP"; then
6833   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854   { echo "$as_me:$LINENO: result: $STRIP" >&5
6855 echo "${ECHO_T}$STRIP" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_STRIP"; then
6864   ac_ct_STRIP=$STRIP
6865   # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   if test -n "$ac_ct_STRIP"; then
6873   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_STRIP="strip"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6895 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_STRIP" = x; then
6902     STRIP=":"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet.  If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet.  If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914     STRIP=$ac_ct_STRIP
6915   fi
6916 else
6917   STRIP="$ac_cv_prog_STRIP"
6918 fi
6919
6920
6921 old_CC="$CC"
6922 old_CFLAGS="$CFLAGS"
6923
6924 # Set sane defaults for various variables
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 test -z "$AS" && AS=as
6928 test -z "$CC" && CC=cc
6929 test -z "$LTCC" && LTCC=$CC
6930 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6931 test -z "$DLLTOOL" && DLLTOOL=dlltool
6932 test -z "$LD" && LD=ld
6933 test -z "$LN_S" && LN_S="ln -s"
6934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6935 test -z "$NM" && NM=nm
6936 test -z "$SED" && SED=sed
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938 test -z "$RANLIB" && RANLIB=:
6939 test -z "$STRIP" && STRIP=:
6940 test -z "$ac_objext" && ac_objext=o
6941
6942 # Determine commands to create old-style static archives.
6943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6944 old_postinstall_cmds='chmod 644 $oldlib'
6945 old_postuninstall_cmds=
6946
6947 if test -n "$RANLIB"; then
6948   case $host_os in
6949   openbsd*)
6950     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6951     ;;
6952   *)
6953     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6954     ;;
6955   esac
6956   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6957 fi
6958
6959 for cc_temp in $compiler""; do
6960   case $cc_temp in
6961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6963     \-*) ;;
6964     *) break;;
6965   esac
6966 done
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6968
6969
6970 # Only perform the check for file, if the check method requires it
6971 case $deplibs_check_method in
6972 file_magic*)
6973   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6974     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   case $MAGIC_CMD in
6980 [\\/*] |  ?:[\\/]*)
6981   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982   ;;
6983 *)
6984   lt_save_MAGIC_CMD="$MAGIC_CMD"
6985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6986   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6987   for ac_dir in $ac_dummy; do
6988     IFS="$lt_save_ifs"
6989     test -z "$ac_dir" && ac_dir=.
6990     if test -f $ac_dir/${ac_tool_prefix}file; then
6991       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6992       if test -n "$file_magic_test_file"; then
6993         case $deplibs_check_method in
6994         "file_magic "*)
6995           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6998             $EGREP "$file_magic_regex" > /dev/null; then
6999             :
7000           else
7001             cat <<EOF 1>&2
7002
7003 *** Warning: the command libtool uses to detect shared libraries,
7004 *** $file_magic_cmd, produces output that libtool cannot recognize.
7005 *** The result is that libtool may fail to recognize shared libraries
7006 *** as such.  This will affect the creation of libtool libraries that
7007 *** depend on shared libraries, but programs linked with such libtool
7008 *** libraries will work regardless of this problem.  Nevertheless, you
7009 *** may want to report the problem to your system manager and/or to
7010 *** bug-libtool@gnu.org
7011
7012 EOF
7013           fi ;;
7014         esac
7015       fi
7016       break
7017     fi
7018   done
7019   IFS="$lt_save_ifs"
7020   MAGIC_CMD="$lt_save_MAGIC_CMD"
7021   ;;
7022 esac
7023 fi
7024
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if test -n "$MAGIC_CMD"; then
7027   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7029 else
7030   { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034 if test -z "$lt_cv_path_MAGIC_CMD"; then
7035   if test -n "$ac_tool_prefix"; then
7036     { echo "$as_me:$LINENO: checking for file" >&5
7037 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $MAGIC_CMD in
7042 [\\/*] |  ?:[\\/]*)
7043   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7044   ;;
7045 *)
7046   lt_save_MAGIC_CMD="$MAGIC_CMD"
7047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7048   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7049   for ac_dir in $ac_dummy; do
7050     IFS="$lt_save_ifs"
7051     test -z "$ac_dir" && ac_dir=.
7052     if test -f $ac_dir/file; then
7053       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7054       if test -n "$file_magic_test_file"; then
7055         case $deplibs_check_method in
7056         "file_magic "*)
7057           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7058           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7060             $EGREP "$file_magic_regex" > /dev/null; then
7061             :
7062           else
7063             cat <<EOF 1>&2
7064
7065 *** Warning: the command libtool uses to detect shared libraries,
7066 *** $file_magic_cmd, produces output that libtool cannot recognize.
7067 *** The result is that libtool may fail to recognize shared libraries
7068 *** as such.  This will affect the creation of libtool libraries that
7069 *** depend on shared libraries, but programs linked with such libtool
7070 *** libraries will work regardless of this problem.  Nevertheless, you
7071 *** may want to report the problem to your system manager and/or to
7072 *** bug-libtool@gnu.org
7073
7074 EOF
7075           fi ;;
7076         esac
7077       fi
7078       break
7079     fi
7080   done
7081   IFS="$lt_save_ifs"
7082   MAGIC_CMD="$lt_save_MAGIC_CMD"
7083   ;;
7084 esac
7085 fi
7086
7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088 if test -n "$MAGIC_CMD"; then
7089   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7090 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096   else
7097     MAGIC_CMD=:
7098   fi
7099 fi
7100
7101   fi
7102   ;;
7103 esac
7104
7105 enable_dlopen=no
7106 enable_win32_dll=no
7107
7108 # Check whether --enable-libtool-lock was given.
7109 if test "${enable_libtool_lock+set}" = set; then
7110   enableval=$enable_libtool_lock;
7111 fi
7112
7113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7114
7115
7116 # Check whether --with-pic was given.
7117 if test "${with_pic+set}" = set; then
7118   withval=$with_pic; pic_mode="$withval"
7119 else
7120   pic_mode=default
7121 fi
7122
7123 test -z "$pic_mode" && pic_mode=default
7124
7125 # Use C for the default configuration in the libtool script
7126 tagname=
7127 lt_save_CC="$CC"
7128 ac_ext=c
7129 ac_cpp='$CPP $CPPFLAGS'
7130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133
7134
7135 # Source file extension for C test sources.
7136 ac_ext=c
7137
7138 # Object file extension for compiled C test sources.
7139 objext=o
7140 objext=$objext
7141
7142 # Code to be used in simple compile tests
7143 lt_simple_compile_test_code="int some_variable = 0;"
7144
7145 # Code to be used in simple link tests
7146 lt_simple_link_test_code='int main(){return(0);}'
7147
7148
7149 # If no C compiler was specified, use CC.
7150 LTCC=${LTCC-"$CC"}
7151
7152 # If no C compiler flags were specified, use CFLAGS.
7153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155 # Allow CC to be a program name with arguments.
7156 compiler=$CC
7157
7158
7159 # save warnings/boilerplate of simple test code
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7163 _lt_compiler_boilerplate=`cat conftest.err`
7164 $rm conftest*
7165
7166 ac_outfile=conftest.$ac_objext
7167 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7169 _lt_linker_boilerplate=`cat conftest.err`
7170 $rm conftest*
7171
7172
7173
7174 lt_prog_compiler_no_builtin_flag=
7175
7176 if test "$GCC" = yes; then
7177   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7178
7179
7180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   lt_cv_prog_compiler_rtti_exceptions=no
7186   ac_outfile=conftest.$ac_objext
7187    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7188    lt_compiler_flag="-fno-rtti -fno-exceptions"
7189    # Insert the option either (1) after the last *FLAGS variable, or
7190    # (2) before a word containing "conftest.", or (3) at the end.
7191    # Note that $ac_compile itself does not contain backslashes and begins
7192    # with a dollar sign (not a hyphen), so the echo should work correctly.
7193    # The option is referenced via a variable to avoid confusing sed.
7194    lt_compile=`echo "$ac_compile" | $SED \
7195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197    -e 's:$: $lt_compiler_flag:'`
7198    (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
7199    (eval "$lt_compile" 2>conftest.err)
7200    ac_status=$?
7201    cat conftest.err >&5
7202    echo "$as_me:7202: \$? = $ac_status" >&5
7203    if (exit $ac_status) && test -s "$ac_outfile"; then
7204      # The compiler can only warn and ignore the option if not recognized
7205      # So say no if there are warnings other than the usual output.
7206      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7209        lt_cv_prog_compiler_rtti_exceptions=yes
7210      fi
7211    fi
7212    $rm conftest*
7213
7214 fi
7215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7217
7218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7219     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7220 else
7221     :
7222 fi
7223
7224 fi
7225
7226 lt_prog_compiler_wl=
7227 lt_prog_compiler_pic=
7228 lt_prog_compiler_static=
7229
7230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7232
7233   if test "$GCC" = yes; then
7234     lt_prog_compiler_wl='-Wl,'
7235     lt_prog_compiler_static='-static'
7236
7237     case $host_os in
7238       aix*)
7239       # All AIX code is PIC.
7240       if test "$host_cpu" = ia64; then
7241         # AIX 5 now supports IA64 processor
7242         lt_prog_compiler_static='-Bstatic'
7243       fi
7244       ;;
7245
7246     amigaos*)
7247       # FIXME: we need at least 68020 code to build shared libraries, but
7248       # adding the `-m68020' flag to GCC prevents building anything better,
7249       # like `-m68040'.
7250       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7251       ;;
7252
7253     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7254       # PIC is the default for these OSes.
7255       ;;
7256
7257     mingw* | cygwin* | pw32* | os2*)
7258       # This hack is so that the source file can tell whether it is being
7259       # built for inclusion in a dll (and should export symbols for example).
7260       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7261       # (--disable-auto-import) libraries
7262       lt_prog_compiler_pic='-DDLL_EXPORT'
7263       ;;
7264
7265     darwin* | rhapsody*)
7266       # PIC is the default on this platform
7267       # Common symbols not allowed in MH_DYLIB files
7268       lt_prog_compiler_pic='-fno-common'
7269       ;;
7270
7271     interix[3-9]*)
7272       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7273       # Instead, we relocate shared libraries at runtime.
7274       ;;
7275
7276     msdosdjgpp*)
7277       # Just because we use GCC doesn't mean we suddenly get shared libraries
7278       # on systems that don't support them.
7279       lt_prog_compiler_can_build_shared=no
7280       enable_shared=no
7281       ;;
7282
7283     sysv4*MP*)
7284       if test -d /usr/nec; then
7285         lt_prog_compiler_pic=-Kconform_pic
7286       fi
7287       ;;
7288
7289     hpux*)
7290       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7291       # not for PA HP-UX.
7292       case $host_cpu in
7293       hppa*64*|ia64*)
7294         # +Z the default
7295         ;;
7296       *)
7297         lt_prog_compiler_pic='-fPIC'
7298         ;;
7299       esac
7300       ;;
7301
7302     *)
7303       lt_prog_compiler_pic='-fPIC'
7304       ;;
7305     esac
7306   else
7307     # PORTME Check for flag to pass linker flags through the system compiler.
7308     case $host_os in
7309     aix*)
7310       lt_prog_compiler_wl='-Wl,'
7311       if test "$host_cpu" = ia64; then
7312         # AIX 5 now supports IA64 processor
7313         lt_prog_compiler_static='-Bstatic'
7314       else
7315         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7316       fi
7317       ;;
7318       darwin*)
7319         # PIC is the default on this platform
7320         # Common symbols not allowed in MH_DYLIB files
7321        case $cc_basename in
7322          xlc*)
7323          lt_prog_compiler_pic='-qnocommon'
7324          lt_prog_compiler_wl='-Wl,'
7325          ;;
7326        esac
7327        ;;
7328
7329     mingw* | cygwin* | pw32* | os2*)
7330       # This hack is so that the source file can tell whether it is being
7331       # built for inclusion in a dll (and should export symbols for example).
7332       lt_prog_compiler_pic='-DDLL_EXPORT'
7333       ;;
7334
7335     hpux9* | hpux10* | hpux11*)
7336       lt_prog_compiler_wl='-Wl,'
7337       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7338       # not for PA HP-UX.
7339       case $host_cpu in
7340       hppa*64*|ia64*)
7341         # +Z the default
7342         ;;
7343       *)
7344         lt_prog_compiler_pic='+Z'
7345         ;;
7346       esac
7347       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7348       lt_prog_compiler_static='${wl}-a ${wl}archive'
7349       ;;
7350
7351     irix5* | irix6* | nonstopux*)
7352       lt_prog_compiler_wl='-Wl,'
7353       # PIC (with -KPIC) is the default.
7354       lt_prog_compiler_static='-non_shared'
7355       ;;
7356
7357     newsos6)
7358       lt_prog_compiler_pic='-KPIC'
7359       lt_prog_compiler_static='-Bstatic'
7360       ;;
7361
7362     linux* | k*bsd*-gnu)
7363       case $cc_basename in
7364       icc* | ecc*)
7365         lt_prog_compiler_wl='-Wl,'
7366         lt_prog_compiler_pic='-KPIC'
7367         lt_prog_compiler_static='-static'
7368         ;;
7369       pgcc* | pgf77* | pgf90* | pgf95*)
7370         # Portland Group compilers (*not* the Pentium gcc compiler,
7371         # which looks to be a dead project)
7372         lt_prog_compiler_wl='-Wl,'
7373         lt_prog_compiler_pic='-fpic'
7374         lt_prog_compiler_static='-Bstatic'
7375         ;;
7376       ccc*)
7377         lt_prog_compiler_wl='-Wl,'
7378         # All Alpha code is PIC.
7379         lt_prog_compiler_static='-non_shared'
7380         ;;
7381       *)
7382         case `$CC -V 2>&1 | sed 5q` in
7383         *Sun\ C*)
7384           # Sun C 5.9
7385           lt_prog_compiler_pic='-KPIC'
7386           lt_prog_compiler_static='-Bstatic'
7387           lt_prog_compiler_wl='-Wl,'
7388           ;;
7389         *Sun\ F*)
7390           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7391           lt_prog_compiler_pic='-KPIC'
7392           lt_prog_compiler_static='-Bstatic'
7393           lt_prog_compiler_wl=''
7394           ;;
7395         esac
7396         ;;
7397       esac
7398       ;;
7399
7400     osf3* | osf4* | osf5*)
7401       lt_prog_compiler_wl='-Wl,'
7402       # All OSF/1 code is PIC.
7403       lt_prog_compiler_static='-non_shared'
7404       ;;
7405
7406     rdos*)
7407       lt_prog_compiler_static='-non_shared'
7408       ;;
7409
7410     solaris*)
7411       lt_prog_compiler_pic='-KPIC'
7412       lt_prog_compiler_static='-Bstatic'
7413       case $cc_basename in
7414       f77* | f90* | f95*)
7415         lt_prog_compiler_wl='-Qoption ld ';;
7416       *)
7417         lt_prog_compiler_wl='-Wl,';;
7418       esac
7419       ;;
7420
7421     sunos4*)
7422       lt_prog_compiler_wl='-Qoption ld '
7423       lt_prog_compiler_pic='-PIC'
7424       lt_prog_compiler_static='-Bstatic'
7425       ;;
7426
7427     sysv4 | sysv4.2uw2* | sysv4.3*)
7428       lt_prog_compiler_wl='-Wl,'
7429       lt_prog_compiler_pic='-KPIC'
7430       lt_prog_compiler_static='-Bstatic'
7431       ;;
7432
7433     sysv4*MP*)
7434       if test -d /usr/nec ;then
7435         lt_prog_compiler_pic='-Kconform_pic'
7436         lt_prog_compiler_static='-Bstatic'
7437       fi
7438       ;;
7439
7440     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7441       lt_prog_compiler_wl='-Wl,'
7442       lt_prog_compiler_pic='-KPIC'
7443       lt_prog_compiler_static='-Bstatic'
7444       ;;
7445
7446     unicos*)
7447       lt_prog_compiler_wl='-Wl,'
7448       lt_prog_compiler_can_build_shared=no
7449       ;;
7450
7451     uts4*)
7452       lt_prog_compiler_pic='-pic'
7453       lt_prog_compiler_static='-Bstatic'
7454       ;;
7455
7456     *)
7457       lt_prog_compiler_can_build_shared=no
7458       ;;
7459     esac
7460   fi
7461
7462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7464
7465 #
7466 # Check to make sure the PIC flag actually works.
7467 #
7468 if test -n "$lt_prog_compiler_pic"; then
7469
7470 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7472 if test "${lt_prog_compiler_pic_works+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   lt_prog_compiler_pic_works=no
7476   ac_outfile=conftest.$ac_objext
7477    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7479    # Insert the option either (1) after the last *FLAGS variable, or
7480    # (2) before a word containing "conftest.", or (3) at the end.
7481    # Note that $ac_compile itself does not contain backslashes and begins
7482    # with a dollar sign (not a hyphen), so the echo should work correctly.
7483    # The option is referenced via a variable to avoid confusing sed.
7484    lt_compile=`echo "$ac_compile" | $SED \
7485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7487    -e 's:$: $lt_compiler_flag:'`
7488    (eval echo "\"\$as_me:7488: $lt_compile\"" >&5)
7489    (eval "$lt_compile" 2>conftest.err)
7490    ac_status=$?
7491    cat conftest.err >&5
7492    echo "$as_me:7492: \$? = $ac_status" >&5
7493    if (exit $ac_status) && test -s "$ac_outfile"; then
7494      # The compiler can only warn and ignore the option if not recognized
7495      # So say no if there are warnings other than the usual output.
7496      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7499        lt_prog_compiler_pic_works=yes
7500      fi
7501    fi
7502    $rm conftest*
7503
7504 fi
7505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7506 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7507
7508 if test x"$lt_prog_compiler_pic_works" = xyes; then
7509     case $lt_prog_compiler_pic in
7510      "" | " "*) ;;
7511      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7512      esac
7513 else
7514     lt_prog_compiler_pic=
7515      lt_prog_compiler_can_build_shared=no
7516 fi
7517
7518 fi
7519 case $host_os in
7520   # For platforms which do not support PIC, -DPIC is meaningless:
7521   *djgpp*)
7522     lt_prog_compiler_pic=
7523     ;;
7524   *)
7525     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7526     ;;
7527 esac
7528
7529 #
7530 # Check to make sure the static flag actually works.
7531 #
7532 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7533 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7535 if test "${lt_prog_compiler_static_works+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   lt_prog_compiler_static_works=no
7539    save_LDFLAGS="$LDFLAGS"
7540    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7541    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7542    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7543      # The linker can only warn and ignore the option if not recognized
7544      # So say no if there are warnings
7545      if test -s conftest.err; then
7546        # Append any errors to the config.log.
7547        cat conftest.err 1>&5
7548        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7549        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7550        if diff conftest.exp conftest.er2 >/dev/null; then
7551          lt_prog_compiler_static_works=yes
7552        fi
7553      else
7554        lt_prog_compiler_static_works=yes
7555      fi
7556    fi
7557    $rm conftest*
7558    LDFLAGS="$save_LDFLAGS"
7559
7560 fi
7561 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7562 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7563
7564 if test x"$lt_prog_compiler_static_works" = xyes; then
7565     :
7566 else
7567     lt_prog_compiler_static=
7568 fi
7569
7570
7571 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   lt_cv_prog_compiler_c_o=no
7577    $rm -r conftest 2>/dev/null
7578    mkdir conftest
7579    cd conftest
7580    mkdir out
7581    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7582
7583    lt_compiler_flag="-o out/conftest2.$ac_objext"
7584    # Insert the option either (1) after the last *FLAGS variable, or
7585    # (2) before a word containing "conftest.", or (3) at the end.
7586    # Note that $ac_compile itself does not contain backslashes and begins
7587    # with a dollar sign (not a hyphen), so the echo should work correctly.
7588    lt_compile=`echo "$ac_compile" | $SED \
7589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591    -e 's:$: $lt_compiler_flag:'`
7592    (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593    (eval "$lt_compile" 2>out/conftest.err)
7594    ac_status=$?
7595    cat out/conftest.err >&5
7596    echo "$as_me:7596: \$? = $ac_status" >&5
7597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7598    then
7599      # The compiler can only warn and ignore the option if not recognized
7600      # So say no if there are warnings
7601      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7602      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7603      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7604        lt_cv_prog_compiler_c_o=yes
7605      fi
7606    fi
7607    chmod u+w . 2>&5
7608    $rm conftest*
7609    # SGI C++ compiler will create directory out/ii_files/ for
7610    # template instantiation
7611    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7612    $rm out/* && rmdir out
7613    cd ..
7614    rmdir conftest
7615    $rm conftest*
7616
7617 fi
7618 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7620
7621
7622 hard_links="nottested"
7623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7624   # do not overwrite the value of need_locks provided by the user
7625   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7627   hard_links=yes
7628   $rm conftest*
7629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7630   touch conftest.a
7631   ln conftest.a conftest.b 2>&5 || hard_links=no
7632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7633   { echo "$as_me:$LINENO: result: $hard_links" >&5
7634 echo "${ECHO_T}$hard_links" >&6; }
7635   if test "$hard_links" = no; then
7636     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7638     need_locks=warn
7639   fi
7640 else
7641   need_locks=no
7642 fi
7643
7644 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7646
7647   runpath_var=
7648   allow_undefined_flag=
7649   enable_shared_with_static_runtimes=no
7650   archive_cmds=
7651   archive_expsym_cmds=
7652   old_archive_From_new_cmds=
7653   old_archive_from_expsyms_cmds=
7654   export_dynamic_flag_spec=
7655   whole_archive_flag_spec=
7656   thread_safe_flag_spec=
7657   hardcode_libdir_flag_spec=
7658   hardcode_libdir_flag_spec_ld=
7659   hardcode_libdir_separator=
7660   hardcode_direct=no
7661   hardcode_minus_L=no
7662   hardcode_shlibpath_var=unsupported
7663   link_all_deplibs=unknown
7664   hardcode_automatic=no
7665   module_cmds=
7666   module_expsym_cmds=
7667   always_export_symbols=no
7668   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7669   # include_expsyms should be a list of space-separated symbols to be *always*
7670   # included in the symbol list
7671   include_expsyms=
7672   # exclude_expsyms can be an extended regexp of symbols to exclude
7673   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7674   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7675   # as well as any symbol that contains `d'.
7676   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7677   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7678   # platforms (ab)use it in PIC code, but their linkers get confused if
7679   # the symbol is explicitly referenced.  Since portable code cannot
7680   # rely on this symbol name, it's probably fine to never include it in
7681   # preloaded symbol tables.
7682   extract_expsyms_cmds=
7683   # Just being paranoid about ensuring that cc_basename is set.
7684   for cc_temp in $compiler""; do
7685   case $cc_temp in
7686     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7687     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7688     \-*) ;;
7689     *) break;;
7690   esac
7691 done
7692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7693
7694   case $host_os in
7695   cygwin* | mingw* | pw32*)
7696     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7697     # When not using gcc, we currently assume that we are using
7698     # Microsoft Visual C++.
7699     if test "$GCC" != yes; then
7700       with_gnu_ld=no
7701     fi
7702     ;;
7703   interix*)
7704     # we just hope/assume this is gcc and not c89 (= MSVC++)
7705     with_gnu_ld=yes
7706     ;;
7707   openbsd*)
7708     with_gnu_ld=no
7709     ;;
7710   esac
7711
7712   ld_shlibs=yes
7713   if test "$with_gnu_ld" = yes; then
7714     # If archive_cmds runs LD, not CC, wlarc should be empty
7715     wlarc='${wl}'
7716
7717     # Set some defaults for GNU ld with shared library support. These
7718     # are reset later if shared libraries are not supported. Putting them
7719     # here allows them to be overridden if necessary.
7720     runpath_var=LD_RUN_PATH
7721     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7722     export_dynamic_flag_spec='${wl}--export-dynamic'
7723     # ancient GNU ld didn't support --whole-archive et. al.
7724     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7725         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7726       else
7727         whole_archive_flag_spec=
7728     fi
7729     supports_anon_versioning=no
7730     case `$LD -v 2>/dev/null` in
7731       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7732       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7733       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7734       *\ 2.11.*) ;; # other 2.11 versions
7735       *) supports_anon_versioning=yes ;;
7736     esac
7737
7738     # See if GNU ld supports shared libraries.
7739     case $host_os in
7740     aix3* | aix4* | aix5*)
7741       # On AIX/PPC, the GNU linker is very broken
7742       if test "$host_cpu" != ia64; then
7743         ld_shlibs=no
7744         cat <<EOF 1>&2
7745
7746 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7747 *** to be unable to reliably create shared libraries on AIX.
7748 *** Therefore, libtool is disabling shared libraries support.  If you
7749 *** really care for shared libraries, you may want to modify your PATH
7750 *** so that a non-GNU linker is found, and then restart.
7751
7752 EOF
7753       fi
7754       ;;
7755
7756     amigaos*)
7757       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)'
7758       hardcode_libdir_flag_spec='-L$libdir'
7759       hardcode_minus_L=yes
7760
7761       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7762       # that the semantics of dynamic libraries on AmigaOS, at least up
7763       # to version 4, is to share data among multiple programs linked
7764       # with the same dynamic library.  Since this doesn't match the
7765       # behavior of shared libraries on other platforms, we can't use
7766       # them.
7767       ld_shlibs=no
7768       ;;
7769
7770     beos*)
7771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772         allow_undefined_flag=unsupported
7773         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7774         # support --undefined.  This deserves some investigation.  FIXME
7775         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776       else
7777         ld_shlibs=no
7778       fi
7779       ;;
7780
7781     cygwin* | mingw* | pw32*)
7782       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7783       # as there is no search path for DLLs.
7784       hardcode_libdir_flag_spec='-L$libdir'
7785       allow_undefined_flag=unsupported
7786       always_export_symbols=no
7787       enable_shared_with_static_runtimes=yes
7788       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7789
7790       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7791         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7792         # If the export-symbols file already is a .def file (1st line
7793         # is EXPORTS), use it as is; otherwise, prepend...
7794         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7795           cp $export_symbols $output_objdir/$soname.def;
7796         else
7797           echo EXPORTS > $output_objdir/$soname.def;
7798           cat $export_symbols >> $output_objdir/$soname.def;
7799         fi~
7800         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7801       else
7802         ld_shlibs=no
7803       fi
7804       ;;
7805
7806     interix[3-9]*)
7807       hardcode_direct=no
7808       hardcode_shlibpath_var=no
7809       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7810       export_dynamic_flag_spec='${wl}-E'
7811       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7812       # Instead, shared libraries are loaded at an image base (0x10000000 by
7813       # default) and relocated if they conflict, which is a slow very memory
7814       # consuming and fragmenting process.  To avoid this, we pick a random,
7815       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7816       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7817       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7818       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7819       ;;
7820
7821     gnu* | linux* | k*bsd*-gnu)
7822       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7823         tmp_addflag=
7824         case $cc_basename,$host_cpu in
7825         pgcc*)                          # Portland Group C compiler
7826           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7827           tmp_addflag=' $pic_flag'
7828           ;;
7829         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7830           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7831           tmp_addflag=' $pic_flag -Mnomain' ;;
7832         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7833           tmp_addflag=' -i_dynamic' ;;
7834         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7835           tmp_addflag=' -i_dynamic -nofor_main' ;;
7836         ifc* | ifort*)                  # Intel Fortran compiler
7837           tmp_addflag=' -nofor_main' ;;
7838         esac
7839         case `$CC -V 2>&1 | sed 5q` in
7840         *Sun\ C*)                       # Sun C 5.9
7841           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7842           tmp_sharedflag='-G' ;;
7843         *Sun\ F*)                       # Sun Fortran 8.3
7844           tmp_sharedflag='-G' ;;
7845         *)
7846           tmp_sharedflag='-shared' ;;
7847         esac
7848         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849
7850         if test $supports_anon_versioning = yes; then
7851           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7852   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7853   $echo "local: *; };" >> $output_objdir/$libname.ver~
7854           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7855         fi
7856         link_all_deplibs=no
7857       else
7858         ld_shlibs=no
7859       fi
7860       ;;
7861
7862     netbsd* | netbsdelf*-gnu)
7863       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7864         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7865         wlarc=
7866       else
7867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7868         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7869       fi
7870       ;;
7871
7872     solaris*)
7873       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7874         ld_shlibs=no
7875         cat <<EOF 1>&2
7876
7877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7878 *** create shared libraries on Solaris systems.  Therefore, libtool
7879 *** is disabling shared libraries support.  We urge you to upgrade GNU
7880 *** binutils to release 2.9.1 or newer.  Another option is to modify
7881 *** your PATH or compiler configuration so that the native linker is
7882 *** used, and then restart.
7883
7884 EOF
7885       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7888       else
7889         ld_shlibs=no
7890       fi
7891       ;;
7892
7893     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7894       case `$LD -v 2>&1` in
7895         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7896         ld_shlibs=no
7897         cat <<_LT_EOF 1>&2
7898
7899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7900 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7901 *** is disabling shared libraries support.  We urge you to upgrade GNU
7902 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7903 *** your PATH or compiler configuration so that the native linker is
7904 *** used, and then restart.
7905
7906 _LT_EOF
7907         ;;
7908         *)
7909           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7911             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7912             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7913           else
7914             ld_shlibs=no
7915           fi
7916         ;;
7917       esac
7918       ;;
7919
7920     sunos4*)
7921       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7922       wlarc=
7923       hardcode_direct=yes
7924       hardcode_shlibpath_var=no
7925       ;;
7926
7927     *)
7928       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7930         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7931       else
7932         ld_shlibs=no
7933       fi
7934       ;;
7935     esac
7936
7937     if test "$ld_shlibs" = no; then
7938       runpath_var=
7939       hardcode_libdir_flag_spec=
7940       export_dynamic_flag_spec=
7941       whole_archive_flag_spec=
7942     fi
7943   else
7944     # PORTME fill in a description of your system's linker (not GNU ld)
7945     case $host_os in
7946     aix3*)
7947       allow_undefined_flag=unsupported
7948       always_export_symbols=yes
7949       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'
7950       # Note: this linker hardcodes the directories in LIBPATH if there
7951       # are no directories specified by -L.
7952       hardcode_minus_L=yes
7953       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7954         # Neither direct hardcoding nor static linking is supported with a
7955         # broken collect2.
7956         hardcode_direct=unsupported
7957       fi
7958       ;;
7959
7960     aix4* | aix5*)
7961       if test "$host_cpu" = ia64; then
7962         # On IA64, the linker does run time linking by default, so we don't
7963         # have to do anything special.
7964         aix_use_runtimelinking=no
7965         exp_sym_flag='-Bexport'
7966         no_entry_flag=""
7967       else
7968         # If we're using GNU nm, then we don't want the "-C" option.
7969         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7970         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7971           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'
7972         else
7973           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'
7974         fi
7975         aix_use_runtimelinking=no
7976
7977         # Test if we are trying to use run time linking or normal
7978         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7979         # need to do runtime linking.
7980         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7981           for ld_flag in $LDFLAGS; do
7982           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7983             aix_use_runtimelinking=yes
7984             break
7985           fi
7986           done
7987           ;;
7988         esac
7989
7990         exp_sym_flag='-bexport'
7991         no_entry_flag='-bnoentry'
7992       fi
7993
7994       # When large executables or shared objects are built, AIX ld can
7995       # have problems creating the table of contents.  If linking a library
7996       # or program results in "error TOC overflow" add -mminimal-toc to
7997       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7998       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7999
8000       archive_cmds=''
8001       hardcode_direct=yes
8002       hardcode_libdir_separator=':'
8003       link_all_deplibs=yes
8004
8005       if test "$GCC" = yes; then
8006         case $host_os in aix4.[012]|aix4.[012].*)
8007         # We only want to do this on AIX 4.2 and lower, the check
8008         # below for broken collect2 doesn't work under 4.3+
8009           collect2name=`${CC} -print-prog-name=collect2`
8010           if test -f "$collect2name" && \
8011            strings "$collect2name" | grep resolve_lib_name >/dev/null
8012           then
8013           # We have reworked collect2
8014           :
8015           else
8016           # We have old collect2
8017           hardcode_direct=unsupported
8018           # It fails to find uninstalled libraries when the uninstalled
8019           # path is not listed in the libpath.  Setting hardcode_minus_L
8020           # to unsupported forces relinking
8021           hardcode_minus_L=yes
8022           hardcode_libdir_flag_spec='-L$libdir'
8023           hardcode_libdir_separator=
8024           fi
8025           ;;
8026         esac
8027         shared_flag='-shared'
8028         if test "$aix_use_runtimelinking" = yes; then
8029           shared_flag="$shared_flag "'${wl}-G'
8030         fi
8031       else
8032         # not using gcc
8033         if test "$host_cpu" = ia64; then
8034         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8035         # chokes on -Wl,-G. The following line is correct:
8036           shared_flag='-G'
8037         else
8038           if test "$aix_use_runtimelinking" = yes; then
8039             shared_flag='${wl}-G'
8040           else
8041             shared_flag='${wl}-bM:SRE'
8042           fi
8043         fi
8044       fi
8045
8046       # It seems that -bexpall does not export symbols beginning with
8047       # underscore (_), so it is better to generate a list of symbols to export.
8048       always_export_symbols=yes
8049       if test "$aix_use_runtimelinking" = yes; then
8050         # Warning - without using the other runtime loading flags (-brtl),
8051         # -berok will link without error, but may produce a broken library.
8052         allow_undefined_flag='-berok'
8053        # Determine the default libpath from the value encoded in an empty executable.
8054        cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest$ac_exeext &&
8086        $as_test_x conftest$ac_exeext; then
8087
8088 lt_aix_libpath_sed='
8089     /Import File Strings/,/^$/ {
8090         /^0/ {
8091             s/^0  *\(.*\)$/\1/
8092             p
8093         }
8094     }'
8095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8096 # Check for a 64-bit object if we didn't find anything.
8097 if test -z "$aix_libpath"; then
8098   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8099 fi
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108       conftest$ac_exeext conftest.$ac_ext
8109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8110
8111        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8112         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8113        else
8114         if test "$host_cpu" = ia64; then
8115           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8116           allow_undefined_flag="-z nodefs"
8117           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8118         else
8119          # Determine the default libpath from the value encoded in an empty executable.
8120          cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 int
8128 main ()
8129 {
8130
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_link") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest$ac_exeext &&
8152        $as_test_x conftest$ac_exeext; then
8153
8154 lt_aix_libpath_sed='
8155     /Import File Strings/,/^$/ {
8156         /^0/ {
8157             s/^0  *\(.*\)$/\1/
8158             p
8159         }
8160     }'
8161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8162 # Check for a 64-bit object if we didn't find anything.
8163 if test -z "$aix_libpath"; then
8164   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8165 fi
8166 else
8167   echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8174       conftest$ac_exeext conftest.$ac_ext
8175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8176
8177          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8178           # Warning - without using the other run time loading flags,
8179           # -berok will link without error, but may produce a broken library.
8180           no_undefined_flag=' ${wl}-bernotok'
8181           allow_undefined_flag=' ${wl}-berok'
8182           # Exported symbols can be pulled into shared objects from archives
8183           whole_archive_flag_spec='$convenience'
8184           archive_cmds_need_lc=yes
8185           # This is similar to how AIX traditionally builds its shared libraries.
8186           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8187         fi
8188       fi
8189       ;;
8190
8191     amigaos*)
8192       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)'
8193       hardcode_libdir_flag_spec='-L$libdir'
8194       hardcode_minus_L=yes
8195       # see comment about different semantics on the GNU ld section
8196       ld_shlibs=no
8197       ;;
8198
8199     bsdi[45]*)
8200       export_dynamic_flag_spec=-rdynamic
8201       ;;
8202
8203     cygwin* | mingw* | pw32*)
8204       # When not using gcc, we currently assume that we are using
8205       # Microsoft Visual C++.
8206       # hardcode_libdir_flag_spec is actually meaningless, as there is
8207       # no search path for DLLs.
8208       hardcode_libdir_flag_spec=' '
8209       allow_undefined_flag=unsupported
8210       # Tell ltmain to make .lib files, not .a files.
8211       libext=lib
8212       # Tell ltmain to make .dll files, not .so files.
8213       shrext_cmds=".dll"
8214       # FIXME: Setting linknames here is a bad hack.
8215       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8216       # The linker will automatically build a .lib file if we build a DLL.
8217       old_archive_From_new_cmds='true'
8218       # FIXME: Should let the user specify the lib program.
8219       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8220       fix_srcfile_path='`cygpath -w "$srcfile"`'
8221       enable_shared_with_static_runtimes=yes
8222       ;;
8223
8224     darwin* | rhapsody*)
8225       case $host_os in
8226         rhapsody* | darwin1.[012])
8227          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8228          ;;
8229        *) # Darwin 1.3 on
8230          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8231            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8232          else
8233            case ${MACOSX_DEPLOYMENT_TARGET} in
8234              10.[012])
8235                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8236                ;;
8237              10.*)
8238                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8239                ;;
8240            esac
8241          fi
8242          ;;
8243       esac
8244       archive_cmds_need_lc=no
8245       hardcode_direct=no
8246       hardcode_automatic=yes
8247       hardcode_shlibpath_var=unsupported
8248       whole_archive_flag_spec=''
8249       link_all_deplibs=yes
8250     if test "$GCC" = yes ; then
8251         output_verbose_link_cmd='echo'
8252         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8253       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8254       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8255       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}'
8256       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}'
8257     else
8258       case $cc_basename in
8259         xlc*)
8260          output_verbose_link_cmd='echo'
8261          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8262          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8263           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8264          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8265           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}'
8266           ;;
8267        *)
8268          ld_shlibs=no
8269           ;;
8270       esac
8271     fi
8272       ;;
8273
8274     dgux*)
8275       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8276       hardcode_libdir_flag_spec='-L$libdir'
8277       hardcode_shlibpath_var=no
8278       ;;
8279
8280     freebsd1*)
8281       ld_shlibs=no
8282       ;;
8283
8284     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8285     # support.  Future versions do this automatically, but an explicit c++rt0.o
8286     # does not break anything, and helps significantly (at the cost of a little
8287     # extra space).
8288     freebsd2.2*)
8289       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8290       hardcode_libdir_flag_spec='-R$libdir'
8291       hardcode_direct=yes
8292       hardcode_shlibpath_var=no
8293       ;;
8294
8295     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8296     freebsd2*)
8297       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8298       hardcode_direct=yes
8299       hardcode_minus_L=yes
8300       hardcode_shlibpath_var=no
8301       ;;
8302
8303     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8304     freebsd* | dragonfly*)
8305       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8306       hardcode_libdir_flag_spec='-R$libdir'
8307       hardcode_direct=yes
8308       hardcode_shlibpath_var=no
8309       ;;
8310
8311     hpux9*)
8312       if test "$GCC" = yes; then
8313         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'
8314       else
8315         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'
8316       fi
8317       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8318       hardcode_libdir_separator=:
8319       hardcode_direct=yes
8320
8321       # hardcode_minus_L: Not really in the search PATH,
8322       # but as the default location of the library.
8323       hardcode_minus_L=yes
8324       export_dynamic_flag_spec='${wl}-E'
8325       ;;
8326
8327     hpux10*)
8328       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8329         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8330       else
8331         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8332       fi
8333       if test "$with_gnu_ld" = no; then
8334         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8335         hardcode_libdir_separator=:
8336
8337         hardcode_direct=yes
8338         export_dynamic_flag_spec='${wl}-E'
8339
8340         # hardcode_minus_L: Not really in the search PATH,
8341         # but as the default location of the library.
8342         hardcode_minus_L=yes
8343       fi
8344       ;;
8345
8346     hpux11*)
8347       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8348         case $host_cpu in
8349         hppa*64*)
8350           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8351           ;;
8352         ia64*)
8353           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8354           ;;
8355         *)
8356           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8357           ;;
8358         esac
8359       else
8360         case $host_cpu in
8361         hppa*64*)
8362           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8363           ;;
8364         ia64*)
8365           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8366           ;;
8367         *)
8368           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8369           ;;
8370         esac
8371       fi
8372       if test "$with_gnu_ld" = no; then
8373         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374         hardcode_libdir_separator=:
8375
8376         case $host_cpu in
8377         hppa*64*|ia64*)
8378           hardcode_libdir_flag_spec_ld='+b $libdir'
8379           hardcode_direct=no
8380           hardcode_shlibpath_var=no
8381           ;;
8382         *)
8383           hardcode_direct=yes
8384           export_dynamic_flag_spec='${wl}-E'
8385
8386           # hardcode_minus_L: Not really in the search PATH,
8387           # but as the default location of the library.
8388           hardcode_minus_L=yes
8389           ;;
8390         esac
8391       fi
8392       ;;
8393
8394     irix5* | irix6* | nonstopux*)
8395       if test "$GCC" = yes; then
8396         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'
8397       else
8398         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'
8399         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8400       fi
8401       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402       hardcode_libdir_separator=:
8403       link_all_deplibs=yes
8404       ;;
8405
8406     netbsd* | netbsdelf*-gnu)
8407       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8408         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8409       else
8410         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8411       fi
8412       hardcode_libdir_flag_spec='-R$libdir'
8413       hardcode_direct=yes
8414       hardcode_shlibpath_var=no
8415       ;;
8416
8417     newsos6)
8418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419       hardcode_direct=yes
8420       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421       hardcode_libdir_separator=:
8422       hardcode_shlibpath_var=no
8423       ;;
8424
8425     openbsd*)
8426       if test -f /usr/libexec/ld.so; then
8427         hardcode_direct=yes
8428         hardcode_shlibpath_var=no
8429         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8430           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8431           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8432           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8433           export_dynamic_flag_spec='${wl}-E'
8434         else
8435           case $host_os in
8436            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8437              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438              hardcode_libdir_flag_spec='-R$libdir'
8439              ;;
8440            *)
8441              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8442              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8443              ;;
8444           esac
8445         fi
8446       else
8447         ld_shlibs=no
8448       fi
8449       ;;
8450
8451     os2*)
8452       hardcode_libdir_flag_spec='-L$libdir'
8453       hardcode_minus_L=yes
8454       allow_undefined_flag=unsupported
8455       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'
8456       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8457       ;;
8458
8459     osf3*)
8460       if test "$GCC" = yes; then
8461         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8462         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'
8463       else
8464         allow_undefined_flag=' -expect_unresolved \*'
8465         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'
8466       fi
8467       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468       hardcode_libdir_separator=:
8469       ;;
8470
8471     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8472       if test "$GCC" = yes; then
8473         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8474         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'
8475         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8476       else
8477         allow_undefined_flag=' -expect_unresolved \*'
8478         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'
8479         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8480         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8481
8482         # Both c and cxx compiler support -rpath directly
8483         hardcode_libdir_flag_spec='-rpath $libdir'
8484       fi
8485       hardcode_libdir_separator=:
8486       ;;
8487
8488     solaris*)
8489       no_undefined_flag=' -z text'
8490       if test "$GCC" = yes; then
8491         wlarc='${wl}'
8492         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8493         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8494           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8495       else
8496         wlarc=''
8497         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8499         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8500       fi
8501       hardcode_libdir_flag_spec='-R$libdir'
8502       hardcode_shlibpath_var=no
8503       case $host_os in
8504       solaris2.[0-5] | solaris2.[0-5].*) ;;
8505       *)
8506         # The compiler driver will combine and reorder linker options,
8507         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8508         # but is careful enough not to reorder.
8509         # Supported since Solaris 2.6 (maybe 2.5.1?)
8510         if test "$GCC" = yes; then
8511           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8512         else
8513           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8514         fi
8515         ;;
8516       esac
8517       link_all_deplibs=yes
8518       ;;
8519
8520     sunos4*)
8521       if test "x$host_vendor" = xsequent; then
8522         # Use $CC to link under sequent, because it throws in some extra .o
8523         # files that make .init and .fini sections work.
8524         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8525       else
8526         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8527       fi
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_direct=yes
8530       hardcode_minus_L=yes
8531       hardcode_shlibpath_var=no
8532       ;;
8533
8534     sysv4)
8535       case $host_vendor in
8536         sni)
8537           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538           hardcode_direct=yes # is this really true???
8539         ;;
8540         siemens)
8541           ## LD is ld it makes a PLAMLIB
8542           ## CC just makes a GrossModule.
8543           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8544           reload_cmds='$CC -r -o $output$reload_objs'
8545           hardcode_direct=no
8546         ;;
8547         motorola)
8548           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8550         ;;
8551       esac
8552       runpath_var='LD_RUN_PATH'
8553       hardcode_shlibpath_var=no
8554       ;;
8555
8556     sysv4.3*)
8557       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558       hardcode_shlibpath_var=no
8559       export_dynamic_flag_spec='-Bexport'
8560       ;;
8561
8562     sysv4*MP*)
8563       if test -d /usr/nec; then
8564         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565         hardcode_shlibpath_var=no
8566         runpath_var=LD_RUN_PATH
8567         hardcode_runpath_var=yes
8568         ld_shlibs=yes
8569       fi
8570       ;;
8571
8572     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8573       no_undefined_flag='${wl}-z,text'
8574       archive_cmds_need_lc=no
8575       hardcode_shlibpath_var=no
8576       runpath_var='LD_RUN_PATH'
8577
8578       if test "$GCC" = yes; then
8579         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8581       else
8582         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8583         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584       fi
8585       ;;
8586
8587     sysv5* | sco3.2v5* | sco5v6*)
8588       # Note: We can NOT use -z defs as we might desire, because we do not
8589       # link with -lc, and that would cause any symbols used from libc to
8590       # always be unresolved, which means just about no library would
8591       # ever link correctly.  If we're not using GNU ld we use -z text
8592       # though, which does catch some bad symbols but isn't as heavy-handed
8593       # as -z defs.
8594       no_undefined_flag='${wl}-z,text'
8595       allow_undefined_flag='${wl}-z,nodefs'
8596       archive_cmds_need_lc=no
8597       hardcode_shlibpath_var=no
8598       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8599       hardcode_libdir_separator=':'
8600       link_all_deplibs=yes
8601       export_dynamic_flag_spec='${wl}-Bexport'
8602       runpath_var='LD_RUN_PATH'
8603
8604       if test "$GCC" = yes; then
8605         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607       else
8608         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610       fi
8611       ;;
8612
8613     uts4*)
8614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615       hardcode_libdir_flag_spec='-L$libdir'
8616       hardcode_shlibpath_var=no
8617       ;;
8618
8619     *)
8620       ld_shlibs=no
8621       ;;
8622     esac
8623   fi
8624
8625 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8626 echo "${ECHO_T}$ld_shlibs" >&6; }
8627 test "$ld_shlibs" = no && can_build_shared=no
8628
8629 #
8630 # Do we need to explicitly link libc?
8631 #
8632 case "x$archive_cmds_need_lc" in
8633 x|xyes)
8634   # Assume -lc should be added
8635   archive_cmds_need_lc=yes
8636
8637   if test "$enable_shared" = yes && test "$GCC" = yes; then
8638     case $archive_cmds in
8639     *'~'*)
8640       # FIXME: we may have to deal with multi-command sequences.
8641       ;;
8642     '$CC '*)
8643       # Test whether the compiler implicitly links with -lc since on some
8644       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645       # to ld, don't add -lc before -lgcc.
8646       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8648       $rm conftest*
8649       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650
8651       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652   (eval $ac_compile) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } 2>conftest.err; then
8656         soname=conftest
8657         lib=conftest
8658         libobjs=conftest.$ac_objext
8659         deplibs=
8660         wl=$lt_prog_compiler_wl
8661         pic_flag=$lt_prog_compiler_pic
8662         compiler_flags=-v
8663         linker_flags=-v
8664         verstring=
8665         output_objdir=.
8666         libname=conftest
8667         lt_save_allow_undefined_flag=$allow_undefined_flag
8668         allow_undefined_flag=
8669         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8670   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }
8674         then
8675           archive_cmds_need_lc=no
8676         else
8677           archive_cmds_need_lc=yes
8678         fi
8679         allow_undefined_flag=$lt_save_allow_undefined_flag
8680       else
8681         cat conftest.err 1>&5
8682       fi
8683       $rm conftest*
8684       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8685 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8686       ;;
8687     esac
8688   fi
8689   ;;
8690 esac
8691
8692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8694 library_names_spec=
8695 libname_spec='lib$name'
8696 soname_spec=
8697 shrext_cmds=".so"
8698 postinstall_cmds=
8699 postuninstall_cmds=
8700 finish_cmds=
8701 finish_eval=
8702 shlibpath_var=
8703 shlibpath_overrides_runpath=unknown
8704 version_type=none
8705 dynamic_linker="$host_os ld.so"
8706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8707
8708 if test "$GCC" = yes; then
8709   case $host_os in
8710     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8711     *) lt_awk_arg="/^libraries:/" ;;
8712   esac
8713   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8714   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8715     # if the path contains ";" then we assume it to be the separator
8716     # otherwise default to the standard path separator (i.e. ":") - it is
8717     # assumed that no part of a normal pathname contains ";" but that should
8718     # okay in the real world where ";" in dirpaths is itself problematic.
8719     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8720   else
8721     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8722   fi
8723   # Ok, now we have the path, separated by spaces, we can step through it
8724   # and add multilib dir if necessary.
8725   lt_tmp_lt_search_path_spec=
8726   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8727   for lt_sys_path in $lt_search_path_spec; do
8728     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8729       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8730     else
8731       test -d "$lt_sys_path" && \
8732         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8733     fi
8734   done
8735   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8736 BEGIN {RS=" "; FS="/|\n";} {
8737   lt_foo="";
8738   lt_count=0;
8739   for (lt_i = NF; lt_i > 0; lt_i--) {
8740     if ($lt_i != "" && $lt_i != ".") {
8741       if ($lt_i == "..") {
8742         lt_count++;
8743       } else {
8744         if (lt_count == 0) {
8745           lt_foo="/" $lt_i lt_foo;
8746         } else {
8747           lt_count--;
8748         }
8749       }
8750     }
8751   }
8752   if (lt_foo != "") { lt_freq[lt_foo]++; }
8753   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8754 }'`
8755   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8756 else
8757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758 fi
8759 need_lib_prefix=unknown
8760 hardcode_into_libs=no
8761
8762 # when you set need_version to no, make sure it does not cause -set_version
8763 # flags to be left without arguments
8764 need_version=unknown
8765
8766 case $host_os in
8767 aix3*)
8768   version_type=linux
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8770   shlibpath_var=LIBPATH
8771
8772   # AIX 3 has no versioning support, so we append a major version to the name.
8773   soname_spec='${libname}${release}${shared_ext}$major'
8774   ;;
8775
8776 aix4* | aix5*)
8777   version_type=linux
8778   need_lib_prefix=no
8779   need_version=no
8780   hardcode_into_libs=yes
8781   if test "$host_cpu" = ia64; then
8782     # AIX 5 supports IA64
8783     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8784     shlibpath_var=LD_LIBRARY_PATH
8785   else
8786     # With GCC up to 2.95.x, collect2 would create an import file
8787     # for dependence libraries.  The import file would start with
8788     # the line `#! .'.  This would cause the generated library to
8789     # depend on `.', always an invalid library.  This was fixed in
8790     # development snapshots of GCC prior to 3.0.
8791     case $host_os in
8792       aix4 | aix4.[01] | aix4.[01].*)
8793       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8794            echo ' yes '
8795            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8796         :
8797       else
8798         can_build_shared=no
8799       fi
8800       ;;
8801     esac
8802     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8803     # soname into executable. Probably we can add versioning support to
8804     # collect2, so additional links can be useful in future.
8805     if test "$aix_use_runtimelinking" = yes; then
8806       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8807       # instead of lib<name>.a to let people know that these are not
8808       # typical AIX shared libraries.
8809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810     else
8811       # We preserve .a as extension for shared libraries through AIX4.2
8812       # and later when we are not doing run time linking.
8813       library_names_spec='${libname}${release}.a $libname.a'
8814       soname_spec='${libname}${release}${shared_ext}$major'
8815     fi
8816     shlibpath_var=LIBPATH
8817   fi
8818   ;;
8819
8820 amigaos*)
8821   library_names_spec='$libname.ixlibrary $libname.a'
8822   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823   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'
8824   ;;
8825
8826 beos*)
8827   library_names_spec='${libname}${shared_ext}'
8828   dynamic_linker="$host_os ld.so"
8829   shlibpath_var=LIBRARY_PATH
8830   ;;
8831
8832 bsdi[45]*)
8833   version_type=linux
8834   need_version=no
8835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836   soname_spec='${libname}${release}${shared_ext}$major'
8837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8841   # the default ld.so.conf also contains /usr/contrib/lib and
8842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8843   # libtool to hard-code these into programs
8844   ;;
8845
8846 cygwin* | mingw* | pw32*)
8847   version_type=windows
8848   shrext_cmds=".dll"
8849   need_version=no
8850   need_lib_prefix=no
8851
8852   case $GCC,$host_os in
8853   yes,cygwin* | yes,mingw* | yes,pw32*)
8854     library_names_spec='$libname.dll.a'
8855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8856     postinstall_cmds='base_file=`basename \${file}`~
8857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8858       dldir=$destdir/`dirname \$dlpath`~
8859       test -d \$dldir || mkdir -p \$dldir~
8860       $install_prog $dir/$dlname \$dldir/$dlname~
8861       chmod a+x \$dldir/$dlname'
8862     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8863       dlpath=$dir/\$dldll~
8864        $rm \$dlpath'
8865     shlibpath_overrides_runpath=yes
8866
8867     case $host_os in
8868     cygwin*)
8869       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8870       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8872       ;;
8873     mingw*)
8874       # MinGW DLLs use traditional 'lib' prefix
8875       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8878         # It is most probably a Windows format PATH printed by
8879         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8880         # path with ; separators, and with drive letters. We can handle the
8881         # drive letters (cygwin fileutils understands them), so leave them,
8882         # especially as we might pass files found there to a mingw objdump,
8883         # which wouldn't understand a cygwinified path. Ahh.
8884         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8885       else
8886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8887       fi
8888       ;;
8889     pw32*)
8890       # pw32 DLLs use 'pw' prefix rather than 'lib'
8891       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8892       ;;
8893     esac
8894     ;;
8895
8896   *)
8897     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8898     ;;
8899   esac
8900   dynamic_linker='Win32 ld.exe'
8901   # FIXME: first we should search . and the directory the executable is in
8902   shlibpath_var=PATH
8903   ;;
8904
8905 darwin* | rhapsody*)
8906   dynamic_linker="$host_os dyld"
8907   version_type=darwin
8908   need_lib_prefix=no
8909   need_version=no
8910   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8911   soname_spec='${libname}${release}${major}$shared_ext'
8912   shlibpath_overrides_runpath=yes
8913   shlibpath_var=DYLD_LIBRARY_PATH
8914   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8915
8916   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8917   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8918   ;;
8919
8920 dgux*)
8921   version_type=linux
8922   need_lib_prefix=no
8923   need_version=no
8924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8925   soname_spec='${libname}${release}${shared_ext}$major'
8926   shlibpath_var=LD_LIBRARY_PATH
8927   ;;
8928
8929 freebsd1*)
8930   dynamic_linker=no
8931   ;;
8932
8933 freebsd* | dragonfly*)
8934   # DragonFly does not have aout.  When/if they implement a new
8935   # versioning mechanism, adjust this.
8936   if test -x /usr/bin/objformat; then
8937     objformat=`/usr/bin/objformat`
8938   else
8939     case $host_os in
8940     freebsd[123]*) objformat=aout ;;
8941     *) objformat=elf ;;
8942     esac
8943   fi
8944   version_type=freebsd-$objformat
8945   case $version_type in
8946     freebsd-elf*)
8947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8948       need_version=no
8949       need_lib_prefix=no
8950       ;;
8951     freebsd-*)
8952       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8953       need_version=yes
8954       ;;
8955   esac
8956   shlibpath_var=LD_LIBRARY_PATH
8957   case $host_os in
8958   freebsd2*)
8959     shlibpath_overrides_runpath=yes
8960     ;;
8961   freebsd3.[01]* | freebsdelf3.[01]*)
8962     shlibpath_overrides_runpath=yes
8963     hardcode_into_libs=yes
8964     ;;
8965   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8966   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8967     shlibpath_overrides_runpath=no
8968     hardcode_into_libs=yes
8969     ;;
8970   *) # from 4.6 on, and DragonFly
8971     shlibpath_overrides_runpath=yes
8972     hardcode_into_libs=yes
8973     ;;
8974   esac
8975   ;;
8976
8977 gnu*)
8978   version_type=linux
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   shlibpath_var=LD_LIBRARY_PATH
8984   hardcode_into_libs=yes
8985   ;;
8986
8987 hpux9* | hpux10* | hpux11*)
8988   # Give a soname corresponding to the major version so that dld.sl refuses to
8989   # link against other versions.
8990   version_type=sunos
8991   need_lib_prefix=no
8992   need_version=no
8993   case $host_cpu in
8994   ia64*)
8995     shrext_cmds='.so'
8996     hardcode_into_libs=yes
8997     dynamic_linker="$host_os dld.so"
8998     shlibpath_var=LD_LIBRARY_PATH
8999     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001     soname_spec='${libname}${release}${shared_ext}$major'
9002     if test "X$HPUX_IA64_MODE" = X32; then
9003       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9004     else
9005       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9006     fi
9007     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008     ;;
9009    hppa*64*)
9010      shrext_cmds='.sl'
9011      hardcode_into_libs=yes
9012      dynamic_linker="$host_os dld.sl"
9013      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9014      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9015      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016      soname_spec='${libname}${release}${shared_ext}$major'
9017      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9018      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9019      ;;
9020    *)
9021     shrext_cmds='.sl'
9022     dynamic_linker="$host_os dld.sl"
9023     shlibpath_var=SHLIB_PATH
9024     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026     soname_spec='${libname}${release}${shared_ext}$major'
9027     ;;
9028   esac
9029   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9030   postinstall_cmds='chmod 555 $lib'
9031   ;;
9032
9033 interix[3-9]*)
9034   version_type=linux
9035   need_lib_prefix=no
9036   need_version=no
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   shlibpath_overrides_runpath=no
9042   hardcode_into_libs=yes
9043   ;;
9044
9045 irix5* | irix6* | nonstopux*)
9046   case $host_os in
9047     nonstopux*) version_type=nonstopux ;;
9048     *)
9049         if test "$lt_cv_prog_gnu_ld" = yes; then
9050                 version_type=linux
9051         else
9052                 version_type=irix
9053         fi ;;
9054   esac
9055   need_lib_prefix=no
9056   need_version=no
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9059   case $host_os in
9060   irix5* | nonstopux*)
9061     libsuff= shlibsuff=
9062     ;;
9063   *)
9064     case $LD in # libtool.m4 will add one of these switches to LD
9065     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9066       libsuff= shlibsuff= libmagic=32-bit;;
9067     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9068       libsuff=32 shlibsuff=N32 libmagic=N32;;
9069     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9070       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9071     *) libsuff= shlibsuff= libmagic=never-match;;
9072     esac
9073     ;;
9074   esac
9075   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9076   shlibpath_overrides_runpath=no
9077   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9078   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9079   hardcode_into_libs=yes
9080   ;;
9081
9082 # No shared lib support for Linux oldld, aout, or coff.
9083 linux*oldld* | linux*aout* | linux*coff*)
9084   dynamic_linker=no
9085   ;;
9086
9087 # This must be Linux ELF.
9088 linux* | k*bsd*-gnu)
9089   version_type=linux
9090   need_lib_prefix=no
9091   need_version=no
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9095   shlibpath_var=LD_LIBRARY_PATH
9096   shlibpath_overrides_runpath=no
9097   # This implies no fast_install, which is unacceptable.
9098   # Some rework will be needed to allow for fast_install
9099   # before this can be enabled.
9100   hardcode_into_libs=yes
9101
9102   # Append ld.so.conf contents to the search path
9103   if test -f /etc/ld.so.conf; then
9104     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9105     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9106   fi
9107
9108   # We used to test for /lib/ld.so.1 and disable shared libraries on
9109   # powerpc, because MkLinux only supported shared libraries with the
9110   # GNU dynamic linker.  Since this was broken with cross compilers,
9111   # most powerpc-linux boxes support dynamic linking these days and
9112   # people can always --disable-shared, the test was removed, and we
9113   # assume the GNU/Linux dynamic linker is in use.
9114   dynamic_linker='GNU/Linux ld.so'
9115   ;;
9116
9117 netbsdelf*-gnu)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=no
9125   hardcode_into_libs=yes
9126   dynamic_linker='NetBSD ld.elf_so'
9127   ;;
9128
9129 netbsd*)
9130   version_type=sunos
9131   need_lib_prefix=no
9132   need_version=no
9133   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9135     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9136     dynamic_linker='NetBSD (a.out) ld.so'
9137   else
9138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139     soname_spec='${libname}${release}${shared_ext}$major'
9140     dynamic_linker='NetBSD ld.elf_so'
9141   fi
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   hardcode_into_libs=yes
9145   ;;
9146
9147 newsos6)
9148   version_type=linux
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   shlibpath_overrides_runpath=yes
9152   ;;
9153
9154 nto-qnx*)
9155   version_type=linux
9156   need_lib_prefix=no
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   shlibpath_var=LD_LIBRARY_PATH
9161   shlibpath_overrides_runpath=yes
9162   ;;
9163
9164 openbsd*)
9165   version_type=sunos
9166   sys_lib_dlsearch_path_spec="/usr/lib"
9167   need_lib_prefix=no
9168   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9169   case $host_os in
9170     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9171     *)                         need_version=no  ;;
9172   esac
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9175   shlibpath_var=LD_LIBRARY_PATH
9176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9177     case $host_os in
9178       openbsd2.[89] | openbsd2.[89].*)
9179         shlibpath_overrides_runpath=no
9180         ;;
9181       *)
9182         shlibpath_overrides_runpath=yes
9183         ;;
9184       esac
9185   else
9186     shlibpath_overrides_runpath=yes
9187   fi
9188   ;;
9189
9190 os2*)
9191   libname_spec='$name'
9192   shrext_cmds=".dll"
9193   need_lib_prefix=no
9194   library_names_spec='$libname${shared_ext} $libname.a'
9195   dynamic_linker='OS/2 ld.exe'
9196   shlibpath_var=LIBPATH
9197   ;;
9198
9199 osf3* | osf4* | osf5*)
9200   version_type=osf
9201   need_lib_prefix=no
9202   need_version=no
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9207   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9208   ;;
9209
9210 rdos*)
9211   dynamic_linker=no
9212   ;;
9213
9214 solaris*)
9215   version_type=linux
9216   need_lib_prefix=no
9217   need_version=no
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   shlibpath_overrides_runpath=yes
9222   hardcode_into_libs=yes
9223   # ldd complains unless libraries are executable
9224   postinstall_cmds='chmod +x $lib'
9225   ;;
9226
9227 sunos4*)
9228   version_type=sunos
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   shlibpath_overrides_runpath=yes
9233   if test "$with_gnu_ld" = yes; then
9234     need_lib_prefix=no
9235   fi
9236   need_version=yes
9237   ;;
9238
9239 sysv4 | sysv4.3*)
9240   version_type=linux
9241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242   soname_spec='${libname}${release}${shared_ext}$major'
9243   shlibpath_var=LD_LIBRARY_PATH
9244   case $host_vendor in
9245     sni)
9246       shlibpath_overrides_runpath=no
9247       need_lib_prefix=no
9248       export_dynamic_flag_spec='${wl}-Blargedynsym'
9249       runpath_var=LD_RUN_PATH
9250       ;;
9251     siemens)
9252       need_lib_prefix=no
9253       ;;
9254     motorola)
9255       need_lib_prefix=no
9256       need_version=no
9257       shlibpath_overrides_runpath=no
9258       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9259       ;;
9260   esac
9261   ;;
9262
9263 sysv4*MP*)
9264   if test -d /usr/nec ;then
9265     version_type=linux
9266     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9267     soname_spec='$libname${shared_ext}.$major'
9268     shlibpath_var=LD_LIBRARY_PATH
9269   fi
9270   ;;
9271
9272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9273   version_type=freebsd-elf
9274   need_lib_prefix=no
9275   need_version=no
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   hardcode_into_libs=yes
9280   if test "$with_gnu_ld" = yes; then
9281     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9282     shlibpath_overrides_runpath=no
9283   else
9284     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9285     shlibpath_overrides_runpath=yes
9286     case $host_os in
9287       sco3.2v5*)
9288         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9289         ;;
9290     esac
9291   fi
9292   sys_lib_dlsearch_path_spec='/usr/lib'
9293   ;;
9294
9295 uts4*)
9296   version_type=linux
9297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   shlibpath_var=LD_LIBRARY_PATH
9300   ;;
9301
9302 *)
9303   dynamic_linker=no
9304   ;;
9305 esac
9306 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9307 echo "${ECHO_T}$dynamic_linker" >&6; }
9308 test "$dynamic_linker" = no && can_build_shared=no
9309
9310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9311 if test "$GCC" = yes; then
9312   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9313 fi
9314
9315 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9316 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9317 hardcode_action=
9318 if test -n "$hardcode_libdir_flag_spec" || \
9319    test -n "$runpath_var" || \
9320    test "X$hardcode_automatic" = "Xyes" ; then
9321
9322   # We can hardcode non-existant directories.
9323   if test "$hardcode_direct" != no &&
9324      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9325      # have to relink, otherwise we might link with an installed library
9326      # when we should be linking with a yet-to-be-installed one
9327      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9328      test "$hardcode_minus_L" != no; then
9329     # Linking always hardcodes the temporary library directory.
9330     hardcode_action=relink
9331   else
9332     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9333     hardcode_action=immediate
9334   fi
9335 else
9336   # We cannot hardcode anything, or else we can only hardcode existing
9337   # directories.
9338   hardcode_action=unsupported
9339 fi
9340 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9341 echo "${ECHO_T}$hardcode_action" >&6; }
9342
9343 if test "$hardcode_action" = relink; then
9344   # Fast installation is not supported
9345   enable_fast_install=no
9346 elif test "$shlibpath_overrides_runpath" = yes ||
9347      test "$enable_shared" = no; then
9348   # Fast installation is not necessary
9349   enable_fast_install=needless
9350 fi
9351
9352 striplib=
9353 old_striplib=
9354 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9355 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9356 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9357   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9358   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9359   { echo "$as_me:$LINENO: result: yes" >&5
9360 echo "${ECHO_T}yes" >&6; }
9361 else
9362 # FIXME - insert some real tests, host_os isn't really good enough
9363   case $host_os in
9364    darwin*)
9365        if test -n "$STRIP" ; then
9366          striplib="$STRIP -x"
9367          old_striplib="$STRIP -S"
9368          { echo "$as_me:$LINENO: result: yes" >&5
9369 echo "${ECHO_T}yes" >&6; }
9370        else
9371   { echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6; }
9373 fi
9374        ;;
9375    *)
9376   { echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6; }
9378     ;;
9379   esac
9380 fi
9381
9382 if test "x$enable_dlopen" != xyes; then
9383   enable_dlopen=unknown
9384   enable_dlopen_self=unknown
9385   enable_dlopen_self_static=unknown
9386 else
9387   lt_cv_dlopen=no
9388   lt_cv_dlopen_libs=
9389
9390   case $host_os in
9391   beos*)
9392     lt_cv_dlopen="load_add_on"
9393     lt_cv_dlopen_libs=
9394     lt_cv_dlopen_self=yes
9395     ;;
9396
9397   mingw* | pw32*)
9398     lt_cv_dlopen="LoadLibrary"
9399     lt_cv_dlopen_libs=
9400    ;;
9401
9402   cygwin*)
9403     lt_cv_dlopen="dlopen"
9404     lt_cv_dlopen_libs=
9405    ;;
9406
9407   darwin*)
9408   # if libdl is installed we need to link against it
9409     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   ac_check_lib_save_LIBS=$LIBS
9415 LIBS="-ldl  $LIBS"
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422
9423 /* Override any GCC internal prototype to avoid an error.
9424    Use char because int might match the return type of a GCC
9425    builtin and then its argument prototype would still apply.  */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char dlopen ();
9430 int
9431 main ()
9432 {
9433 return dlopen ();
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442   *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445   (eval "$ac_link") 2>conftest.er1
9446   ac_status=$?
9447   grep -v '^ *+' conftest.er1 >conftest.err
9448   rm -f conftest.er1
9449   cat conftest.err >&5
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } && {
9452          test -z "$ac_c_werror_flag" ||
9453          test ! -s conftest.err
9454        } && test -s conftest$ac_exeext &&
9455        $as_test_x conftest$ac_exeext; then
9456   ac_cv_lib_dl_dlopen=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461         ac_cv_lib_dl_dlopen=no
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465       conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9467 fi
9468 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9470 if test $ac_cv_lib_dl_dlopen = yes; then
9471   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9472 else
9473
9474     lt_cv_dlopen="dyld"
9475     lt_cv_dlopen_libs=
9476     lt_cv_dlopen_self=yes
9477
9478 fi
9479
9480    ;;
9481
9482   *)
9483     { echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define shl_load innocuous_shl_load
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char shl_load (); below.
9500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501     <limits.h> exists even on freestanding compilers.  */
9502
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9508
9509 #undef shl_load
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512    Use char because int might match the return type of a GCC
9513    builtin and then its argument prototype would still apply.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char shl_load ();
9518 /* The GNU C library defines this for functions which it implements
9519     to always fail with ENOSYS.  Some functions are actually named
9520     something starting with __ and the normal name is an alias.  */
9521 #if defined __stub_shl_load || defined __stub___shl_load
9522 choke me
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return shl_load ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537   *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540   (eval "$ac_link") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && {
9547          test -z "$ac_c_werror_flag" ||
9548          test ! -s conftest.err
9549        } && test -s conftest$ac_exeext &&
9550        $as_test_x conftest$ac_exeext; then
9551   ac_cv_func_shl_load=yes
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556         ac_cv_func_shl_load=no
9557 fi
9558
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560       conftest$ac_exeext conftest.$ac_ext
9561 fi
9562 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9563 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9564 if test $ac_cv_func_shl_load = yes; then
9565   lt_cv_dlopen="shl_load"
9566 else
9567   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldld  $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580
9581 /* Override any GCC internal prototype to avoid an error.
9582    Use char because int might match the return type of a GCC
9583    builtin and then its argument prototype would still apply.  */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char shl_load ();
9588 int
9589 main ()
9590 {
9591 return shl_load ();
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600   *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603   (eval "$ac_link") 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } && {
9610          test -z "$ac_c_werror_flag" ||
9611          test ! -s conftest.err
9612        } && test -s conftest$ac_exeext &&
9613        $as_test_x conftest$ac_exeext; then
9614   ac_cv_lib_dld_shl_load=yes
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619         ac_cv_lib_dld_shl_load=no
9620 fi
9621
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623       conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9625 fi
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9628 if test $ac_cv_lib_dld_shl_load = yes; then
9629   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9630 else
9631   { echo "$as_me:$LINENO: checking for dlopen" >&5
9632 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9633 if test "${ac_cv_func_dlopen+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636   cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9644 #define dlopen innocuous_dlopen
9645
9646 /* System header to define __stub macros and hopefully few prototypes,
9647     which can conflict with char dlopen (); below.
9648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649     <limits.h> exists even on freestanding compilers.  */
9650
9651 #ifdef __STDC__
9652 # include <limits.h>
9653 #else
9654 # include <assert.h>
9655 #endif
9656
9657 #undef dlopen
9658
9659 /* Override any GCC internal prototype to avoid an error.
9660    Use char because int might match the return type of a GCC
9661    builtin and then its argument prototype would still apply.  */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char dlopen ();
9666 /* The GNU C library defines this for functions which it implements
9667     to always fail with ENOSYS.  Some functions are actually named
9668     something starting with __ and the normal name is an alias.  */
9669 #if defined __stub_dlopen || defined __stub___dlopen
9670 choke me
9671 #endif
9672
9673 int
9674 main ()
9675 {
9676 return dlopen ();
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_link") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && {
9695          test -z "$ac_c_werror_flag" ||
9696          test ! -s conftest.err
9697        } && test -s conftest$ac_exeext &&
9698        $as_test_x conftest$ac_exeext; then
9699   ac_cv_func_dlopen=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704         ac_cv_func_dlopen=no
9705 fi
9706
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708       conftest$ac_exeext conftest.$ac_ext
9709 fi
9710 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9711 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9712 if test $ac_cv_func_dlopen = yes; then
9713   lt_cv_dlopen="dlopen"
9714 else
9715   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9716 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9717 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9718   echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720   ac_check_lib_save_LIBS=$LIBS
9721 LIBS="-ldl  $LIBS"
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728
9729 /* Override any GCC internal prototype to avoid an error.
9730    Use char because int might match the return type of a GCC
9731    builtin and then its argument prototype would still apply.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 char dlopen ();
9736 int
9737 main ()
9738 {
9739 return dlopen ();
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748   *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751   (eval "$ac_link") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } && {
9758          test -z "$ac_c_werror_flag" ||
9759          test ! -s conftest.err
9760        } && test -s conftest$ac_exeext &&
9761        $as_test_x conftest$ac_exeext; then
9762   ac_cv_lib_dl_dlopen=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767         ac_cv_lib_dl_dlopen=no
9768 fi
9769
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771       conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9773 fi
9774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9776 if test $ac_cv_lib_dl_dlopen = yes; then
9777   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9778 else
9779   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9780 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lsvld  $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794    Use char because int might match the return type of a GCC
9795    builtin and then its argument prototype would still apply.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char dlopen ();
9800 int
9801 main ()
9802 {
9803 return dlopen ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_link") 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && {
9822          test -z "$ac_c_werror_flag" ||
9823          test ! -s conftest.err
9824        } && test -s conftest$ac_exeext &&
9825        $as_test_x conftest$ac_exeext; then
9826   ac_cv_lib_svld_dlopen=yes
9827 else
9828   echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831         ac_cv_lib_svld_dlopen=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835       conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_check_lib_save_LIBS
9837 fi
9838 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9840 if test $ac_cv_lib_svld_dlopen = yes; then
9841   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9842 else
9843   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-ldld  $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
9858    Use char because int might match the return type of a GCC
9859    builtin and then its argument prototype would still apply.  */
9860 #ifdef __cplusplus
9861 extern "C"
9862 #endif
9863 char dld_link ();
9864 int
9865 main ()
9866 {
9867 return dld_link ();
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9874 case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_link") 2>conftest.er1
9880   ac_status=$?
9881   grep -v '^ *+' conftest.er1 >conftest.err
9882   rm -f conftest.er1
9883   cat conftest.err >&5
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } && {
9886          test -z "$ac_c_werror_flag" ||
9887          test ! -s conftest.err
9888        } && test -s conftest$ac_exeext &&
9889        $as_test_x conftest$ac_exeext; then
9890   ac_cv_lib_dld_dld_link=yes
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895         ac_cv_lib_dld_dld_link=no
9896 fi
9897
9898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899       conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9901 fi
9902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9903 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9904 if test $ac_cv_lib_dld_dld_link = yes; then
9905   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9906 fi
9907
9908
9909 fi
9910
9911
9912 fi
9913
9914
9915 fi
9916
9917
9918 fi
9919
9920
9921 fi
9922
9923     ;;
9924   esac
9925
9926   if test "x$lt_cv_dlopen" != xno; then
9927     enable_dlopen=yes
9928   else
9929     enable_dlopen=no
9930   fi
9931
9932   case $lt_cv_dlopen in
9933   dlopen)
9934     save_CPPFLAGS="$CPPFLAGS"
9935     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9936
9937     save_LDFLAGS="$LDFLAGS"
9938     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9939
9940     save_LIBS="$LIBS"
9941     LIBS="$lt_cv_dlopen_libs $LIBS"
9942
9943     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9944 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9945 if test "${lt_cv_dlopen_self+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948           if test "$cross_compiling" = yes; then :
9949   lt_cv_dlopen_self=cross
9950 else
9951   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9952   lt_status=$lt_dlunknown
9953   cat > conftest.$ac_ext <<EOF
9954 #line 9954 "configure"
9955 #include "confdefs.h"
9956
9957 #if HAVE_DLFCN_H
9958 #include <dlfcn.h>
9959 #endif
9960
9961 #include <stdio.h>
9962
9963 #ifdef RTLD_GLOBAL
9964 #  define LT_DLGLOBAL           RTLD_GLOBAL
9965 #else
9966 #  ifdef DL_GLOBAL
9967 #    define LT_DLGLOBAL         DL_GLOBAL
9968 #  else
9969 #    define LT_DLGLOBAL         0
9970 #  endif
9971 #endif
9972
9973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9974    find out it does not work in some platform. */
9975 #ifndef LT_DLLAZY_OR_NOW
9976 #  ifdef RTLD_LAZY
9977 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9978 #  else
9979 #    ifdef DL_LAZY
9980 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9981 #    else
9982 #      ifdef RTLD_NOW
9983 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9984 #      else
9985 #        ifdef DL_NOW
9986 #          define LT_DLLAZY_OR_NOW      DL_NOW
9987 #        else
9988 #          define LT_DLLAZY_OR_NOW      0
9989 #        endif
9990 #      endif
9991 #    endif
9992 #  endif
9993 #endif
9994
9995 #ifdef __cplusplus
9996 extern "C" void exit (int);
9997 #endif
9998
9999 void fnord() { int i=42;}
10000 int main ()
10001 {
10002   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10003   int status = $lt_dlunknown;
10004
10005   if (self)
10006     {
10007       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10008       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10009       /* dlclose (self); */
10010     }
10011   else
10012     puts (dlerror ());
10013
10014     exit (status);
10015 }
10016 EOF
10017   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018   (eval $ac_link) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10022     (./conftest; exit; ) >&5 2>/dev/null
10023     lt_status=$?
10024     case x$lt_status in
10025       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10026       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10027       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10028     esac
10029   else :
10030     # compilation failed
10031     lt_cv_dlopen_self=no
10032   fi
10033 fi
10034 rm -fr conftest*
10035
10036
10037 fi
10038 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10039 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10040
10041     if test "x$lt_cv_dlopen_self" = xyes; then
10042       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10043       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10044 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10045 if test "${lt_cv_dlopen_self_static+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048           if test "$cross_compiling" = yes; then :
10049   lt_cv_dlopen_self_static=cross
10050 else
10051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10052   lt_status=$lt_dlunknown
10053   cat > conftest.$ac_ext <<EOF
10054 #line 10054 "configure"
10055 #include "confdefs.h"
10056
10057 #if HAVE_DLFCN_H
10058 #include <dlfcn.h>
10059 #endif
10060
10061 #include <stdio.h>
10062
10063 #ifdef RTLD_GLOBAL
10064 #  define LT_DLGLOBAL           RTLD_GLOBAL
10065 #else
10066 #  ifdef DL_GLOBAL
10067 #    define LT_DLGLOBAL         DL_GLOBAL
10068 #  else
10069 #    define LT_DLGLOBAL         0
10070 #  endif
10071 #endif
10072
10073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10074    find out it does not work in some platform. */
10075 #ifndef LT_DLLAZY_OR_NOW
10076 #  ifdef RTLD_LAZY
10077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10078 #  else
10079 #    ifdef DL_LAZY
10080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10081 #    else
10082 #      ifdef RTLD_NOW
10083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10084 #      else
10085 #        ifdef DL_NOW
10086 #          define LT_DLLAZY_OR_NOW      DL_NOW
10087 #        else
10088 #          define LT_DLLAZY_OR_NOW      0
10089 #        endif
10090 #      endif
10091 #    endif
10092 #  endif
10093 #endif
10094
10095 #ifdef __cplusplus
10096 extern "C" void exit (int);
10097 #endif
10098
10099 void fnord() { int i=42;}
10100 int main ()
10101 {
10102   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10103   int status = $lt_dlunknown;
10104
10105   if (self)
10106     {
10107       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10108       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10109       /* dlclose (self); */
10110     }
10111   else
10112     puts (dlerror ());
10113
10114     exit (status);
10115 }
10116 EOF
10117   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10122     (./conftest; exit; ) >&5 2>/dev/null
10123     lt_status=$?
10124     case x$lt_status in
10125       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10126       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10127       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10128     esac
10129   else :
10130     # compilation failed
10131     lt_cv_dlopen_self_static=no
10132   fi
10133 fi
10134 rm -fr conftest*
10135
10136
10137 fi
10138 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10139 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10140     fi
10141
10142     CPPFLAGS="$save_CPPFLAGS"
10143     LDFLAGS="$save_LDFLAGS"
10144     LIBS="$save_LIBS"
10145     ;;
10146   esac
10147
10148   case $lt_cv_dlopen_self in
10149   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10150   *) enable_dlopen_self=unknown ;;
10151   esac
10152
10153   case $lt_cv_dlopen_self_static in
10154   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10155   *) enable_dlopen_self_static=unknown ;;
10156   esac
10157 fi
10158
10159
10160 # Report which library types will actually be built
10161 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10162 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10163 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10164 echo "${ECHO_T}$can_build_shared" >&6; }
10165
10166 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10167 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10168 test "$can_build_shared" = "no" && enable_shared=no
10169
10170 # On AIX, shared libraries and static libraries use the same namespace, and
10171 # are all built from PIC.
10172 case $host_os in
10173 aix3*)
10174   test "$enable_shared" = yes && enable_static=no
10175   if test -n "$RANLIB"; then
10176     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10177     postinstall_cmds='$RANLIB $lib'
10178   fi
10179   ;;
10180
10181 aix4* | aix5*)
10182   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10183     test "$enable_shared" = yes && enable_static=no
10184   fi
10185     ;;
10186 esac
10187 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10188 echo "${ECHO_T}$enable_shared" >&6; }
10189
10190 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10191 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10192 # Make sure either enable_shared or enable_static is yes.
10193 test "$enable_shared" = yes || enable_static=yes
10194 { echo "$as_me:$LINENO: result: $enable_static" >&5
10195 echo "${ECHO_T}$enable_static" >&6; }
10196
10197 # The else clause should only fire when bootstrapping the
10198 # libtool distribution, otherwise you forgot to ship ltmain.sh
10199 # with your package, and you will get complaints that there are
10200 # no rules to generate ltmain.sh.
10201 if test -f "$ltmain"; then
10202   # See if we are running on zsh, and set the options which allow our commands through
10203   # without removal of \ escapes.
10204   if test -n "${ZSH_VERSION+set}" ; then
10205     setopt NO_GLOB_SUBST
10206   fi
10207   # Now quote all the things that may contain metacharacters while being
10208   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10209   # variables and quote the copies for generation of the libtool script.
10210   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10211     SED SHELL STRIP \
10212     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10213     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10214     deplibs_check_method reload_flag reload_cmds need_locks \
10215     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10216     lt_cv_sys_global_symbol_to_c_name_address \
10217     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10218     old_postinstall_cmds old_postuninstall_cmds \
10219     compiler \
10220     CC \
10221     LD \
10222     lt_prog_compiler_wl \
10223     lt_prog_compiler_pic \
10224     lt_prog_compiler_static \
10225     lt_prog_compiler_no_builtin_flag \
10226     export_dynamic_flag_spec \
10227     thread_safe_flag_spec \
10228     whole_archive_flag_spec \
10229     enable_shared_with_static_runtimes \
10230     old_archive_cmds \
10231     old_archive_from_new_cmds \
10232     predep_objects \
10233     postdep_objects \
10234     predeps \
10235     postdeps \
10236     compiler_lib_search_path \
10237     archive_cmds \
10238     archive_expsym_cmds \
10239     postinstall_cmds \
10240     postuninstall_cmds \
10241     old_archive_from_expsyms_cmds \
10242     allow_undefined_flag \
10243     no_undefined_flag \
10244     export_symbols_cmds \
10245     hardcode_libdir_flag_spec \
10246     hardcode_libdir_flag_spec_ld \
10247     hardcode_libdir_separator \
10248     hardcode_automatic \
10249     module_cmds \
10250     module_expsym_cmds \
10251     lt_cv_prog_compiler_c_o \
10252     fix_srcfile_path \
10253     exclude_expsyms \
10254     include_expsyms; do
10255
10256     case $var in
10257     old_archive_cmds | \
10258     old_archive_from_new_cmds | \
10259     archive_cmds | \
10260     archive_expsym_cmds | \
10261     module_cmds | \
10262     module_expsym_cmds | \
10263     old_archive_from_expsyms_cmds | \
10264     export_symbols_cmds | \
10265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10266     postinstall_cmds | postuninstall_cmds | \
10267     old_postinstall_cmds | old_postuninstall_cmds | \
10268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10269       # Double-quote double-evaled strings.
10270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10271       ;;
10272     *)
10273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10274       ;;
10275     esac
10276   done
10277
10278   case $lt_echo in
10279   *'\$0 --fallback-echo"')
10280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10281     ;;
10282   esac
10283
10284 cfgfile="${ofile}T"
10285   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10286   $rm -f "$cfgfile"
10287   { echo "$as_me:$LINENO: creating $ofile" >&5
10288 echo "$as_me: creating $ofile" >&6;}
10289
10290   cat <<__EOF__ >> "$cfgfile"
10291 #! $SHELL
10292
10293 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10294 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10296 #
10297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10298 # Free Software Foundation, Inc.
10299 #
10300 # This file is part of GNU Libtool:
10301 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10302 #
10303 # This program is free software; you can redistribute it and/or modify
10304 # it under the terms of the GNU General Public License as published by
10305 # the Free Software Foundation; either version 2 of the License, or
10306 # (at your option) any later version.
10307 #
10308 # This program is distributed in the hope that it will be useful, but
10309 # WITHOUT ANY WARRANTY; without even the implied warranty of
10310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10311 # General Public License for more details.
10312 #
10313 # You should have received a copy of the GNU General Public License
10314 # along with this program; if not, write to the Free Software
10315 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10316 #
10317 # As a special exception to the GNU General Public License, if you
10318 # distribute this file as part of a program that contains a
10319 # configuration script generated by Autoconf, you may include it under
10320 # the same distribution terms that you use for the rest of that program.
10321
10322 # A sed program that does not truncate output.
10323 SED=$lt_SED
10324
10325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10326 Xsed="$SED -e 1s/^X//"
10327
10328 # The HP-UX ksh and POSIX shell print the target directory to stdout
10329 # if CDPATH is set.
10330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10331
10332 # The names of the tagged configurations supported by this script.
10333 available_tags=
10334
10335 # ### BEGIN LIBTOOL CONFIG
10336
10337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10338
10339 # Shell to use when invoking shell scripts.
10340 SHELL=$lt_SHELL
10341
10342 # Whether or not to build shared libraries.
10343 build_libtool_libs=$enable_shared
10344
10345 # Whether or not to build static libraries.
10346 build_old_libs=$enable_static
10347
10348 # Whether or not to add -lc for building shared libraries.
10349 build_libtool_need_lc=$archive_cmds_need_lc
10350
10351 # Whether or not to disallow shared libs when runtime libs are static
10352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10353
10354 # Whether or not to optimize for fast installation.
10355 fast_install=$enable_fast_install
10356
10357 # The host system.
10358 host_alias=$host_alias
10359 host=$host
10360 host_os=$host_os
10361
10362 # The build system.
10363 build_alias=$build_alias
10364 build=$build
10365 build_os=$build_os
10366
10367 # An echo program that does not interpret backslashes.
10368 echo=$lt_echo
10369
10370 # The archiver.
10371 AR=$lt_AR
10372 AR_FLAGS=$lt_AR_FLAGS
10373
10374 # A C compiler.
10375 LTCC=$lt_LTCC
10376
10377 # LTCC compiler flags.
10378 LTCFLAGS=$lt_LTCFLAGS
10379
10380 # A language-specific compiler.
10381 CC=$lt_compiler
10382
10383 # Is the compiler the GNU C compiler?
10384 with_gcc=$GCC
10385
10386 # An ERE matcher.
10387 EGREP=$lt_EGREP
10388
10389 # The linker used to build libraries.
10390 LD=$lt_LD
10391
10392 # Whether we need hard or soft links.
10393 LN_S=$lt_LN_S
10394
10395 # A BSD-compatible nm program.
10396 NM=$lt_NM
10397
10398 # A symbol stripping program
10399 STRIP=$lt_STRIP
10400
10401 # Used to examine libraries when file_magic_cmd begins "file"
10402 MAGIC_CMD=$MAGIC_CMD
10403
10404 # Used on cygwin: DLL creation program.
10405 DLLTOOL="$DLLTOOL"
10406
10407 # Used on cygwin: object dumper.
10408 OBJDUMP="$OBJDUMP"
10409
10410 # Used on cygwin: assembler.
10411 AS="$AS"
10412
10413 # The name of the directory that contains temporary libtool files.
10414 objdir=$objdir
10415
10416 # How to create reloadable object files.
10417 reload_flag=$lt_reload_flag
10418 reload_cmds=$lt_reload_cmds
10419
10420 # How to pass a linker flag through the compiler.
10421 wl=$lt_lt_prog_compiler_wl
10422
10423 # Object file suffix (normally "o").
10424 objext="$ac_objext"
10425
10426 # Old archive suffix (normally "a").
10427 libext="$libext"
10428
10429 # Shared library suffix (normally ".so").
10430 shrext_cmds='$shrext_cmds'
10431
10432 # Executable file suffix (normally "").
10433 exeext="$exeext"
10434
10435 # Additional compiler flags for building library objects.
10436 pic_flag=$lt_lt_prog_compiler_pic
10437 pic_mode=$pic_mode
10438
10439 # What is the maximum length of a command?
10440 max_cmd_len=$lt_cv_sys_max_cmd_len
10441
10442 # Does compiler simultaneously support -c and -o options?
10443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10444
10445 # Must we lock files when doing compilation?
10446 need_locks=$lt_need_locks
10447
10448 # Do we need the lib prefix for modules?
10449 need_lib_prefix=$need_lib_prefix
10450
10451 # Do we need a version for libraries?
10452 need_version=$need_version
10453
10454 # Whether dlopen is supported.
10455 dlopen_support=$enable_dlopen
10456
10457 # Whether dlopen of programs is supported.
10458 dlopen_self=$enable_dlopen_self
10459
10460 # Whether dlopen of statically linked programs is supported.
10461 dlopen_self_static=$enable_dlopen_self_static
10462
10463 # Compiler flag to prevent dynamic linking.
10464 link_static_flag=$lt_lt_prog_compiler_static
10465
10466 # Compiler flag to turn off builtin functions.
10467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10468
10469 # Compiler flag to allow reflexive dlopens.
10470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10471
10472 # Compiler flag to generate shared objects directly from archives.
10473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10474
10475 # Compiler flag to generate thread-safe objects.
10476 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10477
10478 # Library versioning type.
10479 version_type=$version_type
10480
10481 # Format of library name prefix.
10482 libname_spec=$lt_libname_spec
10483
10484 # List of archive names.  First name is the real one, the rest are links.
10485 # The last name is the one that the linker finds with -lNAME.
10486 library_names_spec=$lt_library_names_spec
10487
10488 # The coded name of the library, if different from the real name.
10489 soname_spec=$lt_soname_spec
10490
10491 # Commands used to build and install an old-style archive.
10492 RANLIB=$lt_RANLIB
10493 old_archive_cmds=$lt_old_archive_cmds
10494 old_postinstall_cmds=$lt_old_postinstall_cmds
10495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10496
10497 # Create an old-style archive from a shared archive.
10498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10499
10500 # Create a temporary old-style archive to link instead of a shared archive.
10501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10502
10503 # Commands used to build and install a shared archive.
10504 archive_cmds=$lt_archive_cmds
10505 archive_expsym_cmds=$lt_archive_expsym_cmds
10506 postinstall_cmds=$lt_postinstall_cmds
10507 postuninstall_cmds=$lt_postuninstall_cmds
10508
10509 # Commands used to build a loadable module (assumed same as above if empty)
10510 module_cmds=$lt_module_cmds
10511 module_expsym_cmds=$lt_module_expsym_cmds
10512
10513 # Commands to strip libraries.
10514 old_striplib=$lt_old_striplib
10515 striplib=$lt_striplib
10516
10517 # Dependencies to place before the objects being linked to create a
10518 # shared library.
10519 predep_objects=$lt_predep_objects
10520
10521 # Dependencies to place after the objects being linked to create a
10522 # shared library.
10523 postdep_objects=$lt_postdep_objects
10524
10525 # Dependencies to place before the objects being linked to create a
10526 # shared library.
10527 predeps=$lt_predeps
10528
10529 # Dependencies to place after the objects being linked to create a
10530 # shared library.
10531 postdeps=$lt_postdeps
10532
10533 # The library search path used internally by the compiler when linking
10534 # a shared library.
10535 compiler_lib_search_path=$lt_compiler_lib_search_path
10536
10537 # Method to check whether dependent libraries are shared objects.
10538 deplibs_check_method=$lt_deplibs_check_method
10539
10540 # Command to use when deplibs_check_method == file_magic.
10541 file_magic_cmd=$lt_file_magic_cmd
10542
10543 # Flag that allows shared libraries with undefined symbols to be built.
10544 allow_undefined_flag=$lt_allow_undefined_flag
10545
10546 # Flag that forces no undefined symbols.
10547 no_undefined_flag=$lt_no_undefined_flag
10548
10549 # Commands used to finish a libtool library installation in a directory.
10550 finish_cmds=$lt_finish_cmds
10551
10552 # Same as above, but a single script fragment to be evaled but not shown.
10553 finish_eval=$lt_finish_eval
10554
10555 # Take the output of nm and produce a listing of raw symbols and C names.
10556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10557
10558 # Transform the output of nm in a proper C declaration
10559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10560
10561 # Transform the output of nm in a C name address pair
10562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10563
10564 # This is the shared library runtime path variable.
10565 runpath_var=$runpath_var
10566
10567 # This is the shared library path variable.
10568 shlibpath_var=$shlibpath_var
10569
10570 # Is shlibpath searched before the hard-coded library search path?
10571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10572
10573 # How to hardcode a shared library path into an executable.
10574 hardcode_action=$hardcode_action
10575
10576 # Whether we should hardcode library paths into libraries.
10577 hardcode_into_libs=$hardcode_into_libs
10578
10579 # Flag to hardcode \$libdir into a binary during linking.
10580 # This must work even if \$libdir does not exist.
10581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10582
10583 # If ld is used when linking, flag to hardcode \$libdir into
10584 # a binary during linking. This must work even if \$libdir does
10585 # not exist.
10586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10587
10588 # Whether we need a single -rpath flag with a separated argument.
10589 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10590
10591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10592 # resulting binary.
10593 hardcode_direct=$hardcode_direct
10594
10595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10596 # resulting binary.
10597 hardcode_minus_L=$hardcode_minus_L
10598
10599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10600 # the resulting binary.
10601 hardcode_shlibpath_var=$hardcode_shlibpath_var
10602
10603 # Set to yes if building a shared library automatically hardcodes DIR into the library
10604 # and all subsequent libraries and executables linked against it.
10605 hardcode_automatic=$hardcode_automatic
10606
10607 # Variables whose values should be saved in libtool wrapper scripts and
10608 # restored at relink time.
10609 variables_saved_for_relink="$variables_saved_for_relink"
10610
10611 # Whether libtool must link a program against all its dependency libraries.
10612 link_all_deplibs=$link_all_deplibs
10613
10614 # Compile-time system search path for libraries
10615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10616
10617 # Run-time system search path for libraries
10618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10619
10620 # Fix the shell variable \$srcfile for the compiler.
10621 fix_srcfile_path=$lt_fix_srcfile_path
10622
10623 # Set to yes if exported symbols are required.
10624 always_export_symbols=$always_export_symbols
10625
10626 # The commands to list exported symbols.
10627 export_symbols_cmds=$lt_export_symbols_cmds
10628
10629 # The commands to extract the exported symbol list from a shared archive.
10630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10631
10632 # Symbols that should not be listed in the preloaded symbols.
10633 exclude_expsyms=$lt_exclude_expsyms
10634
10635 # Symbols that must always be exported.
10636 include_expsyms=$lt_include_expsyms
10637
10638 # ### END LIBTOOL CONFIG
10639
10640 __EOF__
10641
10642
10643   case $host_os in
10644   aix3*)
10645     cat <<\EOF >> "$cfgfile"
10646
10647 # AIX sometimes has problems with the GCC collect2 program.  For some
10648 # reason, if we set the COLLECT_NAMES environment variable, the problems
10649 # vanish in a puff of smoke.
10650 if test "X${COLLECT_NAMES+set}" != Xset; then
10651   COLLECT_NAMES=
10652   export COLLECT_NAMES
10653 fi
10654 EOF
10655     ;;
10656   esac
10657
10658   # We use sed instead of cat because bash on DJGPP gets confused if
10659   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10660   # text mode, it properly converts lines to CR/LF.  This bash problem
10661   # is reportedly fixed, but why not run on old versions too?
10662   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10663
10664   mv -f "$cfgfile" "$ofile" || \
10665     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10666   chmod +x "$ofile"
10667
10668 else
10669   # If there is no Makefile yet, we rely on a make rule to execute
10670   # `config.status --recheck' to rerun these tests and create the
10671   # libtool script then.
10672   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10673   if test -f "$ltmain_in"; then
10674     test -f Makefile && make "$ltmain"
10675   fi
10676 fi
10677
10678
10679 ac_ext=c
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685 CC="$lt_save_CC"
10686
10687
10688 # Check whether --with-tags was given.
10689 if test "${with_tags+set}" = set; then
10690   withval=$with_tags; tagnames="$withval"
10691 fi
10692
10693
10694 if test -f "$ltmain" && test -n "$tagnames"; then
10695   if test ! -f "${ofile}"; then
10696     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10697 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10698   fi
10699
10700   if test -z "$LTCC"; then
10701     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10702     if test -z "$LTCC"; then
10703       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10704 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10705     else
10706       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10707 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10708     fi
10709   fi
10710   if test -z "$LTCFLAGS"; then
10711     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10712   fi
10713
10714   # Extract list of available tagged configurations in $ofile.
10715   # Note that this assumes the entire list is on one line.
10716   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10717
10718   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10719   for tagname in $tagnames; do
10720     IFS="$lt_save_ifs"
10721     # Check whether tagname contains only valid characters
10722     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10723     "") ;;
10724     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10725 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10726    { (exit 1); exit 1; }; }
10727         ;;
10728     esac
10729
10730     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10731     then
10732       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10733 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10734    { (exit 1); exit 1; }; }
10735     fi
10736
10737     # Update the list of available tags.
10738     if test -n "$tagname"; then
10739       echo appending configuration tag \"$tagname\" to $ofile
10740
10741       case $tagname in
10742       CXX)
10743         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10744             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10745             (test "X$CXX" != "Xg++"))) ; then
10746           ac_ext=cpp
10747 ac_cpp='$CXXCPP $CPPFLAGS'
10748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10751
10752
10753
10754
10755 archive_cmds_need_lc_CXX=no
10756 allow_undefined_flag_CXX=
10757 always_export_symbols_CXX=no
10758 archive_expsym_cmds_CXX=
10759 export_dynamic_flag_spec_CXX=
10760 hardcode_direct_CXX=no
10761 hardcode_libdir_flag_spec_CXX=
10762 hardcode_libdir_flag_spec_ld_CXX=
10763 hardcode_libdir_separator_CXX=
10764 hardcode_minus_L_CXX=no
10765 hardcode_shlibpath_var_CXX=unsupported
10766 hardcode_automatic_CXX=no
10767 module_cmds_CXX=
10768 module_expsym_cmds_CXX=
10769 link_all_deplibs_CXX=unknown
10770 old_archive_cmds_CXX=$old_archive_cmds
10771 no_undefined_flag_CXX=
10772 whole_archive_flag_spec_CXX=
10773 enable_shared_with_static_runtimes_CXX=no
10774
10775 # Dependencies to place before and after the object being linked:
10776 predep_objects_CXX=
10777 postdep_objects_CXX=
10778 predeps_CXX=
10779 postdeps_CXX=
10780 compiler_lib_search_path_CXX=
10781
10782 # Source file extension for C++ test sources.
10783 ac_ext=cpp
10784
10785 # Object file extension for compiled C++ test sources.
10786 objext=o
10787 objext_CXX=$objext
10788
10789 # Code to be used in simple compile tests
10790 lt_simple_compile_test_code="int some_variable = 0;"
10791
10792 # Code to be used in simple link tests
10793 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10794
10795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10796
10797 # If no C compiler was specified, use CC.
10798 LTCC=${LTCC-"$CC"}
10799
10800 # If no C compiler flags were specified, use CFLAGS.
10801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10802
10803 # Allow CC to be a program name with arguments.
10804 compiler=$CC
10805
10806
10807 # save warnings/boilerplate of simple test code
10808 ac_outfile=conftest.$ac_objext
10809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10811 _lt_compiler_boilerplate=`cat conftest.err`
10812 $rm conftest*
10813
10814 ac_outfile=conftest.$ac_objext
10815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10817 _lt_linker_boilerplate=`cat conftest.err`
10818 $rm conftest*
10819
10820
10821 # Allow CC to be a program name with arguments.
10822 lt_save_CC=$CC
10823 lt_save_LD=$LD
10824 lt_save_GCC=$GCC
10825 GCC=$GXX
10826 lt_save_with_gnu_ld=$with_gnu_ld
10827 lt_save_path_LD=$lt_cv_path_LD
10828 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10829   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10830 else
10831   $as_unset lt_cv_prog_gnu_ld
10832 fi
10833 if test -n "${lt_cv_path_LDCXX+set}"; then
10834   lt_cv_path_LD=$lt_cv_path_LDCXX
10835 else
10836   $as_unset lt_cv_path_LD
10837 fi
10838 test -z "${LDCXX+set}" || LD=$LDCXX
10839 CC=${CXX-"c++"}
10840 compiler=$CC
10841 compiler_CXX=$CC
10842 for cc_temp in $compiler""; do
10843   case $cc_temp in
10844     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10845     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10846     \-*) ;;
10847     *) break;;
10848   esac
10849 done
10850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10851
10852
10853 # We don't want -fno-exception wen compiling C++ code, so set the
10854 # no_builtin_flag separately
10855 if test "$GXX" = yes; then
10856   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10857 else
10858   lt_prog_compiler_no_builtin_flag_CXX=
10859 fi
10860
10861 if test "$GXX" = yes; then
10862   # Set up default GNU C++ configuration
10863
10864
10865 # Check whether --with-gnu-ld was given.
10866 if test "${with_gnu_ld+set}" = set; then
10867   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10868 else
10869   with_gnu_ld=no
10870 fi
10871
10872 ac_prog=ld
10873 if test "$GCC" = yes; then
10874   # Check if gcc -print-prog-name=ld gives a path.
10875   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10876 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10877   case $host in
10878   *-*-mingw*)
10879     # gcc leaves a trailing carriage return which upsets mingw
10880     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10881   *)
10882     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10883   esac
10884   case $ac_prog in
10885     # Accept absolute paths.
10886     [\\/]* | ?:[\\/]*)
10887       re_direlt='/[^/][^/]*/\.\./'
10888       # Canonicalize the pathname of ld
10889       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10890       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10891         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10892       done
10893       test -z "$LD" && LD="$ac_prog"
10894       ;;
10895   "")
10896     # If it fails, then pretend we aren't using GCC.
10897     ac_prog=ld
10898     ;;
10899   *)
10900     # If it is relative, then search for the first ld in PATH.
10901     with_gnu_ld=unknown
10902     ;;
10903   esac
10904 elif test "$with_gnu_ld" = yes; then
10905   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10906 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10907 else
10908   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10909 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10910 fi
10911 if test "${lt_cv_path_LD+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   if test -z "$LD"; then
10915   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10916   for ac_dir in $PATH; do
10917     IFS="$lt_save_ifs"
10918     test -z "$ac_dir" && ac_dir=.
10919     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10920       lt_cv_path_LD="$ac_dir/$ac_prog"
10921       # Check to see if the program is GNU ld.  I'd rather use --version,
10922       # but apparently some variants of GNU ld only accept -v.
10923       # Break only if it was the GNU/non-GNU ld that we prefer.
10924       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10925       *GNU* | *'with BFD'*)
10926         test "$with_gnu_ld" != no && break
10927         ;;
10928       *)
10929         test "$with_gnu_ld" != yes && break
10930         ;;
10931       esac
10932     fi
10933   done
10934   IFS="$lt_save_ifs"
10935 else
10936   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10937 fi
10938 fi
10939
10940 LD="$lt_cv_path_LD"
10941 if test -n "$LD"; then
10942   { echo "$as_me:$LINENO: result: $LD" >&5
10943 echo "${ECHO_T}$LD" >&6; }
10944 else
10945   { echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6; }
10947 fi
10948 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10949 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10950    { (exit 1); exit 1; }; }
10951 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10952 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10953 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10957 case `$LD -v 2>&1 </dev/null` in
10958 *GNU* | *'with BFD'*)
10959   lt_cv_prog_gnu_ld=yes
10960   ;;
10961 *)
10962   lt_cv_prog_gnu_ld=no
10963   ;;
10964 esac
10965 fi
10966 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10967 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10968 with_gnu_ld=$lt_cv_prog_gnu_ld
10969
10970
10971
10972   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10973   # archiving commands below assume that GNU ld is being used.
10974   if test "$with_gnu_ld" = yes; then
10975     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10976     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'
10977
10978     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10979     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10980
10981     # If archive_cmds runs LD, not CC, wlarc should be empty
10982     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10983     #     investigate it a little bit more. (MM)
10984     wlarc='${wl}'
10985
10986     # ancient GNU ld didn't support --whole-archive et. al.
10987     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10988         grep 'no-whole-archive' > /dev/null; then
10989       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10990     else
10991       whole_archive_flag_spec_CXX=
10992     fi
10993   else
10994     with_gnu_ld=no
10995     wlarc=
10996
10997     # A generic and very simple default shared library creation
10998     # command for GNU C++ for the case where it uses the native
10999     # linker, instead of GNU ld.  If possible, this setting should
11000     # overridden to take advantage of the native linker features on
11001     # the platform it is being used on.
11002     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11003   fi
11004
11005   # Commands to make compiler produce verbose output that lists
11006   # what "hidden" libraries, object files and flags are used when
11007   # linking a shared library.
11008   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11009
11010 else
11011   GXX=no
11012   with_gnu_ld=no
11013   wlarc=
11014 fi
11015
11016 # PORTME: fill in a description of your system's C++ link characteristics
11017 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11019 ld_shlibs_CXX=yes
11020 case $host_os in
11021   aix3*)
11022     # FIXME: insert proper C++ library support
11023     ld_shlibs_CXX=no
11024     ;;
11025   aix4* | aix5*)
11026     if test "$host_cpu" = ia64; then
11027       # On IA64, the linker does run time linking by default, so we don't
11028       # have to do anything special.
11029       aix_use_runtimelinking=no
11030       exp_sym_flag='-Bexport'
11031       no_entry_flag=""
11032     else
11033       aix_use_runtimelinking=no
11034
11035       # Test if we are trying to use run time linking or normal
11036       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11037       # need to do runtime linking.
11038       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11039         for ld_flag in $LDFLAGS; do
11040           case $ld_flag in
11041           *-brtl*)
11042             aix_use_runtimelinking=yes
11043             break
11044             ;;
11045           esac
11046         done
11047         ;;
11048       esac
11049
11050       exp_sym_flag='-bexport'
11051       no_entry_flag='-bnoentry'
11052     fi
11053
11054     # When large executables or shared objects are built, AIX ld can
11055     # have problems creating the table of contents.  If linking a library
11056     # or program results in "error TOC overflow" add -mminimal-toc to
11057     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11058     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11059
11060     archive_cmds_CXX=''
11061     hardcode_direct_CXX=yes
11062     hardcode_libdir_separator_CXX=':'
11063     link_all_deplibs_CXX=yes
11064
11065     if test "$GXX" = yes; then
11066       case $host_os in aix4.[012]|aix4.[012].*)
11067       # We only want to do this on AIX 4.2 and lower, the check
11068       # below for broken collect2 doesn't work under 4.3+
11069         collect2name=`${CC} -print-prog-name=collect2`
11070         if test -f "$collect2name" && \
11071            strings "$collect2name" | grep resolve_lib_name >/dev/null
11072         then
11073           # We have reworked collect2
11074           :
11075         else
11076           # We have old collect2
11077           hardcode_direct_CXX=unsupported
11078           # It fails to find uninstalled libraries when the uninstalled
11079           # path is not listed in the libpath.  Setting hardcode_minus_L
11080           # to unsupported forces relinking
11081           hardcode_minus_L_CXX=yes
11082           hardcode_libdir_flag_spec_CXX='-L$libdir'
11083           hardcode_libdir_separator_CXX=
11084         fi
11085         ;;
11086       esac
11087       shared_flag='-shared'
11088       if test "$aix_use_runtimelinking" = yes; then
11089         shared_flag="$shared_flag "'${wl}-G'
11090       fi
11091     else
11092       # not using gcc
11093       if test "$host_cpu" = ia64; then
11094         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11095         # chokes on -Wl,-G. The following line is correct:
11096         shared_flag='-G'
11097       else
11098         if test "$aix_use_runtimelinking" = yes; then
11099           shared_flag='${wl}-G'
11100         else
11101           shared_flag='${wl}-bM:SRE'
11102         fi
11103       fi
11104     fi
11105
11106     # It seems that -bexpall does not export symbols beginning with
11107     # underscore (_), so it is better to generate a list of symbols to export.
11108     always_export_symbols_CXX=yes
11109     if test "$aix_use_runtimelinking" = yes; then
11110       # Warning - without using the other runtime loading flags (-brtl),
11111       # -berok will link without error, but may produce a broken library.
11112       allow_undefined_flag_CXX='-berok'
11113       # Determine the default libpath from the value encoded in an empty executable.
11114       cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h.  */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h.  */
11120
11121 int
11122 main ()
11123 {
11124
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_link") 2>conftest.er1
11137   ac_status=$?
11138   grep -v '^ *+' conftest.er1 >conftest.err
11139   rm -f conftest.er1
11140   cat conftest.err >&5
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } && {
11143          test -z "$ac_cxx_werror_flag" ||
11144          test ! -s conftest.err
11145        } && test -s conftest$ac_exeext &&
11146        $as_test_x conftest$ac_exeext; then
11147
11148 lt_aix_libpath_sed='
11149     /Import File Strings/,/^$/ {
11150         /^0/ {
11151             s/^0  *\(.*\)$/\1/
11152             p
11153         }
11154     }'
11155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156 # Check for a 64-bit object if we didn't find anything.
11157 if test -z "$aix_libpath"; then
11158   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11159 fi
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164
11165 fi
11166
11167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168       conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11170
11171       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172
11173       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11174      else
11175       if test "$host_cpu" = ia64; then
11176         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11177         allow_undefined_flag_CXX="-z nodefs"
11178         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11179       else
11180         # Determine the default libpath from the value encoded in an empty executable.
11181         cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187
11188 int
11189 main ()
11190 {
11191
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext conftest$ac_exeext
11197 if { (ac_try="$ac_link"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_link") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } && {
11210          test -z "$ac_cxx_werror_flag" ||
11211          test ! -s conftest.err
11212        } && test -s conftest$ac_exeext &&
11213        $as_test_x conftest$ac_exeext; then
11214
11215 lt_aix_libpath_sed='
11216     /Import File Strings/,/^$/ {
11217         /^0/ {
11218             s/^0  *\(.*\)$/\1/
11219             p
11220         }
11221     }'
11222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11223 # Check for a 64-bit object if we didn't find anything.
11224 if test -z "$aix_libpath"; then
11225   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11226 fi
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235       conftest$ac_exeext conftest.$ac_ext
11236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11237
11238         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11239         # Warning - without using the other run time loading flags,
11240         # -berok will link without error, but may produce a broken library.
11241         no_undefined_flag_CXX=' ${wl}-bernotok'
11242         allow_undefined_flag_CXX=' ${wl}-berok'
11243         # Exported symbols can be pulled into shared objects from archives
11244         whole_archive_flag_spec_CXX='$convenience'
11245         archive_cmds_need_lc_CXX=yes
11246         # This is similar to how AIX traditionally builds its shared libraries.
11247         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11248       fi
11249     fi
11250     ;;
11251
11252   beos*)
11253     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11254       allow_undefined_flag_CXX=unsupported
11255       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11256       # support --undefined.  This deserves some investigation.  FIXME
11257       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11258     else
11259       ld_shlibs_CXX=no
11260     fi
11261     ;;
11262
11263   chorus*)
11264     case $cc_basename in
11265       *)
11266         # FIXME: insert proper C++ library support
11267         ld_shlibs_CXX=no
11268         ;;
11269     esac
11270     ;;
11271
11272   cygwin* | mingw* | pw32*)
11273     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11274     # as there is no search path for DLLs.
11275     hardcode_libdir_flag_spec_CXX='-L$libdir'
11276     allow_undefined_flag_CXX=unsupported
11277     always_export_symbols_CXX=no
11278     enable_shared_with_static_runtimes_CXX=yes
11279
11280     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11281       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11282       # If the export-symbols file already is a .def file (1st line
11283       # is EXPORTS), use it as is; otherwise, prepend...
11284       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11285         cp $export_symbols $output_objdir/$soname.def;
11286       else
11287         echo EXPORTS > $output_objdir/$soname.def;
11288         cat $export_symbols >> $output_objdir/$soname.def;
11289       fi~
11290       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11291     else
11292       ld_shlibs_CXX=no
11293     fi
11294   ;;
11295       darwin* | rhapsody*)
11296         case $host_os in
11297         rhapsody* | darwin1.[012])
11298          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11299          ;;
11300        *) # Darwin 1.3 on
11301          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11302            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11303          else
11304            case ${MACOSX_DEPLOYMENT_TARGET} in
11305              10.[012])
11306                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11307                ;;
11308              10.*)
11309                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11310                ;;
11311            esac
11312          fi
11313          ;;
11314         esac
11315       archive_cmds_need_lc_CXX=no
11316       hardcode_direct_CXX=no
11317       hardcode_automatic_CXX=yes
11318       hardcode_shlibpath_var_CXX=unsupported
11319       whole_archive_flag_spec_CXX=''
11320       link_all_deplibs_CXX=yes
11321
11322     if test "$GXX" = yes ; then
11323       lt_int_apple_cc_single_mod=no
11324       output_verbose_link_cmd='echo'
11325       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11326        lt_int_apple_cc_single_mod=yes
11327       fi
11328       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11329        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11330       else
11331           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11332         fi
11333         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11334         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11335           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11336             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}'
11337           else
11338             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11339           fi
11340             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}'
11341       else
11342       case $cc_basename in
11343         xlc*)
11344          output_verbose_link_cmd='echo'
11345           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11346           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11347           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11348           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11349           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}'
11350           ;;
11351        *)
11352          ld_shlibs_CXX=no
11353           ;;
11354       esac
11355       fi
11356         ;;
11357
11358   dgux*)
11359     case $cc_basename in
11360       ec++*)
11361         # FIXME: insert proper C++ library support
11362         ld_shlibs_CXX=no
11363         ;;
11364       ghcx*)
11365         # Green Hills C++ Compiler
11366         # FIXME: insert proper C++ library support
11367         ld_shlibs_CXX=no
11368         ;;
11369       *)
11370         # FIXME: insert proper C++ library support
11371         ld_shlibs_CXX=no
11372         ;;
11373     esac
11374     ;;
11375   freebsd[12]*)
11376     # C++ shared libraries reported to be fairly broken before switch to ELF
11377     ld_shlibs_CXX=no
11378     ;;
11379   freebsd-elf*)
11380     archive_cmds_need_lc_CXX=no
11381     ;;
11382   freebsd* | dragonfly*)
11383     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11384     # conventions
11385     ld_shlibs_CXX=yes
11386     ;;
11387   gnu*)
11388     ;;
11389   hpux9*)
11390     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11391     hardcode_libdir_separator_CXX=:
11392     export_dynamic_flag_spec_CXX='${wl}-E'
11393     hardcode_direct_CXX=yes
11394     hardcode_minus_L_CXX=yes # Not in the search PATH,
11395                                 # but as the default
11396                                 # location of the library.
11397
11398     case $cc_basename in
11399     CC*)
11400       # FIXME: insert proper C++ library support
11401       ld_shlibs_CXX=no
11402       ;;
11403     aCC*)
11404       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'
11405       # Commands to make compiler produce verbose output that lists
11406       # what "hidden" libraries, object files and flags are used when
11407       # linking a shared library.
11408       #
11409       # There doesn't appear to be a way to prevent this compiler from
11410       # explicitly linking system object files so we need to strip them
11411       # from the output so that they don't get included in the library
11412       # dependencies.
11413       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'
11414       ;;
11415     *)
11416       if test "$GXX" = yes; then
11417         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'
11418       else
11419         # FIXME: insert proper C++ library support
11420         ld_shlibs_CXX=no
11421       fi
11422       ;;
11423     esac
11424     ;;
11425   hpux10*|hpux11*)
11426     if test $with_gnu_ld = no; then
11427       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428       hardcode_libdir_separator_CXX=:
11429
11430       case $host_cpu in
11431       hppa*64*|ia64*) ;;
11432       *)
11433         export_dynamic_flag_spec_CXX='${wl}-E'
11434         ;;
11435       esac
11436     fi
11437     case $host_cpu in
11438     hppa*64*|ia64*)
11439       hardcode_direct_CXX=no
11440       hardcode_shlibpath_var_CXX=no
11441       ;;
11442     *)
11443       hardcode_direct_CXX=yes
11444       hardcode_minus_L_CXX=yes # Not in the search PATH,
11445                                               # but as the default
11446                                               # location of the library.
11447       ;;
11448     esac
11449
11450     case $cc_basename in
11451       CC*)
11452         # FIXME: insert proper C++ library support
11453         ld_shlibs_CXX=no
11454         ;;
11455       aCC*)
11456         case $host_cpu in
11457         hppa*64*)
11458           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11459           ;;
11460         ia64*)
11461           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11462           ;;
11463         *)
11464           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465           ;;
11466         esac
11467         # Commands to make compiler produce verbose output that lists
11468         # what "hidden" libraries, object files and flags are used when
11469         # linking a shared library.
11470         #
11471         # There doesn't appear to be a way to prevent this compiler from
11472         # explicitly linking system object files so we need to strip them
11473         # from the output so that they don't get included in the library
11474         # dependencies.
11475         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'
11476         ;;
11477       *)
11478         if test "$GXX" = yes; then
11479           if test $with_gnu_ld = no; then
11480             case $host_cpu in
11481             hppa*64*)
11482               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11483               ;;
11484             ia64*)
11485               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486               ;;
11487             *)
11488               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'
11489               ;;
11490             esac
11491           fi
11492         else
11493           # FIXME: insert proper C++ library support
11494           ld_shlibs_CXX=no
11495         fi
11496         ;;
11497     esac
11498     ;;
11499   interix[3-9]*)
11500     hardcode_direct_CXX=no
11501     hardcode_shlibpath_var_CXX=no
11502     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503     export_dynamic_flag_spec_CXX='${wl}-E'
11504     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11505     # Instead, shared libraries are loaded at an image base (0x10000000 by
11506     # default) and relocated if they conflict, which is a slow very memory
11507     # consuming and fragmenting process.  To avoid this, we pick a random,
11508     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11509     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11510     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11511     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11512     ;;
11513   irix5* | irix6*)
11514     case $cc_basename in
11515       CC*)
11516         # SGI C++
11517         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11518
11519         # Archives containing C++ object files must be created using
11520         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11521         # necessary to make sure instantiated templates are included
11522         # in the archive.
11523         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11524         ;;
11525       *)
11526         if test "$GXX" = yes; then
11527           if test "$with_gnu_ld" = no; then
11528             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11529           else
11530             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'
11531           fi
11532         fi
11533         link_all_deplibs_CXX=yes
11534         ;;
11535     esac
11536     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11537     hardcode_libdir_separator_CXX=:
11538     ;;
11539   linux* | k*bsd*-gnu)
11540     case $cc_basename in
11541       KCC*)
11542         # Kuck and Associates, Inc. (KAI) C++ Compiler
11543
11544         # KCC will only create a shared library if the output file
11545         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11546         # to its proper name (with version) after linking.
11547         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'
11548         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'
11549         # Commands to make compiler produce verbose output that lists
11550         # what "hidden" libraries, object files and flags are used when
11551         # linking a shared library.
11552         #
11553         # There doesn't appear to be a way to prevent this compiler from
11554         # explicitly linking system object files so we need to strip them
11555         # from the output so that they don't get included in the library
11556         # dependencies.
11557         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'
11558
11559         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11560         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11561
11562         # Archives containing C++ object files must be created using
11563         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11564         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11565         ;;
11566       icpc*)
11567         # Intel C++
11568         with_gnu_ld=yes
11569         # version 8.0 and above of icpc choke on multiply defined symbols
11570         # if we add $predep_objects and $postdep_objects, however 7.1 and
11571         # earlier do not add the objects themselves.
11572         case `$CC -V 2>&1` in
11573         *"Version 7."*)
11574           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575           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'
11576           ;;
11577         *)  # Version 8.0 or newer
11578           tmp_idyn=
11579           case $host_cpu in
11580             ia64*) tmp_idyn=' -i_dynamic';;
11581           esac
11582           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11584           ;;
11585         esac
11586         archive_cmds_need_lc_CXX=no
11587         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11589         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11590         ;;
11591       pgCC*)
11592         # Portland Group C++ compiler
11593         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11594         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11595
11596         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11597         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11598         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11599         ;;
11600       cxx*)
11601         # Compaq C++
11602         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603         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'
11604
11605         runpath_var=LD_RUN_PATH
11606         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11607         hardcode_libdir_separator_CXX=:
11608
11609         # Commands to make compiler produce verbose output that lists
11610         # what "hidden" libraries, object files and flags are used when
11611         # linking a shared library.
11612         #
11613         # There doesn't appear to be a way to prevent this compiler from
11614         # explicitly linking system object files so we need to strip them
11615         # from the output so that they don't get included in the library
11616         # dependencies.
11617         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'
11618         ;;
11619       *)
11620         case `$CC -V 2>&1 | sed 5q` in
11621         *Sun\ C*)
11622           # Sun C++ 5.9
11623           no_undefined_flag_CXX=' -zdefs'
11624           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11625           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11626           hardcode_libdir_flag_spec_CXX='-R$libdir'
11627           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11628
11629           # Not sure whether something based on
11630           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11631           # would be better.
11632           output_verbose_link_cmd='echo'
11633
11634           # Archives containing C++ object files must be created using
11635           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11636           # necessary to make sure instantiated templates are included
11637           # in the archive.
11638           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11639           ;;
11640         esac
11641         ;;
11642     esac
11643     ;;
11644   lynxos*)
11645     # FIXME: insert proper C++ library support
11646     ld_shlibs_CXX=no
11647     ;;
11648   m88k*)
11649     # FIXME: insert proper C++ library support
11650     ld_shlibs_CXX=no
11651     ;;
11652   mvs*)
11653     case $cc_basename in
11654       cxx*)
11655         # FIXME: insert proper C++ library support
11656         ld_shlibs_CXX=no
11657         ;;
11658       *)
11659         # FIXME: insert proper C++ library support
11660         ld_shlibs_CXX=no
11661         ;;
11662     esac
11663     ;;
11664   netbsd* | netbsdelf*-gnu)
11665     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11666       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11667       wlarc=
11668       hardcode_libdir_flag_spec_CXX='-R$libdir'
11669       hardcode_direct_CXX=yes
11670       hardcode_shlibpath_var_CXX=no
11671     fi
11672     # Workaround some broken pre-1.5 toolchains
11673     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11674     ;;
11675   openbsd2*)
11676     # C++ shared libraries are fairly broken
11677     ld_shlibs_CXX=no
11678     ;;
11679   openbsd*)
11680     if test -f /usr/libexec/ld.so; then
11681       hardcode_direct_CXX=yes
11682       hardcode_shlibpath_var_CXX=no
11683       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11684       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11685       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11686         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11687         export_dynamic_flag_spec_CXX='${wl}-E'
11688         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11689       fi
11690       output_verbose_link_cmd='echo'
11691     else
11692       ld_shlibs_CXX=no
11693     fi
11694     ;;
11695   osf3*)
11696     case $cc_basename in
11697       KCC*)
11698         # Kuck and Associates, Inc. (KAI) C++ Compiler
11699
11700         # KCC will only create a shared library if the output file
11701         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11702         # to its proper name (with version) after linking.
11703         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'
11704
11705         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11706         hardcode_libdir_separator_CXX=:
11707
11708         # Archives containing C++ object files must be created using
11709         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11710         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11711
11712         ;;
11713       RCC*)
11714         # Rational C++ 2.4.1
11715         # FIXME: insert proper C++ library support
11716         ld_shlibs_CXX=no
11717         ;;
11718       cxx*)
11719         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11720         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11721
11722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11723         hardcode_libdir_separator_CXX=:
11724
11725         # Commands to make compiler produce verbose output that lists
11726         # what "hidden" libraries, object files and flags are used when
11727         # linking a shared library.
11728         #
11729         # There doesn't appear to be a way to prevent this compiler from
11730         # explicitly linking system object files so we need to strip them
11731         # from the output so that they don't get included in the library
11732         # dependencies.
11733         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'
11734         ;;
11735       *)
11736         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11737           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11738           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11739
11740           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11741           hardcode_libdir_separator_CXX=:
11742
11743           # Commands to make compiler produce verbose output that lists
11744           # what "hidden" libraries, object files and flags are used when
11745           # linking a shared library.
11746           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11747
11748         else
11749           # FIXME: insert proper C++ library support
11750           ld_shlibs_CXX=no
11751         fi
11752         ;;
11753     esac
11754     ;;
11755   osf4* | osf5*)
11756     case $cc_basename in
11757       KCC*)
11758         # Kuck and Associates, Inc. (KAI) C++ Compiler
11759
11760         # KCC will only create a shared library if the output file
11761         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11762         # to its proper name (with version) after linking.
11763         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'
11764
11765         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11766         hardcode_libdir_separator_CXX=:
11767
11768         # Archives containing C++ object files must be created using
11769         # the KAI C++ compiler.
11770         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11771         ;;
11772       RCC*)
11773         # Rational C++ 2.4.1
11774         # FIXME: insert proper C++ library support
11775         ld_shlibs_CXX=no
11776         ;;
11777       cxx*)
11778         allow_undefined_flag_CXX=' -expect_unresolved \*'
11779         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11780         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11781           echo "-hidden">> $lib.exp~
11782           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11783           $rm $lib.exp'
11784
11785         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11786         hardcode_libdir_separator_CXX=:
11787
11788         # Commands to make compiler produce verbose output that lists
11789         # what "hidden" libraries, object files and flags are used when
11790         # linking a shared library.
11791         #
11792         # There doesn't appear to be a way to prevent this compiler from
11793         # explicitly linking system object files so we need to strip them
11794         # from the output so that they don't get included in the library
11795         # dependencies.
11796         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'
11797         ;;
11798       *)
11799         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11800           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11801          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11802
11803           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11804           hardcode_libdir_separator_CXX=:
11805
11806           # Commands to make compiler produce verbose output that lists
11807           # what "hidden" libraries, object files and flags are used when
11808           # linking a shared library.
11809           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11810
11811         else
11812           # FIXME: insert proper C++ library support
11813           ld_shlibs_CXX=no
11814         fi
11815         ;;
11816     esac
11817     ;;
11818   psos*)
11819     # FIXME: insert proper C++ library support
11820     ld_shlibs_CXX=no
11821     ;;
11822   sunos4*)
11823     case $cc_basename in
11824       CC*)
11825         # Sun C++ 4.x
11826         # FIXME: insert proper C++ library support
11827         ld_shlibs_CXX=no
11828         ;;
11829       lcc*)
11830         # Lucid
11831         # FIXME: insert proper C++ library support
11832         ld_shlibs_CXX=no
11833         ;;
11834       *)
11835         # FIXME: insert proper C++ library support
11836         ld_shlibs_CXX=no
11837         ;;
11838     esac
11839     ;;
11840   solaris*)
11841     case $cc_basename in
11842       CC*)
11843         # Sun C++ 4.2, 5.x and Centerline C++
11844         archive_cmds_need_lc_CXX=yes
11845         no_undefined_flag_CXX=' -zdefs'
11846         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11848         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11849
11850         hardcode_libdir_flag_spec_CXX='-R$libdir'
11851         hardcode_shlibpath_var_CXX=no
11852         case $host_os in
11853           solaris2.[0-5] | solaris2.[0-5].*) ;;
11854           *)
11855             # The compiler driver will combine and reorder linker options,
11856             # but understands `-z linker_flag'.
11857             # Supported since Solaris 2.6 (maybe 2.5.1?)
11858             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11859             ;;
11860         esac
11861         link_all_deplibs_CXX=yes
11862
11863         output_verbose_link_cmd='echo'
11864
11865         # Archives containing C++ object files must be created using
11866         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11867         # necessary to make sure instantiated templates are included
11868         # in the archive.
11869         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11870         ;;
11871       gcx*)
11872         # Green Hills C++ Compiler
11873         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11874
11875         # The C++ compiler must be used to create the archive.
11876         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11877         ;;
11878       *)
11879         # GNU C++ compiler with Solaris linker
11880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11881           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11882           if $CC --version | grep -v '^2\.7' > /dev/null; then
11883             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11884             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11885                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11886
11887             # Commands to make compiler produce verbose output that lists
11888             # what "hidden" libraries, object files and flags are used when
11889             # linking a shared library.
11890             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11891           else
11892             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11893             # platform.
11894             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11895             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11896                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11897
11898             # Commands to make compiler produce verbose output that lists
11899             # what "hidden" libraries, object files and flags are used when
11900             # linking a shared library.
11901             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11902           fi
11903
11904           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11905           case $host_os in
11906           solaris2.[0-5] | solaris2.[0-5].*) ;;
11907           *)
11908             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11909             ;;
11910           esac
11911         fi
11912         ;;
11913     esac
11914     ;;
11915   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11916     no_undefined_flag_CXX='${wl}-z,text'
11917     archive_cmds_need_lc_CXX=no
11918     hardcode_shlibpath_var_CXX=no
11919     runpath_var='LD_RUN_PATH'
11920
11921     case $cc_basename in
11922       CC*)
11923         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925         ;;
11926       *)
11927         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929         ;;
11930     esac
11931     ;;
11932   sysv5* | sco3.2v5* | sco5v6*)
11933     # Note: We can NOT use -z defs as we might desire, because we do not
11934     # link with -lc, and that would cause any symbols used from libc to
11935     # always be unresolved, which means just about no library would
11936     # ever link correctly.  If we're not using GNU ld we use -z text
11937     # though, which does catch some bad symbols but isn't as heavy-handed
11938     # as -z defs.
11939     # For security reasons, it is highly recommended that you always
11940     # use absolute paths for naming shared libraries, and exclude the
11941     # DT_RUNPATH tag from executables and libraries.  But doing so
11942     # requires that you compile everything twice, which is a pain.
11943     # So that behaviour is only enabled if SCOABSPATH is set to a
11944     # non-empty value in the environment.  Most likely only useful for
11945     # creating official distributions of packages.
11946     # This is a hack until libtool officially supports absolute path
11947     # names for shared libraries.
11948     no_undefined_flag_CXX='${wl}-z,text'
11949     allow_undefined_flag_CXX='${wl}-z,nodefs'
11950     archive_cmds_need_lc_CXX=no
11951     hardcode_shlibpath_var_CXX=no
11952     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11953     hardcode_libdir_separator_CXX=':'
11954     link_all_deplibs_CXX=yes
11955     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11956     runpath_var='LD_RUN_PATH'
11957
11958     case $cc_basename in
11959       CC*)
11960         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11961         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11962         ;;
11963       *)
11964         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11965         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11966         ;;
11967     esac
11968     ;;
11969   tandem*)
11970     case $cc_basename in
11971       NCC*)
11972         # NonStop-UX NCC 3.20
11973         # FIXME: insert proper C++ library support
11974         ld_shlibs_CXX=no
11975         ;;
11976       *)
11977         # FIXME: insert proper C++ library support
11978         ld_shlibs_CXX=no
11979         ;;
11980     esac
11981     ;;
11982   vxworks*)
11983     # FIXME: insert proper C++ library support
11984     ld_shlibs_CXX=no
11985     ;;
11986   *)
11987     # FIXME: insert proper C++ library support
11988     ld_shlibs_CXX=no
11989     ;;
11990 esac
11991 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11992 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11993 test "$ld_shlibs_CXX" = no && can_build_shared=no
11994
11995 GCC_CXX="$GXX"
11996 LD_CXX="$LD"
11997
11998
11999 cat > conftest.$ac_ext <<EOF
12000 class Foo
12001 {
12002 public:
12003   Foo (void) { a = 0; }
12004 private:
12005   int a;
12006 };
12007 EOF
12008
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010   (eval $ac_compile) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; then
12014   # Parse the compiler output and extract the necessary
12015   # objects, libraries and library flags.
12016
12017   # Sentinel used to keep track of whether or not we are before
12018   # the conftest object file.
12019   pre_test_object_deps_done=no
12020
12021   # The `*' in the case matches for architectures that use `case' in
12022   # $output_verbose_cmd can trigger glob expansion during the loop
12023   # eval without this substitution.
12024   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12025
12026   for p in `eval $output_verbose_link_cmd`; do
12027     case $p in
12028
12029     -L* | -R* | -l*)
12030        # Some compilers place space between "-{L,R}" and the path.
12031        # Remove the space.
12032        if test $p = "-L" \
12033           || test $p = "-R"; then
12034          prev=$p
12035          continue
12036        else
12037          prev=
12038        fi
12039
12040        if test "$pre_test_object_deps_done" = no; then
12041          case $p in
12042          -L* | -R*)
12043            # Internal compiler library paths should come after those
12044            # provided the user.  The postdeps already come after the
12045            # user supplied libs so there is no need to process them.
12046            if test -z "$compiler_lib_search_path_CXX"; then
12047              compiler_lib_search_path_CXX="${prev}${p}"
12048            else
12049              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12050            fi
12051            ;;
12052          # The "-l" case would never come before the object being
12053          # linked, so don't bother handling this case.
12054          esac
12055        else
12056          if test -z "$postdeps_CXX"; then
12057            postdeps_CXX="${prev}${p}"
12058          else
12059            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12060          fi
12061        fi
12062        ;;
12063
12064     *.$objext)
12065        # This assumes that the test object file only shows up
12066        # once in the compiler output.
12067        if test "$p" = "conftest.$objext"; then
12068          pre_test_object_deps_done=yes
12069          continue
12070        fi
12071
12072        if test "$pre_test_object_deps_done" = no; then
12073          if test -z "$predep_objects_CXX"; then
12074            predep_objects_CXX="$p"
12075          else
12076            predep_objects_CXX="$predep_objects_CXX $p"
12077          fi
12078        else
12079          if test -z "$postdep_objects_CXX"; then
12080            postdep_objects_CXX="$p"
12081          else
12082            postdep_objects_CXX="$postdep_objects_CXX $p"
12083          fi
12084        fi
12085        ;;
12086
12087     *) ;; # Ignore the rest.
12088
12089     esac
12090   done
12091
12092   # Clean up.
12093   rm -f a.out a.exe
12094 else
12095   echo "libtool.m4: error: problem compiling CXX test program"
12096 fi
12097
12098 $rm -f confest.$objext
12099
12100 # PORTME: override above test on systems where it is broken
12101 case $host_os in
12102 interix[3-9]*)
12103   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12104   # hack all around it, let's just trust "g++" to DTRT.
12105   predep_objects_CXX=
12106   postdep_objects_CXX=
12107   postdeps_CXX=
12108   ;;
12109
12110 linux*)
12111   case `$CC -V 2>&1 | sed 5q` in
12112   *Sun\ C*)
12113     # Sun C++ 5.9
12114     #
12115     # The more standards-conforming stlport4 library is
12116     # incompatible with the Cstd library. Avoid specifying
12117     # it if it's in CXXFLAGS. Ignore libCrun as
12118     # -library=stlport4 depends on it.
12119     case " $CXX $CXXFLAGS " in
12120     *" -library=stlport4 "*)
12121       solaris_use_stlport4=yes
12122       ;;
12123     esac
12124     if test "$solaris_use_stlport4" != yes; then
12125       postdeps_CXX='-library=Cstd -library=Crun'
12126     fi
12127     ;;
12128   esac
12129   ;;
12130
12131 solaris*)
12132   case $cc_basename in
12133   CC*)
12134     # The more standards-conforming stlport4 library is
12135     # incompatible with the Cstd library. Avoid specifying
12136     # it if it's in CXXFLAGS. Ignore libCrun as
12137     # -library=stlport4 depends on it.
12138     case " $CXX $CXXFLAGS " in
12139     *" -library=stlport4 "*)
12140       solaris_use_stlport4=yes
12141       ;;
12142     esac
12143
12144     # Adding this requires a known-good setup of shared libraries for
12145     # Sun compiler versions before 5.6, else PIC objects from an old
12146     # archive will be linked into the output, leading to subtle bugs.
12147     if test "$solaris_use_stlport4" != yes; then
12148       postdeps_CXX='-library=Cstd -library=Crun'
12149     fi
12150     ;;
12151   esac
12152   ;;
12153 esac
12154
12155
12156 case " $postdeps_CXX " in
12157 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12158 esac
12159
12160 lt_prog_compiler_wl_CXX=
12161 lt_prog_compiler_pic_CXX=
12162 lt_prog_compiler_static_CXX=
12163
12164 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12165 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12166
12167   # C++ specific cases for pic, static, wl, etc.
12168   if test "$GXX" = yes; then
12169     lt_prog_compiler_wl_CXX='-Wl,'
12170     lt_prog_compiler_static_CXX='-static'
12171
12172     case $host_os in
12173     aix*)
12174       # All AIX code is PIC.
12175       if test "$host_cpu" = ia64; then
12176         # AIX 5 now supports IA64 processor
12177         lt_prog_compiler_static_CXX='-Bstatic'
12178       fi
12179       ;;
12180     amigaos*)
12181       # FIXME: we need at least 68020 code to build shared libraries, but
12182       # adding the `-m68020' flag to GCC prevents building anything better,
12183       # like `-m68040'.
12184       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12185       ;;
12186     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12187       # PIC is the default for these OSes.
12188       ;;
12189     mingw* | cygwin* | os2* | pw32*)
12190       # This hack is so that the source file can tell whether it is being
12191       # built for inclusion in a dll (and should export symbols for example).
12192       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12193       # (--disable-auto-import) libraries
12194       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12195       ;;
12196     darwin* | rhapsody*)
12197       # PIC is the default on this platform
12198       # Common symbols not allowed in MH_DYLIB files
12199       lt_prog_compiler_pic_CXX='-fno-common'
12200       ;;
12201     *djgpp*)
12202       # DJGPP does not support shared libraries at all
12203       lt_prog_compiler_pic_CXX=
12204       ;;
12205     interix[3-9]*)
12206       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12207       # Instead, we relocate shared libraries at runtime.
12208       ;;
12209     sysv4*MP*)
12210       if test -d /usr/nec; then
12211         lt_prog_compiler_pic_CXX=-Kconform_pic
12212       fi
12213       ;;
12214     hpux*)
12215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12216       # not for PA HP-UX.
12217       case $host_cpu in
12218       hppa*64*|ia64*)
12219         ;;
12220       *)
12221         lt_prog_compiler_pic_CXX='-fPIC'
12222         ;;
12223       esac
12224       ;;
12225     *)
12226       lt_prog_compiler_pic_CXX='-fPIC'
12227       ;;
12228     esac
12229   else
12230     case $host_os in
12231       aix4* | aix5*)
12232         # All AIX code is PIC.
12233         if test "$host_cpu" = ia64; then
12234           # AIX 5 now supports IA64 processor
12235           lt_prog_compiler_static_CXX='-Bstatic'
12236         else
12237           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12238         fi
12239         ;;
12240       chorus*)
12241         case $cc_basename in
12242         cxch68*)
12243           # Green Hills C++ Compiler
12244           # _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"
12245           ;;
12246         esac
12247         ;;
12248        darwin*)
12249          # PIC is the default on this platform
12250          # Common symbols not allowed in MH_DYLIB files
12251          case $cc_basename in
12252            xlc*)
12253            lt_prog_compiler_pic_CXX='-qnocommon'
12254            lt_prog_compiler_wl_CXX='-Wl,'
12255            ;;
12256          esac
12257        ;;
12258       dgux*)
12259         case $cc_basename in
12260           ec++*)
12261             lt_prog_compiler_pic_CXX='-KPIC'
12262             ;;
12263           ghcx*)
12264             # Green Hills C++ Compiler
12265             lt_prog_compiler_pic_CXX='-pic'
12266             ;;
12267           *)
12268             ;;
12269         esac
12270         ;;
12271       freebsd* | dragonfly*)
12272         # FreeBSD uses GNU C++
12273         ;;
12274       hpux9* | hpux10* | hpux11*)
12275         case $cc_basename in
12276           CC*)
12277             lt_prog_compiler_wl_CXX='-Wl,'
12278             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12279             if test "$host_cpu" != ia64; then
12280               lt_prog_compiler_pic_CXX='+Z'
12281             fi
12282             ;;
12283           aCC*)
12284             lt_prog_compiler_wl_CXX='-Wl,'
12285             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12286             case $host_cpu in
12287             hppa*64*|ia64*)
12288               # +Z the default
12289               ;;
12290             *)
12291               lt_prog_compiler_pic_CXX='+Z'
12292               ;;
12293             esac
12294             ;;
12295           *)
12296             ;;
12297         esac
12298         ;;
12299       interix*)
12300         # This is c89, which is MS Visual C++ (no shared libs)
12301         # Anyone wants to do a port?
12302         ;;
12303       irix5* | irix6* | nonstopux*)
12304         case $cc_basename in
12305           CC*)
12306             lt_prog_compiler_wl_CXX='-Wl,'
12307             lt_prog_compiler_static_CXX='-non_shared'
12308             # CC pic flag -KPIC is the default.
12309             ;;
12310           *)
12311             ;;
12312         esac
12313         ;;
12314       linux* | k*bsd*-gnu)
12315         case $cc_basename in
12316           KCC*)
12317             # KAI C++ Compiler
12318             lt_prog_compiler_wl_CXX='--backend -Wl,'
12319             lt_prog_compiler_pic_CXX='-fPIC'
12320             ;;
12321           icpc* | ecpc*)
12322             # Intel C++
12323             lt_prog_compiler_wl_CXX='-Wl,'
12324             lt_prog_compiler_pic_CXX='-KPIC'
12325             lt_prog_compiler_static_CXX='-static'
12326             ;;
12327           pgCC*)
12328             # Portland Group C++ compiler.
12329             lt_prog_compiler_wl_CXX='-Wl,'
12330             lt_prog_compiler_pic_CXX='-fpic'
12331             lt_prog_compiler_static_CXX='-Bstatic'
12332             ;;
12333           cxx*)
12334             # Compaq C++
12335             # Make sure the PIC flag is empty.  It appears that all Alpha
12336             # Linux and Compaq Tru64 Unix objects are PIC.
12337             lt_prog_compiler_pic_CXX=
12338             lt_prog_compiler_static_CXX='-non_shared'
12339             ;;
12340           *)
12341             case `$CC -V 2>&1 | sed 5q` in
12342             *Sun\ C*)
12343               # Sun C++ 5.9
12344               lt_prog_compiler_pic_CXX='-KPIC'
12345               lt_prog_compiler_static_CXX='-Bstatic'
12346               lt_prog_compiler_wl_CXX='-Qoption ld '
12347               ;;
12348             esac
12349             ;;
12350         esac
12351         ;;
12352       lynxos*)
12353         ;;
12354       m88k*)
12355         ;;
12356       mvs*)
12357         case $cc_basename in
12358           cxx*)
12359             lt_prog_compiler_pic_CXX='-W c,exportall'
12360             ;;
12361           *)
12362             ;;
12363         esac
12364         ;;
12365       netbsd* | netbsdelf*-gnu)
12366         ;;
12367       osf3* | osf4* | osf5*)
12368         case $cc_basename in
12369           KCC*)
12370             lt_prog_compiler_wl_CXX='--backend -Wl,'
12371             ;;
12372           RCC*)
12373             # Rational C++ 2.4.1
12374             lt_prog_compiler_pic_CXX='-pic'
12375             ;;
12376           cxx*)
12377             # Digital/Compaq C++
12378             lt_prog_compiler_wl_CXX='-Wl,'
12379             # Make sure the PIC flag is empty.  It appears that all Alpha
12380             # Linux and Compaq Tru64 Unix objects are PIC.
12381             lt_prog_compiler_pic_CXX=
12382             lt_prog_compiler_static_CXX='-non_shared'
12383             ;;
12384           *)
12385             ;;
12386         esac
12387         ;;
12388       psos*)
12389         ;;
12390       solaris*)
12391         case $cc_basename in
12392           CC*)
12393             # Sun C++ 4.2, 5.x and Centerline C++
12394             lt_prog_compiler_pic_CXX='-KPIC'
12395             lt_prog_compiler_static_CXX='-Bstatic'
12396             lt_prog_compiler_wl_CXX='-Qoption ld '
12397             ;;
12398           gcx*)
12399             # Green Hills C++ Compiler
12400             lt_prog_compiler_pic_CXX='-PIC'
12401             ;;
12402           *)
12403             ;;
12404         esac
12405         ;;
12406       sunos4*)
12407         case $cc_basename in
12408           CC*)
12409             # Sun C++ 4.x
12410             lt_prog_compiler_pic_CXX='-pic'
12411             lt_prog_compiler_static_CXX='-Bstatic'
12412             ;;
12413           lcc*)
12414             # Lucid
12415             lt_prog_compiler_pic_CXX='-pic'
12416             ;;
12417           *)
12418             ;;
12419         esac
12420         ;;
12421       tandem*)
12422         case $cc_basename in
12423           NCC*)
12424             # NonStop-UX NCC 3.20
12425             lt_prog_compiler_pic_CXX='-KPIC'
12426             ;;
12427           *)
12428             ;;
12429         esac
12430         ;;
12431       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12432         case $cc_basename in
12433           CC*)
12434             lt_prog_compiler_wl_CXX='-Wl,'
12435             lt_prog_compiler_pic_CXX='-KPIC'
12436             lt_prog_compiler_static_CXX='-Bstatic'
12437             ;;
12438         esac
12439         ;;
12440       vxworks*)
12441         ;;
12442       *)
12443         lt_prog_compiler_can_build_shared_CXX=no
12444         ;;
12445     esac
12446   fi
12447
12448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12449 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12450
12451 #
12452 # Check to make sure the PIC flag actually works.
12453 #
12454 if test -n "$lt_prog_compiler_pic_CXX"; then
12455
12456 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12458 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   lt_prog_compiler_pic_works_CXX=no
12462   ac_outfile=conftest.$ac_objext
12463    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12464    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12465    # Insert the option either (1) after the last *FLAGS variable, or
12466    # (2) before a word containing "conftest.", or (3) at the end.
12467    # Note that $ac_compile itself does not contain backslashes and begins
12468    # with a dollar sign (not a hyphen), so the echo should work correctly.
12469    # The option is referenced via a variable to avoid confusing sed.
12470    lt_compile=`echo "$ac_compile" | $SED \
12471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12473    -e 's:$: $lt_compiler_flag:'`
12474    (eval echo "\"\$as_me:12474: $lt_compile\"" >&5)
12475    (eval "$lt_compile" 2>conftest.err)
12476    ac_status=$?
12477    cat conftest.err >&5
12478    echo "$as_me:12478: \$? = $ac_status" >&5
12479    if (exit $ac_status) && test -s "$ac_outfile"; then
12480      # The compiler can only warn and ignore the option if not recognized
12481      # So say no if there are warnings other than the usual output.
12482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12483      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12484      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12485        lt_prog_compiler_pic_works_CXX=yes
12486      fi
12487    fi
12488    $rm conftest*
12489
12490 fi
12491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12492 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12493
12494 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12495     case $lt_prog_compiler_pic_CXX in
12496      "" | " "*) ;;
12497      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12498      esac
12499 else
12500     lt_prog_compiler_pic_CXX=
12501      lt_prog_compiler_can_build_shared_CXX=no
12502 fi
12503
12504 fi
12505 case $host_os in
12506   # For platforms which do not support PIC, -DPIC is meaningless:
12507   *djgpp*)
12508     lt_prog_compiler_pic_CXX=
12509     ;;
12510   *)
12511     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12512     ;;
12513 esac
12514
12515 #
12516 # Check to make sure the static flag actually works.
12517 #
12518 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12519 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12521 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   lt_prog_compiler_static_works_CXX=no
12525    save_LDFLAGS="$LDFLAGS"
12526    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12527    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12528    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12529      # The linker can only warn and ignore the option if not recognized
12530      # So say no if there are warnings
12531      if test -s conftest.err; then
12532        # Append any errors to the config.log.
12533        cat conftest.err 1>&5
12534        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12535        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12536        if diff conftest.exp conftest.er2 >/dev/null; then
12537          lt_prog_compiler_static_works_CXX=yes
12538        fi
12539      else
12540        lt_prog_compiler_static_works_CXX=yes
12541      fi
12542    fi
12543    $rm conftest*
12544    LDFLAGS="$save_LDFLAGS"
12545
12546 fi
12547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12548 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12549
12550 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12551     :
12552 else
12553     lt_prog_compiler_static_CXX=
12554 fi
12555
12556
12557 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   lt_cv_prog_compiler_c_o_CXX=no
12563    $rm -r conftest 2>/dev/null
12564    mkdir conftest
12565    cd conftest
12566    mkdir out
12567    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12568
12569    lt_compiler_flag="-o out/conftest2.$ac_objext"
12570    # Insert the option either (1) after the last *FLAGS variable, or
12571    # (2) before a word containing "conftest.", or (3) at the end.
12572    # Note that $ac_compile itself does not contain backslashes and begins
12573    # with a dollar sign (not a hyphen), so the echo should work correctly.
12574    lt_compile=`echo "$ac_compile" | $SED \
12575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12577    -e 's:$: $lt_compiler_flag:'`
12578    (eval echo "\"\$as_me:12578: $lt_compile\"" >&5)
12579    (eval "$lt_compile" 2>out/conftest.err)
12580    ac_status=$?
12581    cat out/conftest.err >&5
12582    echo "$as_me:12582: \$? = $ac_status" >&5
12583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12584    then
12585      # The compiler can only warn and ignore the option if not recognized
12586      # So say no if there are warnings
12587      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12588      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12589      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12590        lt_cv_prog_compiler_c_o_CXX=yes
12591      fi
12592    fi
12593    chmod u+w . 2>&5
12594    $rm conftest*
12595    # SGI C++ compiler will create directory out/ii_files/ for
12596    # template instantiation
12597    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12598    $rm out/* && rmdir out
12599    cd ..
12600    rmdir conftest
12601    $rm conftest*
12602
12603 fi
12604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12606
12607
12608 hard_links="nottested"
12609 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12610   # do not overwrite the value of need_locks provided by the user
12611   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12613   hard_links=yes
12614   $rm conftest*
12615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12616   touch conftest.a
12617   ln conftest.a conftest.b 2>&5 || hard_links=no
12618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12619   { echo "$as_me:$LINENO: result: $hard_links" >&5
12620 echo "${ECHO_T}$hard_links" >&6; }
12621   if test "$hard_links" = no; then
12622     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12624     need_locks=warn
12625   fi
12626 else
12627   need_locks=no
12628 fi
12629
12630 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12632
12633   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12634   case $host_os in
12635   aix4* | aix5*)
12636     # If we're using GNU nm, then we don't want the "-C" option.
12637     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12638     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12639       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'
12640     else
12641       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'
12642     fi
12643     ;;
12644   pw32*)
12645     export_symbols_cmds_CXX="$ltdll_cmds"
12646   ;;
12647   cygwin* | mingw*)
12648     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12649   ;;
12650   linux* | k*bsd*-gnu)
12651     link_all_deplibs_CXX=no
12652   ;;
12653   *)
12654     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12655   ;;
12656   esac
12657
12658 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12659 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12660 test "$ld_shlibs_CXX" = no && can_build_shared=no
12661
12662 #
12663 # Do we need to explicitly link libc?
12664 #
12665 case "x$archive_cmds_need_lc_CXX" in
12666 x|xyes)
12667   # Assume -lc should be added
12668   archive_cmds_need_lc_CXX=yes
12669
12670   if test "$enable_shared" = yes && test "$GCC" = yes; then
12671     case $archive_cmds_CXX in
12672     *'~'*)
12673       # FIXME: we may have to deal with multi-command sequences.
12674       ;;
12675     '$CC '*)
12676       # Test whether the compiler implicitly links with -lc since on some
12677       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12678       # to ld, don't add -lc before -lgcc.
12679       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12680 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12681       $rm conftest*
12682       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12683
12684       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } 2>conftest.err; then
12689         soname=conftest
12690         lib=conftest
12691         libobjs=conftest.$ac_objext
12692         deplibs=
12693         wl=$lt_prog_compiler_wl_CXX
12694         pic_flag=$lt_prog_compiler_pic_CXX
12695         compiler_flags=-v
12696         linker_flags=-v
12697         verstring=
12698         output_objdir=.
12699         libname=conftest
12700         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12701         allow_undefined_flag_CXX=
12702         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12703   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }
12707         then
12708           archive_cmds_need_lc_CXX=no
12709         else
12710           archive_cmds_need_lc_CXX=yes
12711         fi
12712         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12713       else
12714         cat conftest.err 1>&5
12715       fi
12716       $rm conftest*
12717       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12718 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12719       ;;
12720     esac
12721   fi
12722   ;;
12723 esac
12724
12725 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12727 library_names_spec=
12728 libname_spec='lib$name'
12729 soname_spec=
12730 shrext_cmds=".so"
12731 postinstall_cmds=
12732 postuninstall_cmds=
12733 finish_cmds=
12734 finish_eval=
12735 shlibpath_var=
12736 shlibpath_overrides_runpath=unknown
12737 version_type=none
12738 dynamic_linker="$host_os ld.so"
12739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12740
12741 need_lib_prefix=unknown
12742 hardcode_into_libs=no
12743
12744 # when you set need_version to no, make sure it does not cause -set_version
12745 # flags to be left without arguments
12746 need_version=unknown
12747
12748 case $host_os in
12749 aix3*)
12750   version_type=linux
12751   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12752   shlibpath_var=LIBPATH
12753
12754   # AIX 3 has no versioning support, so we append a major version to the name.
12755   soname_spec='${libname}${release}${shared_ext}$major'
12756   ;;
12757
12758 aix4* | aix5*)
12759   version_type=linux
12760   need_lib_prefix=no
12761   need_version=no
12762   hardcode_into_libs=yes
12763   if test "$host_cpu" = ia64; then
12764     # AIX 5 supports IA64
12765     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12766     shlibpath_var=LD_LIBRARY_PATH
12767   else
12768     # With GCC up to 2.95.x, collect2 would create an import file
12769     # for dependence libraries.  The import file would start with
12770     # the line `#! .'.  This would cause the generated library to
12771     # depend on `.', always an invalid library.  This was fixed in
12772     # development snapshots of GCC prior to 3.0.
12773     case $host_os in
12774       aix4 | aix4.[01] | aix4.[01].*)
12775       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12776            echo ' yes '
12777            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12778         :
12779       else
12780         can_build_shared=no
12781       fi
12782       ;;
12783     esac
12784     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12785     # soname into executable. Probably we can add versioning support to
12786     # collect2, so additional links can be useful in future.
12787     if test "$aix_use_runtimelinking" = yes; then
12788       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12789       # instead of lib<name>.a to let people know that these are not
12790       # typical AIX shared libraries.
12791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792     else
12793       # We preserve .a as extension for shared libraries through AIX4.2
12794       # and later when we are not doing run time linking.
12795       library_names_spec='${libname}${release}.a $libname.a'
12796       soname_spec='${libname}${release}${shared_ext}$major'
12797     fi
12798     shlibpath_var=LIBPATH
12799   fi
12800   ;;
12801
12802 amigaos*)
12803   library_names_spec='$libname.ixlibrary $libname.a'
12804   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12805   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'
12806   ;;
12807
12808 beos*)
12809   library_names_spec='${libname}${shared_ext}'
12810   dynamic_linker="$host_os ld.so"
12811   shlibpath_var=LIBRARY_PATH
12812   ;;
12813
12814 bsdi[45]*)
12815   version_type=linux
12816   need_version=no
12817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818   soname_spec='${libname}${release}${shared_ext}$major'
12819   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12822   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12823   # the default ld.so.conf also contains /usr/contrib/lib and
12824   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12825   # libtool to hard-code these into programs
12826   ;;
12827
12828 cygwin* | mingw* | pw32*)
12829   version_type=windows
12830   shrext_cmds=".dll"
12831   need_version=no
12832   need_lib_prefix=no
12833
12834   case $GCC,$host_os in
12835   yes,cygwin* | yes,mingw* | yes,pw32*)
12836     library_names_spec='$libname.dll.a'
12837     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12838     postinstall_cmds='base_file=`basename \${file}`~
12839       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12840       dldir=$destdir/`dirname \$dlpath`~
12841       test -d \$dldir || mkdir -p \$dldir~
12842       $install_prog $dir/$dlname \$dldir/$dlname~
12843       chmod a+x \$dldir/$dlname'
12844     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12845       dlpath=$dir/\$dldll~
12846        $rm \$dlpath'
12847     shlibpath_overrides_runpath=yes
12848
12849     case $host_os in
12850     cygwin*)
12851       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12852       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12854       ;;
12855     mingw*)
12856       # MinGW DLLs use traditional 'lib' prefix
12857       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12859       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12860         # It is most probably a Windows format PATH printed by
12861         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12862         # path with ; separators, and with drive letters. We can handle the
12863         # drive letters (cygwin fileutils understands them), so leave them,
12864         # especially as we might pass files found there to a mingw objdump,
12865         # which wouldn't understand a cygwinified path. Ahh.
12866         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12867       else
12868         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12869       fi
12870       ;;
12871     pw32*)
12872       # pw32 DLLs use 'pw' prefix rather than 'lib'
12873       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12874       ;;
12875     esac
12876     ;;
12877
12878   *)
12879     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12880     ;;
12881   esac
12882   dynamic_linker='Win32 ld.exe'
12883   # FIXME: first we should search . and the directory the executable is in
12884   shlibpath_var=PATH
12885   ;;
12886
12887 darwin* | rhapsody*)
12888   dynamic_linker="$host_os dyld"
12889   version_type=darwin
12890   need_lib_prefix=no
12891   need_version=no
12892   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12893   soname_spec='${libname}${release}${major}$shared_ext'
12894   shlibpath_overrides_runpath=yes
12895   shlibpath_var=DYLD_LIBRARY_PATH
12896   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12897
12898   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12899   ;;
12900
12901 dgux*)
12902   version_type=linux
12903   need_lib_prefix=no
12904   need_version=no
12905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12906   soname_spec='${libname}${release}${shared_ext}$major'
12907   shlibpath_var=LD_LIBRARY_PATH
12908   ;;
12909
12910 freebsd1*)
12911   dynamic_linker=no
12912   ;;
12913
12914 freebsd* | dragonfly*)
12915   # DragonFly does not have aout.  When/if they implement a new
12916   # versioning mechanism, adjust this.
12917   if test -x /usr/bin/objformat; then
12918     objformat=`/usr/bin/objformat`
12919   else
12920     case $host_os in
12921     freebsd[123]*) objformat=aout ;;
12922     *) objformat=elf ;;
12923     esac
12924   fi
12925   version_type=freebsd-$objformat
12926   case $version_type in
12927     freebsd-elf*)
12928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12929       need_version=no
12930       need_lib_prefix=no
12931       ;;
12932     freebsd-*)
12933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12934       need_version=yes
12935       ;;
12936   esac
12937   shlibpath_var=LD_LIBRARY_PATH
12938   case $host_os in
12939   freebsd2*)
12940     shlibpath_overrides_runpath=yes
12941     ;;
12942   freebsd3.[01]* | freebsdelf3.[01]*)
12943     shlibpath_overrides_runpath=yes
12944     hardcode_into_libs=yes
12945     ;;
12946   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948     shlibpath_overrides_runpath=no
12949     hardcode_into_libs=yes
12950     ;;
12951   *) # from 4.6 on, and DragonFly
12952     shlibpath_overrides_runpath=yes
12953     hardcode_into_libs=yes
12954     ;;
12955   esac
12956   ;;
12957
12958 gnu*)
12959   version_type=linux
12960   need_lib_prefix=no
12961   need_version=no
12962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963   soname_spec='${libname}${release}${shared_ext}$major'
12964   shlibpath_var=LD_LIBRARY_PATH
12965   hardcode_into_libs=yes
12966   ;;
12967
12968 hpux9* | hpux10* | hpux11*)
12969   # Give a soname corresponding to the major version so that dld.sl refuses to
12970   # link against other versions.
12971   version_type=sunos
12972   need_lib_prefix=no
12973   need_version=no
12974   case $host_cpu in
12975   ia64*)
12976     shrext_cmds='.so'
12977     hardcode_into_libs=yes
12978     dynamic_linker="$host_os dld.so"
12979     shlibpath_var=LD_LIBRARY_PATH
12980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982     soname_spec='${libname}${release}${shared_ext}$major'
12983     if test "X$HPUX_IA64_MODE" = X32; then
12984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12985     else
12986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12987     fi
12988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12989     ;;
12990    hppa*64*)
12991      shrext_cmds='.sl'
12992      hardcode_into_libs=yes
12993      dynamic_linker="$host_os dld.sl"
12994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997      soname_spec='${libname}${release}${shared_ext}$major'
12998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13000      ;;
13001    *)
13002     shrext_cmds='.sl'
13003     dynamic_linker="$host_os dld.sl"
13004     shlibpath_var=SHLIB_PATH
13005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007     soname_spec='${libname}${release}${shared_ext}$major'
13008     ;;
13009   esac
13010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011   postinstall_cmds='chmod 555 $lib'
13012   ;;
13013
13014 interix[3-9]*)
13015   version_type=linux
13016   need_lib_prefix=no
13017   need_version=no
13018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019   soname_spec='${libname}${release}${shared_ext}$major'
13020   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021   shlibpath_var=LD_LIBRARY_PATH
13022   shlibpath_overrides_runpath=no
13023   hardcode_into_libs=yes
13024   ;;
13025
13026 irix5* | irix6* | nonstopux*)
13027   case $host_os in
13028     nonstopux*) version_type=nonstopux ;;
13029     *)
13030         if test "$lt_cv_prog_gnu_ld" = yes; then
13031                 version_type=linux
13032         else
13033                 version_type=irix
13034         fi ;;
13035   esac
13036   need_lib_prefix=no
13037   need_version=no
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13040   case $host_os in
13041   irix5* | nonstopux*)
13042     libsuff= shlibsuff=
13043     ;;
13044   *)
13045     case $LD in # libtool.m4 will add one of these switches to LD
13046     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047       libsuff= shlibsuff= libmagic=32-bit;;
13048     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049       libsuff=32 shlibsuff=N32 libmagic=N32;;
13050     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052     *) libsuff= shlibsuff= libmagic=never-match;;
13053     esac
13054     ;;
13055   esac
13056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057   shlibpath_overrides_runpath=no
13058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060   hardcode_into_libs=yes
13061   ;;
13062
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13065   dynamic_linker=no
13066   ;;
13067
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu)
13070   version_type=linux
13071   need_lib_prefix=no
13072   need_version=no
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074   soname_spec='${libname}${release}${shared_ext}$major'
13075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076   shlibpath_var=LD_LIBRARY_PATH
13077   shlibpath_overrides_runpath=no
13078   # This implies no fast_install, which is unacceptable.
13079   # Some rework will be needed to allow for fast_install
13080   # before this can be enabled.
13081   hardcode_into_libs=yes
13082
13083   # Append ld.so.conf contents to the search path
13084   if test -f /etc/ld.so.conf; then
13085     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13087   fi
13088
13089   # We used to test for /lib/ld.so.1 and disable shared libraries on
13090   # powerpc, because MkLinux only supported shared libraries with the
13091   # GNU dynamic linker.  Since this was broken with cross compilers,
13092   # most powerpc-linux boxes support dynamic linking these days and
13093   # people can always --disable-shared, the test was removed, and we
13094   # assume the GNU/Linux dynamic linker is in use.
13095   dynamic_linker='GNU/Linux ld.so'
13096   ;;
13097
13098 netbsdelf*-gnu)
13099   version_type=linux
13100   need_lib_prefix=no
13101   need_version=no
13102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103   soname_spec='${libname}${release}${shared_ext}$major'
13104   shlibpath_var=LD_LIBRARY_PATH
13105   shlibpath_overrides_runpath=no
13106   hardcode_into_libs=yes
13107   dynamic_linker='NetBSD ld.elf_so'
13108   ;;
13109
13110 netbsd*)
13111   version_type=sunos
13112   need_lib_prefix=no
13113   need_version=no
13114   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117     dynamic_linker='NetBSD (a.out) ld.so'
13118   else
13119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120     soname_spec='${libname}${release}${shared_ext}$major'
13121     dynamic_linker='NetBSD ld.elf_so'
13122   fi
13123   shlibpath_var=LD_LIBRARY_PATH
13124   shlibpath_overrides_runpath=yes
13125   hardcode_into_libs=yes
13126   ;;
13127
13128 newsos6)
13129   version_type=linux
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=yes
13133   ;;
13134
13135 nto-qnx*)
13136   version_type=linux
13137   need_lib_prefix=no
13138   need_version=no
13139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140   soname_spec='${libname}${release}${shared_ext}$major'
13141   shlibpath_var=LD_LIBRARY_PATH
13142   shlibpath_overrides_runpath=yes
13143   ;;
13144
13145 openbsd*)
13146   version_type=sunos
13147   sys_lib_dlsearch_path_spec="/usr/lib"
13148   need_lib_prefix=no
13149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13150   case $host_os in
13151     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152     *)                         need_version=no  ;;
13153   esac
13154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156   shlibpath_var=LD_LIBRARY_PATH
13157   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13158     case $host_os in
13159       openbsd2.[89] | openbsd2.[89].*)
13160         shlibpath_overrides_runpath=no
13161         ;;
13162       *)
13163         shlibpath_overrides_runpath=yes
13164         ;;
13165       esac
13166   else
13167     shlibpath_overrides_runpath=yes
13168   fi
13169   ;;
13170
13171 os2*)
13172   libname_spec='$name'
13173   shrext_cmds=".dll"
13174   need_lib_prefix=no
13175   library_names_spec='$libname${shared_ext} $libname.a'
13176   dynamic_linker='OS/2 ld.exe'
13177   shlibpath_var=LIBPATH
13178   ;;
13179
13180 osf3* | osf4* | osf5*)
13181   version_type=osf
13182   need_lib_prefix=no
13183   need_version=no
13184   soname_spec='${libname}${release}${shared_ext}$major'
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186   shlibpath_var=LD_LIBRARY_PATH
13187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13189   ;;
13190
13191 rdos*)
13192   dynamic_linker=no
13193   ;;
13194
13195 solaris*)
13196   version_type=linux
13197   need_lib_prefix=no
13198   need_version=no
13199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200   soname_spec='${libname}${release}${shared_ext}$major'
13201   shlibpath_var=LD_LIBRARY_PATH
13202   shlibpath_overrides_runpath=yes
13203   hardcode_into_libs=yes
13204   # ldd complains unless libraries are executable
13205   postinstall_cmds='chmod +x $lib'
13206   ;;
13207
13208 sunos4*)
13209   version_type=sunos
13210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13211   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13212   shlibpath_var=LD_LIBRARY_PATH
13213   shlibpath_overrides_runpath=yes
13214   if test "$with_gnu_ld" = yes; then
13215     need_lib_prefix=no
13216   fi
13217   need_version=yes
13218   ;;
13219
13220 sysv4 | sysv4.3*)
13221   version_type=linux
13222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223   soname_spec='${libname}${release}${shared_ext}$major'
13224   shlibpath_var=LD_LIBRARY_PATH
13225   case $host_vendor in
13226     sni)
13227       shlibpath_overrides_runpath=no
13228       need_lib_prefix=no
13229       export_dynamic_flag_spec='${wl}-Blargedynsym'
13230       runpath_var=LD_RUN_PATH
13231       ;;
13232     siemens)
13233       need_lib_prefix=no
13234       ;;
13235     motorola)
13236       need_lib_prefix=no
13237       need_version=no
13238       shlibpath_overrides_runpath=no
13239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13240       ;;
13241   esac
13242   ;;
13243
13244 sysv4*MP*)
13245   if test -d /usr/nec ;then
13246     version_type=linux
13247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13248     soname_spec='$libname${shared_ext}.$major'
13249     shlibpath_var=LD_LIBRARY_PATH
13250   fi
13251   ;;
13252
13253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13254   version_type=freebsd-elf
13255   need_lib_prefix=no
13256   need_version=no
13257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13258   soname_spec='${libname}${release}${shared_ext}$major'
13259   shlibpath_var=LD_LIBRARY_PATH
13260   hardcode_into_libs=yes
13261   if test "$with_gnu_ld" = yes; then
13262     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13263     shlibpath_overrides_runpath=no
13264   else
13265     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13266     shlibpath_overrides_runpath=yes
13267     case $host_os in
13268       sco3.2v5*)
13269         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13270         ;;
13271     esac
13272   fi
13273   sys_lib_dlsearch_path_spec='/usr/lib'
13274   ;;
13275
13276 uts4*)
13277   version_type=linux
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   shlibpath_var=LD_LIBRARY_PATH
13281   ;;
13282
13283 *)
13284   dynamic_linker=no
13285   ;;
13286 esac
13287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13288 echo "${ECHO_T}$dynamic_linker" >&6; }
13289 test "$dynamic_linker" = no && can_build_shared=no
13290
13291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13292 if test "$GCC" = yes; then
13293   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13294 fi
13295
13296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13298 hardcode_action_CXX=
13299 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13300    test -n "$runpath_var_CXX" || \
13301    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13302
13303   # We can hardcode non-existant directories.
13304   if test "$hardcode_direct_CXX" != no &&
13305      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13306      # have to relink, otherwise we might link with an installed library
13307      # when we should be linking with a yet-to-be-installed one
13308      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13309      test "$hardcode_minus_L_CXX" != no; then
13310     # Linking always hardcodes the temporary library directory.
13311     hardcode_action_CXX=relink
13312   else
13313     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13314     hardcode_action_CXX=immediate
13315   fi
13316 else
13317   # We cannot hardcode anything, or else we can only hardcode existing
13318   # directories.
13319   hardcode_action_CXX=unsupported
13320 fi
13321 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13322 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13323
13324 if test "$hardcode_action_CXX" = relink; then
13325   # Fast installation is not supported
13326   enable_fast_install=no
13327 elif test "$shlibpath_overrides_runpath" = yes ||
13328      test "$enable_shared" = no; then
13329   # Fast installation is not necessary
13330   enable_fast_install=needless
13331 fi
13332
13333
13334 # The else clause should only fire when bootstrapping the
13335 # libtool distribution, otherwise you forgot to ship ltmain.sh
13336 # with your package, and you will get complaints that there are
13337 # no rules to generate ltmain.sh.
13338 if test -f "$ltmain"; then
13339   # See if we are running on zsh, and set the options which allow our commands through
13340   # without removal of \ escapes.
13341   if test -n "${ZSH_VERSION+set}" ; then
13342     setopt NO_GLOB_SUBST
13343   fi
13344   # Now quote all the things that may contain metacharacters while being
13345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13346   # variables and quote the copies for generation of the libtool script.
13347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13348     SED SHELL STRIP \
13349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13351     deplibs_check_method reload_flag reload_cmds need_locks \
13352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13353     lt_cv_sys_global_symbol_to_c_name_address \
13354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13355     old_postinstall_cmds old_postuninstall_cmds \
13356     compiler_CXX \
13357     CC_CXX \
13358     LD_CXX \
13359     lt_prog_compiler_wl_CXX \
13360     lt_prog_compiler_pic_CXX \
13361     lt_prog_compiler_static_CXX \
13362     lt_prog_compiler_no_builtin_flag_CXX \
13363     export_dynamic_flag_spec_CXX \
13364     thread_safe_flag_spec_CXX \
13365     whole_archive_flag_spec_CXX \
13366     enable_shared_with_static_runtimes_CXX \
13367     old_archive_cmds_CXX \
13368     old_archive_from_new_cmds_CXX \
13369     predep_objects_CXX \
13370     postdep_objects_CXX \
13371     predeps_CXX \
13372     postdeps_CXX \
13373     compiler_lib_search_path_CXX \
13374     archive_cmds_CXX \
13375     archive_expsym_cmds_CXX \
13376     postinstall_cmds_CXX \
13377     postuninstall_cmds_CXX \
13378     old_archive_from_expsyms_cmds_CXX \
13379     allow_undefined_flag_CXX \
13380     no_undefined_flag_CXX \
13381     export_symbols_cmds_CXX \
13382     hardcode_libdir_flag_spec_CXX \
13383     hardcode_libdir_flag_spec_ld_CXX \
13384     hardcode_libdir_separator_CXX \
13385     hardcode_automatic_CXX \
13386     module_cmds_CXX \
13387     module_expsym_cmds_CXX \
13388     lt_cv_prog_compiler_c_o_CXX \
13389     fix_srcfile_path_CXX \
13390     exclude_expsyms_CXX \
13391     include_expsyms_CXX; do
13392
13393     case $var in
13394     old_archive_cmds_CXX | \
13395     old_archive_from_new_cmds_CXX | \
13396     archive_cmds_CXX | \
13397     archive_expsym_cmds_CXX | \
13398     module_cmds_CXX | \
13399     module_expsym_cmds_CXX | \
13400     old_archive_from_expsyms_cmds_CXX | \
13401     export_symbols_cmds_CXX | \
13402     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13403     postinstall_cmds | postuninstall_cmds | \
13404     old_postinstall_cmds | old_postuninstall_cmds | \
13405     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13406       # Double-quote double-evaled strings.
13407       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13408       ;;
13409     *)
13410       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13411       ;;
13412     esac
13413   done
13414
13415   case $lt_echo in
13416   *'\$0 --fallback-echo"')
13417     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13418     ;;
13419   esac
13420
13421 cfgfile="$ofile"
13422
13423   cat <<__EOF__ >> "$cfgfile"
13424 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13425
13426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427
13428 # Shell to use when invoking shell scripts.
13429 SHELL=$lt_SHELL
13430
13431 # Whether or not to build shared libraries.
13432 build_libtool_libs=$enable_shared
13433
13434 # Whether or not to build static libraries.
13435 build_old_libs=$enable_static
13436
13437 # Whether or not to add -lc for building shared libraries.
13438 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13439
13440 # Whether or not to disallow shared libs when runtime libs are static
13441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13442
13443 # Whether or not to optimize for fast installation.
13444 fast_install=$enable_fast_install
13445
13446 # The host system.
13447 host_alias=$host_alias
13448 host=$host
13449 host_os=$host_os
13450
13451 # The build system.
13452 build_alias=$build_alias
13453 build=$build
13454 build_os=$build_os
13455
13456 # An echo program that does not interpret backslashes.
13457 echo=$lt_echo
13458
13459 # The archiver.
13460 AR=$lt_AR
13461 AR_FLAGS=$lt_AR_FLAGS
13462
13463 # A C compiler.
13464 LTCC=$lt_LTCC
13465
13466 # LTCC compiler flags.
13467 LTCFLAGS=$lt_LTCFLAGS
13468
13469 # A language-specific compiler.
13470 CC=$lt_compiler_CXX
13471
13472 # Is the compiler the GNU C compiler?
13473 with_gcc=$GCC_CXX
13474
13475 # An ERE matcher.
13476 EGREP=$lt_EGREP
13477
13478 # The linker used to build libraries.
13479 LD=$lt_LD_CXX
13480
13481 # Whether we need hard or soft links.
13482 LN_S=$lt_LN_S
13483
13484 # A BSD-compatible nm program.
13485 NM=$lt_NM
13486
13487 # A symbol stripping program
13488 STRIP=$lt_STRIP
13489
13490 # Used to examine libraries when file_magic_cmd begins "file"
13491 MAGIC_CMD=$MAGIC_CMD
13492
13493 # Used on cygwin: DLL creation program.
13494 DLLTOOL="$DLLTOOL"
13495
13496 # Used on cygwin: object dumper.
13497 OBJDUMP="$OBJDUMP"
13498
13499 # Used on cygwin: assembler.
13500 AS="$AS"
13501
13502 # The name of the directory that contains temporary libtool files.
13503 objdir=$objdir
13504
13505 # How to create reloadable object files.
13506 reload_flag=$lt_reload_flag
13507 reload_cmds=$lt_reload_cmds
13508
13509 # How to pass a linker flag through the compiler.
13510 wl=$lt_lt_prog_compiler_wl_CXX
13511
13512 # Object file suffix (normally "o").
13513 objext="$ac_objext"
13514
13515 # Old archive suffix (normally "a").
13516 libext="$libext"
13517
13518 # Shared library suffix (normally ".so").
13519 shrext_cmds='$shrext_cmds'
13520
13521 # Executable file suffix (normally "").
13522 exeext="$exeext"
13523
13524 # Additional compiler flags for building library objects.
13525 pic_flag=$lt_lt_prog_compiler_pic_CXX
13526 pic_mode=$pic_mode
13527
13528 # What is the maximum length of a command?
13529 max_cmd_len=$lt_cv_sys_max_cmd_len
13530
13531 # Does compiler simultaneously support -c and -o options?
13532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13533
13534 # Must we lock files when doing compilation?
13535 need_locks=$lt_need_locks
13536
13537 # Do we need the lib prefix for modules?
13538 need_lib_prefix=$need_lib_prefix
13539
13540 # Do we need a version for libraries?
13541 need_version=$need_version
13542
13543 # Whether dlopen is supported.
13544 dlopen_support=$enable_dlopen
13545
13546 # Whether dlopen of programs is supported.
13547 dlopen_self=$enable_dlopen_self
13548
13549 # Whether dlopen of statically linked programs is supported.
13550 dlopen_self_static=$enable_dlopen_self_static
13551
13552 # Compiler flag to prevent dynamic linking.
13553 link_static_flag=$lt_lt_prog_compiler_static_CXX
13554
13555 # Compiler flag to turn off builtin functions.
13556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13557
13558 # Compiler flag to allow reflexive dlopens.
13559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13560
13561 # Compiler flag to generate shared objects directly from archives.
13562 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13563
13564 # Compiler flag to generate thread-safe objects.
13565 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13566
13567 # Library versioning type.
13568 version_type=$version_type
13569
13570 # Format of library name prefix.
13571 libname_spec=$lt_libname_spec
13572
13573 # List of archive names.  First name is the real one, the rest are links.
13574 # The last name is the one that the linker finds with -lNAME.
13575 library_names_spec=$lt_library_names_spec
13576
13577 # The coded name of the library, if different from the real name.
13578 soname_spec=$lt_soname_spec
13579
13580 # Commands used to build and install an old-style archive.
13581 RANLIB=$lt_RANLIB
13582 old_archive_cmds=$lt_old_archive_cmds_CXX
13583 old_postinstall_cmds=$lt_old_postinstall_cmds
13584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13585
13586 # Create an old-style archive from a shared archive.
13587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13588
13589 # Create a temporary old-style archive to link instead of a shared archive.
13590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13591
13592 # Commands used to build and install a shared archive.
13593 archive_cmds=$lt_archive_cmds_CXX
13594 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13595 postinstall_cmds=$lt_postinstall_cmds
13596 postuninstall_cmds=$lt_postuninstall_cmds
13597
13598 # Commands used to build a loadable module (assumed same as above if empty)
13599 module_cmds=$lt_module_cmds_CXX
13600 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13601
13602 # Commands to strip libraries.
13603 old_striplib=$lt_old_striplib
13604 striplib=$lt_striplib
13605
13606 # Dependencies to place before the objects being linked to create a
13607 # shared library.
13608 predep_objects=$lt_predep_objects_CXX
13609
13610 # Dependencies to place after the objects being linked to create a
13611 # shared library.
13612 postdep_objects=$lt_postdep_objects_CXX
13613
13614 # Dependencies to place before the objects being linked to create a
13615 # shared library.
13616 predeps=$lt_predeps_CXX
13617
13618 # Dependencies to place after the objects being linked to create a
13619 # shared library.
13620 postdeps=$lt_postdeps_CXX
13621
13622 # The library search path used internally by the compiler when linking
13623 # a shared library.
13624 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13625
13626 # Method to check whether dependent libraries are shared objects.
13627 deplibs_check_method=$lt_deplibs_check_method
13628
13629 # Command to use when deplibs_check_method == file_magic.
13630 file_magic_cmd=$lt_file_magic_cmd
13631
13632 # Flag that allows shared libraries with undefined symbols to be built.
13633 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13634
13635 # Flag that forces no undefined symbols.
13636 no_undefined_flag=$lt_no_undefined_flag_CXX
13637
13638 # Commands used to finish a libtool library installation in a directory.
13639 finish_cmds=$lt_finish_cmds
13640
13641 # Same as above, but a single script fragment to be evaled but not shown.
13642 finish_eval=$lt_finish_eval
13643
13644 # Take the output of nm and produce a listing of raw symbols and C names.
13645 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13646
13647 # Transform the output of nm in a proper C declaration
13648 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13649
13650 # Transform the output of nm in a C name address pair
13651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13652
13653 # This is the shared library runtime path variable.
13654 runpath_var=$runpath_var
13655
13656 # This is the shared library path variable.
13657 shlibpath_var=$shlibpath_var
13658
13659 # Is shlibpath searched before the hard-coded library search path?
13660 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13661
13662 # How to hardcode a shared library path into an executable.
13663 hardcode_action=$hardcode_action_CXX
13664
13665 # Whether we should hardcode library paths into libraries.
13666 hardcode_into_libs=$hardcode_into_libs
13667
13668 # Flag to hardcode \$libdir into a binary during linking.
13669 # This must work even if \$libdir does not exist.
13670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13671
13672 # If ld is used when linking, flag to hardcode \$libdir into
13673 # a binary during linking. This must work even if \$libdir does
13674 # not exist.
13675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13676
13677 # Whether we need a single -rpath flag with a separated argument.
13678 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13679
13680 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_direct=$hardcode_direct_CXX
13683
13684 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13685 # resulting binary.
13686 hardcode_minus_L=$hardcode_minus_L_CXX
13687
13688 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13689 # the resulting binary.
13690 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13691
13692 # Set to yes if building a shared library automatically hardcodes DIR into the library
13693 # and all subsequent libraries and executables linked against it.
13694 hardcode_automatic=$hardcode_automatic_CXX
13695
13696 # Variables whose values should be saved in libtool wrapper scripts and
13697 # restored at relink time.
13698 variables_saved_for_relink="$variables_saved_for_relink"
13699
13700 # Whether libtool must link a program against all its dependency libraries.
13701 link_all_deplibs=$link_all_deplibs_CXX
13702
13703 # Compile-time system search path for libraries
13704 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13705
13706 # Run-time system search path for libraries
13707 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13708
13709 # Fix the shell variable \$srcfile for the compiler.
13710 fix_srcfile_path=$lt_fix_srcfile_path
13711
13712 # Set to yes if exported symbols are required.
13713 always_export_symbols=$always_export_symbols_CXX
13714
13715 # The commands to list exported symbols.
13716 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13717
13718 # The commands to extract the exported symbol list from a shared archive.
13719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13720
13721 # Symbols that should not be listed in the preloaded symbols.
13722 exclude_expsyms=$lt_exclude_expsyms_CXX
13723
13724 # Symbols that must always be exported.
13725 include_expsyms=$lt_include_expsyms_CXX
13726
13727 # ### END LIBTOOL TAG CONFIG: $tagname
13728
13729 __EOF__
13730
13731
13732 else
13733   # If there is no Makefile yet, we rely on a make rule to execute
13734   # `config.status --recheck' to rerun these tests and create the
13735   # libtool script then.
13736   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13737   if test -f "$ltmain_in"; then
13738     test -f Makefile && make "$ltmain"
13739   fi
13740 fi
13741
13742
13743 ac_ext=c
13744 ac_cpp='$CPP $CPPFLAGS'
13745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748
13749 CC=$lt_save_CC
13750 LDCXX=$LD
13751 LD=$lt_save_LD
13752 GCC=$lt_save_GCC
13753 with_gnu_ldcxx=$with_gnu_ld
13754 with_gnu_ld=$lt_save_with_gnu_ld
13755 lt_cv_path_LDCXX=$lt_cv_path_LD
13756 lt_cv_path_LD=$lt_save_path_LD
13757 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13758 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13759
13760         else
13761           tagname=""
13762         fi
13763         ;;
13764
13765       F77)
13766         if test -n "$F77" && test "X$F77" != "Xno"; then
13767
13768 ac_ext=f
13769 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13770 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13772
13773
13774 archive_cmds_need_lc_F77=no
13775 allow_undefined_flag_F77=
13776 always_export_symbols_F77=no
13777 archive_expsym_cmds_F77=
13778 export_dynamic_flag_spec_F77=
13779 hardcode_direct_F77=no
13780 hardcode_libdir_flag_spec_F77=
13781 hardcode_libdir_flag_spec_ld_F77=
13782 hardcode_libdir_separator_F77=
13783 hardcode_minus_L_F77=no
13784 hardcode_automatic_F77=no
13785 module_cmds_F77=
13786 module_expsym_cmds_F77=
13787 link_all_deplibs_F77=unknown
13788 old_archive_cmds_F77=$old_archive_cmds
13789 no_undefined_flag_F77=
13790 whole_archive_flag_spec_F77=
13791 enable_shared_with_static_runtimes_F77=no
13792
13793 # Source file extension for f77 test sources.
13794 ac_ext=f
13795
13796 # Object file extension for compiled f77 test sources.
13797 objext=o
13798 objext_F77=$objext
13799
13800 # Code to be used in simple compile tests
13801 lt_simple_compile_test_code="\
13802       subroutine t
13803       return
13804       end
13805 "
13806
13807 # Code to be used in simple link tests
13808 lt_simple_link_test_code="\
13809       program t
13810       end
13811 "
13812
13813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13814
13815 # If no C compiler was specified, use CC.
13816 LTCC=${LTCC-"$CC"}
13817
13818 # If no C compiler flags were specified, use CFLAGS.
13819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13820
13821 # Allow CC to be a program name with arguments.
13822 compiler=$CC
13823
13824
13825 # save warnings/boilerplate of simple test code
13826 ac_outfile=conftest.$ac_objext
13827 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13828 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13829 _lt_compiler_boilerplate=`cat conftest.err`
13830 $rm conftest*
13831
13832 ac_outfile=conftest.$ac_objext
13833 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13834 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13835 _lt_linker_boilerplate=`cat conftest.err`
13836 $rm conftest*
13837
13838
13839 # Allow CC to be a program name with arguments.
13840 lt_save_CC="$CC"
13841 CC=${F77-"f77"}
13842 compiler=$CC
13843 compiler_F77=$CC
13844 for cc_temp in $compiler""; do
13845   case $cc_temp in
13846     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13847     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13848     \-*) ;;
13849     *) break;;
13850   esac
13851 done
13852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13853
13854
13855 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13856 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13857 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13858 echo "${ECHO_T}$can_build_shared" >&6; }
13859
13860 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13861 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13862 test "$can_build_shared" = "no" && enable_shared=no
13863
13864 # On AIX, shared libraries and static libraries use the same namespace, and
13865 # are all built from PIC.
13866 case $host_os in
13867 aix3*)
13868   test "$enable_shared" = yes && enable_static=no
13869   if test -n "$RANLIB"; then
13870     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13871     postinstall_cmds='$RANLIB $lib'
13872   fi
13873   ;;
13874 aix4* | aix5*)
13875   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13876     test "$enable_shared" = yes && enable_static=no
13877   fi
13878   ;;
13879 esac
13880 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13881 echo "${ECHO_T}$enable_shared" >&6; }
13882
13883 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13884 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13885 # Make sure either enable_shared or enable_static is yes.
13886 test "$enable_shared" = yes || enable_static=yes
13887 { echo "$as_me:$LINENO: result: $enable_static" >&5
13888 echo "${ECHO_T}$enable_static" >&6; }
13889
13890 GCC_F77="$G77"
13891 LD_F77="$LD"
13892
13893 lt_prog_compiler_wl_F77=
13894 lt_prog_compiler_pic_F77=
13895 lt_prog_compiler_static_F77=
13896
13897 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13899
13900   if test "$GCC" = yes; then
13901     lt_prog_compiler_wl_F77='-Wl,'
13902     lt_prog_compiler_static_F77='-static'
13903
13904     case $host_os in
13905       aix*)
13906       # All AIX code is PIC.
13907       if test "$host_cpu" = ia64; then
13908         # AIX 5 now supports IA64 processor
13909         lt_prog_compiler_static_F77='-Bstatic'
13910       fi
13911       ;;
13912
13913     amigaos*)
13914       # FIXME: we need at least 68020 code to build shared libraries, but
13915       # adding the `-m68020' flag to GCC prevents building anything better,
13916       # like `-m68040'.
13917       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13918       ;;
13919
13920     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13921       # PIC is the default for these OSes.
13922       ;;
13923
13924     mingw* | cygwin* | pw32* | os2*)
13925       # This hack is so that the source file can tell whether it is being
13926       # built for inclusion in a dll (and should export symbols for example).
13927       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13928       # (--disable-auto-import) libraries
13929       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13930       ;;
13931
13932     darwin* | rhapsody*)
13933       # PIC is the default on this platform
13934       # Common symbols not allowed in MH_DYLIB files
13935       lt_prog_compiler_pic_F77='-fno-common'
13936       ;;
13937
13938     interix[3-9]*)
13939       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13940       # Instead, we relocate shared libraries at runtime.
13941       ;;
13942
13943     msdosdjgpp*)
13944       # Just because we use GCC doesn't mean we suddenly get shared libraries
13945       # on systems that don't support them.
13946       lt_prog_compiler_can_build_shared_F77=no
13947       enable_shared=no
13948       ;;
13949
13950     sysv4*MP*)
13951       if test -d /usr/nec; then
13952         lt_prog_compiler_pic_F77=-Kconform_pic
13953       fi
13954       ;;
13955
13956     hpux*)
13957       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13958       # not for PA HP-UX.
13959       case $host_cpu in
13960       hppa*64*|ia64*)
13961         # +Z the default
13962         ;;
13963       *)
13964         lt_prog_compiler_pic_F77='-fPIC'
13965         ;;
13966       esac
13967       ;;
13968
13969     *)
13970       lt_prog_compiler_pic_F77='-fPIC'
13971       ;;
13972     esac
13973   else
13974     # PORTME Check for flag to pass linker flags through the system compiler.
13975     case $host_os in
13976     aix*)
13977       lt_prog_compiler_wl_F77='-Wl,'
13978       if test "$host_cpu" = ia64; then
13979         # AIX 5 now supports IA64 processor
13980         lt_prog_compiler_static_F77='-Bstatic'
13981       else
13982         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13983       fi
13984       ;;
13985       darwin*)
13986         # PIC is the default on this platform
13987         # Common symbols not allowed in MH_DYLIB files
13988        case $cc_basename in
13989          xlc*)
13990          lt_prog_compiler_pic_F77='-qnocommon'
13991          lt_prog_compiler_wl_F77='-Wl,'
13992          ;;
13993        esac
13994        ;;
13995
13996     mingw* | cygwin* | pw32* | os2*)
13997       # This hack is so that the source file can tell whether it is being
13998       # built for inclusion in a dll (and should export symbols for example).
13999       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14000       ;;
14001
14002     hpux9* | hpux10* | hpux11*)
14003       lt_prog_compiler_wl_F77='-Wl,'
14004       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14005       # not for PA HP-UX.
14006       case $host_cpu in
14007       hppa*64*|ia64*)
14008         # +Z the default
14009         ;;
14010       *)
14011         lt_prog_compiler_pic_F77='+Z'
14012         ;;
14013       esac
14014       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14015       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14016       ;;
14017
14018     irix5* | irix6* | nonstopux*)
14019       lt_prog_compiler_wl_F77='-Wl,'
14020       # PIC (with -KPIC) is the default.
14021       lt_prog_compiler_static_F77='-non_shared'
14022       ;;
14023
14024     newsos6)
14025       lt_prog_compiler_pic_F77='-KPIC'
14026       lt_prog_compiler_static_F77='-Bstatic'
14027       ;;
14028
14029     linux* | k*bsd*-gnu)
14030       case $cc_basename in
14031       icc* | ecc*)
14032         lt_prog_compiler_wl_F77='-Wl,'
14033         lt_prog_compiler_pic_F77='-KPIC'
14034         lt_prog_compiler_static_F77='-static'
14035         ;;
14036       pgcc* | pgf77* | pgf90* | pgf95*)
14037         # Portland Group compilers (*not* the Pentium gcc compiler,
14038         # which looks to be a dead project)
14039         lt_prog_compiler_wl_F77='-Wl,'
14040         lt_prog_compiler_pic_F77='-fpic'
14041         lt_prog_compiler_static_F77='-Bstatic'
14042         ;;
14043       ccc*)
14044         lt_prog_compiler_wl_F77='-Wl,'
14045         # All Alpha code is PIC.
14046         lt_prog_compiler_static_F77='-non_shared'
14047         ;;
14048       *)
14049         case `$CC -V 2>&1 | sed 5q` in
14050         *Sun\ C*)
14051           # Sun C 5.9
14052           lt_prog_compiler_pic_F77='-KPIC'
14053           lt_prog_compiler_static_F77='-Bstatic'
14054           lt_prog_compiler_wl_F77='-Wl,'
14055           ;;
14056         *Sun\ F*)
14057           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14058           lt_prog_compiler_pic_F77='-KPIC'
14059           lt_prog_compiler_static_F77='-Bstatic'
14060           lt_prog_compiler_wl_F77=''
14061           ;;
14062         esac
14063         ;;
14064       esac
14065       ;;
14066
14067     osf3* | osf4* | osf5*)
14068       lt_prog_compiler_wl_F77='-Wl,'
14069       # All OSF/1 code is PIC.
14070       lt_prog_compiler_static_F77='-non_shared'
14071       ;;
14072
14073     rdos*)
14074       lt_prog_compiler_static_F77='-non_shared'
14075       ;;
14076
14077     solaris*)
14078       lt_prog_compiler_pic_F77='-KPIC'
14079       lt_prog_compiler_static_F77='-Bstatic'
14080       case $cc_basename in
14081       f77* | f90* | f95*)
14082         lt_prog_compiler_wl_F77='-Qoption ld ';;
14083       *)
14084         lt_prog_compiler_wl_F77='-Wl,';;
14085       esac
14086       ;;
14087
14088     sunos4*)
14089       lt_prog_compiler_wl_F77='-Qoption ld '
14090       lt_prog_compiler_pic_F77='-PIC'
14091       lt_prog_compiler_static_F77='-Bstatic'
14092       ;;
14093
14094     sysv4 | sysv4.2uw2* | sysv4.3*)
14095       lt_prog_compiler_wl_F77='-Wl,'
14096       lt_prog_compiler_pic_F77='-KPIC'
14097       lt_prog_compiler_static_F77='-Bstatic'
14098       ;;
14099
14100     sysv4*MP*)
14101       if test -d /usr/nec ;then
14102         lt_prog_compiler_pic_F77='-Kconform_pic'
14103         lt_prog_compiler_static_F77='-Bstatic'
14104       fi
14105       ;;
14106
14107     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14108       lt_prog_compiler_wl_F77='-Wl,'
14109       lt_prog_compiler_pic_F77='-KPIC'
14110       lt_prog_compiler_static_F77='-Bstatic'
14111       ;;
14112
14113     unicos*)
14114       lt_prog_compiler_wl_F77='-Wl,'
14115       lt_prog_compiler_can_build_shared_F77=no
14116       ;;
14117
14118     uts4*)
14119       lt_prog_compiler_pic_F77='-pic'
14120       lt_prog_compiler_static_F77='-Bstatic'
14121       ;;
14122
14123     *)
14124       lt_prog_compiler_can_build_shared_F77=no
14125       ;;
14126     esac
14127   fi
14128
14129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14130 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14131
14132 #
14133 # Check to make sure the PIC flag actually works.
14134 #
14135 if test -n "$lt_prog_compiler_pic_F77"; then
14136
14137 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14138 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14139 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   lt_prog_compiler_pic_works_F77=no
14143   ac_outfile=conftest.$ac_objext
14144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14145    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14146    # Insert the option either (1) after the last *FLAGS variable, or
14147    # (2) before a word containing "conftest.", or (3) at the end.
14148    # Note that $ac_compile itself does not contain backslashes and begins
14149    # with a dollar sign (not a hyphen), so the echo should work correctly.
14150    # The option is referenced via a variable to avoid confusing sed.
14151    lt_compile=`echo "$ac_compile" | $SED \
14152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14154    -e 's:$: $lt_compiler_flag:'`
14155    (eval echo "\"\$as_me:14155: $lt_compile\"" >&5)
14156    (eval "$lt_compile" 2>conftest.err)
14157    ac_status=$?
14158    cat conftest.err >&5
14159    echo "$as_me:14159: \$? = $ac_status" >&5
14160    if (exit $ac_status) && test -s "$ac_outfile"; then
14161      # The compiler can only warn and ignore the option if not recognized
14162      # So say no if there are warnings other than the usual output.
14163      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14164      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14165      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14166        lt_prog_compiler_pic_works_F77=yes
14167      fi
14168    fi
14169    $rm conftest*
14170
14171 fi
14172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14173 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14174
14175 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14176     case $lt_prog_compiler_pic_F77 in
14177      "" | " "*) ;;
14178      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14179      esac
14180 else
14181     lt_prog_compiler_pic_F77=
14182      lt_prog_compiler_can_build_shared_F77=no
14183 fi
14184
14185 fi
14186 case $host_os in
14187   # For platforms which do not support PIC, -DPIC is meaningless:
14188   *djgpp*)
14189     lt_prog_compiler_pic_F77=
14190     ;;
14191   *)
14192     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14193     ;;
14194 esac
14195
14196 #
14197 # Check to make sure the static flag actually works.
14198 #
14199 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14200 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14201 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14202 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   lt_prog_compiler_static_works_F77=no
14206    save_LDFLAGS="$LDFLAGS"
14207    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14208    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14209    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14210      # The linker can only warn and ignore the option if not recognized
14211      # So say no if there are warnings
14212      if test -s conftest.err; then
14213        # Append any errors to the config.log.
14214        cat conftest.err 1>&5
14215        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14216        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217        if diff conftest.exp conftest.er2 >/dev/null; then
14218          lt_prog_compiler_static_works_F77=yes
14219        fi
14220      else
14221        lt_prog_compiler_static_works_F77=yes
14222      fi
14223    fi
14224    $rm conftest*
14225    LDFLAGS="$save_LDFLAGS"
14226
14227 fi
14228 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14229 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14230
14231 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14232     :
14233 else
14234     lt_prog_compiler_static_F77=
14235 fi
14236
14237
14238 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14239 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14240 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   lt_cv_prog_compiler_c_o_F77=no
14244    $rm -r conftest 2>/dev/null
14245    mkdir conftest
14246    cd conftest
14247    mkdir out
14248    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14249
14250    lt_compiler_flag="-o out/conftest2.$ac_objext"
14251    # Insert the option either (1) after the last *FLAGS variable, or
14252    # (2) before a word containing "conftest.", or (3) at the end.
14253    # Note that $ac_compile itself does not contain backslashes and begins
14254    # with a dollar sign (not a hyphen), so the echo should work correctly.
14255    lt_compile=`echo "$ac_compile" | $SED \
14256    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14258    -e 's:$: $lt_compiler_flag:'`
14259    (eval echo "\"\$as_me:14259: $lt_compile\"" >&5)
14260    (eval "$lt_compile" 2>out/conftest.err)
14261    ac_status=$?
14262    cat out/conftest.err >&5
14263    echo "$as_me:14263: \$? = $ac_status" >&5
14264    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14265    then
14266      # The compiler can only warn and ignore the option if not recognized
14267      # So say no if there are warnings
14268      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14269      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14270      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14271        lt_cv_prog_compiler_c_o_F77=yes
14272      fi
14273    fi
14274    chmod u+w . 2>&5
14275    $rm conftest*
14276    # SGI C++ compiler will create directory out/ii_files/ for
14277    # template instantiation
14278    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14279    $rm out/* && rmdir out
14280    cd ..
14281    rmdir conftest
14282    $rm conftest*
14283
14284 fi
14285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14286 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14287
14288
14289 hard_links="nottested"
14290 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14291   # do not overwrite the value of need_locks provided by the user
14292   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14293 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14294   hard_links=yes
14295   $rm conftest*
14296   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14297   touch conftest.a
14298   ln conftest.a conftest.b 2>&5 || hard_links=no
14299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14300   { echo "$as_me:$LINENO: result: $hard_links" >&5
14301 echo "${ECHO_T}$hard_links" >&6; }
14302   if test "$hard_links" = no; then
14303     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14304 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14305     need_locks=warn
14306   fi
14307 else
14308   need_locks=no
14309 fi
14310
14311 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14312 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14313
14314   runpath_var=
14315   allow_undefined_flag_F77=
14316   enable_shared_with_static_runtimes_F77=no
14317   archive_cmds_F77=
14318   archive_expsym_cmds_F77=
14319   old_archive_From_new_cmds_F77=
14320   old_archive_from_expsyms_cmds_F77=
14321   export_dynamic_flag_spec_F77=
14322   whole_archive_flag_spec_F77=
14323   thread_safe_flag_spec_F77=
14324   hardcode_libdir_flag_spec_F77=
14325   hardcode_libdir_flag_spec_ld_F77=
14326   hardcode_libdir_separator_F77=
14327   hardcode_direct_F77=no
14328   hardcode_minus_L_F77=no
14329   hardcode_shlibpath_var_F77=unsupported
14330   link_all_deplibs_F77=unknown
14331   hardcode_automatic_F77=no
14332   module_cmds_F77=
14333   module_expsym_cmds_F77=
14334   always_export_symbols_F77=no
14335   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14336   # include_expsyms should be a list of space-separated symbols to be *always*
14337   # included in the symbol list
14338   include_expsyms_F77=
14339   # exclude_expsyms can be an extended regexp of symbols to exclude
14340   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14341   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14342   # as well as any symbol that contains `d'.
14343   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14344   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14345   # platforms (ab)use it in PIC code, but their linkers get confused if
14346   # the symbol is explicitly referenced.  Since portable code cannot
14347   # rely on this symbol name, it's probably fine to never include it in
14348   # preloaded symbol tables.
14349   extract_expsyms_cmds=
14350   # Just being paranoid about ensuring that cc_basename is set.
14351   for cc_temp in $compiler""; do
14352   case $cc_temp in
14353     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14354     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14355     \-*) ;;
14356     *) break;;
14357   esac
14358 done
14359 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14360
14361   case $host_os in
14362   cygwin* | mingw* | pw32*)
14363     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14364     # When not using gcc, we currently assume that we are using
14365     # Microsoft Visual C++.
14366     if test "$GCC" != yes; then
14367       with_gnu_ld=no
14368     fi
14369     ;;
14370   interix*)
14371     # we just hope/assume this is gcc and not c89 (= MSVC++)
14372     with_gnu_ld=yes
14373     ;;
14374   openbsd*)
14375     with_gnu_ld=no
14376     ;;
14377   esac
14378
14379   ld_shlibs_F77=yes
14380   if test "$with_gnu_ld" = yes; then
14381     # If archive_cmds runs LD, not CC, wlarc should be empty
14382     wlarc='${wl}'
14383
14384     # Set some defaults for GNU ld with shared library support. These
14385     # are reset later if shared libraries are not supported. Putting them
14386     # here allows them to be overridden if necessary.
14387     runpath_var=LD_RUN_PATH
14388     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14389     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14390     # ancient GNU ld didn't support --whole-archive et. al.
14391     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14392         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14393       else
14394         whole_archive_flag_spec_F77=
14395     fi
14396     supports_anon_versioning=no
14397     case `$LD -v 2>/dev/null` in
14398       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14399       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14400       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14401       *\ 2.11.*) ;; # other 2.11 versions
14402       *) supports_anon_versioning=yes ;;
14403     esac
14404
14405     # See if GNU ld supports shared libraries.
14406     case $host_os in
14407     aix3* | aix4* | aix5*)
14408       # On AIX/PPC, the GNU linker is very broken
14409       if test "$host_cpu" != ia64; then
14410         ld_shlibs_F77=no
14411         cat <<EOF 1>&2
14412
14413 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14414 *** to be unable to reliably create shared libraries on AIX.
14415 *** Therefore, libtool is disabling shared libraries support.  If you
14416 *** really care for shared libraries, you may want to modify your PATH
14417 *** so that a non-GNU linker is found, and then restart.
14418
14419 EOF
14420       fi
14421       ;;
14422
14423     amigaos*)
14424       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)'
14425       hardcode_libdir_flag_spec_F77='-L$libdir'
14426       hardcode_minus_L_F77=yes
14427
14428       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14429       # that the semantics of dynamic libraries on AmigaOS, at least up
14430       # to version 4, is to share data among multiple programs linked
14431       # with the same dynamic library.  Since this doesn't match the
14432       # behavior of shared libraries on other platforms, we can't use
14433       # them.
14434       ld_shlibs_F77=no
14435       ;;
14436
14437     beos*)
14438       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14439         allow_undefined_flag_F77=unsupported
14440         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14441         # support --undefined.  This deserves some investigation.  FIXME
14442         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443       else
14444         ld_shlibs_F77=no
14445       fi
14446       ;;
14447
14448     cygwin* | mingw* | pw32*)
14449       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14450       # as there is no search path for DLLs.
14451       hardcode_libdir_flag_spec_F77='-L$libdir'
14452       allow_undefined_flag_F77=unsupported
14453       always_export_symbols_F77=no
14454       enable_shared_with_static_runtimes_F77=yes
14455       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14456
14457       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14458         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14459         # If the export-symbols file already is a .def file (1st line
14460         # is EXPORTS), use it as is; otherwise, prepend...
14461         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14462           cp $export_symbols $output_objdir/$soname.def;
14463         else
14464           echo EXPORTS > $output_objdir/$soname.def;
14465           cat $export_symbols >> $output_objdir/$soname.def;
14466         fi~
14467         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14468       else
14469         ld_shlibs_F77=no
14470       fi
14471       ;;
14472
14473     interix[3-9]*)
14474       hardcode_direct_F77=no
14475       hardcode_shlibpath_var_F77=no
14476       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14477       export_dynamic_flag_spec_F77='${wl}-E'
14478       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14479       # Instead, shared libraries are loaded at an image base (0x10000000 by
14480       # default) and relocated if they conflict, which is a slow very memory
14481       # consuming and fragmenting process.  To avoid this, we pick a random,
14482       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14483       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14484       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14485       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14486       ;;
14487
14488     gnu* | linux* | k*bsd*-gnu)
14489       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14490         tmp_addflag=
14491         case $cc_basename,$host_cpu in
14492         pgcc*)                          # Portland Group C compiler
14493           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14494           tmp_addflag=' $pic_flag'
14495           ;;
14496         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14497           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14498           tmp_addflag=' $pic_flag -Mnomain' ;;
14499         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14500           tmp_addflag=' -i_dynamic' ;;
14501         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14502           tmp_addflag=' -i_dynamic -nofor_main' ;;
14503         ifc* | ifort*)                  # Intel Fortran compiler
14504           tmp_addflag=' -nofor_main' ;;
14505         esac
14506         case `$CC -V 2>&1 | sed 5q` in
14507         *Sun\ C*)                       # Sun C 5.9
14508           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14509           tmp_sharedflag='-G' ;;
14510         *Sun\ F*)                       # Sun Fortran 8.3
14511           tmp_sharedflag='-G' ;;
14512         *)
14513           tmp_sharedflag='-shared' ;;
14514         esac
14515         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14516
14517         if test $supports_anon_versioning = yes; then
14518           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14519   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14520   $echo "local: *; };" >> $output_objdir/$libname.ver~
14521           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14522         fi
14523         link_all_deplibs_F77=no
14524       else
14525         ld_shlibs_F77=no
14526       fi
14527       ;;
14528
14529     netbsd* | netbsdelf*-gnu)
14530       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14531         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14532         wlarc=
14533       else
14534         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14536       fi
14537       ;;
14538
14539     solaris*)
14540       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14541         ld_shlibs_F77=no
14542         cat <<EOF 1>&2
14543
14544 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14545 *** create shared libraries on Solaris systems.  Therefore, libtool
14546 *** is disabling shared libraries support.  We urge you to upgrade GNU
14547 *** binutils to release 2.9.1 or newer.  Another option is to modify
14548 *** your PATH or compiler configuration so that the native linker is
14549 *** used, and then restart.
14550
14551 EOF
14552       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555       else
14556         ld_shlibs_F77=no
14557       fi
14558       ;;
14559
14560     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14561       case `$LD -v 2>&1` in
14562         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14563         ld_shlibs_F77=no
14564         cat <<_LT_EOF 1>&2
14565
14566 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14567 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14568 *** is disabling shared libraries support.  We urge you to upgrade GNU
14569 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14570 *** your PATH or compiler configuration so that the native linker is
14571 *** used, and then restart.
14572
14573 _LT_EOF
14574         ;;
14575         *)
14576           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14577             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14578             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14579             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14580           else
14581             ld_shlibs_F77=no
14582           fi
14583         ;;
14584       esac
14585       ;;
14586
14587     sunos4*)
14588       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14589       wlarc=
14590       hardcode_direct_F77=yes
14591       hardcode_shlibpath_var_F77=no
14592       ;;
14593
14594     *)
14595       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14596         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14597         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14598       else
14599         ld_shlibs_F77=no
14600       fi
14601       ;;
14602     esac
14603
14604     if test "$ld_shlibs_F77" = no; then
14605       runpath_var=
14606       hardcode_libdir_flag_spec_F77=
14607       export_dynamic_flag_spec_F77=
14608       whole_archive_flag_spec_F77=
14609     fi
14610   else
14611     # PORTME fill in a description of your system's linker (not GNU ld)
14612     case $host_os in
14613     aix3*)
14614       allow_undefined_flag_F77=unsupported
14615       always_export_symbols_F77=yes
14616       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'
14617       # Note: this linker hardcodes the directories in LIBPATH if there
14618       # are no directories specified by -L.
14619       hardcode_minus_L_F77=yes
14620       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14621         # Neither direct hardcoding nor static linking is supported with a
14622         # broken collect2.
14623         hardcode_direct_F77=unsupported
14624       fi
14625       ;;
14626
14627     aix4* | aix5*)
14628       if test "$host_cpu" = ia64; then
14629         # On IA64, the linker does run time linking by default, so we don't
14630         # have to do anything special.
14631         aix_use_runtimelinking=no
14632         exp_sym_flag='-Bexport'
14633         no_entry_flag=""
14634       else
14635         # If we're using GNU nm, then we don't want the "-C" option.
14636         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14637         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14638           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'
14639         else
14640           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'
14641         fi
14642         aix_use_runtimelinking=no
14643
14644         # Test if we are trying to use run time linking or normal
14645         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14646         # need to do runtime linking.
14647         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14648           for ld_flag in $LDFLAGS; do
14649           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14650             aix_use_runtimelinking=yes
14651             break
14652           fi
14653           done
14654           ;;
14655         esac
14656
14657         exp_sym_flag='-bexport'
14658         no_entry_flag='-bnoentry'
14659       fi
14660
14661       # When large executables or shared objects are built, AIX ld can
14662       # have problems creating the table of contents.  If linking a library
14663       # or program results in "error TOC overflow" add -mminimal-toc to
14664       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14665       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14666
14667       archive_cmds_F77=''
14668       hardcode_direct_F77=yes
14669       hardcode_libdir_separator_F77=':'
14670       link_all_deplibs_F77=yes
14671
14672       if test "$GCC" = yes; then
14673         case $host_os in aix4.[012]|aix4.[012].*)
14674         # We only want to do this on AIX 4.2 and lower, the check
14675         # below for broken collect2 doesn't work under 4.3+
14676           collect2name=`${CC} -print-prog-name=collect2`
14677           if test -f "$collect2name" && \
14678            strings "$collect2name" | grep resolve_lib_name >/dev/null
14679           then
14680           # We have reworked collect2
14681           :
14682           else
14683           # We have old collect2
14684           hardcode_direct_F77=unsupported
14685           # It fails to find uninstalled libraries when the uninstalled
14686           # path is not listed in the libpath.  Setting hardcode_minus_L
14687           # to unsupported forces relinking
14688           hardcode_minus_L_F77=yes
14689           hardcode_libdir_flag_spec_F77='-L$libdir'
14690           hardcode_libdir_separator_F77=
14691           fi
14692           ;;
14693         esac
14694         shared_flag='-shared'
14695         if test "$aix_use_runtimelinking" = yes; then
14696           shared_flag="$shared_flag "'${wl}-G'
14697         fi
14698       else
14699         # not using gcc
14700         if test "$host_cpu" = ia64; then
14701         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14702         # chokes on -Wl,-G. The following line is correct:
14703           shared_flag='-G'
14704         else
14705           if test "$aix_use_runtimelinking" = yes; then
14706             shared_flag='${wl}-G'
14707           else
14708             shared_flag='${wl}-bM:SRE'
14709           fi
14710         fi
14711       fi
14712
14713       # It seems that -bexpall does not export symbols beginning with
14714       # underscore (_), so it is better to generate a list of symbols to export.
14715       always_export_symbols_F77=yes
14716       if test "$aix_use_runtimelinking" = yes; then
14717         # Warning - without using the other runtime loading flags (-brtl),
14718         # -berok will link without error, but may produce a broken library.
14719         allow_undefined_flag_F77='-berok'
14720        # Determine the default libpath from the value encoded in an empty executable.
14721        cat >conftest.$ac_ext <<_ACEOF
14722       program main
14723
14724       end
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (ac_try="$ac_link"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_link") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } && {
14740          test -z "$ac_f77_werror_flag" ||
14741          test ! -s conftest.err
14742        } && test -s conftest$ac_exeext &&
14743        $as_test_x conftest$ac_exeext; then
14744
14745 lt_aix_libpath_sed='
14746     /Import File Strings/,/^$/ {
14747         /^0/ {
14748             s/^0  *\(.*\)$/\1/
14749             p
14750         }
14751     }'
14752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then
14755   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14756 fi
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14765       conftest$ac_exeext conftest.$ac_ext
14766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14767
14768        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14769         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14770        else
14771         if test "$host_cpu" = ia64; then
14772           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14773           allow_undefined_flag_F77="-z nodefs"
14774           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14775         else
14776          # Determine the default libpath from the value encoded in an empty executable.
14777          cat >conftest.$ac_ext <<_ACEOF
14778       program main
14779
14780       end
14781 _ACEOF
14782 rm -f conftest.$ac_objext conftest$ac_exeext
14783 if { (ac_try="$ac_link"
14784 case "(($ac_try" in
14785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786   *) ac_try_echo=$ac_try;;
14787 esac
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789   (eval "$ac_link") 2>conftest.er1
14790   ac_status=$?
14791   grep -v '^ *+' conftest.er1 >conftest.err
14792   rm -f conftest.er1
14793   cat conftest.err >&5
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); } && {
14796          test -z "$ac_f77_werror_flag" ||
14797          test ! -s conftest.err
14798        } && test -s conftest$ac_exeext &&
14799        $as_test_x conftest$ac_exeext; then
14800
14801 lt_aix_libpath_sed='
14802     /Import File Strings/,/^$/ {
14803         /^0/ {
14804             s/^0  *\(.*\)$/\1/
14805             p
14806         }
14807     }'
14808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14809 # Check for a 64-bit object if we didn't find anything.
14810 if test -z "$aix_libpath"; then
14811   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14812 fi
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821       conftest$ac_exeext conftest.$ac_ext
14822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14823
14824          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14825           # Warning - without using the other run time loading flags,
14826           # -berok will link without error, but may produce a broken library.
14827           no_undefined_flag_F77=' ${wl}-bernotok'
14828           allow_undefined_flag_F77=' ${wl}-berok'
14829           # Exported symbols can be pulled into shared objects from archives
14830           whole_archive_flag_spec_F77='$convenience'
14831           archive_cmds_need_lc_F77=yes
14832           # This is similar to how AIX traditionally builds its shared libraries.
14833           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14834         fi
14835       fi
14836       ;;
14837
14838     amigaos*)
14839       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)'
14840       hardcode_libdir_flag_spec_F77='-L$libdir'
14841       hardcode_minus_L_F77=yes
14842       # see comment about different semantics on the GNU ld section
14843       ld_shlibs_F77=no
14844       ;;
14845
14846     bsdi[45]*)
14847       export_dynamic_flag_spec_F77=-rdynamic
14848       ;;
14849
14850     cygwin* | mingw* | pw32*)
14851       # When not using gcc, we currently assume that we are using
14852       # Microsoft Visual C++.
14853       # hardcode_libdir_flag_spec is actually meaningless, as there is
14854       # no search path for DLLs.
14855       hardcode_libdir_flag_spec_F77=' '
14856       allow_undefined_flag_F77=unsupported
14857       # Tell ltmain to make .lib files, not .a files.
14858       libext=lib
14859       # Tell ltmain to make .dll files, not .so files.
14860       shrext_cmds=".dll"
14861       # FIXME: Setting linknames here is a bad hack.
14862       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14863       # The linker will automatically build a .lib file if we build a DLL.
14864       old_archive_From_new_cmds_F77='true'
14865       # FIXME: Should let the user specify the lib program.
14866       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14867       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14868       enable_shared_with_static_runtimes_F77=yes
14869       ;;
14870
14871     darwin* | rhapsody*)
14872       case $host_os in
14873         rhapsody* | darwin1.[012])
14874          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14875          ;;
14876        *) # Darwin 1.3 on
14877          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14878            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14879          else
14880            case ${MACOSX_DEPLOYMENT_TARGET} in
14881              10.[012])
14882                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14883                ;;
14884              10.*)
14885                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14886                ;;
14887            esac
14888          fi
14889          ;;
14890       esac
14891       archive_cmds_need_lc_F77=no
14892       hardcode_direct_F77=no
14893       hardcode_automatic_F77=yes
14894       hardcode_shlibpath_var_F77=unsupported
14895       whole_archive_flag_spec_F77=''
14896       link_all_deplibs_F77=yes
14897     if test "$GCC" = yes ; then
14898         output_verbose_link_cmd='echo'
14899         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14900       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14901       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14902       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14903       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}'
14904     else
14905       case $cc_basename in
14906         xlc*)
14907          output_verbose_link_cmd='echo'
14908          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14909          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14910           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14911          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14912           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}'
14913           ;;
14914        *)
14915          ld_shlibs_F77=no
14916           ;;
14917       esac
14918     fi
14919       ;;
14920
14921     dgux*)
14922       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923       hardcode_libdir_flag_spec_F77='-L$libdir'
14924       hardcode_shlibpath_var_F77=no
14925       ;;
14926
14927     freebsd1*)
14928       ld_shlibs_F77=no
14929       ;;
14930
14931     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14932     # support.  Future versions do this automatically, but an explicit c++rt0.o
14933     # does not break anything, and helps significantly (at the cost of a little
14934     # extra space).
14935     freebsd2.2*)
14936       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14937       hardcode_libdir_flag_spec_F77='-R$libdir'
14938       hardcode_direct_F77=yes
14939       hardcode_shlibpath_var_F77=no
14940       ;;
14941
14942     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14943     freebsd2*)
14944       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945       hardcode_direct_F77=yes
14946       hardcode_minus_L_F77=yes
14947       hardcode_shlibpath_var_F77=no
14948       ;;
14949
14950     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14951     freebsd* | dragonfly*)
14952       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14953       hardcode_libdir_flag_spec_F77='-R$libdir'
14954       hardcode_direct_F77=yes
14955       hardcode_shlibpath_var_F77=no
14956       ;;
14957
14958     hpux9*)
14959       if test "$GCC" = yes; then
14960         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'
14961       else
14962         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'
14963       fi
14964       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14965       hardcode_libdir_separator_F77=:
14966       hardcode_direct_F77=yes
14967
14968       # hardcode_minus_L: Not really in the search PATH,
14969       # but as the default location of the library.
14970       hardcode_minus_L_F77=yes
14971       export_dynamic_flag_spec_F77='${wl}-E'
14972       ;;
14973
14974     hpux10*)
14975       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14976         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14977       else
14978         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14979       fi
14980       if test "$with_gnu_ld" = no; then
14981         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14982         hardcode_libdir_separator_F77=:
14983
14984         hardcode_direct_F77=yes
14985         export_dynamic_flag_spec_F77='${wl}-E'
14986
14987         # hardcode_minus_L: Not really in the search PATH,
14988         # but as the default location of the library.
14989         hardcode_minus_L_F77=yes
14990       fi
14991       ;;
14992
14993     hpux11*)
14994       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14995         case $host_cpu in
14996         hppa*64*)
14997           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14998           ;;
14999         ia64*)
15000           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15001           ;;
15002         *)
15003           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15004           ;;
15005         esac
15006       else
15007         case $host_cpu in
15008         hppa*64*)
15009           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15010           ;;
15011         ia64*)
15012           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15013           ;;
15014         *)
15015           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15016           ;;
15017         esac
15018       fi
15019       if test "$with_gnu_ld" = no; then
15020         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15021         hardcode_libdir_separator_F77=:
15022
15023         case $host_cpu in
15024         hppa*64*|ia64*)
15025           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15026           hardcode_direct_F77=no
15027           hardcode_shlibpath_var_F77=no
15028           ;;
15029         *)
15030           hardcode_direct_F77=yes
15031           export_dynamic_flag_spec_F77='${wl}-E'
15032
15033           # hardcode_minus_L: Not really in the search PATH,
15034           # but as the default location of the library.
15035           hardcode_minus_L_F77=yes
15036           ;;
15037         esac
15038       fi
15039       ;;
15040
15041     irix5* | irix6* | nonstopux*)
15042       if test "$GCC" = yes; then
15043         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'
15044       else
15045         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'
15046         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15047       fi
15048       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15049       hardcode_libdir_separator_F77=:
15050       link_all_deplibs_F77=yes
15051       ;;
15052
15053     netbsd* | netbsdelf*-gnu)
15054       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15055         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15056       else
15057         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15058       fi
15059       hardcode_libdir_flag_spec_F77='-R$libdir'
15060       hardcode_direct_F77=yes
15061       hardcode_shlibpath_var_F77=no
15062       ;;
15063
15064     newsos6)
15065       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066       hardcode_direct_F77=yes
15067       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15068       hardcode_libdir_separator_F77=:
15069       hardcode_shlibpath_var_F77=no
15070       ;;
15071
15072     openbsd*)
15073       if test -f /usr/libexec/ld.so; then
15074         hardcode_direct_F77=yes
15075         hardcode_shlibpath_var_F77=no
15076         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15077           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15078           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15079           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15080           export_dynamic_flag_spec_F77='${wl}-E'
15081         else
15082           case $host_os in
15083            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15084              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15085              hardcode_libdir_flag_spec_F77='-R$libdir'
15086              ;;
15087            *)
15088              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15089              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15090              ;;
15091           esac
15092         fi
15093       else
15094         ld_shlibs_F77=no
15095       fi
15096       ;;
15097
15098     os2*)
15099       hardcode_libdir_flag_spec_F77='-L$libdir'
15100       hardcode_minus_L_F77=yes
15101       allow_undefined_flag_F77=unsupported
15102       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'
15103       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15104       ;;
15105
15106     osf3*)
15107       if test "$GCC" = yes; then
15108         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15109         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'
15110       else
15111         allow_undefined_flag_F77=' -expect_unresolved \*'
15112         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'
15113       fi
15114       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15115       hardcode_libdir_separator_F77=:
15116       ;;
15117
15118     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15119       if test "$GCC" = yes; then
15120         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15121         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'
15122         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15123       else
15124         allow_undefined_flag_F77=' -expect_unresolved \*'
15125         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'
15126         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~
15127         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15128
15129         # Both c and cxx compiler support -rpath directly
15130         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15131       fi
15132       hardcode_libdir_separator_F77=:
15133       ;;
15134
15135     solaris*)
15136       no_undefined_flag_F77=' -z text'
15137       if test "$GCC" = yes; then
15138         wlarc='${wl}'
15139         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15141           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15142       else
15143         wlarc=''
15144         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15147       fi
15148       hardcode_libdir_flag_spec_F77='-R$libdir'
15149       hardcode_shlibpath_var_F77=no
15150       case $host_os in
15151       solaris2.[0-5] | solaris2.[0-5].*) ;;
15152       *)
15153         # The compiler driver will combine and reorder linker options,
15154         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15155         # but is careful enough not to reorder.
15156         # Supported since Solaris 2.6 (maybe 2.5.1?)
15157         if test "$GCC" = yes; then
15158           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15159         else
15160           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15161         fi
15162         ;;
15163       esac
15164       link_all_deplibs_F77=yes
15165       ;;
15166
15167     sunos4*)
15168       if test "x$host_vendor" = xsequent; then
15169         # Use $CC to link under sequent, because it throws in some extra .o
15170         # files that make .init and .fini sections work.
15171         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15172       else
15173         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15174       fi
15175       hardcode_libdir_flag_spec_F77='-L$libdir'
15176       hardcode_direct_F77=yes
15177       hardcode_minus_L_F77=yes
15178       hardcode_shlibpath_var_F77=no
15179       ;;
15180
15181     sysv4)
15182       case $host_vendor in
15183         sni)
15184           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185           hardcode_direct_F77=yes # is this really true???
15186         ;;
15187         siemens)
15188           ## LD is ld it makes a PLAMLIB
15189           ## CC just makes a GrossModule.
15190           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15191           reload_cmds_F77='$CC -r -o $output$reload_objs'
15192           hardcode_direct_F77=no
15193         ;;
15194         motorola)
15195           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15197         ;;
15198       esac
15199       runpath_var='LD_RUN_PATH'
15200       hardcode_shlibpath_var_F77=no
15201       ;;
15202
15203     sysv4.3*)
15204       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15205       hardcode_shlibpath_var_F77=no
15206       export_dynamic_flag_spec_F77='-Bexport'
15207       ;;
15208
15209     sysv4*MP*)
15210       if test -d /usr/nec; then
15211         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212         hardcode_shlibpath_var_F77=no
15213         runpath_var=LD_RUN_PATH
15214         hardcode_runpath_var=yes
15215         ld_shlibs_F77=yes
15216       fi
15217       ;;
15218
15219     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15220       no_undefined_flag_F77='${wl}-z,text'
15221       archive_cmds_need_lc_F77=no
15222       hardcode_shlibpath_var_F77=no
15223       runpath_var='LD_RUN_PATH'
15224
15225       if test "$GCC" = yes; then
15226         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228       else
15229         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231       fi
15232       ;;
15233
15234     sysv5* | sco3.2v5* | sco5v6*)
15235       # Note: We can NOT use -z defs as we might desire, because we do not
15236       # link with -lc, and that would cause any symbols used from libc to
15237       # always be unresolved, which means just about no library would
15238       # ever link correctly.  If we're not using GNU ld we use -z text
15239       # though, which does catch some bad symbols but isn't as heavy-handed
15240       # as -z defs.
15241       no_undefined_flag_F77='${wl}-z,text'
15242       allow_undefined_flag_F77='${wl}-z,nodefs'
15243       archive_cmds_need_lc_F77=no
15244       hardcode_shlibpath_var_F77=no
15245       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15246       hardcode_libdir_separator_F77=':'
15247       link_all_deplibs_F77=yes
15248       export_dynamic_flag_spec_F77='${wl}-Bexport'
15249       runpath_var='LD_RUN_PATH'
15250
15251       if test "$GCC" = yes; then
15252         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254       else
15255         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257       fi
15258       ;;
15259
15260     uts4*)
15261       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15262       hardcode_libdir_flag_spec_F77='-L$libdir'
15263       hardcode_shlibpath_var_F77=no
15264       ;;
15265
15266     *)
15267       ld_shlibs_F77=no
15268       ;;
15269     esac
15270   fi
15271
15272 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15273 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15274 test "$ld_shlibs_F77" = no && can_build_shared=no
15275
15276 #
15277 # Do we need to explicitly link libc?
15278 #
15279 case "x$archive_cmds_need_lc_F77" in
15280 x|xyes)
15281   # Assume -lc should be added
15282   archive_cmds_need_lc_F77=yes
15283
15284   if test "$enable_shared" = yes && test "$GCC" = yes; then
15285     case $archive_cmds_F77 in
15286     *'~'*)
15287       # FIXME: we may have to deal with multi-command sequences.
15288       ;;
15289     '$CC '*)
15290       # Test whether the compiler implicitly links with -lc since on some
15291       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15292       # to ld, don't add -lc before -lgcc.
15293       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15295       $rm conftest*
15296       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15297
15298       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299   (eval $ac_compile) 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); } 2>conftest.err; then
15303         soname=conftest
15304         lib=conftest
15305         libobjs=conftest.$ac_objext
15306         deplibs=
15307         wl=$lt_prog_compiler_wl_F77
15308         pic_flag=$lt_prog_compiler_pic_F77
15309         compiler_flags=-v
15310         linker_flags=-v
15311         verstring=
15312         output_objdir=.
15313         libname=conftest
15314         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15315         allow_undefined_flag_F77=
15316         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15317   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }
15321         then
15322           archive_cmds_need_lc_F77=no
15323         else
15324           archive_cmds_need_lc_F77=yes
15325         fi
15326         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15327       else
15328         cat conftest.err 1>&5
15329       fi
15330       $rm conftest*
15331       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15332 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15333       ;;
15334     esac
15335   fi
15336   ;;
15337 esac
15338
15339 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15341 library_names_spec=
15342 libname_spec='lib$name'
15343 soname_spec=
15344 shrext_cmds=".so"
15345 postinstall_cmds=
15346 postuninstall_cmds=
15347 finish_cmds=
15348 finish_eval=
15349 shlibpath_var=
15350 shlibpath_overrides_runpath=unknown
15351 version_type=none
15352 dynamic_linker="$host_os ld.so"
15353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15354
15355 need_lib_prefix=unknown
15356 hardcode_into_libs=no
15357
15358 # when you set need_version to no, make sure it does not cause -set_version
15359 # flags to be left without arguments
15360 need_version=unknown
15361
15362 case $host_os in
15363 aix3*)
15364   version_type=linux
15365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15366   shlibpath_var=LIBPATH
15367
15368   # AIX 3 has no versioning support, so we append a major version to the name.
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   ;;
15371
15372 aix4* | aix5*)
15373   version_type=linux
15374   need_lib_prefix=no
15375   need_version=no
15376   hardcode_into_libs=yes
15377   if test "$host_cpu" = ia64; then
15378     # AIX 5 supports IA64
15379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15380     shlibpath_var=LD_LIBRARY_PATH
15381   else
15382     # With GCC up to 2.95.x, collect2 would create an import file
15383     # for dependence libraries.  The import file would start with
15384     # the line `#! .'.  This would cause the generated library to
15385     # depend on `.', always an invalid library.  This was fixed in
15386     # development snapshots of GCC prior to 3.0.
15387     case $host_os in
15388       aix4 | aix4.[01] | aix4.[01].*)
15389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15390            echo ' yes '
15391            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15392         :
15393       else
15394         can_build_shared=no
15395       fi
15396       ;;
15397     esac
15398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15399     # soname into executable. Probably we can add versioning support to
15400     # collect2, so additional links can be useful in future.
15401     if test "$aix_use_runtimelinking" = yes; then
15402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15403       # instead of lib<name>.a to let people know that these are not
15404       # typical AIX shared libraries.
15405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406     else
15407       # We preserve .a as extension for shared libraries through AIX4.2
15408       # and later when we are not doing run time linking.
15409       library_names_spec='${libname}${release}.a $libname.a'
15410       soname_spec='${libname}${release}${shared_ext}$major'
15411     fi
15412     shlibpath_var=LIBPATH
15413   fi
15414   ;;
15415
15416 amigaos*)
15417   library_names_spec='$libname.ixlibrary $libname.a'
15418   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15419   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'
15420   ;;
15421
15422 beos*)
15423   library_names_spec='${libname}${shared_ext}'
15424   dynamic_linker="$host_os ld.so"
15425   shlibpath_var=LIBRARY_PATH
15426   ;;
15427
15428 bsdi[45]*)
15429   version_type=linux
15430   need_version=no
15431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432   soname_spec='${libname}${release}${shared_ext}$major'
15433   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15434   shlibpath_var=LD_LIBRARY_PATH
15435   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15436   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15437   # the default ld.so.conf also contains /usr/contrib/lib and
15438   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15439   # libtool to hard-code these into programs
15440   ;;
15441
15442 cygwin* | mingw* | pw32*)
15443   version_type=windows
15444   shrext_cmds=".dll"
15445   need_version=no
15446   need_lib_prefix=no
15447
15448   case $GCC,$host_os in
15449   yes,cygwin* | yes,mingw* | yes,pw32*)
15450     library_names_spec='$libname.dll.a'
15451     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15452     postinstall_cmds='base_file=`basename \${file}`~
15453       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15454       dldir=$destdir/`dirname \$dlpath`~
15455       test -d \$dldir || mkdir -p \$dldir~
15456       $install_prog $dir/$dlname \$dldir/$dlname~
15457       chmod a+x \$dldir/$dlname'
15458     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15459       dlpath=$dir/\$dldll~
15460        $rm \$dlpath'
15461     shlibpath_overrides_runpath=yes
15462
15463     case $host_os in
15464     cygwin*)
15465       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15466       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15467       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15468       ;;
15469     mingw*)
15470       # MinGW DLLs use traditional 'lib' prefix
15471       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15472       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15473       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15474         # It is most probably a Windows format PATH printed by
15475         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15476         # path with ; separators, and with drive letters. We can handle the
15477         # drive letters (cygwin fileutils understands them), so leave them,
15478         # especially as we might pass files found there to a mingw objdump,
15479         # which wouldn't understand a cygwinified path. Ahh.
15480         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15481       else
15482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15483       fi
15484       ;;
15485     pw32*)
15486       # pw32 DLLs use 'pw' prefix rather than 'lib'
15487       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488       ;;
15489     esac
15490     ;;
15491
15492   *)
15493     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15494     ;;
15495   esac
15496   dynamic_linker='Win32 ld.exe'
15497   # FIXME: first we should search . and the directory the executable is in
15498   shlibpath_var=PATH
15499   ;;
15500
15501 darwin* | rhapsody*)
15502   dynamic_linker="$host_os dyld"
15503   version_type=darwin
15504   need_lib_prefix=no
15505   need_version=no
15506   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15507   soname_spec='${libname}${release}${major}$shared_ext'
15508   shlibpath_overrides_runpath=yes
15509   shlibpath_var=DYLD_LIBRARY_PATH
15510   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15511
15512   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15513   ;;
15514
15515 dgux*)
15516   version_type=linux
15517   need_lib_prefix=no
15518   need_version=no
15519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15520   soname_spec='${libname}${release}${shared_ext}$major'
15521   shlibpath_var=LD_LIBRARY_PATH
15522   ;;
15523
15524 freebsd1*)
15525   dynamic_linker=no
15526   ;;
15527
15528 freebsd* | dragonfly*)
15529   # DragonFly does not have aout.  When/if they implement a new
15530   # versioning mechanism, adjust this.
15531   if test -x /usr/bin/objformat; then
15532     objformat=`/usr/bin/objformat`
15533   else
15534     case $host_os in
15535     freebsd[123]*) objformat=aout ;;
15536     *) objformat=elf ;;
15537     esac
15538   fi
15539   version_type=freebsd-$objformat
15540   case $version_type in
15541     freebsd-elf*)
15542       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15543       need_version=no
15544       need_lib_prefix=no
15545       ;;
15546     freebsd-*)
15547       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15548       need_version=yes
15549       ;;
15550   esac
15551   shlibpath_var=LD_LIBRARY_PATH
15552   case $host_os in
15553   freebsd2*)
15554     shlibpath_overrides_runpath=yes
15555     ;;
15556   freebsd3.[01]* | freebsdelf3.[01]*)
15557     shlibpath_overrides_runpath=yes
15558     hardcode_into_libs=yes
15559     ;;
15560   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15561   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15562     shlibpath_overrides_runpath=no
15563     hardcode_into_libs=yes
15564     ;;
15565   *) # from 4.6 on, and DragonFly
15566     shlibpath_overrides_runpath=yes
15567     hardcode_into_libs=yes
15568     ;;
15569   esac
15570   ;;
15571
15572 gnu*)
15573   version_type=linux
15574   need_lib_prefix=no
15575   need_version=no
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15577   soname_spec='${libname}${release}${shared_ext}$major'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   hardcode_into_libs=yes
15580   ;;
15581
15582 hpux9* | hpux10* | hpux11*)
15583   # Give a soname corresponding to the major version so that dld.sl refuses to
15584   # link against other versions.
15585   version_type=sunos
15586   need_lib_prefix=no
15587   need_version=no
15588   case $host_cpu in
15589   ia64*)
15590     shrext_cmds='.so'
15591     hardcode_into_libs=yes
15592     dynamic_linker="$host_os dld.so"
15593     shlibpath_var=LD_LIBRARY_PATH
15594     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596     soname_spec='${libname}${release}${shared_ext}$major'
15597     if test "X$HPUX_IA64_MODE" = X32; then
15598       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15599     else
15600       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15601     fi
15602     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15603     ;;
15604    hppa*64*)
15605      shrext_cmds='.sl'
15606      hardcode_into_libs=yes
15607      dynamic_linker="$host_os dld.sl"
15608      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15609      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15610      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611      soname_spec='${libname}${release}${shared_ext}$major'
15612      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15613      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15614      ;;
15615    *)
15616     shrext_cmds='.sl'
15617     dynamic_linker="$host_os dld.sl"
15618     shlibpath_var=SHLIB_PATH
15619     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621     soname_spec='${libname}${release}${shared_ext}$major'
15622     ;;
15623   esac
15624   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15625   postinstall_cmds='chmod 555 $lib'
15626   ;;
15627
15628 interix[3-9]*)
15629   version_type=linux
15630   need_lib_prefix=no
15631   need_version=no
15632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15633   soname_spec='${libname}${release}${shared_ext}$major'
15634   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15635   shlibpath_var=LD_LIBRARY_PATH
15636   shlibpath_overrides_runpath=no
15637   hardcode_into_libs=yes
15638   ;;
15639
15640 irix5* | irix6* | nonstopux*)
15641   case $host_os in
15642     nonstopux*) version_type=nonstopux ;;
15643     *)
15644         if test "$lt_cv_prog_gnu_ld" = yes; then
15645                 version_type=linux
15646         else
15647                 version_type=irix
15648         fi ;;
15649   esac
15650   need_lib_prefix=no
15651   need_version=no
15652   soname_spec='${libname}${release}${shared_ext}$major'
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15654   case $host_os in
15655   irix5* | nonstopux*)
15656     libsuff= shlibsuff=
15657     ;;
15658   *)
15659     case $LD in # libtool.m4 will add one of these switches to LD
15660     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15661       libsuff= shlibsuff= libmagic=32-bit;;
15662     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15663       libsuff=32 shlibsuff=N32 libmagic=N32;;
15664     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15665       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15666     *) libsuff= shlibsuff= libmagic=never-match;;
15667     esac
15668     ;;
15669   esac
15670   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15671   shlibpath_overrides_runpath=no
15672   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15673   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15674   hardcode_into_libs=yes
15675   ;;
15676
15677 # No shared lib support for Linux oldld, aout, or coff.
15678 linux*oldld* | linux*aout* | linux*coff*)
15679   dynamic_linker=no
15680   ;;
15681
15682 # This must be Linux ELF.
15683 linux* | k*bsd*-gnu)
15684   version_type=linux
15685   need_lib_prefix=no
15686   need_version=no
15687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688   soname_spec='${libname}${release}${shared_ext}$major'
15689   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15690   shlibpath_var=LD_LIBRARY_PATH
15691   shlibpath_overrides_runpath=no
15692   # This implies no fast_install, which is unacceptable.
15693   # Some rework will be needed to allow for fast_install
15694   # before this can be enabled.
15695   hardcode_into_libs=yes
15696
15697   # Append ld.so.conf contents to the search path
15698   if test -f /etc/ld.so.conf; then
15699     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15700     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15701   fi
15702
15703   # We used to test for /lib/ld.so.1 and disable shared libraries on
15704   # powerpc, because MkLinux only supported shared libraries with the
15705   # GNU dynamic linker.  Since this was broken with cross compilers,
15706   # most powerpc-linux boxes support dynamic linking these days and
15707   # people can always --disable-shared, the test was removed, and we
15708   # assume the GNU/Linux dynamic linker is in use.
15709   dynamic_linker='GNU/Linux ld.so'
15710   ;;
15711
15712 netbsdelf*-gnu)
15713   version_type=linux
15714   need_lib_prefix=no
15715   need_version=no
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   shlibpath_overrides_runpath=no
15720   hardcode_into_libs=yes
15721   dynamic_linker='NetBSD ld.elf_so'
15722   ;;
15723
15724 netbsd*)
15725   version_type=sunos
15726   need_lib_prefix=no
15727   need_version=no
15728   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15730     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15731     dynamic_linker='NetBSD (a.out) ld.so'
15732   else
15733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15734     soname_spec='${libname}${release}${shared_ext}$major'
15735     dynamic_linker='NetBSD ld.elf_so'
15736   fi
15737   shlibpath_var=LD_LIBRARY_PATH
15738   shlibpath_overrides_runpath=yes
15739   hardcode_into_libs=yes
15740   ;;
15741
15742 newsos6)
15743   version_type=linux
15744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   shlibpath_overrides_runpath=yes
15747   ;;
15748
15749 nto-qnx*)
15750   version_type=linux
15751   need_lib_prefix=no
15752   need_version=no
15753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   shlibpath_overrides_runpath=yes
15757   ;;
15758
15759 openbsd*)
15760   version_type=sunos
15761   sys_lib_dlsearch_path_spec="/usr/lib"
15762   need_lib_prefix=no
15763   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15764   case $host_os in
15765     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15766     *)                         need_version=no  ;;
15767   esac
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15770   shlibpath_var=LD_LIBRARY_PATH
15771   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15772     case $host_os in
15773       openbsd2.[89] | openbsd2.[89].*)
15774         shlibpath_overrides_runpath=no
15775         ;;
15776       *)
15777         shlibpath_overrides_runpath=yes
15778         ;;
15779       esac
15780   else
15781     shlibpath_overrides_runpath=yes
15782   fi
15783   ;;
15784
15785 os2*)
15786   libname_spec='$name'
15787   shrext_cmds=".dll"
15788   need_lib_prefix=no
15789   library_names_spec='$libname${shared_ext} $libname.a'
15790   dynamic_linker='OS/2 ld.exe'
15791   shlibpath_var=LIBPATH
15792   ;;
15793
15794 osf3* | osf4* | osf5*)
15795   version_type=osf
15796   need_lib_prefix=no
15797   need_version=no
15798   soname_spec='${libname}${release}${shared_ext}$major'
15799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800   shlibpath_var=LD_LIBRARY_PATH
15801   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15802   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15803   ;;
15804
15805 rdos*)
15806   dynamic_linker=no
15807   ;;
15808
15809 solaris*)
15810   version_type=linux
15811   need_lib_prefix=no
15812   need_version=no
15813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814   soname_spec='${libname}${release}${shared_ext}$major'
15815   shlibpath_var=LD_LIBRARY_PATH
15816   shlibpath_overrides_runpath=yes
15817   hardcode_into_libs=yes
15818   # ldd complains unless libraries are executable
15819   postinstall_cmds='chmod +x $lib'
15820   ;;
15821
15822 sunos4*)
15823   version_type=sunos
15824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15825   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15826   shlibpath_var=LD_LIBRARY_PATH
15827   shlibpath_overrides_runpath=yes
15828   if test "$with_gnu_ld" = yes; then
15829     need_lib_prefix=no
15830   fi
15831   need_version=yes
15832   ;;
15833
15834 sysv4 | sysv4.3*)
15835   version_type=linux
15836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837   soname_spec='${libname}${release}${shared_ext}$major'
15838   shlibpath_var=LD_LIBRARY_PATH
15839   case $host_vendor in
15840     sni)
15841       shlibpath_overrides_runpath=no
15842       need_lib_prefix=no
15843       export_dynamic_flag_spec='${wl}-Blargedynsym'
15844       runpath_var=LD_RUN_PATH
15845       ;;
15846     siemens)
15847       need_lib_prefix=no
15848       ;;
15849     motorola)
15850       need_lib_prefix=no
15851       need_version=no
15852       shlibpath_overrides_runpath=no
15853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15854       ;;
15855   esac
15856   ;;
15857
15858 sysv4*MP*)
15859   if test -d /usr/nec ;then
15860     version_type=linux
15861     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15862     soname_spec='$libname${shared_ext}.$major'
15863     shlibpath_var=LD_LIBRARY_PATH
15864   fi
15865   ;;
15866
15867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15868   version_type=freebsd-elf
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15872   soname_spec='${libname}${release}${shared_ext}$major'
15873   shlibpath_var=LD_LIBRARY_PATH
15874   hardcode_into_libs=yes
15875   if test "$with_gnu_ld" = yes; then
15876     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15877     shlibpath_overrides_runpath=no
15878   else
15879     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15880     shlibpath_overrides_runpath=yes
15881     case $host_os in
15882       sco3.2v5*)
15883         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15884         ;;
15885     esac
15886   fi
15887   sys_lib_dlsearch_path_spec='/usr/lib'
15888   ;;
15889
15890 uts4*)
15891   version_type=linux
15892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893   soname_spec='${libname}${release}${shared_ext}$major'
15894   shlibpath_var=LD_LIBRARY_PATH
15895   ;;
15896
15897 *)
15898   dynamic_linker=no
15899   ;;
15900 esac
15901 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15902 echo "${ECHO_T}$dynamic_linker" >&6; }
15903 test "$dynamic_linker" = no && can_build_shared=no
15904
15905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15906 if test "$GCC" = yes; then
15907   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15908 fi
15909
15910 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15911 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15912 hardcode_action_F77=
15913 if test -n "$hardcode_libdir_flag_spec_F77" || \
15914    test -n "$runpath_var_F77" || \
15915    test "X$hardcode_automatic_F77" = "Xyes" ; then
15916
15917   # We can hardcode non-existant directories.
15918   if test "$hardcode_direct_F77" != no &&
15919      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15920      # have to relink, otherwise we might link with an installed library
15921      # when we should be linking with a yet-to-be-installed one
15922      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15923      test "$hardcode_minus_L_F77" != no; then
15924     # Linking always hardcodes the temporary library directory.
15925     hardcode_action_F77=relink
15926   else
15927     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15928     hardcode_action_F77=immediate
15929   fi
15930 else
15931   # We cannot hardcode anything, or else we can only hardcode existing
15932   # directories.
15933   hardcode_action_F77=unsupported
15934 fi
15935 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15936 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15937
15938 if test "$hardcode_action_F77" = relink; then
15939   # Fast installation is not supported
15940   enable_fast_install=no
15941 elif test "$shlibpath_overrides_runpath" = yes ||
15942      test "$enable_shared" = no; then
15943   # Fast installation is not necessary
15944   enable_fast_install=needless
15945 fi
15946
15947
15948 # The else clause should only fire when bootstrapping the
15949 # libtool distribution, otherwise you forgot to ship ltmain.sh
15950 # with your package, and you will get complaints that there are
15951 # no rules to generate ltmain.sh.
15952 if test -f "$ltmain"; then
15953   # See if we are running on zsh, and set the options which allow our commands through
15954   # without removal of \ escapes.
15955   if test -n "${ZSH_VERSION+set}" ; then
15956     setopt NO_GLOB_SUBST
15957   fi
15958   # Now quote all the things that may contain metacharacters while being
15959   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15960   # variables and quote the copies for generation of the libtool script.
15961   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15962     SED SHELL STRIP \
15963     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15964     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15965     deplibs_check_method reload_flag reload_cmds need_locks \
15966     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15967     lt_cv_sys_global_symbol_to_c_name_address \
15968     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15969     old_postinstall_cmds old_postuninstall_cmds \
15970     compiler_F77 \
15971     CC_F77 \
15972     LD_F77 \
15973     lt_prog_compiler_wl_F77 \
15974     lt_prog_compiler_pic_F77 \
15975     lt_prog_compiler_static_F77 \
15976     lt_prog_compiler_no_builtin_flag_F77 \
15977     export_dynamic_flag_spec_F77 \
15978     thread_safe_flag_spec_F77 \
15979     whole_archive_flag_spec_F77 \
15980     enable_shared_with_static_runtimes_F77 \
15981     old_archive_cmds_F77 \
15982     old_archive_from_new_cmds_F77 \
15983     predep_objects_F77 \
15984     postdep_objects_F77 \
15985     predeps_F77 \
15986     postdeps_F77 \
15987     compiler_lib_search_path_F77 \
15988     archive_cmds_F77 \
15989     archive_expsym_cmds_F77 \
15990     postinstall_cmds_F77 \
15991     postuninstall_cmds_F77 \
15992     old_archive_from_expsyms_cmds_F77 \
15993     allow_undefined_flag_F77 \
15994     no_undefined_flag_F77 \
15995     export_symbols_cmds_F77 \
15996     hardcode_libdir_flag_spec_F77 \
15997     hardcode_libdir_flag_spec_ld_F77 \
15998     hardcode_libdir_separator_F77 \
15999     hardcode_automatic_F77 \
16000     module_cmds_F77 \
16001     module_expsym_cmds_F77 \
16002     lt_cv_prog_compiler_c_o_F77 \
16003     fix_srcfile_path_F77 \
16004     exclude_expsyms_F77 \
16005     include_expsyms_F77; do
16006
16007     case $var in
16008     old_archive_cmds_F77 | \
16009     old_archive_from_new_cmds_F77 | \
16010     archive_cmds_F77 | \
16011     archive_expsym_cmds_F77 | \
16012     module_cmds_F77 | \
16013     module_expsym_cmds_F77 | \
16014     old_archive_from_expsyms_cmds_F77 | \
16015     export_symbols_cmds_F77 | \
16016     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16017     postinstall_cmds | postuninstall_cmds | \
16018     old_postinstall_cmds | old_postuninstall_cmds | \
16019     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16020       # Double-quote double-evaled strings.
16021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16022       ;;
16023     *)
16024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16025       ;;
16026     esac
16027   done
16028
16029   case $lt_echo in
16030   *'\$0 --fallback-echo"')
16031     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16032     ;;
16033   esac
16034
16035 cfgfile="$ofile"
16036
16037   cat <<__EOF__ >> "$cfgfile"
16038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16039
16040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16041
16042 # Shell to use when invoking shell scripts.
16043 SHELL=$lt_SHELL
16044
16045 # Whether or not to build shared libraries.
16046 build_libtool_libs=$enable_shared
16047
16048 # Whether or not to build static libraries.
16049 build_old_libs=$enable_static
16050
16051 # Whether or not to add -lc for building shared libraries.
16052 build_libtool_need_lc=$archive_cmds_need_lc_F77
16053
16054 # Whether or not to disallow shared libs when runtime libs are static
16055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16056
16057 # Whether or not to optimize for fast installation.
16058 fast_install=$enable_fast_install
16059
16060 # The host system.
16061 host_alias=$host_alias
16062 host=$host
16063 host_os=$host_os
16064
16065 # The build system.
16066 build_alias=$build_alias
16067 build=$build
16068 build_os=$build_os
16069
16070 # An echo program that does not interpret backslashes.
16071 echo=$lt_echo
16072
16073 # The archiver.
16074 AR=$lt_AR
16075 AR_FLAGS=$lt_AR_FLAGS
16076
16077 # A C compiler.
16078 LTCC=$lt_LTCC
16079
16080 # LTCC compiler flags.
16081 LTCFLAGS=$lt_LTCFLAGS
16082
16083 # A language-specific compiler.
16084 CC=$lt_compiler_F77
16085
16086 # Is the compiler the GNU C compiler?
16087 with_gcc=$GCC_F77
16088
16089 # An ERE matcher.
16090 EGREP=$lt_EGREP
16091
16092 # The linker used to build libraries.
16093 LD=$lt_LD_F77
16094
16095 # Whether we need hard or soft links.
16096 LN_S=$lt_LN_S
16097
16098 # A BSD-compatible nm program.
16099 NM=$lt_NM
16100
16101 # A symbol stripping program
16102 STRIP=$lt_STRIP
16103
16104 # Used to examine libraries when file_magic_cmd begins "file"
16105 MAGIC_CMD=$MAGIC_CMD
16106
16107 # Used on cygwin: DLL creation program.
16108 DLLTOOL="$DLLTOOL"
16109
16110 # Used on cygwin: object dumper.
16111 OBJDUMP="$OBJDUMP"
16112
16113 # Used on cygwin: assembler.
16114 AS="$AS"
16115
16116 # The name of the directory that contains temporary libtool files.
16117 objdir=$objdir
16118
16119 # How to create reloadable object files.
16120 reload_flag=$lt_reload_flag
16121 reload_cmds=$lt_reload_cmds
16122
16123 # How to pass a linker flag through the compiler.
16124 wl=$lt_lt_prog_compiler_wl_F77
16125
16126 # Object file suffix (normally "o").
16127 objext="$ac_objext"
16128
16129 # Old archive suffix (normally "a").
16130 libext="$libext"
16131
16132 # Shared library suffix (normally ".so").
16133 shrext_cmds='$shrext_cmds'
16134
16135 # Executable file suffix (normally "").
16136 exeext="$exeext"
16137
16138 # Additional compiler flags for building library objects.
16139 pic_flag=$lt_lt_prog_compiler_pic_F77
16140 pic_mode=$pic_mode
16141
16142 # What is the maximum length of a command?
16143 max_cmd_len=$lt_cv_sys_max_cmd_len
16144
16145 # Does compiler simultaneously support -c and -o options?
16146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16147
16148 # Must we lock files when doing compilation?
16149 need_locks=$lt_need_locks
16150
16151 # Do we need the lib prefix for modules?
16152 need_lib_prefix=$need_lib_prefix
16153
16154 # Do we need a version for libraries?
16155 need_version=$need_version
16156
16157 # Whether dlopen is supported.
16158 dlopen_support=$enable_dlopen
16159
16160 # Whether dlopen of programs is supported.
16161 dlopen_self=$enable_dlopen_self
16162
16163 # Whether dlopen of statically linked programs is supported.
16164 dlopen_self_static=$enable_dlopen_self_static
16165
16166 # Compiler flag to prevent dynamic linking.
16167 link_static_flag=$lt_lt_prog_compiler_static_F77
16168
16169 # Compiler flag to turn off builtin functions.
16170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16171
16172 # Compiler flag to allow reflexive dlopens.
16173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16174
16175 # Compiler flag to generate shared objects directly from archives.
16176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16177
16178 # Compiler flag to generate thread-safe objects.
16179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16180
16181 # Library versioning type.
16182 version_type=$version_type
16183
16184 # Format of library name prefix.
16185 libname_spec=$lt_libname_spec
16186
16187 # List of archive names.  First name is the real one, the rest are links.
16188 # The last name is the one that the linker finds with -lNAME.
16189 library_names_spec=$lt_library_names_spec
16190
16191 # The coded name of the library, if different from the real name.
16192 soname_spec=$lt_soname_spec
16193
16194 # Commands used to build and install an old-style archive.
16195 RANLIB=$lt_RANLIB
16196 old_archive_cmds=$lt_old_archive_cmds_F77
16197 old_postinstall_cmds=$lt_old_postinstall_cmds
16198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16199
16200 # Create an old-style archive from a shared archive.
16201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16202
16203 # Create a temporary old-style archive to link instead of a shared archive.
16204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16205
16206 # Commands used to build and install a shared archive.
16207 archive_cmds=$lt_archive_cmds_F77
16208 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16209 postinstall_cmds=$lt_postinstall_cmds
16210 postuninstall_cmds=$lt_postuninstall_cmds
16211
16212 # Commands used to build a loadable module (assumed same as above if empty)
16213 module_cmds=$lt_module_cmds_F77
16214 module_expsym_cmds=$lt_module_expsym_cmds_F77
16215
16216 # Commands to strip libraries.
16217 old_striplib=$lt_old_striplib
16218 striplib=$lt_striplib
16219
16220 # Dependencies to place before the objects being linked to create a
16221 # shared library.
16222 predep_objects=$lt_predep_objects_F77
16223
16224 # Dependencies to place after the objects being linked to create a
16225 # shared library.
16226 postdep_objects=$lt_postdep_objects_F77
16227
16228 # Dependencies to place before the objects being linked to create a
16229 # shared library.
16230 predeps=$lt_predeps_F77
16231
16232 # Dependencies to place after the objects being linked to create a
16233 # shared library.
16234 postdeps=$lt_postdeps_F77
16235
16236 # The library search path used internally by the compiler when linking
16237 # a shared library.
16238 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16239
16240 # Method to check whether dependent libraries are shared objects.
16241 deplibs_check_method=$lt_deplibs_check_method
16242
16243 # Command to use when deplibs_check_method == file_magic.
16244 file_magic_cmd=$lt_file_magic_cmd
16245
16246 # Flag that allows shared libraries with undefined symbols to be built.
16247 allow_undefined_flag=$lt_allow_undefined_flag_F77
16248
16249 # Flag that forces no undefined symbols.
16250 no_undefined_flag=$lt_no_undefined_flag_F77
16251
16252 # Commands used to finish a libtool library installation in a directory.
16253 finish_cmds=$lt_finish_cmds
16254
16255 # Same as above, but a single script fragment to be evaled but not shown.
16256 finish_eval=$lt_finish_eval
16257
16258 # Take the output of nm and produce a listing of raw symbols and C names.
16259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16260
16261 # Transform the output of nm in a proper C declaration
16262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16263
16264 # Transform the output of nm in a C name address pair
16265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16266
16267 # This is the shared library runtime path variable.
16268 runpath_var=$runpath_var
16269
16270 # This is the shared library path variable.
16271 shlibpath_var=$shlibpath_var
16272
16273 # Is shlibpath searched before the hard-coded library search path?
16274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16275
16276 # How to hardcode a shared library path into an executable.
16277 hardcode_action=$hardcode_action_F77
16278
16279 # Whether we should hardcode library paths into libraries.
16280 hardcode_into_libs=$hardcode_into_libs
16281
16282 # Flag to hardcode \$libdir into a binary during linking.
16283 # This must work even if \$libdir does not exist.
16284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16285
16286 # If ld is used when linking, flag to hardcode \$libdir into
16287 # a binary during linking. This must work even if \$libdir does
16288 # not exist.
16289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16290
16291 # Whether we need a single -rpath flag with a separated argument.
16292 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16293
16294 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16295 # resulting binary.
16296 hardcode_direct=$hardcode_direct_F77
16297
16298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16299 # resulting binary.
16300 hardcode_minus_L=$hardcode_minus_L_F77
16301
16302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16303 # the resulting binary.
16304 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16305
16306 # Set to yes if building a shared library automatically hardcodes DIR into the library
16307 # and all subsequent libraries and executables linked against it.
16308 hardcode_automatic=$hardcode_automatic_F77
16309
16310 # Variables whose values should be saved in libtool wrapper scripts and
16311 # restored at relink time.
16312 variables_saved_for_relink="$variables_saved_for_relink"
16313
16314 # Whether libtool must link a program against all its dependency libraries.
16315 link_all_deplibs=$link_all_deplibs_F77
16316
16317 # Compile-time system search path for libraries
16318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16319
16320 # Run-time system search path for libraries
16321 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16322
16323 # Fix the shell variable \$srcfile for the compiler.
16324 fix_srcfile_path=$lt_fix_srcfile_path
16325
16326 # Set to yes if exported symbols are required.
16327 always_export_symbols=$always_export_symbols_F77
16328
16329 # The commands to list exported symbols.
16330 export_symbols_cmds=$lt_export_symbols_cmds_F77
16331
16332 # The commands to extract the exported symbol list from a shared archive.
16333 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16334
16335 # Symbols that should not be listed in the preloaded symbols.
16336 exclude_expsyms=$lt_exclude_expsyms_F77
16337
16338 # Symbols that must always be exported.
16339 include_expsyms=$lt_include_expsyms_F77
16340
16341 # ### END LIBTOOL TAG CONFIG: $tagname
16342
16343 __EOF__
16344
16345
16346 else
16347   # If there is no Makefile yet, we rely on a make rule to execute
16348   # `config.status --recheck' to rerun these tests and create the
16349   # libtool script then.
16350   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16351   if test -f "$ltmain_in"; then
16352     test -f Makefile && make "$ltmain"
16353   fi
16354 fi
16355
16356
16357 ac_ext=c
16358 ac_cpp='$CPP $CPPFLAGS'
16359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16362
16363 CC="$lt_save_CC"
16364
16365         else
16366           tagname=""
16367         fi
16368         ;;
16369
16370       GCJ)
16371         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16372
16373
16374 # Source file extension for Java test sources.
16375 ac_ext=java
16376
16377 # Object file extension for compiled Java test sources.
16378 objext=o
16379 objext_GCJ=$objext
16380
16381 # Code to be used in simple compile tests
16382 lt_simple_compile_test_code="class foo {}"
16383
16384 # Code to be used in simple link tests
16385 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16386
16387 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16388
16389 # If no C compiler was specified, use CC.
16390 LTCC=${LTCC-"$CC"}
16391
16392 # If no C compiler flags were specified, use CFLAGS.
16393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16394
16395 # Allow CC to be a program name with arguments.
16396 compiler=$CC
16397
16398
16399 # save warnings/boilerplate of simple test code
16400 ac_outfile=conftest.$ac_objext
16401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16403 _lt_compiler_boilerplate=`cat conftest.err`
16404 $rm conftest*
16405
16406 ac_outfile=conftest.$ac_objext
16407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16409 _lt_linker_boilerplate=`cat conftest.err`
16410 $rm conftest*
16411
16412
16413 # Allow CC to be a program name with arguments.
16414 lt_save_CC="$CC"
16415 CC=${GCJ-"gcj"}
16416 compiler=$CC
16417 compiler_GCJ=$CC
16418 for cc_temp in $compiler""; do
16419   case $cc_temp in
16420     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16421     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16422     \-*) ;;
16423     *) break;;
16424   esac
16425 done
16426 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16427
16428
16429 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16430 archive_cmds_need_lc_GCJ=no
16431
16432 old_archive_cmds_GCJ=$old_archive_cmds
16433
16434
16435 lt_prog_compiler_no_builtin_flag_GCJ=
16436
16437 if test "$GCC" = yes; then
16438   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16439
16440
16441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16444   echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446   lt_cv_prog_compiler_rtti_exceptions=no
16447   ac_outfile=conftest.$ac_objext
16448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16449    lt_compiler_flag="-fno-rtti -fno-exceptions"
16450    # Insert the option either (1) after the last *FLAGS variable, or
16451    # (2) before a word containing "conftest.", or (3) at the end.
16452    # Note that $ac_compile itself does not contain backslashes and begins
16453    # with a dollar sign (not a hyphen), so the echo should work correctly.
16454    # The option is referenced via a variable to avoid confusing sed.
16455    lt_compile=`echo "$ac_compile" | $SED \
16456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458    -e 's:$: $lt_compiler_flag:'`
16459    (eval echo "\"\$as_me:16459: $lt_compile\"" >&5)
16460    (eval "$lt_compile" 2>conftest.err)
16461    ac_status=$?
16462    cat conftest.err >&5
16463    echo "$as_me:16463: \$? = $ac_status" >&5
16464    if (exit $ac_status) && test -s "$ac_outfile"; then
16465      # The compiler can only warn and ignore the option if not recognized
16466      # So say no if there are warnings other than the usual output.
16467      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16470        lt_cv_prog_compiler_rtti_exceptions=yes
16471      fi
16472    fi
16473    $rm conftest*
16474
16475 fi
16476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16478
16479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16480     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16481 else
16482     :
16483 fi
16484
16485 fi
16486
16487 lt_prog_compiler_wl_GCJ=
16488 lt_prog_compiler_pic_GCJ=
16489 lt_prog_compiler_static_GCJ=
16490
16491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16493
16494   if test "$GCC" = yes; then
16495     lt_prog_compiler_wl_GCJ='-Wl,'
16496     lt_prog_compiler_static_GCJ='-static'
16497
16498     case $host_os in
16499       aix*)
16500       # All AIX code is PIC.
16501       if test "$host_cpu" = ia64; then
16502         # AIX 5 now supports IA64 processor
16503         lt_prog_compiler_static_GCJ='-Bstatic'
16504       fi
16505       ;;
16506
16507     amigaos*)
16508       # FIXME: we need at least 68020 code to build shared libraries, but
16509       # adding the `-m68020' flag to GCC prevents building anything better,
16510       # like `-m68040'.
16511       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16512       ;;
16513
16514     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515       # PIC is the default for these OSes.
16516       ;;
16517
16518     mingw* | cygwin* | pw32* | os2*)
16519       # This hack is so that the source file can tell whether it is being
16520       # built for inclusion in a dll (and should export symbols for example).
16521       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16522       # (--disable-auto-import) libraries
16523       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16524       ;;
16525
16526     darwin* | rhapsody*)
16527       # PIC is the default on this platform
16528       # Common symbols not allowed in MH_DYLIB files
16529       lt_prog_compiler_pic_GCJ='-fno-common'
16530       ;;
16531
16532     interix[3-9]*)
16533       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16534       # Instead, we relocate shared libraries at runtime.
16535       ;;
16536
16537     msdosdjgpp*)
16538       # Just because we use GCC doesn't mean we suddenly get shared libraries
16539       # on systems that don't support them.
16540       lt_prog_compiler_can_build_shared_GCJ=no
16541       enable_shared=no
16542       ;;
16543
16544     sysv4*MP*)
16545       if test -d /usr/nec; then
16546         lt_prog_compiler_pic_GCJ=-Kconform_pic
16547       fi
16548       ;;
16549
16550     hpux*)
16551       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16552       # not for PA HP-UX.
16553       case $host_cpu in
16554       hppa*64*|ia64*)
16555         # +Z the default
16556         ;;
16557       *)
16558         lt_prog_compiler_pic_GCJ='-fPIC'
16559         ;;
16560       esac
16561       ;;
16562
16563     *)
16564       lt_prog_compiler_pic_GCJ='-fPIC'
16565       ;;
16566     esac
16567   else
16568     # PORTME Check for flag to pass linker flags through the system compiler.
16569     case $host_os in
16570     aix*)
16571       lt_prog_compiler_wl_GCJ='-Wl,'
16572       if test "$host_cpu" = ia64; then
16573         # AIX 5 now supports IA64 processor
16574         lt_prog_compiler_static_GCJ='-Bstatic'
16575       else
16576         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16577       fi
16578       ;;
16579       darwin*)
16580         # PIC is the default on this platform
16581         # Common symbols not allowed in MH_DYLIB files
16582        case $cc_basename in
16583          xlc*)
16584          lt_prog_compiler_pic_GCJ='-qnocommon'
16585          lt_prog_compiler_wl_GCJ='-Wl,'
16586          ;;
16587        esac
16588        ;;
16589
16590     mingw* | cygwin* | pw32* | os2*)
16591       # This hack is so that the source file can tell whether it is being
16592       # built for inclusion in a dll (and should export symbols for example).
16593       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16594       ;;
16595
16596     hpux9* | hpux10* | hpux11*)
16597       lt_prog_compiler_wl_GCJ='-Wl,'
16598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16599       # not for PA HP-UX.
16600       case $host_cpu in
16601       hppa*64*|ia64*)
16602         # +Z the default
16603         ;;
16604       *)
16605         lt_prog_compiler_pic_GCJ='+Z'
16606         ;;
16607       esac
16608       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16609       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16610       ;;
16611
16612     irix5* | irix6* | nonstopux*)
16613       lt_prog_compiler_wl_GCJ='-Wl,'
16614       # PIC (with -KPIC) is the default.
16615       lt_prog_compiler_static_GCJ='-non_shared'
16616       ;;
16617
16618     newsos6)
16619       lt_prog_compiler_pic_GCJ='-KPIC'
16620       lt_prog_compiler_static_GCJ='-Bstatic'
16621       ;;
16622
16623     linux* | k*bsd*-gnu)
16624       case $cc_basename in
16625       icc* | ecc*)
16626         lt_prog_compiler_wl_GCJ='-Wl,'
16627         lt_prog_compiler_pic_GCJ='-KPIC'
16628         lt_prog_compiler_static_GCJ='-static'
16629         ;;
16630       pgcc* | pgf77* | pgf90* | pgf95*)
16631         # Portland Group compilers (*not* the Pentium gcc compiler,
16632         # which looks to be a dead project)
16633         lt_prog_compiler_wl_GCJ='-Wl,'
16634         lt_prog_compiler_pic_GCJ='-fpic'
16635         lt_prog_compiler_static_GCJ='-Bstatic'
16636         ;;
16637       ccc*)
16638         lt_prog_compiler_wl_GCJ='-Wl,'
16639         # All Alpha code is PIC.
16640         lt_prog_compiler_static_GCJ='-non_shared'
16641         ;;
16642       *)
16643         case `$CC -V 2>&1 | sed 5q` in
16644         *Sun\ C*)
16645           # Sun C 5.9
16646           lt_prog_compiler_pic_GCJ='-KPIC'
16647           lt_prog_compiler_static_GCJ='-Bstatic'
16648           lt_prog_compiler_wl_GCJ='-Wl,'
16649           ;;
16650         *Sun\ F*)
16651           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16652           lt_prog_compiler_pic_GCJ='-KPIC'
16653           lt_prog_compiler_static_GCJ='-Bstatic'
16654           lt_prog_compiler_wl_GCJ=''
16655           ;;
16656         esac
16657         ;;
16658       esac
16659       ;;
16660
16661     osf3* | osf4* | osf5*)
16662       lt_prog_compiler_wl_GCJ='-Wl,'
16663       # All OSF/1 code is PIC.
16664       lt_prog_compiler_static_GCJ='-non_shared'
16665       ;;
16666
16667     rdos*)
16668       lt_prog_compiler_static_GCJ='-non_shared'
16669       ;;
16670
16671     solaris*)
16672       lt_prog_compiler_pic_GCJ='-KPIC'
16673       lt_prog_compiler_static_GCJ='-Bstatic'
16674       case $cc_basename in
16675       f77* | f90* | f95*)
16676         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16677       *)
16678         lt_prog_compiler_wl_GCJ='-Wl,';;
16679       esac
16680       ;;
16681
16682     sunos4*)
16683       lt_prog_compiler_wl_GCJ='-Qoption ld '
16684       lt_prog_compiler_pic_GCJ='-PIC'
16685       lt_prog_compiler_static_GCJ='-Bstatic'
16686       ;;
16687
16688     sysv4 | sysv4.2uw2* | sysv4.3*)
16689       lt_prog_compiler_wl_GCJ='-Wl,'
16690       lt_prog_compiler_pic_GCJ='-KPIC'
16691       lt_prog_compiler_static_GCJ='-Bstatic'
16692       ;;
16693
16694     sysv4*MP*)
16695       if test -d /usr/nec ;then
16696         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16697         lt_prog_compiler_static_GCJ='-Bstatic'
16698       fi
16699       ;;
16700
16701     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16702       lt_prog_compiler_wl_GCJ='-Wl,'
16703       lt_prog_compiler_pic_GCJ='-KPIC'
16704       lt_prog_compiler_static_GCJ='-Bstatic'
16705       ;;
16706
16707     unicos*)
16708       lt_prog_compiler_wl_GCJ='-Wl,'
16709       lt_prog_compiler_can_build_shared_GCJ=no
16710       ;;
16711
16712     uts4*)
16713       lt_prog_compiler_pic_GCJ='-pic'
16714       lt_prog_compiler_static_GCJ='-Bstatic'
16715       ;;
16716
16717     *)
16718       lt_prog_compiler_can_build_shared_GCJ=no
16719       ;;
16720     esac
16721   fi
16722
16723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16724 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16725
16726 #
16727 # Check to make sure the PIC flag actually works.
16728 #
16729 if test -n "$lt_prog_compiler_pic_GCJ"; then
16730
16731 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16733 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   lt_prog_compiler_pic_works_GCJ=no
16737   ac_outfile=conftest.$ac_objext
16738    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16739    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16740    # Insert the option either (1) after the last *FLAGS variable, or
16741    # (2) before a word containing "conftest.", or (3) at the end.
16742    # Note that $ac_compile itself does not contain backslashes and begins
16743    # with a dollar sign (not a hyphen), so the echo should work correctly.
16744    # The option is referenced via a variable to avoid confusing sed.
16745    lt_compile=`echo "$ac_compile" | $SED \
16746    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16748    -e 's:$: $lt_compiler_flag:'`
16749    (eval echo "\"\$as_me:16749: $lt_compile\"" >&5)
16750    (eval "$lt_compile" 2>conftest.err)
16751    ac_status=$?
16752    cat conftest.err >&5
16753    echo "$as_me:16753: \$? = $ac_status" >&5
16754    if (exit $ac_status) && test -s "$ac_outfile"; then
16755      # The compiler can only warn and ignore the option if not recognized
16756      # So say no if there are warnings other than the usual output.
16757      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16758      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16759      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16760        lt_prog_compiler_pic_works_GCJ=yes
16761      fi
16762    fi
16763    $rm conftest*
16764
16765 fi
16766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16767 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16768
16769 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16770     case $lt_prog_compiler_pic_GCJ in
16771      "" | " "*) ;;
16772      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16773      esac
16774 else
16775     lt_prog_compiler_pic_GCJ=
16776      lt_prog_compiler_can_build_shared_GCJ=no
16777 fi
16778
16779 fi
16780 case $host_os in
16781   # For platforms which do not support PIC, -DPIC is meaningless:
16782   *djgpp*)
16783     lt_prog_compiler_pic_GCJ=
16784     ;;
16785   *)
16786     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16787     ;;
16788 esac
16789
16790 #
16791 # Check to make sure the static flag actually works.
16792 #
16793 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16794 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16795 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16796 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16797   echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799   lt_prog_compiler_static_works_GCJ=no
16800    save_LDFLAGS="$LDFLAGS"
16801    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16802    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16803    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16804      # The linker can only warn and ignore the option if not recognized
16805      # So say no if there are warnings
16806      if test -s conftest.err; then
16807        # Append any errors to the config.log.
16808        cat conftest.err 1>&5
16809        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16810        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16811        if diff conftest.exp conftest.er2 >/dev/null; then
16812          lt_prog_compiler_static_works_GCJ=yes
16813        fi
16814      else
16815        lt_prog_compiler_static_works_GCJ=yes
16816      fi
16817    fi
16818    $rm conftest*
16819    LDFLAGS="$save_LDFLAGS"
16820
16821 fi
16822 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16823 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16824
16825 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16826     :
16827 else
16828     lt_prog_compiler_static_GCJ=
16829 fi
16830
16831
16832 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16834 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   lt_cv_prog_compiler_c_o_GCJ=no
16838    $rm -r conftest 2>/dev/null
16839    mkdir conftest
16840    cd conftest
16841    mkdir out
16842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16843
16844    lt_compiler_flag="-o out/conftest2.$ac_objext"
16845    # Insert the option either (1) after the last *FLAGS variable, or
16846    # (2) before a word containing "conftest.", or (3) at the end.
16847    # Note that $ac_compile itself does not contain backslashes and begins
16848    # with a dollar sign (not a hyphen), so the echo should work correctly.
16849    lt_compile=`echo "$ac_compile" | $SED \
16850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16852    -e 's:$: $lt_compiler_flag:'`
16853    (eval echo "\"\$as_me:16853: $lt_compile\"" >&5)
16854    (eval "$lt_compile" 2>out/conftest.err)
16855    ac_status=$?
16856    cat out/conftest.err >&5
16857    echo "$as_me:16857: \$? = $ac_status" >&5
16858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16859    then
16860      # The compiler can only warn and ignore the option if not recognized
16861      # So say no if there are warnings
16862      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16865        lt_cv_prog_compiler_c_o_GCJ=yes
16866      fi
16867    fi
16868    chmod u+w . 2>&5
16869    $rm conftest*
16870    # SGI C++ compiler will create directory out/ii_files/ for
16871    # template instantiation
16872    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16873    $rm out/* && rmdir out
16874    cd ..
16875    rmdir conftest
16876    $rm conftest*
16877
16878 fi
16879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16881
16882
16883 hard_links="nottested"
16884 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16885   # do not overwrite the value of need_locks provided by the user
16886   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16888   hard_links=yes
16889   $rm conftest*
16890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16891   touch conftest.a
16892   ln conftest.a conftest.b 2>&5 || hard_links=no
16893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16894   { echo "$as_me:$LINENO: result: $hard_links" >&5
16895 echo "${ECHO_T}$hard_links" >&6; }
16896   if test "$hard_links" = no; then
16897     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16899     need_locks=warn
16900   fi
16901 else
16902   need_locks=no
16903 fi
16904
16905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16907
16908   runpath_var=
16909   allow_undefined_flag_GCJ=
16910   enable_shared_with_static_runtimes_GCJ=no
16911   archive_cmds_GCJ=
16912   archive_expsym_cmds_GCJ=
16913   old_archive_From_new_cmds_GCJ=
16914   old_archive_from_expsyms_cmds_GCJ=
16915   export_dynamic_flag_spec_GCJ=
16916   whole_archive_flag_spec_GCJ=
16917   thread_safe_flag_spec_GCJ=
16918   hardcode_libdir_flag_spec_GCJ=
16919   hardcode_libdir_flag_spec_ld_GCJ=
16920   hardcode_libdir_separator_GCJ=
16921   hardcode_direct_GCJ=no
16922   hardcode_minus_L_GCJ=no
16923   hardcode_shlibpath_var_GCJ=unsupported
16924   link_all_deplibs_GCJ=unknown
16925   hardcode_automatic_GCJ=no
16926   module_cmds_GCJ=
16927   module_expsym_cmds_GCJ=
16928   always_export_symbols_GCJ=no
16929   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16930   # include_expsyms should be a list of space-separated symbols to be *always*
16931   # included in the symbol list
16932   include_expsyms_GCJ=
16933   # exclude_expsyms can be an extended regexp of symbols to exclude
16934   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16935   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16936   # as well as any symbol that contains `d'.
16937   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16938   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16939   # platforms (ab)use it in PIC code, but their linkers get confused if
16940   # the symbol is explicitly referenced.  Since portable code cannot
16941   # rely on this symbol name, it's probably fine to never include it in
16942   # preloaded symbol tables.
16943   extract_expsyms_cmds=
16944   # Just being paranoid about ensuring that cc_basename is set.
16945   for cc_temp in $compiler""; do
16946   case $cc_temp in
16947     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16948     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16949     \-*) ;;
16950     *) break;;
16951   esac
16952 done
16953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16954
16955   case $host_os in
16956   cygwin* | mingw* | pw32*)
16957     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16958     # When not using gcc, we currently assume that we are using
16959     # Microsoft Visual C++.
16960     if test "$GCC" != yes; then
16961       with_gnu_ld=no
16962     fi
16963     ;;
16964   interix*)
16965     # we just hope/assume this is gcc and not c89 (= MSVC++)
16966     with_gnu_ld=yes
16967     ;;
16968   openbsd*)
16969     with_gnu_ld=no
16970     ;;
16971   esac
16972
16973   ld_shlibs_GCJ=yes
16974   if test "$with_gnu_ld" = yes; then
16975     # If archive_cmds runs LD, not CC, wlarc should be empty
16976     wlarc='${wl}'
16977
16978     # Set some defaults for GNU ld with shared library support. These
16979     # are reset later if shared libraries are not supported. Putting them
16980     # here allows them to be overridden if necessary.
16981     runpath_var=LD_RUN_PATH
16982     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16983     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16984     # ancient GNU ld didn't support --whole-archive et. al.
16985     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16986         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16987       else
16988         whole_archive_flag_spec_GCJ=
16989     fi
16990     supports_anon_versioning=no
16991     case `$LD -v 2>/dev/null` in
16992       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16993       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16994       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16995       *\ 2.11.*) ;; # other 2.11 versions
16996       *) supports_anon_versioning=yes ;;
16997     esac
16998
16999     # See if GNU ld supports shared libraries.
17000     case $host_os in
17001     aix3* | aix4* | aix5*)
17002       # On AIX/PPC, the GNU linker is very broken
17003       if test "$host_cpu" != ia64; then
17004         ld_shlibs_GCJ=no
17005         cat <<EOF 1>&2
17006
17007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17008 *** to be unable to reliably create shared libraries on AIX.
17009 *** Therefore, libtool is disabling shared libraries support.  If you
17010 *** really care for shared libraries, you may want to modify your PATH
17011 *** so that a non-GNU linker is found, and then restart.
17012
17013 EOF
17014       fi
17015       ;;
17016
17017     amigaos*)
17018       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)'
17019       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17020       hardcode_minus_L_GCJ=yes
17021
17022       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17023       # that the semantics of dynamic libraries on AmigaOS, at least up
17024       # to version 4, is to share data among multiple programs linked
17025       # with the same dynamic library.  Since this doesn't match the
17026       # behavior of shared libraries on other platforms, we can't use
17027       # them.
17028       ld_shlibs_GCJ=no
17029       ;;
17030
17031     beos*)
17032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17033         allow_undefined_flag_GCJ=unsupported
17034         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17035         # support --undefined.  This deserves some investigation.  FIXME
17036         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17037       else
17038         ld_shlibs_GCJ=no
17039       fi
17040       ;;
17041
17042     cygwin* | mingw* | pw32*)
17043       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17044       # as there is no search path for DLLs.
17045       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17046       allow_undefined_flag_GCJ=unsupported
17047       always_export_symbols_GCJ=no
17048       enable_shared_with_static_runtimes_GCJ=yes
17049       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17050
17051       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17052         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17053         # If the export-symbols file already is a .def file (1st line
17054         # is EXPORTS), use it as is; otherwise, prepend...
17055         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17056           cp $export_symbols $output_objdir/$soname.def;
17057         else
17058           echo EXPORTS > $output_objdir/$soname.def;
17059           cat $export_symbols >> $output_objdir/$soname.def;
17060         fi~
17061         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17062       else
17063         ld_shlibs_GCJ=no
17064       fi
17065       ;;
17066
17067     interix[3-9]*)
17068       hardcode_direct_GCJ=no
17069       hardcode_shlibpath_var_GCJ=no
17070       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17071       export_dynamic_flag_spec_GCJ='${wl}-E'
17072       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17073       # Instead, shared libraries are loaded at an image base (0x10000000 by
17074       # default) and relocated if they conflict, which is a slow very memory
17075       # consuming and fragmenting process.  To avoid this, we pick a random,
17076       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17077       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17078       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17079       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17080       ;;
17081
17082     gnu* | linux* | k*bsd*-gnu)
17083       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084         tmp_addflag=
17085         case $cc_basename,$host_cpu in
17086         pgcc*)                          # Portland Group C compiler
17087           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17088           tmp_addflag=' $pic_flag'
17089           ;;
17090         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17091           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17092           tmp_addflag=' $pic_flag -Mnomain' ;;
17093         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17094           tmp_addflag=' -i_dynamic' ;;
17095         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17096           tmp_addflag=' -i_dynamic -nofor_main' ;;
17097         ifc* | ifort*)                  # Intel Fortran compiler
17098           tmp_addflag=' -nofor_main' ;;
17099         esac
17100         case `$CC -V 2>&1 | sed 5q` in
17101         *Sun\ C*)                       # Sun C 5.9
17102           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17103           tmp_sharedflag='-G' ;;
17104         *Sun\ F*)                       # Sun Fortran 8.3
17105           tmp_sharedflag='-G' ;;
17106         *)
17107           tmp_sharedflag='-shared' ;;
17108         esac
17109         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17110
17111         if test $supports_anon_versioning = yes; then
17112           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17113   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17114   $echo "local: *; };" >> $output_objdir/$libname.ver~
17115           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17116         fi
17117         link_all_deplibs_GCJ=no
17118       else
17119         ld_shlibs_GCJ=no
17120       fi
17121       ;;
17122
17123     netbsd* | netbsdelf*-gnu)
17124       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17125         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17126         wlarc=
17127       else
17128         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17130       fi
17131       ;;
17132
17133     solaris*)
17134       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17135         ld_shlibs_GCJ=no
17136         cat <<EOF 1>&2
17137
17138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17139 *** create shared libraries on Solaris systems.  Therefore, libtool
17140 *** is disabling shared libraries support.  We urge you to upgrade GNU
17141 *** binutils to release 2.9.1 or newer.  Another option is to modify
17142 *** your PATH or compiler configuration so that the native linker is
17143 *** used, and then restart.
17144
17145 EOF
17146       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17147         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17149       else
17150         ld_shlibs_GCJ=no
17151       fi
17152       ;;
17153
17154     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17155       case `$LD -v 2>&1` in
17156         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17157         ld_shlibs_GCJ=no
17158         cat <<_LT_EOF 1>&2
17159
17160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17161 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17162 *** is disabling shared libraries support.  We urge you to upgrade GNU
17163 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17164 *** your PATH or compiler configuration so that the native linker is
17165 *** used, and then restart.
17166
17167 _LT_EOF
17168         ;;
17169         *)
17170           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17171             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17172             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17173             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17174           else
17175             ld_shlibs_GCJ=no
17176           fi
17177         ;;
17178       esac
17179       ;;
17180
17181     sunos4*)
17182       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17183       wlarc=
17184       hardcode_direct_GCJ=yes
17185       hardcode_shlibpath_var_GCJ=no
17186       ;;
17187
17188     *)
17189       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17190         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17191         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17192       else
17193         ld_shlibs_GCJ=no
17194       fi
17195       ;;
17196     esac
17197
17198     if test "$ld_shlibs_GCJ" = no; then
17199       runpath_var=
17200       hardcode_libdir_flag_spec_GCJ=
17201       export_dynamic_flag_spec_GCJ=
17202       whole_archive_flag_spec_GCJ=
17203     fi
17204   else
17205     # PORTME fill in a description of your system's linker (not GNU ld)
17206     case $host_os in
17207     aix3*)
17208       allow_undefined_flag_GCJ=unsupported
17209       always_export_symbols_GCJ=yes
17210       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'
17211       # Note: this linker hardcodes the directories in LIBPATH if there
17212       # are no directories specified by -L.
17213       hardcode_minus_L_GCJ=yes
17214       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17215         # Neither direct hardcoding nor static linking is supported with a
17216         # broken collect2.
17217         hardcode_direct_GCJ=unsupported
17218       fi
17219       ;;
17220
17221     aix4* | aix5*)
17222       if test "$host_cpu" = ia64; then
17223         # On IA64, the linker does run time linking by default, so we don't
17224         # have to do anything special.
17225         aix_use_runtimelinking=no
17226         exp_sym_flag='-Bexport'
17227         no_entry_flag=""
17228       else
17229         # If we're using GNU nm, then we don't want the "-C" option.
17230         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17231         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17232           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'
17233         else
17234           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'
17235         fi
17236         aix_use_runtimelinking=no
17237
17238         # Test if we are trying to use run time linking or normal
17239         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17240         # need to do runtime linking.
17241         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17242           for ld_flag in $LDFLAGS; do
17243           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17244             aix_use_runtimelinking=yes
17245             break
17246           fi
17247           done
17248           ;;
17249         esac
17250
17251         exp_sym_flag='-bexport'
17252         no_entry_flag='-bnoentry'
17253       fi
17254
17255       # When large executables or shared objects are built, AIX ld can
17256       # have problems creating the table of contents.  If linking a library
17257       # or program results in "error TOC overflow" add -mminimal-toc to
17258       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17259       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17260
17261       archive_cmds_GCJ=''
17262       hardcode_direct_GCJ=yes
17263       hardcode_libdir_separator_GCJ=':'
17264       link_all_deplibs_GCJ=yes
17265
17266       if test "$GCC" = yes; then
17267         case $host_os in aix4.[012]|aix4.[012].*)
17268         # We only want to do this on AIX 4.2 and lower, the check
17269         # below for broken collect2 doesn't work under 4.3+
17270           collect2name=`${CC} -print-prog-name=collect2`
17271           if test -f "$collect2name" && \
17272            strings "$collect2name" | grep resolve_lib_name >/dev/null
17273           then
17274           # We have reworked collect2
17275           :
17276           else
17277           # We have old collect2
17278           hardcode_direct_GCJ=unsupported
17279           # It fails to find uninstalled libraries when the uninstalled
17280           # path is not listed in the libpath.  Setting hardcode_minus_L
17281           # to unsupported forces relinking
17282           hardcode_minus_L_GCJ=yes
17283           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17284           hardcode_libdir_separator_GCJ=
17285           fi
17286           ;;
17287         esac
17288         shared_flag='-shared'
17289         if test "$aix_use_runtimelinking" = yes; then
17290           shared_flag="$shared_flag "'${wl}-G'
17291         fi
17292       else
17293         # not using gcc
17294         if test "$host_cpu" = ia64; then
17295         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17296         # chokes on -Wl,-G. The following line is correct:
17297           shared_flag='-G'
17298         else
17299           if test "$aix_use_runtimelinking" = yes; then
17300             shared_flag='${wl}-G'
17301           else
17302             shared_flag='${wl}-bM:SRE'
17303           fi
17304         fi
17305       fi
17306
17307       # It seems that -bexpall does not export symbols beginning with
17308       # underscore (_), so it is better to generate a list of symbols to export.
17309       always_export_symbols_GCJ=yes
17310       if test "$aix_use_runtimelinking" = yes; then
17311         # Warning - without using the other runtime loading flags (-brtl),
17312         # -berok will link without error, but may produce a broken library.
17313         allow_undefined_flag_GCJ='-berok'
17314        # Determine the default libpath from the value encoded in an empty executable.
17315        cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321
17322 int
17323 main ()
17324 {
17325
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_link") 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } && {
17344          test -z "$ac_c_werror_flag" ||
17345          test ! -s conftest.err
17346        } && test -s conftest$ac_exeext &&
17347        $as_test_x conftest$ac_exeext; then
17348
17349 lt_aix_libpath_sed='
17350     /Import File Strings/,/^$/ {
17351         /^0/ {
17352             s/^0  *\(.*\)$/\1/
17353             p
17354         }
17355     }'
17356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17357 # Check for a 64-bit object if we didn't find anything.
17358 if test -z "$aix_libpath"; then
17359   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17360 fi
17361 else
17362   echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365
17366 fi
17367
17368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17369       conftest$ac_exeext conftest.$ac_ext
17370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17371
17372        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17373         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17374        else
17375         if test "$host_cpu" = ia64; then
17376           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17377           allow_undefined_flag_GCJ="-z nodefs"
17378           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17379         else
17380          # Determine the default libpath from the value encoded in an empty executable.
17381          cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387
17388 int
17389 main ()
17390 {
17391
17392   ;
17393   return 0;
17394 }
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (ac_try="$ac_link"
17398 case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_link") 2>conftest.er1
17404   ac_status=$?
17405   grep -v '^ *+' conftest.er1 >conftest.err
17406   rm -f conftest.er1
17407   cat conftest.err >&5
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } && {
17410          test -z "$ac_c_werror_flag" ||
17411          test ! -s conftest.err
17412        } && test -s conftest$ac_exeext &&
17413        $as_test_x conftest$ac_exeext; then
17414
17415 lt_aix_libpath_sed='
17416     /Import File Strings/,/^$/ {
17417         /^0/ {
17418             s/^0  *\(.*\)$/\1/
17419             p
17420         }
17421     }'
17422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17423 # Check for a 64-bit object if we didn't find anything.
17424 if test -z "$aix_libpath"; then
17425   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17426 fi
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431
17432 fi
17433
17434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17435       conftest$ac_exeext conftest.$ac_ext
17436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17437
17438          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17439           # Warning - without using the other run time loading flags,
17440           # -berok will link without error, but may produce a broken library.
17441           no_undefined_flag_GCJ=' ${wl}-bernotok'
17442           allow_undefined_flag_GCJ=' ${wl}-berok'
17443           # Exported symbols can be pulled into shared objects from archives
17444           whole_archive_flag_spec_GCJ='$convenience'
17445           archive_cmds_need_lc_GCJ=yes
17446           # This is similar to how AIX traditionally builds its shared libraries.
17447           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17448         fi
17449       fi
17450       ;;
17451
17452     amigaos*)
17453       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)'
17454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455       hardcode_minus_L_GCJ=yes
17456       # see comment about different semantics on the GNU ld section
17457       ld_shlibs_GCJ=no
17458       ;;
17459
17460     bsdi[45]*)
17461       export_dynamic_flag_spec_GCJ=-rdynamic
17462       ;;
17463
17464     cygwin* | mingw* | pw32*)
17465       # When not using gcc, we currently assume that we are using
17466       # Microsoft Visual C++.
17467       # hardcode_libdir_flag_spec is actually meaningless, as there is
17468       # no search path for DLLs.
17469       hardcode_libdir_flag_spec_GCJ=' '
17470       allow_undefined_flag_GCJ=unsupported
17471       # Tell ltmain to make .lib files, not .a files.
17472       libext=lib
17473       # Tell ltmain to make .dll files, not .so files.
17474       shrext_cmds=".dll"
17475       # FIXME: Setting linknames here is a bad hack.
17476       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17477       # The linker will automatically build a .lib file if we build a DLL.
17478       old_archive_From_new_cmds_GCJ='true'
17479       # FIXME: Should let the user specify the lib program.
17480       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17481       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17482       enable_shared_with_static_runtimes_GCJ=yes
17483       ;;
17484
17485     darwin* | rhapsody*)
17486       case $host_os in
17487         rhapsody* | darwin1.[012])
17488          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17489          ;;
17490        *) # Darwin 1.3 on
17491          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17492            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17493          else
17494            case ${MACOSX_DEPLOYMENT_TARGET} in
17495              10.[012])
17496                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17497                ;;
17498              10.*)
17499                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17500                ;;
17501            esac
17502          fi
17503          ;;
17504       esac
17505       archive_cmds_need_lc_GCJ=no
17506       hardcode_direct_GCJ=no
17507       hardcode_automatic_GCJ=yes
17508       hardcode_shlibpath_var_GCJ=unsupported
17509       whole_archive_flag_spec_GCJ=''
17510       link_all_deplibs_GCJ=yes
17511     if test "$GCC" = yes ; then
17512         output_verbose_link_cmd='echo'
17513         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17514       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17515       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17516       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17517       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}'
17518     else
17519       case $cc_basename in
17520         xlc*)
17521          output_verbose_link_cmd='echo'
17522          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17523          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17524           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17525          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17526           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}'
17527           ;;
17528        *)
17529          ld_shlibs_GCJ=no
17530           ;;
17531       esac
17532     fi
17533       ;;
17534
17535     dgux*)
17536       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17538       hardcode_shlibpath_var_GCJ=no
17539       ;;
17540
17541     freebsd1*)
17542       ld_shlibs_GCJ=no
17543       ;;
17544
17545     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17546     # support.  Future versions do this automatically, but an explicit c++rt0.o
17547     # does not break anything, and helps significantly (at the cost of a little
17548     # extra space).
17549     freebsd2.2*)
17550       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17551       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552       hardcode_direct_GCJ=yes
17553       hardcode_shlibpath_var_GCJ=no
17554       ;;
17555
17556     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17557     freebsd2*)
17558       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17559       hardcode_direct_GCJ=yes
17560       hardcode_minus_L_GCJ=yes
17561       hardcode_shlibpath_var_GCJ=no
17562       ;;
17563
17564     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17565     freebsd* | dragonfly*)
17566       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17567       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17568       hardcode_direct_GCJ=yes
17569       hardcode_shlibpath_var_GCJ=no
17570       ;;
17571
17572     hpux9*)
17573       if test "$GCC" = yes; then
17574         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'
17575       else
17576         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'
17577       fi
17578       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17579       hardcode_libdir_separator_GCJ=:
17580       hardcode_direct_GCJ=yes
17581
17582       # hardcode_minus_L: Not really in the search PATH,
17583       # but as the default location of the library.
17584       hardcode_minus_L_GCJ=yes
17585       export_dynamic_flag_spec_GCJ='${wl}-E'
17586       ;;
17587
17588     hpux10*)
17589       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17590         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17591       else
17592         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17593       fi
17594       if test "$with_gnu_ld" = no; then
17595         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596         hardcode_libdir_separator_GCJ=:
17597
17598         hardcode_direct_GCJ=yes
17599         export_dynamic_flag_spec_GCJ='${wl}-E'
17600
17601         # hardcode_minus_L: Not really in the search PATH,
17602         # but as the default location of the library.
17603         hardcode_minus_L_GCJ=yes
17604       fi
17605       ;;
17606
17607     hpux11*)
17608       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17609         case $host_cpu in
17610         hppa*64*)
17611           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612           ;;
17613         ia64*)
17614           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17615           ;;
17616         *)
17617           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17618           ;;
17619         esac
17620       else
17621         case $host_cpu in
17622         hppa*64*)
17623           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17624           ;;
17625         ia64*)
17626           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17627           ;;
17628         *)
17629           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17630           ;;
17631         esac
17632       fi
17633       if test "$with_gnu_ld" = no; then
17634         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17635         hardcode_libdir_separator_GCJ=:
17636
17637         case $host_cpu in
17638         hppa*64*|ia64*)
17639           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17640           hardcode_direct_GCJ=no
17641           hardcode_shlibpath_var_GCJ=no
17642           ;;
17643         *)
17644           hardcode_direct_GCJ=yes
17645           export_dynamic_flag_spec_GCJ='${wl}-E'
17646
17647           # hardcode_minus_L: Not really in the search PATH,
17648           # but as the default location of the library.
17649           hardcode_minus_L_GCJ=yes
17650           ;;
17651         esac
17652       fi
17653       ;;
17654
17655     irix5* | irix6* | nonstopux*)
17656       if test "$GCC" = yes; then
17657         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'
17658       else
17659         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'
17660         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17661       fi
17662       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17663       hardcode_libdir_separator_GCJ=:
17664       link_all_deplibs_GCJ=yes
17665       ;;
17666
17667     netbsd* | netbsdelf*-gnu)
17668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17669         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17670       else
17671         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17672       fi
17673       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17674       hardcode_direct_GCJ=yes
17675       hardcode_shlibpath_var_GCJ=no
17676       ;;
17677
17678     newsos6)
17679       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680       hardcode_direct_GCJ=yes
17681       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17682       hardcode_libdir_separator_GCJ=:
17683       hardcode_shlibpath_var_GCJ=no
17684       ;;
17685
17686     openbsd*)
17687       if test -f /usr/libexec/ld.so; then
17688         hardcode_direct_GCJ=yes
17689         hardcode_shlibpath_var_GCJ=no
17690         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17691           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17692           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17693           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17694           export_dynamic_flag_spec_GCJ='${wl}-E'
17695         else
17696           case $host_os in
17697            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17698              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17699              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17700              ;;
17701            *)
17702              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17703              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17704              ;;
17705           esac
17706         fi
17707       else
17708         ld_shlibs_GCJ=no
17709       fi
17710       ;;
17711
17712     os2*)
17713       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714       hardcode_minus_L_GCJ=yes
17715       allow_undefined_flag_GCJ=unsupported
17716       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'
17717       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17718       ;;
17719
17720     osf3*)
17721       if test "$GCC" = yes; then
17722         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17723         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'
17724       else
17725         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17726         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'
17727       fi
17728       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17729       hardcode_libdir_separator_GCJ=:
17730       ;;
17731
17732     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17733       if test "$GCC" = yes; then
17734         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17735         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'
17736         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17737       else
17738         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17739         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'
17740         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~
17741         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17742
17743         # Both c and cxx compiler support -rpath directly
17744         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17745       fi
17746       hardcode_libdir_separator_GCJ=:
17747       ;;
17748
17749     solaris*)
17750       no_undefined_flag_GCJ=' -z text'
17751       if test "$GCC" = yes; then
17752         wlarc='${wl}'
17753         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17754         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17755           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17756       else
17757         wlarc=''
17758         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17759         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17760         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17761       fi
17762       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17763       hardcode_shlibpath_var_GCJ=no
17764       case $host_os in
17765       solaris2.[0-5] | solaris2.[0-5].*) ;;
17766       *)
17767         # The compiler driver will combine and reorder linker options,
17768         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17769         # but is careful enough not to reorder.
17770         # Supported since Solaris 2.6 (maybe 2.5.1?)
17771         if test "$GCC" = yes; then
17772           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17773         else
17774           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17775         fi
17776         ;;
17777       esac
17778       link_all_deplibs_GCJ=yes
17779       ;;
17780
17781     sunos4*)
17782       if test "x$host_vendor" = xsequent; then
17783         # Use $CC to link under sequent, because it throws in some extra .o
17784         # files that make .init and .fini sections work.
17785         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17786       else
17787         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17788       fi
17789       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17790       hardcode_direct_GCJ=yes
17791       hardcode_minus_L_GCJ=yes
17792       hardcode_shlibpath_var_GCJ=no
17793       ;;
17794
17795     sysv4)
17796       case $host_vendor in
17797         sni)
17798           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17799           hardcode_direct_GCJ=yes # is this really true???
17800         ;;
17801         siemens)
17802           ## LD is ld it makes a PLAMLIB
17803           ## CC just makes a GrossModule.
17804           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17805           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17806           hardcode_direct_GCJ=no
17807         ;;
17808         motorola)
17809           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17811         ;;
17812       esac
17813       runpath_var='LD_RUN_PATH'
17814       hardcode_shlibpath_var_GCJ=no
17815       ;;
17816
17817     sysv4.3*)
17818       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17819       hardcode_shlibpath_var_GCJ=no
17820       export_dynamic_flag_spec_GCJ='-Bexport'
17821       ;;
17822
17823     sysv4*MP*)
17824       if test -d /usr/nec; then
17825         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826         hardcode_shlibpath_var_GCJ=no
17827         runpath_var=LD_RUN_PATH
17828         hardcode_runpath_var=yes
17829         ld_shlibs_GCJ=yes
17830       fi
17831       ;;
17832
17833     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17834       no_undefined_flag_GCJ='${wl}-z,text'
17835       archive_cmds_need_lc_GCJ=no
17836       hardcode_shlibpath_var_GCJ=no
17837       runpath_var='LD_RUN_PATH'
17838
17839       if test "$GCC" = yes; then
17840         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17841         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17842       else
17843         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17845       fi
17846       ;;
17847
17848     sysv5* | sco3.2v5* | sco5v6*)
17849       # Note: We can NOT use -z defs as we might desire, because we do not
17850       # link with -lc, and that would cause any symbols used from libc to
17851       # always be unresolved, which means just about no library would
17852       # ever link correctly.  If we're not using GNU ld we use -z text
17853       # though, which does catch some bad symbols but isn't as heavy-handed
17854       # as -z defs.
17855       no_undefined_flag_GCJ='${wl}-z,text'
17856       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17857       archive_cmds_need_lc_GCJ=no
17858       hardcode_shlibpath_var_GCJ=no
17859       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17860       hardcode_libdir_separator_GCJ=':'
17861       link_all_deplibs_GCJ=yes
17862       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17863       runpath_var='LD_RUN_PATH'
17864
17865       if test "$GCC" = yes; then
17866         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17867         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17868       else
17869         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17871       fi
17872       ;;
17873
17874     uts4*)
17875       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17876       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877       hardcode_shlibpath_var_GCJ=no
17878       ;;
17879
17880     *)
17881       ld_shlibs_GCJ=no
17882       ;;
17883     esac
17884   fi
17885
17886 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17887 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17888 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17889
17890 #
17891 # Do we need to explicitly link libc?
17892 #
17893 case "x$archive_cmds_need_lc_GCJ" in
17894 x|xyes)
17895   # Assume -lc should be added
17896   archive_cmds_need_lc_GCJ=yes
17897
17898   if test "$enable_shared" = yes && test "$GCC" = yes; then
17899     case $archive_cmds_GCJ in
17900     *'~'*)
17901       # FIXME: we may have to deal with multi-command sequences.
17902       ;;
17903     '$CC '*)
17904       # Test whether the compiler implicitly links with -lc since on some
17905       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17906       # to ld, don't add -lc before -lgcc.
17907       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17909       $rm conftest*
17910       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17911
17912       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913   (eval $ac_compile) 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } 2>conftest.err; then
17917         soname=conftest
17918         lib=conftest
17919         libobjs=conftest.$ac_objext
17920         deplibs=
17921         wl=$lt_prog_compiler_wl_GCJ
17922         pic_flag=$lt_prog_compiler_pic_GCJ
17923         compiler_flags=-v
17924         linker_flags=-v
17925         verstring=
17926         output_objdir=.
17927         libname=conftest
17928         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17929         allow_undefined_flag_GCJ=
17930         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17931   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }
17935         then
17936           archive_cmds_need_lc_GCJ=no
17937         else
17938           archive_cmds_need_lc_GCJ=yes
17939         fi
17940         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17941       else
17942         cat conftest.err 1>&5
17943       fi
17944       $rm conftest*
17945       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17946 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17947       ;;
17948     esac
17949   fi
17950   ;;
17951 esac
17952
17953 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17955 library_names_spec=
17956 libname_spec='lib$name'
17957 soname_spec=
17958 shrext_cmds=".so"
17959 postinstall_cmds=
17960 postuninstall_cmds=
17961 finish_cmds=
17962 finish_eval=
17963 shlibpath_var=
17964 shlibpath_overrides_runpath=unknown
17965 version_type=none
17966 dynamic_linker="$host_os ld.so"
17967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17968
17969 need_lib_prefix=unknown
17970 hardcode_into_libs=no
17971
17972 # when you set need_version to no, make sure it does not cause -set_version
17973 # flags to be left without arguments
17974 need_version=unknown
17975
17976 case $host_os in
17977 aix3*)
17978   version_type=linux
17979   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17980   shlibpath_var=LIBPATH
17981
17982   # AIX 3 has no versioning support, so we append a major version to the name.
17983   soname_spec='${libname}${release}${shared_ext}$major'
17984   ;;
17985
17986 aix4* | aix5*)
17987   version_type=linux
17988   need_lib_prefix=no
17989   need_version=no
17990   hardcode_into_libs=yes
17991   if test "$host_cpu" = ia64; then
17992     # AIX 5 supports IA64
17993     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17994     shlibpath_var=LD_LIBRARY_PATH
17995   else
17996     # With GCC up to 2.95.x, collect2 would create an import file
17997     # for dependence libraries.  The import file would start with
17998     # the line `#! .'.  This would cause the generated library to
17999     # depend on `.', always an invalid library.  This was fixed in
18000     # development snapshots of GCC prior to 3.0.
18001     case $host_os in
18002       aix4 | aix4.[01] | aix4.[01].*)
18003       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18004            echo ' yes '
18005            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18006         :
18007       else
18008         can_build_shared=no
18009       fi
18010       ;;
18011     esac
18012     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18013     # soname into executable. Probably we can add versioning support to
18014     # collect2, so additional links can be useful in future.
18015     if test "$aix_use_runtimelinking" = yes; then
18016       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18017       # instead of lib<name>.a to let people know that these are not
18018       # typical AIX shared libraries.
18019       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020     else
18021       # We preserve .a as extension for shared libraries through AIX4.2
18022       # and later when we are not doing run time linking.
18023       library_names_spec='${libname}${release}.a $libname.a'
18024       soname_spec='${libname}${release}${shared_ext}$major'
18025     fi
18026     shlibpath_var=LIBPATH
18027   fi
18028   ;;
18029
18030 amigaos*)
18031   library_names_spec='$libname.ixlibrary $libname.a'
18032   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18033   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'
18034   ;;
18035
18036 beos*)
18037   library_names_spec='${libname}${shared_ext}'
18038   dynamic_linker="$host_os ld.so"
18039   shlibpath_var=LIBRARY_PATH
18040   ;;
18041
18042 bsdi[45]*)
18043   version_type=linux
18044   need_version=no
18045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18046   soname_spec='${libname}${release}${shared_ext}$major'
18047   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18048   shlibpath_var=LD_LIBRARY_PATH
18049   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18050   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18051   # the default ld.so.conf also contains /usr/contrib/lib and
18052   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18053   # libtool to hard-code these into programs
18054   ;;
18055
18056 cygwin* | mingw* | pw32*)
18057   version_type=windows
18058   shrext_cmds=".dll"
18059   need_version=no
18060   need_lib_prefix=no
18061
18062   case $GCC,$host_os in
18063   yes,cygwin* | yes,mingw* | yes,pw32*)
18064     library_names_spec='$libname.dll.a'
18065     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18066     postinstall_cmds='base_file=`basename \${file}`~
18067       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18068       dldir=$destdir/`dirname \$dlpath`~
18069       test -d \$dldir || mkdir -p \$dldir~
18070       $install_prog $dir/$dlname \$dldir/$dlname~
18071       chmod a+x \$dldir/$dlname'
18072     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18073       dlpath=$dir/\$dldll~
18074        $rm \$dlpath'
18075     shlibpath_overrides_runpath=yes
18076
18077     case $host_os in
18078     cygwin*)
18079       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18080       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18081       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18082       ;;
18083     mingw*)
18084       # MinGW DLLs use traditional 'lib' prefix
18085       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18086       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18087       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18088         # It is most probably a Windows format PATH printed by
18089         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18090         # path with ; separators, and with drive letters. We can handle the
18091         # drive letters (cygwin fileutils understands them), so leave them,
18092         # especially as we might pass files found there to a mingw objdump,
18093         # which wouldn't understand a cygwinified path. Ahh.
18094         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18095       else
18096         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18097       fi
18098       ;;
18099     pw32*)
18100       # pw32 DLLs use 'pw' prefix rather than 'lib'
18101       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18102       ;;
18103     esac
18104     ;;
18105
18106   *)
18107     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18108     ;;
18109   esac
18110   dynamic_linker='Win32 ld.exe'
18111   # FIXME: first we should search . and the directory the executable is in
18112   shlibpath_var=PATH
18113   ;;
18114
18115 darwin* | rhapsody*)
18116   dynamic_linker="$host_os dyld"
18117   version_type=darwin
18118   need_lib_prefix=no
18119   need_version=no
18120   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18121   soname_spec='${libname}${release}${major}$shared_ext'
18122   shlibpath_overrides_runpath=yes
18123   shlibpath_var=DYLD_LIBRARY_PATH
18124   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18125
18126   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18127   ;;
18128
18129 dgux*)
18130   version_type=linux
18131   need_lib_prefix=no
18132   need_version=no
18133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18134   soname_spec='${libname}${release}${shared_ext}$major'
18135   shlibpath_var=LD_LIBRARY_PATH
18136   ;;
18137
18138 freebsd1*)
18139   dynamic_linker=no
18140   ;;
18141
18142 freebsd* | dragonfly*)
18143   # DragonFly does not have aout.  When/if they implement a new
18144   # versioning mechanism, adjust this.
18145   if test -x /usr/bin/objformat; then
18146     objformat=`/usr/bin/objformat`
18147   else
18148     case $host_os in
18149     freebsd[123]*) objformat=aout ;;
18150     *) objformat=elf ;;
18151     esac
18152   fi
18153   version_type=freebsd-$objformat
18154   case $version_type in
18155     freebsd-elf*)
18156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18157       need_version=no
18158       need_lib_prefix=no
18159       ;;
18160     freebsd-*)
18161       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18162       need_version=yes
18163       ;;
18164   esac
18165   shlibpath_var=LD_LIBRARY_PATH
18166   case $host_os in
18167   freebsd2*)
18168     shlibpath_overrides_runpath=yes
18169     ;;
18170   freebsd3.[01]* | freebsdelf3.[01]*)
18171     shlibpath_overrides_runpath=yes
18172     hardcode_into_libs=yes
18173     ;;
18174   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18175   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18176     shlibpath_overrides_runpath=no
18177     hardcode_into_libs=yes
18178     ;;
18179   *) # from 4.6 on, and DragonFly
18180     shlibpath_overrides_runpath=yes
18181     hardcode_into_libs=yes
18182     ;;
18183   esac
18184   ;;
18185
18186 gnu*)
18187   version_type=linux
18188   need_lib_prefix=no
18189   need_version=no
18190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18191   soname_spec='${libname}${release}${shared_ext}$major'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   hardcode_into_libs=yes
18194   ;;
18195
18196 hpux9* | hpux10* | hpux11*)
18197   # Give a soname corresponding to the major version so that dld.sl refuses to
18198   # link against other versions.
18199   version_type=sunos
18200   need_lib_prefix=no
18201   need_version=no
18202   case $host_cpu in
18203   ia64*)
18204     shrext_cmds='.so'
18205     hardcode_into_libs=yes
18206     dynamic_linker="$host_os dld.so"
18207     shlibpath_var=LD_LIBRARY_PATH
18208     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210     soname_spec='${libname}${release}${shared_ext}$major'
18211     if test "X$HPUX_IA64_MODE" = X32; then
18212       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18213     else
18214       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18215     fi
18216     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18217     ;;
18218    hppa*64*)
18219      shrext_cmds='.sl'
18220      hardcode_into_libs=yes
18221      dynamic_linker="$host_os dld.sl"
18222      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18223      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225      soname_spec='${libname}${release}${shared_ext}$major'
18226      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18227      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18228      ;;
18229    *)
18230     shrext_cmds='.sl'
18231     dynamic_linker="$host_os dld.sl"
18232     shlibpath_var=SHLIB_PATH
18233     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235     soname_spec='${libname}${release}${shared_ext}$major'
18236     ;;
18237   esac
18238   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18239   postinstall_cmds='chmod 555 $lib'
18240   ;;
18241
18242 interix[3-9]*)
18243   version_type=linux
18244   need_lib_prefix=no
18245   need_version=no
18246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18247   soname_spec='${libname}${release}${shared_ext}$major'
18248   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18249   shlibpath_var=LD_LIBRARY_PATH
18250   shlibpath_overrides_runpath=no
18251   hardcode_into_libs=yes
18252   ;;
18253
18254 irix5* | irix6* | nonstopux*)
18255   case $host_os in
18256     nonstopux*) version_type=nonstopux ;;
18257     *)
18258         if test "$lt_cv_prog_gnu_ld" = yes; then
18259                 version_type=linux
18260         else
18261                 version_type=irix
18262         fi ;;
18263   esac
18264   need_lib_prefix=no
18265   need_version=no
18266   soname_spec='${libname}${release}${shared_ext}$major'
18267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18268   case $host_os in
18269   irix5* | nonstopux*)
18270     libsuff= shlibsuff=
18271     ;;
18272   *)
18273     case $LD in # libtool.m4 will add one of these switches to LD
18274     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18275       libsuff= shlibsuff= libmagic=32-bit;;
18276     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18277       libsuff=32 shlibsuff=N32 libmagic=N32;;
18278     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18279       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18280     *) libsuff= shlibsuff= libmagic=never-match;;
18281     esac
18282     ;;
18283   esac
18284   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18285   shlibpath_overrides_runpath=no
18286   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18287   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18288   hardcode_into_libs=yes
18289   ;;
18290
18291 # No shared lib support for Linux oldld, aout, or coff.
18292 linux*oldld* | linux*aout* | linux*coff*)
18293   dynamic_linker=no
18294   ;;
18295
18296 # This must be Linux ELF.
18297 linux* | k*bsd*-gnu)
18298   version_type=linux
18299   need_lib_prefix=no
18300   need_version=no
18301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302   soname_spec='${libname}${release}${shared_ext}$major'
18303   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   shlibpath_overrides_runpath=no
18306   # This implies no fast_install, which is unacceptable.
18307   # Some rework will be needed to allow for fast_install
18308   # before this can be enabled.
18309   hardcode_into_libs=yes
18310
18311   # Append ld.so.conf contents to the search path
18312   if test -f /etc/ld.so.conf; then
18313     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18314     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18315   fi
18316
18317   # We used to test for /lib/ld.so.1 and disable shared libraries on
18318   # powerpc, because MkLinux only supported shared libraries with the
18319   # GNU dynamic linker.  Since this was broken with cross compilers,
18320   # most powerpc-linux boxes support dynamic linking these days and
18321   # people can always --disable-shared, the test was removed, and we
18322   # assume the GNU/Linux dynamic linker is in use.
18323   dynamic_linker='GNU/Linux ld.so'
18324   ;;
18325
18326 netbsdelf*-gnu)
18327   version_type=linux
18328   need_lib_prefix=no
18329   need_version=no
18330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331   soname_spec='${libname}${release}${shared_ext}$major'
18332   shlibpath_var=LD_LIBRARY_PATH
18333   shlibpath_overrides_runpath=no
18334   hardcode_into_libs=yes
18335   dynamic_linker='NetBSD ld.elf_so'
18336   ;;
18337
18338 netbsd*)
18339   version_type=sunos
18340   need_lib_prefix=no
18341   need_version=no
18342   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18344     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18345     dynamic_linker='NetBSD (a.out) ld.so'
18346   else
18347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18348     soname_spec='${libname}${release}${shared_ext}$major'
18349     dynamic_linker='NetBSD ld.elf_so'
18350   fi
18351   shlibpath_var=LD_LIBRARY_PATH
18352   shlibpath_overrides_runpath=yes
18353   hardcode_into_libs=yes
18354   ;;
18355
18356 newsos6)
18357   version_type=linux
18358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   shlibpath_overrides_runpath=yes
18361   ;;
18362
18363 nto-qnx*)
18364   version_type=linux
18365   need_lib_prefix=no
18366   need_version=no
18367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368   soname_spec='${libname}${release}${shared_ext}$major'
18369   shlibpath_var=LD_LIBRARY_PATH
18370   shlibpath_overrides_runpath=yes
18371   ;;
18372
18373 openbsd*)
18374   version_type=sunos
18375   sys_lib_dlsearch_path_spec="/usr/lib"
18376   need_lib_prefix=no
18377   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18378   case $host_os in
18379     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18380     *)                         need_version=no  ;;
18381   esac
18382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18384   shlibpath_var=LD_LIBRARY_PATH
18385   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18386     case $host_os in
18387       openbsd2.[89] | openbsd2.[89].*)
18388         shlibpath_overrides_runpath=no
18389         ;;
18390       *)
18391         shlibpath_overrides_runpath=yes
18392         ;;
18393       esac
18394   else
18395     shlibpath_overrides_runpath=yes
18396   fi
18397   ;;
18398
18399 os2*)
18400   libname_spec='$name'
18401   shrext_cmds=".dll"
18402   need_lib_prefix=no
18403   library_names_spec='$libname${shared_ext} $libname.a'
18404   dynamic_linker='OS/2 ld.exe'
18405   shlibpath_var=LIBPATH
18406   ;;
18407
18408 osf3* | osf4* | osf5*)
18409   version_type=osf
18410   need_lib_prefix=no
18411   need_version=no
18412   soname_spec='${libname}${release}${shared_ext}$major'
18413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414   shlibpath_var=LD_LIBRARY_PATH
18415   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18416   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18417   ;;
18418
18419 rdos*)
18420   dynamic_linker=no
18421   ;;
18422
18423 solaris*)
18424   version_type=linux
18425   need_lib_prefix=no
18426   need_version=no
18427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428   soname_spec='${libname}${release}${shared_ext}$major'
18429   shlibpath_var=LD_LIBRARY_PATH
18430   shlibpath_overrides_runpath=yes
18431   hardcode_into_libs=yes
18432   # ldd complains unless libraries are executable
18433   postinstall_cmds='chmod +x $lib'
18434   ;;
18435
18436 sunos4*)
18437   version_type=sunos
18438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18440   shlibpath_var=LD_LIBRARY_PATH
18441   shlibpath_overrides_runpath=yes
18442   if test "$with_gnu_ld" = yes; then
18443     need_lib_prefix=no
18444   fi
18445   need_version=yes
18446   ;;
18447
18448 sysv4 | sysv4.3*)
18449   version_type=linux
18450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451   soname_spec='${libname}${release}${shared_ext}$major'
18452   shlibpath_var=LD_LIBRARY_PATH
18453   case $host_vendor in
18454     sni)
18455       shlibpath_overrides_runpath=no
18456       need_lib_prefix=no
18457       export_dynamic_flag_spec='${wl}-Blargedynsym'
18458       runpath_var=LD_RUN_PATH
18459       ;;
18460     siemens)
18461       need_lib_prefix=no
18462       ;;
18463     motorola)
18464       need_lib_prefix=no
18465       need_version=no
18466       shlibpath_overrides_runpath=no
18467       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18468       ;;
18469   esac
18470   ;;
18471
18472 sysv4*MP*)
18473   if test -d /usr/nec ;then
18474     version_type=linux
18475     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18476     soname_spec='$libname${shared_ext}.$major'
18477     shlibpath_var=LD_LIBRARY_PATH
18478   fi
18479   ;;
18480
18481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18482   version_type=freebsd-elf
18483   need_lib_prefix=no
18484   need_version=no
18485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18486   soname_spec='${libname}${release}${shared_ext}$major'
18487   shlibpath_var=LD_LIBRARY_PATH
18488   hardcode_into_libs=yes
18489   if test "$with_gnu_ld" = yes; then
18490     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18491     shlibpath_overrides_runpath=no
18492   else
18493     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18494     shlibpath_overrides_runpath=yes
18495     case $host_os in
18496       sco3.2v5*)
18497         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18498         ;;
18499     esac
18500   fi
18501   sys_lib_dlsearch_path_spec='/usr/lib'
18502   ;;
18503
18504 uts4*)
18505   version_type=linux
18506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507   soname_spec='${libname}${release}${shared_ext}$major'
18508   shlibpath_var=LD_LIBRARY_PATH
18509   ;;
18510
18511 *)
18512   dynamic_linker=no
18513   ;;
18514 esac
18515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18516 echo "${ECHO_T}$dynamic_linker" >&6; }
18517 test "$dynamic_linker" = no && can_build_shared=no
18518
18519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18520 if test "$GCC" = yes; then
18521   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18522 fi
18523
18524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18526 hardcode_action_GCJ=
18527 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18528    test -n "$runpath_var_GCJ" || \
18529    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18530
18531   # We can hardcode non-existant directories.
18532   if test "$hardcode_direct_GCJ" != no &&
18533      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18534      # have to relink, otherwise we might link with an installed library
18535      # when we should be linking with a yet-to-be-installed one
18536      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18537      test "$hardcode_minus_L_GCJ" != no; then
18538     # Linking always hardcodes the temporary library directory.
18539     hardcode_action_GCJ=relink
18540   else
18541     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18542     hardcode_action_GCJ=immediate
18543   fi
18544 else
18545   # We cannot hardcode anything, or else we can only hardcode existing
18546   # directories.
18547   hardcode_action_GCJ=unsupported
18548 fi
18549 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18550 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18551
18552 if test "$hardcode_action_GCJ" = relink; then
18553   # Fast installation is not supported
18554   enable_fast_install=no
18555 elif test "$shlibpath_overrides_runpath" = yes ||
18556      test "$enable_shared" = no; then
18557   # Fast installation is not necessary
18558   enable_fast_install=needless
18559 fi
18560
18561
18562 # The else clause should only fire when bootstrapping the
18563 # libtool distribution, otherwise you forgot to ship ltmain.sh
18564 # with your package, and you will get complaints that there are
18565 # no rules to generate ltmain.sh.
18566 if test -f "$ltmain"; then
18567   # See if we are running on zsh, and set the options which allow our commands through
18568   # without removal of \ escapes.
18569   if test -n "${ZSH_VERSION+set}" ; then
18570     setopt NO_GLOB_SUBST
18571   fi
18572   # Now quote all the things that may contain metacharacters while being
18573   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18574   # variables and quote the copies for generation of the libtool script.
18575   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18576     SED SHELL STRIP \
18577     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18578     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18579     deplibs_check_method reload_flag reload_cmds need_locks \
18580     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18581     lt_cv_sys_global_symbol_to_c_name_address \
18582     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18583     old_postinstall_cmds old_postuninstall_cmds \
18584     compiler_GCJ \
18585     CC_GCJ \
18586     LD_GCJ \
18587     lt_prog_compiler_wl_GCJ \
18588     lt_prog_compiler_pic_GCJ \
18589     lt_prog_compiler_static_GCJ \
18590     lt_prog_compiler_no_builtin_flag_GCJ \
18591     export_dynamic_flag_spec_GCJ \
18592     thread_safe_flag_spec_GCJ \
18593     whole_archive_flag_spec_GCJ \
18594     enable_shared_with_static_runtimes_GCJ \
18595     old_archive_cmds_GCJ \
18596     old_archive_from_new_cmds_GCJ \
18597     predep_objects_GCJ \
18598     postdep_objects_GCJ \
18599     predeps_GCJ \
18600     postdeps_GCJ \
18601     compiler_lib_search_path_GCJ \
18602     archive_cmds_GCJ \
18603     archive_expsym_cmds_GCJ \
18604     postinstall_cmds_GCJ \
18605     postuninstall_cmds_GCJ \
18606     old_archive_from_expsyms_cmds_GCJ \
18607     allow_undefined_flag_GCJ \
18608     no_undefined_flag_GCJ \
18609     export_symbols_cmds_GCJ \
18610     hardcode_libdir_flag_spec_GCJ \
18611     hardcode_libdir_flag_spec_ld_GCJ \
18612     hardcode_libdir_separator_GCJ \
18613     hardcode_automatic_GCJ \
18614     module_cmds_GCJ \
18615     module_expsym_cmds_GCJ \
18616     lt_cv_prog_compiler_c_o_GCJ \
18617     fix_srcfile_path_GCJ \
18618     exclude_expsyms_GCJ \
18619     include_expsyms_GCJ; do
18620
18621     case $var in
18622     old_archive_cmds_GCJ | \
18623     old_archive_from_new_cmds_GCJ | \
18624     archive_cmds_GCJ | \
18625     archive_expsym_cmds_GCJ | \
18626     module_cmds_GCJ | \
18627     module_expsym_cmds_GCJ | \
18628     old_archive_from_expsyms_cmds_GCJ | \
18629     export_symbols_cmds_GCJ | \
18630     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18631     postinstall_cmds | postuninstall_cmds | \
18632     old_postinstall_cmds | old_postuninstall_cmds | \
18633     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18634       # Double-quote double-evaled strings.
18635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18636       ;;
18637     *)
18638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18639       ;;
18640     esac
18641   done
18642
18643   case $lt_echo in
18644   *'\$0 --fallback-echo"')
18645     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18646     ;;
18647   esac
18648
18649 cfgfile="$ofile"
18650
18651   cat <<__EOF__ >> "$cfgfile"
18652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18653
18654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18655
18656 # Shell to use when invoking shell scripts.
18657 SHELL=$lt_SHELL
18658
18659 # Whether or not to build shared libraries.
18660 build_libtool_libs=$enable_shared
18661
18662 # Whether or not to build static libraries.
18663 build_old_libs=$enable_static
18664
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18667
18668 # Whether or not to disallow shared libs when runtime libs are static
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18670
18671 # Whether or not to optimize for fast installation.
18672 fast_install=$enable_fast_install
18673
18674 # The host system.
18675 host_alias=$host_alias
18676 host=$host
18677 host_os=$host_os
18678
18679 # The build system.
18680 build_alias=$build_alias
18681 build=$build
18682 build_os=$build_os
18683
18684 # An echo program that does not interpret backslashes.
18685 echo=$lt_echo
18686
18687 # The archiver.
18688 AR=$lt_AR
18689 AR_FLAGS=$lt_AR_FLAGS
18690
18691 # A C compiler.
18692 LTCC=$lt_LTCC
18693
18694 # LTCC compiler flags.
18695 LTCFLAGS=$lt_LTCFLAGS
18696
18697 # A language-specific compiler.
18698 CC=$lt_compiler_GCJ
18699
18700 # Is the compiler the GNU C compiler?
18701 with_gcc=$GCC_GCJ
18702
18703 # An ERE matcher.
18704 EGREP=$lt_EGREP
18705
18706 # The linker used to build libraries.
18707 LD=$lt_LD_GCJ
18708
18709 # Whether we need hard or soft links.
18710 LN_S=$lt_LN_S
18711
18712 # A BSD-compatible nm program.
18713 NM=$lt_NM
18714
18715 # A symbol stripping program
18716 STRIP=$lt_STRIP
18717
18718 # Used to examine libraries when file_magic_cmd begins "file"
18719 MAGIC_CMD=$MAGIC_CMD
18720
18721 # Used on cygwin: DLL creation program.
18722 DLLTOOL="$DLLTOOL"
18723
18724 # Used on cygwin: object dumper.
18725 OBJDUMP="$OBJDUMP"
18726
18727 # Used on cygwin: assembler.
18728 AS="$AS"
18729
18730 # The name of the directory that contains temporary libtool files.
18731 objdir=$objdir
18732
18733 # How to create reloadable object files.
18734 reload_flag=$lt_reload_flag
18735 reload_cmds=$lt_reload_cmds
18736
18737 # How to pass a linker flag through the compiler.
18738 wl=$lt_lt_prog_compiler_wl_GCJ
18739
18740 # Object file suffix (normally "o").
18741 objext="$ac_objext"
18742
18743 # Old archive suffix (normally "a").
18744 libext="$libext"
18745
18746 # Shared library suffix (normally ".so").
18747 shrext_cmds='$shrext_cmds'
18748
18749 # Executable file suffix (normally "").
18750 exeext="$exeext"
18751
18752 # Additional compiler flags for building library objects.
18753 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18754 pic_mode=$pic_mode
18755
18756 # What is the maximum length of a command?
18757 max_cmd_len=$lt_cv_sys_max_cmd_len
18758
18759 # Does compiler simultaneously support -c and -o options?
18760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18761
18762 # Must we lock files when doing compilation?
18763 need_locks=$lt_need_locks
18764
18765 # Do we need the lib prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18767
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18770
18771 # Whether dlopen is supported.
18772 dlopen_support=$enable_dlopen
18773
18774 # Whether dlopen of programs is supported.
18775 dlopen_self=$enable_dlopen_self
18776
18777 # Whether dlopen of statically linked programs is supported.
18778 dlopen_self_static=$enable_dlopen_self_static
18779
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18782
18783 # Compiler flag to turn off builtin functions.
18784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18785
18786 # Compiler flag to allow reflexive dlopens.
18787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18788
18789 # Compiler flag to generate shared objects directly from archives.
18790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18791
18792 # Compiler flag to generate thread-safe objects.
18793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18794
18795 # Library versioning type.
18796 version_type=$version_type
18797
18798 # Format of library name prefix.
18799 libname_spec=$lt_libname_spec
18800
18801 # List of archive names.  First name is the real one, the rest are links.
18802 # The last name is the one that the linker finds with -lNAME.
18803 library_names_spec=$lt_library_names_spec
18804
18805 # The coded name of the library, if different from the real name.
18806 soname_spec=$lt_soname_spec
18807
18808 # Commands used to build and install an old-style archive.
18809 RANLIB=$lt_RANLIB
18810 old_archive_cmds=$lt_old_archive_cmds_GCJ
18811 old_postinstall_cmds=$lt_old_postinstall_cmds
18812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18813
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18816
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18819
18820 # Commands used to build and install a shared archive.
18821 archive_cmds=$lt_archive_cmds_GCJ
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18823 postinstall_cmds=$lt_postinstall_cmds
18824 postuninstall_cmds=$lt_postuninstall_cmds
18825
18826 # Commands used to build a loadable module (assumed same as above if empty)
18827 module_cmds=$lt_module_cmds_GCJ
18828 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18829
18830 # Commands to strip libraries.
18831 old_striplib=$lt_old_striplib
18832 striplib=$lt_striplib
18833
18834 # Dependencies to place before the objects being linked to create a
18835 # shared library.
18836 predep_objects=$lt_predep_objects_GCJ
18837
18838 # Dependencies to place after the objects being linked to create a
18839 # shared library.
18840 postdep_objects=$lt_postdep_objects_GCJ
18841
18842 # Dependencies to place before the objects being linked to create a
18843 # shared library.
18844 predeps=$lt_predeps_GCJ
18845
18846 # Dependencies to place after the objects being linked to create a
18847 # shared library.
18848 postdeps=$lt_postdeps_GCJ
18849
18850 # The library search path used internally by the compiler when linking
18851 # a shared library.
18852 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18853
18854 # Method to check whether dependent libraries are shared objects.
18855 deplibs_check_method=$lt_deplibs_check_method
18856
18857 # Command to use when deplibs_check_method == file_magic.
18858 file_magic_cmd=$lt_file_magic_cmd
18859
18860 # Flag that allows shared libraries with undefined symbols to be built.
18861 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18862
18863 # Flag that forces no undefined symbols.
18864 no_undefined_flag=$lt_no_undefined_flag_GCJ
18865
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18868
18869 # Same as above, but a single script fragment to be evaled but not shown.
18870 finish_eval=$lt_finish_eval
18871
18872 # Take the output of nm and produce a listing of raw symbols and C names.
18873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18874
18875 # Transform the output of nm in a proper C declaration
18876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18877
18878 # Transform the output of nm in a C name address pair
18879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18880
18881 # This is the shared library runtime path variable.
18882 runpath_var=$runpath_var
18883
18884 # This is the shared library path variable.
18885 shlibpath_var=$shlibpath_var
18886
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18889
18890 # How to hardcode a shared library path into an executable.
18891 hardcode_action=$hardcode_action_GCJ
18892
18893 # Whether we should hardcode library paths into libraries.
18894 hardcode_into_libs=$hardcode_into_libs
18895
18896 # Flag to hardcode \$libdir into a binary during linking.
18897 # This must work even if \$libdir does not exist.
18898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18899
18900 # If ld is used when linking, flag to hardcode \$libdir into
18901 # a binary during linking. This must work even if \$libdir does
18902 # not exist.
18903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18904
18905 # Whether we need a single -rpath flag with a separated argument.
18906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18907
18908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18909 # resulting binary.
18910 hardcode_direct=$hardcode_direct_GCJ
18911
18912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18913 # resulting binary.
18914 hardcode_minus_L=$hardcode_minus_L_GCJ
18915
18916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18917 # the resulting binary.
18918 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18919
18920 # Set to yes if building a shared library automatically hardcodes DIR into the library
18921 # and all subsequent libraries and executables linked against it.
18922 hardcode_automatic=$hardcode_automatic_GCJ
18923
18924 # Variables whose values should be saved in libtool wrapper scripts and
18925 # restored at relink time.
18926 variables_saved_for_relink="$variables_saved_for_relink"
18927
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_GCJ
18930
18931 # Compile-time system search path for libraries
18932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18933
18934 # Run-time system search path for libraries
18935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18936
18937 # Fix the shell variable \$srcfile for the compiler.
18938 fix_srcfile_path=$lt_fix_srcfile_path
18939
18940 # Set to yes if exported symbols are required.
18941 always_export_symbols=$always_export_symbols_GCJ
18942
18943 # The commands to list exported symbols.
18944 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18945
18946 # The commands to extract the exported symbol list from a shared archive.
18947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18948
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms_GCJ
18951
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms_GCJ
18954
18955 # ### END LIBTOOL TAG CONFIG: $tagname
18956
18957 __EOF__
18958
18959
18960 else
18961   # If there is no Makefile yet, we rely on a make rule to execute
18962   # `config.status --recheck' to rerun these tests and create the
18963   # libtool script then.
18964   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18965   if test -f "$ltmain_in"; then
18966     test -f Makefile && make "$ltmain"
18967   fi
18968 fi
18969
18970
18971 ac_ext=c
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18976
18977 CC="$lt_save_CC"
18978
18979         else
18980           tagname=""
18981         fi
18982         ;;
18983
18984       RC)
18985
18986
18987 # Source file extension for RC test sources.
18988 ac_ext=rc
18989
18990 # Object file extension for compiled RC test sources.
18991 objext=o
18992 objext_RC=$objext
18993
18994 # Code to be used in simple compile tests
18995 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18996
18997 # Code to be used in simple link tests
18998 lt_simple_link_test_code="$lt_simple_compile_test_code"
18999
19000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19001
19002 # If no C compiler was specified, use CC.
19003 LTCC=${LTCC-"$CC"}
19004
19005 # If no C compiler flags were specified, use CFLAGS.
19006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19007
19008 # Allow CC to be a program name with arguments.
19009 compiler=$CC
19010
19011
19012 # save warnings/boilerplate of simple test code
19013 ac_outfile=conftest.$ac_objext
19014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016 _lt_compiler_boilerplate=`cat conftest.err`
19017 $rm conftest*
19018
19019 ac_outfile=conftest.$ac_objext
19020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19022 _lt_linker_boilerplate=`cat conftest.err`
19023 $rm conftest*
19024
19025
19026 # Allow CC to be a program name with arguments.
19027 lt_save_CC="$CC"
19028 CC=${RC-"windres"}
19029 compiler=$CC
19030 compiler_RC=$CC
19031 for cc_temp in $compiler""; do
19032   case $cc_temp in
19033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19035     \-*) ;;
19036     *) break;;
19037   esac
19038 done
19039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19040
19041 lt_cv_prog_compiler_c_o_RC=yes
19042
19043 # The else clause should only fire when bootstrapping the
19044 # libtool distribution, otherwise you forgot to ship ltmain.sh
19045 # with your package, and you will get complaints that there are
19046 # no rules to generate ltmain.sh.
19047 if test -f "$ltmain"; then
19048   # See if we are running on zsh, and set the options which allow our commands through
19049   # without removal of \ escapes.
19050   if test -n "${ZSH_VERSION+set}" ; then
19051     setopt NO_GLOB_SUBST
19052   fi
19053   # Now quote all the things that may contain metacharacters while being
19054   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19055   # variables and quote the copies for generation of the libtool script.
19056   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19057     SED SHELL STRIP \
19058     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19059     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19060     deplibs_check_method reload_flag reload_cmds need_locks \
19061     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19062     lt_cv_sys_global_symbol_to_c_name_address \
19063     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19064     old_postinstall_cmds old_postuninstall_cmds \
19065     compiler_RC \
19066     CC_RC \
19067     LD_RC \
19068     lt_prog_compiler_wl_RC \
19069     lt_prog_compiler_pic_RC \
19070     lt_prog_compiler_static_RC \
19071     lt_prog_compiler_no_builtin_flag_RC \
19072     export_dynamic_flag_spec_RC \
19073     thread_safe_flag_spec_RC \
19074     whole_archive_flag_spec_RC \
19075     enable_shared_with_static_runtimes_RC \
19076     old_archive_cmds_RC \
19077     old_archive_from_new_cmds_RC \
19078     predep_objects_RC \
19079     postdep_objects_RC \
19080     predeps_RC \
19081     postdeps_RC \
19082     compiler_lib_search_path_RC \
19083     archive_cmds_RC \
19084     archive_expsym_cmds_RC \
19085     postinstall_cmds_RC \
19086     postuninstall_cmds_RC \
19087     old_archive_from_expsyms_cmds_RC \
19088     allow_undefined_flag_RC \
19089     no_undefined_flag_RC \
19090     export_symbols_cmds_RC \
19091     hardcode_libdir_flag_spec_RC \
19092     hardcode_libdir_flag_spec_ld_RC \
19093     hardcode_libdir_separator_RC \
19094     hardcode_automatic_RC \
19095     module_cmds_RC \
19096     module_expsym_cmds_RC \
19097     lt_cv_prog_compiler_c_o_RC \
19098     fix_srcfile_path_RC \
19099     exclude_expsyms_RC \
19100     include_expsyms_RC; do
19101
19102     case $var in
19103     old_archive_cmds_RC | \
19104     old_archive_from_new_cmds_RC | \
19105     archive_cmds_RC | \
19106     archive_expsym_cmds_RC | \
19107     module_cmds_RC | \
19108     module_expsym_cmds_RC | \
19109     old_archive_from_expsyms_cmds_RC | \
19110     export_symbols_cmds_RC | \
19111     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19112     postinstall_cmds | postuninstall_cmds | \
19113     old_postinstall_cmds | old_postuninstall_cmds | \
19114     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19115       # Double-quote double-evaled strings.
19116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19117       ;;
19118     *)
19119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19120       ;;
19121     esac
19122   done
19123
19124   case $lt_echo in
19125   *'\$0 --fallback-echo"')
19126     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19127     ;;
19128   esac
19129
19130 cfgfile="$ofile"
19131
19132   cat <<__EOF__ >> "$cfgfile"
19133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19134
19135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19136
19137 # Shell to use when invoking shell scripts.
19138 SHELL=$lt_SHELL
19139
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19142
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19145
19146 # Whether or not to add -lc for building shared libraries.
19147 build_libtool_need_lc=$archive_cmds_need_lc_RC
19148
19149 # Whether or not to disallow shared libs when runtime libs are static
19150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19151
19152 # Whether or not to optimize for fast installation.
19153 fast_install=$enable_fast_install
19154
19155 # The host system.
19156 host_alias=$host_alias
19157 host=$host
19158 host_os=$host_os
19159
19160 # The build system.
19161 build_alias=$build_alias
19162 build=$build
19163 build_os=$build_os
19164
19165 # An echo program that does not interpret backslashes.
19166 echo=$lt_echo
19167
19168 # The archiver.
19169 AR=$lt_AR
19170 AR_FLAGS=$lt_AR_FLAGS
19171
19172 # A C compiler.
19173 LTCC=$lt_LTCC
19174
19175 # LTCC compiler flags.
19176 LTCFLAGS=$lt_LTCFLAGS
19177
19178 # A language-specific compiler.
19179 CC=$lt_compiler_RC
19180
19181 # Is the compiler the GNU C compiler?
19182 with_gcc=$GCC_RC
19183
19184 # An ERE matcher.
19185 EGREP=$lt_EGREP
19186
19187 # The linker used to build libraries.
19188 LD=$lt_LD_RC
19189
19190 # Whether we need hard or soft links.
19191 LN_S=$lt_LN_S
19192
19193 # A BSD-compatible nm program.
19194 NM=$lt_NM
19195
19196 # A symbol stripping program
19197 STRIP=$lt_STRIP
19198
19199 # Used to examine libraries when file_magic_cmd begins "file"
19200 MAGIC_CMD=$MAGIC_CMD
19201
19202 # Used on cygwin: DLL creation program.
19203 DLLTOOL="$DLLTOOL"
19204
19205 # Used on cygwin: object dumper.
19206 OBJDUMP="$OBJDUMP"
19207
19208 # Used on cygwin: assembler.
19209 AS="$AS"
19210
19211 # The name of the directory that contains temporary libtool files.
19212 objdir=$objdir
19213
19214 # How to create reloadable object files.
19215 reload_flag=$lt_reload_flag
19216 reload_cmds=$lt_reload_cmds
19217
19218 # How to pass a linker flag through the compiler.
19219 wl=$lt_lt_prog_compiler_wl_RC
19220
19221 # Object file suffix (normally "o").
19222 objext="$ac_objext"
19223
19224 # Old archive suffix (normally "a").
19225 libext="$libext"
19226
19227 # Shared library suffix (normally ".so").
19228 shrext_cmds='$shrext_cmds'
19229
19230 # Executable file suffix (normally "").
19231 exeext="$exeext"
19232
19233 # Additional compiler flags for building library objects.
19234 pic_flag=$lt_lt_prog_compiler_pic_RC
19235 pic_mode=$pic_mode
19236
19237 # What is the maximum length of a command?
19238 max_cmd_len=$lt_cv_sys_max_cmd_len
19239
19240 # Does compiler simultaneously support -c and -o options?
19241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19242
19243 # Must we lock files when doing compilation?
19244 need_locks=$lt_need_locks
19245
19246 # Do we need the lib prefix for modules?
19247 need_lib_prefix=$need_lib_prefix
19248
19249 # Do we need a version for libraries?
19250 need_version=$need_version
19251
19252 # Whether dlopen is supported.
19253 dlopen_support=$enable_dlopen
19254
19255 # Whether dlopen of programs is supported.
19256 dlopen_self=$enable_dlopen_self
19257
19258 # Whether dlopen of statically linked programs is supported.
19259 dlopen_self_static=$enable_dlopen_self_static
19260
19261 # Compiler flag to prevent dynamic linking.
19262 link_static_flag=$lt_lt_prog_compiler_static_RC
19263
19264 # Compiler flag to turn off builtin functions.
19265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19266
19267 # Compiler flag to allow reflexive dlopens.
19268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19269
19270 # Compiler flag to generate shared objects directly from archives.
19271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19272
19273 # Compiler flag to generate thread-safe objects.
19274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19275
19276 # Library versioning type.
19277 version_type=$version_type
19278
19279 # Format of library name prefix.
19280 libname_spec=$lt_libname_spec
19281
19282 # List of archive names.  First name is the real one, the rest are links.
19283 # The last name is the one that the linker finds with -lNAME.
19284 library_names_spec=$lt_library_names_spec
19285
19286 # The coded name of the library, if different from the real name.
19287 soname_spec=$lt_soname_spec
19288
19289 # Commands used to build and install an old-style archive.
19290 RANLIB=$lt_RANLIB
19291 old_archive_cmds=$lt_old_archive_cmds_RC
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19294
19295 # Create an old-style archive from a shared archive.
19296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19297
19298 # Create a temporary old-style archive to link instead of a shared archive.
19299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19300
19301 # Commands used to build and install a shared archive.
19302 archive_cmds=$lt_archive_cmds_RC
19303 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19304 postinstall_cmds=$lt_postinstall_cmds
19305 postuninstall_cmds=$lt_postuninstall_cmds
19306
19307 # Commands used to build a loadable module (assumed same as above if empty)
19308 module_cmds=$lt_module_cmds_RC
19309 module_expsym_cmds=$lt_module_expsym_cmds_RC
19310
19311 # Commands to strip libraries.
19312 old_striplib=$lt_old_striplib
19313 striplib=$lt_striplib
19314
19315 # Dependencies to place before the objects being linked to create a
19316 # shared library.
19317 predep_objects=$lt_predep_objects_RC
19318
19319 # Dependencies to place after the objects being linked to create a
19320 # shared library.
19321 postdep_objects=$lt_postdep_objects_RC
19322
19323 # Dependencies to place before the objects being linked to create a
19324 # shared library.
19325 predeps=$lt_predeps_RC
19326
19327 # Dependencies to place after the objects being linked to create a
19328 # shared library.
19329 postdeps=$lt_postdeps_RC
19330
19331 # The library search path used internally by the compiler when linking
19332 # a shared library.
19333 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19334
19335 # Method to check whether dependent libraries are shared objects.
19336 deplibs_check_method=$lt_deplibs_check_method
19337
19338 # Command to use when deplibs_check_method == file_magic.
19339 file_magic_cmd=$lt_file_magic_cmd
19340
19341 # Flag that allows shared libraries with undefined symbols to be built.
19342 allow_undefined_flag=$lt_allow_undefined_flag_RC
19343
19344 # Flag that forces no undefined symbols.
19345 no_undefined_flag=$lt_no_undefined_flag_RC
19346
19347 # Commands used to finish a libtool library installation in a directory.
19348 finish_cmds=$lt_finish_cmds
19349
19350 # Same as above, but a single script fragment to be evaled but not shown.
19351 finish_eval=$lt_finish_eval
19352
19353 # Take the output of nm and produce a listing of raw symbols and C names.
19354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19355
19356 # Transform the output of nm in a proper C declaration
19357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19358
19359 # Transform the output of nm in a C name address pair
19360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19361
19362 # This is the shared library runtime path variable.
19363 runpath_var=$runpath_var
19364
19365 # This is the shared library path variable.
19366 shlibpath_var=$shlibpath_var
19367
19368 # Is shlibpath searched before the hard-coded library search path?
19369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19370
19371 # How to hardcode a shared library path into an executable.
19372 hardcode_action=$hardcode_action_RC
19373
19374 # Whether we should hardcode library paths into libraries.
19375 hardcode_into_libs=$hardcode_into_libs
19376
19377 # Flag to hardcode \$libdir into a binary during linking.
19378 # This must work even if \$libdir does not exist.
19379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19380
19381 # If ld is used when linking, flag to hardcode \$libdir into
19382 # a binary during linking. This must work even if \$libdir does
19383 # not exist.
19384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19385
19386 # Whether we need a single -rpath flag with a separated argument.
19387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19388
19389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19390 # resulting binary.
19391 hardcode_direct=$hardcode_direct_RC
19392
19393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19394 # resulting binary.
19395 hardcode_minus_L=$hardcode_minus_L_RC
19396
19397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19398 # the resulting binary.
19399 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19400
19401 # Set to yes if building a shared library automatically hardcodes DIR into the library
19402 # and all subsequent libraries and executables linked against it.
19403 hardcode_automatic=$hardcode_automatic_RC
19404
19405 # Variables whose values should be saved in libtool wrapper scripts and
19406 # restored at relink time.
19407 variables_saved_for_relink="$variables_saved_for_relink"
19408
19409 # Whether libtool must link a program against all its dependency libraries.
19410 link_all_deplibs=$link_all_deplibs_RC
19411
19412 # Compile-time system search path for libraries
19413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19414
19415 # Run-time system search path for libraries
19416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19417
19418 # Fix the shell variable \$srcfile for the compiler.
19419 fix_srcfile_path=$lt_fix_srcfile_path
19420
19421 # Set to yes if exported symbols are required.
19422 always_export_symbols=$always_export_symbols_RC
19423
19424 # The commands to list exported symbols.
19425 export_symbols_cmds=$lt_export_symbols_cmds_RC
19426
19427 # The commands to extract the exported symbol list from a shared archive.
19428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19429
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms_RC
19432
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms_RC
19435
19436 # ### END LIBTOOL TAG CONFIG: $tagname
19437
19438 __EOF__
19439
19440
19441 else
19442   # If there is no Makefile yet, we rely on a make rule to execute
19443   # `config.status --recheck' to rerun these tests and create the
19444   # libtool script then.
19445   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19446   if test -f "$ltmain_in"; then
19447     test -f Makefile && make "$ltmain"
19448   fi
19449 fi
19450
19451
19452 ac_ext=c
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457
19458 CC="$lt_save_CC"
19459
19460         ;;
19461
19462       *)
19463         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19464 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19465    { (exit 1); exit 1; }; }
19466         ;;
19467       esac
19468
19469       # Append the new tag name to the list of available tags.
19470       if test -n "$tagname" ; then
19471       available_tags="$available_tags $tagname"
19472     fi
19473     fi
19474   done
19475   IFS="$lt_save_ifs"
19476
19477   # Now substitute the updated list of available tags.
19478   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19479     mv "${ofile}T" "$ofile"
19480     chmod +x "$ofile"
19481   else
19482     rm -f "${ofile}T"
19483     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19484 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19485    { (exit 1); exit 1; }; }
19486   fi
19487 fi
19488
19489
19490
19491 # This can be used to rebuild libtool when needed
19492 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19493
19494 # Always use our own libtool.
19495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19496
19497 # Prevent multiple expansion
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518 # Find a good install program.  We prefer a C program (faster),
19519 # so one script is as good as another.  But avoid the broken or
19520 # incompatible versions:
19521 # SysV /etc/install, /usr/sbin/install
19522 # SunOS /usr/etc/install
19523 # IRIX /sbin/install
19524 # AIX /bin/install
19525 # AmigaOS /C/install, which installs bootblocks on floppy discs
19526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19529 # OS/2's system install, which has a completely different semantic
19530 # ./install, which can be erroneously created by make from ./install.sh.
19531 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19532 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19533 if test -z "$INSTALL"; then
19534 if test "${ac_cv_path_install+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19539 do
19540   IFS=$as_save_IFS
19541   test -z "$as_dir" && as_dir=.
19542   # Account for people who put trailing slashes in PATH elements.
19543 case $as_dir/ in
19544   ./ | .// | /cC/* | \
19545   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19546   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19547   /usr/ucb/* ) ;;
19548   *)
19549     # OSF1 and SCO ODT 3.0 have their own names for install.
19550     # Don't use installbsd from OSF since it installs stuff as root
19551     # by default.
19552     for ac_prog in ginstall scoinst install; do
19553       for ac_exec_ext in '' $ac_executable_extensions; do
19554         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19555           if test $ac_prog = install &&
19556             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19557             # AIX install.  It has an incompatible calling convention.
19558             :
19559           elif test $ac_prog = install &&
19560             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19561             # program-specific install script used by HP pwplus--don't use.
19562             :
19563           else
19564             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19565             break 3
19566           fi
19567         fi
19568       done
19569     done
19570     ;;
19571 esac
19572 done
19573 IFS=$as_save_IFS
19574
19575
19576 fi
19577   if test "${ac_cv_path_install+set}" = set; then
19578     INSTALL=$ac_cv_path_install
19579   else
19580     # As a last resort, use the slow shell script.  Don't cache a
19581     # value for INSTALL within a source directory, because that will
19582     # break other packages using the cache if that directory is
19583     # removed, or if the value is a relative name.
19584     INSTALL=$ac_install_sh
19585   fi
19586 fi
19587 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19588 echo "${ECHO_T}$INSTALL" >&6; }
19589
19590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19591 # It thinks the first close brace ends the variable substitution.
19592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19593
19594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19595
19596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19597
19598
19599 # Checks for libraries.
19600
19601 # Checks for header files.
19602 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19603 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19604 if test "${ac_cv_header_stdc+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <stdlib.h>
19614 #include <stdarg.h>
19615 #include <string.h>
19616 #include <float.h>
19617
19618 int
19619 main ()
19620 {
19621
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } && {
19640          test -z "$ac_c_werror_flag" ||
19641          test ! -s conftest.err
19642        } && test -s conftest.$ac_objext; then
19643   ac_cv_header_stdc=yes
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648         ac_cv_header_stdc=no
19649 fi
19650
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652
19653 if test $ac_cv_header_stdc = yes; then
19654   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19655   cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h.  */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h.  */
19661 #include <string.h>
19662
19663 _ACEOF
19664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19665   $EGREP "memchr" >/dev/null 2>&1; then
19666   :
19667 else
19668   ac_cv_header_stdc=no
19669 fi
19670 rm -f conftest*
19671
19672 fi
19673
19674 if test $ac_cv_header_stdc = yes; then
19675   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19676   cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682 #include <stdlib.h>
19683
19684 _ACEOF
19685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19686   $EGREP "free" >/dev/null 2>&1; then
19687   :
19688 else
19689   ac_cv_header_stdc=no
19690 fi
19691 rm -f conftest*
19692
19693 fi
19694
19695 if test $ac_cv_header_stdc = yes; then
19696   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19697   if test "$cross_compiling" = yes; then
19698   :
19699 else
19700   cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706 #include <ctype.h>
19707 #include <stdlib.h>
19708 #if ((' ' & 0x0FF) == 0x020)
19709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19711 #else
19712 # define ISLOWER(c) \
19713                    (('a' <= (c) && (c) <= 'i') \
19714                      || ('j' <= (c) && (c) <= 'r') \
19715                      || ('s' <= (c) && (c) <= 'z'))
19716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19717 #endif
19718
19719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19720 int
19721 main ()
19722 {
19723   int i;
19724   for (i = 0; i < 256; i++)
19725     if (XOR (islower (i), ISLOWER (i))
19726         || toupper (i) != TOUPPER (i))
19727       return 2;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_link") 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19742   { (case "(($ac_try" in
19743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744   *) ac_try_echo=$ac_try;;
19745 esac
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747   (eval "$ac_try") 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   :
19752 else
19753   echo "$as_me: program exited with status $ac_status" >&5
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ( exit $ac_status )
19758 ac_cv_header_stdc=no
19759 fi
19760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19761 fi
19762
19763
19764 fi
19765 fi
19766 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19767 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19768 if test $ac_cv_header_stdc = yes; then
19769
19770 cat >>confdefs.h <<\_ACEOF
19771 #define STDC_HEADERS 1
19772 _ACEOF
19773
19774 fi
19775
19776
19777
19778 for ac_header in stdlib.h string.h
19779 do
19780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19782   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 fi
19787 ac_res=`eval echo '${'$as_ac_Header'}'`
19788                { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19790 else
19791   # Is the header compilable?
19792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 $ac_includes_default
19801 #include <$ac_header>
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19811   ac_status=$?
19812   grep -v '^ *+' conftest.er1 >conftest.err
19813   rm -f conftest.er1
19814   cat conftest.err >&5
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } && {
19817          test -z "$ac_c_werror_flag" ||
19818          test ! -s conftest.err
19819        } && test -s conftest.$ac_objext; then
19820   ac_header_compiler=yes
19821 else
19822   echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825         ac_header_compiler=no
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19830 echo "${ECHO_T}$ac_header_compiler" >&6; }
19831
19832 # Is the header present?
19833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <$ac_header>
19842 _ACEOF
19843 if { (ac_try="$ac_cpp conftest.$ac_ext"
19844 case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } >/dev/null && {
19856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19857          test ! -s conftest.err
19858        }; then
19859   ac_header_preproc=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864   ac_header_preproc=no
19865 fi
19866
19867 rm -f conftest.err conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19869 echo "${ECHO_T}$ac_header_preproc" >&6; }
19870
19871 # So?  What about this header?
19872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873   yes:no: )
19874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19878     ac_header_preproc=yes
19879     ;;
19880   no:yes:* )
19881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19893     ( cat <<\_ASBOX
19894 ## ----------------------------------------------- ##
19895 ## Report this to http://kldp.net/projects/hangul/ ##
19896 ## ----------------------------------------------- ##
19897 _ASBOX
19898      ) | sed "s/^/$as_me: WARNING:     /" >&2
19899     ;;
19900 esac
19901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 else
19906   eval "$as_ac_Header=\$ac_header_preproc"
19907 fi
19908 ac_res=`eval echo '${'$as_ac_Header'}'`
19909                { echo "$as_me:$LINENO: result: $ac_res" >&5
19910 echo "${ECHO_T}$ac_res" >&6; }
19911
19912 fi
19913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914   cat >>confdefs.h <<_ACEOF
19915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19916 _ACEOF
19917
19918 fi
19919
19920 done
19921
19922
19923 # Checks for typedefs, structures, and compiler characteristics.
19924 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19925 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19926 if test "${ac_cv_header_stdbool_h+set}" = set; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929   cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935
19936 #include <stdbool.h>
19937 #ifndef bool
19938  "error: bool is not defined"
19939 #endif
19940 #ifndef false
19941  "error: false is not defined"
19942 #endif
19943 #if false
19944  "error: false is not 0"
19945 #endif
19946 #ifndef true
19947  "error: true is not defined"
19948 #endif
19949 #if true != 1
19950  "error: true is not 1"
19951 #endif
19952 #ifndef __bool_true_false_are_defined
19953  "error: __bool_true_false_are_defined is not defined"
19954 #endif
19955
19956         struct s { _Bool s: 1; _Bool t; } s;
19957
19958         char a[true == 1 ? 1 : -1];
19959         char b[false == 0 ? 1 : -1];
19960         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19961         char d[(bool) 0.5 == true ? 1 : -1];
19962         bool e = &s;
19963         char f[(_Bool) 0.0 == false ? 1 : -1];
19964         char g[true];
19965         char h[sizeof (_Bool)];
19966         char i[sizeof s.t];
19967         enum { j = false, k = true, l = false * true, m = true * 256 };
19968         _Bool n[m];
19969         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19970         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19971 #       if defined __xlc__ || defined __GNUC__
19972          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19973             reported by James Lemley on 2005-10-05; see
19974             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19975             This test is not quite right, since xlc is allowed to
19976             reject this program, as the initializer for xlcbug is
19977             not one of the forms that C requires support for.
19978             However, doing the test right would require a runtime
19979             test, and that would make cross-compilation harder.
19980             Let us hope that IBM fixes the xlc bug, and also adds
19981             support for this kind of constant expression.  In the
19982             meantime, this test will reject xlc, which is OK, since
19983             our stdbool.h substitute should suffice.  We also test
19984             this with GCC, where it should work, to detect more
19985             quickly whether someone messes up the test in the
19986             future.  */
19987          char digs[] = "0123456789";
19988          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19989 #       endif
19990         /* Catch a bug in an HP-UX C compiler.  See
19991            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19992            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19993          */
19994         _Bool q = true;
19995         _Bool *pq = &q;
19996
19997 int
19998 main ()
19999 {
20000
20001         *pq |= q;
20002         *pq |= ! q;
20003         /* Refer to every declared value, to avoid compiler optimizations.  */
20004         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20005                 + !m + !n + !o + !p + !q + !pq);
20006
20007   ;
20008   return 0;
20009 }
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_compile") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } && {
20025          test -z "$ac_c_werror_flag" ||
20026          test ! -s conftest.err
20027        } && test -s conftest.$ac_objext; then
20028   ac_cv_header_stdbool_h=yes
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         ac_cv_header_stdbool_h=no
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20039 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20040 { echo "$as_me:$LINENO: checking for _Bool" >&5
20041 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20042 if test "${ac_cv_type__Bool+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 $ac_includes_default
20052 typedef _Bool ac__type_new_;
20053 int
20054 main ()
20055 {
20056 if ((ac__type_new_ *) 0)
20057   return 0;
20058 if (sizeof (ac__type_new_))
20059   return 0;
20060   ;
20061   return 0;
20062 }
20063 _ACEOF
20064 rm -f conftest.$ac_objext
20065 if { (ac_try="$ac_compile"
20066 case "(($ac_try" in
20067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068   *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071   (eval "$ac_compile") 2>conftest.er1
20072   ac_status=$?
20073   grep -v '^ *+' conftest.er1 >conftest.err
20074   rm -f conftest.er1
20075   cat conftest.err >&5
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } && {
20078          test -z "$ac_c_werror_flag" ||
20079          test ! -s conftest.err
20080        } && test -s conftest.$ac_objext; then
20081   ac_cv_type__Bool=yes
20082 else
20083   echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086         ac_cv_type__Bool=no
20087 fi
20088
20089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20090 fi
20091 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20092 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20093 if test $ac_cv_type__Bool = yes; then
20094
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE__BOOL 1
20097 _ACEOF
20098
20099
20100 fi
20101
20102 if test $ac_cv_header_stdbool_h = yes; then
20103
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_STDBOOL_H 1
20106 _ACEOF
20107
20108 fi
20109
20110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20112 if test "${ac_cv_c_bigendian+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   # See if sys/param.h defines the BYTE_ORDER macro.
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 #include <sys/types.h>
20123 #include <sys/param.h>
20124
20125 int
20126 main ()
20127 {
20128 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20129         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20130  bogus endian macros
20131 #endif
20132
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_compile") 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } && {
20151          test -z "$ac_c_werror_flag" ||
20152          test ! -s conftest.err
20153        } && test -s conftest.$ac_objext; then
20154   # It does; now see whether it defined to BIG_ENDIAN or not.
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161 #include <sys/types.h>
20162 #include <sys/param.h>
20163
20164 int
20165 main ()
20166 {
20167 #if BYTE_ORDER != BIG_ENDIAN
20168  not big endian
20169 #endif
20170
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_compile") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } && {
20189          test -z "$ac_c_werror_flag" ||
20190          test ! -s conftest.err
20191        } && test -s conftest.$ac_objext; then
20192   ac_cv_c_bigendian=yes
20193 else
20194   echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197         ac_cv_c_bigendian=no
20198 fi
20199
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205         # It does not; compile a test program.
20206 if test "$cross_compiling" = yes; then
20207   # try to guess the endianness by grepping values into an object file
20208   ac_cv_c_bigendian=unknown
20209   cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20221 int
20222 main ()
20223 {
20224  _ascii (); _ebcdic ();
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext
20230 if { (ac_try="$ac_compile"
20231 case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_compile") 2>conftest.er1
20237   ac_status=$?
20238   grep -v '^ *+' conftest.er1 >conftest.err
20239   rm -f conftest.er1
20240   cat conftest.err >&5
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } && {
20243          test -z "$ac_c_werror_flag" ||
20244          test ! -s conftest.err
20245        } && test -s conftest.$ac_objext; then
20246   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20247   ac_cv_c_bigendian=yes
20248 fi
20249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20250   if test "$ac_cv_c_bigendian" = unknown; then
20251     ac_cv_c_bigendian=no
20252   else
20253     # finding both strings is unlikely to happen, but who knows?
20254     ac_cv_c_bigendian=unknown
20255   fi
20256 fi
20257 else
20258   echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261
20262 fi
20263
20264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265 else
20266   cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h.  */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h.  */
20272 $ac_includes_default
20273 int
20274 main ()
20275 {
20276
20277   /* Are we little or big endian?  From Harbison&Steele.  */
20278   union
20279   {
20280     long int l;
20281     char c[sizeof (long int)];
20282   } u;
20283   u.l = 1;
20284   return u.c[sizeof (long int) - 1] == 1;
20285
20286   ;
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_link") 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301   { (case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_try") 2>&5
20307   ac_status=$?
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); }; }; then
20310   ac_cv_c_bigendian=no
20311 else
20312   echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ( exit $ac_status )
20317 ac_cv_c_bigendian=yes
20318 fi
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20320 fi
20321
20322
20323 fi
20324
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326 fi
20327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20329 case $ac_cv_c_bigendian in
20330   yes)
20331
20332 cat >>confdefs.h <<\_ACEOF
20333 #define WORDS_BIGENDIAN 1
20334 _ACEOF
20335  ;;
20336   no)
20337      ;;
20338   *)
20339     { { echo "$as_me:$LINENO: error: unknown endianness
20340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20341 echo "$as_me: error: unknown endianness
20342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20343    { (exit 1); exit 1; }; } ;;
20344 esac
20345
20346 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20347 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20348 if test "${ac_cv_c_const+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357
20358 int
20359 main ()
20360 {
20361 /* FIXME: Include the comments suggested by Paul. */
20362 #ifndef __cplusplus
20363   /* Ultrix mips cc rejects this.  */
20364   typedef int charset[2];
20365   const charset cs;
20366   /* SunOS 4.1.1 cc rejects this.  */
20367   char const *const *pcpcc;
20368   char **ppc;
20369   /* NEC SVR4.0.2 mips cc rejects this.  */
20370   struct point {int x, y;};
20371   static struct point const zero = {0,0};
20372   /* AIX XL C 1.02.0.0 rejects this.
20373      It does not let you subtract one const X* pointer from another in
20374      an arm of an if-expression whose if-part is not a constant
20375      expression */
20376   const char *g = "string";
20377   pcpcc = &g + (g ? g-g : 0);
20378   /* HPUX 7.0 cc rejects these. */
20379   ++pcpcc;
20380   ppc = (char**) pcpcc;
20381   pcpcc = (char const *const *) ppc;
20382   { /* SCO 3.2v4 cc rejects this.  */
20383     char *t;
20384     char const *s = 0 ? (char *) 0 : (char const *) 0;
20385
20386     *t++ = 0;
20387     if (s) return 0;
20388   }
20389   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20390     int x[] = {25, 17};
20391     const int *foo = &x[0];
20392     ++foo;
20393   }
20394   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20395     typedef const int *iptr;
20396     iptr p = 0;
20397     ++p;
20398   }
20399   { /* AIX XL C 1.02.0.0 rejects this saying
20400        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20401     struct s { int j; const int *ap[3]; };
20402     struct s *b; b->j = 5;
20403   }
20404   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20405     const int foo = 10;
20406     if (!foo) return 0;
20407   }
20408   return !cs[0] && !zero.x;
20409 #endif
20410
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_compile") 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } && {
20429          test -z "$ac_c_werror_flag" ||
20430          test ! -s conftest.err
20431        } && test -s conftest.$ac_objext; then
20432   ac_cv_c_const=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437         ac_cv_c_const=no
20438 fi
20439
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 fi
20442 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20443 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20444 if test $ac_cv_c_const = no; then
20445
20446 cat >>confdefs.h <<\_ACEOF
20447 #define const
20448 _ACEOF
20449
20450 fi
20451
20452 { echo "$as_me:$LINENO: checking for inline" >&5
20453 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20454 if test "${ac_cv_c_inline+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   ac_cv_c_inline=no
20458 for ac_kw in inline __inline__ __inline; do
20459   cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 #ifndef __cplusplus
20466 typedef int foo_t;
20467 static $ac_kw foo_t static_foo () {return 0; }
20468 $ac_kw foo_t foo () {return 0; }
20469 #endif
20470
20471 _ACEOF
20472 rm -f conftest.$ac_objext
20473 if { (ac_try="$ac_compile"
20474 case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_compile") 2>conftest.er1
20480   ac_status=$?
20481   grep -v '^ *+' conftest.er1 >conftest.err
20482   rm -f conftest.er1
20483   cat conftest.err >&5
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } && {
20486          test -z "$ac_c_werror_flag" ||
20487          test ! -s conftest.err
20488        } && test -s conftest.$ac_objext; then
20489   ac_cv_c_inline=$ac_kw
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494
20495 fi
20496
20497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20498   test "$ac_cv_c_inline" != no && break
20499 done
20500
20501 fi
20502 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20503 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20504
20505
20506 case $ac_cv_c_inline in
20507   inline | yes) ;;
20508   *)
20509     case $ac_cv_c_inline in
20510       no) ac_val=;;
20511       *) ac_val=$ac_cv_c_inline;;
20512     esac
20513     cat >>confdefs.h <<_ACEOF
20514 #ifndef __cplusplus
20515 #define inline $ac_val
20516 #endif
20517 _ACEOF
20518     ;;
20519 esac
20520
20521
20522   { echo "$as_me:$LINENO: checking for uint32_t" >&5
20523 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20524 if test "${ac_cv_c_uint32_t+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   ac_cv_c_uint32_t=no
20528      for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
20529          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
20530        cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536 $ac_includes_default
20537 int
20538 main ()
20539 {
20540 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
20541 test_array [0] = 0
20542
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (ac_try="$ac_compile"
20549 case "(($ac_try" in
20550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551   *) ac_try_echo=$ac_try;;
20552 esac
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554   (eval "$ac_compile") 2>conftest.er1
20555   ac_status=$?
20556   grep -v '^ *+' conftest.er1 >conftest.err
20557   rm -f conftest.er1
20558   cat conftest.err >&5
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } && {
20561          test -z "$ac_c_werror_flag" ||
20562          test ! -s conftest.err
20563        } && test -s conftest.$ac_objext; then
20564   case $ac_type in
20565   uint32_t) ac_cv_c_uint32_t=yes ;;
20566   *) ac_cv_c_uint32_t=$ac_type ;;
20567 esac
20568
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577        test "$ac_cv_c_uint32_t" != no && break
20578      done
20579 fi
20580 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
20581 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
20582   case $ac_cv_c_uint32_t in #(
20583   no|yes) ;; #(
20584   *)
20585
20586 cat >>confdefs.h <<\_ACEOF
20587 #define _UINT32_T 1
20588 _ACEOF
20589
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define uint32_t $ac_cv_c_uint32_t
20593 _ACEOF
20594 ;;
20595   esac
20596
20597
20598 # Checks for library functions.
20599 ac_config_files="$ac_config_files Makefile hangul/Makefile data/Makefile data/hanja/Makefile bindings/Makefile test/Makefile libhangul.pc"
20600
20601
20602 cat >confcache <<\_ACEOF
20603 # This file is a shell script that caches the results of configure
20604 # tests run on this system so they can be shared between configure
20605 # scripts and configure runs, see configure's option --config-cache.
20606 # It is not useful on other systems.  If it contains results you don't
20607 # want to keep, you may remove or edit it.
20608 #
20609 # config.status only pays attention to the cache file if you give it
20610 # the --recheck option to rerun configure.
20611 #
20612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20614 # following values.
20615
20616 _ACEOF
20617
20618 # The following way of writing the cache mishandles newlines in values,
20619 # but we know of no workaround that is simple, portable, and efficient.
20620 # So, we kill variables containing newlines.
20621 # Ultrix sh set writes to stderr and can't be redirected directly,
20622 # and sets the high bit in the cache file unless we assign to the vars.
20623 (
20624   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20625     eval ac_val=\$$ac_var
20626     case $ac_val in #(
20627     *${as_nl}*)
20628       case $ac_var in #(
20629       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20630 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20631       esac
20632       case $ac_var in #(
20633       _ | IFS | as_nl) ;; #(
20634       *) $as_unset $ac_var ;;
20635       esac ;;
20636     esac
20637   done
20638
20639   (set) 2>&1 |
20640     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20641     *${as_nl}ac_space=\ *)
20642       # `set' does not quote correctly, so add quotes (double-quote
20643       # substitution turns \\\\ into \\, and sed turns \\ into \).
20644       sed -n \
20645         "s/'/'\\\\''/g;
20646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20647       ;; #(
20648     *)
20649       # `set' quotes correctly as required by POSIX, so do not add quotes.
20650       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20651       ;;
20652     esac |
20653     sort
20654 ) |
20655   sed '
20656      /^ac_cv_env_/b end
20657      t clear
20658      :clear
20659      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20660      t end
20661      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20662      :end' >>confcache
20663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20664   if test -w "$cache_file"; then
20665     test "x$cache_file" != "x/dev/null" &&
20666       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20667 echo "$as_me: updating cache $cache_file" >&6;}
20668     cat confcache >$cache_file
20669   else
20670     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20671 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20672   fi
20673 fi
20674 rm -f confcache
20675
20676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20677 # Let make expand exec_prefix.
20678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20679
20680 DEFS=-DHAVE_CONFIG_H
20681
20682 ac_libobjs=
20683 ac_ltlibobjs=
20684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20685   # 1. Remove the extension, and $U if already installed.
20686   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20687   ac_i=`echo "$ac_i" | sed "$ac_script"`
20688   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20689   #    will be set to the directory where LIBOBJS objects are built.
20690   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20691   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20692 done
20693 LIBOBJS=$ac_libobjs
20694
20695 LTLIBOBJS=$ac_ltlibobjs
20696
20697
20698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20699   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20700 Usually this means the macro was only invoked conditionally." >&5
20701 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20702 Usually this means the macro was only invoked conditionally." >&2;}
20703    { (exit 1); exit 1; }; }
20704 fi
20705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20706   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20707 Usually this means the macro was only invoked conditionally." >&5
20708 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20709 Usually this means the macro was only invoked conditionally." >&2;}
20710    { (exit 1); exit 1; }; }
20711 fi
20712 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20713   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20714 Usually this means the macro was only invoked conditionally." >&5
20715 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20716 Usually this means the macro was only invoked conditionally." >&2;}
20717    { (exit 1); exit 1; }; }
20718 fi
20719
20720 : ${CONFIG_STATUS=./config.status}
20721 ac_clean_files_save=$ac_clean_files
20722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20723 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20724 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20725 cat >$CONFIG_STATUS <<_ACEOF
20726 #! $SHELL
20727 # Generated by $as_me.
20728 # Run this file to recreate the current configuration.
20729 # Compiler output produced by configure, useful for debugging
20730 # configure, is in config.log if it exists.
20731
20732 debug=false
20733 ac_cs_recheck=false
20734 ac_cs_silent=false
20735 SHELL=\${CONFIG_SHELL-$SHELL}
20736 _ACEOF
20737
20738 cat >>$CONFIG_STATUS <<\_ACEOF
20739 ## --------------------- ##
20740 ## M4sh Initialization.  ##
20741 ## --------------------- ##
20742
20743 # Be more Bourne compatible
20744 DUALCASE=1; export DUALCASE # for MKS sh
20745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20746   emulate sh
20747   NULLCMD=:
20748   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20749   # is contrary to our usage.  Disable this feature.
20750   alias -g '${1+"$@"}'='"$@"'
20751   setopt NO_GLOB_SUBST
20752 else
20753   case `(set -o) 2>/dev/null` in
20754   *posix*) set -o posix ;;
20755 esac
20756
20757 fi
20758
20759
20760
20761
20762 # PATH needs CR
20763 # Avoid depending upon Character Ranges.
20764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20767 as_cr_digits='0123456789'
20768 as_cr_alnum=$as_cr_Letters$as_cr_digits
20769
20770 # The user is always right.
20771 if test "${PATH_SEPARATOR+set}" != set; then
20772   echo "#! /bin/sh" >conf$$.sh
20773   echo  "exit 0"   >>conf$$.sh
20774   chmod +x conf$$.sh
20775   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20776     PATH_SEPARATOR=';'
20777   else
20778     PATH_SEPARATOR=:
20779   fi
20780   rm -f conf$$.sh
20781 fi
20782
20783 # Support unset when possible.
20784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20785   as_unset=unset
20786 else
20787   as_unset=false
20788 fi
20789
20790
20791 # IFS
20792 # We need space, tab and new line, in precisely that order.  Quoting is
20793 # there to prevent editors from complaining about space-tab.
20794 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20795 # splitting by setting IFS to empty value.)
20796 as_nl='
20797 '
20798 IFS=" ""        $as_nl"
20799
20800 # Find who we are.  Look in the path if we contain no directory separator.
20801 case $0 in
20802   *[\\/]* ) as_myself=$0 ;;
20803   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20804 for as_dir in $PATH
20805 do
20806   IFS=$as_save_IFS
20807   test -z "$as_dir" && as_dir=.
20808   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20809 done
20810 IFS=$as_save_IFS
20811
20812      ;;
20813 esac
20814 # We did not find ourselves, most probably we were run as `sh COMMAND'
20815 # in which case we are not to be found in the path.
20816 if test "x$as_myself" = x; then
20817   as_myself=$0
20818 fi
20819 if test ! -f "$as_myself"; then
20820   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20821   { (exit 1); exit 1; }
20822 fi
20823
20824 # Work around bugs in pre-3.0 UWIN ksh.
20825 for as_var in ENV MAIL MAILPATH
20826 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20827 done
20828 PS1='$ '
20829 PS2='> '
20830 PS4='+ '
20831
20832 # NLS nuisances.
20833 for as_var in \
20834   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20835   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20836   LC_TELEPHONE LC_TIME
20837 do
20838   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20839     eval $as_var=C; export $as_var
20840   else
20841     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20842   fi
20843 done
20844
20845 # Required to use basename.
20846 if expr a : '\(a\)' >/dev/null 2>&1 &&
20847    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20848   as_expr=expr
20849 else
20850   as_expr=false
20851 fi
20852
20853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20854   as_basename=basename
20855 else
20856   as_basename=false
20857 fi
20858
20859
20860 # Name of the executable.
20861 as_me=`$as_basename -- "$0" ||
20862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20863          X"$0" : 'X\(//\)$' \| \
20864          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20865 echo X/"$0" |
20866     sed '/^.*\/\([^/][^/]*\)\/*$/{
20867             s//\1/
20868             q
20869           }
20870           /^X\/\(\/\/\)$/{
20871             s//\1/
20872             q
20873           }
20874           /^X\/\(\/\).*/{
20875             s//\1/
20876             q
20877           }
20878           s/.*/./; q'`
20879
20880 # CDPATH.
20881 $as_unset CDPATH
20882
20883
20884
20885   as_lineno_1=$LINENO
20886   as_lineno_2=$LINENO
20887   test "x$as_lineno_1" != "x$as_lineno_2" &&
20888   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20889
20890   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20891   # uniformly replaced by the line number.  The first 'sed' inserts a
20892   # line-number line after each line using $LINENO; the second 'sed'
20893   # does the real work.  The second script uses 'N' to pair each
20894   # line-number line with the line containing $LINENO, and appends
20895   # trailing '-' during substitution so that $LINENO is not a special
20896   # case at line end.
20897   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20898   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20899   # E. McMahon (1931-1989) for sed's syntax.  :-)
20900   sed -n '
20901     p
20902     /[$]LINENO/=
20903   ' <$as_myself |
20904     sed '
20905       s/[$]LINENO.*/&-/
20906       t lineno
20907       b
20908       :lineno
20909       N
20910       :loop
20911       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20912       t loop
20913       s/-\n.*//
20914     ' >$as_me.lineno &&
20915   chmod +x "$as_me.lineno" ||
20916     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20917    { (exit 1); exit 1; }; }
20918
20919   # Don't try to exec as it changes $[0], causing all sort of problems
20920   # (the dirname of $[0] is not the place where we might find the
20921   # original and so on.  Autoconf is especially sensitive to this).
20922   . "./$as_me.lineno"
20923   # Exit status is that of the last command.
20924   exit
20925 }
20926
20927
20928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20929   as_dirname=dirname
20930 else
20931   as_dirname=false
20932 fi
20933
20934 ECHO_C= ECHO_N= ECHO_T=
20935 case `echo -n x` in
20936 -n*)
20937   case `echo 'x\c'` in
20938   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20939   *)   ECHO_C='\c';;
20940   esac;;
20941 *)
20942   ECHO_N='-n';;
20943 esac
20944
20945 if expr a : '\(a\)' >/dev/null 2>&1 &&
20946    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20947   as_expr=expr
20948 else
20949   as_expr=false
20950 fi
20951
20952 rm -f conf$$ conf$$.exe conf$$.file
20953 if test -d conf$$.dir; then
20954   rm -f conf$$.dir/conf$$.file
20955 else
20956   rm -f conf$$.dir
20957   mkdir conf$$.dir
20958 fi
20959 echo >conf$$.file
20960 if ln -s conf$$.file conf$$ 2>/dev/null; then
20961   as_ln_s='ln -s'
20962   # ... but there are two gotchas:
20963   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20964   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20965   # In both cases, we have to default to `cp -p'.
20966   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20967     as_ln_s='cp -p'
20968 elif ln conf$$.file conf$$ 2>/dev/null; then
20969   as_ln_s=ln
20970 else
20971   as_ln_s='cp -p'
20972 fi
20973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20974 rmdir conf$$.dir 2>/dev/null
20975
20976 if mkdir -p . 2>/dev/null; then
20977   as_mkdir_p=:
20978 else
20979   test -d ./-p && rmdir ./-p
20980   as_mkdir_p=false
20981 fi
20982
20983 if test -x / >/dev/null 2>&1; then
20984   as_test_x='test -x'
20985 else
20986   if ls -dL / >/dev/null 2>&1; then
20987     as_ls_L_option=L
20988   else
20989     as_ls_L_option=
20990   fi
20991   as_test_x='
20992     eval sh -c '\''
20993       if test -d "$1"; then
20994         test -d "$1/.";
20995       else
20996         case $1 in
20997         -*)set "./$1";;
20998         esac;
20999         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21000         ???[sx]*):;;*)false;;esac;fi
21001     '\'' sh
21002   '
21003 fi
21004 as_executable_p=$as_test_x
21005
21006 # Sed expression to map a string onto a valid CPP name.
21007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21008
21009 # Sed expression to map a string onto a valid variable name.
21010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21011
21012
21013 exec 6>&1
21014
21015 # Save the log message, to keep $[0] and so on meaningful, and to
21016 # report actual input values of CONFIG_FILES etc. instead of their
21017 # values after options handling.
21018 ac_log="
21019 This file was extended by libhangul $as_me 0.0.7, which was
21020 generated by GNU Autoconf 2.61.  Invocation command line was
21021
21022   CONFIG_FILES    = $CONFIG_FILES
21023   CONFIG_HEADERS  = $CONFIG_HEADERS
21024   CONFIG_LINKS    = $CONFIG_LINKS
21025   CONFIG_COMMANDS = $CONFIG_COMMANDS
21026   $ $0 $@
21027
21028 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21029 "
21030
21031 _ACEOF
21032
21033 cat >>$CONFIG_STATUS <<_ACEOF
21034 # Files that config.status was made for.
21035 config_files="$ac_config_files"
21036 config_headers="$ac_config_headers"
21037 config_commands="$ac_config_commands"
21038
21039 _ACEOF
21040
21041 cat >>$CONFIG_STATUS <<\_ACEOF
21042 ac_cs_usage="\
21043 \`$as_me' instantiates files from templates according to the
21044 current configuration.
21045
21046 Usage: $0 [OPTIONS] [FILE]...
21047
21048   -h, --help       print this help, then exit
21049   -V, --version    print version number and configuration settings, then exit
21050   -q, --quiet      do not print progress messages
21051   -d, --debug      don't remove temporary files
21052       --recheck    update $as_me by reconfiguring in the same conditions
21053   --file=FILE[:TEMPLATE]
21054                    instantiate the configuration file FILE
21055   --header=FILE[:TEMPLATE]
21056                    instantiate the configuration header FILE
21057
21058 Configuration files:
21059 $config_files
21060
21061 Configuration headers:
21062 $config_headers
21063
21064 Configuration commands:
21065 $config_commands
21066
21067 Report bugs to <bug-autoconf@gnu.org>."
21068
21069 _ACEOF
21070 cat >>$CONFIG_STATUS <<_ACEOF
21071 ac_cs_version="\\
21072 libhangul config.status 0.0.7
21073 configured by $0, generated by GNU Autoconf 2.61,
21074   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21075
21076 Copyright (C) 2006 Free Software Foundation, Inc.
21077 This config.status script is free software; the Free Software Foundation
21078 gives unlimited permission to copy, distribute and modify it."
21079
21080 ac_pwd='$ac_pwd'
21081 srcdir='$srcdir'
21082 INSTALL='$INSTALL'
21083 MKDIR_P='$MKDIR_P'
21084 _ACEOF
21085
21086 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # If no file are specified by the user, then we need to provide default
21088 # value.  By we need to know if files were specified by the user.
21089 ac_need_defaults=:
21090 while test $# != 0
21091 do
21092   case $1 in
21093   --*=*)
21094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21095     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21096     ac_shift=:
21097     ;;
21098   *)
21099     ac_option=$1
21100     ac_optarg=$2
21101     ac_shift=shift
21102     ;;
21103   esac
21104
21105   case $ac_option in
21106   # Handling of the options.
21107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21108     ac_cs_recheck=: ;;
21109   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21110     echo "$ac_cs_version"; exit ;;
21111   --debug | --debu | --deb | --de | --d | -d )
21112     debug=: ;;
21113   --file | --fil | --fi | --f )
21114     $ac_shift
21115     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21116     ac_need_defaults=false;;
21117   --header | --heade | --head | --hea )
21118     $ac_shift
21119     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21120     ac_need_defaults=false;;
21121   --he | --h)
21122     # Conflict between --help and --header
21123     { echo "$as_me: error: ambiguous option: $1
21124 Try \`$0 --help' for more information." >&2
21125    { (exit 1); exit 1; }; };;
21126   --help | --hel | -h )
21127     echo "$ac_cs_usage"; exit ;;
21128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21129   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21130     ac_cs_silent=: ;;
21131
21132   # This is an error.
21133   -*) { echo "$as_me: error: unrecognized option: $1
21134 Try \`$0 --help' for more information." >&2
21135    { (exit 1); exit 1; }; } ;;
21136
21137   *) ac_config_targets="$ac_config_targets $1"
21138      ac_need_defaults=false ;;
21139
21140   esac
21141   shift
21142 done
21143
21144 ac_configure_extra_args=
21145
21146 if $ac_cs_silent; then
21147   exec 6>/dev/null
21148   ac_configure_extra_args="$ac_configure_extra_args --silent"
21149 fi
21150
21151 _ACEOF
21152 cat >>$CONFIG_STATUS <<_ACEOF
21153 if \$ac_cs_recheck; then
21154   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21155   CONFIG_SHELL=$SHELL
21156   export CONFIG_SHELL
21157   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21158 fi
21159
21160 _ACEOF
21161 cat >>$CONFIG_STATUS <<\_ACEOF
21162 exec 5>>config.log
21163 {
21164   echo
21165   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21166 ## Running $as_me. ##
21167 _ASBOX
21168   echo "$ac_log"
21169 } >&5
21170
21171 _ACEOF
21172 cat >>$CONFIG_STATUS <<_ACEOF
21173 #
21174 # INIT-COMMANDS
21175 #
21176 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21177
21178 _ACEOF
21179
21180 cat >>$CONFIG_STATUS <<\_ACEOF
21181
21182 # Handling of arguments.
21183 for ac_config_target in $ac_config_targets
21184 do
21185   case $ac_config_target in
21186     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21187     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21188     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21189     "hangul/Makefile") CONFIG_FILES="$CONFIG_FILES hangul/Makefile" ;;
21190     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21191     "data/hanja/Makefile") CONFIG_FILES="$CONFIG_FILES data/hanja/Makefile" ;;
21192     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
21193     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21194     "libhangul.pc") CONFIG_FILES="$CONFIG_FILES libhangul.pc" ;;
21195
21196   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21198    { (exit 1); exit 1; }; };;
21199   esac
21200 done
21201
21202
21203 # If the user did not use the arguments to specify the items to instantiate,
21204 # then the envvar interface is used.  Set only those that are not.
21205 # We use the long form for the default assignment because of an extremely
21206 # bizarre bug on SunOS 4.1.3.
21207 if $ac_need_defaults; then
21208   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21209   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21210   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21211 fi
21212
21213 # Have a temporary directory for convenience.  Make it in the build tree
21214 # simply because there is no reason against having it here, and in addition,
21215 # creating and moving files from /tmp can sometimes cause problems.
21216 # Hook for its removal unless debugging.
21217 # Note that there is a small window in which the directory will not be cleaned:
21218 # after its creation but before its name has been assigned to `$tmp'.
21219 $debug ||
21220 {
21221   tmp=
21222   trap 'exit_status=$?
21223   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21224 ' 0
21225   trap '{ (exit 1); exit 1; }' 1 2 13 15
21226 }
21227 # Create a (secure) tmp directory for tmp files.
21228
21229 {
21230   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21231   test -n "$tmp" && test -d "$tmp"
21232 }  ||
21233 {
21234   tmp=./conf$$-$RANDOM
21235   (umask 077 && mkdir "$tmp")
21236 } ||
21237 {
21238    echo "$me: cannot create a temporary directory in ." >&2
21239    { (exit 1); exit 1; }
21240 }
21241
21242 #
21243 # Set up the sed scripts for CONFIG_FILES section.
21244 #
21245
21246 # No need to generate the scripts if there are no CONFIG_FILES.
21247 # This happens for instance when ./config.status config.h
21248 if test -n "$CONFIG_FILES"; then
21249
21250 _ACEOF
21251
21252
21253
21254 ac_delim='%!_!# '
21255 for ac_last_try in false false false false false :; do
21256   cat >conf$$subs.sed <<_ACEOF
21257 SHELL!$SHELL$ac_delim
21258 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21259 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21260 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21261 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21262 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21263 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21264 exec_prefix!$exec_prefix$ac_delim
21265 prefix!$prefix$ac_delim
21266 program_transform_name!$program_transform_name$ac_delim
21267 bindir!$bindir$ac_delim
21268 sbindir!$sbindir$ac_delim
21269 libexecdir!$libexecdir$ac_delim
21270 datarootdir!$datarootdir$ac_delim
21271 datadir!$datadir$ac_delim
21272 sysconfdir!$sysconfdir$ac_delim
21273 sharedstatedir!$sharedstatedir$ac_delim
21274 localstatedir!$localstatedir$ac_delim
21275 includedir!$includedir$ac_delim
21276 oldincludedir!$oldincludedir$ac_delim
21277 docdir!$docdir$ac_delim
21278 infodir!$infodir$ac_delim
21279 htmldir!$htmldir$ac_delim
21280 dvidir!$dvidir$ac_delim
21281 pdfdir!$pdfdir$ac_delim
21282 psdir!$psdir$ac_delim
21283 libdir!$libdir$ac_delim
21284 localedir!$localedir$ac_delim
21285 mandir!$mandir$ac_delim
21286 DEFS!$DEFS$ac_delim
21287 ECHO_C!$ECHO_C$ac_delim
21288 ECHO_N!$ECHO_N$ac_delim
21289 ECHO_T!$ECHO_T$ac_delim
21290 LIBS!$LIBS$ac_delim
21291 build_alias!$build_alias$ac_delim
21292 host_alias!$host_alias$ac_delim
21293 target_alias!$target_alias$ac_delim
21294 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21295 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21296 INSTALL_DATA!$INSTALL_DATA$ac_delim
21297 am__isrc!$am__isrc$ac_delim
21298 CYGPATH_W!$CYGPATH_W$ac_delim
21299 PACKAGE!$PACKAGE$ac_delim
21300 VERSION!$VERSION$ac_delim
21301 ACLOCAL!$ACLOCAL$ac_delim
21302 AUTOCONF!$AUTOCONF$ac_delim
21303 AUTOMAKE!$AUTOMAKE$ac_delim
21304 AUTOHEADER!$AUTOHEADER$ac_delim
21305 MAKEINFO!$MAKEINFO$ac_delim
21306 install_sh!$install_sh$ac_delim
21307 STRIP!$STRIP$ac_delim
21308 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21309 mkdir_p!$mkdir_p$ac_delim
21310 AWK!$AWK$ac_delim
21311 SET_MAKE!$SET_MAKE$ac_delim
21312 am__leading_dot!$am__leading_dot$ac_delim
21313 AMTAR!$AMTAR$ac_delim
21314 am__tar!$am__tar$ac_delim
21315 am__untar!$am__untar$ac_delim
21316 LIBHANGUL_CURRENT!$LIBHANGUL_CURRENT$ac_delim
21317 LIBHANGUL_REVISION!$LIBHANGUL_REVISION$ac_delim
21318 LIBHANGUL_AGE!$LIBHANGUL_AGE$ac_delim
21319 CC!$CC$ac_delim
21320 CFLAGS!$CFLAGS$ac_delim
21321 LDFLAGS!$LDFLAGS$ac_delim
21322 CPPFLAGS!$CPPFLAGS$ac_delim
21323 ac_ct_CC!$ac_ct_CC$ac_delim
21324 EXEEXT!$EXEEXT$ac_delim
21325 OBJEXT!$OBJEXT$ac_delim
21326 DEPDIR!$DEPDIR$ac_delim
21327 am__include!$am__include$ac_delim
21328 am__quote!$am__quote$ac_delim
21329 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21330 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21331 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21332 CCDEPMODE!$CCDEPMODE$ac_delim
21333 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21334 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21335 build!$build$ac_delim
21336 build_cpu!$build_cpu$ac_delim
21337 build_vendor!$build_vendor$ac_delim
21338 build_os!$build_os$ac_delim
21339 host!$host$ac_delim
21340 host_cpu!$host_cpu$ac_delim
21341 host_vendor!$host_vendor$ac_delim
21342 host_os!$host_os$ac_delim
21343 SED!$SED$ac_delim
21344 GREP!$GREP$ac_delim
21345 EGREP!$EGREP$ac_delim
21346 LN_S!$LN_S$ac_delim
21347 ECHO!$ECHO$ac_delim
21348 AR!$AR$ac_delim
21349 RANLIB!$RANLIB$ac_delim
21350 CPP!$CPP$ac_delim
21351 CXX!$CXX$ac_delim
21352 CXXFLAGS!$CXXFLAGS$ac_delim
21353 ac_ct_CXX!$ac_ct_CXX$ac_delim
21354 _ACEOF
21355
21356   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21357     break
21358   elif $ac_last_try; then
21359     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21361    { (exit 1); exit 1; }; }
21362   else
21363     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21364   fi
21365 done
21366
21367 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21368 if test -n "$ac_eof"; then
21369   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21370   ac_eof=`expr $ac_eof + 1`
21371 fi
21372
21373 cat >>$CONFIG_STATUS <<_ACEOF
21374 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21376 _ACEOF
21377 sed '
21378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21379 s/^/s,@/; s/!/@,|#_!!_#|/
21380 :n
21381 t n
21382 s/'"$ac_delim"'$/,g/; t
21383 s/$/\\/; p
21384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21385 ' >>$CONFIG_STATUS <conf$$subs.sed
21386 rm -f conf$$subs.sed
21387 cat >>$CONFIG_STATUS <<_ACEOF
21388 CEOF$ac_eof
21389 _ACEOF
21390
21391
21392 ac_delim='%!_!# '
21393 for ac_last_try in false false false false false :; do
21394   cat >conf$$subs.sed <<_ACEOF
21395 CXXDEPMODE!$CXXDEPMODE$ac_delim
21396 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21397 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21398 CXXCPP!$CXXCPP$ac_delim
21399 F77!$F77$ac_delim
21400 FFLAGS!$FFLAGS$ac_delim
21401 ac_ct_F77!$ac_ct_F77$ac_delim
21402 LIBTOOL!$LIBTOOL$ac_delim
21403 LIBOBJS!$LIBOBJS$ac_delim
21404 LTLIBOBJS!$LTLIBOBJS$ac_delim
21405 _ACEOF
21406
21407   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21408     break
21409   elif $ac_last_try; then
21410     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21412    { (exit 1); exit 1; }; }
21413   else
21414     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21415   fi
21416 done
21417
21418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21419 if test -n "$ac_eof"; then
21420   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21421   ac_eof=`expr $ac_eof + 1`
21422 fi
21423
21424 cat >>$CONFIG_STATUS <<_ACEOF
21425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21427 _ACEOF
21428 sed '
21429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21430 s/^/s,@/; s/!/@,|#_!!_#|/
21431 :n
21432 t n
21433 s/'"$ac_delim"'$/,g/; t
21434 s/$/\\/; p
21435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21436 ' >>$CONFIG_STATUS <conf$$subs.sed
21437 rm -f conf$$subs.sed
21438 cat >>$CONFIG_STATUS <<_ACEOF
21439 :end
21440 s/|#_!!_#|//g
21441 CEOF$ac_eof
21442 _ACEOF
21443
21444
21445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21447 # trailing colons and then remove the whole line if VPATH becomes empty
21448 # (actually we leave an empty line to preserve line numbers).
21449 if test "x$srcdir" = x.; then
21450   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21451 s/:*\$(srcdir):*/:/
21452 s/:*\${srcdir}:*/:/
21453 s/:*@srcdir@:*/:/
21454 s/^\([^=]*=[     ]*\):*/\1/
21455 s/:*$//
21456 s/^[^=]*=[       ]*$//
21457 }'
21458 fi
21459
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 fi # test -n "$CONFIG_FILES"
21462
21463
21464 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21465 do
21466   case $ac_tag in
21467   :[FHLC]) ac_mode=$ac_tag; continue;;
21468   esac
21469   case $ac_mode$ac_tag in
21470   :[FHL]*:*);;
21471   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21473    { (exit 1); exit 1; }; };;
21474   :[FH]-) ac_tag=-:-;;
21475   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21476   esac
21477   ac_save_IFS=$IFS
21478   IFS=:
21479   set x $ac_tag
21480   IFS=$ac_save_IFS
21481   shift
21482   ac_file=$1
21483   shift
21484
21485   case $ac_mode in
21486   :L) ac_source=$1;;
21487   :[FH])
21488     ac_file_inputs=
21489     for ac_f
21490     do
21491       case $ac_f in
21492       -) ac_f="$tmp/stdin";;
21493       *) # Look for the file first in the build tree, then in the source tree
21494          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21495          # because $ac_f cannot contain `:'.
21496          test -f "$ac_f" ||
21497            case $ac_f in
21498            [\\/$]*) false;;
21499            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21500            esac ||
21501            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21503    { (exit 1); exit 1; }; };;
21504       esac
21505       ac_file_inputs="$ac_file_inputs $ac_f"
21506     done
21507
21508     # Let's still pretend it is `configure' which instantiates (i.e., don't
21509     # use $as_me), people would be surprised to read:
21510     #    /* config.h.  Generated by config.status.  */
21511     configure_input="Generated from "`IFS=:
21512           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21513     if test x"$ac_file" != x-; then
21514       configure_input="$ac_file.  $configure_input"
21515       { echo "$as_me:$LINENO: creating $ac_file" >&5
21516 echo "$as_me: creating $ac_file" >&6;}
21517     fi
21518
21519     case $ac_tag in
21520     *:-:* | *:-) cat >"$tmp/stdin";;
21521     esac
21522     ;;
21523   esac
21524
21525   ac_dir=`$as_dirname -- "$ac_file" ||
21526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21527          X"$ac_file" : 'X\(//\)[^/]' \| \
21528          X"$ac_file" : 'X\(//\)$' \| \
21529          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21530 echo X"$ac_file" |
21531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21532             s//\1/
21533             q
21534           }
21535           /^X\(\/\/\)[^/].*/{
21536             s//\1/
21537             q
21538           }
21539           /^X\(\/\/\)$/{
21540             s//\1/
21541             q
21542           }
21543           /^X\(\/\).*/{
21544             s//\1/
21545             q
21546           }
21547           s/.*/./; q'`
21548   { as_dir="$ac_dir"
21549   case $as_dir in #(
21550   -*) as_dir=./$as_dir;;
21551   esac
21552   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21553     as_dirs=
21554     while :; do
21555       case $as_dir in #(
21556       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21557       *) as_qdir=$as_dir;;
21558       esac
21559       as_dirs="'$as_qdir' $as_dirs"
21560       as_dir=`$as_dirname -- "$as_dir" ||
21561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21562          X"$as_dir" : 'X\(//\)[^/]' \| \
21563          X"$as_dir" : 'X\(//\)$' \| \
21564          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21565 echo X"$as_dir" |
21566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21567             s//\1/
21568             q
21569           }
21570           /^X\(\/\/\)[^/].*/{
21571             s//\1/
21572             q
21573           }
21574           /^X\(\/\/\)$/{
21575             s//\1/
21576             q
21577           }
21578           /^X\(\/\).*/{
21579             s//\1/
21580             q
21581           }
21582           s/.*/./; q'`
21583       test -d "$as_dir" && break
21584     done
21585     test -z "$as_dirs" || eval "mkdir $as_dirs"
21586   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21588    { (exit 1); exit 1; }; }; }
21589   ac_builddir=.
21590
21591 case "$ac_dir" in
21592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21593 *)
21594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21595   # A ".." for each directory in $ac_dir_suffix.
21596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21597   case $ac_top_builddir_sub in
21598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21600   esac ;;
21601 esac
21602 ac_abs_top_builddir=$ac_pwd
21603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21604 # for backward compatibility:
21605 ac_top_builddir=$ac_top_build_prefix
21606
21607 case $srcdir in
21608   .)  # We are building in place.
21609     ac_srcdir=.
21610     ac_top_srcdir=$ac_top_builddir_sub
21611     ac_abs_top_srcdir=$ac_pwd ;;
21612   [\\/]* | ?:[\\/]* )  # Absolute name.
21613     ac_srcdir=$srcdir$ac_dir_suffix;
21614     ac_top_srcdir=$srcdir
21615     ac_abs_top_srcdir=$srcdir ;;
21616   *) # Relative name.
21617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21618     ac_top_srcdir=$ac_top_build_prefix$srcdir
21619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21620 esac
21621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21622
21623
21624   case $ac_mode in
21625   :F)
21626   #
21627   # CONFIG_FILE
21628   #
21629
21630   case $INSTALL in
21631   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21632   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21633   esac
21634   ac_MKDIR_P=$MKDIR_P
21635   case $MKDIR_P in
21636   [\\/$]* | ?:[\\/]* ) ;;
21637   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21638   esac
21639 _ACEOF
21640
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 # If the template does not know about datarootdir, expand it.
21643 # FIXME: This hack should be removed a few years after 2.60.
21644 ac_datarootdir_hack=; ac_datarootdir_seen=
21645
21646 case `sed -n '/datarootdir/ {
21647   p
21648   q
21649 }
21650 /@datadir@/p
21651 /@docdir@/p
21652 /@infodir@/p
21653 /@localedir@/p
21654 /@mandir@/p
21655 ' $ac_file_inputs` in
21656 *datarootdir*) ac_datarootdir_seen=yes;;
21657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21658   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21660 _ACEOF
21661 cat >>$CONFIG_STATUS <<_ACEOF
21662   ac_datarootdir_hack='
21663   s&@datadir@&$datadir&g
21664   s&@docdir@&$docdir&g
21665   s&@infodir@&$infodir&g
21666   s&@localedir@&$localedir&g
21667   s&@mandir@&$mandir&g
21668     s&\\\${datarootdir}&$datarootdir&g' ;;
21669 esac
21670 _ACEOF
21671
21672 # Neutralize VPATH when `$srcdir' = `.'.
21673 # Shell code in configure.ac might set extrasub.
21674 # FIXME: do we really want to maintain this feature?
21675 cat >>$CONFIG_STATUS <<_ACEOF
21676   sed "$ac_vpsub
21677 $extrasub
21678 _ACEOF
21679 cat >>$CONFIG_STATUS <<\_ACEOF
21680 :t
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21682 s&@configure_input@&$configure_input&;t t
21683 s&@top_builddir@&$ac_top_builddir_sub&;t t
21684 s&@srcdir@&$ac_srcdir&;t t
21685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21686 s&@top_srcdir@&$ac_top_srcdir&;t t
21687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21688 s&@builddir@&$ac_builddir&;t t
21689 s&@abs_builddir@&$ac_abs_builddir&;t t
21690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21691 s&@INSTALL@&$ac_INSTALL&;t t
21692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21693 $ac_datarootdir_hack
21694 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21695
21696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21697   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21698   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21699   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21700 which seems to be undefined.  Please make sure it is defined." >&5
21701 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21702 which seems to be undefined.  Please make sure it is defined." >&2;}
21703
21704   rm -f "$tmp/stdin"
21705   case $ac_file in
21706   -) cat "$tmp/out"; rm -f "$tmp/out";;
21707   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21708   esac
21709  ;;
21710   :H)
21711   #
21712   # CONFIG_HEADER
21713   #
21714 _ACEOF
21715
21716 # Transform confdefs.h into a sed script `conftest.defines', that
21717 # substitutes the proper values into config.h.in to produce config.h.
21718 rm -f conftest.defines conftest.tail
21719 # First, append a space to every undef/define line, to ease matching.
21720 echo 's/$/ /' >conftest.defines
21721 # Then, protect against being on the right side of a sed subst, or in
21722 # an unquoted here document, in config.status.  If some macros were
21723 # called several times there might be several #defines for the same
21724 # symbol, which is useless.  But do not sort them, since the last
21725 # AC_DEFINE must be honored.
21726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21727 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21728 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21729 # PARAMS is the parameter list in the macro definition--in most cases, it's
21730 # just an empty string.
21731 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21732 ac_dB='\\)[      (].*,\\1define\\2'
21733 ac_dC=' '
21734 ac_dD=' ,'
21735
21736 uniq confdefs.h |
21737   sed -n '
21738         t rset
21739         :rset
21740         s/^[     ]*#[    ]*define[       ][      ]*//
21741         t ok
21742         d
21743         :ok
21744         s/[\\&,]/\\&/g
21745         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21746         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21747   ' >>conftest.defines
21748
21749 # Remove the space that was appended to ease matching.
21750 # Then replace #undef with comments.  This is necessary, for
21751 # example, in the case of _POSIX_SOURCE, which is predefined and required
21752 # on some systems where configure will not decide to define it.
21753 # (The regexp can be short, since the line contains either #define or #undef.)
21754 echo 's/ $//
21755 s,^[     #]*u.*,/* & */,' >>conftest.defines
21756
21757 # Break up conftest.defines:
21758 ac_max_sed_lines=50
21759
21760 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21761 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21762 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21763 # et cetera.
21764 ac_in='$ac_file_inputs'
21765 ac_out='"$tmp/out1"'
21766 ac_nxt='"$tmp/out2"'
21767
21768 while :
21769 do
21770   # Write a here document:
21771     cat >>$CONFIG_STATUS <<_ACEOF
21772     # First, check the format of the line:
21773     cat >"\$tmp/defines.sed" <<\\CEOF
21774 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21775 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21776 b
21777 :def
21778 _ACEOF
21779   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21780   echo 'CEOF
21781     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21782   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21783   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21784   grep . conftest.tail >/dev/null || break
21785   rm -f conftest.defines
21786   mv conftest.tail conftest.defines
21787 done
21788 rm -f conftest.defines conftest.tail
21789
21790 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21792   if test x"$ac_file" != x-; then
21793     echo "/* $configure_input  */" >"$tmp/config.h"
21794     cat "$ac_result" >>"$tmp/config.h"
21795     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21796       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21797 echo "$as_me: $ac_file is unchanged" >&6;}
21798     else
21799       rm -f $ac_file
21800       mv "$tmp/config.h" $ac_file
21801     fi
21802   else
21803     echo "/* $configure_input  */"
21804     cat "$ac_result"
21805   fi
21806   rm -f "$tmp/out12"
21807 # Compute $ac_file's index in $config_headers.
21808 _am_stamp_count=1
21809 for _am_header in $config_headers :; do
21810   case $_am_header in
21811     $ac_file | $ac_file:* )
21812       break ;;
21813     * )
21814       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21815   esac
21816 done
21817 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21818 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21819          X$ac_file : 'X\(//\)[^/]' \| \
21820          X$ac_file : 'X\(//\)$' \| \
21821          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21822 echo X$ac_file |
21823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21824             s//\1/
21825             q
21826           }
21827           /^X\(\/\/\)[^/].*/{
21828             s//\1/
21829             q
21830           }
21831           /^X\(\/\/\)$/{
21832             s//\1/
21833             q
21834           }
21835           /^X\(\/\).*/{
21836             s//\1/
21837             q
21838           }
21839           s/.*/./; q'`/stamp-h$_am_stamp_count
21840  ;;
21841
21842   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21843 echo "$as_me: executing $ac_file commands" >&6;}
21844  ;;
21845   esac
21846
21847
21848   case $ac_file$ac_mode in
21849     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21850   # Strip MF so we end up with the name of the file.
21851   mf=`echo "$mf" | sed -e 's/:.*$//'`
21852   # Check whether this is an Automake generated Makefile or not.
21853   # We used to match only the files named `Makefile.in', but
21854   # some people rename them; so instead we look at the file content.
21855   # Grep'ing the first line is not enough: some people post-process
21856   # each Makefile.in and add a new line on top of each file to say so.
21857   # Grep'ing the whole file is not good either: AIX grep has a line
21858   # limit of 2048, but all sed's we know have understand at least 4000.
21859   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21860     dirpart=`$as_dirname -- "$mf" ||
21861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21862          X"$mf" : 'X\(//\)[^/]' \| \
21863          X"$mf" : 'X\(//\)$' \| \
21864          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21865 echo X"$mf" |
21866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21867             s//\1/
21868             q
21869           }
21870           /^X\(\/\/\)[^/].*/{
21871             s//\1/
21872             q
21873           }
21874           /^X\(\/\/\)$/{
21875             s//\1/
21876             q
21877           }
21878           /^X\(\/\).*/{
21879             s//\1/
21880             q
21881           }
21882           s/.*/./; q'`
21883   else
21884     continue
21885   fi
21886   # Extract the definition of DEPDIR, am__include, and am__quote
21887   # from the Makefile without running `make'.
21888   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21889   test -z "$DEPDIR" && continue
21890   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21891   test -z "am__include" && continue
21892   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21893   # When using ansi2knr, U may be empty or an underscore; expand it
21894   U=`sed -n 's/^U = //p' < "$mf"`
21895   # Find all dependency output files, they are included files with
21896   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21897   # simplest approach to changing $(DEPDIR) to its actual value in the
21898   # expansion.
21899   for file in `sed -n "
21900     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21901        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21902     # Make sure the directory exists.
21903     test -f "$dirpart/$file" && continue
21904     fdir=`$as_dirname -- "$file" ||
21905 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21906          X"$file" : 'X\(//\)[^/]' \| \
21907          X"$file" : 'X\(//\)$' \| \
21908          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21909 echo X"$file" |
21910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21911             s//\1/
21912             q
21913           }
21914           /^X\(\/\/\)[^/].*/{
21915             s//\1/
21916             q
21917           }
21918           /^X\(\/\/\)$/{
21919             s//\1/
21920             q
21921           }
21922           /^X\(\/\).*/{
21923             s//\1/
21924             q
21925           }
21926           s/.*/./; q'`
21927     { as_dir=$dirpart/$fdir
21928   case $as_dir in #(
21929   -*) as_dir=./$as_dir;;
21930   esac
21931   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21932     as_dirs=
21933     while :; do
21934       case $as_dir in #(
21935       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21936       *) as_qdir=$as_dir;;
21937       esac
21938       as_dirs="'$as_qdir' $as_dirs"
21939       as_dir=`$as_dirname -- "$as_dir" ||
21940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21941          X"$as_dir" : 'X\(//\)[^/]' \| \
21942          X"$as_dir" : 'X\(//\)$' \| \
21943          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21944 echo X"$as_dir" |
21945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21946             s//\1/
21947             q
21948           }
21949           /^X\(\/\/\)[^/].*/{
21950             s//\1/
21951             q
21952           }
21953           /^X\(\/\/\)$/{
21954             s//\1/
21955             q
21956           }
21957           /^X\(\/\).*/{
21958             s//\1/
21959             q
21960           }
21961           s/.*/./; q'`
21962       test -d "$as_dir" && break
21963     done
21964     test -z "$as_dirs" || eval "mkdir $as_dirs"
21965   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21967    { (exit 1); exit 1; }; }; }
21968     # echo "creating $dirpart/$file"
21969     echo '# dummy' > "$dirpart/$file"
21970   done
21971 done
21972  ;;
21973
21974   esac
21975 done # for ac_tag
21976
21977
21978 { (exit 0); exit 0; }
21979 _ACEOF
21980 chmod +x $CONFIG_STATUS
21981 ac_clean_files=$ac_clean_files_save
21982
21983
21984 # configure is writing to config.log, and then calls config.status.
21985 # config.status does its own redirection, appending to config.log.
21986 # Unfortunately, on DOS this fails, as config.log is still kept open
21987 # by configure, so config.status won't be able to write to it; its
21988 # output is simply discarded.  So we exec the FD to /dev/null,
21989 # effectively closing config.log, so it can be properly (re)opened and
21990 # appended to by config.status.  When coming back to configure, we
21991 # need to make the FD available again.
21992 if test "$no_create" != yes; then
21993   ac_cs_success=:
21994   ac_config_status_args=
21995   test "$silent" = yes &&
21996     ac_config_status_args="$ac_config_status_args --quiet"
21997   exec 5>/dev/null
21998   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21999   exec 5>>config.log
22000   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22001   # would make configure fail if this is the last instruction.
22002   $ac_cs_success || { (exit 1); exit 1; }
22003 fi
22004