dvitomp fix from Akira
[mplib] / src / texk / web2c / mpdir / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="mp.w"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 CC
838 CFLAGS
839 LDFLAGS
840 CPPFLAGS
841 ac_ct_CC
842 EXEEXT
843 OBJEXT
844 DEPDIR
845 am__include
846 am__quote
847 AMDEP_TRUE
848 AMDEP_FALSE
849 AMDEPBACKSLASH
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 WITH_LUA_TRUE
873 WITH_LUA_FALSE
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 CXX
887 CXXFLAGS
888 CCC
889 CXXCPP
890 F77
891 FFLAGS'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
972   -cache-file | --cache-file | --cache-fil | --cache-fi \
973   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974     ac_prev=cache_file ;;
975   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977     cache_file=$ac_optarg ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
987   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988   | --dataroo | --dataro | --datar)
989     ac_prev=datarootdir ;;
990   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992     datarootdir=$ac_optarg ;;
993
994   -disable-* | --disable-*)
995     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999    { (exit 1); exit 1; }; }
1000     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001     eval enable_$ac_feature=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       { echo "$as_me: error: invalid package name: $ac_package" >&2
1215    { (exit 1); exit 1; }; }
1216     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217     eval with_$ac_package=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248    { (exit 1); exit 1; }; }
1249     ;;
1250
1251   *=*)
1252     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256    { (exit 1); exit 1; }; }
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   { echo "$as_me: error: missing argument to $ac_option" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 # Be sure to have absolute directory names.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289    { (exit 1); exit 1; }; }
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301   if test "x$build_alias" = x; then
1302     cross_compiling=maybe
1303     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304     If a cross compiler is detected then cross compile mode will be used." >&2
1305   elif test "x$build_alias" != "x$host_alias"; then
1306     cross_compiling=yes
1307   fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319   { echo "$as_me: error: Working directory cannot be determined" >&2
1320    { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   { echo "$as_me: error: pwd does not report name of working directory" >&2
1323    { (exit 1); exit 1; }; }
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328   ac_srcdir_defaulted=yes
1329   # Try the directory containing this script, then the parent directory.
1330   ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332          X"$0" : 'X\(//\)[^/]' \| \
1333          X"$0" : 'X\(//\)$' \| \
1334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 echo X"$0" |
1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)[^/].*/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\).*/{
1349             s//\1/
1350             q
1351           }
1352           s/.*/./; q'`
1353   srcdir=$ac_confdir
1354   if test ! -r "$srcdir/$ac_unique_file"; then
1355     srcdir=..
1356   fi
1357 else
1358   ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363    { (exit 1); exit 1; }; }
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368    { (exit 1); exit 1; }; }
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR           user executables [EPREFIX/bin]
1429   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR       program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR           object code libraries [EPREFIX/lib]
1435   --includedir=DIR       C header files [PREFIX/include]
1436   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR          info documentation [DATAROOTDIR/info]
1440   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR           man documentation [DATAROOTDIR/man]
1442   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR          html documentation [DOCDIR]
1444   --dvidir=DIR           dvi documentation [DOCDIR]
1445   --pdfdir=DIR           pdf documentation [DOCDIR]
1446   --psdir=DIR            ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-dependency-tracking  speeds up one-time build
1474   --enable-dependency-tracking   do not reject slow dependency extractors
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476   --enable-lua            build lua module (default is no)
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   LIBS        libraries to pass to the linker, e.g. -l<library>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CPP         C preprocessor
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CXXCPP      C++ preprocessor
1498   F77         Fortran 77 compiler command
1499   FFLAGS      Fortran 77 compiler flags
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.61
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.61.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923 am__api_version='1.10'
1924
1925 ac_aux_dir=
1926 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1927   if test -f "$ac_dir/install-sh"; then
1928     ac_aux_dir=$ac_dir
1929     ac_install_sh="$ac_aux_dir/install-sh -c"
1930     break
1931   elif test -f "$ac_dir/install.sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install.sh -c"
1934     break
1935   elif test -f "$ac_dir/shtool"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/shtool install -c"
1938     break
1939   fi
1940 done
1941 if test -z "$ac_aux_dir"; then
1942   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956 # Find a good install program.  We prefer a C program (faster),
1957 # so one script is as good as another.  But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1962 # AIX /bin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   # Account for people who put trailing slashes in PATH elements.
1981 case $as_dir/ in
1982   ./ | .// | /cC/* | \
1983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985   /usr/ucb/* ) ;;
1986   *)
1987     # OSF1 and SCO ODT 3.0 have their own names for install.
1988     # Don't use installbsd from OSF since it installs stuff as root
1989     # by default.
1990     for ac_prog in ginstall scoinst install; do
1991       for ac_exec_ext in '' $ac_executable_extensions; do
1992         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993           if test $ac_prog = install &&
1994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995             # AIX install.  It has an incompatible calling convention.
1996             :
1997           elif test $ac_prog = install &&
1998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999             # program-specific install script used by HP pwplus--don't use.
2000             :
2001           else
2002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003             break 3
2004           fi
2005         fi
2006       done
2007     done
2008     ;;
2009 esac
2010 done
2011 IFS=$as_save_IFS
2012
2013
2014 fi
2015   if test "${ac_cv_path_install+set}" = set; then
2016     INSTALL=$ac_cv_path_install
2017   else
2018     # As a last resort, use the slow shell script.  Don't cache a
2019     # value for INSTALL within a source directory, because that will
2020     # break other packages using the cache if that directory is
2021     # removed, or if the value is a relative name.
2022     INSTALL=$ac_install_sh
2023   fi
2024 fi
2025 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2026 echo "${ECHO_T}$INSTALL" >&6; }
2027
2028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029 # It thinks the first close brace ends the variable substitution.
2030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
2032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
2034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
2036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038 # Just in case
2039 sleep 1
2040 echo timestamp > conftest.file
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments.  Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2045 # directory).
2046 if (
2047    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048    if test "$*" = "X"; then
2049       # -L didn't work.
2050       set X `ls -t $srcdir/configure conftest.file`
2051    fi
2052    rm -f conftest.file
2053    if test "$*" != "X $srcdir/configure conftest.file" \
2054       && test "$*" != "X conftest.file $srcdir/configure"; then
2055
2056       # If neither matched, then we have a broken ls.  This can happen
2057       # if, for instance, CONFIG_SHELL is bash and it inherits a
2058       # broken ls alias from the environment.  This has actually
2059       # happened.  Such a system could not be considered "sane".
2060       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061 alias in your environment" >&5
2062 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063 alias in your environment" >&2;}
2064    { (exit 1); exit 1; }; }
2065    fi
2066
2067    test "$2" = conftest.file
2068    )
2069 then
2070    # Ok.
2071    :
2072 else
2073    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074 Check your system clock" >&5
2075 echo "$as_me: error: newly created file is older than distributed files!
2076 Check your system clock" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2081 test "$program_prefix" != NONE &&
2082   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083 # Use a double $ so make ignores it.
2084 test "$program_suffix" != NONE &&
2085   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086 # Double any \ or $.  echo might interpret backslashes.
2087 # By default was `s,x,x', remove it if useless.
2088 cat <<\_ACEOF >conftest.sed
2089 s/[\\$]/&&/g;s/;s,x,x,$//
2090 _ACEOF
2091 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092 rm -f conftest.sed
2093
2094 # expand $ac_aux_dir to an absolute path
2095 am_aux_dir=`cd $ac_aux_dir && pwd`
2096
2097 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098 # Use eval to expand $SHELL
2099 if eval "$MISSING --run true"; then
2100   am_missing_run="$MISSING --run "
2101 else
2102   am_missing_run=
2103   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105 fi
2106
2107 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2108 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2109 if test -z "$MKDIR_P"; then
2110   if test "${ac_cv_path_mkdir+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2115 do
2116   IFS=$as_save_IFS
2117   test -z "$as_dir" && as_dir=.
2118   for ac_prog in mkdir gmkdir; do
2119          for ac_exec_ext in '' $ac_executable_extensions; do
2120            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2121            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2122              'mkdir (GNU coreutils) '* | \
2123              'mkdir (coreutils) '* | \
2124              'mkdir (fileutils) '4.1*)
2125                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2126                break 3;;
2127            esac
2128          done
2129        done
2130 done
2131 IFS=$as_save_IFS
2132
2133 fi
2134
2135   if test "${ac_cv_path_mkdir+set}" = set; then
2136     MKDIR_P="$ac_cv_path_mkdir -p"
2137   else
2138     # As a last resort, use the slow shell script.  Don't cache a
2139     # value for MKDIR_P within a source directory, because that will
2140     # break other packages using the cache if that directory is
2141     # removed, or if the value is a relative name.
2142     test -d ./--version && rmdir ./--version
2143     MKDIR_P="$ac_install_sh -d"
2144   fi
2145 fi
2146 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2147 echo "${ECHO_T}$MKDIR_P" >&6; }
2148
2149 mkdir_p="$MKDIR_P"
2150 case $mkdir_p in
2151   [\\/$]* | ?:[\\/]*) ;;
2152   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2153 esac
2154
2155 for ac_prog in gawk mawk nawk awk
2156 do
2157   # Extract the first word of "$ac_prog", so it can be a program name with args.
2158 set dummy $ac_prog; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_AWK+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   if test -n "$AWK"; then
2165   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172   for ac_exec_ext in '' $ac_executable_extensions; do
2173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174     ac_cv_prog_AWK="$ac_prog"
2175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 AWK=$ac_cv_prog_AWK
2185 if test -n "$AWK"; then
2186   { echo "$as_me:$LINENO: result: $AWK" >&5
2187 echo "${ECHO_T}$AWK" >&6; }
2188 else
2189   { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2191 fi
2192
2193
2194   test -n "$AWK" && break
2195 done
2196
2197 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2198 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2199 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.make <<\_ACEOF
2204 SHELL = /bin/sh
2205 all:
2206         @echo '@@@%%%=$(MAKE)=@@@%%%'
2207 _ACEOF
2208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2210   *@@@%%%=?*=@@@%%%*)
2211     eval ac_cv_prog_make_${ac_make}_set=yes;;
2212   *)
2213     eval ac_cv_prog_make_${ac_make}_set=no;;
2214 esac
2215 rm -f conftest.make
2216 fi
2217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2218   { echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6; }
2220   SET_MAKE=
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224   SET_MAKE="MAKE=${MAKE-make}"
2225 fi
2226
2227 rm -rf .tst 2>/dev/null
2228 mkdir .tst 2>/dev/null
2229 if test -d .tst; then
2230   am__leading_dot=.
2231 else
2232   am__leading_dot=_
2233 fi
2234 rmdir .tst 2>/dev/null
2235
2236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2237   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2238   # is not polluted with repeated "-I."
2239   am__isrc=' -I$(srcdir)'
2240   # test to see if srcdir already configured
2241   if test -f $srcdir/config.status; then
2242     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244    { (exit 1); exit 1; }; }
2245   fi
2246 fi
2247
2248 # test whether we have cygpath
2249 if test -z "$CYGPATH_W"; then
2250   if (cygpath --version) >/dev/null 2>/dev/null; then
2251     CYGPATH_W='cygpath -w'
2252   else
2253     CYGPATH_W=echo
2254   fi
2255 fi
2256
2257
2258 # Define the identity of the package.
2259  PACKAGE=libmplib
2260  VERSION=1.0.9
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE "$PACKAGE"
2265 _ACEOF
2266
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define VERSION "$VERSION"
2270 _ACEOF
2271
2272 # Some tools Automake needs.
2273
2274 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2275
2276
2277 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2278
2279
2280 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2281
2282
2283 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2284
2285
2286 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287
2288 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2289
2290 # Installed binaries are usually stripped using `strip' when the user
2291 # run `make install-strip'.  However `strip' might not be the right
2292 # tool to use in cross-compilation environments, therefore Automake
2293 # will honor the `STRIP' environment variable to overrule this program.
2294 if test "$cross_compiling" != no; then
2295   if test -n "$ac_tool_prefix"; then
2296   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}strip; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_prog_STRIP+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   if test -n "$STRIP"; then
2304   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322 fi
2323 STRIP=$ac_cv_prog_STRIP
2324 if test -n "$STRIP"; then
2325   { echo "$as_me:$LINENO: result: $STRIP" >&5
2326 echo "${ECHO_T}$STRIP" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333 fi
2334 if test -z "$ac_cv_prog_STRIP"; then
2335   ac_ct_STRIP=$STRIP
2336   # Extract the first word of "strip", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$ac_ct_STRIP"; then
2344   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353     ac_cv_prog_ac_ct_STRIP="strip"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2364 if test -n "$ac_ct_STRIP"; then
2365   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2366 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372   if test "x$ac_ct_STRIP" = x; then
2373     STRIP=":"
2374   else
2375     case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet.  If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&5
2380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet.  If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383 ac_tool_warned=yes ;;
2384 esac
2385     STRIP=$ac_ct_STRIP
2386   fi
2387 else
2388   STRIP="$ac_cv_prog_STRIP"
2389 fi
2390
2391 fi
2392 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2393
2394 # We need awk for the "check" target.  The system "awk" is bad on
2395 # some platforms.
2396 # Always define AMTAR for backward compatibility.
2397
2398 AMTAR=${AMTAR-"${am_missing_run}tar"}
2399
2400 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2401
2402
2403
2404
2405
2406 ac_config_headers="$ac_config_headers config.h"
2407
2408 # Check whether --enable-shared was given.
2409 if test "${enable_shared+set}" = set; then
2410   enableval=$enable_shared; p=${PACKAGE-default}
2411     case $enableval in
2412     yes) enable_shared=yes ;;
2413     no) enable_shared=no ;;
2414     *)
2415       enable_shared=no
2416       # Look at the argument we got.  We use all the common list separators.
2417       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2418       for pkg in $enableval; do
2419         IFS="$lt_save_ifs"
2420         if test "X$pkg" = "X$p"; then
2421           enable_shared=yes
2422         fi
2423       done
2424       IFS="$lt_save_ifs"
2425       ;;
2426     esac
2427 else
2428   enable_shared=yes
2429 fi
2430
2431
2432 # Check whether --enable-static was given.
2433 if test "${enable_static+set}" = set; then
2434   enableval=$enable_static; p=${PACKAGE-default}
2435     case $enableval in
2436     yes) enable_static=yes ;;
2437     no) enable_static=no ;;
2438     *)
2439      enable_static=no
2440       # Look at the argument we got.  We use all the common list separators.
2441       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2442       for pkg in $enableval; do
2443         IFS="$lt_save_ifs"
2444         if test "X$pkg" = "X$p"; then
2445           enable_static=yes
2446         fi
2447       done
2448       IFS="$lt_save_ifs"
2449       ;;
2450     esac
2451 else
2452   enable_static=yes
2453 fi
2454
2455
2456 # Check whether --enable-fast-install was given.
2457 if test "${enable_fast_install+set}" = set; then
2458   enableval=$enable_fast_install; p=${PACKAGE-default}
2459     case $enableval in
2460     yes) enable_fast_install=yes ;;
2461     no) enable_fast_install=no ;;
2462     *)
2463       enable_fast_install=no
2464       # Look at the argument we got.  We use all the common list separators.
2465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2466       for pkg in $enableval; do
2467         IFS="$lt_save_ifs"
2468         if test "X$pkg" = "X$p"; then
2469           enable_fast_install=yes
2470         fi
2471       done
2472       IFS="$lt_save_ifs"
2473       ;;
2474     esac
2475 else
2476   enable_fast_install=yes
2477 fi
2478
2479
2480 # Make sure we can run config.sub.
2481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2482   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2483 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2484    { (exit 1); exit 1; }; }
2485
2486 { echo "$as_me:$LINENO: checking build system type" >&5
2487 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2488 if test "${ac_cv_build+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   ac_build_alias=$build_alias
2492 test "x$ac_build_alias" = x &&
2493   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494 test "x$ac_build_alias" = x &&
2495   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2496 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2497    { (exit 1); exit 1; }; }
2498 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2499   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2500 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2501    { (exit 1); exit 1; }; }
2502
2503 fi
2504 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2505 echo "${ECHO_T}$ac_cv_build" >&6; }
2506 case $ac_cv_build in
2507 *-*-*) ;;
2508 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2509 echo "$as_me: error: invalid value of canonical build" >&2;}
2510    { (exit 1); exit 1; }; };;
2511 esac
2512 build=$ac_cv_build
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_build
2515 shift
2516 build_cpu=$1
2517 build_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 build_os=$*
2522 IFS=$ac_save_IFS
2523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2524
2525
2526 { echo "$as_me:$LINENO: checking host system type" >&5
2527 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2528 if test "${ac_cv_host+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test "x$host_alias" = x; then
2532   ac_cv_host=$ac_cv_build
2533 else
2534   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2535     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2537    { (exit 1); exit 1; }; }
2538 fi
2539
2540 fi
2541 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2542 echo "${ECHO_T}$ac_cv_host" >&6; }
2543 case $ac_cv_host in
2544 *-*-*) ;;
2545 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2546 echo "$as_me: error: invalid value of canonical host" >&2;}
2547    { (exit 1); exit 1; }; };;
2548 esac
2549 host=$ac_cv_host
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_host
2552 shift
2553 host_cpu=$1
2554 host_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 host_os=$*
2559 IFS=$ac_save_IFS
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 DEPDIR="${am__leading_dot}deps"
2564
2565 ac_config_commands="$ac_config_commands depfiles"
2566
2567
2568 am_make=${MAKE-make}
2569 cat > confinc << 'END'
2570 am__doit:
2571         @echo done
2572 .PHONY: am__doit
2573 END
2574 # If we don't find an include directive, just comment out the code.
2575 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2576 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2577 am__include="#"
2578 am__quote=
2579 _am_result=none
2580 # First try GNU make style include.
2581 echo "include confinc" > confmf
2582 # We grep out `Entering directory' and `Leaving directory'
2583 # messages which can occur if `w' ends up in MAKEFLAGS.
2584 # In particular we don't look at `^make:' because GNU make might
2585 # be invoked under some other name (usually "gmake"), in which
2586 # case it prints its new name instead of `make'.
2587 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2588    am__include=include
2589    am__quote=
2590    _am_result=GNU
2591 fi
2592 # Now try BSD make style include.
2593 if test "$am__include" = "#"; then
2594    echo '.include "confinc"' > confmf
2595    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2596       am__include=.include
2597       am__quote="\""
2598       _am_result=BSD
2599    fi
2600 fi
2601
2602
2603 { echo "$as_me:$LINENO: result: $_am_result" >&5
2604 echo "${ECHO_T}$_am_result" >&6; }
2605 rm -f confinc confmf
2606
2607 # Check whether --enable-dependency-tracking was given.
2608 if test "${enable_dependency_tracking+set}" = set; then
2609   enableval=$enable_dependency_tracking;
2610 fi
2611
2612 if test "x$enable_dependency_tracking" != xno; then
2613   am_depcomp="$ac_aux_dir/depcomp"
2614   AMDEPBACKSLASH='\'
2615 fi
2616  if test "x$enable_dependency_tracking" != xno; then
2617   AMDEP_TRUE=
2618   AMDEP_FALSE='#'
2619 else
2620   AMDEP_TRUE='#'
2621   AMDEP_FALSE=
2622 fi
2623
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 if test -n "$ac_tool_prefix"; then
2631   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$ac_cv_prog_CC"; then
2670   ac_ct_CC=$CC
2671   # Extract the first word of "gcc", so it can be a program name with args.
2672 set dummy gcc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$ac_ct_CC"; then
2679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_ac_ct_CC="gcc"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699 if test -n "$ac_ct_CC"; then
2700   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707   if test "x$ac_ct_CC" = x; then
2708     CC=""
2709   else
2710     case $cross_compiling:$ac_tool_warned in
2711 yes:)
2712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet.  If you think this
2714 configuration is useful to you, please write to autoconf@gnu.org." >&5
2715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet.  If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720     CC=$ac_ct_CC
2721   fi
2722 else
2723   CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727           if test -n "$ac_tool_prefix"; then
2728     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -n "$CC"; then
2736   ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743   for ac_exec_ext in '' $ac_executable_extensions; do
2744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745     ac_cv_prog_CC="${ac_tool_prefix}cc"
2746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757   { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760   { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765   fi
2766 fi
2767 if test -z "$CC"; then
2768   # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   if test -n "$CC"; then
2776   ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778   ac_prog_rejected=no
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784   for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787        ac_prog_rejected=yes
2788        continue
2789      fi
2790     ac_cv_prog_CC="cc"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 if test $ac_prog_rejected = yes; then
2799   # We found a bogon in the path, so make sure we never use it.
2800   set dummy $ac_cv_prog_CC
2801   shift
2802   if test $# != 0; then
2803     # We chose a different compiler from the bogus one.
2804     # However, it has the same basename, so the bogon will be chosen
2805     # first if we set CC to just the basename; use the full file name.
2806     shift
2807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808   fi
2809 fi
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814   { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$CC"; then
2824   if test -n "$ac_tool_prefix"; then
2825   for ac_prog in cl.exe
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856   { echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864     test -n "$CC" && break
2865   done
2866 fi
2867 if test -z "$CC"; then
2868   ac_ct_CC=$CC
2869   for ac_prog in cl.exe
2870 do
2871   # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$ac_ct_CC"; then
2879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_ac_ct_CC="$ac_prog"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6; }
2902 else
2903   { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2906
2907
2908   test -n "$ac_ct_CC" && break
2909 done
2910
2911   if test "x$ac_ct_CC" = x; then
2912     CC=""
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet.  If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 fi
2927
2928 fi
2929
2930
2931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936
2937 # Provide some information about the compiler.
2938 echo "$as_me:$LINENO: checking for C compiler version" >&5
2939 ac_compiler=`set X $ac_compile; echo $2`
2940 { (ac_try="$ac_compiler --version >&5"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_compiler --version >&5") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }
2950 { (ac_try="$ac_compiler -v >&5"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compiler -v >&5") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }
2960 { (ac_try="$ac_compiler -V >&5"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compiler -V >&5") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }
2970
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 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 #
2995 # List of possible output files, starting from the most likely.
2996 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2997 # only as a last resort.  b.out is created by i960 compilers.
2998 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2999 #
3000 # The IRIX 6 linker writes into existing files which may not be
3001 # executable, retaining their permissions.  Remove them first so a
3002 # subsequent execution test works.
3003 ac_rmfiles=
3004 for ac_file in $ac_files
3005 do
3006   case $ac_file in
3007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3008     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3009   esac
3010 done
3011 rm -f $ac_rmfiles
3012
3013 if { (ac_try="$ac_link_default"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_link_default") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; then
3023   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3026 # so that the user can short-circuit this test for compilers unknown to
3027 # Autoconf.
3028 for ac_file in $ac_files ''
3029 do
3030   test -f "$ac_file" || continue
3031   case $ac_file in
3032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3033         ;;
3034     [ab].out )
3035         # We found the default executable, but exeext='' is most
3036         # certainly right.
3037         break;;
3038     *.* )
3039         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3040         then :; else
3041            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042         fi
3043         # We set ac_cv_exeext here because the later test for it is not
3044         # safe: cross compilers may not add the suffix if given an `-o'
3045         # argument, so we may need to know it at that point already.
3046         # Even if this section looks crufty: it has the advantage of
3047         # actually working.
3048         break;;
3049     * )
3050         break;;
3051   esac
3052 done
3053 test "$ac_cv_exeext" = no && ac_cv_exeext=
3054
3055 else
3056   ac_file=''
3057 fi
3058
3059 { echo "$as_me:$LINENO: result: $ac_file" >&5
3060 echo "${ECHO_T}$ac_file" >&6; }
3061 if test -z "$ac_file"; then
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: C compiler cannot create executables
3068 See \`config.log' for more details." >&2;}
3069    { (exit 77); exit 77; }; }
3070 fi
3071
3072 ac_exeext=$ac_cv_exeext
3073
3074 # Check that the compiler produces executables we can run.  If not, either
3075 # the compiler is broken, or we cross compile.
3076 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3077 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3078 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3079 # If not cross compiling, check that we can run a simple program.
3080 if test "$cross_compiling" != yes; then
3081   if { ac_try='./$ac_file'
3082   { (case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_try") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; }; then
3091     cross_compiling=no
3092   else
3093     if test "$cross_compiling" = maybe; then
3094         cross_compiling=yes
3095     else
3096         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3097 If you meant to cross compile, use \`--host'.
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot run C compiled programs.
3100 If you meant to cross compile, use \`--host'.
3101 See \`config.log' for more details." >&2;}
3102    { (exit 1); exit 1; }; }
3103     fi
3104   fi
3105 fi
3106 { echo "$as_me:$LINENO: result: yes" >&5
3107 echo "${ECHO_T}yes" >&6; }
3108
3109 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3110 ac_clean_files=$ac_clean_files_save
3111 # Check that the compiler produces executables we can run.  If not, either
3112 # the compiler is broken, or we cross compile.
3113 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3114 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3115 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3116 echo "${ECHO_T}$cross_compiling" >&6; }
3117
3118 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3119 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3120 if { (ac_try="$ac_link"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_link") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; then
3130   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3133 # `rm'.
3134 for ac_file in conftest.exe conftest conftest.*; do
3135   test -f "$ac_file" || continue
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3138     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139           break;;
3140     * ) break;;
3141   esac
3142 done
3143 else
3144   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details." >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150
3151 rm -f conftest$ac_cv_exeext
3152 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3153 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3154
3155 rm -f conftest.$ac_ext
3156 EXEEXT=$ac_cv_exeext
3157 ac_exeext=$EXEEXT
3158 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3160 if test "${ac_cv_objext+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.o conftest.obj
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_compile") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; then
3189   for ac_file in conftest.o conftest.obj conftest.*; do
3190   test -f "$ac_file" || continue;
3191   case $ac_file in
3192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3193     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194        break;;
3195   esac
3196 done
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3202 See \`config.log' for more details." >&5
3203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." >&2;}
3205    { (exit 1); exit 1; }; }
3206 fi
3207
3208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3211 echo "${ECHO_T}$ac_cv_objext" >&6; }
3212 OBJEXT=$ac_cv_objext
3213 ac_objext=$OBJEXT
3214 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229 #ifndef __GNUC__
3230        choke me
3231 #endif
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_compile") 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } && {
3251          test -z "$ac_c_werror_flag" ||
3252          test ! -s conftest.err
3253        } && test -s conftest.$ac_objext; then
3254   ac_compiler_gnu=yes
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259         ac_compiler_gnu=no
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264
3265 fi
3266 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3267 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3268 GCC=`test $ac_compiler_gnu = yes && echo yes`
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3272 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_save_c_werror_flag=$ac_c_werror_flag
3277    ac_c_werror_flag=yes
3278    ac_cv_prog_cc_g=no
3279    CFLAGS="-g"
3280    cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_g=yes
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317         CFLAGS=""
3318       cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   :
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355         ac_c_werror_flag=$ac_save_c_werror_flag
3356          CFLAGS="-g"
3357          cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363
3364 int
3365 main ()
3366 {
3367
3368   ;
3369   return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_compile") 2>conftest.er1
3380   ac_status=$?
3381   grep -v '^ *+' conftest.er1 >conftest.err
3382   rm -f conftest.er1
3383   cat conftest.err >&5
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } && {
3386          test -z "$ac_c_werror_flag" ||
3387          test ! -s conftest.err
3388        } && test -s conftest.$ac_objext; then
3389   ac_cv_prog_cc_g=yes
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 fi
3402
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404    ac_c_werror_flag=$ac_save_c_werror_flag
3405 fi
3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3407 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3408 if test "$ac_test_CFLAGS" = set; then
3409   CFLAGS=$ac_save_CFLAGS
3410 elif test $ac_cv_prog_cc_g = yes; then
3411   if test "$GCC" = yes; then
3412     CFLAGS="-g -O2"
3413   else
3414     CFLAGS="-g"
3415   fi
3416 else
3417   if test "$GCC" = yes; then
3418     CFLAGS="-O2"
3419   else
3420     CFLAGS=
3421   fi
3422 fi
3423 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3424 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3425 if test "${ac_cv_prog_cc_c89+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   ac_cv_prog_cc_c89=no
3429 ac_save_CC=$CC
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <stdarg.h>
3437 #include <stdio.h>
3438 #include <sys/types.h>
3439 #include <sys/stat.h>
3440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3441 struct buf { int x; };
3442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3443 static char *e (p, i)
3444      char **p;
3445      int i;
3446 {
3447   return p[i];
3448 }
3449 static char *f (char * (*g) (char **, int), char **p, ...)
3450 {
3451   char *s;
3452   va_list v;
3453   va_start (v,p);
3454   s = g (p, va_arg (v,int));
3455   va_end (v);
3456   return s;
3457 }
3458
3459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3460    function prototypes and stuff, but not '\xHH' hex character constants.
3461    These don't provoke an error unfortunately, instead are silently treated
3462    as 'x'.  The following induces an error, until -std is added to get
3463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3464    array size at least.  It's necessary to write '\x00'==0 to get something
3465    that's true only with -std.  */
3466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467
3468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3469    inside strings and character constants.  */
3470 #define FOO(x) 'x'
3471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3472
3473 int test (int i, double x);
3474 struct s1 {int (*f) (int a);};
3475 struct s2 {int (*f) (double a);};
3476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3477 int argc;
3478 char **argv;
3479 int
3480 main ()
3481 {
3482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3489 do
3490   CC="$ac_save_CC $ac_arg"
3491   rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_compile") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } && {
3505          test -z "$ac_c_werror_flag" ||
3506          test ! -s conftest.err
3507        } && test -s conftest.$ac_objext; then
3508   ac_cv_prog_cc_c89=$ac_arg
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513
3514 fi
3515
3516 rm -f core conftest.err conftest.$ac_objext
3517   test "x$ac_cv_prog_cc_c89" != "xno" && break
3518 done
3519 rm -f conftest.$ac_ext
3520 CC=$ac_save_CC
3521
3522 fi
3523 # AC_CACHE_VAL
3524 case "x$ac_cv_prog_cc_c89" in
3525   x)
3526     { echo "$as_me:$LINENO: result: none needed" >&5
3527 echo "${ECHO_T}none needed" >&6; } ;;
3528   xno)
3529     { echo "$as_me:$LINENO: result: unsupported" >&5
3530 echo "${ECHO_T}unsupported" >&6; } ;;
3531   *)
3532     CC="$CC $ac_cv_prog_cc_c89"
3533     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3534 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3535 esac
3536
3537
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543
3544 depcc="$CC"   am_compiler_list=
3545
3546 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3547 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3548 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3552   # We make a subdir and do the tests there.  Otherwise we can end up
3553   # making bogus files that we don't know about and never remove.  For
3554   # instance it was reported that on HP-UX the gcc test will end up
3555   # making a dummy file named `D' -- because `-MD' means `put the output
3556   # in D'.
3557   mkdir conftest.dir
3558   # Copy depcomp to subdir because otherwise we won't find it if we're
3559   # using a relative directory.
3560   cp "$am_depcomp" conftest.dir
3561   cd conftest.dir
3562   # We will build objects and dependencies in a subdirectory because
3563   # it helps to detect inapplicable dependency modes.  For instance
3564   # both Tru64's cc and ICC support -MD to output dependencies as a
3565   # side effect of compilation, but ICC will put the dependencies in
3566   # the current directory while Tru64 will put them in the object
3567   # directory.
3568   mkdir sub
3569
3570   am_cv_CC_dependencies_compiler_type=none
3571   if test "$am_compiler_list" = ""; then
3572      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573   fi
3574   for depmode in $am_compiler_list; do
3575     # Setup a source with many dependencies, because some compilers
3576     # like to wrap large dependency lists on column 80 (with \), and
3577     # we should not choose a depcomp mode which is confused by this.
3578     #
3579     # We need to recreate these files for each test, as the compiler may
3580     # overwrite some of them when testing with obscure command lines.
3581     # This happens at least with the AIX C compiler.
3582     : > sub/conftest.c
3583     for i in 1 2 3 4 5 6; do
3584       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586       # Solaris 8's {/usr,}/bin/sh.
3587       touch sub/conftst$i.h
3588     done
3589     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590
3591     case $depmode in
3592     nosideeffect)
3593       # after this tag, mechanisms are not by side-effect, so they'll
3594       # only be used when explicitly requested
3595       if test "x$enable_dependency_tracking" = xyes; then
3596         continue
3597       else
3598         break
3599       fi
3600       ;;
3601     none) break ;;
3602     esac
3603     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604     # mode.  It turns out that the SunPro C++ compiler does not properly
3605     # handle `-M -o', and we need to detect this.
3606     if depmode=$depmode \
3607        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3608        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3610          >/dev/null 2>conftest.err &&
3611        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3612        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3614        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615       # icc doesn't choke on unknown options, it will just issue warnings
3616       # or remarks (even with -Werror).  So we grep stderr for any message
3617       # that says an option was ignored or not supported.
3618       # When given -MP, icc 7.0 and 7.1 complain thusly:
3619       #   icc: Command line warning: ignoring option '-M'; no argument required
3620       # The diagnosis changed in icc 8.0:
3621       #   icc: Command line remark: option '-MP' not supported
3622       if (grep 'ignoring option' conftest.err ||
3623           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3624         am_cv_CC_dependencies_compiler_type=$depmode
3625         break
3626       fi
3627     fi
3628   done
3629
3630   cd ..
3631   rm -rf conftest.dir
3632 else
3633   am_cv_CC_dependencies_compiler_type=none
3634 fi
3635
3636 fi
3637 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3640
3641  if
3642   test "x$enable_dependency_tracking" != xno \
3643   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3644   am__fastdepCC_TRUE=
3645   am__fastdepCC_FALSE='#'
3646 else
3647   am__fastdepCC_TRUE='#'
3648   am__fastdepCC_FALSE=
3649 fi
3650
3651
3652 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3653 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3654 if test "${lt_cv_path_SED+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   # Loop through the user's path and test for sed and gsed.
3658 # Then use that list of sed's as ones to test for truncation.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for lt_ac_prog in sed gsed; do
3665     for ac_exec_ext in '' $ac_executable_extensions; do
3666       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3667         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3668       fi
3669     done
3670   done
3671 done
3672 IFS=$as_save_IFS
3673 lt_ac_max=0
3674 lt_ac_count=0
3675 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3676 # along with /bin/sed that truncates output.
3677 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3678   test ! -f $lt_ac_sed && continue
3679   cat /dev/null > conftest.in
3680   lt_ac_count=0
3681   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3682   # Check for GNU sed and select it if it is found.
3683   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3684     lt_cv_path_SED=$lt_ac_sed
3685     break
3686   fi
3687   while true; do
3688     cat conftest.in conftest.in >conftest.tmp
3689     mv conftest.tmp conftest.in
3690     cp conftest.in conftest.nl
3691     echo >>conftest.nl
3692     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3693     cmp -s conftest.out conftest.nl || break
3694     # 10000 chars as input seems more than enough
3695     test $lt_ac_count -gt 10 && break
3696     lt_ac_count=`expr $lt_ac_count + 1`
3697     if test $lt_ac_count -gt $lt_ac_max; then
3698       lt_ac_max=$lt_ac_count
3699       lt_cv_path_SED=$lt_ac_sed
3700     fi
3701   done
3702 done
3703
3704 fi
3705
3706 SED=$lt_cv_path_SED
3707
3708 { echo "$as_me:$LINENO: result: $SED" >&5
3709 echo "${ECHO_T}$SED" >&6; }
3710
3711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   # Extract the first word of "grep ggrep" to use in msg output
3717 if test -z "$GREP"; then
3718 set dummy grep ggrep; ac_prog_name=$2
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_path_GREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_prog in grep ggrep; do
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733     # Check for GNU ac_path_GREP and select it if it is found.
3734   # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3736 *GNU*)
3737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738 *)
3739   ac_count=0
3740   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3741   while :
3742   do
3743     cat "conftest.in" "conftest.in" >"conftest.tmp"
3744     mv "conftest.tmp" "conftest.in"
3745     cp "conftest.in" "conftest.nl"
3746     echo 'GREP' >> "conftest.nl"
3747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749     ac_count=`expr $ac_count + 1`
3750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751       # Best one so far, save it but keep looking for a better one
3752       ac_cv_path_GREP="$ac_path_GREP"
3753       ac_path_GREP_max=$ac_count
3754     fi
3755     # 10*(2^10) chars as input seems more than enough
3756     test $ac_count -gt 10 && break
3757   done
3758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 esac
3760
3761
3762     $ac_path_GREP_found && break 3
3763   done
3764 done
3765
3766 done
3767 IFS=$as_save_IFS
3768
3769
3770 fi
3771
3772 GREP="$ac_cv_path_GREP"
3773 if test -z "$GREP"; then
3774   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776    { (exit 1); exit 1; }; }
3777 fi
3778
3779 else
3780   ac_cv_path_GREP=$GREP
3781 fi
3782
3783
3784 fi
3785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787  GREP="$ac_cv_path_GREP"
3788
3789
3790 { echo "$as_me:$LINENO: checking for egrep" >&5
3791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_EGREP+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796    then ac_cv_path_EGREP="$GREP -E"
3797    else
3798      # Extract the first word of "egrep" to use in msg output
3799 if test -z "$EGREP"; then
3800 set dummy egrep; ac_prog_name=$2
3801 if test "${ac_cv_path_EGREP+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   ac_path_EGREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_prog in egrep; do
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815     # Check for GNU ac_path_EGREP and select it if it is found.
3816   # Check for GNU $ac_path_EGREP
3817 case `"$ac_path_EGREP" --version 2>&1` in
3818 *GNU*)
3819   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3820 *)
3821   ac_count=0
3822   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3823   while :
3824   do
3825     cat "conftest.in" "conftest.in" >"conftest.tmp"
3826     mv "conftest.tmp" "conftest.in"
3827     cp "conftest.in" "conftest.nl"
3828     echo 'EGREP' >> "conftest.nl"
3829     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831     ac_count=`expr $ac_count + 1`
3832     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833       # Best one so far, save it but keep looking for a better one
3834       ac_cv_path_EGREP="$ac_path_EGREP"
3835       ac_path_EGREP_max=$ac_count
3836     fi
3837     # 10*(2^10) chars as input seems more than enough
3838     test $ac_count -gt 10 && break
3839   done
3840   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 esac
3842
3843
3844     $ac_path_EGREP_found && break 3
3845   done
3846 done
3847
3848 done
3849 IFS=$as_save_IFS
3850
3851
3852 fi
3853
3854 EGREP="$ac_cv_path_EGREP"
3855 if test -z "$EGREP"; then
3856   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858    { (exit 1); exit 1; }; }
3859 fi
3860
3861 else
3862   ac_cv_path_EGREP=$EGREP
3863 fi
3864
3865
3866    fi
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870  EGREP="$ac_cv_path_EGREP"
3871
3872
3873
3874 # Check whether --with-gnu-ld was given.
3875 if test "${with_gnu_ld+set}" = set; then
3876   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3877 else
3878   with_gnu_ld=no
3879 fi
3880
3881 ac_prog=ld
3882 if test "$GCC" = yes; then
3883   # Check if gcc -print-prog-name=ld gives a path.
3884   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3885 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3886   case $host in
3887   *-*-mingw*)
3888     # gcc leaves a trailing carriage return which upsets mingw
3889     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3890   *)
3891     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3892   esac
3893   case $ac_prog in
3894     # Accept absolute paths.
3895     [\\/]* | ?:[\\/]*)
3896       re_direlt='/[^/][^/]*/\.\./'
3897       # Canonicalize the pathname of ld
3898       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3899       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3900         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3901       done
3902       test -z "$LD" && LD="$ac_prog"
3903       ;;
3904   "")
3905     # If it fails, then pretend we aren't using GCC.
3906     ac_prog=ld
3907     ;;
3908   *)
3909     # If it is relative, then search for the first ld in PATH.
3910     with_gnu_ld=unknown
3911     ;;
3912   esac
3913 elif test "$with_gnu_ld" = yes; then
3914   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3915 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3916 else
3917   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3918 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3919 fi
3920 if test "${lt_cv_path_LD+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if test -z "$LD"; then
3924   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3925   for ac_dir in $PATH; do
3926     IFS="$lt_save_ifs"
3927     test -z "$ac_dir" && ac_dir=.
3928     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3929       lt_cv_path_LD="$ac_dir/$ac_prog"
3930       # Check to see if the program is GNU ld.  I'd rather use --version,
3931       # but apparently some variants of GNU ld only accept -v.
3932       # Break only if it was the GNU/non-GNU ld that we prefer.
3933       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3934       *GNU* | *'with BFD'*)
3935         test "$with_gnu_ld" != no && break
3936         ;;
3937       *)
3938         test "$with_gnu_ld" != yes && break
3939         ;;
3940       esac
3941     fi
3942   done
3943   IFS="$lt_save_ifs"
3944 else
3945   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3946 fi
3947 fi
3948
3949 LD="$lt_cv_path_LD"
3950 if test -n "$LD"; then
3951   { echo "$as_me:$LINENO: result: $LD" >&5
3952 echo "${ECHO_T}$LD" >&6; }
3953 else
3954   { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3956 fi
3957 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3958 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3959    { (exit 1); exit 1; }; }
3960 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3961 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3962 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3966 case `$LD -v 2>&1 </dev/null` in
3967 *GNU* | *'with BFD'*)
3968   lt_cv_prog_gnu_ld=yes
3969   ;;
3970 *)
3971   lt_cv_prog_gnu_ld=no
3972   ;;
3973 esac
3974 fi
3975 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3976 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3977 with_gnu_ld=$lt_cv_prog_gnu_ld
3978
3979
3980 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3982 if test "${lt_cv_ld_reload_flag+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   lt_cv_ld_reload_flag='-r'
3986 fi
3987 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3989 reload_flag=$lt_cv_ld_reload_flag
3990 case $reload_flag in
3991 "" | " "*) ;;
3992 *) reload_flag=" $reload_flag" ;;
3993 esac
3994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995 case $host_os in
3996   darwin*)
3997     if test "$GCC" = yes; then
3998       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999     else
4000       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4001     fi
4002     ;;
4003 esac
4004
4005 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4006 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4007 if test "${lt_cv_path_NM+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test -n "$NM"; then
4011   # Let the user override the test.
4012   lt_cv_path_NM="$NM"
4013 else
4014   lt_nm_to_check="${ac_tool_prefix}nm"
4015   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4016     lt_nm_to_check="$lt_nm_to_check nm"
4017   fi
4018   for lt_tmp_nm in $lt_nm_to_check; do
4019     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4021       IFS="$lt_save_ifs"
4022       test -z "$ac_dir" && ac_dir=.
4023       tmp_nm="$ac_dir/$lt_tmp_nm"
4024       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4025         # Check to see if the nm accepts a BSD-compat flag.
4026         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4027         #   nm: unknown option "B" ignored
4028         # Tru64's nm complains that /dev/null is an invalid object file
4029         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4030         */dev/null* | *'Invalid file or object type'*)
4031           lt_cv_path_NM="$tmp_nm -B"
4032           break
4033           ;;
4034         *)
4035           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4036           */dev/null*)
4037             lt_cv_path_NM="$tmp_nm -p"
4038             break
4039             ;;
4040           *)
4041             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4042             continue # so that we can try to find one that supports BSD flags
4043             ;;
4044           esac
4045           ;;
4046         esac
4047       fi
4048     done
4049     IFS="$lt_save_ifs"
4050   done
4051   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4052 fi
4053 fi
4054 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4055 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4056 NM="$lt_cv_path_NM"
4057
4058 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4060 LN_S=$as_ln_s
4061 if test "$LN_S" = "ln -s"; then
4062   { echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6; }
4064 else
4065   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4066 echo "${ECHO_T}no, using $LN_S" >&6; }
4067 fi
4068
4069 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4070 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4071 if test "${lt_cv_deplibs_check_method+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   lt_cv_file_magic_cmd='$MAGIC_CMD'
4075 lt_cv_file_magic_test_file=
4076 lt_cv_deplibs_check_method='unknown'
4077 # Need to set the preceding variable on all platforms that support
4078 # interlibrary dependencies.
4079 # 'none' -- dependencies not supported.
4080 # `unknown' -- same as none, but documents that we really don't know.
4081 # 'pass_all' -- all dependencies passed with no checks.
4082 # 'test_compile' -- check by making test program.
4083 # 'file_magic [[regex]]' -- check by looking for files in library path
4084 # which responds to the $file_magic_cmd with a given extended regex.
4085 # If you have `file' or equivalent on your system and you're not sure
4086 # whether `pass_all' will *always* work, you probably want this one.
4087
4088 case $host_os in
4089 aix4* | aix5*)
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092
4093 beos*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096
4097 bsdi[45]*)
4098   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4099   lt_cv_file_magic_cmd='/usr/bin/file -L'
4100   lt_cv_file_magic_test_file=/shlib/libc.so
4101   ;;
4102
4103 cygwin*)
4104   # func_win32_libid is a shell function defined in ltmain.sh
4105   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4106   lt_cv_file_magic_cmd='func_win32_libid'
4107   ;;
4108
4109 mingw* | pw32*)
4110   # Base MSYS/MinGW do not provide the 'file' command needed by
4111   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4112   # unless we find 'file', for example because we are cross-compiling.
4113   if ( file / ) >/dev/null 2>&1; then
4114     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115     lt_cv_file_magic_cmd='func_win32_libid'
4116   else
4117     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4118     lt_cv_file_magic_cmd='$OBJDUMP -f'
4119   fi
4120   ;;
4121
4122 darwin* | rhapsody*)
4123   lt_cv_deplibs_check_method=pass_all
4124   ;;
4125
4126 freebsd* | dragonfly*)
4127   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4128     case $host_cpu in
4129     i*86 )
4130       # Not sure whether the presence of OpenBSD here was a mistake.
4131       # Let's accept both of them until this is cleared up.
4132       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4133       lt_cv_file_magic_cmd=/usr/bin/file
4134       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4135       ;;
4136     esac
4137   else
4138     lt_cv_deplibs_check_method=pass_all
4139   fi
4140   ;;
4141
4142 gnu*)
4143   lt_cv_deplibs_check_method=pass_all
4144   ;;
4145
4146 hpux10.20* | hpux11*)
4147   lt_cv_file_magic_cmd=/usr/bin/file
4148   case $host_cpu in
4149   ia64*)
4150     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4151     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4152     ;;
4153   hppa*64*)
4154     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]'
4155     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4156     ;;
4157   *)
4158     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4159     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4160     ;;
4161   esac
4162   ;;
4163
4164 interix[3-9]*)
4165   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4166   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4167   ;;
4168
4169 irix5* | irix6* | nonstopux*)
4170   case $LD in
4171   *-32|*"-32 ") libmagic=32-bit;;
4172   *-n32|*"-n32 ") libmagic=N32;;
4173   *-64|*"-64 ") libmagic=64-bit;;
4174   *) libmagic=never-match;;
4175   esac
4176   lt_cv_deplibs_check_method=pass_all
4177   ;;
4178
4179 # This must be Linux ELF.
4180 linux* | k*bsd*-gnu)
4181   lt_cv_deplibs_check_method=pass_all
4182   ;;
4183
4184 netbsd*)
4185   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4187   else
4188     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4189   fi
4190   ;;
4191
4192 newos6*)
4193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4194   lt_cv_file_magic_cmd=/usr/bin/file
4195   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4196   ;;
4197
4198 nto-qnx*)
4199   lt_cv_deplibs_check_method=unknown
4200   ;;
4201
4202 openbsd*)
4203   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4205   else
4206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4207   fi
4208   ;;
4209
4210 osf3* | osf4* | osf5*)
4211   lt_cv_deplibs_check_method=pass_all
4212   ;;
4213
4214 rdos*)
4215   lt_cv_deplibs_check_method=pass_all
4216   ;;
4217
4218 solaris*)
4219   lt_cv_deplibs_check_method=pass_all
4220   ;;
4221
4222 sysv4 | sysv4.3*)
4223   case $host_vendor in
4224   motorola)
4225     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]'
4226     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4227     ;;
4228   ncr)
4229     lt_cv_deplibs_check_method=pass_all
4230     ;;
4231   sequent)
4232     lt_cv_file_magic_cmd='/bin/file'
4233     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4234     ;;
4235   sni)
4236     lt_cv_file_magic_cmd='/bin/file'
4237     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4238     lt_cv_file_magic_test_file=/lib/libc.so
4239     ;;
4240   siemens)
4241     lt_cv_deplibs_check_method=pass_all
4242     ;;
4243   pc)
4244     lt_cv_deplibs_check_method=pass_all
4245     ;;
4246   esac
4247   ;;
4248
4249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4250   lt_cv_deplibs_check_method=pass_all
4251   ;;
4252 esac
4253
4254 fi
4255 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4256 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4257 file_magic_cmd=$lt_cv_file_magic_cmd
4258 deplibs_check_method=$lt_cv_deplibs_check_method
4259 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4260
4261
4262
4263
4264 # If no C compiler was specified, use CC.
4265 LTCC=${LTCC-"$CC"}
4266
4267 # If no C compiler flags were specified, use CFLAGS.
4268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4269
4270 # Allow CC to be a program name with arguments.
4271 compiler=$CC
4272
4273
4274 # Check whether --enable-libtool-lock was given.
4275 if test "${enable_libtool_lock+set}" = set; then
4276   enableval=$enable_libtool_lock;
4277 fi
4278
4279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4280
4281 # Some flags need to be propagated to the compiler or linker for good
4282 # libtool support.
4283 case $host in
4284 ia64-*-hpux*)
4285   # Find out which ABI we are using.
4286   echo 'int i;' > conftest.$ac_ext
4287   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; then
4292     case `/usr/bin/file conftest.$ac_objext` in
4293     *ELF-32*)
4294       HPUX_IA64_MODE="32"
4295       ;;
4296     *ELF-64*)
4297       HPUX_IA64_MODE="64"
4298       ;;
4299     esac
4300   fi
4301   rm -rf conftest*
4302   ;;
4303 *-*-irix6*)
4304   # Find out which ABI we are using.
4305   echo '#line 4305 "configure"' > conftest.$ac_ext
4306   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; then
4311    if test "$lt_cv_prog_gnu_ld" = yes; then
4312     case `/usr/bin/file conftest.$ac_objext` in
4313     *32-bit*)
4314       LD="${LD-ld} -melf32bsmip"
4315       ;;
4316     *N32*)
4317       LD="${LD-ld} -melf32bmipn32"
4318       ;;
4319     *64-bit*)
4320       LD="${LD-ld} -melf64bmip"
4321       ;;
4322     esac
4323    else
4324     case `/usr/bin/file conftest.$ac_objext` in
4325     *32-bit*)
4326       LD="${LD-ld} -32"
4327       ;;
4328     *N32*)
4329       LD="${LD-ld} -n32"
4330       ;;
4331     *64-bit*)
4332       LD="${LD-ld} -64"
4333       ;;
4334     esac
4335    fi
4336   fi
4337   rm -rf conftest*
4338   ;;
4339
4340 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4341 s390*-*linux*|sparc*-*linux*)
4342   # Find out which ABI we are using.
4343   echo 'int i;' > conftest.$ac_ext
4344   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349     case `/usr/bin/file conftest.o` in
4350     *32-bit*)
4351       case $host in
4352         x86_64-*kfreebsd*-gnu)
4353           LD="${LD-ld} -m elf_i386_fbsd"
4354           ;;
4355         x86_64-*linux*)
4356           LD="${LD-ld} -m elf_i386"
4357           ;;
4358         ppc64-*linux*|powerpc64-*linux*)
4359           LD="${LD-ld} -m elf32ppclinux"
4360           ;;
4361         s390x-*linux*)
4362           LD="${LD-ld} -m elf_s390"
4363           ;;
4364         sparc64-*linux*)
4365           LD="${LD-ld} -m elf32_sparc"
4366           ;;
4367       esac
4368       ;;
4369     *64-bit*)
4370       case $host in
4371         x86_64-*kfreebsd*-gnu)
4372           LD="${LD-ld} -m elf_x86_64_fbsd"
4373           ;;
4374         x86_64-*linux*)
4375           LD="${LD-ld} -m elf_x86_64"
4376           ;;
4377         ppc*-*linux*|powerpc*-*linux*)
4378           LD="${LD-ld} -m elf64ppc"
4379           ;;
4380         s390*-*linux*)
4381           LD="${LD-ld} -m elf64_s390"
4382           ;;
4383         sparc*-*linux*)
4384           LD="${LD-ld} -m elf64_sparc"
4385           ;;
4386       esac
4387       ;;
4388     esac
4389   fi
4390   rm -rf conftest*
4391   ;;
4392
4393 *-*-sco3.2v5*)
4394   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4395   SAVE_CFLAGS="$CFLAGS"
4396   CFLAGS="$CFLAGS -belf"
4397   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4398 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4399 if test "${lt_cv_cc_needs_belf+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408      cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414
4415 int
4416 main ()
4417 {
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (ac_try="$ac_link"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_link") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } && {
4437          test -z "$ac_c_werror_flag" ||
4438          test ! -s conftest.err
4439        } && test -s conftest$ac_exeext &&
4440        $as_test_x conftest$ac_exeext; then
4441   lt_cv_cc_needs_belf=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         lt_cv_cc_needs_belf=no
4447 fi
4448
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450       conftest$ac_exeext conftest.$ac_ext
4451      ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457 fi
4458 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4459 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4460   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4461     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4462     CFLAGS="$SAVE_CFLAGS"
4463   fi
4464   ;;
4465 sparc*-*solaris*)
4466   # Find out which ABI we are using.
4467   echo 'int i;' > conftest.$ac_ext
4468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469   (eval $ac_compile) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; then
4473     case `/usr/bin/file conftest.o` in
4474     *64-bit*)
4475       case $lt_cv_prog_gnu_ld in
4476       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4477       *)    LD="${LD-ld} -64" ;;
4478       esac
4479       ;;
4480     esac
4481   fi
4482   rm -rf conftest*
4483   ;;
4484
4485
4486 esac
4487
4488 need_locks="$enable_libtool_lock"
4489
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4500   CPP=
4501 fi
4502 if test -z "$CPP"; then
4503   if test "${ac_cv_prog_CPP+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506       # Double quotes because CPP needs to be expanded
4507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4508     do
4509       ac_preproc_ok=false
4510 for ac_c_preproc_warn_flag in '' yes
4511 do
4512   # Use a header file that comes with gcc, so configuring glibc
4513   # with a fresh cross-compiler works.
4514   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515   # <limits.h> exists even on freestanding compilers.
4516   # On the NeXT, cc -E runs the code through the compiler's parser,
4517   # not just through cpp. "Syntax error" is here to catch this case.
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 #ifdef __STDC__
4525 # include <limits.h>
4526 #else
4527 # include <assert.h>
4528 #endif
4529                      Syntax error
4530 _ACEOF
4531 if { (ac_try="$ac_cpp conftest.$ac_ext"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } >/dev/null && {
4544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4545          test ! -s conftest.err
4546        }; then
4547   :
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552   # Broken: fails on valid input.
4553 continue
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557
4558   # OK, works on sane cases.  Now check whether nonexistent headers
4559   # can be detected and how.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <ac_nonexistent.h>
4567 _ACEOF
4568 if { (ac_try="$ac_cpp conftest.$ac_ext"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } >/dev/null && {
4581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582          test ! -s conftest.err
4583        }; then
4584   # Broken: success on invalid input.
4585 continue
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590   # Passes both tests.
4591 ac_preproc_ok=:
4592 break
4593 fi
4594
4595 rm -f conftest.err conftest.$ac_ext
4596
4597 done
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then
4601   break
4602 fi
4603
4604     done
4605     ac_cv_prog_CPP=$CPP
4606
4607 fi
4608   CPP=$ac_cv_prog_CPP
4609 else
4610   ac_cv_prog_CPP=$CPP
4611 fi
4612 { echo "$as_me:$LINENO: result: $CPP" >&5
4613 echo "${ECHO_T}$CPP" >&6; }
4614 ac_preproc_ok=false
4615 for ac_c_preproc_warn_flag in '' yes
4616 do
4617   # Use a header file that comes with gcc, so configuring glibc
4618   # with a fresh cross-compiler works.
4619   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4620   # <limits.h> exists even on freestanding compilers.
4621   # On the NeXT, cc -E runs the code through the compiler's parser,
4622   # not just through cpp. "Syntax error" is here to catch this case.
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 #ifdef __STDC__
4630 # include <limits.h>
4631 #else
4632 # include <assert.h>
4633 #endif
4634                      Syntax error
4635 _ACEOF
4636 if { (ac_try="$ac_cpp conftest.$ac_ext"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } >/dev/null && {
4649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4650          test ! -s conftest.err
4651        }; then
4652   :
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657   # Broken: fails on valid input.
4658 continue
4659 fi
4660
4661 rm -f conftest.err conftest.$ac_ext
4662
4663   # OK, works on sane cases.  Now check whether nonexistent headers
4664   # can be detected and how.
4665   cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h.  */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h.  */
4671 #include <ac_nonexistent.h>
4672 _ACEOF
4673 if { (ac_try="$ac_cpp conftest.$ac_ext"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } >/dev/null && {
4686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4687          test ! -s conftest.err
4688        }; then
4689   # Broken: success on invalid input.
4690 continue
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695   # Passes both tests.
4696 ac_preproc_ok=:
4697 break
4698 fi
4699
4700 rm -f conftest.err conftest.$ac_ext
4701
4702 done
4703 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4704 rm -f conftest.err conftest.$ac_ext
4705 if $ac_preproc_ok; then
4706   :
4707 else
4708   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4711 See \`config.log' for more details." >&2;}
4712    { (exit 1); exit 1; }; }
4713 fi
4714
4715 ac_ext=c
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720
4721
4722 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4723 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4724 if test "${ac_cv_header_stdc+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #include <stdlib.h>
4734 #include <stdarg.h>
4735 #include <string.h>
4736 #include <float.h>
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_compile") 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } && {
4760          test -z "$ac_c_werror_flag" ||
4761          test ! -s conftest.err
4762        } && test -s conftest.$ac_objext; then
4763   ac_cv_header_stdc=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768         ac_cv_header_stdc=no
4769 fi
4770
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773 if test $ac_cv_header_stdc = yes; then
4774   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 #include <string.h>
4782
4783 _ACEOF
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785   $EGREP "memchr" >/dev/null 2>&1; then
4786   :
4787 else
4788   ac_cv_header_stdc=no
4789 fi
4790 rm -f conftest*
4791
4792 fi
4793
4794 if test $ac_cv_header_stdc = yes; then
4795   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 #include <stdlib.h>
4803
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806   $EGREP "free" >/dev/null 2>&1; then
4807   :
4808 else
4809   ac_cv_header_stdc=no
4810 fi
4811 rm -f conftest*
4812
4813 fi
4814
4815 if test $ac_cv_header_stdc = yes; then
4816   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817   if test "$cross_compiling" = yes; then
4818   :
4819 else
4820   cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826 #include <ctype.h>
4827 #include <stdlib.h>
4828 #if ((' ' & 0x0FF) == 0x020)
4829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4831 #else
4832 # define ISLOWER(c) \
4833                    (('a' <= (c) && (c) <= 'i') \
4834                      || ('j' <= (c) && (c) <= 'r') \
4835                      || ('s' <= (c) && (c) <= 'z'))
4836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4837 #endif
4838
4839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4840 int
4841 main ()
4842 {
4843   int i;
4844   for (i = 0; i < 256; i++)
4845     if (XOR (islower (i), ISLOWER (i))
4846         || toupper (i) != TOUPPER (i))
4847       return 2;
4848   return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest$ac_exeext
4852 if { (ac_try="$ac_link"
4853 case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_link") 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4862   { (case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_try") 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; }; then
4871   :
4872 else
4873   echo "$as_me: program exited with status $ac_status" >&5
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ( exit $ac_status )
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4881 fi
4882
4883
4884 fi
4885 fi
4886 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4887 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4889
4890 cat >>confdefs.h <<\_ACEOF
4891 #define STDC_HEADERS 1
4892 _ACEOF
4893
4894 fi
4895
4896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4907                   inttypes.h stdint.h unistd.h
4908 do
4909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 $ac_includes_default
4922
4923 #include <$ac_header>
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_compile") 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } && {
4939          test -z "$ac_c_werror_flag" ||
4940          test ! -s conftest.err
4941        } && test -s conftest.$ac_objext; then
4942   eval "$as_ac_Header=yes"
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         eval "$as_ac_Header=no"
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 ac_res=`eval echo '${'$as_ac_Header'}'`
4953                { echo "$as_me:$LINENO: result: $ac_res" >&5
4954 echo "${ECHO_T}$ac_res" >&6; }
4955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4956   cat >>confdefs.h <<_ACEOF
4957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4958 _ACEOF
4959
4960 fi
4961
4962 done
4963
4964
4965
4966 for ac_header in dlfcn.h
4967 do
4968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 fi
4975 ac_res=`eval echo '${'$as_ac_Header'}'`
4976                { echo "$as_me:$LINENO: result: $ac_res" >&5
4977 echo "${ECHO_T}$ac_res" >&6; }
4978 else
4979   # Is the header compilable?
4980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 $ac_includes_default
4989 #include <$ac_header>
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_compile") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } && {
5005          test -z "$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        } && test -s conftest.$ac_objext; then
5008   ac_header_compiler=yes
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013         ac_header_compiler=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 echo "${ECHO_T}$ac_header_compiler" >&6; }
5019
5020 # Is the header present?
5021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <$ac_header>
5030 _ACEOF
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 case "(($ac_try" in
5033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034   *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038   ac_status=$?
5039   grep -v '^ *+' conftest.er1 >conftest.err
5040   rm -f conftest.er1
5041   cat conftest.err >&5
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } >/dev/null && {
5044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5045          test ! -s conftest.err
5046        }; then
5047   ac_header_preproc=yes
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052   ac_header_preproc=no
5053 fi
5054
5055 rm -f conftest.err conftest.$ac_ext
5056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5057 echo "${ECHO_T}$ac_header_preproc" >&6; }
5058
5059 # So?  What about this header?
5060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5061   yes:no: )
5062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5066     ac_header_preproc=yes
5067     ;;
5068   no:yes:* )
5069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5081
5082     ;;
5083 esac
5084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   eval "$as_ac_Header=\$ac_header_preproc"
5090 fi
5091 ac_res=`eval echo '${'$as_ac_Header'}'`
5092                { echo "$as_me:$LINENO: result: $ac_res" >&5
5093 echo "${ECHO_T}$ac_res" >&6; }
5094
5095 fi
5096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5097   cat >>confdefs.h <<_ACEOF
5098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5099 _ACEOF
5100
5101 fi
5102
5103 done
5104
5105 ac_ext=cpp
5106 ac_cpp='$CXXCPP $CPPFLAGS'
5107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 if test -z "$CXX"; then
5111   if test -n "$CCC"; then
5112     CXX=$CCC
5113   else
5114     if test -n "$ac_tool_prefix"; then
5115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5116   do
5117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5121 if test "${ac_cv_prog_CXX+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   if test -n "$CXX"; then
5125   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 CXX=$ac_cv_prog_CXX
5145 if test -n "$CXX"; then
5146   { echo "$as_me:$LINENO: result: $CXX" >&5
5147 echo "${ECHO_T}$CXX" >&6; }
5148 else
5149   { echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6; }
5151 fi
5152
5153
5154     test -n "$CXX" && break
5155   done
5156 fi
5157 if test -z "$CXX"; then
5158   ac_ct_CXX=$CXX
5159   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   if test -n "$ac_ct_CXX"; then
5169   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178     ac_cv_prog_ac_ct_CXX="$ac_prog"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5189 if test -n "$ac_ct_CXX"; then
5190   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5191 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5192 else
5193   { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197
5198   test -n "$ac_ct_CXX" && break
5199 done
5200
5201   if test "x$ac_ct_CXX" = x; then
5202     CXX="g++"
5203   else
5204     case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet.  If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&5
5209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5210 whose name does not start with the host triplet.  If you think this
5211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214     CXX=$ac_ct_CXX
5215   fi
5216 fi
5217
5218   fi
5219 fi
5220 # Provide some information about the compiler.
5221 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5222 ac_compiler=`set X $ac_compile; echo $2`
5223 { (ac_try="$ac_compiler --version >&5"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_compiler --version >&5") 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }
5233 { (ac_try="$ac_compiler -v >&5"
5234 case "(($ac_try" in
5235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236   *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239   (eval "$ac_compiler -v >&5") 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }
5243 { (ac_try="$ac_compiler -V >&5"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249   (eval "$ac_compiler -V >&5") 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }
5253
5254 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5255 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5256 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265
5266 int
5267 main ()
5268 {
5269 #ifndef __GNUC__
5270        choke me
5271 #endif
5272
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (ac_try="$ac_compile"
5279 case "(($ac_try" in
5280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281   *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284   (eval "$ac_compile") 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } && {
5291          test -z "$ac_cxx_werror_flag" ||
5292          test ! -s conftest.err
5293        } && test -s conftest.$ac_objext; then
5294   ac_compiler_gnu=yes
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299         ac_compiler_gnu=no
5300 fi
5301
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5304
5305 fi
5306 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5307 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5308 GXX=`test $ac_compiler_gnu = yes && echo yes`
5309 ac_test_CXXFLAGS=${CXXFLAGS+set}
5310 ac_save_CXXFLAGS=$CXXFLAGS
5311 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5313 if test "${ac_cv_prog_cxx_g+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5317    ac_cxx_werror_flag=yes
5318    ac_cv_prog_cxx_g=no
5319    CXXFLAGS="-g"
5320    cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326
5327 int
5328 main ()
5329 {
5330
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_compile") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } && {
5349          test -z "$ac_cxx_werror_flag" ||
5350          test ! -s conftest.err
5351        } && test -s conftest.$ac_objext; then
5352   ac_cv_prog_cxx_g=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357         CXXFLAGS=""
5358       cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364
5365 int
5366 main ()
5367 {
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_compile") 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } && {
5387          test -z "$ac_cxx_werror_flag" ||
5388          test ! -s conftest.err
5389        } && test -s conftest.$ac_objext; then
5390   :
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5396          CXXFLAGS="-g"
5397          cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403
5404 int
5405 main ()
5406 {
5407
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5414 case "(($ac_try" in
5415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416   *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419   (eval "$ac_compile") 2>conftest.er1
5420   ac_status=$?
5421   grep -v '^ *+' conftest.er1 >conftest.err
5422   rm -f conftest.er1
5423   cat conftest.err >&5
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } && {
5426          test -z "$ac_cxx_werror_flag" ||
5427          test ! -s conftest.err
5428        } && test -s conftest.$ac_objext; then
5429   ac_cv_prog_cxx_g=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434
5435 fi
5436
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5445 fi
5446 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5447 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5448 if test "$ac_test_CXXFLAGS" = set; then
5449   CXXFLAGS=$ac_save_CXXFLAGS
5450 elif test $ac_cv_prog_cxx_g = yes; then
5451   if test "$GXX" = yes; then
5452     CXXFLAGS="-g -O2"
5453   else
5454     CXXFLAGS="-g"
5455   fi
5456 else
5457   if test "$GXX" = yes; then
5458     CXXFLAGS="-O2"
5459   else
5460     CXXFLAGS=
5461   fi
5462 fi
5463 ac_ext=cpp
5464 ac_cpp='$CXXCPP $CPPFLAGS'
5465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5468
5469 depcc="$CXX"  am_compiler_list=
5470
5471 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5472 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5473 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5477   # We make a subdir and do the tests there.  Otherwise we can end up
5478   # making bogus files that we don't know about and never remove.  For
5479   # instance it was reported that on HP-UX the gcc test will end up
5480   # making a dummy file named `D' -- because `-MD' means `put the output
5481   # in D'.
5482   mkdir conftest.dir
5483   # Copy depcomp to subdir because otherwise we won't find it if we're
5484   # using a relative directory.
5485   cp "$am_depcomp" conftest.dir
5486   cd conftest.dir
5487   # We will build objects and dependencies in a subdirectory because
5488   # it helps to detect inapplicable dependency modes.  For instance
5489   # both Tru64's cc and ICC support -MD to output dependencies as a
5490   # side effect of compilation, but ICC will put the dependencies in
5491   # the current directory while Tru64 will put them in the object
5492   # directory.
5493   mkdir sub
5494
5495   am_cv_CXX_dependencies_compiler_type=none
5496   if test "$am_compiler_list" = ""; then
5497      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5498   fi
5499   for depmode in $am_compiler_list; do
5500     # Setup a source with many dependencies, because some compilers
5501     # like to wrap large dependency lists on column 80 (with \), and
5502     # we should not choose a depcomp mode which is confused by this.
5503     #
5504     # We need to recreate these files for each test, as the compiler may
5505     # overwrite some of them when testing with obscure command lines.
5506     # This happens at least with the AIX C compiler.
5507     : > sub/conftest.c
5508     for i in 1 2 3 4 5 6; do
5509       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5510       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5511       # Solaris 8's {/usr,}/bin/sh.
5512       touch sub/conftst$i.h
5513     done
5514     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5515
5516     case $depmode in
5517     nosideeffect)
5518       # after this tag, mechanisms are not by side-effect, so they'll
5519       # only be used when explicitly requested
5520       if test "x$enable_dependency_tracking" = xyes; then
5521         continue
5522       else
5523         break
5524       fi
5525       ;;
5526     none) break ;;
5527     esac
5528     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5529     # mode.  It turns out that the SunPro C++ compiler does not properly
5530     # handle `-M -o', and we need to detect this.
5531     if depmode=$depmode \
5532        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5533        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5534        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5535          >/dev/null 2>conftest.err &&
5536        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5537        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5538        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5539        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5540       # icc doesn't choke on unknown options, it will just issue warnings
5541       # or remarks (even with -Werror).  So we grep stderr for any message
5542       # that says an option was ignored or not supported.
5543       # When given -MP, icc 7.0 and 7.1 complain thusly:
5544       #   icc: Command line warning: ignoring option '-M'; no argument required
5545       # The diagnosis changed in icc 8.0:
5546       #   icc: Command line remark: option '-MP' not supported
5547       if (grep 'ignoring option' conftest.err ||
5548           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5549         am_cv_CXX_dependencies_compiler_type=$depmode
5550         break
5551       fi
5552     fi
5553   done
5554
5555   cd ..
5556   rm -rf conftest.dir
5557 else
5558   am_cv_CXX_dependencies_compiler_type=none
5559 fi
5560
5561 fi
5562 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5563 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5564 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5565
5566  if
5567   test "x$enable_dependency_tracking" != xno \
5568   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5569   am__fastdepCXX_TRUE=
5570   am__fastdepCXX_FALSE='#'
5571 else
5572   am__fastdepCXX_TRUE='#'
5573   am__fastdepCXX_FALSE=
5574 fi
5575
5576
5577
5578
5579 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5580     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5581     (test "X$CXX" != "Xg++"))) ; then
5582   ac_ext=cpp
5583 ac_cpp='$CXXCPP $CPPFLAGS'
5584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5587 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5588 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5589 if test -z "$CXXCPP"; then
5590   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593       # Double quotes because CXXCPP needs to be expanded
5594     for CXXCPP in "$CXX -E" "/lib/cpp"
5595     do
5596       ac_preproc_ok=false
5597 for ac_cxx_preproc_warn_flag in '' yes
5598 do
5599   # Use a header file that comes with gcc, so configuring glibc
5600   # with a fresh cross-compiler works.
5601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602   # <limits.h> exists even on freestanding compilers.
5603   # On the NeXT, cc -E runs the code through the compiler's parser,
5604   # not just through cpp. "Syntax error" is here to catch this case.
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #ifdef __STDC__
5612 # include <limits.h>
5613 #else
5614 # include <assert.h>
5615 #endif
5616                      Syntax error
5617 _ACEOF
5618 if { (ac_try="$ac_cpp conftest.$ac_ext"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } >/dev/null && {
5631          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5632          test ! -s conftest.err
5633        }; then
5634   :
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639   # Broken: fails on valid input.
5640 continue
5641 fi
5642
5643 rm -f conftest.err conftest.$ac_ext
5644
5645   # OK, works on sane cases.  Now check whether nonexistent headers
5646   # can be detected and how.
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } >/dev/null && {
5668          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5669          test ! -s conftest.err
5670        }; then
5671   # Broken: success on invalid input.
5672 continue
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677   # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5680 fi
5681
5682 rm -f conftest.err conftest.$ac_ext
5683
5684 done
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5688   break
5689 fi
5690
5691     done
5692     ac_cv_prog_CXXCPP=$CXXCPP
5693
5694 fi
5695   CXXCPP=$ac_cv_prog_CXXCPP
5696 else
5697   ac_cv_prog_CXXCPP=$CXXCPP
5698 fi
5699 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6; }
5701 ac_preproc_ok=false
5702 for ac_cxx_preproc_warn_flag in '' yes
5703 do
5704   # Use a header file that comes with gcc, so configuring glibc
5705   # with a fresh cross-compiler works.
5706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707   # <limits.h> exists even on freestanding compilers.
5708   # On the NeXT, cc -E runs the code through the compiler's parser,
5709   # not just through cpp. "Syntax error" is here to catch this case.
5710   cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716 #ifdef __STDC__
5717 # include <limits.h>
5718 #else
5719 # include <assert.h>
5720 #endif
5721                      Syntax error
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } >/dev/null && {
5736          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737          test ! -s conftest.err
5738        }; then
5739   :
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744   # Broken: fails on valid input.
5745 continue
5746 fi
5747
5748 rm -f conftest.err conftest.$ac_ext
5749
5750   # OK, works on sane cases.  Now check whether nonexistent headers
5751   # can be detected and how.
5752   cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 #include <ac_nonexistent.h>
5759 _ACEOF
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } >/dev/null && {
5773          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774          test ! -s conftest.err
5775        }; then
5776   # Broken: success on invalid input.
5777 continue
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782   # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5785 fi
5786
5787 rm -f conftest.err conftest.$ac_ext
5788
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5793   :
5794 else
5795   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5796 See \`config.log' for more details." >&5
5797 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&2;}
5799    { (exit 1); exit 1; }; }
5800 fi
5801
5802 ac_ext=cpp
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807
5808 fi
5809
5810
5811 ac_ext=f
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816   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
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$F77"; then
5826   ac_cv_prog_F77="$F77" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 F77=$ac_cv_prog_F77
5846 if test -n "$F77"; then
5847   { echo "$as_me:$LINENO: result: $F77" >&5
5848 echo "${ECHO_T}$F77" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$F77" && break
5856   done
5857 fi
5858 if test -z "$F77"; then
5859   ac_ct_F77=$F77
5860   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
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_F77"; then
5870   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_F77="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5890 if test -n "$ac_ct_F77"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5892 echo "${ECHO_T}$ac_ct_F77" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_F77" && break
5900 done
5901
5902   if test "x$ac_ct_F77" = x; then
5903     F77=""
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     F77=$ac_ct_F77
5916   fi
5917 fi
5918
5919
5920 # Provide some information about the compiler.
5921 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922 ac_compiler=`set X $ac_compile; echo $2`
5923 { (ac_try="$ac_compiler --version >&5"
5924 case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_compiler --version >&5") 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }
5933 { (ac_try="$ac_compiler -v >&5"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_compiler -v >&5") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }
5943 { (ac_try="$ac_compiler -V >&5"
5944 case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_compiler -V >&5") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }
5953 rm -f a.out
5954
5955 # If we don't use `.F' as extension, the preprocessor is not run on the
5956 # input file.  (Note that this only needs to work for GNU compilers.)
5957 ac_save_ext=$ac_ext
5958 ac_ext=F
5959 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5960 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5961 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965       program main
5966 #ifndef __GNUC__
5967        choke me
5968 #endif
5969
5970       end
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5974 case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_compile") 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } && {
5986          test -z "$ac_f77_werror_flag" ||
5987          test ! -s conftest.err
5988        } && test -s conftest.$ac_objext; then
5989   ac_compiler_gnu=yes
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994         ac_compiler_gnu=no
5995 fi
5996
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5999
6000 fi
6001 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6003 ac_ext=$ac_save_ext
6004 ac_test_FFLAGS=${FFLAGS+set}
6005 ac_save_FFLAGS=$FFLAGS
6006 FFLAGS=
6007 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6009 if test "${ac_cv_prog_f77_g+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   FFLAGS=-g
6013 cat >conftest.$ac_ext <<_ACEOF
6014       program main
6015
6016       end
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compile") 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && {
6032          test -z "$ac_f77_werror_flag" ||
6033          test ! -s conftest.err
6034        } && test -s conftest.$ac_objext; then
6035   ac_cv_prog_f77_g=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_cv_prog_f77_g=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044
6045 fi
6046 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6048 if test "$ac_test_FFLAGS" = set; then
6049   FFLAGS=$ac_save_FFLAGS
6050 elif test $ac_cv_prog_f77_g = yes; then
6051   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6052     FFLAGS="-g -O2"
6053   else
6054     FFLAGS="-g"
6055   fi
6056 else
6057   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6058     FFLAGS="-O2"
6059   else
6060     FFLAGS=
6061   fi
6062 fi
6063
6064 G77=`test $ac_compiler_gnu = yes && echo yes`
6065 ac_ext=c
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071
6072
6073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6074
6075 # find the maximum length of command line arguments
6076 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081     i=0
6082   teststring="ABCD"
6083
6084   case $build_os in
6085   msdosdjgpp*)
6086     # On DJGPP, this test can blow up pretty badly due to problems in libc
6087     # (any single argument exceeding 2000 bytes causes a buffer overrun
6088     # during glob expansion).  Even if it were fixed, the result of this
6089     # check would be larger than it should be.
6090     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6091     ;;
6092
6093   gnu*)
6094     # Under GNU Hurd, this test is not required because there is
6095     # no limit to the length of command line arguments.
6096     # Libtool will interpret -1 as no limit whatsoever
6097     lt_cv_sys_max_cmd_len=-1;
6098     ;;
6099
6100   cygwin* | mingw*)
6101     # On Win9x/ME, this test blows up -- it succeeds, but takes
6102     # about 5 minutes as the teststring grows exponentially.
6103     # Worse, since 9x/ME are not pre-emptively multitasking,
6104     # you end up with a "frozen" computer, even though with patience
6105     # the test eventually succeeds (with a max line length of 256k).
6106     # Instead, let's just punt: use the minimum linelength reported by
6107     # all of the supported platforms: 8192 (on NT/2K/XP).
6108     lt_cv_sys_max_cmd_len=8192;
6109     ;;
6110
6111   amigaos*)
6112     # On AmigaOS with pdksh, this test takes hours, literally.
6113     # So we just punt and use a minimum line length of 8192.
6114     lt_cv_sys_max_cmd_len=8192;
6115     ;;
6116
6117   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6118     # This has been around since 386BSD, at least.  Likely further.
6119     if test -x /sbin/sysctl; then
6120       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6121     elif test -x /usr/sbin/sysctl; then
6122       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6123     else
6124       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6125     fi
6126     # And add a safety zone
6127     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6129     ;;
6130
6131   interix*)
6132     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6133     lt_cv_sys_max_cmd_len=196608
6134     ;;
6135
6136   osf*)
6137     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139     # nice to cause kernel panics so lets avoid the loop below.
6140     # First set a reasonable default.
6141     lt_cv_sys_max_cmd_len=16384
6142     #
6143     if test -x /sbin/sysconfig; then
6144       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6146       esac
6147     fi
6148     ;;
6149   sco3.2v5*)
6150     lt_cv_sys_max_cmd_len=102400
6151     ;;
6152   sysv5* | sco5v6* | sysv4.2uw2*)
6153     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154     if test -n "$kargmax"; then
6155       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6156     else
6157       lt_cv_sys_max_cmd_len=32768
6158     fi
6159     ;;
6160   *)
6161     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6162     if test -n "$lt_cv_sys_max_cmd_len"; then
6163       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6165     else
6166       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6167       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6168                = "XX$teststring") >/dev/null 2>&1 &&
6169               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6170               lt_cv_sys_max_cmd_len=$new_result &&
6171               test $i != 17 # 1/2 MB should be enough
6172       do
6173         i=`expr $i + 1`
6174         teststring=$teststring$teststring
6175       done
6176       teststring=
6177       # Add a significant safety factor because C++ compilers can tack on massive
6178       # amounts of additional arguments before passing them to the linker.
6179       # It appears as though 1/2 is a usable value.
6180       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6181     fi
6182     ;;
6183   esac
6184
6185 fi
6186
6187 if test -n $lt_cv_sys_max_cmd_len ; then
6188   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6189 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6190 else
6191   { echo "$as_me:$LINENO: result: none" >&5
6192 echo "${ECHO_T}none" >&6; }
6193 fi
6194
6195
6196
6197
6198
6199 # Check for command to grab the raw symbol name followed by C symbol from nm.
6200 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6201 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205
6206 # These are sane defaults that work on at least a few old systems.
6207 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6208
6209 # Character class describing NM global symbol codes.
6210 symcode='[BCDEGRST]'
6211
6212 # Regexp to match symbols that can be accessed directly from C.
6213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6214
6215 # Transform an extracted symbol line into a proper C declaration
6216 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6217
6218 # Transform an extracted symbol line into symbol name and symbol address
6219 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'"
6220
6221 # Define system-specific variables.
6222 case $host_os in
6223 aix*)
6224   symcode='[BCDT]'
6225   ;;
6226 cygwin* | mingw* | pw32*)
6227   symcode='[ABCDGISTW]'
6228   ;;
6229 hpux*) # Its linker distinguishes data from code symbols
6230   if test "$host_cpu" = ia64; then
6231     symcode='[ABCDEGRST]'
6232   fi
6233   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6234   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'"
6235   ;;
6236 linux* | k*bsd*-gnu)
6237   if test "$host_cpu" = ia64; then
6238     symcode='[ABCDGIRSTW]'
6239     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240     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'"
6241   fi
6242   ;;
6243 irix* | nonstopux*)
6244   symcode='[BCDEGRST]'
6245   ;;
6246 osf*)
6247   symcode='[BCDEGQRST]'
6248   ;;
6249 solaris*)
6250   symcode='[BDRT]'
6251   ;;
6252 sco3.2v5*)
6253   symcode='[DT]'
6254   ;;
6255 sysv4.2uw2*)
6256   symcode='[DT]'
6257   ;;
6258 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6259   symcode='[ABDT]'
6260   ;;
6261 sysv4)
6262   symcode='[DFNSTU]'
6263   ;;
6264 esac
6265
6266 # Handle CRLF in mingw tool chain
6267 opt_cr=
6268 case $build_os in
6269 mingw*)
6270   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6271   ;;
6272 esac
6273
6274 # If we're using GNU nm, then use its standard symbol codes.
6275 case `$NM -V 2>&1` in
6276 *GNU* | *'with BFD'*)
6277   symcode='[ABCDGIRSTW]' ;;
6278 esac
6279
6280 # Try without a prefix undercore, then with it.
6281 for ac_symprfx in "" "_"; do
6282
6283   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6284   symxfrm="\\1 $ac_symprfx\\2 \\2"
6285
6286   # Write the raw and C identifiers.
6287   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288
6289   # Check to see that the pipe works correctly.
6290   pipe_works=no
6291
6292   rm -f conftest*
6293   cat > conftest.$ac_ext <<EOF
6294 #ifdef __cplusplus
6295 extern "C" {
6296 #endif
6297 char nm_test_var;
6298 void nm_test_func(){}
6299 #ifdef __cplusplus
6300 }
6301 #endif
6302 int main(){nm_test_var='a';nm_test_func();return(0);}
6303 EOF
6304
6305   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306   (eval $ac_compile) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; then
6310     # Now try to grab the symbols.
6311     nlist=conftest.nm
6312     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6313   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } && test -s "$nlist"; then
6317       # Try sorting and uniquifying the output.
6318       if sort "$nlist" | uniq > "$nlist"T; then
6319         mv -f "$nlist"T "$nlist"
6320       else
6321         rm -f "$nlist"T
6322       fi
6323
6324       # Make sure that we snagged all the symbols we need.
6325       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6326         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6327           cat <<EOF > conftest.$ac_ext
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331
6332 EOF
6333           # Now generate the symbol file.
6334           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6335
6336           cat <<EOF >> conftest.$ac_ext
6337 #if defined (__STDC__) && __STDC__
6338 # define lt_ptr_t void *
6339 #else
6340 # define lt_ptr_t char *
6341 # define const
6342 #endif
6343
6344 /* The mapping between symbol names and symbols. */
6345 const struct {
6346   const char *name;
6347   lt_ptr_t address;
6348 }
6349 lt_preloaded_symbols[] =
6350 {
6351 EOF
6352           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6353           cat <<\EOF >> conftest.$ac_ext
6354   {0, (lt_ptr_t) 0}
6355 };
6356
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360 EOF
6361           # Now try linking the two files.
6362           mv conftest.$ac_objext conftstm.$ac_objext
6363           lt_save_LIBS="$LIBS"
6364           lt_save_CFLAGS="$CFLAGS"
6365           LIBS="conftstm.$ac_objext"
6366           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6367           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6372             pipe_works=yes
6373           fi
6374           LIBS="$lt_save_LIBS"
6375           CFLAGS="$lt_save_CFLAGS"
6376         else
6377           echo "cannot find nm_test_func in $nlist" >&5
6378         fi
6379       else
6380         echo "cannot find nm_test_var in $nlist" >&5
6381       fi
6382     else
6383       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6384     fi
6385   else
6386     echo "$progname: failed program was:" >&5
6387     cat conftest.$ac_ext >&5
6388   fi
6389   rm -f conftest* conftst*
6390
6391   # Do not use the global_symbol_pipe unless it works.
6392   if test "$pipe_works" = yes; then
6393     break
6394   else
6395     lt_cv_sys_global_symbol_pipe=
6396   fi
6397 done
6398
6399 fi
6400
6401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6402   lt_cv_sys_global_symbol_to_cdecl=
6403 fi
6404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6405   { echo "$as_me:$LINENO: result: failed" >&5
6406 echo "${ECHO_T}failed" >&6; }
6407 else
6408   { echo "$as_me:$LINENO: result: ok" >&5
6409 echo "${ECHO_T}ok" >&6; }
6410 fi
6411
6412 { echo "$as_me:$LINENO: checking for objdir" >&5
6413 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6414 if test "${lt_cv_objdir+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   rm -f .libs 2>/dev/null
6418 mkdir .libs 2>/dev/null
6419 if test -d .libs; then
6420   lt_cv_objdir=.libs
6421 else
6422   # MS-DOS does not allow filenames that begin with a dot.
6423   lt_cv_objdir=_libs
6424 fi
6425 rmdir .libs 2>/dev/null
6426 fi
6427 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6428 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6429 objdir=$lt_cv_objdir
6430
6431
6432
6433
6434
6435 case $host_os in
6436 aix3*)
6437   # AIX sometimes has problems with the GCC collect2 program.  For some
6438   # reason, if we set the COLLECT_NAMES environment variable, the problems
6439   # vanish in a puff of smoke.
6440   if test "X${COLLECT_NAMES+set}" != Xset; then
6441     COLLECT_NAMES=
6442     export COLLECT_NAMES
6443   fi
6444   ;;
6445 esac
6446
6447 # Sed substitution that helps us do robust quoting.  It backslashifies
6448 # metacharacters that are still active within double-quoted strings.
6449 Xsed='sed -e 1s/^X//'
6450 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6451
6452 # Same as above, but do not quote variable references.
6453 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6454
6455 # Sed substitution to delay expansion of an escaped shell variable in a
6456 # double_quote_subst'ed string.
6457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6458
6459 # Sed substitution to avoid accidental globbing in evaled expressions
6460 no_glob_subst='s/\*/\\\*/g'
6461
6462 # Constants:
6463 rm="rm -f"
6464
6465 # Global variables:
6466 default_ofile=libtool
6467 can_build_shared=yes
6468
6469 # All known linkers require a `.a' archive for static linking (except MSVC,
6470 # which needs '.lib').
6471 libext=a
6472 ltmain="$ac_aux_dir/ltmain.sh"
6473 ofile="$default_ofile"
6474 with_gnu_ld="$lt_cv_prog_gnu_ld"
6475
6476 if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$AR"; then
6485   ac_cv_prog_AR="$AR" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_AR="${ac_tool_prefix}ar"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 AR=$ac_cv_prog_AR
6505 if test -n "$AR"; then
6506   { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6508 else
6509   { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_AR"; then
6516   ac_ct_AR=$AR
6517   # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   if test -n "$ac_ct_AR"; then
6525   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_ac_ct_AR="ar"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_AR" = x; then
6554     AR="false"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     AR=$ac_ct_AR
6567   fi
6568 else
6569   AR="$ac_cv_prog_AR"
6570 fi
6571
6572 if test -n "$ac_tool_prefix"; then
6573   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_prog_RANLIB+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   if test -n "$RANLIB"; then
6581   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588   for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6603 echo "${ECHO_T}$RANLIB" >&6; }
6604 else
6605   { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6607 fi
6608
6609
6610 fi
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612   ac_ct_RANLIB=$RANLIB
6613   # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   if test -n "$ac_ct_RANLIB"; then
6621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628   for ac_exec_ext in '' $ac_executable_extensions; do
6629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630     ac_cv_prog_ac_ct_RANLIB="ranlib"
6631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635 done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6643 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6644 else
6645   { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6647 fi
6648
6649   if test "x$ac_ct_RANLIB" = x; then
6650     RANLIB=":"
6651   else
6652     case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet.  If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&5
6657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6658 whose name does not start with the host triplet.  If you think this
6659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6660 ac_tool_warned=yes ;;
6661 esac
6662     RANLIB=$ac_ct_RANLIB
6663   fi
6664 else
6665   RANLIB="$ac_cv_prog_RANLIB"
6666 fi
6667
6668 if test -n "$ac_tool_prefix"; then
6669   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}strip; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_prog_STRIP+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   if test -n "$STRIP"; then
6677   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 STRIP=$ac_cv_prog_STRIP
6697 if test -n "$STRIP"; then
6698   { echo "$as_me:$LINENO: result: $STRIP" >&5
6699 echo "${ECHO_T}$STRIP" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 fi
6707 if test -z "$ac_cv_prog_STRIP"; then
6708   ac_ct_STRIP=$STRIP
6709   # Extract the first word of "strip", so it can be a program name with args.
6710 set dummy strip; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   if test -n "$ac_ct_STRIP"; then
6717   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_ac_ct_STRIP="strip"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737 if test -n "$ac_ct_STRIP"; then
6738   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6739 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745   if test "x$ac_ct_STRIP" = x; then
6746     STRIP=":"
6747   else
6748     case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet.  If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&5
6753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6754 whose name does not start with the host triplet.  If you think this
6755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758     STRIP=$ac_ct_STRIP
6759   fi
6760 else
6761   STRIP="$ac_cv_prog_STRIP"
6762 fi
6763
6764
6765 old_CC="$CC"
6766 old_CFLAGS="$CFLAGS"
6767
6768 # Set sane defaults for various variables
6769 test -z "$AR" && AR=ar
6770 test -z "$AR_FLAGS" && AR_FLAGS=cru
6771 test -z "$AS" && AS=as
6772 test -z "$CC" && CC=cc
6773 test -z "$LTCC" && LTCC=$CC
6774 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6775 test -z "$DLLTOOL" && DLLTOOL=dlltool
6776 test -z "$LD" && LD=ld
6777 test -z "$LN_S" && LN_S="ln -s"
6778 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6779 test -z "$NM" && NM=nm
6780 test -z "$SED" && SED=sed
6781 test -z "$OBJDUMP" && OBJDUMP=objdump
6782 test -z "$RANLIB" && RANLIB=:
6783 test -z "$STRIP" && STRIP=:
6784 test -z "$ac_objext" && ac_objext=o
6785
6786 # Determine commands to create old-style static archives.
6787 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6788 old_postinstall_cmds='chmod 644 $oldlib'
6789 old_postuninstall_cmds=
6790
6791 if test -n "$RANLIB"; then
6792   case $host_os in
6793   openbsd*)
6794     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6795     ;;
6796   *)
6797     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6798     ;;
6799   esac
6800   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801 fi
6802
6803 for cc_temp in $compiler""; do
6804   case $cc_temp in
6805     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6807     \-*) ;;
6808     *) break;;
6809   esac
6810 done
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812
6813
6814 # Only perform the check for file, if the check method requires it
6815 case $deplibs_check_method in
6816 file_magic*)
6817   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6818     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6819 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $MAGIC_CMD in
6824 [\\/*] |  ?:[\\/]*)
6825   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6826   ;;
6827 *)
6828   lt_save_MAGIC_CMD="$MAGIC_CMD"
6829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831   for ac_dir in $ac_dummy; do
6832     IFS="$lt_save_ifs"
6833     test -z "$ac_dir" && ac_dir=.
6834     if test -f $ac_dir/${ac_tool_prefix}file; then
6835       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6836       if test -n "$file_magic_test_file"; then
6837         case $deplibs_check_method in
6838         "file_magic "*)
6839           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842             $EGREP "$file_magic_regex" > /dev/null; then
6843             :
6844           else
6845             cat <<EOF 1>&2
6846
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such.  This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem.  Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6855
6856 EOF
6857           fi ;;
6858         esac
6859       fi
6860       break
6861     fi
6862   done
6863   IFS="$lt_save_ifs"
6864   MAGIC_CMD="$lt_save_MAGIC_CMD"
6865   ;;
6866 esac
6867 fi
6868
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6873 else
6874   { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878 if test -z "$lt_cv_path_MAGIC_CMD"; then
6879   if test -n "$ac_tool_prefix"; then
6880     { echo "$as_me:$LINENO: checking for file" >&5
6881 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   case $MAGIC_CMD in
6886 [\\/*] |  ?:[\\/]*)
6887   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6888   ;;
6889 *)
6890   lt_save_MAGIC_CMD="$MAGIC_CMD"
6891   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6892   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6893   for ac_dir in $ac_dummy; do
6894     IFS="$lt_save_ifs"
6895     test -z "$ac_dir" && ac_dir=.
6896     if test -f $ac_dir/file; then
6897       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6898       if test -n "$file_magic_test_file"; then
6899         case $deplibs_check_method in
6900         "file_magic "*)
6901           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6902           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6903           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6904             $EGREP "$file_magic_regex" > /dev/null; then
6905             :
6906           else
6907             cat <<EOF 1>&2
6908
6909 *** Warning: the command libtool uses to detect shared libraries,
6910 *** $file_magic_cmd, produces output that libtool cannot recognize.
6911 *** The result is that libtool may fail to recognize shared libraries
6912 *** as such.  This will affect the creation of libtool libraries that
6913 *** depend on shared libraries, but programs linked with such libtool
6914 *** libraries will work regardless of this problem.  Nevertheless, you
6915 *** may want to report the problem to your system manager and/or to
6916 *** bug-libtool@gnu.org
6917
6918 EOF
6919           fi ;;
6920         esac
6921       fi
6922       break
6923     fi
6924   done
6925   IFS="$lt_save_ifs"
6926   MAGIC_CMD="$lt_save_MAGIC_CMD"
6927   ;;
6928 esac
6929 fi
6930
6931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6932 if test -n "$MAGIC_CMD"; then
6933   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6934 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940   else
6941     MAGIC_CMD=:
6942   fi
6943 fi
6944
6945   fi
6946   ;;
6947 esac
6948
6949 enable_dlopen=no
6950 enable_win32_dll=no
6951
6952 # Check whether --enable-libtool-lock was given.
6953 if test "${enable_libtool_lock+set}" = set; then
6954   enableval=$enable_libtool_lock;
6955 fi
6956
6957 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958
6959
6960 # Check whether --with-pic was given.
6961 if test "${with_pic+set}" = set; then
6962   withval=$with_pic; pic_mode="$withval"
6963 else
6964   pic_mode=default
6965 fi
6966
6967 test -z "$pic_mode" && pic_mode=default
6968
6969 # Use C for the default configuration in the libtool script
6970 tagname=
6971 lt_save_CC="$CC"
6972 ac_ext=c
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978
6979 # Source file extension for C test sources.
6980 ac_ext=c
6981
6982 # Object file extension for compiled C test sources.
6983 objext=o
6984 objext=$objext
6985
6986 # Code to be used in simple compile tests
6987 lt_simple_compile_test_code="int some_variable = 0;"
6988
6989 # Code to be used in simple link tests
6990 lt_simple_link_test_code='int main(){return(0);}'
6991
6992
6993 # If no C compiler was specified, use CC.
6994 LTCC=${LTCC-"$CC"}
6995
6996 # If no C compiler flags were specified, use CFLAGS.
6997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6998
6999 # Allow CC to be a program name with arguments.
7000 compiler=$CC
7001
7002
7003 # save warnings/boilerplate of simple test code
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7007 _lt_compiler_boilerplate=`cat conftest.err`
7008 $rm conftest*
7009
7010 ac_outfile=conftest.$ac_objext
7011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7013 _lt_linker_boilerplate=`cat conftest.err`
7014 $rm conftest*
7015
7016
7017
7018 lt_prog_compiler_no_builtin_flag=
7019
7020 if test "$GCC" = yes; then
7021   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7022
7023
7024 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7025 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7026 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   lt_cv_prog_compiler_rtti_exceptions=no
7030   ac_outfile=conftest.$ac_objext
7031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7032    lt_compiler_flag="-fno-rtti -fno-exceptions"
7033    # Insert the option either (1) after the last *FLAGS variable, or
7034    # (2) before a word containing "conftest.", or (3) at the end.
7035    # Note that $ac_compile itself does not contain backslashes and begins
7036    # with a dollar sign (not a hyphen), so the echo should work correctly.
7037    # The option is referenced via a variable to avoid confusing sed.
7038    lt_compile=`echo "$ac_compile" | $SED \
7039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7041    -e 's:$: $lt_compiler_flag:'`
7042    (eval echo "\"\$as_me:7042: $lt_compile\"" >&5)
7043    (eval "$lt_compile" 2>conftest.err)
7044    ac_status=$?
7045    cat conftest.err >&5
7046    echo "$as_me:7046: \$? = $ac_status" >&5
7047    if (exit $ac_status) && test -s "$ac_outfile"; then
7048      # The compiler can only warn and ignore the option if not recognized
7049      # So say no if there are warnings other than the usual output.
7050      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7053        lt_cv_prog_compiler_rtti_exceptions=yes
7054      fi
7055    fi
7056    $rm conftest*
7057
7058 fi
7059 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7060 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7061
7062 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7063     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7064 else
7065     :
7066 fi
7067
7068 fi
7069
7070 lt_prog_compiler_wl=
7071 lt_prog_compiler_pic=
7072 lt_prog_compiler_static=
7073
7074 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7075 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7076
7077   if test "$GCC" = yes; then
7078     lt_prog_compiler_wl='-Wl,'
7079     lt_prog_compiler_static='-static'
7080
7081     case $host_os in
7082       aix*)
7083       # All AIX code is PIC.
7084       if test "$host_cpu" = ia64; then
7085         # AIX 5 now supports IA64 processor
7086         lt_prog_compiler_static='-Bstatic'
7087       fi
7088       ;;
7089
7090     amigaos*)
7091       # FIXME: we need at least 68020 code to build shared libraries, but
7092       # adding the `-m68020' flag to GCC prevents building anything better,
7093       # like `-m68040'.
7094       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7095       ;;
7096
7097     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7098       # PIC is the default for these OSes.
7099       ;;
7100
7101     mingw* | cygwin* | pw32* | os2*)
7102       # This hack is so that the source file can tell whether it is being
7103       # built for inclusion in a dll (and should export symbols for example).
7104       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7105       # (--disable-auto-import) libraries
7106       lt_prog_compiler_pic='-DDLL_EXPORT'
7107       ;;
7108
7109     darwin* | rhapsody*)
7110       # PIC is the default on this platform
7111       # Common symbols not allowed in MH_DYLIB files
7112       lt_prog_compiler_pic='-fno-common'
7113       ;;
7114
7115     interix[3-9]*)
7116       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7117       # Instead, we relocate shared libraries at runtime.
7118       ;;
7119
7120     msdosdjgpp*)
7121       # Just because we use GCC doesn't mean we suddenly get shared libraries
7122       # on systems that don't support them.
7123       lt_prog_compiler_can_build_shared=no
7124       enable_shared=no
7125       ;;
7126
7127     sysv4*MP*)
7128       if test -d /usr/nec; then
7129         lt_prog_compiler_pic=-Kconform_pic
7130       fi
7131       ;;
7132
7133     hpux*)
7134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7135       # not for PA HP-UX.
7136       case $host_cpu in
7137       hppa*64*|ia64*)
7138         # +Z the default
7139         ;;
7140       *)
7141         lt_prog_compiler_pic='-fPIC'
7142         ;;
7143       esac
7144       ;;
7145
7146     *)
7147       lt_prog_compiler_pic='-fPIC'
7148       ;;
7149     esac
7150   else
7151     # PORTME Check for flag to pass linker flags through the system compiler.
7152     case $host_os in
7153     aix*)
7154       lt_prog_compiler_wl='-Wl,'
7155       if test "$host_cpu" = ia64; then
7156         # AIX 5 now supports IA64 processor
7157         lt_prog_compiler_static='-Bstatic'
7158       else
7159         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7160       fi
7161       ;;
7162       darwin*)
7163         # PIC is the default on this platform
7164         # Common symbols not allowed in MH_DYLIB files
7165        case $cc_basename in
7166          xlc*)
7167          lt_prog_compiler_pic='-qnocommon'
7168          lt_prog_compiler_wl='-Wl,'
7169          ;;
7170        esac
7171        ;;
7172
7173     mingw* | cygwin* | pw32* | os2*)
7174       # This hack is so that the source file can tell whether it is being
7175       # built for inclusion in a dll (and should export symbols for example).
7176       lt_prog_compiler_pic='-DDLL_EXPORT'
7177       ;;
7178
7179     hpux9* | hpux10* | hpux11*)
7180       lt_prog_compiler_wl='-Wl,'
7181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7182       # not for PA HP-UX.
7183       case $host_cpu in
7184       hppa*64*|ia64*)
7185         # +Z the default
7186         ;;
7187       *)
7188         lt_prog_compiler_pic='+Z'
7189         ;;
7190       esac
7191       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7192       lt_prog_compiler_static='${wl}-a ${wl}archive'
7193       ;;
7194
7195     irix5* | irix6* | nonstopux*)
7196       lt_prog_compiler_wl='-Wl,'
7197       # PIC (with -KPIC) is the default.
7198       lt_prog_compiler_static='-non_shared'
7199       ;;
7200
7201     newsos6)
7202       lt_prog_compiler_pic='-KPIC'
7203       lt_prog_compiler_static='-Bstatic'
7204       ;;
7205
7206     linux* | k*bsd*-gnu)
7207       case $cc_basename in
7208       icc* | ecc*)
7209         lt_prog_compiler_wl='-Wl,'
7210         lt_prog_compiler_pic='-KPIC'
7211         lt_prog_compiler_static='-static'
7212         ;;
7213       pgcc* | pgf77* | pgf90* | pgf95*)
7214         # Portland Group compilers (*not* the Pentium gcc compiler,
7215         # which looks to be a dead project)
7216         lt_prog_compiler_wl='-Wl,'
7217         lt_prog_compiler_pic='-fpic'
7218         lt_prog_compiler_static='-Bstatic'
7219         ;;
7220       ccc*)
7221         lt_prog_compiler_wl='-Wl,'
7222         # All Alpha code is PIC.
7223         lt_prog_compiler_static='-non_shared'
7224         ;;
7225       *)
7226         case `$CC -V 2>&1 | sed 5q` in
7227         *Sun\ C*)
7228           # Sun C 5.9
7229           lt_prog_compiler_pic='-KPIC'
7230           lt_prog_compiler_static='-Bstatic'
7231           lt_prog_compiler_wl='-Wl,'
7232           ;;
7233         *Sun\ F*)
7234           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7235           lt_prog_compiler_pic='-KPIC'
7236           lt_prog_compiler_static='-Bstatic'
7237           lt_prog_compiler_wl=''
7238           ;;
7239         esac
7240         ;;
7241       esac
7242       ;;
7243
7244     osf3* | osf4* | osf5*)
7245       lt_prog_compiler_wl='-Wl,'
7246       # All OSF/1 code is PIC.
7247       lt_prog_compiler_static='-non_shared'
7248       ;;
7249
7250     rdos*)
7251       lt_prog_compiler_static='-non_shared'
7252       ;;
7253
7254     solaris*)
7255       lt_prog_compiler_pic='-KPIC'
7256       lt_prog_compiler_static='-Bstatic'
7257       case $cc_basename in
7258       f77* | f90* | f95*)
7259         lt_prog_compiler_wl='-Qoption ld ';;
7260       *)
7261         lt_prog_compiler_wl='-Wl,';;
7262       esac
7263       ;;
7264
7265     sunos4*)
7266       lt_prog_compiler_wl='-Qoption ld '
7267       lt_prog_compiler_pic='-PIC'
7268       lt_prog_compiler_static='-Bstatic'
7269       ;;
7270
7271     sysv4 | sysv4.2uw2* | sysv4.3*)
7272       lt_prog_compiler_wl='-Wl,'
7273       lt_prog_compiler_pic='-KPIC'
7274       lt_prog_compiler_static='-Bstatic'
7275       ;;
7276
7277     sysv4*MP*)
7278       if test -d /usr/nec ;then
7279         lt_prog_compiler_pic='-Kconform_pic'
7280         lt_prog_compiler_static='-Bstatic'
7281       fi
7282       ;;
7283
7284     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7285       lt_prog_compiler_wl='-Wl,'
7286       lt_prog_compiler_pic='-KPIC'
7287       lt_prog_compiler_static='-Bstatic'
7288       ;;
7289
7290     unicos*)
7291       lt_prog_compiler_wl='-Wl,'
7292       lt_prog_compiler_can_build_shared=no
7293       ;;
7294
7295     uts4*)
7296       lt_prog_compiler_pic='-pic'
7297       lt_prog_compiler_static='-Bstatic'
7298       ;;
7299
7300     *)
7301       lt_prog_compiler_can_build_shared=no
7302       ;;
7303     esac
7304   fi
7305
7306 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7307 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7308
7309 #
7310 # Check to make sure the PIC flag actually works.
7311 #
7312 if test -n "$lt_prog_compiler_pic"; then
7313
7314 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7316 if test "${lt_prog_compiler_pic_works+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   lt_prog_compiler_pic_works=no
7320   ac_outfile=conftest.$ac_objext
7321    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7322    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7323    # Insert the option either (1) after the last *FLAGS variable, or
7324    # (2) before a word containing "conftest.", or (3) at the end.
7325    # Note that $ac_compile itself does not contain backslashes and begins
7326    # with a dollar sign (not a hyphen), so the echo should work correctly.
7327    # The option is referenced via a variable to avoid confusing sed.
7328    lt_compile=`echo "$ac_compile" | $SED \
7329    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7331    -e 's:$: $lt_compiler_flag:'`
7332    (eval echo "\"\$as_me:7332: $lt_compile\"" >&5)
7333    (eval "$lt_compile" 2>conftest.err)
7334    ac_status=$?
7335    cat conftest.err >&5
7336    echo "$as_me:7336: \$? = $ac_status" >&5
7337    if (exit $ac_status) && test -s "$ac_outfile"; then
7338      # The compiler can only warn and ignore the option if not recognized
7339      # So say no if there are warnings other than the usual output.
7340      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7341      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7343        lt_prog_compiler_pic_works=yes
7344      fi
7345    fi
7346    $rm conftest*
7347
7348 fi
7349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7350 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7351
7352 if test x"$lt_prog_compiler_pic_works" = xyes; then
7353     case $lt_prog_compiler_pic in
7354      "" | " "*) ;;
7355      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7356      esac
7357 else
7358     lt_prog_compiler_pic=
7359      lt_prog_compiler_can_build_shared=no
7360 fi
7361
7362 fi
7363 case $host_os in
7364   # For platforms which do not support PIC, -DPIC is meaningless:
7365   *djgpp*)
7366     lt_prog_compiler_pic=
7367     ;;
7368   *)
7369     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7370     ;;
7371 esac
7372
7373 #
7374 # Check to make sure the static flag actually works.
7375 #
7376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7377 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7378 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7379 if test "${lt_prog_compiler_static_works+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   lt_prog_compiler_static_works=no
7383    save_LDFLAGS="$LDFLAGS"
7384    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7385    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7386    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7387      # The linker can only warn and ignore the option if not recognized
7388      # So say no if there are warnings
7389      if test -s conftest.err; then
7390        # Append any errors to the config.log.
7391        cat conftest.err 1>&5
7392        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7393        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394        if diff conftest.exp conftest.er2 >/dev/null; then
7395          lt_prog_compiler_static_works=yes
7396        fi
7397      else
7398        lt_prog_compiler_static_works=yes
7399      fi
7400    fi
7401    $rm conftest*
7402    LDFLAGS="$save_LDFLAGS"
7403
7404 fi
7405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7406 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7407
7408 if test x"$lt_prog_compiler_static_works" = xyes; then
7409     :
7410 else
7411     lt_prog_compiler_static=
7412 fi
7413
7414
7415 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7417 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   lt_cv_prog_compiler_c_o=no
7421    $rm -r conftest 2>/dev/null
7422    mkdir conftest
7423    cd conftest
7424    mkdir out
7425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7426
7427    lt_compiler_flag="-o out/conftest2.$ac_objext"
7428    # Insert the option either (1) after the last *FLAGS variable, or
7429    # (2) before a word containing "conftest.", or (3) at the end.
7430    # Note that $ac_compile itself does not contain backslashes and begins
7431    # with a dollar sign (not a hyphen), so the echo should work correctly.
7432    lt_compile=`echo "$ac_compile" | $SED \
7433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435    -e 's:$: $lt_compiler_flag:'`
7436    (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
7437    (eval "$lt_compile" 2>out/conftest.err)
7438    ac_status=$?
7439    cat out/conftest.err >&5
7440    echo "$as_me:7440: \$? = $ac_status" >&5
7441    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7442    then
7443      # The compiler can only warn and ignore the option if not recognized
7444      # So say no if there are warnings
7445      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7446      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7447      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7448        lt_cv_prog_compiler_c_o=yes
7449      fi
7450    fi
7451    chmod u+w . 2>&5
7452    $rm conftest*
7453    # SGI C++ compiler will create directory out/ii_files/ for
7454    # template instantiation
7455    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7456    $rm out/* && rmdir out
7457    cd ..
7458    rmdir conftest
7459    $rm conftest*
7460
7461 fi
7462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7463 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7464
7465
7466 hard_links="nottested"
7467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7468   # do not overwrite the value of need_locks provided by the user
7469   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7471   hard_links=yes
7472   $rm conftest*
7473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7474   touch conftest.a
7475   ln conftest.a conftest.b 2>&5 || hard_links=no
7476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7477   { echo "$as_me:$LINENO: result: $hard_links" >&5
7478 echo "${ECHO_T}$hard_links" >&6; }
7479   if test "$hard_links" = no; then
7480     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7482     need_locks=warn
7483   fi
7484 else
7485   need_locks=no
7486 fi
7487
7488 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7489 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7490
7491   runpath_var=
7492   allow_undefined_flag=
7493   enable_shared_with_static_runtimes=no
7494   archive_cmds=
7495   archive_expsym_cmds=
7496   old_archive_From_new_cmds=
7497   old_archive_from_expsyms_cmds=
7498   export_dynamic_flag_spec=
7499   whole_archive_flag_spec=
7500   thread_safe_flag_spec=
7501   hardcode_libdir_flag_spec=
7502   hardcode_libdir_flag_spec_ld=
7503   hardcode_libdir_separator=
7504   hardcode_direct=no
7505   hardcode_minus_L=no
7506   hardcode_shlibpath_var=unsupported
7507   link_all_deplibs=unknown
7508   hardcode_automatic=no
7509   module_cmds=
7510   module_expsym_cmds=
7511   always_export_symbols=no
7512   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7513   # include_expsyms should be a list of space-separated symbols to be *always*
7514   # included in the symbol list
7515   include_expsyms=
7516   # exclude_expsyms can be an extended regexp of symbols to exclude
7517   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7518   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7519   # as well as any symbol that contains `d'.
7520   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7521   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7522   # platforms (ab)use it in PIC code, but their linkers get confused if
7523   # the symbol is explicitly referenced.  Since portable code cannot
7524   # rely on this symbol name, it's probably fine to never include it in
7525   # preloaded symbol tables.
7526   extract_expsyms_cmds=
7527   # Just being paranoid about ensuring that cc_basename is set.
7528   for cc_temp in $compiler""; do
7529   case $cc_temp in
7530     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7531     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7532     \-*) ;;
7533     *) break;;
7534   esac
7535 done
7536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7537
7538   case $host_os in
7539   cygwin* | mingw* | pw32*)
7540     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7541     # When not using gcc, we currently assume that we are using
7542     # Microsoft Visual C++.
7543     if test "$GCC" != yes; then
7544       with_gnu_ld=no
7545     fi
7546     ;;
7547   interix*)
7548     # we just hope/assume this is gcc and not c89 (= MSVC++)
7549     with_gnu_ld=yes
7550     ;;
7551   openbsd*)
7552     with_gnu_ld=no
7553     ;;
7554   esac
7555
7556   ld_shlibs=yes
7557   if test "$with_gnu_ld" = yes; then
7558     # If archive_cmds runs LD, not CC, wlarc should be empty
7559     wlarc='${wl}'
7560
7561     # Set some defaults for GNU ld with shared library support. These
7562     # are reset later if shared libraries are not supported. Putting them
7563     # here allows them to be overridden if necessary.
7564     runpath_var=LD_RUN_PATH
7565     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7566     export_dynamic_flag_spec='${wl}--export-dynamic'
7567     # ancient GNU ld didn't support --whole-archive et. al.
7568     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7569         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7570       else
7571         whole_archive_flag_spec=
7572     fi
7573     supports_anon_versioning=no
7574     case `$LD -v 2>/dev/null` in
7575       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7576       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7577       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7578       *\ 2.11.*) ;; # other 2.11 versions
7579       *) supports_anon_versioning=yes ;;
7580     esac
7581
7582     # See if GNU ld supports shared libraries.
7583     case $host_os in
7584     aix3* | aix4* | aix5*)
7585       # On AIX/PPC, the GNU linker is very broken
7586       if test "$host_cpu" != ia64; then
7587         ld_shlibs=no
7588         cat <<EOF 1>&2
7589
7590 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7591 *** to be unable to reliably create shared libraries on AIX.
7592 *** Therefore, libtool is disabling shared libraries support.  If you
7593 *** really care for shared libraries, you may want to modify your PATH
7594 *** so that a non-GNU linker is found, and then restart.
7595
7596 EOF
7597       fi
7598       ;;
7599
7600     amigaos*)
7601       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)'
7602       hardcode_libdir_flag_spec='-L$libdir'
7603       hardcode_minus_L=yes
7604
7605       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7606       # that the semantics of dynamic libraries on AmigaOS, at least up
7607       # to version 4, is to share data among multiple programs linked
7608       # with the same dynamic library.  Since this doesn't match the
7609       # behavior of shared libraries on other platforms, we can't use
7610       # them.
7611       ld_shlibs=no
7612       ;;
7613
7614     beos*)
7615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616         allow_undefined_flag=unsupported
7617         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7618         # support --undefined.  This deserves some investigation.  FIXME
7619         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7620       else
7621         ld_shlibs=no
7622       fi
7623       ;;
7624
7625     cygwin* | mingw* | pw32*)
7626       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7627       # as there is no search path for DLLs.
7628       hardcode_libdir_flag_spec='-L$libdir'
7629       allow_undefined_flag=unsupported
7630       always_export_symbols=no
7631       enable_shared_with_static_runtimes=yes
7632       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7633
7634       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7635         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7636         # If the export-symbols file already is a .def file (1st line
7637         # is EXPORTS), use it as is; otherwise, prepend...
7638         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7639           cp $export_symbols $output_objdir/$soname.def;
7640         else
7641           echo EXPORTS > $output_objdir/$soname.def;
7642           cat $export_symbols >> $output_objdir/$soname.def;
7643         fi~
7644         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7645       else
7646         ld_shlibs=no
7647       fi
7648       ;;
7649
7650     interix[3-9]*)
7651       hardcode_direct=no
7652       hardcode_shlibpath_var=no
7653       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7654       export_dynamic_flag_spec='${wl}-E'
7655       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7656       # Instead, shared libraries are loaded at an image base (0x10000000 by
7657       # default) and relocated if they conflict, which is a slow very memory
7658       # consuming and fragmenting process.  To avoid this, we pick a random,
7659       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7660       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7661       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7662       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'
7663       ;;
7664
7665     gnu* | linux* | k*bsd*-gnu)
7666       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7667         tmp_addflag=
7668         case $cc_basename,$host_cpu in
7669         pgcc*)                          # Portland Group C compiler
7670           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'
7671           tmp_addflag=' $pic_flag'
7672           ;;
7673         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7674           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'
7675           tmp_addflag=' $pic_flag -Mnomain' ;;
7676         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7677           tmp_addflag=' -i_dynamic' ;;
7678         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7679           tmp_addflag=' -i_dynamic -nofor_main' ;;
7680         ifc* | ifort*)                  # Intel Fortran compiler
7681           tmp_addflag=' -nofor_main' ;;
7682         esac
7683         case `$CC -V 2>&1 | sed 5q` in
7684         *Sun\ C*)                       # Sun C 5.9
7685           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'
7686           tmp_sharedflag='-G' ;;
7687         *Sun\ F*)                       # Sun Fortran 8.3
7688           tmp_sharedflag='-G' ;;
7689         *)
7690           tmp_sharedflag='-shared' ;;
7691         esac
7692         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693
7694         if test $supports_anon_versioning = yes; then
7695           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7696   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7697   $echo "local: *; };" >> $output_objdir/$libname.ver~
7698           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7699         fi
7700       else
7701         ld_shlibs=no
7702       fi
7703       ;;
7704
7705     netbsd*)
7706       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7707         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7708         wlarc=
7709       else
7710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7712       fi
7713       ;;
7714
7715     solaris*)
7716       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7717         ld_shlibs=no
7718         cat <<EOF 1>&2
7719
7720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7721 *** create shared libraries on Solaris systems.  Therefore, libtool
7722 *** is disabling shared libraries support.  We urge you to upgrade GNU
7723 *** binutils to release 2.9.1 or newer.  Another option is to modify
7724 *** your PATH or compiler configuration so that the native linker is
7725 *** used, and then restart.
7726
7727 EOF
7728       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7729         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7731       else
7732         ld_shlibs=no
7733       fi
7734       ;;
7735
7736     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7737       case `$LD -v 2>&1` in
7738         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7739         ld_shlibs=no
7740         cat <<_LT_EOF 1>&2
7741
7742 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7743 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7744 *** is disabling shared libraries support.  We urge you to upgrade GNU
7745 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7746 *** your PATH or compiler configuration so that the native linker is
7747 *** used, and then restart.
7748
7749 _LT_EOF
7750         ;;
7751         *)
7752           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7753             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7754             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7755             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7756           else
7757             ld_shlibs=no
7758           fi
7759         ;;
7760       esac
7761       ;;
7762
7763     sunos4*)
7764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7765       wlarc=
7766       hardcode_direct=yes
7767       hardcode_shlibpath_var=no
7768       ;;
7769
7770     *)
7771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7774       else
7775         ld_shlibs=no
7776       fi
7777       ;;
7778     esac
7779
7780     if test "$ld_shlibs" = no; then
7781       runpath_var=
7782       hardcode_libdir_flag_spec=
7783       export_dynamic_flag_spec=
7784       whole_archive_flag_spec=
7785     fi
7786   else
7787     # PORTME fill in a description of your system's linker (not GNU ld)
7788     case $host_os in
7789     aix3*)
7790       allow_undefined_flag=unsupported
7791       always_export_symbols=yes
7792       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'
7793       # Note: this linker hardcodes the directories in LIBPATH if there
7794       # are no directories specified by -L.
7795       hardcode_minus_L=yes
7796       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7797         # Neither direct hardcoding nor static linking is supported with a
7798         # broken collect2.
7799         hardcode_direct=unsupported
7800       fi
7801       ;;
7802
7803     aix4* | aix5*)
7804       if test "$host_cpu" = ia64; then
7805         # On IA64, the linker does run time linking by default, so we don't
7806         # have to do anything special.
7807         aix_use_runtimelinking=no
7808         exp_sym_flag='-Bexport'
7809         no_entry_flag=""
7810       else
7811         # If we're using GNU nm, then we don't want the "-C" option.
7812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7813         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7814           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'
7815         else
7816           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'
7817         fi
7818         aix_use_runtimelinking=no
7819
7820         # Test if we are trying to use run time linking or normal
7821         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7822         # need to do runtime linking.
7823         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7824           for ld_flag in $LDFLAGS; do
7825           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7826             aix_use_runtimelinking=yes
7827             break
7828           fi
7829           done
7830           ;;
7831         esac
7832
7833         exp_sym_flag='-bexport'
7834         no_entry_flag='-bnoentry'
7835       fi
7836
7837       # When large executables or shared objects are built, AIX ld can
7838       # have problems creating the table of contents.  If linking a library
7839       # or program results in "error TOC overflow" add -mminimal-toc to
7840       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7841       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7842
7843       archive_cmds=''
7844       hardcode_direct=yes
7845       hardcode_libdir_separator=':'
7846       link_all_deplibs=yes
7847
7848       if test "$GCC" = yes; then
7849         case $host_os in aix4.[012]|aix4.[012].*)
7850         # We only want to do this on AIX 4.2 and lower, the check
7851         # below for broken collect2 doesn't work under 4.3+
7852           collect2name=`${CC} -print-prog-name=collect2`
7853           if test -f "$collect2name" && \
7854            strings "$collect2name" | grep resolve_lib_name >/dev/null
7855           then
7856           # We have reworked collect2
7857           :
7858           else
7859           # We have old collect2
7860           hardcode_direct=unsupported
7861           # It fails to find uninstalled libraries when the uninstalled
7862           # path is not listed in the libpath.  Setting hardcode_minus_L
7863           # to unsupported forces relinking
7864           hardcode_minus_L=yes
7865           hardcode_libdir_flag_spec='-L$libdir'
7866           hardcode_libdir_separator=
7867           fi
7868           ;;
7869         esac
7870         shared_flag='-shared'
7871         if test "$aix_use_runtimelinking" = yes; then
7872           shared_flag="$shared_flag "'${wl}-G'
7873         fi
7874       else
7875         # not using gcc
7876         if test "$host_cpu" = ia64; then
7877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7878         # chokes on -Wl,-G. The following line is correct:
7879           shared_flag='-G'
7880         else
7881           if test "$aix_use_runtimelinking" = yes; then
7882             shared_flag='${wl}-G'
7883           else
7884             shared_flag='${wl}-bM:SRE'
7885           fi
7886         fi
7887       fi
7888
7889       # It seems that -bexpall does not export symbols beginning with
7890       # underscore (_), so it is better to generate a list of symbols to export.
7891       always_export_symbols=yes
7892       if test "$aix_use_runtimelinking" = yes; then
7893         # Warning - without using the other runtime loading flags (-brtl),
7894         # -berok will link without error, but may produce a broken library.
7895         allow_undefined_flag='-berok'
7896        # Determine the default libpath from the value encoded in an empty executable.
7897        cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7914 case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919   (eval "$ac_link") 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } && {
7926          test -z "$ac_c_werror_flag" ||
7927          test ! -s conftest.err
7928        } && test -s conftest$ac_exeext &&
7929        $as_test_x conftest$ac_exeext; then
7930
7931 lt_aix_libpath_sed='
7932     /Import File Strings/,/^$/ {
7933         /^0/ {
7934             s/^0  *\(.*\)$/\1/
7935             p
7936         }
7937     }'
7938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7939 # Check for a 64-bit object if we didn't find anything.
7940 if test -z "$aix_libpath"; then
7941   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7942 fi
7943 else
7944   echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947
7948 fi
7949
7950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7951       conftest$ac_exeext conftest.$ac_ext
7952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7953
7954        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7955         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"
7956        else
7957         if test "$host_cpu" = ia64; then
7958           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7959           allow_undefined_flag="-z nodefs"
7960           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"
7961         else
7962          # Determine the default libpath from the value encoded in an empty executable.
7963          cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h.  */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h.  */
7969
7970 int
7971 main ()
7972 {
7973
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext conftest$ac_exeext
7979 if { (ac_try="$ac_link"
7980 case "(($ac_try" in
7981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982   *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985   (eval "$ac_link") 2>conftest.er1
7986   ac_status=$?
7987   grep -v '^ *+' conftest.er1 >conftest.err
7988   rm -f conftest.er1
7989   cat conftest.err >&5
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } && {
7992          test -z "$ac_c_werror_flag" ||
7993          test ! -s conftest.err
7994        } && test -s conftest$ac_exeext &&
7995        $as_test_x conftest$ac_exeext; then
7996
7997 lt_aix_libpath_sed='
7998     /Import File Strings/,/^$/ {
7999         /^0/ {
8000             s/^0  *\(.*\)$/\1/
8001             p
8002         }
8003     }'
8004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8005 # Check for a 64-bit object if we didn't find anything.
8006 if test -z "$aix_libpath"; then
8007   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8008 fi
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013
8014 fi
8015
8016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8017       conftest$ac_exeext conftest.$ac_ext
8018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8019
8020          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8021           # Warning - without using the other run time loading flags,
8022           # -berok will link without error, but may produce a broken library.
8023           no_undefined_flag=' ${wl}-bernotok'
8024           allow_undefined_flag=' ${wl}-berok'
8025           # Exported symbols can be pulled into shared objects from archives
8026           whole_archive_flag_spec='$convenience'
8027           archive_cmds_need_lc=yes
8028           # This is similar to how AIX traditionally builds its shared libraries.
8029           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'
8030         fi
8031       fi
8032       ;;
8033
8034     amigaos*)
8035       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)'
8036       hardcode_libdir_flag_spec='-L$libdir'
8037       hardcode_minus_L=yes
8038       # see comment about different semantics on the GNU ld section
8039       ld_shlibs=no
8040       ;;
8041
8042     bsdi[45]*)
8043       export_dynamic_flag_spec=-rdynamic
8044       ;;
8045
8046     cygwin* | mingw* | pw32*)
8047       # When not using gcc, we currently assume that we are using
8048       # Microsoft Visual C++.
8049       # hardcode_libdir_flag_spec is actually meaningless, as there is
8050       # no search path for DLLs.
8051       hardcode_libdir_flag_spec=' '
8052       allow_undefined_flag=unsupported
8053       # Tell ltmain to make .lib files, not .a files.
8054       libext=lib
8055       # Tell ltmain to make .dll files, not .so files.
8056       shrext_cmds=".dll"
8057       # FIXME: Setting linknames here is a bad hack.
8058       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8059       # The linker will automatically build a .lib file if we build a DLL.
8060       old_archive_From_new_cmds='true'
8061       # FIXME: Should let the user specify the lib program.
8062       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8063       fix_srcfile_path='`cygpath -w "$srcfile"`'
8064       enable_shared_with_static_runtimes=yes
8065       ;;
8066
8067     darwin* | rhapsody*)
8068       case $host_os in
8069         rhapsody* | darwin1.[012])
8070          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8071          ;;
8072        *) # Darwin 1.3 on
8073          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8074            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8075          else
8076            case ${MACOSX_DEPLOYMENT_TARGET} in
8077              10.[012])
8078                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8079                ;;
8080              10.*)
8081                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8082                ;;
8083            esac
8084          fi
8085          ;;
8086       esac
8087       archive_cmds_need_lc=no
8088       hardcode_direct=no
8089       hardcode_automatic=yes
8090       hardcode_shlibpath_var=unsupported
8091       whole_archive_flag_spec=''
8092       link_all_deplibs=yes
8093     if test "$GCC" = yes ; then
8094         output_verbose_link_cmd='echo'
8095         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8096       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8097       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8098       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}'
8099       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}'
8100     else
8101       case $cc_basename in
8102         xlc*)
8103          output_verbose_link_cmd='echo'
8104          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8105          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8107          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}'
8108           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}'
8109           ;;
8110        *)
8111          ld_shlibs=no
8112           ;;
8113       esac
8114     fi
8115       ;;
8116
8117     dgux*)
8118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8119       hardcode_libdir_flag_spec='-L$libdir'
8120       hardcode_shlibpath_var=no
8121       ;;
8122
8123     freebsd1*)
8124       ld_shlibs=no
8125       ;;
8126
8127     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8128     # support.  Future versions do this automatically, but an explicit c++rt0.o
8129     # does not break anything, and helps significantly (at the cost of a little
8130     # extra space).
8131     freebsd2.2*)
8132       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8133       hardcode_libdir_flag_spec='-R$libdir'
8134       hardcode_direct=yes
8135       hardcode_shlibpath_var=no
8136       ;;
8137
8138     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8139     freebsd2*)
8140       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8141       hardcode_direct=yes
8142       hardcode_minus_L=yes
8143       hardcode_shlibpath_var=no
8144       ;;
8145
8146     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8147     freebsd* | dragonfly*)
8148       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8149       hardcode_libdir_flag_spec='-R$libdir'
8150       hardcode_direct=yes
8151       hardcode_shlibpath_var=no
8152       ;;
8153
8154     hpux9*)
8155       if test "$GCC" = yes; then
8156         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'
8157       else
8158         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'
8159       fi
8160       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8161       hardcode_libdir_separator=:
8162       hardcode_direct=yes
8163
8164       # hardcode_minus_L: Not really in the search PATH,
8165       # but as the default location of the library.
8166       hardcode_minus_L=yes
8167       export_dynamic_flag_spec='${wl}-E'
8168       ;;
8169
8170     hpux10*)
8171       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8172         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8173       else
8174         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8175       fi
8176       if test "$with_gnu_ld" = no; then
8177         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8178         hardcode_libdir_separator=:
8179
8180         hardcode_direct=yes
8181         export_dynamic_flag_spec='${wl}-E'
8182
8183         # hardcode_minus_L: Not really in the search PATH,
8184         # but as the default location of the library.
8185         hardcode_minus_L=yes
8186       fi
8187       ;;
8188
8189     hpux11*)
8190       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8191         case $host_cpu in
8192         hppa*64*)
8193           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8194           ;;
8195         ia64*)
8196           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8197           ;;
8198         *)
8199           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8200           ;;
8201         esac
8202       else
8203         case $host_cpu in
8204         hppa*64*)
8205           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8206           ;;
8207         ia64*)
8208           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8209           ;;
8210         *)
8211           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212           ;;
8213         esac
8214       fi
8215       if test "$with_gnu_ld" = no; then
8216         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217         hardcode_libdir_separator=:
8218
8219         case $host_cpu in
8220         hppa*64*|ia64*)
8221           hardcode_libdir_flag_spec_ld='+b $libdir'
8222           hardcode_direct=no
8223           hardcode_shlibpath_var=no
8224           ;;
8225         *)
8226           hardcode_direct=yes
8227           export_dynamic_flag_spec='${wl}-E'
8228
8229           # hardcode_minus_L: Not really in the search PATH,
8230           # but as the default location of the library.
8231           hardcode_minus_L=yes
8232           ;;
8233         esac
8234       fi
8235       ;;
8236
8237     irix5* | irix6* | nonstopux*)
8238       if test "$GCC" = yes; then
8239         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'
8240       else
8241         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'
8242         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8243       fi
8244       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8245       hardcode_libdir_separator=:
8246       link_all_deplibs=yes
8247       ;;
8248
8249     netbsd*)
8250       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8251         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8252       else
8253         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8254       fi
8255       hardcode_libdir_flag_spec='-R$libdir'
8256       hardcode_direct=yes
8257       hardcode_shlibpath_var=no
8258       ;;
8259
8260     newsos6)
8261       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262       hardcode_direct=yes
8263       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8264       hardcode_libdir_separator=:
8265       hardcode_shlibpath_var=no
8266       ;;
8267
8268     openbsd*)
8269       if test -f /usr/libexec/ld.so; then
8270         hardcode_direct=yes
8271         hardcode_shlibpath_var=no
8272         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8273           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8274           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8275           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8276           export_dynamic_flag_spec='${wl}-E'
8277         else
8278           case $host_os in
8279            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8280              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8281              hardcode_libdir_flag_spec='-R$libdir'
8282              ;;
8283            *)
8284              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286              ;;
8287           esac
8288         fi
8289       else
8290         ld_shlibs=no
8291       fi
8292       ;;
8293
8294     os2*)
8295       hardcode_libdir_flag_spec='-L$libdir'
8296       hardcode_minus_L=yes
8297       allow_undefined_flag=unsupported
8298       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'
8299       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8300       ;;
8301
8302     osf3*)
8303       if test "$GCC" = yes; then
8304         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305         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'
8306       else
8307         allow_undefined_flag=' -expect_unresolved \*'
8308         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'
8309       fi
8310       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311       hardcode_libdir_separator=:
8312       ;;
8313
8314     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8315       if test "$GCC" = yes; then
8316         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8317         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'
8318         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319       else
8320         allow_undefined_flag=' -expect_unresolved \*'
8321         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'
8322         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8323         $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'
8324
8325         # Both c and cxx compiler support -rpath directly
8326         hardcode_libdir_flag_spec='-rpath $libdir'
8327       fi
8328       hardcode_libdir_separator=:
8329       ;;
8330
8331     solaris*)
8332       no_undefined_flag=' -z text'
8333       if test "$GCC" = yes; then
8334         wlarc='${wl}'
8335         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8336         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8337           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8338       else
8339         wlarc=''
8340         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8342         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8343       fi
8344       hardcode_libdir_flag_spec='-R$libdir'
8345       hardcode_shlibpath_var=no
8346       case $host_os in
8347       solaris2.[0-5] | solaris2.[0-5].*) ;;
8348       *)
8349         # The compiler driver will combine and reorder linker options,
8350         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8351         # but is careful enough not to reorder.
8352         # Supported since Solaris 2.6 (maybe 2.5.1?)
8353         if test "$GCC" = yes; then
8354           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8355         else
8356           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8357         fi
8358         ;;
8359       esac
8360       link_all_deplibs=yes
8361       ;;
8362
8363     sunos4*)
8364       if test "x$host_vendor" = xsequent; then
8365         # Use $CC to link under sequent, because it throws in some extra .o
8366         # files that make .init and .fini sections work.
8367         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8368       else
8369         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8370       fi
8371       hardcode_libdir_flag_spec='-L$libdir'
8372       hardcode_direct=yes
8373       hardcode_minus_L=yes
8374       hardcode_shlibpath_var=no
8375       ;;
8376
8377     sysv4)
8378       case $host_vendor in
8379         sni)
8380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381           hardcode_direct=yes # is this really true???
8382         ;;
8383         siemens)
8384           ## LD is ld it makes a PLAMLIB
8385           ## CC just makes a GrossModule.
8386           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8387           reload_cmds='$CC -r -o $output$reload_objs'
8388           hardcode_direct=no
8389         ;;
8390         motorola)
8391           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8393         ;;
8394       esac
8395       runpath_var='LD_RUN_PATH'
8396       hardcode_shlibpath_var=no
8397       ;;
8398
8399     sysv4.3*)
8400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401       hardcode_shlibpath_var=no
8402       export_dynamic_flag_spec='-Bexport'
8403       ;;
8404
8405     sysv4*MP*)
8406       if test -d /usr/nec; then
8407         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408         hardcode_shlibpath_var=no
8409         runpath_var=LD_RUN_PATH
8410         hardcode_runpath_var=yes
8411         ld_shlibs=yes
8412       fi
8413       ;;
8414
8415     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8416       no_undefined_flag='${wl}-z,text'
8417       archive_cmds_need_lc=no
8418       hardcode_shlibpath_var=no
8419       runpath_var='LD_RUN_PATH'
8420
8421       if test "$GCC" = yes; then
8422         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424       else
8425         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427       fi
8428       ;;
8429
8430     sysv5* | sco3.2v5* | sco5v6*)
8431       # Note: We can NOT use -z defs as we might desire, because we do not
8432       # link with -lc, and that would cause any symbols used from libc to
8433       # always be unresolved, which means just about no library would
8434       # ever link correctly.  If we're not using GNU ld we use -z text
8435       # though, which does catch some bad symbols but isn't as heavy-handed
8436       # as -z defs.
8437       no_undefined_flag='${wl}-z,text'
8438       allow_undefined_flag='${wl}-z,nodefs'
8439       archive_cmds_need_lc=no
8440       hardcode_shlibpath_var=no
8441       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8442       hardcode_libdir_separator=':'
8443       link_all_deplibs=yes
8444       export_dynamic_flag_spec='${wl}-Bexport'
8445       runpath_var='LD_RUN_PATH'
8446
8447       if test "$GCC" = yes; then
8448         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450       else
8451         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8453       fi
8454       ;;
8455
8456     uts4*)
8457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458       hardcode_libdir_flag_spec='-L$libdir'
8459       hardcode_shlibpath_var=no
8460       ;;
8461
8462     *)
8463       ld_shlibs=no
8464       ;;
8465     esac
8466   fi
8467
8468 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469 echo "${ECHO_T}$ld_shlibs" >&6; }
8470 test "$ld_shlibs" = no && can_build_shared=no
8471
8472 #
8473 # Do we need to explicitly link libc?
8474 #
8475 case "x$archive_cmds_need_lc" in
8476 x|xyes)
8477   # Assume -lc should be added
8478   archive_cmds_need_lc=yes
8479
8480   if test "$enable_shared" = yes && test "$GCC" = yes; then
8481     case $archive_cmds in
8482     *'~'*)
8483       # FIXME: we may have to deal with multi-command sequences.
8484       ;;
8485     '$CC '*)
8486       # Test whether the compiler implicitly links with -lc since on some
8487       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8488       # to ld, don't add -lc before -lgcc.
8489       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8491       $rm conftest*
8492       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493
8494       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495   (eval $ac_compile) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } 2>conftest.err; then
8499         soname=conftest
8500         lib=conftest
8501         libobjs=conftest.$ac_objext
8502         deplibs=
8503         wl=$lt_prog_compiler_wl
8504         pic_flag=$lt_prog_compiler_pic
8505         compiler_flags=-v
8506         linker_flags=-v
8507         verstring=
8508         output_objdir=.
8509         libname=conftest
8510         lt_save_allow_undefined_flag=$allow_undefined_flag
8511         allow_undefined_flag=
8512         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8513   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }
8517         then
8518           archive_cmds_need_lc=no
8519         else
8520           archive_cmds_need_lc=yes
8521         fi
8522         allow_undefined_flag=$lt_save_allow_undefined_flag
8523       else
8524         cat conftest.err 1>&5
8525       fi
8526       $rm conftest*
8527       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8528 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8529       ;;
8530     esac
8531   fi
8532   ;;
8533 esac
8534
8535 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8537 library_names_spec=
8538 libname_spec='lib$name'
8539 soname_spec=
8540 shrext_cmds=".so"
8541 postinstall_cmds=
8542 postuninstall_cmds=
8543 finish_cmds=
8544 finish_eval=
8545 shlibpath_var=
8546 shlibpath_overrides_runpath=unknown
8547 version_type=none
8548 dynamic_linker="$host_os ld.so"
8549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8550
8551 if test "$GCC" = yes; then
8552   case $host_os in
8553     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8554     *) lt_awk_arg="/^libraries:/" ;;
8555   esac
8556   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8557   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8558     # if the path contains ";" then we assume it to be the separator
8559     # otherwise default to the standard path separator (i.e. ":") - it is
8560     # assumed that no part of a normal pathname contains ";" but that should
8561     # okay in the real world where ";" in dirpaths is itself problematic.
8562     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8563   else
8564     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8565   fi
8566   # Ok, now we have the path, separated by spaces, we can step through it
8567   # and add multilib dir if necessary.
8568   lt_tmp_lt_search_path_spec=
8569   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8570   for lt_sys_path in $lt_search_path_spec; do
8571     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8572       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8573     else
8574       test -d "$lt_sys_path" && \
8575         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8576     fi
8577   done
8578   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8579 BEGIN {RS=" "; FS="/|\n";} {
8580   lt_foo="";
8581   lt_count=0;
8582   for (lt_i = NF; lt_i > 0; lt_i--) {
8583     if ($lt_i != "" && $lt_i != ".") {
8584       if ($lt_i == "..") {
8585         lt_count++;
8586       } else {
8587         if (lt_count == 0) {
8588           lt_foo="/" $lt_i lt_foo;
8589         } else {
8590           lt_count--;
8591         }
8592       }
8593     }
8594   }
8595   if (lt_foo != "") { lt_freq[lt_foo]++; }
8596   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8597 }'`
8598   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8599 else
8600   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8601 fi
8602 need_lib_prefix=unknown
8603 hardcode_into_libs=no
8604
8605 # when you set need_version to no, make sure it does not cause -set_version
8606 # flags to be left without arguments
8607 need_version=unknown
8608
8609 case $host_os in
8610 aix3*)
8611   version_type=linux
8612   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8613   shlibpath_var=LIBPATH
8614
8615   # AIX 3 has no versioning support, so we append a major version to the name.
8616   soname_spec='${libname}${release}${shared_ext}$major'
8617   ;;
8618
8619 aix4* | aix5*)
8620   version_type=linux
8621   need_lib_prefix=no
8622   need_version=no
8623   hardcode_into_libs=yes
8624   if test "$host_cpu" = ia64; then
8625     # AIX 5 supports IA64
8626     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8627     shlibpath_var=LD_LIBRARY_PATH
8628   else
8629     # With GCC up to 2.95.x, collect2 would create an import file
8630     # for dependence libraries.  The import file would start with
8631     # the line `#! .'.  This would cause the generated library to
8632     # depend on `.', always an invalid library.  This was fixed in
8633     # development snapshots of GCC prior to 3.0.
8634     case $host_os in
8635       aix4 | aix4.[01] | aix4.[01].*)
8636       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8637            echo ' yes '
8638            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8639         :
8640       else
8641         can_build_shared=no
8642       fi
8643       ;;
8644     esac
8645     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8646     # soname into executable. Probably we can add versioning support to
8647     # collect2, so additional links can be useful in future.
8648     if test "$aix_use_runtimelinking" = yes; then
8649       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8650       # instead of lib<name>.a to let people know that these are not
8651       # typical AIX shared libraries.
8652       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653     else
8654       # We preserve .a as extension for shared libraries through AIX4.2
8655       # and later when we are not doing run time linking.
8656       library_names_spec='${libname}${release}.a $libname.a'
8657       soname_spec='${libname}${release}${shared_ext}$major'
8658     fi
8659     shlibpath_var=LIBPATH
8660   fi
8661   ;;
8662
8663 amigaos*)
8664   library_names_spec='$libname.ixlibrary $libname.a'
8665   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8666   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'
8667   ;;
8668
8669 beos*)
8670   library_names_spec='${libname}${shared_ext}'
8671   dynamic_linker="$host_os ld.so"
8672   shlibpath_var=LIBRARY_PATH
8673   ;;
8674
8675 bsdi[45]*)
8676   version_type=linux
8677   need_version=no
8678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679   soname_spec='${libname}${release}${shared_ext}$major'
8680   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8681   shlibpath_var=LD_LIBRARY_PATH
8682   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8683   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8684   # the default ld.so.conf also contains /usr/contrib/lib and
8685   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8686   # libtool to hard-code these into programs
8687   ;;
8688
8689 cygwin* | mingw* | pw32*)
8690   version_type=windows
8691   shrext_cmds=".dll"
8692   need_version=no
8693   need_lib_prefix=no
8694
8695   case $GCC,$host_os in
8696   yes,cygwin* | yes,mingw* | yes,pw32*)
8697     library_names_spec='$libname.dll.a'
8698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8699     postinstall_cmds='base_file=`basename \${file}`~
8700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8701       dldir=$destdir/`dirname \$dlpath`~
8702       test -d \$dldir || mkdir -p \$dldir~
8703       $install_prog $dir/$dlname \$dldir/$dlname~
8704       chmod a+x \$dldir/$dlname'
8705     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8706       dlpath=$dir/\$dldll~
8707        $rm \$dlpath'
8708     shlibpath_overrides_runpath=yes
8709
8710     case $host_os in
8711     cygwin*)
8712       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8713       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8714       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8715       ;;
8716     mingw*)
8717       # MinGW DLLs use traditional 'lib' prefix
8718       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8719       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8721         # It is most probably a Windows format PATH printed by
8722         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8723         # path with ; separators, and with drive letters. We can handle the
8724         # drive letters (cygwin fileutils understands them), so leave them,
8725         # especially as we might pass files found there to a mingw objdump,
8726         # which wouldn't understand a cygwinified path. Ahh.
8727         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8728       else
8729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8730       fi
8731       ;;
8732     pw32*)
8733       # pw32 DLLs use 'pw' prefix rather than 'lib'
8734       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735       ;;
8736     esac
8737     ;;
8738
8739   *)
8740     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8741     ;;
8742   esac
8743   dynamic_linker='Win32 ld.exe'
8744   # FIXME: first we should search . and the directory the executable is in
8745   shlibpath_var=PATH
8746   ;;
8747
8748 darwin* | rhapsody*)
8749   dynamic_linker="$host_os dyld"
8750   version_type=darwin
8751   need_lib_prefix=no
8752   need_version=no
8753   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8754   soname_spec='${libname}${release}${major}$shared_ext'
8755   shlibpath_overrides_runpath=yes
8756   shlibpath_var=DYLD_LIBRARY_PATH
8757   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8758
8759   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8760   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8761   ;;
8762
8763 dgux*)
8764   version_type=linux
8765   need_lib_prefix=no
8766   need_version=no
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   shlibpath_var=LD_LIBRARY_PATH
8770   ;;
8771
8772 freebsd1*)
8773   dynamic_linker=no
8774   ;;
8775
8776 freebsd* | dragonfly*)
8777   # DragonFly does not have aout.  When/if they implement a new
8778   # versioning mechanism, adjust this.
8779   if test -x /usr/bin/objformat; then
8780     objformat=`/usr/bin/objformat`
8781   else
8782     case $host_os in
8783     freebsd[123]*) objformat=aout ;;
8784     *) objformat=elf ;;
8785     esac
8786   fi
8787   version_type=freebsd-$objformat
8788   case $version_type in
8789     freebsd-elf*)
8790       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791       need_version=no
8792       need_lib_prefix=no
8793       ;;
8794     freebsd-*)
8795       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8796       need_version=yes
8797       ;;
8798   esac
8799   shlibpath_var=LD_LIBRARY_PATH
8800   case $host_os in
8801   freebsd2*)
8802     shlibpath_overrides_runpath=yes
8803     ;;
8804   freebsd3.[01]* | freebsdelf3.[01]*)
8805     shlibpath_overrides_runpath=yes
8806     hardcode_into_libs=yes
8807     ;;
8808   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8809   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8810     shlibpath_overrides_runpath=no
8811     hardcode_into_libs=yes
8812     ;;
8813   *) # from 4.6 on, and DragonFly
8814     shlibpath_overrides_runpath=yes
8815     hardcode_into_libs=yes
8816     ;;
8817   esac
8818   ;;
8819
8820 gnu*)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   shlibpath_var=LD_LIBRARY_PATH
8827   hardcode_into_libs=yes
8828   ;;
8829
8830 hpux9* | hpux10* | hpux11*)
8831   # Give a soname corresponding to the major version so that dld.sl refuses to
8832   # link against other versions.
8833   version_type=sunos
8834   need_lib_prefix=no
8835   need_version=no
8836   case $host_cpu in
8837   ia64*)
8838     shrext_cmds='.so'
8839     hardcode_into_libs=yes
8840     dynamic_linker="$host_os dld.so"
8841     shlibpath_var=LD_LIBRARY_PATH
8842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844     soname_spec='${libname}${release}${shared_ext}$major'
8845     if test "X$HPUX_IA64_MODE" = X32; then
8846       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8847     else
8848       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8849     fi
8850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851     ;;
8852    hppa*64*)
8853      shrext_cmds='.sl'
8854      hardcode_into_libs=yes
8855      dynamic_linker="$host_os dld.sl"
8856      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8857      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859      soname_spec='${libname}${release}${shared_ext}$major'
8860      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8861      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862      ;;
8863    *)
8864     shrext_cmds='.sl'
8865     dynamic_linker="$host_os dld.sl"
8866     shlibpath_var=SHLIB_PATH
8867     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869     soname_spec='${libname}${release}${shared_ext}$major'
8870     ;;
8871   esac
8872   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8873   postinstall_cmds='chmod 555 $lib'
8874   ;;
8875
8876 interix[3-9]*)
8877   version_type=linux
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=no
8885   hardcode_into_libs=yes
8886   ;;
8887
8888 irix5* | irix6* | nonstopux*)
8889   case $host_os in
8890     nonstopux*) version_type=nonstopux ;;
8891     *)
8892         if test "$lt_cv_prog_gnu_ld" = yes; then
8893                 version_type=linux
8894         else
8895                 version_type=irix
8896         fi ;;
8897   esac
8898   need_lib_prefix=no
8899   need_version=no
8900   soname_spec='${libname}${release}${shared_ext}$major'
8901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8902   case $host_os in
8903   irix5* | nonstopux*)
8904     libsuff= shlibsuff=
8905     ;;
8906   *)
8907     case $LD in # libtool.m4 will add one of these switches to LD
8908     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8909       libsuff= shlibsuff= libmagic=32-bit;;
8910     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8911       libsuff=32 shlibsuff=N32 libmagic=N32;;
8912     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8913       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8914     *) libsuff= shlibsuff= libmagic=never-match;;
8915     esac
8916     ;;
8917   esac
8918   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8919   shlibpath_overrides_runpath=no
8920   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8921   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8922   hardcode_into_libs=yes
8923   ;;
8924
8925 # No shared lib support for Linux oldld, aout, or coff.
8926 linux*oldld* | linux*aout* | linux*coff*)
8927   dynamic_linker=no
8928   ;;
8929
8930 # This must be Linux ELF.
8931 linux* | k*bsd*-gnu)
8932   version_type=linux
8933   need_lib_prefix=no
8934   need_version=no
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8938   shlibpath_var=LD_LIBRARY_PATH
8939   shlibpath_overrides_runpath=no
8940   # This implies no fast_install, which is unacceptable.
8941   # Some rework will be needed to allow for fast_install
8942   # before this can be enabled.
8943   hardcode_into_libs=yes
8944
8945   # find out which ABI we are using
8946   libsuff=
8947   case "$host_cpu" in
8948   x86_64*|s390x*|powerpc64*)
8949     echo '#line 8949 "configure"' > conftest.$ac_ext
8950     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8951   (eval $ac_compile) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; then
8955       case `/usr/bin/file conftest.$ac_objext` in
8956       *64-bit*)
8957         libsuff=64
8958         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8959         ;;
8960       esac
8961     fi
8962     rm -rf conftest*
8963     ;;
8964   esac
8965
8966   # Append ld.so.conf contents to the search path
8967   if test -f /etc/ld.so.conf; then
8968     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' ' '`
8969     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8970   fi
8971
8972   # We used to test for /lib/ld.so.1 and disable shared libraries on
8973   # powerpc, because MkLinux only supported shared libraries with the
8974   # GNU dynamic linker.  Since this was broken with cross compilers,
8975   # most powerpc-linux boxes support dynamic linking these days and
8976   # people can always --disable-shared, the test was removed, and we
8977   # assume the GNU/Linux dynamic linker is in use.
8978   dynamic_linker='GNU/Linux ld.so'
8979   ;;
8980
8981 netbsd*)
8982   version_type=sunos
8983   need_lib_prefix=no
8984   need_version=no
8985   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988     dynamic_linker='NetBSD (a.out) ld.so'
8989   else
8990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991     soname_spec='${libname}${release}${shared_ext}$major'
8992     dynamic_linker='NetBSD ld.elf_so'
8993   fi
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=yes
8996   hardcode_into_libs=yes
8997   ;;
8998
8999 newsos6)
9000   version_type=linux
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   shlibpath_overrides_runpath=yes
9004   ;;
9005
9006 nto-qnx*)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   shlibpath_overrides_runpath=yes
9014   ;;
9015
9016 openbsd*)
9017   version_type=sunos
9018   sys_lib_dlsearch_path_spec="/usr/lib"
9019   need_lib_prefix=no
9020   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9021   case $host_os in
9022     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9023     *)                         need_version=no  ;;
9024   esac
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9029     case $host_os in
9030       openbsd2.[89] | openbsd2.[89].*)
9031         shlibpath_overrides_runpath=no
9032         ;;
9033       *)
9034         shlibpath_overrides_runpath=yes
9035         ;;
9036       esac
9037   else
9038     shlibpath_overrides_runpath=yes
9039   fi
9040   ;;
9041
9042 os2*)
9043   libname_spec='$name'
9044   shrext_cmds=".dll"
9045   need_lib_prefix=no
9046   library_names_spec='$libname${shared_ext} $libname.a'
9047   dynamic_linker='OS/2 ld.exe'
9048   shlibpath_var=LIBPATH
9049   ;;
9050
9051 osf3* | osf4* | osf5*)
9052   version_type=osf
9053   need_lib_prefix=no
9054   need_version=no
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9060   ;;
9061
9062 rdos*)
9063   dynamic_linker=no
9064   ;;
9065
9066 solaris*)
9067   version_type=linux
9068   need_lib_prefix=no
9069   need_version=no
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071   soname_spec='${libname}${release}${shared_ext}$major'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   shlibpath_overrides_runpath=yes
9074   hardcode_into_libs=yes
9075   # ldd complains unless libraries are executable
9076   postinstall_cmds='chmod +x $lib'
9077   ;;
9078
9079 sunos4*)
9080   version_type=sunos
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   shlibpath_overrides_runpath=yes
9085   if test "$with_gnu_ld" = yes; then
9086     need_lib_prefix=no
9087   fi
9088   need_version=yes
9089   ;;
9090
9091 sysv4 | sysv4.3*)
9092   version_type=linux
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   soname_spec='${libname}${release}${shared_ext}$major'
9095   shlibpath_var=LD_LIBRARY_PATH
9096   case $host_vendor in
9097     sni)
9098       shlibpath_overrides_runpath=no
9099       need_lib_prefix=no
9100       export_dynamic_flag_spec='${wl}-Blargedynsym'
9101       runpath_var=LD_RUN_PATH
9102       ;;
9103     siemens)
9104       need_lib_prefix=no
9105       ;;
9106     motorola)
9107       need_lib_prefix=no
9108       need_version=no
9109       shlibpath_overrides_runpath=no
9110       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9111       ;;
9112   esac
9113   ;;
9114
9115 sysv4*MP*)
9116   if test -d /usr/nec ;then
9117     version_type=linux
9118     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119     soname_spec='$libname${shared_ext}.$major'
9120     shlibpath_var=LD_LIBRARY_PATH
9121   fi
9122   ;;
9123
9124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9125   version_type=freebsd-elf
9126   need_lib_prefix=no
9127   need_version=no
9128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   hardcode_into_libs=yes
9132   if test "$with_gnu_ld" = yes; then
9133     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134     shlibpath_overrides_runpath=no
9135   else
9136     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9137     shlibpath_overrides_runpath=yes
9138     case $host_os in
9139       sco3.2v5*)
9140         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9141         ;;
9142     esac
9143   fi
9144   sys_lib_dlsearch_path_spec='/usr/lib'
9145   ;;
9146
9147 uts4*)
9148   version_type=linux
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   ;;
9153
9154 *)
9155   dynamic_linker=no
9156   ;;
9157 esac
9158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159 echo "${ECHO_T}$dynamic_linker" >&6; }
9160 test "$dynamic_linker" = no && can_build_shared=no
9161
9162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9163 if test "$GCC" = yes; then
9164   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9165 fi
9166
9167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9169 hardcode_action=
9170 if test -n "$hardcode_libdir_flag_spec" || \
9171    test -n "$runpath_var" || \
9172    test "X$hardcode_automatic" = "Xyes" ; then
9173
9174   # We can hardcode non-existant directories.
9175   if test "$hardcode_direct" != no &&
9176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177      # have to relink, otherwise we might link with an installed library
9178      # when we should be linking with a yet-to-be-installed one
9179      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180      test "$hardcode_minus_L" != no; then
9181     # Linking always hardcodes the temporary library directory.
9182     hardcode_action=relink
9183   else
9184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185     hardcode_action=immediate
9186   fi
9187 else
9188   # We cannot hardcode anything, or else we can only hardcode existing
9189   # directories.
9190   hardcode_action=unsupported
9191 fi
9192 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193 echo "${ECHO_T}$hardcode_action" >&6; }
9194
9195 if test "$hardcode_action" = relink; then
9196   # Fast installation is not supported
9197   enable_fast_install=no
9198 elif test "$shlibpath_overrides_runpath" = yes ||
9199      test "$enable_shared" = no; then
9200   # Fast installation is not necessary
9201   enable_fast_install=needless
9202 fi
9203
9204 striplib=
9205 old_striplib=
9206 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9209   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9210   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9211   { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9213 else
9214 # FIXME - insert some real tests, host_os isn't really good enough
9215   case $host_os in
9216    darwin*)
9217        if test -n "$STRIP" ; then
9218          striplib="$STRIP -x"
9219          old_striplib="$STRIP -S"
9220          { echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6; }
9222        else
9223   { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9225 fi
9226        ;;
9227    *)
9228   { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9230     ;;
9231   esac
9232 fi
9233
9234 if test "x$enable_dlopen" != xyes; then
9235   enable_dlopen=unknown
9236   enable_dlopen_self=unknown
9237   enable_dlopen_self_static=unknown
9238 else
9239   lt_cv_dlopen=no
9240   lt_cv_dlopen_libs=
9241
9242   case $host_os in
9243   beos*)
9244     lt_cv_dlopen="load_add_on"
9245     lt_cv_dlopen_libs=
9246     lt_cv_dlopen_self=yes
9247     ;;
9248
9249   mingw* | pw32*)
9250     lt_cv_dlopen="LoadLibrary"
9251     lt_cv_dlopen_libs=
9252    ;;
9253
9254   cygwin*)
9255     lt_cv_dlopen="dlopen"
9256     lt_cv_dlopen_libs=
9257    ;;
9258
9259   darwin*)
9260   # if libdl is installed we need to link against it
9261     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-ldl  $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274
9275 /* Override any GCC internal prototype to avoid an error.
9276    Use char because int might match the return type of a GCC
9277    builtin and then its argument prototype would still apply.  */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char dlopen ();
9282 int
9283 main ()
9284 {
9285 return dlopen ();
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (ac_try="$ac_link"
9292 case "(($ac_try" in
9293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294   *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297   (eval "$ac_link") 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } && {
9304          test -z "$ac_c_werror_flag" ||
9305          test ! -s conftest.err
9306        } && test -s conftest$ac_exeext &&
9307        $as_test_x conftest$ac_exeext; then
9308   ac_cv_lib_dl_dlopen=yes
9309 else
9310   echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313         ac_cv_lib_dl_dlopen=no
9314 fi
9315
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317       conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9319 fi
9320 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9322 if test $ac_cv_lib_dl_dlopen = yes; then
9323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9324 else
9325
9326     lt_cv_dlopen="dyld"
9327     lt_cv_dlopen_libs=
9328     lt_cv_dlopen_self=yes
9329
9330 fi
9331
9332    ;;
9333
9334   *)
9335     { echo "$as_me:$LINENO: checking for shl_load" >&5
9336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_shl_load+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9348 #define shl_load innocuous_shl_load
9349
9350 /* System header to define __stub macros and hopefully few prototypes,
9351     which can conflict with char shl_load (); below.
9352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353     <limits.h> exists even on freestanding compilers.  */
9354
9355 #ifdef __STDC__
9356 # include <limits.h>
9357 #else
9358 # include <assert.h>
9359 #endif
9360
9361 #undef shl_load
9362
9363 /* Override any GCC internal prototype to avoid an error.
9364    Use char because int might match the return type of a GCC
9365    builtin and then its argument prototype would still apply.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char shl_load ();
9370 /* The GNU C library defines this for functions which it implements
9371     to always fail with ENOSYS.  Some functions are actually named
9372     something starting with __ and the normal name is an alias.  */
9373 #if defined __stub_shl_load || defined __stub___shl_load
9374 choke me
9375 #endif
9376
9377 int
9378 main ()
9379 {
9380 return shl_load ();
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9387 case "(($ac_try" in
9388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389   *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392   (eval "$ac_link") 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } && {
9399          test -z "$ac_c_werror_flag" ||
9400          test ! -s conftest.err
9401        } && test -s conftest$ac_exeext &&
9402        $as_test_x conftest$ac_exeext; then
9403   ac_cv_func_shl_load=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408         ac_cv_func_shl_load=no
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412       conftest$ac_exeext conftest.$ac_ext
9413 fi
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9415 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9416 if test $ac_cv_func_shl_load = yes; then
9417   lt_cv_dlopen="shl_load"
9418 else
9419   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9420 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-ldld  $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432
9433 /* Override any GCC internal prototype to avoid an error.
9434    Use char because int might match the return type of a GCC
9435    builtin and then its argument prototype would still apply.  */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char shl_load ();
9440 int
9441 main ()
9442 {
9443 return shl_load ();
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_link") 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } && {
9462          test -z "$ac_c_werror_flag" ||
9463          test ! -s conftest.err
9464        } && test -s conftest$ac_exeext &&
9465        $as_test_x conftest$ac_exeext; then
9466   ac_cv_lib_dld_shl_load=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471         ac_cv_lib_dld_shl_load=no
9472 fi
9473
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475       conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9482 else
9483   { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+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 dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define dlopen innocuous_dlopen
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char dlopen (); 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 dlopen
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 dlopen ();
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_dlopen || defined __stub___dlopen
9522 choke me
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return dlopen ();
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_dlopen=yes
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556         ac_cv_func_dlopen=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_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9564 if test $ac_cv_func_dlopen = yes; then
9565   lt_cv_dlopen="dlopen"
9566 else
9567   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldl  $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 dlopen ();
9588 int
9589 main ()
9590 {
9591 return dlopen ();
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_dl_dlopen=yes
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619         ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9628 if test $ac_cv_lib_dl_dlopen = yes; then
9629   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9630 else
9631   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9632 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9633 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636   ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-lsvld  $LIBS"
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h.  */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h.  */
9644
9645 /* Override any GCC internal prototype to avoid an error.
9646    Use char because int might match the return type of a GCC
9647    builtin and then its argument prototype would still apply.  */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char dlopen ();
9652 int
9653 main ()
9654 {
9655 return dlopen ();
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9662 case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_link") 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } && {
9674          test -z "$ac_c_werror_flag" ||
9675          test ! -s conftest.err
9676        } && test -s conftest$ac_exeext &&
9677        $as_test_x conftest$ac_exeext; then
9678   ac_cv_lib_svld_dlopen=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         ac_cv_lib_svld_dlopen=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687       conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9689 fi
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9691 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9692 if test $ac_cv_lib_svld_dlopen = yes; then
9693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9694 else
9695   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9696 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   ac_check_lib_save_LIBS=$LIBS
9701 LIBS="-ldld  $LIBS"
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708
9709 /* Override any GCC internal prototype to avoid an error.
9710    Use char because int might match the return type of a GCC
9711    builtin and then its argument prototype would still apply.  */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char dld_link ();
9716 int
9717 main ()
9718 {
9719 return dld_link ();
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } && {
9738          test -z "$ac_c_werror_flag" ||
9739          test ! -s conftest.err
9740        } && test -s conftest$ac_exeext &&
9741        $as_test_x conftest$ac_exeext; then
9742   ac_cv_lib_dld_dld_link=yes
9743 else
9744   echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747         ac_cv_lib_dld_dld_link=no
9748 fi
9749
9750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751       conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9753 fi
9754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9756 if test $ac_cv_lib_dld_dld_link = yes; then
9757   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9758 fi
9759
9760
9761 fi
9762
9763
9764 fi
9765
9766
9767 fi
9768
9769
9770 fi
9771
9772
9773 fi
9774
9775     ;;
9776   esac
9777
9778   if test "x$lt_cv_dlopen" != xno; then
9779     enable_dlopen=yes
9780   else
9781     enable_dlopen=no
9782   fi
9783
9784   case $lt_cv_dlopen in
9785   dlopen)
9786     save_CPPFLAGS="$CPPFLAGS"
9787     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9788
9789     save_LDFLAGS="$LDFLAGS"
9790     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9791
9792     save_LIBS="$LIBS"
9793     LIBS="$lt_cv_dlopen_libs $LIBS"
9794
9795     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9797 if test "${lt_cv_dlopen_self+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800           if test "$cross_compiling" = yes; then :
9801   lt_cv_dlopen_self=cross
9802 else
9803   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9804   lt_status=$lt_dlunknown
9805   cat > conftest.$ac_ext <<EOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9808
9809 #if HAVE_DLFCN_H
9810 #include <dlfcn.h>
9811 #endif
9812
9813 #include <stdio.h>
9814
9815 #ifdef RTLD_GLOBAL
9816 #  define LT_DLGLOBAL           RTLD_GLOBAL
9817 #else
9818 #  ifdef DL_GLOBAL
9819 #    define LT_DLGLOBAL         DL_GLOBAL
9820 #  else
9821 #    define LT_DLGLOBAL         0
9822 #  endif
9823 #endif
9824
9825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9826    find out it does not work in some platform. */
9827 #ifndef LT_DLLAZY_OR_NOW
9828 #  ifdef RTLD_LAZY
9829 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9830 #  else
9831 #    ifdef DL_LAZY
9832 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9833 #    else
9834 #      ifdef RTLD_NOW
9835 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9836 #      else
9837 #        ifdef DL_NOW
9838 #          define LT_DLLAZY_OR_NOW      DL_NOW
9839 #        else
9840 #          define LT_DLLAZY_OR_NOW      0
9841 #        endif
9842 #      endif
9843 #    endif
9844 #  endif
9845 #endif
9846
9847 #ifdef __cplusplus
9848 extern "C" void exit (int);
9849 #endif
9850
9851 void fnord() { int i=42;}
9852 int main ()
9853 {
9854   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9855   int status = $lt_dlunknown;
9856
9857   if (self)
9858     {
9859       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9860       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9861       /* dlclose (self); */
9862     }
9863   else
9864     puts (dlerror ());
9865
9866     exit (status);
9867 }
9868 EOF
9869   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870   (eval $ac_link) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9874     (./conftest; exit; ) >&5 2>/dev/null
9875     lt_status=$?
9876     case x$lt_status in
9877       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9878       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9879       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9880     esac
9881   else :
9882     # compilation failed
9883     lt_cv_dlopen_self=no
9884   fi
9885 fi
9886 rm -fr conftest*
9887
9888
9889 fi
9890 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9892
9893     if test "x$lt_cv_dlopen_self" = xyes; then
9894       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9895       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9897 if test "${lt_cv_dlopen_self_static+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900           if test "$cross_compiling" = yes; then :
9901   lt_cv_dlopen_self_static=cross
9902 else
9903   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9904   lt_status=$lt_dlunknown
9905   cat > conftest.$ac_ext <<EOF
9906 #line 9906 "configure"
9907 #include "confdefs.h"
9908
9909 #if HAVE_DLFCN_H
9910 #include <dlfcn.h>
9911 #endif
9912
9913 #include <stdio.h>
9914
9915 #ifdef RTLD_GLOBAL
9916 #  define LT_DLGLOBAL           RTLD_GLOBAL
9917 #else
9918 #  ifdef DL_GLOBAL
9919 #    define LT_DLGLOBAL         DL_GLOBAL
9920 #  else
9921 #    define LT_DLGLOBAL         0
9922 #  endif
9923 #endif
9924
9925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9926    find out it does not work in some platform. */
9927 #ifndef LT_DLLAZY_OR_NOW
9928 #  ifdef RTLD_LAZY
9929 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9930 #  else
9931 #    ifdef DL_LAZY
9932 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9933 #    else
9934 #      ifdef RTLD_NOW
9935 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9936 #      else
9937 #        ifdef DL_NOW
9938 #          define LT_DLLAZY_OR_NOW      DL_NOW
9939 #        else
9940 #          define LT_DLLAZY_OR_NOW      0
9941 #        endif
9942 #      endif
9943 #    endif
9944 #  endif
9945 #endif
9946
9947 #ifdef __cplusplus
9948 extern "C" void exit (int);
9949 #endif
9950
9951 void fnord() { int i=42;}
9952 int main ()
9953 {
9954   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9955   int status = $lt_dlunknown;
9956
9957   if (self)
9958     {
9959       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9960       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9961       /* dlclose (self); */
9962     }
9963   else
9964     puts (dlerror ());
9965
9966     exit (status);
9967 }
9968 EOF
9969   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9974     (./conftest; exit; ) >&5 2>/dev/null
9975     lt_status=$?
9976     case x$lt_status in
9977       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9978       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9979       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9980     esac
9981   else :
9982     # compilation failed
9983     lt_cv_dlopen_self_static=no
9984   fi
9985 fi
9986 rm -fr conftest*
9987
9988
9989 fi
9990 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9992     fi
9993
9994     CPPFLAGS="$save_CPPFLAGS"
9995     LDFLAGS="$save_LDFLAGS"
9996     LIBS="$save_LIBS"
9997     ;;
9998   esac
9999
10000   case $lt_cv_dlopen_self in
10001   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10002   *) enable_dlopen_self=unknown ;;
10003   esac
10004
10005   case $lt_cv_dlopen_self_static in
10006   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10007   *) enable_dlopen_self_static=unknown ;;
10008   esac
10009 fi
10010
10011
10012 # Report which library types will actually be built
10013 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10015 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10016 echo "${ECHO_T}$can_build_shared" >&6; }
10017
10018 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10020 test "$can_build_shared" = "no" && enable_shared=no
10021
10022 # On AIX, shared libraries and static libraries use the same namespace, and
10023 # are all built from PIC.
10024 case $host_os in
10025 aix3*)
10026   test "$enable_shared" = yes && enable_static=no
10027   if test -n "$RANLIB"; then
10028     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10029     postinstall_cmds='$RANLIB $lib'
10030   fi
10031   ;;
10032
10033 aix4* | aix5*)
10034   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10035     test "$enable_shared" = yes && enable_static=no
10036   fi
10037     ;;
10038 esac
10039 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10040 echo "${ECHO_T}$enable_shared" >&6; }
10041
10042 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10044 # Make sure either enable_shared or enable_static is yes.
10045 test "$enable_shared" = yes || enable_static=yes
10046 { echo "$as_me:$LINENO: result: $enable_static" >&5
10047 echo "${ECHO_T}$enable_static" >&6; }
10048
10049 # The else clause should only fire when bootstrapping the
10050 # libtool distribution, otherwise you forgot to ship ltmain.sh
10051 # with your package, and you will get complaints that there are
10052 # no rules to generate ltmain.sh.
10053 if test -f "$ltmain"; then
10054   # See if we are running on zsh, and set the options which allow our commands through
10055   # without removal of \ escapes.
10056   if test -n "${ZSH_VERSION+set}" ; then
10057     setopt NO_GLOB_SUBST
10058   fi
10059   # Now quote all the things that may contain metacharacters while being
10060   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10061   # variables and quote the copies for generation of the libtool script.
10062   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10063     SED SHELL STRIP \
10064     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10065     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10066     deplibs_check_method reload_flag reload_cmds need_locks \
10067     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10068     lt_cv_sys_global_symbol_to_c_name_address \
10069     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10070     old_postinstall_cmds old_postuninstall_cmds \
10071     compiler \
10072     CC \
10073     LD \
10074     lt_prog_compiler_wl \
10075     lt_prog_compiler_pic \
10076     lt_prog_compiler_static \
10077     lt_prog_compiler_no_builtin_flag \
10078     export_dynamic_flag_spec \
10079     thread_safe_flag_spec \
10080     whole_archive_flag_spec \
10081     enable_shared_with_static_runtimes \
10082     old_archive_cmds \
10083     old_archive_from_new_cmds \
10084     predep_objects \
10085     postdep_objects \
10086     predeps \
10087     postdeps \
10088     compiler_lib_search_path \
10089     archive_cmds \
10090     archive_expsym_cmds \
10091     postinstall_cmds \
10092     postuninstall_cmds \
10093     old_archive_from_expsyms_cmds \
10094     allow_undefined_flag \
10095     no_undefined_flag \
10096     export_symbols_cmds \
10097     hardcode_libdir_flag_spec \
10098     hardcode_libdir_flag_spec_ld \
10099     hardcode_libdir_separator \
10100     hardcode_automatic \
10101     module_cmds \
10102     module_expsym_cmds \
10103     lt_cv_prog_compiler_c_o \
10104     fix_srcfile_path \
10105     exclude_expsyms \
10106     include_expsyms; do
10107
10108     case $var in
10109     old_archive_cmds | \
10110     old_archive_from_new_cmds | \
10111     archive_cmds | \
10112     archive_expsym_cmds | \
10113     module_cmds | \
10114     module_expsym_cmds | \
10115     old_archive_from_expsyms_cmds | \
10116     export_symbols_cmds | \
10117     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118     postinstall_cmds | postuninstall_cmds | \
10119     old_postinstall_cmds | old_postuninstall_cmds | \
10120     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121       # Double-quote double-evaled strings.
10122       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10123       ;;
10124     *)
10125       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10126       ;;
10127     esac
10128   done
10129
10130   case $lt_echo in
10131   *'\$0 --fallback-echo"')
10132     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10133     ;;
10134   esac
10135
10136 cfgfile="${ofile}T"
10137   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10138   $rm -f "$cfgfile"
10139   { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10141
10142   cat <<__EOF__ >> "$cfgfile"
10143 #! $SHELL
10144
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10148 #
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10150 # Free Software Foundation, Inc.
10151 #
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10154 #
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 2 of the License, or
10158 # (at your option) any later version.
10159 #
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10163 # General Public License for more details.
10164 #
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, write to the Free Software
10167 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10168 #
10169 # As a special exception to the GNU General Public License, if you
10170 # distribute this file as part of a program that contains a
10171 # configuration script generated by Autoconf, you may include it under
10172 # the same distribution terms that you use for the rest of that program.
10173
10174 # A sed program that does not truncate output.
10175 SED=$lt_SED
10176
10177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10178 Xsed="$SED -e 1s/^X//"
10179
10180 # The HP-UX ksh and POSIX shell print the target directory to stdout
10181 # if CDPATH is set.
10182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10183
10184 # The names of the tagged configurations supported by this script.
10185 available_tags=
10186
10187 # ### BEGIN LIBTOOL CONFIG
10188
10189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10190
10191 # Shell to use when invoking shell scripts.
10192 SHELL=$lt_SHELL
10193
10194 # Whether or not to build shared libraries.
10195 build_libtool_libs=$enable_shared
10196
10197 # Whether or not to build static libraries.
10198 build_old_libs=$enable_static
10199
10200 # Whether or not to add -lc for building shared libraries.
10201 build_libtool_need_lc=$archive_cmds_need_lc
10202
10203 # Whether or not to disallow shared libs when runtime libs are static
10204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10205
10206 # Whether or not to optimize for fast installation.
10207 fast_install=$enable_fast_install
10208
10209 # The host system.
10210 host_alias=$host_alias
10211 host=$host
10212 host_os=$host_os
10213
10214 # The build system.
10215 build_alias=$build_alias
10216 build=$build
10217 build_os=$build_os
10218
10219 # An echo program that does not interpret backslashes.
10220 echo=$lt_echo
10221
10222 # The archiver.
10223 AR=$lt_AR
10224 AR_FLAGS=$lt_AR_FLAGS
10225
10226 # A C compiler.
10227 LTCC=$lt_LTCC
10228
10229 # LTCC compiler flags.
10230 LTCFLAGS=$lt_LTCFLAGS
10231
10232 # A language-specific compiler.
10233 CC=$lt_compiler
10234
10235 # Is the compiler the GNU C compiler?
10236 with_gcc=$GCC
10237
10238 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10239 gcc_ver=\`gcc -dumpversion\`
10240
10241 # An ERE matcher.
10242 EGREP=$lt_EGREP
10243
10244 # The linker used to build libraries.
10245 LD=$lt_LD
10246
10247 # Whether we need hard or soft links.
10248 LN_S=$lt_LN_S
10249
10250 # A BSD-compatible nm program.
10251 NM=$lt_NM
10252
10253 # A symbol stripping program
10254 STRIP=$lt_STRIP
10255
10256 # Used to examine libraries when file_magic_cmd begins "file"
10257 MAGIC_CMD=$MAGIC_CMD
10258
10259 # Used on cygwin: DLL creation program.
10260 DLLTOOL="$DLLTOOL"
10261
10262 # Used on cygwin: object dumper.
10263 OBJDUMP="$OBJDUMP"
10264
10265 # Used on cygwin: assembler.
10266 AS="$AS"
10267
10268 # The name of the directory that contains temporary libtool files.
10269 objdir=$objdir
10270
10271 # How to create reloadable object files.
10272 reload_flag=$lt_reload_flag
10273 reload_cmds=$lt_reload_cmds
10274
10275 # How to pass a linker flag through the compiler.
10276 wl=$lt_lt_prog_compiler_wl
10277
10278 # Object file suffix (normally "o").
10279 objext="$ac_objext"
10280
10281 # Old archive suffix (normally "a").
10282 libext="$libext"
10283
10284 # Shared library suffix (normally ".so").
10285 shrext_cmds='$shrext_cmds'
10286
10287 # Executable file suffix (normally "").
10288 exeext="$exeext"
10289
10290 # Additional compiler flags for building library objects.
10291 pic_flag=$lt_lt_prog_compiler_pic
10292 pic_mode=$pic_mode
10293
10294 # What is the maximum length of a command?
10295 max_cmd_len=$lt_cv_sys_max_cmd_len
10296
10297 # Does compiler simultaneously support -c and -o options?
10298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10299
10300 # Must we lock files when doing compilation?
10301 need_locks=$lt_need_locks
10302
10303 # Do we need the lib prefix for modules?
10304 need_lib_prefix=$need_lib_prefix
10305
10306 # Do we need a version for libraries?
10307 need_version=$need_version
10308
10309 # Whether dlopen is supported.
10310 dlopen_support=$enable_dlopen
10311
10312 # Whether dlopen of programs is supported.
10313 dlopen_self=$enable_dlopen_self
10314
10315 # Whether dlopen of statically linked programs is supported.
10316 dlopen_self_static=$enable_dlopen_self_static
10317
10318 # Compiler flag to prevent dynamic linking.
10319 link_static_flag=$lt_lt_prog_compiler_static
10320
10321 # Compiler flag to turn off builtin functions.
10322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10323
10324 # Compiler flag to allow reflexive dlopens.
10325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10326
10327 # Compiler flag to generate shared objects directly from archives.
10328 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10329
10330 # Compiler flag to generate thread-safe objects.
10331 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10332
10333 # Library versioning type.
10334 version_type=$version_type
10335
10336 # Format of library name prefix.
10337 libname_spec=$lt_libname_spec
10338
10339 # List of archive names.  First name is the real one, the rest are links.
10340 # The last name is the one that the linker finds with -lNAME.
10341 library_names_spec=$lt_library_names_spec
10342
10343 # The coded name of the library, if different from the real name.
10344 soname_spec=$lt_soname_spec
10345
10346 # Commands used to build and install an old-style archive.
10347 RANLIB=$lt_RANLIB
10348 old_archive_cmds=$lt_old_archive_cmds
10349 old_postinstall_cmds=$lt_old_postinstall_cmds
10350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10351
10352 # Create an old-style archive from a shared archive.
10353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10354
10355 # Create a temporary old-style archive to link instead of a shared archive.
10356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10357
10358 # Commands used to build and install a shared archive.
10359 archive_cmds=$lt_archive_cmds
10360 archive_expsym_cmds=$lt_archive_expsym_cmds
10361 postinstall_cmds=$lt_postinstall_cmds
10362 postuninstall_cmds=$lt_postuninstall_cmds
10363
10364 # Commands used to build a loadable module (assumed same as above if empty)
10365 module_cmds=$lt_module_cmds
10366 module_expsym_cmds=$lt_module_expsym_cmds
10367
10368 # Commands to strip libraries.
10369 old_striplib=$lt_old_striplib
10370 striplib=$lt_striplib
10371
10372 # Dependencies to place before the objects being linked to create a
10373 # shared library.
10374 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10375
10376 # Dependencies to place after the objects being linked to create a
10377 # shared library.
10378 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10379
10380 # Dependencies to place before the objects being linked to create a
10381 # shared library.
10382 predeps=$lt_predeps
10383
10384 # Dependencies to place after the objects being linked to create a
10385 # shared library.
10386 postdeps=$lt_postdeps
10387
10388 # The library search path used internally by the compiler when linking
10389 # a shared library.
10390 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10391
10392 # Method to check whether dependent libraries are shared objects.
10393 deplibs_check_method=$lt_deplibs_check_method
10394
10395 # Command to use when deplibs_check_method == file_magic.
10396 file_magic_cmd=$lt_file_magic_cmd
10397
10398 # Flag that allows shared libraries with undefined symbols to be built.
10399 allow_undefined_flag=$lt_allow_undefined_flag
10400
10401 # Flag that forces no undefined symbols.
10402 no_undefined_flag=$lt_no_undefined_flag
10403
10404 # Commands used to finish a libtool library installation in a directory.
10405 finish_cmds=$lt_finish_cmds
10406
10407 # Same as above, but a single script fragment to be evaled but not shown.
10408 finish_eval=$lt_finish_eval
10409
10410 # Take the output of nm and produce a listing of raw symbols and C names.
10411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10412
10413 # Transform the output of nm in a proper C declaration
10414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10415
10416 # Transform the output of nm in a C name address pair
10417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10418
10419 # This is the shared library runtime path variable.
10420 runpath_var=$runpath_var
10421
10422 # This is the shared library path variable.
10423 shlibpath_var=$shlibpath_var
10424
10425 # Is shlibpath searched before the hard-coded library search path?
10426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10427
10428 # How to hardcode a shared library path into an executable.
10429 hardcode_action=$hardcode_action
10430
10431 # Whether we should hardcode library paths into libraries.
10432 hardcode_into_libs=$hardcode_into_libs
10433
10434 # Flag to hardcode \$libdir into a binary during linking.
10435 # This must work even if \$libdir does not exist.
10436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10437
10438 # If ld is used when linking, flag to hardcode \$libdir into
10439 # a binary during linking. This must work even if \$libdir does
10440 # not exist.
10441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10442
10443 # Whether we need a single -rpath flag with a separated argument.
10444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10445
10446 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10447 # resulting binary.
10448 hardcode_direct=$hardcode_direct
10449
10450 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10451 # resulting binary.
10452 hardcode_minus_L=$hardcode_minus_L
10453
10454 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10455 # the resulting binary.
10456 hardcode_shlibpath_var=$hardcode_shlibpath_var
10457
10458 # Set to yes if building a shared library automatically hardcodes DIR into the library
10459 # and all subsequent libraries and executables linked against it.
10460 hardcode_automatic=$hardcode_automatic
10461
10462 # Variables whose values should be saved in libtool wrapper scripts and
10463 # restored at relink time.
10464 variables_saved_for_relink="$variables_saved_for_relink"
10465
10466 # Whether libtool must link a program against all its dependency libraries.
10467 link_all_deplibs=$link_all_deplibs
10468
10469 # Compile-time system search path for libraries
10470 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10471
10472 # Run-time system search path for libraries
10473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10474
10475 # Fix the shell variable \$srcfile for the compiler.
10476 fix_srcfile_path=$lt_fix_srcfile_path
10477
10478 # Set to yes if exported symbols are required.
10479 always_export_symbols=$always_export_symbols
10480
10481 # The commands to list exported symbols.
10482 export_symbols_cmds=$lt_export_symbols_cmds
10483
10484 # The commands to extract the exported symbol list from a shared archive.
10485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10486
10487 # Symbols that should not be listed in the preloaded symbols.
10488 exclude_expsyms=$lt_exclude_expsyms
10489
10490 # Symbols that must always be exported.
10491 include_expsyms=$lt_include_expsyms
10492
10493 # ### END LIBTOOL CONFIG
10494
10495 __EOF__
10496
10497
10498   case $host_os in
10499   aix3*)
10500     cat <<\EOF >> "$cfgfile"
10501
10502 # AIX sometimes has problems with the GCC collect2 program.  For some
10503 # reason, if we set the COLLECT_NAMES environment variable, the problems
10504 # vanish in a puff of smoke.
10505 if test "X${COLLECT_NAMES+set}" != Xset; then
10506   COLLECT_NAMES=
10507   export COLLECT_NAMES
10508 fi
10509 EOF
10510     ;;
10511   esac
10512
10513   # We use sed instead of cat because bash on DJGPP gets confused if
10514   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10515   # text mode, it properly converts lines to CR/LF.  This bash problem
10516   # is reportedly fixed, but why not run on old versions too?
10517   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10518
10519   mv -f "$cfgfile" "$ofile" || \
10520     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10521   chmod +x "$ofile"
10522
10523 else
10524   # If there is no Makefile yet, we rely on a make rule to execute
10525   # `config.status --recheck' to rerun these tests and create the
10526   # libtool script then.
10527   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10528   if test -f "$ltmain_in"; then
10529     test -f Makefile && make "$ltmain"
10530   fi
10531 fi
10532
10533
10534 ac_ext=c
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10539
10540 CC="$lt_save_CC"
10541
10542
10543 # Check whether --with-tags was given.
10544 if test "${with_tags+set}" = set; then
10545   withval=$with_tags; tagnames="$withval"
10546 fi
10547
10548
10549 if test -f "$ltmain" && test -n "$tagnames"; then
10550   if test ! -f "${ofile}"; then
10551     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10552 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10553   fi
10554
10555   if test -z "$LTCC"; then
10556     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10557     if test -z "$LTCC"; then
10558       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10559 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10560     else
10561       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10562 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10563     fi
10564   fi
10565   if test -z "$LTCFLAGS"; then
10566     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10567   fi
10568
10569   # Extract list of available tagged configurations in $ofile.
10570   # Note that this assumes the entire list is on one line.
10571   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10572
10573   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10574   for tagname in $tagnames; do
10575     IFS="$lt_save_ifs"
10576     # Check whether tagname contains only valid characters
10577     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10578     "") ;;
10579     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10580 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10581    { (exit 1); exit 1; }; }
10582         ;;
10583     esac
10584
10585     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10586     then
10587       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10588 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10589    { (exit 1); exit 1; }; }
10590     fi
10591
10592     # Update the list of available tags.
10593     if test -n "$tagname"; then
10594       echo appending configuration tag \"$tagname\" to $ofile
10595
10596       case $tagname in
10597       CXX)
10598         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10599             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10600             (test "X$CXX" != "Xg++"))) ; then
10601           ac_ext=cpp
10602 ac_cpp='$CXXCPP $CPPFLAGS'
10603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10606
10607
10608
10609
10610 archive_cmds_need_lc_CXX=no
10611 allow_undefined_flag_CXX=
10612 always_export_symbols_CXX=no
10613 archive_expsym_cmds_CXX=
10614 export_dynamic_flag_spec_CXX=
10615 hardcode_direct_CXX=no
10616 hardcode_libdir_flag_spec_CXX=
10617 hardcode_libdir_flag_spec_ld_CXX=
10618 hardcode_libdir_separator_CXX=
10619 hardcode_minus_L_CXX=no
10620 hardcode_shlibpath_var_CXX=unsupported
10621 hardcode_automatic_CXX=no
10622 module_cmds_CXX=
10623 module_expsym_cmds_CXX=
10624 link_all_deplibs_CXX=unknown
10625 old_archive_cmds_CXX=$old_archive_cmds
10626 no_undefined_flag_CXX=
10627 whole_archive_flag_spec_CXX=
10628 enable_shared_with_static_runtimes_CXX=no
10629
10630 # Dependencies to place before and after the object being linked:
10631 predep_objects_CXX=
10632 postdep_objects_CXX=
10633 predeps_CXX=
10634 postdeps_CXX=
10635 compiler_lib_search_path_CXX=
10636
10637 # Source file extension for C++ test sources.
10638 ac_ext=cpp
10639
10640 # Object file extension for compiled C++ test sources.
10641 objext=o
10642 objext_CXX=$objext
10643
10644 # Code to be used in simple compile tests
10645 lt_simple_compile_test_code="int some_variable = 0;"
10646
10647 # Code to be used in simple link tests
10648 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10649
10650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10651
10652 # If no C compiler was specified, use CC.
10653 LTCC=${LTCC-"$CC"}
10654
10655 # If no C compiler flags were specified, use CFLAGS.
10656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10657
10658 # Allow CC to be a program name with arguments.
10659 compiler=$CC
10660
10661
10662 # save warnings/boilerplate of simple test code
10663 ac_outfile=conftest.$ac_objext
10664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10666 _lt_compiler_boilerplate=`cat conftest.err`
10667 $rm conftest*
10668
10669 ac_outfile=conftest.$ac_objext
10670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10672 _lt_linker_boilerplate=`cat conftest.err`
10673 $rm conftest*
10674
10675
10676 # Allow CC to be a program name with arguments.
10677 lt_save_CC=$CC
10678 lt_save_LD=$LD
10679 lt_save_GCC=$GCC
10680 GCC=$GXX
10681 lt_save_with_gnu_ld=$with_gnu_ld
10682 lt_save_path_LD=$lt_cv_path_LD
10683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10684   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10685 else
10686   $as_unset lt_cv_prog_gnu_ld
10687 fi
10688 if test -n "${lt_cv_path_LDCXX+set}"; then
10689   lt_cv_path_LD=$lt_cv_path_LDCXX
10690 else
10691   $as_unset lt_cv_path_LD
10692 fi
10693 test -z "${LDCXX+set}" || LD=$LDCXX
10694 CC=${CXX-"c++"}
10695 compiler=$CC
10696 compiler_CXX=$CC
10697 for cc_temp in $compiler""; do
10698   case $cc_temp in
10699     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10700     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10701     \-*) ;;
10702     *) break;;
10703   esac
10704 done
10705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10706
10707
10708 # We don't want -fno-exception wen compiling C++ code, so set the
10709 # no_builtin_flag separately
10710 if test "$GXX" = yes; then
10711   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10712 else
10713   lt_prog_compiler_no_builtin_flag_CXX=
10714 fi
10715
10716 if test "$GXX" = yes; then
10717   # Set up default GNU C++ configuration
10718
10719
10720 # Check whether --with-gnu-ld was given.
10721 if test "${with_gnu_ld+set}" = set; then
10722   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10723 else
10724   with_gnu_ld=no
10725 fi
10726
10727 ac_prog=ld
10728 if test "$GCC" = yes; then
10729   # Check if gcc -print-prog-name=ld gives a path.
10730   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10731 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10732   case $host in
10733   *-*-mingw*)
10734     # gcc leaves a trailing carriage return which upsets mingw
10735     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10736   *)
10737     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10738   esac
10739   case $ac_prog in
10740     # Accept absolute paths.
10741     [\\/]* | ?:[\\/]*)
10742       re_direlt='/[^/][^/]*/\.\./'
10743       # Canonicalize the pathname of ld
10744       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10745       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10746         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10747       done
10748       test -z "$LD" && LD="$ac_prog"
10749       ;;
10750   "")
10751     # If it fails, then pretend we aren't using GCC.
10752     ac_prog=ld
10753     ;;
10754   *)
10755     # If it is relative, then search for the first ld in PATH.
10756     with_gnu_ld=unknown
10757     ;;
10758   esac
10759 elif test "$with_gnu_ld" = yes; then
10760   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10761 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10762 else
10763   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10764 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10765 fi
10766 if test "${lt_cv_path_LD+set}" = set; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   if test -z "$LD"; then
10770   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10771   for ac_dir in $PATH; do
10772     IFS="$lt_save_ifs"
10773     test -z "$ac_dir" && ac_dir=.
10774     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10775       lt_cv_path_LD="$ac_dir/$ac_prog"
10776       # Check to see if the program is GNU ld.  I'd rather use --version,
10777       # but apparently some variants of GNU ld only accept -v.
10778       # Break only if it was the GNU/non-GNU ld that we prefer.
10779       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10780       *GNU* | *'with BFD'*)
10781         test "$with_gnu_ld" != no && break
10782         ;;
10783       *)
10784         test "$with_gnu_ld" != yes && break
10785         ;;
10786       esac
10787     fi
10788   done
10789   IFS="$lt_save_ifs"
10790 else
10791   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10792 fi
10793 fi
10794
10795 LD="$lt_cv_path_LD"
10796 if test -n "$LD"; then
10797   { echo "$as_me:$LINENO: result: $LD" >&5
10798 echo "${ECHO_T}$LD" >&6; }
10799 else
10800   { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10802 fi
10803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10805    { (exit 1); exit 1; }; }
10806 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10808 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10812 case `$LD -v 2>&1 </dev/null` in
10813 *GNU* | *'with BFD'*)
10814   lt_cv_prog_gnu_ld=yes
10815   ;;
10816 *)
10817   lt_cv_prog_gnu_ld=no
10818   ;;
10819 esac
10820 fi
10821 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10822 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10823 with_gnu_ld=$lt_cv_prog_gnu_ld
10824
10825
10826
10827   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10828   # archiving commands below assume that GNU ld is being used.
10829   if test "$with_gnu_ld" = yes; then
10830     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10831     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'
10832
10833     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10834     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10835
10836     # If archive_cmds runs LD, not CC, wlarc should be empty
10837     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10838     #     investigate it a little bit more. (MM)
10839     wlarc='${wl}'
10840
10841     # ancient GNU ld didn't support --whole-archive et. al.
10842     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10843         grep 'no-whole-archive' > /dev/null; then
10844       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10845     else
10846       whole_archive_flag_spec_CXX=
10847     fi
10848   else
10849     with_gnu_ld=no
10850     wlarc=
10851
10852     # A generic and very simple default shared library creation
10853     # command for GNU C++ for the case where it uses the native
10854     # linker, instead of GNU ld.  If possible, this setting should
10855     # overridden to take advantage of the native linker features on
10856     # the platform it is being used on.
10857     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10858   fi
10859
10860   # Commands to make compiler produce verbose output that lists
10861   # what "hidden" libraries, object files and flags are used when
10862   # linking a shared library.
10863   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10864
10865 else
10866   GXX=no
10867   with_gnu_ld=no
10868   wlarc=
10869 fi
10870
10871 # PORTME: fill in a description of your system's C++ link characteristics
10872 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10874 ld_shlibs_CXX=yes
10875 case $host_os in
10876   aix3*)
10877     # FIXME: insert proper C++ library support
10878     ld_shlibs_CXX=no
10879     ;;
10880   aix4* | aix5*)
10881     if test "$host_cpu" = ia64; then
10882       # On IA64, the linker does run time linking by default, so we don't
10883       # have to do anything special.
10884       aix_use_runtimelinking=no
10885       exp_sym_flag='-Bexport'
10886       no_entry_flag=""
10887     else
10888       aix_use_runtimelinking=no
10889
10890       # Test if we are trying to use run time linking or normal
10891       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10892       # need to do runtime linking.
10893       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10894         for ld_flag in $LDFLAGS; do
10895           case $ld_flag in
10896           *-brtl*)
10897             aix_use_runtimelinking=yes
10898             break
10899             ;;
10900           esac
10901         done
10902         ;;
10903       esac
10904
10905       exp_sym_flag='-bexport'
10906       no_entry_flag='-bnoentry'
10907     fi
10908
10909     # When large executables or shared objects are built, AIX ld can
10910     # have problems creating the table of contents.  If linking a library
10911     # or program results in "error TOC overflow" add -mminimal-toc to
10912     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10913     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10914
10915     archive_cmds_CXX=''
10916     hardcode_direct_CXX=yes
10917     hardcode_libdir_separator_CXX=':'
10918     link_all_deplibs_CXX=yes
10919
10920     if test "$GXX" = yes; then
10921       case $host_os in aix4.[012]|aix4.[012].*)
10922       # We only want to do this on AIX 4.2 and lower, the check
10923       # below for broken collect2 doesn't work under 4.3+
10924         collect2name=`${CC} -print-prog-name=collect2`
10925         if test -f "$collect2name" && \
10926            strings "$collect2name" | grep resolve_lib_name >/dev/null
10927         then
10928           # We have reworked collect2
10929           :
10930         else
10931           # We have old collect2
10932           hardcode_direct_CXX=unsupported
10933           # It fails to find uninstalled libraries when the uninstalled
10934           # path is not listed in the libpath.  Setting hardcode_minus_L
10935           # to unsupported forces relinking
10936           hardcode_minus_L_CXX=yes
10937           hardcode_libdir_flag_spec_CXX='-L$libdir'
10938           hardcode_libdir_separator_CXX=
10939         fi
10940         ;;
10941       esac
10942       shared_flag='-shared'
10943       if test "$aix_use_runtimelinking" = yes; then
10944         shared_flag="$shared_flag "'${wl}-G'
10945       fi
10946     else
10947       # not using gcc
10948       if test "$host_cpu" = ia64; then
10949         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10950         # chokes on -Wl,-G. The following line is correct:
10951         shared_flag='-G'
10952       else
10953         if test "$aix_use_runtimelinking" = yes; then
10954           shared_flag='${wl}-G'
10955         else
10956           shared_flag='${wl}-bM:SRE'
10957         fi
10958       fi
10959     fi
10960
10961     # It seems that -bexpall does not export symbols beginning with
10962     # underscore (_), so it is better to generate a list of symbols to export.
10963     always_export_symbols_CXX=yes
10964     if test "$aix_use_runtimelinking" = yes; then
10965       # Warning - without using the other runtime loading flags (-brtl),
10966       # -berok will link without error, but may produce a broken library.
10967       allow_undefined_flag_CXX='-berok'
10968       # Determine the default libpath from the value encoded in an empty executable.
10969       cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_link") 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } && {
10998          test -z "$ac_cxx_werror_flag" ||
10999          test ! -s conftest.err
11000        } && test -s conftest$ac_exeext &&
11001        $as_test_x conftest$ac_exeext; then
11002
11003 lt_aix_libpath_sed='
11004     /Import File Strings/,/^$/ {
11005         /^0/ {
11006             s/^0  *\(.*\)$/\1/
11007             p
11008         }
11009     }'
11010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011 # Check for a 64-bit object if we didn't find anything.
11012 if test -z "$aix_libpath"; then
11013   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11014 fi
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019
11020 fi
11021
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023       conftest$ac_exeext conftest.$ac_ext
11024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11025
11026       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11027
11028       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"
11029      else
11030       if test "$host_cpu" = ia64; then
11031         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11032         allow_undefined_flag_CXX="-z nodefs"
11033         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"
11034       else
11035         # Determine the default libpath from the value encoded in an empty executable.
11036         cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042
11043 int
11044 main ()
11045 {
11046
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_link") 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } && {
11065          test -z "$ac_cxx_werror_flag" ||
11066          test ! -s conftest.err
11067        } && test -s conftest$ac_exeext &&
11068        $as_test_x conftest$ac_exeext; then
11069
11070 lt_aix_libpath_sed='
11071     /Import File Strings/,/^$/ {
11072         /^0/ {
11073             s/^0  *\(.*\)$/\1/
11074             p
11075         }
11076     }'
11077 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 # Check for a 64-bit object if we didn't find anything.
11079 if test -z "$aix_libpath"; then
11080   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11081 fi
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090       conftest$ac_exeext conftest.$ac_ext
11091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11092
11093         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11094         # Warning - without using the other run time loading flags,
11095         # -berok will link without error, but may produce a broken library.
11096         no_undefined_flag_CXX=' ${wl}-bernotok'
11097         allow_undefined_flag_CXX=' ${wl}-berok'
11098         # Exported symbols can be pulled into shared objects from archives
11099         whole_archive_flag_spec_CXX='$convenience'
11100         archive_cmds_need_lc_CXX=yes
11101         # This is similar to how AIX traditionally builds its shared libraries.
11102         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'
11103       fi
11104     fi
11105     ;;
11106
11107   beos*)
11108     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11109       allow_undefined_flag_CXX=unsupported
11110       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11111       # support --undefined.  This deserves some investigation.  FIXME
11112       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11113     else
11114       ld_shlibs_CXX=no
11115     fi
11116     ;;
11117
11118   chorus*)
11119     case $cc_basename in
11120       *)
11121         # FIXME: insert proper C++ library support
11122         ld_shlibs_CXX=no
11123         ;;
11124     esac
11125     ;;
11126
11127   cygwin* | mingw* | pw32*)
11128     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11129     # as there is no search path for DLLs.
11130     hardcode_libdir_flag_spec_CXX='-L$libdir'
11131     allow_undefined_flag_CXX=unsupported
11132     always_export_symbols_CXX=no
11133     enable_shared_with_static_runtimes_CXX=yes
11134
11135     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11136       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'
11137       # If the export-symbols file already is a .def file (1st line
11138       # is EXPORTS), use it as is; otherwise, prepend...
11139       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11140         cp $export_symbols $output_objdir/$soname.def;
11141       else
11142         echo EXPORTS > $output_objdir/$soname.def;
11143         cat $export_symbols >> $output_objdir/$soname.def;
11144       fi~
11145       $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'
11146     else
11147       ld_shlibs_CXX=no
11148     fi
11149   ;;
11150       darwin* | rhapsody*)
11151         case $host_os in
11152         rhapsody* | darwin1.[012])
11153          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11154          ;;
11155        *) # Darwin 1.3 on
11156          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11157            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11158          else
11159            case ${MACOSX_DEPLOYMENT_TARGET} in
11160              10.[012])
11161                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11162                ;;
11163              10.*)
11164                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11165                ;;
11166            esac
11167          fi
11168          ;;
11169         esac
11170       archive_cmds_need_lc_CXX=no
11171       hardcode_direct_CXX=no
11172       hardcode_automatic_CXX=yes
11173       hardcode_shlibpath_var_CXX=unsupported
11174       whole_archive_flag_spec_CXX=''
11175       link_all_deplibs_CXX=yes
11176
11177     if test "$GXX" = yes ; then
11178       lt_int_apple_cc_single_mod=no
11179       output_verbose_link_cmd='echo'
11180       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11181        lt_int_apple_cc_single_mod=yes
11182       fi
11183       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11184        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11185       else
11186           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'
11187         fi
11188         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11189         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11190           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191             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}'
11192           else
11193             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}'
11194           fi
11195             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}'
11196       else
11197       case $cc_basename in
11198         xlc*)
11199          output_verbose_link_cmd='echo'
11200           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'
11201           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11202           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11203           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}'
11204           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}'
11205           ;;
11206        *)
11207          ld_shlibs_CXX=no
11208           ;;
11209       esac
11210       fi
11211         ;;
11212
11213   dgux*)
11214     case $cc_basename in
11215       ec++*)
11216         # FIXME: insert proper C++ library support
11217         ld_shlibs_CXX=no
11218         ;;
11219       ghcx*)
11220         # Green Hills C++ Compiler
11221         # FIXME: insert proper C++ library support
11222         ld_shlibs_CXX=no
11223         ;;
11224       *)
11225         # FIXME: insert proper C++ library support
11226         ld_shlibs_CXX=no
11227         ;;
11228     esac
11229     ;;
11230   freebsd[12]*)
11231     # C++ shared libraries reported to be fairly broken before switch to ELF
11232     ld_shlibs_CXX=no
11233     ;;
11234   freebsd-elf*)
11235     archive_cmds_need_lc_CXX=no
11236     ;;
11237   freebsd* | dragonfly*)
11238     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11239     # conventions
11240     ld_shlibs_CXX=yes
11241     ;;
11242   gnu*)
11243     ;;
11244   hpux9*)
11245     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11246     hardcode_libdir_separator_CXX=:
11247     export_dynamic_flag_spec_CXX='${wl}-E'
11248     hardcode_direct_CXX=yes
11249     hardcode_minus_L_CXX=yes # Not in the search PATH,
11250                                 # but as the default
11251                                 # location of the library.
11252
11253     case $cc_basename in
11254     CC*)
11255       # FIXME: insert proper C++ library support
11256       ld_shlibs_CXX=no
11257       ;;
11258     aCC*)
11259       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'
11260       # Commands to make compiler produce verbose output that lists
11261       # what "hidden" libraries, object files and flags are used when
11262       # linking a shared library.
11263       #
11264       # There doesn't appear to be a way to prevent this compiler from
11265       # explicitly linking system object files so we need to strip them
11266       # from the output so that they don't get included in the library
11267       # dependencies.
11268       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'
11269       ;;
11270     *)
11271       if test "$GXX" = yes; then
11272         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'
11273       else
11274         # FIXME: insert proper C++ library support
11275         ld_shlibs_CXX=no
11276       fi
11277       ;;
11278     esac
11279     ;;
11280   hpux10*|hpux11*)
11281     if test $with_gnu_ld = no; then
11282       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11283       hardcode_libdir_separator_CXX=:
11284
11285       case $host_cpu in
11286       hppa*64*|ia64*) ;;
11287       *)
11288         export_dynamic_flag_spec_CXX='${wl}-E'
11289         ;;
11290       esac
11291     fi
11292     case $host_cpu in
11293     hppa*64*|ia64*)
11294       hardcode_direct_CXX=no
11295       hardcode_shlibpath_var_CXX=no
11296       ;;
11297     *)
11298       hardcode_direct_CXX=yes
11299       hardcode_minus_L_CXX=yes # Not in the search PATH,
11300                                               # but as the default
11301                                               # location of the library.
11302       ;;
11303     esac
11304
11305     case $cc_basename in
11306       CC*)
11307         # FIXME: insert proper C++ library support
11308         ld_shlibs_CXX=no
11309         ;;
11310       aCC*)
11311         case $host_cpu in
11312         hppa*64*)
11313           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11314           ;;
11315         ia64*)
11316           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317           ;;
11318         *)
11319           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320           ;;
11321         esac
11322         # Commands to make compiler produce verbose output that lists
11323         # what "hidden" libraries, object files and flags are used when
11324         # linking a shared library.
11325         #
11326         # There doesn't appear to be a way to prevent this compiler from
11327         # explicitly linking system object files so we need to strip them
11328         # from the output so that they don't get included in the library
11329         # dependencies.
11330         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'
11331         ;;
11332       *)
11333         if test "$GXX" = yes; then
11334           if test $with_gnu_ld = no; then
11335             case $host_cpu in
11336             hppa*64*)
11337               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11338               ;;
11339             ia64*)
11340               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11341               ;;
11342             *)
11343               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'
11344               ;;
11345             esac
11346           fi
11347         else
11348           # FIXME: insert proper C++ library support
11349           ld_shlibs_CXX=no
11350         fi
11351         ;;
11352     esac
11353     ;;
11354   interix[3-9]*)
11355     hardcode_direct_CXX=no
11356     hardcode_shlibpath_var_CXX=no
11357     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11358     export_dynamic_flag_spec_CXX='${wl}-E'
11359     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11360     # Instead, shared libraries are loaded at an image base (0x10000000 by
11361     # default) and relocated if they conflict, which is a slow very memory
11362     # consuming and fragmenting process.  To avoid this, we pick a random,
11363     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11364     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11365     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'
11366     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'
11367     ;;
11368   irix5* | irix6*)
11369     case $cc_basename in
11370       CC*)
11371         # SGI C++
11372         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'
11373
11374         # Archives containing C++ object files must be created using
11375         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11376         # necessary to make sure instantiated templates are included
11377         # in the archive.
11378         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11379         ;;
11380       *)
11381         if test "$GXX" = yes; then
11382           if test "$with_gnu_ld" = no; then
11383             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'
11384           else
11385             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'
11386           fi
11387         fi
11388         link_all_deplibs_CXX=yes
11389         ;;
11390     esac
11391     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11392     hardcode_libdir_separator_CXX=:
11393     ;;
11394   linux* | k*bsd*-gnu)
11395     case $cc_basename in
11396       KCC*)
11397         # Kuck and Associates, Inc. (KAI) C++ Compiler
11398
11399         # KCC will only create a shared library if the output file
11400         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11401         # to its proper name (with version) after linking.
11402         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'
11403         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'
11404         # Commands to make compiler produce verbose output that lists
11405         # what "hidden" libraries, object files and flags are used when
11406         # linking a shared library.
11407         #
11408         # There doesn't appear to be a way to prevent this compiler from
11409         # explicitly linking system object files so we need to strip them
11410         # from the output so that they don't get included in the library
11411         # dependencies.
11412         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'
11413
11414         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11415         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11416
11417         # Archives containing C++ object files must be created using
11418         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11419         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11420         ;;
11421       icpc*)
11422         # Intel C++
11423         with_gnu_ld=yes
11424         # version 8.0 and above of icpc choke on multiply defined symbols
11425         # if we add $predep_objects and $postdep_objects, however 7.1 and
11426         # earlier do not add the objects themselves.
11427         case `$CC -V 2>&1` in
11428         *"Version 7."*)
11429           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11430           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'
11431           ;;
11432         *)  # Version 8.0 or newer
11433           tmp_idyn=
11434           case $host_cpu in
11435             ia64*) tmp_idyn=' -i_dynamic';;
11436           esac
11437           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11438           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'
11439           ;;
11440         esac
11441         archive_cmds_need_lc_CXX=no
11442         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11443         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11444         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11445         ;;
11446       pgCC*)
11447         # Portland Group C++ compiler
11448         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11449         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'
11450
11451         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11452         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453         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'
11454         ;;
11455       cxx*)
11456         # Compaq C++
11457         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11458         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'
11459
11460         runpath_var=LD_RUN_PATH
11461         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11462         hardcode_libdir_separator_CXX=:
11463
11464         # Commands to make compiler produce verbose output that lists
11465         # what "hidden" libraries, object files and flags are used when
11466         # linking a shared library.
11467         #
11468         # There doesn't appear to be a way to prevent this compiler from
11469         # explicitly linking system object files so we need to strip them
11470         # from the output so that they don't get included in the library
11471         # dependencies.
11472         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'
11473         ;;
11474       *)
11475         case `$CC -V 2>&1 | sed 5q` in
11476         *Sun\ C*)
11477           # Sun C++ 5.9
11478           no_undefined_flag_CXX=' -zdefs'
11479           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480           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'
11481           hardcode_libdir_flag_spec_CXX='-R$libdir'
11482           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'
11483
11484           # Not sure whether something based on
11485           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11486           # would be better.
11487           output_verbose_link_cmd='echo'
11488
11489           # Archives containing C++ object files must be created using
11490           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11491           # necessary to make sure instantiated templates are included
11492           # in the archive.
11493           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11494           ;;
11495         esac
11496         ;;
11497     esac
11498     ;;
11499   lynxos*)
11500     # FIXME: insert proper C++ library support
11501     ld_shlibs_CXX=no
11502     ;;
11503   m88k*)
11504     # FIXME: insert proper C++ library support
11505     ld_shlibs_CXX=no
11506     ;;
11507   mvs*)
11508     case $cc_basename in
11509       cxx*)
11510         # FIXME: insert proper C++ library support
11511         ld_shlibs_CXX=no
11512         ;;
11513       *)
11514         # FIXME: insert proper C++ library support
11515         ld_shlibs_CXX=no
11516         ;;
11517     esac
11518     ;;
11519   netbsd*)
11520     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11521       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11522       wlarc=
11523       hardcode_libdir_flag_spec_CXX='-R$libdir'
11524       hardcode_direct_CXX=yes
11525       hardcode_shlibpath_var_CXX=no
11526     fi
11527     # Workaround some broken pre-1.5 toolchains
11528     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11529     ;;
11530   openbsd2*)
11531     # C++ shared libraries are fairly broken
11532     ld_shlibs_CXX=no
11533     ;;
11534   openbsd*)
11535     if test -f /usr/libexec/ld.so; then
11536       hardcode_direct_CXX=yes
11537       hardcode_shlibpath_var_CXX=no
11538       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11539       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11541         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11542         export_dynamic_flag_spec_CXX='${wl}-E'
11543         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11544       fi
11545       output_verbose_link_cmd='echo'
11546     else
11547       ld_shlibs_CXX=no
11548     fi
11549     ;;
11550   osf3*)
11551     case $cc_basename in
11552       KCC*)
11553         # Kuck and Associates, Inc. (KAI) C++ Compiler
11554
11555         # KCC will only create a shared library if the output file
11556         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11557         # to its proper name (with version) after linking.
11558         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'
11559
11560         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561         hardcode_libdir_separator_CXX=:
11562
11563         # Archives containing C++ object files must be created using
11564         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11565         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11566
11567         ;;
11568       RCC*)
11569         # Rational C++ 2.4.1
11570         # FIXME: insert proper C++ library support
11571         ld_shlibs_CXX=no
11572         ;;
11573       cxx*)
11574         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575         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'
11576
11577         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578         hardcode_libdir_separator_CXX=:
11579
11580         # Commands to make compiler produce verbose output that lists
11581         # what "hidden" libraries, object files and flags are used when
11582         # linking a shared library.
11583         #
11584         # There doesn't appear to be a way to prevent this compiler from
11585         # explicitly linking system object files so we need to strip them
11586         # from the output so that they don't get included in the library
11587         # dependencies.
11588         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'
11589         ;;
11590       *)
11591         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11592           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593           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'
11594
11595           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596           hardcode_libdir_separator_CXX=:
11597
11598           # Commands to make compiler produce verbose output that lists
11599           # what "hidden" libraries, object files and flags are used when
11600           # linking a shared library.
11601           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11602
11603         else
11604           # FIXME: insert proper C++ library support
11605           ld_shlibs_CXX=no
11606         fi
11607         ;;
11608     esac
11609     ;;
11610   osf4* | osf5*)
11611     case $cc_basename in
11612       KCC*)
11613         # Kuck and Associates, Inc. (KAI) C++ Compiler
11614
11615         # KCC will only create a shared library if the output file
11616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617         # to its proper name (with version) after linking.
11618         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'
11619
11620         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621         hardcode_libdir_separator_CXX=:
11622
11623         # Archives containing C++ object files must be created using
11624         # the KAI C++ compiler.
11625         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11626         ;;
11627       RCC*)
11628         # Rational C++ 2.4.1
11629         # FIXME: insert proper C++ library support
11630         ld_shlibs_CXX=no
11631         ;;
11632       cxx*)
11633         allow_undefined_flag_CXX=' -expect_unresolved \*'
11634         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'
11635         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11636           echo "-hidden">> $lib.exp~
11637           $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~
11638           $rm $lib.exp'
11639
11640         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11641         hardcode_libdir_separator_CXX=:
11642
11643         # Commands to make compiler produce verbose output that lists
11644         # what "hidden" libraries, object files and flags are used when
11645         # linking a shared library.
11646         #
11647         # There doesn't appear to be a way to prevent this compiler from
11648         # explicitly linking system object files so we need to strip them
11649         # from the output so that they don't get included in the library
11650         # dependencies.
11651         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'
11652         ;;
11653       *)
11654         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11655           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11656          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'
11657
11658           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11659           hardcode_libdir_separator_CXX=:
11660
11661           # Commands to make compiler produce verbose output that lists
11662           # what "hidden" libraries, object files and flags are used when
11663           # linking a shared library.
11664           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11665
11666         else
11667           # FIXME: insert proper C++ library support
11668           ld_shlibs_CXX=no
11669         fi
11670         ;;
11671     esac
11672     ;;
11673   psos*)
11674     # FIXME: insert proper C++ library support
11675     ld_shlibs_CXX=no
11676     ;;
11677   sunos4*)
11678     case $cc_basename in
11679       CC*)
11680         # Sun C++ 4.x
11681         # FIXME: insert proper C++ library support
11682         ld_shlibs_CXX=no
11683         ;;
11684       lcc*)
11685         # Lucid
11686         # FIXME: insert proper C++ library support
11687         ld_shlibs_CXX=no
11688         ;;
11689       *)
11690         # FIXME: insert proper C++ library support
11691         ld_shlibs_CXX=no
11692         ;;
11693     esac
11694     ;;
11695   solaris*)
11696     case $cc_basename in
11697       CC*)
11698         # Sun C++ 4.2, 5.x and Centerline C++
11699         archive_cmds_need_lc_CXX=yes
11700         no_undefined_flag_CXX=' -zdefs'
11701         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11703         $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'
11704
11705         hardcode_libdir_flag_spec_CXX='-R$libdir'
11706         hardcode_shlibpath_var_CXX=no
11707         case $host_os in
11708           solaris2.[0-5] | solaris2.[0-5].*) ;;
11709           *)
11710             # The compiler driver will combine and reorder linker options,
11711             # but understands `-z linker_flag'.
11712             # Supported since Solaris 2.6 (maybe 2.5.1?)
11713             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11714             ;;
11715         esac
11716         link_all_deplibs_CXX=yes
11717
11718         output_verbose_link_cmd='echo'
11719
11720         # Archives containing C++ object files must be created using
11721         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11722         # necessary to make sure instantiated templates are included
11723         # in the archive.
11724         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11725         ;;
11726       gcx*)
11727         # Green Hills C++ Compiler
11728         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11729
11730         # The C++ compiler must be used to create the archive.
11731         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11732         ;;
11733       *)
11734         # GNU C++ compiler with Solaris linker
11735         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11736           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11737           if $CC --version | grep -v '^2\.7' > /dev/null; then
11738             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11739             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11740                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11741
11742             # Commands to make compiler produce verbose output that lists
11743             # what "hidden" libraries, object files and flags are used when
11744             # linking a shared library.
11745             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11746           else
11747             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11748             # platform.
11749             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11750             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11751                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11752
11753             # Commands to make compiler produce verbose output that lists
11754             # what "hidden" libraries, object files and flags are used when
11755             # linking a shared library.
11756             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11757           fi
11758
11759           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11760           case $host_os in
11761           solaris2.[0-5] | solaris2.[0-5].*) ;;
11762           *)
11763             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11764             ;;
11765           esac
11766         fi
11767         ;;
11768     esac
11769     ;;
11770   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11771     no_undefined_flag_CXX='${wl}-z,text'
11772     archive_cmds_need_lc_CXX=no
11773     hardcode_shlibpath_var_CXX=no
11774     runpath_var='LD_RUN_PATH'
11775
11776     case $cc_basename in
11777       CC*)
11778         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780         ;;
11781       *)
11782         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784         ;;
11785     esac
11786     ;;
11787   sysv5* | sco3.2v5* | sco5v6*)
11788     # Note: We can NOT use -z defs as we might desire, because we do not
11789     # link with -lc, and that would cause any symbols used from libc to
11790     # always be unresolved, which means just about no library would
11791     # ever link correctly.  If we're not using GNU ld we use -z text
11792     # though, which does catch some bad symbols but isn't as heavy-handed
11793     # as -z defs.
11794     # For security reasons, it is highly recommended that you always
11795     # use absolute paths for naming shared libraries, and exclude the
11796     # DT_RUNPATH tag from executables and libraries.  But doing so
11797     # requires that you compile everything twice, which is a pain.
11798     # So that behaviour is only enabled if SCOABSPATH is set to a
11799     # non-empty value in the environment.  Most likely only useful for
11800     # creating official distributions of packages.
11801     # This is a hack until libtool officially supports absolute path
11802     # names for shared libraries.
11803     no_undefined_flag_CXX='${wl}-z,text'
11804     allow_undefined_flag_CXX='${wl}-z,nodefs'
11805     archive_cmds_need_lc_CXX=no
11806     hardcode_shlibpath_var_CXX=no
11807     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11808     hardcode_libdir_separator_CXX=':'
11809     link_all_deplibs_CXX=yes
11810     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11811     runpath_var='LD_RUN_PATH'
11812
11813     case $cc_basename in
11814       CC*)
11815         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817         ;;
11818       *)
11819         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11821         ;;
11822     esac
11823     ;;
11824   tandem*)
11825     case $cc_basename in
11826       NCC*)
11827         # NonStop-UX NCC 3.20
11828         # FIXME: insert proper C++ library support
11829         ld_shlibs_CXX=no
11830         ;;
11831       *)
11832         # FIXME: insert proper C++ library support
11833         ld_shlibs_CXX=no
11834         ;;
11835     esac
11836     ;;
11837   vxworks*)
11838     # FIXME: insert proper C++ library support
11839     ld_shlibs_CXX=no
11840     ;;
11841   *)
11842     # FIXME: insert proper C++ library support
11843     ld_shlibs_CXX=no
11844     ;;
11845 esac
11846 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11847 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11848 test "$ld_shlibs_CXX" = no && can_build_shared=no
11849
11850 GCC_CXX="$GXX"
11851 LD_CXX="$LD"
11852
11853
11854 cat > conftest.$ac_ext <<EOF
11855 class Foo
11856 {
11857 public:
11858   Foo (void) { a = 0; }
11859 private:
11860   int a;
11861 };
11862 EOF
11863
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865   (eval $ac_compile) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; then
11869   # Parse the compiler output and extract the necessary
11870   # objects, libraries and library flags.
11871
11872   # Sentinel used to keep track of whether or not we are before
11873   # the conftest object file.
11874   pre_test_object_deps_done=no
11875
11876   # The `*' in the case matches for architectures that use `case' in
11877   # $output_verbose_cmd can trigger glob expansion during the loop
11878   # eval without this substitution.
11879   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11880
11881   for p in `eval $output_verbose_link_cmd`; do
11882     case $p in
11883
11884     -L* | -R* | -l*)
11885        # Some compilers place space between "-{L,R}" and the path.
11886        # Remove the space.
11887        if test $p = "-L" \
11888           || test $p = "-R"; then
11889          prev=$p
11890          continue
11891        else
11892          prev=
11893        fi
11894
11895        if test "$pre_test_object_deps_done" = no; then
11896          case $p in
11897          -L* | -R*)
11898            # Internal compiler library paths should come after those
11899            # provided the user.  The postdeps already come after the
11900            # user supplied libs so there is no need to process them.
11901            if test -z "$compiler_lib_search_path_CXX"; then
11902              compiler_lib_search_path_CXX="${prev}${p}"
11903            else
11904              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11905            fi
11906            ;;
11907          # The "-l" case would never come before the object being
11908          # linked, so don't bother handling this case.
11909          esac
11910        else
11911          if test -z "$postdeps_CXX"; then
11912            postdeps_CXX="${prev}${p}"
11913          else
11914            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11915          fi
11916        fi
11917        ;;
11918
11919     *.$objext)
11920        # This assumes that the test object file only shows up
11921        # once in the compiler output.
11922        if test "$p" = "conftest.$objext"; then
11923          pre_test_object_deps_done=yes
11924          continue
11925        fi
11926
11927        if test "$pre_test_object_deps_done" = no; then
11928          if test -z "$predep_objects_CXX"; then
11929            predep_objects_CXX="$p"
11930          else
11931            predep_objects_CXX="$predep_objects_CXX $p"
11932          fi
11933        else
11934          if test -z "$postdep_objects_CXX"; then
11935            postdep_objects_CXX="$p"
11936          else
11937            postdep_objects_CXX="$postdep_objects_CXX $p"
11938          fi
11939        fi
11940        ;;
11941
11942     *) ;; # Ignore the rest.
11943
11944     esac
11945   done
11946
11947   # Clean up.
11948   rm -f a.out a.exe
11949 else
11950   echo "libtool.m4: error: problem compiling CXX test program"
11951 fi
11952
11953 $rm -f confest.$objext
11954
11955 # PORTME: override above test on systems where it is broken
11956 case $host_os in
11957 interix[3-9]*)
11958   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11959   # hack all around it, let's just trust "g++" to DTRT.
11960   predep_objects_CXX=
11961   postdep_objects_CXX=
11962   postdeps_CXX=
11963   ;;
11964
11965 linux*)
11966   case `$CC -V 2>&1 | sed 5q` in
11967   *Sun\ C*)
11968     # Sun C++ 5.9
11969     #
11970     # The more standards-conforming stlport4 library is
11971     # incompatible with the Cstd library. Avoid specifying
11972     # it if it's in CXXFLAGS. Ignore libCrun as
11973     # -library=stlport4 depends on it.
11974     case " $CXX $CXXFLAGS " in
11975     *" -library=stlport4 "*)
11976       solaris_use_stlport4=yes
11977       ;;
11978     esac
11979     if test "$solaris_use_stlport4" != yes; then
11980       postdeps_CXX='-library=Cstd -library=Crun'
11981     fi
11982     ;;
11983   esac
11984   ;;
11985
11986 solaris*)
11987   case $cc_basename in
11988   CC*)
11989     # The more standards-conforming stlport4 library is
11990     # incompatible with the Cstd library. Avoid specifying
11991     # it if it's in CXXFLAGS. Ignore libCrun as
11992     # -library=stlport4 depends on it.
11993     case " $CXX $CXXFLAGS " in
11994     *" -library=stlport4 "*)
11995       solaris_use_stlport4=yes
11996       ;;
11997     esac
11998
11999     # Adding this requires a known-good setup of shared libraries for
12000     # Sun compiler versions before 5.6, else PIC objects from an old
12001     # archive will be linked into the output, leading to subtle bugs.
12002     if test "$solaris_use_stlport4" != yes; then
12003       postdeps_CXX='-library=Cstd -library=Crun'
12004     fi
12005     ;;
12006   esac
12007   ;;
12008 esac
12009
12010
12011 case " $postdeps_CXX " in
12012 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12013 esac
12014
12015 lt_prog_compiler_wl_CXX=
12016 lt_prog_compiler_pic_CXX=
12017 lt_prog_compiler_static_CXX=
12018
12019 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12020 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12021
12022   # C++ specific cases for pic, static, wl, etc.
12023   if test "$GXX" = yes; then
12024     lt_prog_compiler_wl_CXX='-Wl,'
12025     lt_prog_compiler_static_CXX='-static'
12026
12027     case $host_os in
12028     aix*)
12029       # All AIX code is PIC.
12030       if test "$host_cpu" = ia64; then
12031         # AIX 5 now supports IA64 processor
12032         lt_prog_compiler_static_CXX='-Bstatic'
12033       fi
12034       ;;
12035     amigaos*)
12036       # FIXME: we need at least 68020 code to build shared libraries, but
12037       # adding the `-m68020' flag to GCC prevents building anything better,
12038       # like `-m68040'.
12039       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12040       ;;
12041     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12042       # PIC is the default for these OSes.
12043       ;;
12044     mingw* | cygwin* | os2* | pw32*)
12045       # This hack is so that the source file can tell whether it is being
12046       # built for inclusion in a dll (and should export symbols for example).
12047       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12048       # (--disable-auto-import) libraries
12049       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12050       ;;
12051     darwin* | rhapsody*)
12052       # PIC is the default on this platform
12053       # Common symbols not allowed in MH_DYLIB files
12054       lt_prog_compiler_pic_CXX='-fno-common'
12055       ;;
12056     *djgpp*)
12057       # DJGPP does not support shared libraries at all
12058       lt_prog_compiler_pic_CXX=
12059       ;;
12060     interix[3-9]*)
12061       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12062       # Instead, we relocate shared libraries at runtime.
12063       ;;
12064     sysv4*MP*)
12065       if test -d /usr/nec; then
12066         lt_prog_compiler_pic_CXX=-Kconform_pic
12067       fi
12068       ;;
12069     hpux*)
12070       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12071       # not for PA HP-UX.
12072       case $host_cpu in
12073       hppa*64*|ia64*)
12074         ;;
12075       *)
12076         lt_prog_compiler_pic_CXX='-fPIC'
12077         ;;
12078       esac
12079       ;;
12080     *)
12081       lt_prog_compiler_pic_CXX='-fPIC'
12082       ;;
12083     esac
12084   else
12085     case $host_os in
12086       aix4* | aix5*)
12087         # All AIX code is PIC.
12088         if test "$host_cpu" = ia64; then
12089           # AIX 5 now supports IA64 processor
12090           lt_prog_compiler_static_CXX='-Bstatic'
12091         else
12092           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12093         fi
12094         ;;
12095       chorus*)
12096         case $cc_basename in
12097         cxch68*)
12098           # Green Hills C++ Compiler
12099           # _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"
12100           ;;
12101         esac
12102         ;;
12103        darwin*)
12104          # PIC is the default on this platform
12105          # Common symbols not allowed in MH_DYLIB files
12106          case $cc_basename in
12107            xlc*)
12108            lt_prog_compiler_pic_CXX='-qnocommon'
12109            lt_prog_compiler_wl_CXX='-Wl,'
12110            ;;
12111          esac
12112        ;;
12113       dgux*)
12114         case $cc_basename in
12115           ec++*)
12116             lt_prog_compiler_pic_CXX='-KPIC'
12117             ;;
12118           ghcx*)
12119             # Green Hills C++ Compiler
12120             lt_prog_compiler_pic_CXX='-pic'
12121             ;;
12122           *)
12123             ;;
12124         esac
12125         ;;
12126       freebsd* | dragonfly*)
12127         # FreeBSD uses GNU C++
12128         ;;
12129       hpux9* | hpux10* | hpux11*)
12130         case $cc_basename in
12131           CC*)
12132             lt_prog_compiler_wl_CXX='-Wl,'
12133             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12134             if test "$host_cpu" != ia64; then
12135               lt_prog_compiler_pic_CXX='+Z'
12136             fi
12137             ;;
12138           aCC*)
12139             lt_prog_compiler_wl_CXX='-Wl,'
12140             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12141             case $host_cpu in
12142             hppa*64*|ia64*)
12143               # +Z the default
12144               ;;
12145             *)
12146               lt_prog_compiler_pic_CXX='+Z'
12147               ;;
12148             esac
12149             ;;
12150           *)
12151             ;;
12152         esac
12153         ;;
12154       interix*)
12155         # This is c89, which is MS Visual C++ (no shared libs)
12156         # Anyone wants to do a port?
12157         ;;
12158       irix5* | irix6* | nonstopux*)
12159         case $cc_basename in
12160           CC*)
12161             lt_prog_compiler_wl_CXX='-Wl,'
12162             lt_prog_compiler_static_CXX='-non_shared'
12163             # CC pic flag -KPIC is the default.
12164             ;;
12165           *)
12166             ;;
12167         esac
12168         ;;
12169       linux* | k*bsd*-gnu)
12170         case $cc_basename in
12171           KCC*)
12172             # KAI C++ Compiler
12173             lt_prog_compiler_wl_CXX='--backend -Wl,'
12174             lt_prog_compiler_pic_CXX='-fPIC'
12175             ;;
12176           icpc* | ecpc*)
12177             # Intel C++
12178             lt_prog_compiler_wl_CXX='-Wl,'
12179             lt_prog_compiler_pic_CXX='-KPIC'
12180             lt_prog_compiler_static_CXX='-static'
12181             ;;
12182           pgCC*)
12183             # Portland Group C++ compiler.
12184             lt_prog_compiler_wl_CXX='-Wl,'
12185             lt_prog_compiler_pic_CXX='-fpic'
12186             lt_prog_compiler_static_CXX='-Bstatic'
12187             ;;
12188           cxx*)
12189             # Compaq C++
12190             # Make sure the PIC flag is empty.  It appears that all Alpha
12191             # Linux and Compaq Tru64 Unix objects are PIC.
12192             lt_prog_compiler_pic_CXX=
12193             lt_prog_compiler_static_CXX='-non_shared'
12194             ;;
12195           *)
12196             case `$CC -V 2>&1 | sed 5q` in
12197             *Sun\ C*)
12198               # Sun C++ 5.9
12199               lt_prog_compiler_pic_CXX='-KPIC'
12200               lt_prog_compiler_static_CXX='-Bstatic'
12201               lt_prog_compiler_wl_CXX='-Qoption ld '
12202               ;;
12203             esac
12204             ;;
12205         esac
12206         ;;
12207       lynxos*)
12208         ;;
12209       m88k*)
12210         ;;
12211       mvs*)
12212         case $cc_basename in
12213           cxx*)
12214             lt_prog_compiler_pic_CXX='-W c,exportall'
12215             ;;
12216           *)
12217             ;;
12218         esac
12219         ;;
12220       netbsd*)
12221         ;;
12222       osf3* | osf4* | osf5*)
12223         case $cc_basename in
12224           KCC*)
12225             lt_prog_compiler_wl_CXX='--backend -Wl,'
12226             ;;
12227           RCC*)
12228             # Rational C++ 2.4.1
12229             lt_prog_compiler_pic_CXX='-pic'
12230             ;;
12231           cxx*)
12232             # Digital/Compaq C++
12233             lt_prog_compiler_wl_CXX='-Wl,'
12234             # Make sure the PIC flag is empty.  It appears that all Alpha
12235             # Linux and Compaq Tru64 Unix objects are PIC.
12236             lt_prog_compiler_pic_CXX=
12237             lt_prog_compiler_static_CXX='-non_shared'
12238             ;;
12239           *)
12240             ;;
12241         esac
12242         ;;
12243       psos*)
12244         ;;
12245       solaris*)
12246         case $cc_basename in
12247           CC*)
12248             # Sun C++ 4.2, 5.x and Centerline C++
12249             lt_prog_compiler_pic_CXX='-KPIC'
12250             lt_prog_compiler_static_CXX='-Bstatic'
12251             lt_prog_compiler_wl_CXX='-Qoption ld '
12252             ;;
12253           gcx*)
12254             # Green Hills C++ Compiler
12255             lt_prog_compiler_pic_CXX='-PIC'
12256             ;;
12257           *)
12258             ;;
12259         esac
12260         ;;
12261       sunos4*)
12262         case $cc_basename in
12263           CC*)
12264             # Sun C++ 4.x
12265             lt_prog_compiler_pic_CXX='-pic'
12266             lt_prog_compiler_static_CXX='-Bstatic'
12267             ;;
12268           lcc*)
12269             # Lucid
12270             lt_prog_compiler_pic_CXX='-pic'
12271             ;;
12272           *)
12273             ;;
12274         esac
12275         ;;
12276       tandem*)
12277         case $cc_basename in
12278           NCC*)
12279             # NonStop-UX NCC 3.20
12280             lt_prog_compiler_pic_CXX='-KPIC'
12281             ;;
12282           *)
12283             ;;
12284         esac
12285         ;;
12286       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12287         case $cc_basename in
12288           CC*)
12289             lt_prog_compiler_wl_CXX='-Wl,'
12290             lt_prog_compiler_pic_CXX='-KPIC'
12291             lt_prog_compiler_static_CXX='-Bstatic'
12292             ;;
12293         esac
12294         ;;
12295       vxworks*)
12296         ;;
12297       *)
12298         lt_prog_compiler_can_build_shared_CXX=no
12299         ;;
12300     esac
12301   fi
12302
12303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12304 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12305
12306 #
12307 # Check to make sure the PIC flag actually works.
12308 #
12309 if test -n "$lt_prog_compiler_pic_CXX"; then
12310
12311 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12313 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   lt_prog_compiler_pic_works_CXX=no
12317   ac_outfile=conftest.$ac_objext
12318    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12319    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12320    # Insert the option either (1) after the last *FLAGS variable, or
12321    # (2) before a word containing "conftest.", or (3) at the end.
12322    # Note that $ac_compile itself does not contain backslashes and begins
12323    # with a dollar sign (not a hyphen), so the echo should work correctly.
12324    # The option is referenced via a variable to avoid confusing sed.
12325    lt_compile=`echo "$ac_compile" | $SED \
12326    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328    -e 's:$: $lt_compiler_flag:'`
12329    (eval echo "\"\$as_me:12329: $lt_compile\"" >&5)
12330    (eval "$lt_compile" 2>conftest.err)
12331    ac_status=$?
12332    cat conftest.err >&5
12333    echo "$as_me:12333: \$? = $ac_status" >&5
12334    if (exit $ac_status) && test -s "$ac_outfile"; then
12335      # The compiler can only warn and ignore the option if not recognized
12336      # So say no if there are warnings other than the usual output.
12337      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12338      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12340        lt_prog_compiler_pic_works_CXX=yes
12341      fi
12342    fi
12343    $rm conftest*
12344
12345 fi
12346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12347 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12348
12349 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12350     case $lt_prog_compiler_pic_CXX in
12351      "" | " "*) ;;
12352      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12353      esac
12354 else
12355     lt_prog_compiler_pic_CXX=
12356      lt_prog_compiler_can_build_shared_CXX=no
12357 fi
12358
12359 fi
12360 case $host_os in
12361   # For platforms which do not support PIC, -DPIC is meaningless:
12362   *djgpp*)
12363     lt_prog_compiler_pic_CXX=
12364     ;;
12365   *)
12366     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12367     ;;
12368 esac
12369
12370 #
12371 # Check to make sure the static flag actually works.
12372 #
12373 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12374 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12375 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12376 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   lt_prog_compiler_static_works_CXX=no
12380    save_LDFLAGS="$LDFLAGS"
12381    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12382    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12383    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12384      # The linker can only warn and ignore the option if not recognized
12385      # So say no if there are warnings
12386      if test -s conftest.err; then
12387        # Append any errors to the config.log.
12388        cat conftest.err 1>&5
12389        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12390        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12391        if diff conftest.exp conftest.er2 >/dev/null; then
12392          lt_prog_compiler_static_works_CXX=yes
12393        fi
12394      else
12395        lt_prog_compiler_static_works_CXX=yes
12396      fi
12397    fi
12398    $rm conftest*
12399    LDFLAGS="$save_LDFLAGS"
12400
12401 fi
12402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12403 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12404
12405 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12406     :
12407 else
12408     lt_prog_compiler_static_CXX=
12409 fi
12410
12411
12412 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12413 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   lt_cv_prog_compiler_c_o_CXX=no
12418    $rm -r conftest 2>/dev/null
12419    mkdir conftest
12420    cd conftest
12421    mkdir out
12422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12423
12424    lt_compiler_flag="-o out/conftest2.$ac_objext"
12425    # Insert the option either (1) after the last *FLAGS variable, or
12426    # (2) before a word containing "conftest.", or (3) at the end.
12427    # Note that $ac_compile itself does not contain backslashes and begins
12428    # with a dollar sign (not a hyphen), so the echo should work correctly.
12429    lt_compile=`echo "$ac_compile" | $SED \
12430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12432    -e 's:$: $lt_compiler_flag:'`
12433    (eval echo "\"\$as_me:12433: $lt_compile\"" >&5)
12434    (eval "$lt_compile" 2>out/conftest.err)
12435    ac_status=$?
12436    cat out/conftest.err >&5
12437    echo "$as_me:12437: \$? = $ac_status" >&5
12438    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12439    then
12440      # The compiler can only warn and ignore the option if not recognized
12441      # So say no if there are warnings
12442      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12443      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12444      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12445        lt_cv_prog_compiler_c_o_CXX=yes
12446      fi
12447    fi
12448    chmod u+w . 2>&5
12449    $rm conftest*
12450    # SGI C++ compiler will create directory out/ii_files/ for
12451    # template instantiation
12452    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12453    $rm out/* && rmdir out
12454    cd ..
12455    rmdir conftest
12456    $rm conftest*
12457
12458 fi
12459 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12460 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12461
12462
12463 hard_links="nottested"
12464 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12465   # do not overwrite the value of need_locks provided by the user
12466   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12467 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12468   hard_links=yes
12469   $rm conftest*
12470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471   touch conftest.a
12472   ln conftest.a conftest.b 2>&5 || hard_links=no
12473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12474   { echo "$as_me:$LINENO: result: $hard_links" >&5
12475 echo "${ECHO_T}$hard_links" >&6; }
12476   if test "$hard_links" = no; then
12477     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12478 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12479     need_locks=warn
12480   fi
12481 else
12482   need_locks=no
12483 fi
12484
12485 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12486 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12487
12488   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12489   case $host_os in
12490   aix4* | aix5*)
12491     # If we're using GNU nm, then we don't want the "-C" option.
12492     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12493     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12494       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'
12495     else
12496       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'
12497     fi
12498     ;;
12499   pw32*)
12500     export_symbols_cmds_CXX="$ltdll_cmds"
12501   ;;
12502   cygwin* | mingw*)
12503     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'
12504   ;;
12505   *)
12506     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12507   ;;
12508   esac
12509
12510 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12511 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12512 test "$ld_shlibs_CXX" = no && can_build_shared=no
12513
12514 #
12515 # Do we need to explicitly link libc?
12516 #
12517 case "x$archive_cmds_need_lc_CXX" in
12518 x|xyes)
12519   # Assume -lc should be added
12520   archive_cmds_need_lc_CXX=yes
12521
12522   if test "$enable_shared" = yes && test "$GCC" = yes; then
12523     case $archive_cmds_CXX in
12524     *'~'*)
12525       # FIXME: we may have to deal with multi-command sequences.
12526       ;;
12527     '$CC '*)
12528       # Test whether the compiler implicitly links with -lc since on some
12529       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12530       # to ld, don't add -lc before -lgcc.
12531       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12532 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12533       $rm conftest*
12534       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12535
12536       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } 2>conftest.err; then
12541         soname=conftest
12542         lib=conftest
12543         libobjs=conftest.$ac_objext
12544         deplibs=
12545         wl=$lt_prog_compiler_wl_CXX
12546         pic_flag=$lt_prog_compiler_pic_CXX
12547         compiler_flags=-v
12548         linker_flags=-v
12549         verstring=
12550         output_objdir=.
12551         libname=conftest
12552         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12553         allow_undefined_flag_CXX=
12554         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12555   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }
12559         then
12560           archive_cmds_need_lc_CXX=no
12561         else
12562           archive_cmds_need_lc_CXX=yes
12563         fi
12564         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12565       else
12566         cat conftest.err 1>&5
12567       fi
12568       $rm conftest*
12569       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12570 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12571       ;;
12572     esac
12573   fi
12574   ;;
12575 esac
12576
12577 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12578 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12579 library_names_spec=
12580 libname_spec='lib$name'
12581 soname_spec=
12582 shrext_cmds=".so"
12583 postinstall_cmds=
12584 postuninstall_cmds=
12585 finish_cmds=
12586 finish_eval=
12587 shlibpath_var=
12588 shlibpath_overrides_runpath=unknown
12589 version_type=none
12590 dynamic_linker="$host_os ld.so"
12591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12592
12593 need_lib_prefix=unknown
12594 hardcode_into_libs=no
12595
12596 # when you set need_version to no, make sure it does not cause -set_version
12597 # flags to be left without arguments
12598 need_version=unknown
12599
12600 case $host_os in
12601 aix3*)
12602   version_type=linux
12603   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12604   shlibpath_var=LIBPATH
12605
12606   # AIX 3 has no versioning support, so we append a major version to the name.
12607   soname_spec='${libname}${release}${shared_ext}$major'
12608   ;;
12609
12610 aix4* | aix5*)
12611   version_type=linux
12612   need_lib_prefix=no
12613   need_version=no
12614   hardcode_into_libs=yes
12615   if test "$host_cpu" = ia64; then
12616     # AIX 5 supports IA64
12617     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12618     shlibpath_var=LD_LIBRARY_PATH
12619   else
12620     # With GCC up to 2.95.x, collect2 would create an import file
12621     # for dependence libraries.  The import file would start with
12622     # the line `#! .'.  This would cause the generated library to
12623     # depend on `.', always an invalid library.  This was fixed in
12624     # development snapshots of GCC prior to 3.0.
12625     case $host_os in
12626       aix4 | aix4.[01] | aix4.[01].*)
12627       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12628            echo ' yes '
12629            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12630         :
12631       else
12632         can_build_shared=no
12633       fi
12634       ;;
12635     esac
12636     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12637     # soname into executable. Probably we can add versioning support to
12638     # collect2, so additional links can be useful in future.
12639     if test "$aix_use_runtimelinking" = yes; then
12640       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12641       # instead of lib<name>.a to let people know that these are not
12642       # typical AIX shared libraries.
12643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644     else
12645       # We preserve .a as extension for shared libraries through AIX4.2
12646       # and later when we are not doing run time linking.
12647       library_names_spec='${libname}${release}.a $libname.a'
12648       soname_spec='${libname}${release}${shared_ext}$major'
12649     fi
12650     shlibpath_var=LIBPATH
12651   fi
12652   ;;
12653
12654 amigaos*)
12655   library_names_spec='$libname.ixlibrary $libname.a'
12656   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12657   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'
12658   ;;
12659
12660 beos*)
12661   library_names_spec='${libname}${shared_ext}'
12662   dynamic_linker="$host_os ld.so"
12663   shlibpath_var=LIBRARY_PATH
12664   ;;
12665
12666 bsdi[45]*)
12667   version_type=linux
12668   need_version=no
12669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670   soname_spec='${libname}${release}${shared_ext}$major'
12671   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12672   shlibpath_var=LD_LIBRARY_PATH
12673   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12674   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12675   # the default ld.so.conf also contains /usr/contrib/lib and
12676   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12677   # libtool to hard-code these into programs
12678   ;;
12679
12680 cygwin* | mingw* | pw32*)
12681   version_type=windows
12682   shrext_cmds=".dll"
12683   need_version=no
12684   need_lib_prefix=no
12685
12686   case $GCC,$host_os in
12687   yes,cygwin* | yes,mingw* | yes,pw32*)
12688     library_names_spec='$libname.dll.a'
12689     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12690     postinstall_cmds='base_file=`basename \${file}`~
12691       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12692       dldir=$destdir/`dirname \$dlpath`~
12693       test -d \$dldir || mkdir -p \$dldir~
12694       $install_prog $dir/$dlname \$dldir/$dlname~
12695       chmod a+x \$dldir/$dlname'
12696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12697       dlpath=$dir/\$dldll~
12698        $rm \$dlpath'
12699     shlibpath_overrides_runpath=yes
12700
12701     case $host_os in
12702     cygwin*)
12703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12705       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12706       ;;
12707     mingw*)
12708       # MinGW DLLs use traditional 'lib' prefix
12709       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12711       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12712         # It is most probably a Windows format PATH printed by
12713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12714         # path with ; separators, and with drive letters. We can handle the
12715         # drive letters (cygwin fileutils understands them), so leave them,
12716         # especially as we might pass files found there to a mingw objdump,
12717         # which wouldn't understand a cygwinified path. Ahh.
12718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12719       else
12720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12721       fi
12722       ;;
12723     pw32*)
12724       # pw32 DLLs use 'pw' prefix rather than 'lib'
12725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12726       ;;
12727     esac
12728     ;;
12729
12730   *)
12731     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12732     ;;
12733   esac
12734   dynamic_linker='Win32 ld.exe'
12735   # FIXME: first we should search . and the directory the executable is in
12736   shlibpath_var=PATH
12737   ;;
12738
12739 darwin* | rhapsody*)
12740   dynamic_linker="$host_os dyld"
12741   version_type=darwin
12742   need_lib_prefix=no
12743   need_version=no
12744   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12745   soname_spec='${libname}${release}${major}$shared_ext'
12746   shlibpath_overrides_runpath=yes
12747   shlibpath_var=DYLD_LIBRARY_PATH
12748   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12749
12750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12751   ;;
12752
12753 dgux*)
12754   version_type=linux
12755   need_lib_prefix=no
12756   need_version=no
12757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12758   soname_spec='${libname}${release}${shared_ext}$major'
12759   shlibpath_var=LD_LIBRARY_PATH
12760   ;;
12761
12762 freebsd1*)
12763   dynamic_linker=no
12764   ;;
12765
12766 freebsd* | dragonfly*)
12767   # DragonFly does not have aout.  When/if they implement a new
12768   # versioning mechanism, adjust this.
12769   if test -x /usr/bin/objformat; then
12770     objformat=`/usr/bin/objformat`
12771   else
12772     case $host_os in
12773     freebsd[123]*) objformat=aout ;;
12774     *) objformat=elf ;;
12775     esac
12776   fi
12777   version_type=freebsd-$objformat
12778   case $version_type in
12779     freebsd-elf*)
12780       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12781       need_version=no
12782       need_lib_prefix=no
12783       ;;
12784     freebsd-*)
12785       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12786       need_version=yes
12787       ;;
12788   esac
12789   shlibpath_var=LD_LIBRARY_PATH
12790   case $host_os in
12791   freebsd2*)
12792     shlibpath_overrides_runpath=yes
12793     ;;
12794   freebsd3.[01]* | freebsdelf3.[01]*)
12795     shlibpath_overrides_runpath=yes
12796     hardcode_into_libs=yes
12797     ;;
12798   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12799   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12800     shlibpath_overrides_runpath=no
12801     hardcode_into_libs=yes
12802     ;;
12803   *) # from 4.6 on, and DragonFly
12804     shlibpath_overrides_runpath=yes
12805     hardcode_into_libs=yes
12806     ;;
12807   esac
12808   ;;
12809
12810 gnu*)
12811   version_type=linux
12812   need_lib_prefix=no
12813   need_version=no
12814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12815   soname_spec='${libname}${release}${shared_ext}$major'
12816   shlibpath_var=LD_LIBRARY_PATH
12817   hardcode_into_libs=yes
12818   ;;
12819
12820 hpux9* | hpux10* | hpux11*)
12821   # Give a soname corresponding to the major version so that dld.sl refuses to
12822   # link against other versions.
12823   version_type=sunos
12824   need_lib_prefix=no
12825   need_version=no
12826   case $host_cpu in
12827   ia64*)
12828     shrext_cmds='.so'
12829     hardcode_into_libs=yes
12830     dynamic_linker="$host_os dld.so"
12831     shlibpath_var=LD_LIBRARY_PATH
12832     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834     soname_spec='${libname}${release}${shared_ext}$major'
12835     if test "X$HPUX_IA64_MODE" = X32; then
12836       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12837     else
12838       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12839     fi
12840     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12841     ;;
12842    hppa*64*)
12843      shrext_cmds='.sl'
12844      hardcode_into_libs=yes
12845      dynamic_linker="$host_os dld.sl"
12846      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12847      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12848      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12849      soname_spec='${libname}${release}${shared_ext}$major'
12850      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12851      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12852      ;;
12853    *)
12854     shrext_cmds='.sl'
12855     dynamic_linker="$host_os dld.sl"
12856     shlibpath_var=SHLIB_PATH
12857     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859     soname_spec='${libname}${release}${shared_ext}$major'
12860     ;;
12861   esac
12862   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12863   postinstall_cmds='chmod 555 $lib'
12864   ;;
12865
12866 interix[3-9]*)
12867   version_type=linux
12868   need_lib_prefix=no
12869   need_version=no
12870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871   soname_spec='${libname}${release}${shared_ext}$major'
12872   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12873   shlibpath_var=LD_LIBRARY_PATH
12874   shlibpath_overrides_runpath=no
12875   hardcode_into_libs=yes
12876   ;;
12877
12878 irix5* | irix6* | nonstopux*)
12879   case $host_os in
12880     nonstopux*) version_type=nonstopux ;;
12881     *)
12882         if test "$lt_cv_prog_gnu_ld" = yes; then
12883                 version_type=linux
12884         else
12885                 version_type=irix
12886         fi ;;
12887   esac
12888   need_lib_prefix=no
12889   need_version=no
12890   soname_spec='${libname}${release}${shared_ext}$major'
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12892   case $host_os in
12893   irix5* | nonstopux*)
12894     libsuff= shlibsuff=
12895     ;;
12896   *)
12897     case $LD in # libtool.m4 will add one of these switches to LD
12898     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12899       libsuff= shlibsuff= libmagic=32-bit;;
12900     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12901       libsuff=32 shlibsuff=N32 libmagic=N32;;
12902     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12903       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12904     *) libsuff= shlibsuff= libmagic=never-match;;
12905     esac
12906     ;;
12907   esac
12908   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12909   shlibpath_overrides_runpath=no
12910   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12911   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12912   hardcode_into_libs=yes
12913   ;;
12914
12915 # No shared lib support for Linux oldld, aout, or coff.
12916 linux*oldld* | linux*aout* | linux*coff*)
12917   dynamic_linker=no
12918   ;;
12919
12920 # This must be Linux ELF.
12921 linux* | k*bsd*-gnu)
12922   version_type=linux
12923   need_lib_prefix=no
12924   need_version=no
12925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926   soname_spec='${libname}${release}${shared_ext}$major'
12927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12928   shlibpath_var=LD_LIBRARY_PATH
12929   shlibpath_overrides_runpath=no
12930   # This implies no fast_install, which is unacceptable.
12931   # Some rework will be needed to allow for fast_install
12932   # before this can be enabled.
12933   hardcode_into_libs=yes
12934
12935   # find out which ABI we are using
12936   libsuff=
12937   case "$host_cpu" in
12938   x86_64*|s390x*|powerpc64*)
12939     echo '#line 12939 "configure"' > conftest.$ac_ext
12940     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941   (eval $ac_compile) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; then
12945       case `/usr/bin/file conftest.$ac_objext` in
12946       *64-bit*)
12947         libsuff=64
12948         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12949         ;;
12950       esac
12951     fi
12952     rm -rf conftest*
12953     ;;
12954   esac
12955
12956   # Append ld.so.conf contents to the search path
12957   if test -f /etc/ld.so.conf; then
12958     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' ' '`
12959     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12960   fi
12961
12962   # We used to test for /lib/ld.so.1 and disable shared libraries on
12963   # powerpc, because MkLinux only supported shared libraries with the
12964   # GNU dynamic linker.  Since this was broken with cross compilers,
12965   # most powerpc-linux boxes support dynamic linking these days and
12966   # people can always --disable-shared, the test was removed, and we
12967   # assume the GNU/Linux dynamic linker is in use.
12968   dynamic_linker='GNU/Linux ld.so'
12969   ;;
12970
12971 netbsd*)
12972   version_type=sunos
12973   need_lib_prefix=no
12974   need_version=no
12975   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12977     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12978     dynamic_linker='NetBSD (a.out) ld.so'
12979   else
12980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12981     soname_spec='${libname}${release}${shared_ext}$major'
12982     dynamic_linker='NetBSD ld.elf_so'
12983   fi
12984   shlibpath_var=LD_LIBRARY_PATH
12985   shlibpath_overrides_runpath=yes
12986   hardcode_into_libs=yes
12987   ;;
12988
12989 newsos6)
12990   version_type=linux
12991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992   shlibpath_var=LD_LIBRARY_PATH
12993   shlibpath_overrides_runpath=yes
12994   ;;
12995
12996 nto-qnx*)
12997   version_type=linux
12998   need_lib_prefix=no
12999   need_version=no
13000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001   soname_spec='${libname}${release}${shared_ext}$major'
13002   shlibpath_var=LD_LIBRARY_PATH
13003   shlibpath_overrides_runpath=yes
13004   ;;
13005
13006 openbsd*)
13007   version_type=sunos
13008   sys_lib_dlsearch_path_spec="/usr/lib"
13009   need_lib_prefix=no
13010   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13011   case $host_os in
13012     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13013     *)                         need_version=no  ;;
13014   esac
13015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13017   shlibpath_var=LD_LIBRARY_PATH
13018   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13019     case $host_os in
13020       openbsd2.[89] | openbsd2.[89].*)
13021         shlibpath_overrides_runpath=no
13022         ;;
13023       *)
13024         shlibpath_overrides_runpath=yes
13025         ;;
13026       esac
13027   else
13028     shlibpath_overrides_runpath=yes
13029   fi
13030   ;;
13031
13032 os2*)
13033   libname_spec='$name'
13034   shrext_cmds=".dll"
13035   need_lib_prefix=no
13036   library_names_spec='$libname${shared_ext} $libname.a'
13037   dynamic_linker='OS/2 ld.exe'
13038   shlibpath_var=LIBPATH
13039   ;;
13040
13041 osf3* | osf4* | osf5*)
13042   version_type=osf
13043   need_lib_prefix=no
13044   need_version=no
13045   soname_spec='${libname}${release}${shared_ext}$major'
13046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047   shlibpath_var=LD_LIBRARY_PATH
13048   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13049   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13050   ;;
13051
13052 rdos*)
13053   dynamic_linker=no
13054   ;;
13055
13056 solaris*)
13057   version_type=linux
13058   need_lib_prefix=no
13059   need_version=no
13060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061   soname_spec='${libname}${release}${shared_ext}$major'
13062   shlibpath_var=LD_LIBRARY_PATH
13063   shlibpath_overrides_runpath=yes
13064   hardcode_into_libs=yes
13065   # ldd complains unless libraries are executable
13066   postinstall_cmds='chmod +x $lib'
13067   ;;
13068
13069 sunos4*)
13070   version_type=sunos
13071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13072   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13073   shlibpath_var=LD_LIBRARY_PATH
13074   shlibpath_overrides_runpath=yes
13075   if test "$with_gnu_ld" = yes; then
13076     need_lib_prefix=no
13077   fi
13078   need_version=yes
13079   ;;
13080
13081 sysv4 | sysv4.3*)
13082   version_type=linux
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084   soname_spec='${libname}${release}${shared_ext}$major'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   case $host_vendor in
13087     sni)
13088       shlibpath_overrides_runpath=no
13089       need_lib_prefix=no
13090       export_dynamic_flag_spec='${wl}-Blargedynsym'
13091       runpath_var=LD_RUN_PATH
13092       ;;
13093     siemens)
13094       need_lib_prefix=no
13095       ;;
13096     motorola)
13097       need_lib_prefix=no
13098       need_version=no
13099       shlibpath_overrides_runpath=no
13100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13101       ;;
13102   esac
13103   ;;
13104
13105 sysv4*MP*)
13106   if test -d /usr/nec ;then
13107     version_type=linux
13108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13109     soname_spec='$libname${shared_ext}.$major'
13110     shlibpath_var=LD_LIBRARY_PATH
13111   fi
13112   ;;
13113
13114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13115   version_type=freebsd-elf
13116   need_lib_prefix=no
13117   need_version=no
13118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13119   soname_spec='${libname}${release}${shared_ext}$major'
13120   shlibpath_var=LD_LIBRARY_PATH
13121   hardcode_into_libs=yes
13122   if test "$with_gnu_ld" = yes; then
13123     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13124     shlibpath_overrides_runpath=no
13125   else
13126     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13127     shlibpath_overrides_runpath=yes
13128     case $host_os in
13129       sco3.2v5*)
13130         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13131         ;;
13132     esac
13133   fi
13134   sys_lib_dlsearch_path_spec='/usr/lib'
13135   ;;
13136
13137 uts4*)
13138   version_type=linux
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   ;;
13143
13144 *)
13145   dynamic_linker=no
13146   ;;
13147 esac
13148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13149 echo "${ECHO_T}$dynamic_linker" >&6; }
13150 test "$dynamic_linker" = no && can_build_shared=no
13151
13152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13153 if test "$GCC" = yes; then
13154   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13155 fi
13156
13157 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13159 hardcode_action_CXX=
13160 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13161    test -n "$runpath_var_CXX" || \
13162    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13163
13164   # We can hardcode non-existant directories.
13165   if test "$hardcode_direct_CXX" != no &&
13166      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13167      # have to relink, otherwise we might link with an installed library
13168      # when we should be linking with a yet-to-be-installed one
13169      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13170      test "$hardcode_minus_L_CXX" != no; then
13171     # Linking always hardcodes the temporary library directory.
13172     hardcode_action_CXX=relink
13173   else
13174     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13175     hardcode_action_CXX=immediate
13176   fi
13177 else
13178   # We cannot hardcode anything, or else we can only hardcode existing
13179   # directories.
13180   hardcode_action_CXX=unsupported
13181 fi
13182 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13183 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13184
13185 if test "$hardcode_action_CXX" = relink; then
13186   # Fast installation is not supported
13187   enable_fast_install=no
13188 elif test "$shlibpath_overrides_runpath" = yes ||
13189      test "$enable_shared" = no; then
13190   # Fast installation is not necessary
13191   enable_fast_install=needless
13192 fi
13193
13194
13195 # The else clause should only fire when bootstrapping the
13196 # libtool distribution, otherwise you forgot to ship ltmain.sh
13197 # with your package, and you will get complaints that there are
13198 # no rules to generate ltmain.sh.
13199 if test -f "$ltmain"; then
13200   # See if we are running on zsh, and set the options which allow our commands through
13201   # without removal of \ escapes.
13202   if test -n "${ZSH_VERSION+set}" ; then
13203     setopt NO_GLOB_SUBST
13204   fi
13205   # Now quote all the things that may contain metacharacters while being
13206   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13207   # variables and quote the copies for generation of the libtool script.
13208   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13209     SED SHELL STRIP \
13210     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13211     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13212     deplibs_check_method reload_flag reload_cmds need_locks \
13213     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13214     lt_cv_sys_global_symbol_to_c_name_address \
13215     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13216     old_postinstall_cmds old_postuninstall_cmds \
13217     compiler_CXX \
13218     CC_CXX \
13219     LD_CXX \
13220     lt_prog_compiler_wl_CXX \
13221     lt_prog_compiler_pic_CXX \
13222     lt_prog_compiler_static_CXX \
13223     lt_prog_compiler_no_builtin_flag_CXX \
13224     export_dynamic_flag_spec_CXX \
13225     thread_safe_flag_spec_CXX \
13226     whole_archive_flag_spec_CXX \
13227     enable_shared_with_static_runtimes_CXX \
13228     old_archive_cmds_CXX \
13229     old_archive_from_new_cmds_CXX \
13230     predep_objects_CXX \
13231     postdep_objects_CXX \
13232     predeps_CXX \
13233     postdeps_CXX \
13234     compiler_lib_search_path_CXX \
13235     archive_cmds_CXX \
13236     archive_expsym_cmds_CXX \
13237     postinstall_cmds_CXX \
13238     postuninstall_cmds_CXX \
13239     old_archive_from_expsyms_cmds_CXX \
13240     allow_undefined_flag_CXX \
13241     no_undefined_flag_CXX \
13242     export_symbols_cmds_CXX \
13243     hardcode_libdir_flag_spec_CXX \
13244     hardcode_libdir_flag_spec_ld_CXX \
13245     hardcode_libdir_separator_CXX \
13246     hardcode_automatic_CXX \
13247     module_cmds_CXX \
13248     module_expsym_cmds_CXX \
13249     lt_cv_prog_compiler_c_o_CXX \
13250     fix_srcfile_path_CXX \
13251     exclude_expsyms_CXX \
13252     include_expsyms_CXX; do
13253
13254     case $var in
13255     old_archive_cmds_CXX | \
13256     old_archive_from_new_cmds_CXX | \
13257     archive_cmds_CXX | \
13258     archive_expsym_cmds_CXX | \
13259     module_cmds_CXX | \
13260     module_expsym_cmds_CXX | \
13261     old_archive_from_expsyms_cmds_CXX | \
13262     export_symbols_cmds_CXX | \
13263     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13264     postinstall_cmds | postuninstall_cmds | \
13265     old_postinstall_cmds | old_postuninstall_cmds | \
13266     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13267       # Double-quote double-evaled strings.
13268       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13269       ;;
13270     *)
13271       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13272       ;;
13273     esac
13274   done
13275
13276   case $lt_echo in
13277   *'\$0 --fallback-echo"')
13278     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13279     ;;
13280   esac
13281
13282 cfgfile="$ofile"
13283
13284   cat <<__EOF__ >> "$cfgfile"
13285 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13286
13287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13288
13289 # Shell to use when invoking shell scripts.
13290 SHELL=$lt_SHELL
13291
13292 # Whether or not to build shared libraries.
13293 build_libtool_libs=$enable_shared
13294
13295 # Whether or not to build static libraries.
13296 build_old_libs=$enable_static
13297
13298 # Whether or not to add -lc for building shared libraries.
13299 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13300
13301 # Whether or not to disallow shared libs when runtime libs are static
13302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13303
13304 # Whether or not to optimize for fast installation.
13305 fast_install=$enable_fast_install
13306
13307 # The host system.
13308 host_alias=$host_alias
13309 host=$host
13310 host_os=$host_os
13311
13312 # The build system.
13313 build_alias=$build_alias
13314 build=$build
13315 build_os=$build_os
13316
13317 # An echo program that does not interpret backslashes.
13318 echo=$lt_echo
13319
13320 # The archiver.
13321 AR=$lt_AR
13322 AR_FLAGS=$lt_AR_FLAGS
13323
13324 # A C compiler.
13325 LTCC=$lt_LTCC
13326
13327 # LTCC compiler flags.
13328 LTCFLAGS=$lt_LTCFLAGS
13329
13330 # A language-specific compiler.
13331 CC=$lt_compiler_CXX
13332
13333 # Is the compiler the GNU C compiler?
13334 with_gcc=$GCC_CXX
13335
13336 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13337 gcc_ver=\`gcc -dumpversion\`
13338
13339 # An ERE matcher.
13340 EGREP=$lt_EGREP
13341
13342 # The linker used to build libraries.
13343 LD=$lt_LD_CXX
13344
13345 # Whether we need hard or soft links.
13346 LN_S=$lt_LN_S
13347
13348 # A BSD-compatible nm program.
13349 NM=$lt_NM
13350
13351 # A symbol stripping program
13352 STRIP=$lt_STRIP
13353
13354 # Used to examine libraries when file_magic_cmd begins "file"
13355 MAGIC_CMD=$MAGIC_CMD
13356
13357 # Used on cygwin: DLL creation program.
13358 DLLTOOL="$DLLTOOL"
13359
13360 # Used on cygwin: object dumper.
13361 OBJDUMP="$OBJDUMP"
13362
13363 # Used on cygwin: assembler.
13364 AS="$AS"
13365
13366 # The name of the directory that contains temporary libtool files.
13367 objdir=$objdir
13368
13369 # How to create reloadable object files.
13370 reload_flag=$lt_reload_flag
13371 reload_cmds=$lt_reload_cmds
13372
13373 # How to pass a linker flag through the compiler.
13374 wl=$lt_lt_prog_compiler_wl_CXX
13375
13376 # Object file suffix (normally "o").
13377 objext="$ac_objext"
13378
13379 # Old archive suffix (normally "a").
13380 libext="$libext"
13381
13382 # Shared library suffix (normally ".so").
13383 shrext_cmds='$shrext_cmds'
13384
13385 # Executable file suffix (normally "").
13386 exeext="$exeext"
13387
13388 # Additional compiler flags for building library objects.
13389 pic_flag=$lt_lt_prog_compiler_pic_CXX
13390 pic_mode=$pic_mode
13391
13392 # What is the maximum length of a command?
13393 max_cmd_len=$lt_cv_sys_max_cmd_len
13394
13395 # Does compiler simultaneously support -c and -o options?
13396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13397
13398 # Must we lock files when doing compilation?
13399 need_locks=$lt_need_locks
13400
13401 # Do we need the lib prefix for modules?
13402 need_lib_prefix=$need_lib_prefix
13403
13404 # Do we need a version for libraries?
13405 need_version=$need_version
13406
13407 # Whether dlopen is supported.
13408 dlopen_support=$enable_dlopen
13409
13410 # Whether dlopen of programs is supported.
13411 dlopen_self=$enable_dlopen_self
13412
13413 # Whether dlopen of statically linked programs is supported.
13414 dlopen_self_static=$enable_dlopen_self_static
13415
13416 # Compiler flag to prevent dynamic linking.
13417 link_static_flag=$lt_lt_prog_compiler_static_CXX
13418
13419 # Compiler flag to turn off builtin functions.
13420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13421
13422 # Compiler flag to allow reflexive dlopens.
13423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13424
13425 # Compiler flag to generate shared objects directly from archives.
13426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13427
13428 # Compiler flag to generate thread-safe objects.
13429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13430
13431 # Library versioning type.
13432 version_type=$version_type
13433
13434 # Format of library name prefix.
13435 libname_spec=$lt_libname_spec
13436
13437 # List of archive names.  First name is the real one, the rest are links.
13438 # The last name is the one that the linker finds with -lNAME.
13439 library_names_spec=$lt_library_names_spec
13440
13441 # The coded name of the library, if different from the real name.
13442 soname_spec=$lt_soname_spec
13443
13444 # Commands used to build and install an old-style archive.
13445 RANLIB=$lt_RANLIB
13446 old_archive_cmds=$lt_old_archive_cmds_CXX
13447 old_postinstall_cmds=$lt_old_postinstall_cmds
13448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13449
13450 # Create an old-style archive from a shared archive.
13451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13452
13453 # Create a temporary old-style archive to link instead of a shared archive.
13454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13455
13456 # Commands used to build and install a shared archive.
13457 archive_cmds=$lt_archive_cmds_CXX
13458 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13459 postinstall_cmds=$lt_postinstall_cmds
13460 postuninstall_cmds=$lt_postuninstall_cmds
13461
13462 # Commands used to build a loadable module (assumed same as above if empty)
13463 module_cmds=$lt_module_cmds_CXX
13464 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13465
13466 # Commands to strip libraries.
13467 old_striplib=$lt_old_striplib
13468 striplib=$lt_striplib
13469
13470 # Dependencies to place before the objects being linked to create a
13471 # shared library.
13472 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13473
13474 # Dependencies to place after the objects being linked to create a
13475 # shared library.
13476 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13477
13478 # Dependencies to place before the objects being linked to create a
13479 # shared library.
13480 predeps=$lt_predeps_CXX
13481
13482 # Dependencies to place after the objects being linked to create a
13483 # shared library.
13484 postdeps=$lt_postdeps_CXX
13485
13486 # The library search path used internally by the compiler when linking
13487 # a shared library.
13488 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13489
13490 # Method to check whether dependent libraries are shared objects.
13491 deplibs_check_method=$lt_deplibs_check_method
13492
13493 # Command to use when deplibs_check_method == file_magic.
13494 file_magic_cmd=$lt_file_magic_cmd
13495
13496 # Flag that allows shared libraries with undefined symbols to be built.
13497 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13498
13499 # Flag that forces no undefined symbols.
13500 no_undefined_flag=$lt_no_undefined_flag_CXX
13501
13502 # Commands used to finish a libtool library installation in a directory.
13503 finish_cmds=$lt_finish_cmds
13504
13505 # Same as above, but a single script fragment to be evaled but not shown.
13506 finish_eval=$lt_finish_eval
13507
13508 # Take the output of nm and produce a listing of raw symbols and C names.
13509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13510
13511 # Transform the output of nm in a proper C declaration
13512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13513
13514 # Transform the output of nm in a C name address pair
13515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13516
13517 # This is the shared library runtime path variable.
13518 runpath_var=$runpath_var
13519
13520 # This is the shared library path variable.
13521 shlibpath_var=$shlibpath_var
13522
13523 # Is shlibpath searched before the hard-coded library search path?
13524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13525
13526 # How to hardcode a shared library path into an executable.
13527 hardcode_action=$hardcode_action_CXX
13528
13529 # Whether we should hardcode library paths into libraries.
13530 hardcode_into_libs=$hardcode_into_libs
13531
13532 # Flag to hardcode \$libdir into a binary during linking.
13533 # This must work even if \$libdir does not exist.
13534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13535
13536 # If ld is used when linking, flag to hardcode \$libdir into
13537 # a binary during linking. This must work even if \$libdir does
13538 # not exist.
13539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13540
13541 # Whether we need a single -rpath flag with a separated argument.
13542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13543
13544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13545 # resulting binary.
13546 hardcode_direct=$hardcode_direct_CXX
13547
13548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13549 # resulting binary.
13550 hardcode_minus_L=$hardcode_minus_L_CXX
13551
13552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13553 # the resulting binary.
13554 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13555
13556 # Set to yes if building a shared library automatically hardcodes DIR into the library
13557 # and all subsequent libraries and executables linked against it.
13558 hardcode_automatic=$hardcode_automatic_CXX
13559
13560 # Variables whose values should be saved in libtool wrapper scripts and
13561 # restored at relink time.
13562 variables_saved_for_relink="$variables_saved_for_relink"
13563
13564 # Whether libtool must link a program against all its dependency libraries.
13565 link_all_deplibs=$link_all_deplibs_CXX
13566
13567 # Compile-time system search path for libraries
13568 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13569
13570 # Run-time system search path for libraries
13571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13572
13573 # Fix the shell variable \$srcfile for the compiler.
13574 fix_srcfile_path=$lt_fix_srcfile_path
13575
13576 # Set to yes if exported symbols are required.
13577 always_export_symbols=$always_export_symbols_CXX
13578
13579 # The commands to list exported symbols.
13580 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13581
13582 # The commands to extract the exported symbol list from a shared archive.
13583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13584
13585 # Symbols that should not be listed in the preloaded symbols.
13586 exclude_expsyms=$lt_exclude_expsyms_CXX
13587
13588 # Symbols that must always be exported.
13589 include_expsyms=$lt_include_expsyms_CXX
13590
13591 # ### END LIBTOOL TAG CONFIG: $tagname
13592
13593 __EOF__
13594
13595
13596 else
13597   # If there is no Makefile yet, we rely on a make rule to execute
13598   # `config.status --recheck' to rerun these tests and create the
13599   # libtool script then.
13600   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13601   if test -f "$ltmain_in"; then
13602     test -f Makefile && make "$ltmain"
13603   fi
13604 fi
13605
13606
13607 ac_ext=c
13608 ac_cpp='$CPP $CPPFLAGS'
13609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13612
13613 CC=$lt_save_CC
13614 LDCXX=$LD
13615 LD=$lt_save_LD
13616 GCC=$lt_save_GCC
13617 with_gnu_ldcxx=$with_gnu_ld
13618 with_gnu_ld=$lt_save_with_gnu_ld
13619 lt_cv_path_LDCXX=$lt_cv_path_LD
13620 lt_cv_path_LD=$lt_save_path_LD
13621 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13622 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13623
13624         else
13625           tagname=""
13626         fi
13627         ;;
13628
13629       F77)
13630         if test -n "$F77" && test "X$F77" != "Xno"; then
13631
13632 ac_ext=f
13633 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13634 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13636
13637
13638 archive_cmds_need_lc_F77=no
13639 allow_undefined_flag_F77=
13640 always_export_symbols_F77=no
13641 archive_expsym_cmds_F77=
13642 export_dynamic_flag_spec_F77=
13643 hardcode_direct_F77=no
13644 hardcode_libdir_flag_spec_F77=
13645 hardcode_libdir_flag_spec_ld_F77=
13646 hardcode_libdir_separator_F77=
13647 hardcode_minus_L_F77=no
13648 hardcode_automatic_F77=no
13649 module_cmds_F77=
13650 module_expsym_cmds_F77=
13651 link_all_deplibs_F77=unknown
13652 old_archive_cmds_F77=$old_archive_cmds
13653 no_undefined_flag_F77=
13654 whole_archive_flag_spec_F77=
13655 enable_shared_with_static_runtimes_F77=no
13656
13657 # Source file extension for f77 test sources.
13658 ac_ext=f
13659
13660 # Object file extension for compiled f77 test sources.
13661 objext=o
13662 objext_F77=$objext
13663
13664 # Code to be used in simple compile tests
13665 lt_simple_compile_test_code="\
13666       subroutine t
13667       return
13668       end
13669 "
13670
13671 # Code to be used in simple link tests
13672 lt_simple_link_test_code="\
13673       program t
13674       end
13675 "
13676
13677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13678
13679 # If no C compiler was specified, use CC.
13680 LTCC=${LTCC-"$CC"}
13681
13682 # If no C compiler flags were specified, use CFLAGS.
13683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13684
13685 # Allow CC to be a program name with arguments.
13686 compiler=$CC
13687
13688
13689 # save warnings/boilerplate of simple test code
13690 ac_outfile=conftest.$ac_objext
13691 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13692 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13693 _lt_compiler_boilerplate=`cat conftest.err`
13694 $rm conftest*
13695
13696 ac_outfile=conftest.$ac_objext
13697 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13698 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699 _lt_linker_boilerplate=`cat conftest.err`
13700 $rm conftest*
13701
13702
13703 # Allow CC to be a program name with arguments.
13704 lt_save_CC="$CC"
13705 CC=${F77-"f77"}
13706 compiler=$CC
13707 compiler_F77=$CC
13708 for cc_temp in $compiler""; do
13709   case $cc_temp in
13710     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13711     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13712     \-*) ;;
13713     *) break;;
13714   esac
13715 done
13716 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13717
13718
13719 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13720 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13721 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13722 echo "${ECHO_T}$can_build_shared" >&6; }
13723
13724 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13725 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13726 test "$can_build_shared" = "no" && enable_shared=no
13727
13728 # On AIX, shared libraries and static libraries use the same namespace, and
13729 # are all built from PIC.
13730 case $host_os in
13731 aix3*)
13732   test "$enable_shared" = yes && enable_static=no
13733   if test -n "$RANLIB"; then
13734     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13735     postinstall_cmds='$RANLIB $lib'
13736   fi
13737   ;;
13738 aix4* | aix5*)
13739   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13740     test "$enable_shared" = yes && enable_static=no
13741   fi
13742   ;;
13743 esac
13744 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13745 echo "${ECHO_T}$enable_shared" >&6; }
13746
13747 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13748 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13749 # Make sure either enable_shared or enable_static is yes.
13750 test "$enable_shared" = yes || enable_static=yes
13751 { echo "$as_me:$LINENO: result: $enable_static" >&5
13752 echo "${ECHO_T}$enable_static" >&6; }
13753
13754 GCC_F77="$G77"
13755 LD_F77="$LD"
13756
13757 lt_prog_compiler_wl_F77=
13758 lt_prog_compiler_pic_F77=
13759 lt_prog_compiler_static_F77=
13760
13761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13763
13764   if test "$GCC" = yes; then
13765     lt_prog_compiler_wl_F77='-Wl,'
13766     lt_prog_compiler_static_F77='-static'
13767
13768     case $host_os in
13769       aix*)
13770       # All AIX code is PIC.
13771       if test "$host_cpu" = ia64; then
13772         # AIX 5 now supports IA64 processor
13773         lt_prog_compiler_static_F77='-Bstatic'
13774       fi
13775       ;;
13776
13777     amigaos*)
13778       # FIXME: we need at least 68020 code to build shared libraries, but
13779       # adding the `-m68020' flag to GCC prevents building anything better,
13780       # like `-m68040'.
13781       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13782       ;;
13783
13784     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13785       # PIC is the default for these OSes.
13786       ;;
13787
13788     mingw* | cygwin* | pw32* | os2*)
13789       # This hack is so that the source file can tell whether it is being
13790       # built for inclusion in a dll (and should export symbols for example).
13791       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13792       # (--disable-auto-import) libraries
13793       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13794       ;;
13795
13796     darwin* | rhapsody*)
13797       # PIC is the default on this platform
13798       # Common symbols not allowed in MH_DYLIB files
13799       lt_prog_compiler_pic_F77='-fno-common'
13800       ;;
13801
13802     interix[3-9]*)
13803       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13804       # Instead, we relocate shared libraries at runtime.
13805       ;;
13806
13807     msdosdjgpp*)
13808       # Just because we use GCC doesn't mean we suddenly get shared libraries
13809       # on systems that don't support them.
13810       lt_prog_compiler_can_build_shared_F77=no
13811       enable_shared=no
13812       ;;
13813
13814     sysv4*MP*)
13815       if test -d /usr/nec; then
13816         lt_prog_compiler_pic_F77=-Kconform_pic
13817       fi
13818       ;;
13819
13820     hpux*)
13821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13822       # not for PA HP-UX.
13823       case $host_cpu in
13824       hppa*64*|ia64*)
13825         # +Z the default
13826         ;;
13827       *)
13828         lt_prog_compiler_pic_F77='-fPIC'
13829         ;;
13830       esac
13831       ;;
13832
13833     *)
13834       lt_prog_compiler_pic_F77='-fPIC'
13835       ;;
13836     esac
13837   else
13838     # PORTME Check for flag to pass linker flags through the system compiler.
13839     case $host_os in
13840     aix*)
13841       lt_prog_compiler_wl_F77='-Wl,'
13842       if test "$host_cpu" = ia64; then
13843         # AIX 5 now supports IA64 processor
13844         lt_prog_compiler_static_F77='-Bstatic'
13845       else
13846         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13847       fi
13848       ;;
13849       darwin*)
13850         # PIC is the default on this platform
13851         # Common symbols not allowed in MH_DYLIB files
13852        case $cc_basename in
13853          xlc*)
13854          lt_prog_compiler_pic_F77='-qnocommon'
13855          lt_prog_compiler_wl_F77='-Wl,'
13856          ;;
13857        esac
13858        ;;
13859
13860     mingw* | cygwin* | pw32* | os2*)
13861       # This hack is so that the source file can tell whether it is being
13862       # built for inclusion in a dll (and should export symbols for example).
13863       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13864       ;;
13865
13866     hpux9* | hpux10* | hpux11*)
13867       lt_prog_compiler_wl_F77='-Wl,'
13868       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13869       # not for PA HP-UX.
13870       case $host_cpu in
13871       hppa*64*|ia64*)
13872         # +Z the default
13873         ;;
13874       *)
13875         lt_prog_compiler_pic_F77='+Z'
13876         ;;
13877       esac
13878       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13879       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13880       ;;
13881
13882     irix5* | irix6* | nonstopux*)
13883       lt_prog_compiler_wl_F77='-Wl,'
13884       # PIC (with -KPIC) is the default.
13885       lt_prog_compiler_static_F77='-non_shared'
13886       ;;
13887
13888     newsos6)
13889       lt_prog_compiler_pic_F77='-KPIC'
13890       lt_prog_compiler_static_F77='-Bstatic'
13891       ;;
13892
13893     linux* | k*bsd*-gnu)
13894       case $cc_basename in
13895       icc* | ecc*)
13896         lt_prog_compiler_wl_F77='-Wl,'
13897         lt_prog_compiler_pic_F77='-KPIC'
13898         lt_prog_compiler_static_F77='-static'
13899         ;;
13900       pgcc* | pgf77* | pgf90* | pgf95*)
13901         # Portland Group compilers (*not* the Pentium gcc compiler,
13902         # which looks to be a dead project)
13903         lt_prog_compiler_wl_F77='-Wl,'
13904         lt_prog_compiler_pic_F77='-fpic'
13905         lt_prog_compiler_static_F77='-Bstatic'
13906         ;;
13907       ccc*)
13908         lt_prog_compiler_wl_F77='-Wl,'
13909         # All Alpha code is PIC.
13910         lt_prog_compiler_static_F77='-non_shared'
13911         ;;
13912       *)
13913         case `$CC -V 2>&1 | sed 5q` in
13914         *Sun\ C*)
13915           # Sun C 5.9
13916           lt_prog_compiler_pic_F77='-KPIC'
13917           lt_prog_compiler_static_F77='-Bstatic'
13918           lt_prog_compiler_wl_F77='-Wl,'
13919           ;;
13920         *Sun\ F*)
13921           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13922           lt_prog_compiler_pic_F77='-KPIC'
13923           lt_prog_compiler_static_F77='-Bstatic'
13924           lt_prog_compiler_wl_F77=''
13925           ;;
13926         esac
13927         ;;
13928       esac
13929       ;;
13930
13931     osf3* | osf4* | osf5*)
13932       lt_prog_compiler_wl_F77='-Wl,'
13933       # All OSF/1 code is PIC.
13934       lt_prog_compiler_static_F77='-non_shared'
13935       ;;
13936
13937     rdos*)
13938       lt_prog_compiler_static_F77='-non_shared'
13939       ;;
13940
13941     solaris*)
13942       lt_prog_compiler_pic_F77='-KPIC'
13943       lt_prog_compiler_static_F77='-Bstatic'
13944       case $cc_basename in
13945       f77* | f90* | f95*)
13946         lt_prog_compiler_wl_F77='-Qoption ld ';;
13947       *)
13948         lt_prog_compiler_wl_F77='-Wl,';;
13949       esac
13950       ;;
13951
13952     sunos4*)
13953       lt_prog_compiler_wl_F77='-Qoption ld '
13954       lt_prog_compiler_pic_F77='-PIC'
13955       lt_prog_compiler_static_F77='-Bstatic'
13956       ;;
13957
13958     sysv4 | sysv4.2uw2* | sysv4.3*)
13959       lt_prog_compiler_wl_F77='-Wl,'
13960       lt_prog_compiler_pic_F77='-KPIC'
13961       lt_prog_compiler_static_F77='-Bstatic'
13962       ;;
13963
13964     sysv4*MP*)
13965       if test -d /usr/nec ;then
13966         lt_prog_compiler_pic_F77='-Kconform_pic'
13967         lt_prog_compiler_static_F77='-Bstatic'
13968       fi
13969       ;;
13970
13971     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13972       lt_prog_compiler_wl_F77='-Wl,'
13973       lt_prog_compiler_pic_F77='-KPIC'
13974       lt_prog_compiler_static_F77='-Bstatic'
13975       ;;
13976
13977     unicos*)
13978       lt_prog_compiler_wl_F77='-Wl,'
13979       lt_prog_compiler_can_build_shared_F77=no
13980       ;;
13981
13982     uts4*)
13983       lt_prog_compiler_pic_F77='-pic'
13984       lt_prog_compiler_static_F77='-Bstatic'
13985       ;;
13986
13987     *)
13988       lt_prog_compiler_can_build_shared_F77=no
13989       ;;
13990     esac
13991   fi
13992
13993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13994 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13995
13996 #
13997 # Check to make sure the PIC flag actually works.
13998 #
13999 if test -n "$lt_prog_compiler_pic_F77"; then
14000
14001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14003 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   lt_prog_compiler_pic_works_F77=no
14007   ac_outfile=conftest.$ac_objext
14008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14009    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14010    # Insert the option either (1) after the last *FLAGS variable, or
14011    # (2) before a word containing "conftest.", or (3) at the end.
14012    # Note that $ac_compile itself does not contain backslashes and begins
14013    # with a dollar sign (not a hyphen), so the echo should work correctly.
14014    # The option is referenced via a variable to avoid confusing sed.
14015    lt_compile=`echo "$ac_compile" | $SED \
14016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14018    -e 's:$: $lt_compiler_flag:'`
14019    (eval echo "\"\$as_me:14019: $lt_compile\"" >&5)
14020    (eval "$lt_compile" 2>conftest.err)
14021    ac_status=$?
14022    cat conftest.err >&5
14023    echo "$as_me:14023: \$? = $ac_status" >&5
14024    if (exit $ac_status) && test -s "$ac_outfile"; then
14025      # The compiler can only warn and ignore the option if not recognized
14026      # So say no if there are warnings other than the usual output.
14027      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14030        lt_prog_compiler_pic_works_F77=yes
14031      fi
14032    fi
14033    $rm conftest*
14034
14035 fi
14036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14037 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14038
14039 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14040     case $lt_prog_compiler_pic_F77 in
14041      "" | " "*) ;;
14042      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14043      esac
14044 else
14045     lt_prog_compiler_pic_F77=
14046      lt_prog_compiler_can_build_shared_F77=no
14047 fi
14048
14049 fi
14050 case $host_os in
14051   # For platforms which do not support PIC, -DPIC is meaningless:
14052   *djgpp*)
14053     lt_prog_compiler_pic_F77=
14054     ;;
14055   *)
14056     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14057     ;;
14058 esac
14059
14060 #
14061 # Check to make sure the static flag actually works.
14062 #
14063 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14066 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   lt_prog_compiler_static_works_F77=no
14070    save_LDFLAGS="$LDFLAGS"
14071    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14072    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14073    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14074      # The linker can only warn and ignore the option if not recognized
14075      # So say no if there are warnings
14076      if test -s conftest.err; then
14077        # Append any errors to the config.log.
14078        cat conftest.err 1>&5
14079        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14080        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14081        if diff conftest.exp conftest.er2 >/dev/null; then
14082          lt_prog_compiler_static_works_F77=yes
14083        fi
14084      else
14085        lt_prog_compiler_static_works_F77=yes
14086      fi
14087    fi
14088    $rm conftest*
14089    LDFLAGS="$save_LDFLAGS"
14090
14091 fi
14092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14093 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14094
14095 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14096     :
14097 else
14098     lt_prog_compiler_static_F77=
14099 fi
14100
14101
14102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14104 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14105   echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107   lt_cv_prog_compiler_c_o_F77=no
14108    $rm -r conftest 2>/dev/null
14109    mkdir conftest
14110    cd conftest
14111    mkdir out
14112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14113
14114    lt_compiler_flag="-o out/conftest2.$ac_objext"
14115    # Insert the option either (1) after the last *FLAGS variable, or
14116    # (2) before a word containing "conftest.", or (3) at the end.
14117    # Note that $ac_compile itself does not contain backslashes and begins
14118    # with a dollar sign (not a hyphen), so the echo should work correctly.
14119    lt_compile=`echo "$ac_compile" | $SED \
14120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122    -e 's:$: $lt_compiler_flag:'`
14123    (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124    (eval "$lt_compile" 2>out/conftest.err)
14125    ac_status=$?
14126    cat out/conftest.err >&5
14127    echo "$as_me:14127: \$? = $ac_status" >&5
14128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14129    then
14130      # The compiler can only warn and ignore the option if not recognized
14131      # So say no if there are warnings
14132      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14135        lt_cv_prog_compiler_c_o_F77=yes
14136      fi
14137    fi
14138    chmod u+w . 2>&5
14139    $rm conftest*
14140    # SGI C++ compiler will create directory out/ii_files/ for
14141    # template instantiation
14142    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14143    $rm out/* && rmdir out
14144    cd ..
14145    rmdir conftest
14146    $rm conftest*
14147
14148 fi
14149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14151
14152
14153 hard_links="nottested"
14154 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14155   # do not overwrite the value of need_locks provided by the user
14156   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14158   hard_links=yes
14159   $rm conftest*
14160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14161   touch conftest.a
14162   ln conftest.a conftest.b 2>&5 || hard_links=no
14163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14164   { echo "$as_me:$LINENO: result: $hard_links" >&5
14165 echo "${ECHO_T}$hard_links" >&6; }
14166   if test "$hard_links" = no; then
14167     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14169     need_locks=warn
14170   fi
14171 else
14172   need_locks=no
14173 fi
14174
14175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14177
14178   runpath_var=
14179   allow_undefined_flag_F77=
14180   enable_shared_with_static_runtimes_F77=no
14181   archive_cmds_F77=
14182   archive_expsym_cmds_F77=
14183   old_archive_From_new_cmds_F77=
14184   old_archive_from_expsyms_cmds_F77=
14185   export_dynamic_flag_spec_F77=
14186   whole_archive_flag_spec_F77=
14187   thread_safe_flag_spec_F77=
14188   hardcode_libdir_flag_spec_F77=
14189   hardcode_libdir_flag_spec_ld_F77=
14190   hardcode_libdir_separator_F77=
14191   hardcode_direct_F77=no
14192   hardcode_minus_L_F77=no
14193   hardcode_shlibpath_var_F77=unsupported
14194   link_all_deplibs_F77=unknown
14195   hardcode_automatic_F77=no
14196   module_cmds_F77=
14197   module_expsym_cmds_F77=
14198   always_export_symbols_F77=no
14199   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14200   # include_expsyms should be a list of space-separated symbols to be *always*
14201   # included in the symbol list
14202   include_expsyms_F77=
14203   # exclude_expsyms can be an extended regexp of symbols to exclude
14204   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14205   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14206   # as well as any symbol that contains `d'.
14207   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14208   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14209   # platforms (ab)use it in PIC code, but their linkers get confused if
14210   # the symbol is explicitly referenced.  Since portable code cannot
14211   # rely on this symbol name, it's probably fine to never include it in
14212   # preloaded symbol tables.
14213   extract_expsyms_cmds=
14214   # Just being paranoid about ensuring that cc_basename is set.
14215   for cc_temp in $compiler""; do
14216   case $cc_temp in
14217     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14218     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14219     \-*) ;;
14220     *) break;;
14221   esac
14222 done
14223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14224
14225   case $host_os in
14226   cygwin* | mingw* | pw32*)
14227     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14228     # When not using gcc, we currently assume that we are using
14229     # Microsoft Visual C++.
14230     if test "$GCC" != yes; then
14231       with_gnu_ld=no
14232     fi
14233     ;;
14234   interix*)
14235     # we just hope/assume this is gcc and not c89 (= MSVC++)
14236     with_gnu_ld=yes
14237     ;;
14238   openbsd*)
14239     with_gnu_ld=no
14240     ;;
14241   esac
14242
14243   ld_shlibs_F77=yes
14244   if test "$with_gnu_ld" = yes; then
14245     # If archive_cmds runs LD, not CC, wlarc should be empty
14246     wlarc='${wl}'
14247
14248     # Set some defaults for GNU ld with shared library support. These
14249     # are reset later if shared libraries are not supported. Putting them
14250     # here allows them to be overridden if necessary.
14251     runpath_var=LD_RUN_PATH
14252     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14253     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14254     # ancient GNU ld didn't support --whole-archive et. al.
14255     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14256         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14257       else
14258         whole_archive_flag_spec_F77=
14259     fi
14260     supports_anon_versioning=no
14261     case `$LD -v 2>/dev/null` in
14262       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14263       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14264       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14265       *\ 2.11.*) ;; # other 2.11 versions
14266       *) supports_anon_versioning=yes ;;
14267     esac
14268
14269     # See if GNU ld supports shared libraries.
14270     case $host_os in
14271     aix3* | aix4* | aix5*)
14272       # On AIX/PPC, the GNU linker is very broken
14273       if test "$host_cpu" != ia64; then
14274         ld_shlibs_F77=no
14275         cat <<EOF 1>&2
14276
14277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14278 *** to be unable to reliably create shared libraries on AIX.
14279 *** Therefore, libtool is disabling shared libraries support.  If you
14280 *** really care for shared libraries, you may want to modify your PATH
14281 *** so that a non-GNU linker is found, and then restart.
14282
14283 EOF
14284       fi
14285       ;;
14286
14287     amigaos*)
14288       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)'
14289       hardcode_libdir_flag_spec_F77='-L$libdir'
14290       hardcode_minus_L_F77=yes
14291
14292       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14293       # that the semantics of dynamic libraries on AmigaOS, at least up
14294       # to version 4, is to share data among multiple programs linked
14295       # with the same dynamic library.  Since this doesn't match the
14296       # behavior of shared libraries on other platforms, we can't use
14297       # them.
14298       ld_shlibs_F77=no
14299       ;;
14300
14301     beos*)
14302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303         allow_undefined_flag_F77=unsupported
14304         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14305         # support --undefined.  This deserves some investigation.  FIXME
14306         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14307       else
14308         ld_shlibs_F77=no
14309       fi
14310       ;;
14311
14312     cygwin* | mingw* | pw32*)
14313       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14314       # as there is no search path for DLLs.
14315       hardcode_libdir_flag_spec_F77='-L$libdir'
14316       allow_undefined_flag_F77=unsupported
14317       always_export_symbols_F77=no
14318       enable_shared_with_static_runtimes_F77=yes
14319       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14320
14321       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14322         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14323         # If the export-symbols file already is a .def file (1st line
14324         # is EXPORTS), use it as is; otherwise, prepend...
14325         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14326           cp $export_symbols $output_objdir/$soname.def;
14327         else
14328           echo EXPORTS > $output_objdir/$soname.def;
14329           cat $export_symbols >> $output_objdir/$soname.def;
14330         fi~
14331         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14332       else
14333         ld_shlibs_F77=no
14334       fi
14335       ;;
14336
14337     interix[3-9]*)
14338       hardcode_direct_F77=no
14339       hardcode_shlibpath_var_F77=no
14340       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14341       export_dynamic_flag_spec_F77='${wl}-E'
14342       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14343       # Instead, shared libraries are loaded at an image base (0x10000000 by
14344       # default) and relocated if they conflict, which is a slow very memory
14345       # consuming and fragmenting process.  To avoid this, we pick a random,
14346       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14347       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14348       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'
14349       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'
14350       ;;
14351
14352     gnu* | linux* | k*bsd*-gnu)
14353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14354         tmp_addflag=
14355         case $cc_basename,$host_cpu in
14356         pgcc*)                          # Portland Group C compiler
14357           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'
14358           tmp_addflag=' $pic_flag'
14359           ;;
14360         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14361           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'
14362           tmp_addflag=' $pic_flag -Mnomain' ;;
14363         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14364           tmp_addflag=' -i_dynamic' ;;
14365         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14366           tmp_addflag=' -i_dynamic -nofor_main' ;;
14367         ifc* | ifort*)                  # Intel Fortran compiler
14368           tmp_addflag=' -nofor_main' ;;
14369         esac
14370         case `$CC -V 2>&1 | sed 5q` in
14371         *Sun\ C*)                       # Sun C 5.9
14372           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'
14373           tmp_sharedflag='-G' ;;
14374         *Sun\ F*)                       # Sun Fortran 8.3
14375           tmp_sharedflag='-G' ;;
14376         *)
14377           tmp_sharedflag='-shared' ;;
14378         esac
14379         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14380
14381         if test $supports_anon_versioning = yes; then
14382           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14383   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14384   $echo "local: *; };" >> $output_objdir/$libname.ver~
14385           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14386         fi
14387       else
14388         ld_shlibs_F77=no
14389       fi
14390       ;;
14391
14392     netbsd*)
14393       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14394         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14395         wlarc=
14396       else
14397         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14399       fi
14400       ;;
14401
14402     solaris*)
14403       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14404         ld_shlibs_F77=no
14405         cat <<EOF 1>&2
14406
14407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14408 *** create shared libraries on Solaris systems.  Therefore, libtool
14409 *** is disabling shared libraries support.  We urge you to upgrade GNU
14410 *** binutils to release 2.9.1 or newer.  Another option is to modify
14411 *** your PATH or compiler configuration so that the native linker is
14412 *** used, and then restart.
14413
14414 EOF
14415       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14417         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14418       else
14419         ld_shlibs_F77=no
14420       fi
14421       ;;
14422
14423     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14424       case `$LD -v 2>&1` in
14425         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14426         ld_shlibs_F77=no
14427         cat <<_LT_EOF 1>&2
14428
14429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14430 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14431 *** is disabling shared libraries support.  We urge you to upgrade GNU
14432 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14433 *** your PATH or compiler configuration so that the native linker is
14434 *** used, and then restart.
14435
14436 _LT_EOF
14437         ;;
14438         *)
14439           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14440             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14441             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14442             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14443           else
14444             ld_shlibs_F77=no
14445           fi
14446         ;;
14447       esac
14448       ;;
14449
14450     sunos4*)
14451       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14452       wlarc=
14453       hardcode_direct_F77=yes
14454       hardcode_shlibpath_var_F77=no
14455       ;;
14456
14457     *)
14458       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14461       else
14462         ld_shlibs_F77=no
14463       fi
14464       ;;
14465     esac
14466
14467     if test "$ld_shlibs_F77" = no; then
14468       runpath_var=
14469       hardcode_libdir_flag_spec_F77=
14470       export_dynamic_flag_spec_F77=
14471       whole_archive_flag_spec_F77=
14472     fi
14473   else
14474     # PORTME fill in a description of your system's linker (not GNU ld)
14475     case $host_os in
14476     aix3*)
14477       allow_undefined_flag_F77=unsupported
14478       always_export_symbols_F77=yes
14479       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'
14480       # Note: this linker hardcodes the directories in LIBPATH if there
14481       # are no directories specified by -L.
14482       hardcode_minus_L_F77=yes
14483       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14484         # Neither direct hardcoding nor static linking is supported with a
14485         # broken collect2.
14486         hardcode_direct_F77=unsupported
14487       fi
14488       ;;
14489
14490     aix4* | aix5*)
14491       if test "$host_cpu" = ia64; then
14492         # On IA64, the linker does run time linking by default, so we don't
14493         # have to do anything special.
14494         aix_use_runtimelinking=no
14495         exp_sym_flag='-Bexport'
14496         no_entry_flag=""
14497       else
14498         # If we're using GNU nm, then we don't want the "-C" option.
14499         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14500         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14501           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'
14502         else
14503           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'
14504         fi
14505         aix_use_runtimelinking=no
14506
14507         # Test if we are trying to use run time linking or normal
14508         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14509         # need to do runtime linking.
14510         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14511           for ld_flag in $LDFLAGS; do
14512           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14513             aix_use_runtimelinking=yes
14514             break
14515           fi
14516           done
14517           ;;
14518         esac
14519
14520         exp_sym_flag='-bexport'
14521         no_entry_flag='-bnoentry'
14522       fi
14523
14524       # When large executables or shared objects are built, AIX ld can
14525       # have problems creating the table of contents.  If linking a library
14526       # or program results in "error TOC overflow" add -mminimal-toc to
14527       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14528       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14529
14530       archive_cmds_F77=''
14531       hardcode_direct_F77=yes
14532       hardcode_libdir_separator_F77=':'
14533       link_all_deplibs_F77=yes
14534
14535       if test "$GCC" = yes; then
14536         case $host_os in aix4.[012]|aix4.[012].*)
14537         # We only want to do this on AIX 4.2 and lower, the check
14538         # below for broken collect2 doesn't work under 4.3+
14539           collect2name=`${CC} -print-prog-name=collect2`
14540           if test -f "$collect2name" && \
14541            strings "$collect2name" | grep resolve_lib_name >/dev/null
14542           then
14543           # We have reworked collect2
14544           :
14545           else
14546           # We have old collect2
14547           hardcode_direct_F77=unsupported
14548           # It fails to find uninstalled libraries when the uninstalled
14549           # path is not listed in the libpath.  Setting hardcode_minus_L
14550           # to unsupported forces relinking
14551           hardcode_minus_L_F77=yes
14552           hardcode_libdir_flag_spec_F77='-L$libdir'
14553           hardcode_libdir_separator_F77=
14554           fi
14555           ;;
14556         esac
14557         shared_flag='-shared'
14558         if test "$aix_use_runtimelinking" = yes; then
14559           shared_flag="$shared_flag "'${wl}-G'
14560         fi
14561       else
14562         # not using gcc
14563         if test "$host_cpu" = ia64; then
14564         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14565         # chokes on -Wl,-G. The following line is correct:
14566           shared_flag='-G'
14567         else
14568           if test "$aix_use_runtimelinking" = yes; then
14569             shared_flag='${wl}-G'
14570           else
14571             shared_flag='${wl}-bM:SRE'
14572           fi
14573         fi
14574       fi
14575
14576       # It seems that -bexpall does not export symbols beginning with
14577       # underscore (_), so it is better to generate a list of symbols to export.
14578       always_export_symbols_F77=yes
14579       if test "$aix_use_runtimelinking" = yes; then
14580         # Warning - without using the other runtime loading flags (-brtl),
14581         # -berok will link without error, but may produce a broken library.
14582         allow_undefined_flag_F77='-berok'
14583        # Determine the default libpath from the value encoded in an empty executable.
14584        cat >conftest.$ac_ext <<_ACEOF
14585       program main
14586
14587       end
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_link") 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } && {
14603          test -z "$ac_f77_werror_flag" ||
14604          test ! -s conftest.err
14605        } && test -s conftest$ac_exeext &&
14606        $as_test_x conftest$ac_exeext; then
14607
14608 lt_aix_libpath_sed='
14609     /Import File Strings/,/^$/ {
14610         /^0/ {
14611             s/^0  *\(.*\)$/\1/
14612             p
14613         }
14614     }'
14615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14616 # Check for a 64-bit object if we didn't find anything.
14617 if test -z "$aix_libpath"; then
14618   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14619 fi
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624
14625 fi
14626
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628       conftest$ac_exeext conftest.$ac_ext
14629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14630
14631        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14632         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"
14633        else
14634         if test "$host_cpu" = ia64; then
14635           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14636           allow_undefined_flag_F77="-z nodefs"
14637           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"
14638         else
14639          # Determine the default libpath from the value encoded in an empty executable.
14640          cat >conftest.$ac_ext <<_ACEOF
14641       program main
14642
14643       end
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_link") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } && {
14659          test -z "$ac_f77_werror_flag" ||
14660          test ! -s conftest.err
14661        } && test -s conftest$ac_exeext &&
14662        $as_test_x conftest$ac_exeext; then
14663
14664 lt_aix_libpath_sed='
14665     /Import File Strings/,/^$/ {
14666         /^0/ {
14667             s/^0  *\(.*\)$/\1/
14668             p
14669         }
14670     }'
14671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 # Check for a 64-bit object if we didn't find anything.
14673 if test -z "$aix_libpath"; then
14674   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14675 fi
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680
14681 fi
14682
14683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14684       conftest$ac_exeext conftest.$ac_ext
14685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14686
14687          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14688           # Warning - without using the other run time loading flags,
14689           # -berok will link without error, but may produce a broken library.
14690           no_undefined_flag_F77=' ${wl}-bernotok'
14691           allow_undefined_flag_F77=' ${wl}-berok'
14692           # Exported symbols can be pulled into shared objects from archives
14693           whole_archive_flag_spec_F77='$convenience'
14694           archive_cmds_need_lc_F77=yes
14695           # This is similar to how AIX traditionally builds its shared libraries.
14696           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'
14697         fi
14698       fi
14699       ;;
14700
14701     amigaos*)
14702       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)'
14703       hardcode_libdir_flag_spec_F77='-L$libdir'
14704       hardcode_minus_L_F77=yes
14705       # see comment about different semantics on the GNU ld section
14706       ld_shlibs_F77=no
14707       ;;
14708
14709     bsdi[45]*)
14710       export_dynamic_flag_spec_F77=-rdynamic
14711       ;;
14712
14713     cygwin* | mingw* | pw32*)
14714       # When not using gcc, we currently assume that we are using
14715       # Microsoft Visual C++.
14716       # hardcode_libdir_flag_spec is actually meaningless, as there is
14717       # no search path for DLLs.
14718       hardcode_libdir_flag_spec_F77=' '
14719       allow_undefined_flag_F77=unsupported
14720       # Tell ltmain to make .lib files, not .a files.
14721       libext=lib
14722       # Tell ltmain to make .dll files, not .so files.
14723       shrext_cmds=".dll"
14724       # FIXME: Setting linknames here is a bad hack.
14725       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14726       # The linker will automatically build a .lib file if we build a DLL.
14727       old_archive_From_new_cmds_F77='true'
14728       # FIXME: Should let the user specify the lib program.
14729       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14730       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14731       enable_shared_with_static_runtimes_F77=yes
14732       ;;
14733
14734     darwin* | rhapsody*)
14735       case $host_os in
14736         rhapsody* | darwin1.[012])
14737          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14738          ;;
14739        *) # Darwin 1.3 on
14740          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14741            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14742          else
14743            case ${MACOSX_DEPLOYMENT_TARGET} in
14744              10.[012])
14745                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14746                ;;
14747              10.*)
14748                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14749                ;;
14750            esac
14751          fi
14752          ;;
14753       esac
14754       archive_cmds_need_lc_F77=no
14755       hardcode_direct_F77=no
14756       hardcode_automatic_F77=yes
14757       hardcode_shlibpath_var_F77=unsupported
14758       whole_archive_flag_spec_F77=''
14759       link_all_deplibs_F77=yes
14760     if test "$GCC" = yes ; then
14761         output_verbose_link_cmd='echo'
14762         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14763       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14764       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14765       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}'
14766       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}'
14767     else
14768       case $cc_basename in
14769         xlc*)
14770          output_verbose_link_cmd='echo'
14771          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14772          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14773           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14774          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}'
14775           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}'
14776           ;;
14777        *)
14778          ld_shlibs_F77=no
14779           ;;
14780       esac
14781     fi
14782       ;;
14783
14784     dgux*)
14785       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786       hardcode_libdir_flag_spec_F77='-L$libdir'
14787       hardcode_shlibpath_var_F77=no
14788       ;;
14789
14790     freebsd1*)
14791       ld_shlibs_F77=no
14792       ;;
14793
14794     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14795     # support.  Future versions do this automatically, but an explicit c++rt0.o
14796     # does not break anything, and helps significantly (at the cost of a little
14797     # extra space).
14798     freebsd2.2*)
14799       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14800       hardcode_libdir_flag_spec_F77='-R$libdir'
14801       hardcode_direct_F77=yes
14802       hardcode_shlibpath_var_F77=no
14803       ;;
14804
14805     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14806     freebsd2*)
14807       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14808       hardcode_direct_F77=yes
14809       hardcode_minus_L_F77=yes
14810       hardcode_shlibpath_var_F77=no
14811       ;;
14812
14813     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14814     freebsd* | dragonfly*)
14815       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14816       hardcode_libdir_flag_spec_F77='-R$libdir'
14817       hardcode_direct_F77=yes
14818       hardcode_shlibpath_var_F77=no
14819       ;;
14820
14821     hpux9*)
14822       if test "$GCC" = yes; then
14823         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'
14824       else
14825         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'
14826       fi
14827       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14828       hardcode_libdir_separator_F77=:
14829       hardcode_direct_F77=yes
14830
14831       # hardcode_minus_L: Not really in the search PATH,
14832       # but as the default location of the library.
14833       hardcode_minus_L_F77=yes
14834       export_dynamic_flag_spec_F77='${wl}-E'
14835       ;;
14836
14837     hpux10*)
14838       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14839         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14840       else
14841         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14842       fi
14843       if test "$with_gnu_ld" = no; then
14844         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14845         hardcode_libdir_separator_F77=:
14846
14847         hardcode_direct_F77=yes
14848         export_dynamic_flag_spec_F77='${wl}-E'
14849
14850         # hardcode_minus_L: Not really in the search PATH,
14851         # but as the default location of the library.
14852         hardcode_minus_L_F77=yes
14853       fi
14854       ;;
14855
14856     hpux11*)
14857       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14858         case $host_cpu in
14859         hppa*64*)
14860           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14861           ;;
14862         ia64*)
14863           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14864           ;;
14865         *)
14866           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14867           ;;
14868         esac
14869       else
14870         case $host_cpu in
14871         hppa*64*)
14872           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14873           ;;
14874         ia64*)
14875           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14876           ;;
14877         *)
14878           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14879           ;;
14880         esac
14881       fi
14882       if test "$with_gnu_ld" = no; then
14883         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14884         hardcode_libdir_separator_F77=:
14885
14886         case $host_cpu in
14887         hppa*64*|ia64*)
14888           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14889           hardcode_direct_F77=no
14890           hardcode_shlibpath_var_F77=no
14891           ;;
14892         *)
14893           hardcode_direct_F77=yes
14894           export_dynamic_flag_spec_F77='${wl}-E'
14895
14896           # hardcode_minus_L: Not really in the search PATH,
14897           # but as the default location of the library.
14898           hardcode_minus_L_F77=yes
14899           ;;
14900         esac
14901       fi
14902       ;;
14903
14904     irix5* | irix6* | nonstopux*)
14905       if test "$GCC" = yes; then
14906         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'
14907       else
14908         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'
14909         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14910       fi
14911       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14912       hardcode_libdir_separator_F77=:
14913       link_all_deplibs_F77=yes
14914       ;;
14915
14916     netbsd*)
14917       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14918         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14919       else
14920         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14921       fi
14922       hardcode_libdir_flag_spec_F77='-R$libdir'
14923       hardcode_direct_F77=yes
14924       hardcode_shlibpath_var_F77=no
14925       ;;
14926
14927     newsos6)
14928       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929       hardcode_direct_F77=yes
14930       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931       hardcode_libdir_separator_F77=:
14932       hardcode_shlibpath_var_F77=no
14933       ;;
14934
14935     openbsd*)
14936       if test -f /usr/libexec/ld.so; then
14937         hardcode_direct_F77=yes
14938         hardcode_shlibpath_var_F77=no
14939         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14940           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14941           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14942           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14943           export_dynamic_flag_spec_F77='${wl}-E'
14944         else
14945           case $host_os in
14946            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14947              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948              hardcode_libdir_flag_spec_F77='-R$libdir'
14949              ;;
14950            *)
14951              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14952              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14953              ;;
14954           esac
14955         fi
14956       else
14957         ld_shlibs_F77=no
14958       fi
14959       ;;
14960
14961     os2*)
14962       hardcode_libdir_flag_spec_F77='-L$libdir'
14963       hardcode_minus_L_F77=yes
14964       allow_undefined_flag_F77=unsupported
14965       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'
14966       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14967       ;;
14968
14969     osf3*)
14970       if test "$GCC" = yes; then
14971         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14972         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'
14973       else
14974         allow_undefined_flag_F77=' -expect_unresolved \*'
14975         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'
14976       fi
14977       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14978       hardcode_libdir_separator_F77=:
14979       ;;
14980
14981     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14982       if test "$GCC" = yes; then
14983         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14984         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'
14985         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14986       else
14987         allow_undefined_flag_F77=' -expect_unresolved \*'
14988         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'
14989         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~
14990         $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'
14991
14992         # Both c and cxx compiler support -rpath directly
14993         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14994       fi
14995       hardcode_libdir_separator_F77=:
14996       ;;
14997
14998     solaris*)
14999       no_undefined_flag_F77=' -z text'
15000       if test "$GCC" = yes; then
15001         wlarc='${wl}'
15002         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15003         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15004           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15005       else
15006         wlarc=''
15007         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15009         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15010       fi
15011       hardcode_libdir_flag_spec_F77='-R$libdir'
15012       hardcode_shlibpath_var_F77=no
15013       case $host_os in
15014       solaris2.[0-5] | solaris2.[0-5].*) ;;
15015       *)
15016         # The compiler driver will combine and reorder linker options,
15017         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15018         # but is careful enough not to reorder.
15019         # Supported since Solaris 2.6 (maybe 2.5.1?)
15020         if test "$GCC" = yes; then
15021           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15022         else
15023           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15024         fi
15025         ;;
15026       esac
15027       link_all_deplibs_F77=yes
15028       ;;
15029
15030     sunos4*)
15031       if test "x$host_vendor" = xsequent; then
15032         # Use $CC to link under sequent, because it throws in some extra .o
15033         # files that make .init and .fini sections work.
15034         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15035       else
15036         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15037       fi
15038       hardcode_libdir_flag_spec_F77='-L$libdir'
15039       hardcode_direct_F77=yes
15040       hardcode_minus_L_F77=yes
15041       hardcode_shlibpath_var_F77=no
15042       ;;
15043
15044     sysv4)
15045       case $host_vendor in
15046         sni)
15047           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048           hardcode_direct_F77=yes # is this really true???
15049         ;;
15050         siemens)
15051           ## LD is ld it makes a PLAMLIB
15052           ## CC just makes a GrossModule.
15053           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15054           reload_cmds_F77='$CC -r -o $output$reload_objs'
15055           hardcode_direct_F77=no
15056         ;;
15057         motorola)
15058           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15060         ;;
15061       esac
15062       runpath_var='LD_RUN_PATH'
15063       hardcode_shlibpath_var_F77=no
15064       ;;
15065
15066     sysv4.3*)
15067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068       hardcode_shlibpath_var_F77=no
15069       export_dynamic_flag_spec_F77='-Bexport'
15070       ;;
15071
15072     sysv4*MP*)
15073       if test -d /usr/nec; then
15074         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075         hardcode_shlibpath_var_F77=no
15076         runpath_var=LD_RUN_PATH
15077         hardcode_runpath_var=yes
15078         ld_shlibs_F77=yes
15079       fi
15080       ;;
15081
15082     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15083       no_undefined_flag_F77='${wl}-z,text'
15084       archive_cmds_need_lc_F77=no
15085       hardcode_shlibpath_var_F77=no
15086       runpath_var='LD_RUN_PATH'
15087
15088       if test "$GCC" = yes; then
15089         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15091       else
15092         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15094       fi
15095       ;;
15096
15097     sysv5* | sco3.2v5* | sco5v6*)
15098       # Note: We can NOT use -z defs as we might desire, because we do not
15099       # link with -lc, and that would cause any symbols used from libc to
15100       # always be unresolved, which means just about no library would
15101       # ever link correctly.  If we're not using GNU ld we use -z text
15102       # though, which does catch some bad symbols but isn't as heavy-handed
15103       # as -z defs.
15104       no_undefined_flag_F77='${wl}-z,text'
15105       allow_undefined_flag_F77='${wl}-z,nodefs'
15106       archive_cmds_need_lc_F77=no
15107       hardcode_shlibpath_var_F77=no
15108       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15109       hardcode_libdir_separator_F77=':'
15110       link_all_deplibs_F77=yes
15111       export_dynamic_flag_spec_F77='${wl}-Bexport'
15112       runpath_var='LD_RUN_PATH'
15113
15114       if test "$GCC" = yes; then
15115         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15116         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15117       else
15118         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15119         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15120       fi
15121       ;;
15122
15123     uts4*)
15124       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125       hardcode_libdir_flag_spec_F77='-L$libdir'
15126       hardcode_shlibpath_var_F77=no
15127       ;;
15128
15129     *)
15130       ld_shlibs_F77=no
15131       ;;
15132     esac
15133   fi
15134
15135 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15136 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15137 test "$ld_shlibs_F77" = no && can_build_shared=no
15138
15139 #
15140 # Do we need to explicitly link libc?
15141 #
15142 case "x$archive_cmds_need_lc_F77" in
15143 x|xyes)
15144   # Assume -lc should be added
15145   archive_cmds_need_lc_F77=yes
15146
15147   if test "$enable_shared" = yes && test "$GCC" = yes; then
15148     case $archive_cmds_F77 in
15149     *'~'*)
15150       # FIXME: we may have to deal with multi-command sequences.
15151       ;;
15152     '$CC '*)
15153       # Test whether the compiler implicitly links with -lc since on some
15154       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15155       # to ld, don't add -lc before -lgcc.
15156       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15157 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15158       $rm conftest*
15159       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15160
15161       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162   (eval $ac_compile) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } 2>conftest.err; then
15166         soname=conftest
15167         lib=conftest
15168         libobjs=conftest.$ac_objext
15169         deplibs=
15170         wl=$lt_prog_compiler_wl_F77
15171         pic_flag=$lt_prog_compiler_pic_F77
15172         compiler_flags=-v
15173         linker_flags=-v
15174         verstring=
15175         output_objdir=.
15176         libname=conftest
15177         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15178         allow_undefined_flag_F77=
15179         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15180   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }
15184         then
15185           archive_cmds_need_lc_F77=no
15186         else
15187           archive_cmds_need_lc_F77=yes
15188         fi
15189         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15190       else
15191         cat conftest.err 1>&5
15192       fi
15193       $rm conftest*
15194       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15196       ;;
15197     esac
15198   fi
15199   ;;
15200 esac
15201
15202 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15204 library_names_spec=
15205 libname_spec='lib$name'
15206 soname_spec=
15207 shrext_cmds=".so"
15208 postinstall_cmds=
15209 postuninstall_cmds=
15210 finish_cmds=
15211 finish_eval=
15212 shlibpath_var=
15213 shlibpath_overrides_runpath=unknown
15214 version_type=none
15215 dynamic_linker="$host_os ld.so"
15216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15217
15218 need_lib_prefix=unknown
15219 hardcode_into_libs=no
15220
15221 # when you set need_version to no, make sure it does not cause -set_version
15222 # flags to be left without arguments
15223 need_version=unknown
15224
15225 case $host_os in
15226 aix3*)
15227   version_type=linux
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15229   shlibpath_var=LIBPATH
15230
15231   # AIX 3 has no versioning support, so we append a major version to the name.
15232   soname_spec='${libname}${release}${shared_ext}$major'
15233   ;;
15234
15235 aix4* | aix5*)
15236   version_type=linux
15237   need_lib_prefix=no
15238   need_version=no
15239   hardcode_into_libs=yes
15240   if test "$host_cpu" = ia64; then
15241     # AIX 5 supports IA64
15242     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15243     shlibpath_var=LD_LIBRARY_PATH
15244   else
15245     # With GCC up to 2.95.x, collect2 would create an import file
15246     # for dependence libraries.  The import file would start with
15247     # the line `#! .'.  This would cause the generated library to
15248     # depend on `.', always an invalid library.  This was fixed in
15249     # development snapshots of GCC prior to 3.0.
15250     case $host_os in
15251       aix4 | aix4.[01] | aix4.[01].*)
15252       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15253            echo ' yes '
15254            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15255         :
15256       else
15257         can_build_shared=no
15258       fi
15259       ;;
15260     esac
15261     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15262     # soname into executable. Probably we can add versioning support to
15263     # collect2, so additional links can be useful in future.
15264     if test "$aix_use_runtimelinking" = yes; then
15265       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15266       # instead of lib<name>.a to let people know that these are not
15267       # typical AIX shared libraries.
15268       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269     else
15270       # We preserve .a as extension for shared libraries through AIX4.2
15271       # and later when we are not doing run time linking.
15272       library_names_spec='${libname}${release}.a $libname.a'
15273       soname_spec='${libname}${release}${shared_ext}$major'
15274     fi
15275     shlibpath_var=LIBPATH
15276   fi
15277   ;;
15278
15279 amigaos*)
15280   library_names_spec='$libname.ixlibrary $libname.a'
15281   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15282   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'
15283   ;;
15284
15285 beos*)
15286   library_names_spec='${libname}${shared_ext}'
15287   dynamic_linker="$host_os ld.so"
15288   shlibpath_var=LIBRARY_PATH
15289   ;;
15290
15291 bsdi[45]*)
15292   version_type=linux
15293   need_version=no
15294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295   soname_spec='${libname}${release}${shared_ext}$major'
15296   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15299   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15300   # the default ld.so.conf also contains /usr/contrib/lib and
15301   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15302   # libtool to hard-code these into programs
15303   ;;
15304
15305 cygwin* | mingw* | pw32*)
15306   version_type=windows
15307   shrext_cmds=".dll"
15308   need_version=no
15309   need_lib_prefix=no
15310
15311   case $GCC,$host_os in
15312   yes,cygwin* | yes,mingw* | yes,pw32*)
15313     library_names_spec='$libname.dll.a'
15314     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15315     postinstall_cmds='base_file=`basename \${file}`~
15316       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15317       dldir=$destdir/`dirname \$dlpath`~
15318       test -d \$dldir || mkdir -p \$dldir~
15319       $install_prog $dir/$dlname \$dldir/$dlname~
15320       chmod a+x \$dldir/$dlname'
15321     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15322       dlpath=$dir/\$dldll~
15323        $rm \$dlpath'
15324     shlibpath_overrides_runpath=yes
15325
15326     case $host_os in
15327     cygwin*)
15328       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15329       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15331       ;;
15332     mingw*)
15333       # MinGW DLLs use traditional 'lib' prefix
15334       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15336       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15337         # It is most probably a Windows format PATH printed by
15338         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15339         # path with ; separators, and with drive letters. We can handle the
15340         # drive letters (cygwin fileutils understands them), so leave them,
15341         # especially as we might pass files found there to a mingw objdump,
15342         # which wouldn't understand a cygwinified path. Ahh.
15343         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15344       else
15345         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15346       fi
15347       ;;
15348     pw32*)
15349       # pw32 DLLs use 'pw' prefix rather than 'lib'
15350       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15351       ;;
15352     esac
15353     ;;
15354
15355   *)
15356     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15357     ;;
15358   esac
15359   dynamic_linker='Win32 ld.exe'
15360   # FIXME: first we should search . and the directory the executable is in
15361   shlibpath_var=PATH
15362   ;;
15363
15364 darwin* | rhapsody*)
15365   dynamic_linker="$host_os dyld"
15366   version_type=darwin
15367   need_lib_prefix=no
15368   need_version=no
15369   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15370   soname_spec='${libname}${release}${major}$shared_ext'
15371   shlibpath_overrides_runpath=yes
15372   shlibpath_var=DYLD_LIBRARY_PATH
15373   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15374
15375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15376   ;;
15377
15378 dgux*)
15379   version_type=linux
15380   need_lib_prefix=no
15381   need_version=no
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   shlibpath_var=LD_LIBRARY_PATH
15385   ;;
15386
15387 freebsd1*)
15388   dynamic_linker=no
15389   ;;
15390
15391 freebsd* | dragonfly*)
15392   # DragonFly does not have aout.  When/if they implement a new
15393   # versioning mechanism, adjust this.
15394   if test -x /usr/bin/objformat; then
15395     objformat=`/usr/bin/objformat`
15396   else
15397     case $host_os in
15398     freebsd[123]*) objformat=aout ;;
15399     *) objformat=elf ;;
15400     esac
15401   fi
15402   version_type=freebsd-$objformat
15403   case $version_type in
15404     freebsd-elf*)
15405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15406       need_version=no
15407       need_lib_prefix=no
15408       ;;
15409     freebsd-*)
15410       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15411       need_version=yes
15412       ;;
15413   esac
15414   shlibpath_var=LD_LIBRARY_PATH
15415   case $host_os in
15416   freebsd2*)
15417     shlibpath_overrides_runpath=yes
15418     ;;
15419   freebsd3.[01]* | freebsdelf3.[01]*)
15420     shlibpath_overrides_runpath=yes
15421     hardcode_into_libs=yes
15422     ;;
15423   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15424   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15425     shlibpath_overrides_runpath=no
15426     hardcode_into_libs=yes
15427     ;;
15428   *) # from 4.6 on, and DragonFly
15429     shlibpath_overrides_runpath=yes
15430     hardcode_into_libs=yes
15431     ;;
15432   esac
15433   ;;
15434
15435 gnu*)
15436   version_type=linux
15437   need_lib_prefix=no
15438   need_version=no
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15440   soname_spec='${libname}${release}${shared_ext}$major'
15441   shlibpath_var=LD_LIBRARY_PATH
15442   hardcode_into_libs=yes
15443   ;;
15444
15445 hpux9* | hpux10* | hpux11*)
15446   # Give a soname corresponding to the major version so that dld.sl refuses to
15447   # link against other versions.
15448   version_type=sunos
15449   need_lib_prefix=no
15450   need_version=no
15451   case $host_cpu in
15452   ia64*)
15453     shrext_cmds='.so'
15454     hardcode_into_libs=yes
15455     dynamic_linker="$host_os dld.so"
15456     shlibpath_var=LD_LIBRARY_PATH
15457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459     soname_spec='${libname}${release}${shared_ext}$major'
15460     if test "X$HPUX_IA64_MODE" = X32; then
15461       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15462     else
15463       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15464     fi
15465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15466     ;;
15467    hppa*64*)
15468      shrext_cmds='.sl'
15469      hardcode_into_libs=yes
15470      dynamic_linker="$host_os dld.sl"
15471      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15472      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15473      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474      soname_spec='${libname}${release}${shared_ext}$major'
15475      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15476      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15477      ;;
15478    *)
15479     shrext_cmds='.sl'
15480     dynamic_linker="$host_os dld.sl"
15481     shlibpath_var=SHLIB_PATH
15482     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484     soname_spec='${libname}${release}${shared_ext}$major'
15485     ;;
15486   esac
15487   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15488   postinstall_cmds='chmod 555 $lib'
15489   ;;
15490
15491 interix[3-9]*)
15492   version_type=linux
15493   need_lib_prefix=no
15494   need_version=no
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15496   soname_spec='${libname}${release}${shared_ext}$major'
15497   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15498   shlibpath_var=LD_LIBRARY_PATH
15499   shlibpath_overrides_runpath=no
15500   hardcode_into_libs=yes
15501   ;;
15502
15503 irix5* | irix6* | nonstopux*)
15504   case $host_os in
15505     nonstopux*) version_type=nonstopux ;;
15506     *)
15507         if test "$lt_cv_prog_gnu_ld" = yes; then
15508                 version_type=linux
15509         else
15510                 version_type=irix
15511         fi ;;
15512   esac
15513   need_lib_prefix=no
15514   need_version=no
15515   soname_spec='${libname}${release}${shared_ext}$major'
15516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15517   case $host_os in
15518   irix5* | nonstopux*)
15519     libsuff= shlibsuff=
15520     ;;
15521   *)
15522     case $LD in # libtool.m4 will add one of these switches to LD
15523     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15524       libsuff= shlibsuff= libmagic=32-bit;;
15525     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15526       libsuff=32 shlibsuff=N32 libmagic=N32;;
15527     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15528       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15529     *) libsuff= shlibsuff= libmagic=never-match;;
15530     esac
15531     ;;
15532   esac
15533   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15534   shlibpath_overrides_runpath=no
15535   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15536   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15537   hardcode_into_libs=yes
15538   ;;
15539
15540 # No shared lib support for Linux oldld, aout, or coff.
15541 linux*oldld* | linux*aout* | linux*coff*)
15542   dynamic_linker=no
15543   ;;
15544
15545 # This must be Linux ELF.
15546 linux* | k*bsd*-gnu)
15547   version_type=linux
15548   need_lib_prefix=no
15549   need_version=no
15550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551   soname_spec='${libname}${release}${shared_ext}$major'
15552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   shlibpath_overrides_runpath=no
15555   # This implies no fast_install, which is unacceptable.
15556   # Some rework will be needed to allow for fast_install
15557   # before this can be enabled.
15558   hardcode_into_libs=yes
15559
15560   # find out which ABI we are using
15561   libsuff=
15562   case "$host_cpu" in
15563   x86_64*|s390x*|powerpc64*)
15564     echo '#line 15564 "configure"' > conftest.$ac_ext
15565     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566   (eval $ac_compile) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; then
15570       case `/usr/bin/file conftest.$ac_objext` in
15571       *64-bit*)
15572         libsuff=64
15573         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15574         ;;
15575       esac
15576     fi
15577     rm -rf conftest*
15578     ;;
15579   esac
15580
15581   # Append ld.so.conf contents to the search path
15582   if test -f /etc/ld.so.conf; then
15583     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' ' '`
15584     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15585   fi
15586
15587   # We used to test for /lib/ld.so.1 and disable shared libraries on
15588   # powerpc, because MkLinux only supported shared libraries with the
15589   # GNU dynamic linker.  Since this was broken with cross compilers,
15590   # most powerpc-linux boxes support dynamic linking these days and
15591   # people can always --disable-shared, the test was removed, and we
15592   # assume the GNU/Linux dynamic linker is in use.
15593   dynamic_linker='GNU/Linux ld.so'
15594   ;;
15595
15596 netbsd*)
15597   version_type=sunos
15598   need_lib_prefix=no
15599   need_version=no
15600   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603     dynamic_linker='NetBSD (a.out) ld.so'
15604   else
15605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15606     soname_spec='${libname}${release}${shared_ext}$major'
15607     dynamic_linker='NetBSD ld.elf_so'
15608   fi
15609   shlibpath_var=LD_LIBRARY_PATH
15610   shlibpath_overrides_runpath=yes
15611   hardcode_into_libs=yes
15612   ;;
15613
15614 newsos6)
15615   version_type=linux
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   shlibpath_overrides_runpath=yes
15619   ;;
15620
15621 nto-qnx*)
15622   version_type=linux
15623   need_lib_prefix=no
15624   need_version=no
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   soname_spec='${libname}${release}${shared_ext}$major'
15627   shlibpath_var=LD_LIBRARY_PATH
15628   shlibpath_overrides_runpath=yes
15629   ;;
15630
15631 openbsd*)
15632   version_type=sunos
15633   sys_lib_dlsearch_path_spec="/usr/lib"
15634   need_lib_prefix=no
15635   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15636   case $host_os in
15637     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15638     *)                         need_version=no  ;;
15639   esac
15640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15642   shlibpath_var=LD_LIBRARY_PATH
15643   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15644     case $host_os in
15645       openbsd2.[89] | openbsd2.[89].*)
15646         shlibpath_overrides_runpath=no
15647         ;;
15648       *)
15649         shlibpath_overrides_runpath=yes
15650         ;;
15651       esac
15652   else
15653     shlibpath_overrides_runpath=yes
15654   fi
15655   ;;
15656
15657 os2*)
15658   libname_spec='$name'
15659   shrext_cmds=".dll"
15660   need_lib_prefix=no
15661   library_names_spec='$libname${shared_ext} $libname.a'
15662   dynamic_linker='OS/2 ld.exe'
15663   shlibpath_var=LIBPATH
15664   ;;
15665
15666 osf3* | osf4* | osf5*)
15667   version_type=osf
15668   need_lib_prefix=no
15669   need_version=no
15670   soname_spec='${libname}${release}${shared_ext}$major'
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672   shlibpath_var=LD_LIBRARY_PATH
15673   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15674   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15675   ;;
15676
15677 rdos*)
15678   dynamic_linker=no
15679   ;;
15680
15681 solaris*)
15682   version_type=linux
15683   need_lib_prefix=no
15684   need_version=no
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686   soname_spec='${libname}${release}${shared_ext}$major'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=yes
15689   hardcode_into_libs=yes
15690   # ldd complains unless libraries are executable
15691   postinstall_cmds='chmod +x $lib'
15692   ;;
15693
15694 sunos4*)
15695   version_type=sunos
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   if test "$with_gnu_ld" = yes; then
15701     need_lib_prefix=no
15702   fi
15703   need_version=yes
15704   ;;
15705
15706 sysv4 | sysv4.3*)
15707   version_type=linux
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709   soname_spec='${libname}${release}${shared_ext}$major'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   case $host_vendor in
15712     sni)
15713       shlibpath_overrides_runpath=no
15714       need_lib_prefix=no
15715       export_dynamic_flag_spec='${wl}-Blargedynsym'
15716       runpath_var=LD_RUN_PATH
15717       ;;
15718     siemens)
15719       need_lib_prefix=no
15720       ;;
15721     motorola)
15722       need_lib_prefix=no
15723       need_version=no
15724       shlibpath_overrides_runpath=no
15725       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15726       ;;
15727   esac
15728   ;;
15729
15730 sysv4*MP*)
15731   if test -d /usr/nec ;then
15732     version_type=linux
15733     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15734     soname_spec='$libname${shared_ext}.$major'
15735     shlibpath_var=LD_LIBRARY_PATH
15736   fi
15737   ;;
15738
15739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15740   version_type=freebsd-elf
15741   need_lib_prefix=no
15742   need_version=no
15743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744   soname_spec='${libname}${release}${shared_ext}$major'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   hardcode_into_libs=yes
15747   if test "$with_gnu_ld" = yes; then
15748     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15749     shlibpath_overrides_runpath=no
15750   else
15751     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15752     shlibpath_overrides_runpath=yes
15753     case $host_os in
15754       sco3.2v5*)
15755         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15756         ;;
15757     esac
15758   fi
15759   sys_lib_dlsearch_path_spec='/usr/lib'
15760   ;;
15761
15762 uts4*)
15763   version_type=linux
15764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765   soname_spec='${libname}${release}${shared_ext}$major'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   ;;
15768
15769 *)
15770   dynamic_linker=no
15771   ;;
15772 esac
15773 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15774 echo "${ECHO_T}$dynamic_linker" >&6; }
15775 test "$dynamic_linker" = no && can_build_shared=no
15776
15777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15778 if test "$GCC" = yes; then
15779   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15780 fi
15781
15782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15784 hardcode_action_F77=
15785 if test -n "$hardcode_libdir_flag_spec_F77" || \
15786    test -n "$runpath_var_F77" || \
15787    test "X$hardcode_automatic_F77" = "Xyes" ; then
15788
15789   # We can hardcode non-existant directories.
15790   if test "$hardcode_direct_F77" != no &&
15791      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15792      # have to relink, otherwise we might link with an installed library
15793      # when we should be linking with a yet-to-be-installed one
15794      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15795      test "$hardcode_minus_L_F77" != no; then
15796     # Linking always hardcodes the temporary library directory.
15797     hardcode_action_F77=relink
15798   else
15799     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15800     hardcode_action_F77=immediate
15801   fi
15802 else
15803   # We cannot hardcode anything, or else we can only hardcode existing
15804   # directories.
15805   hardcode_action_F77=unsupported
15806 fi
15807 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15808 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15809
15810 if test "$hardcode_action_F77" = relink; then
15811   # Fast installation is not supported
15812   enable_fast_install=no
15813 elif test "$shlibpath_overrides_runpath" = yes ||
15814      test "$enable_shared" = no; then
15815   # Fast installation is not necessary
15816   enable_fast_install=needless
15817 fi
15818
15819
15820 # The else clause should only fire when bootstrapping the
15821 # libtool distribution, otherwise you forgot to ship ltmain.sh
15822 # with your package, and you will get complaints that there are
15823 # no rules to generate ltmain.sh.
15824 if test -f "$ltmain"; then
15825   # See if we are running on zsh, and set the options which allow our commands through
15826   # without removal of \ escapes.
15827   if test -n "${ZSH_VERSION+set}" ; then
15828     setopt NO_GLOB_SUBST
15829   fi
15830   # Now quote all the things that may contain metacharacters while being
15831   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15832   # variables and quote the copies for generation of the libtool script.
15833   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15834     SED SHELL STRIP \
15835     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15836     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15837     deplibs_check_method reload_flag reload_cmds need_locks \
15838     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15839     lt_cv_sys_global_symbol_to_c_name_address \
15840     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15841     old_postinstall_cmds old_postuninstall_cmds \
15842     compiler_F77 \
15843     CC_F77 \
15844     LD_F77 \
15845     lt_prog_compiler_wl_F77 \
15846     lt_prog_compiler_pic_F77 \
15847     lt_prog_compiler_static_F77 \
15848     lt_prog_compiler_no_builtin_flag_F77 \
15849     export_dynamic_flag_spec_F77 \
15850     thread_safe_flag_spec_F77 \
15851     whole_archive_flag_spec_F77 \
15852     enable_shared_with_static_runtimes_F77 \
15853     old_archive_cmds_F77 \
15854     old_archive_from_new_cmds_F77 \
15855     predep_objects_F77 \
15856     postdep_objects_F77 \
15857     predeps_F77 \
15858     postdeps_F77 \
15859     compiler_lib_search_path_F77 \
15860     archive_cmds_F77 \
15861     archive_expsym_cmds_F77 \
15862     postinstall_cmds_F77 \
15863     postuninstall_cmds_F77 \
15864     old_archive_from_expsyms_cmds_F77 \
15865     allow_undefined_flag_F77 \
15866     no_undefined_flag_F77 \
15867     export_symbols_cmds_F77 \
15868     hardcode_libdir_flag_spec_F77 \
15869     hardcode_libdir_flag_spec_ld_F77 \
15870     hardcode_libdir_separator_F77 \
15871     hardcode_automatic_F77 \
15872     module_cmds_F77 \
15873     module_expsym_cmds_F77 \
15874     lt_cv_prog_compiler_c_o_F77 \
15875     fix_srcfile_path_F77 \
15876     exclude_expsyms_F77 \
15877     include_expsyms_F77; do
15878
15879     case $var in
15880     old_archive_cmds_F77 | \
15881     old_archive_from_new_cmds_F77 | \
15882     archive_cmds_F77 | \
15883     archive_expsym_cmds_F77 | \
15884     module_cmds_F77 | \
15885     module_expsym_cmds_F77 | \
15886     old_archive_from_expsyms_cmds_F77 | \
15887     export_symbols_cmds_F77 | \
15888     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15889     postinstall_cmds | postuninstall_cmds | \
15890     old_postinstall_cmds | old_postuninstall_cmds | \
15891     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15892       # Double-quote double-evaled strings.
15893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15894       ;;
15895     *)
15896       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15897       ;;
15898     esac
15899   done
15900
15901   case $lt_echo in
15902   *'\$0 --fallback-echo"')
15903     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15904     ;;
15905   esac
15906
15907 cfgfile="$ofile"
15908
15909   cat <<__EOF__ >> "$cfgfile"
15910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15911
15912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15913
15914 # Shell to use when invoking shell scripts.
15915 SHELL=$lt_SHELL
15916
15917 # Whether or not to build shared libraries.
15918 build_libtool_libs=$enable_shared
15919
15920 # Whether or not to build static libraries.
15921 build_old_libs=$enable_static
15922
15923 # Whether or not to add -lc for building shared libraries.
15924 build_libtool_need_lc=$archive_cmds_need_lc_F77
15925
15926 # Whether or not to disallow shared libs when runtime libs are static
15927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15928
15929 # Whether or not to optimize for fast installation.
15930 fast_install=$enable_fast_install
15931
15932 # The host system.
15933 host_alias=$host_alias
15934 host=$host
15935 host_os=$host_os
15936
15937 # The build system.
15938 build_alias=$build_alias
15939 build=$build
15940 build_os=$build_os
15941
15942 # An echo program that does not interpret backslashes.
15943 echo=$lt_echo
15944
15945 # The archiver.
15946 AR=$lt_AR
15947 AR_FLAGS=$lt_AR_FLAGS
15948
15949 # A C compiler.
15950 LTCC=$lt_LTCC
15951
15952 # LTCC compiler flags.
15953 LTCFLAGS=$lt_LTCFLAGS
15954
15955 # A language-specific compiler.
15956 CC=$lt_compiler_F77
15957
15958 # Is the compiler the GNU C compiler?
15959 with_gcc=$GCC_F77
15960
15961 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15962 gcc_ver=\`gcc -dumpversion\`
15963
15964 # An ERE matcher.
15965 EGREP=$lt_EGREP
15966
15967 # The linker used to build libraries.
15968 LD=$lt_LD_F77
15969
15970 # Whether we need hard or soft links.
15971 LN_S=$lt_LN_S
15972
15973 # A BSD-compatible nm program.
15974 NM=$lt_NM
15975
15976 # A symbol stripping program
15977 STRIP=$lt_STRIP
15978
15979 # Used to examine libraries when file_magic_cmd begins "file"
15980 MAGIC_CMD=$MAGIC_CMD
15981
15982 # Used on cygwin: DLL creation program.
15983 DLLTOOL="$DLLTOOL"
15984
15985 # Used on cygwin: object dumper.
15986 OBJDUMP="$OBJDUMP"
15987
15988 # Used on cygwin: assembler.
15989 AS="$AS"
15990
15991 # The name of the directory that contains temporary libtool files.
15992 objdir=$objdir
15993
15994 # How to create reloadable object files.
15995 reload_flag=$lt_reload_flag
15996 reload_cmds=$lt_reload_cmds
15997
15998 # How to pass a linker flag through the compiler.
15999 wl=$lt_lt_prog_compiler_wl_F77
16000
16001 # Object file suffix (normally "o").
16002 objext="$ac_objext"
16003
16004 # Old archive suffix (normally "a").
16005 libext="$libext"
16006
16007 # Shared library suffix (normally ".so").
16008 shrext_cmds='$shrext_cmds'
16009
16010 # Executable file suffix (normally "").
16011 exeext="$exeext"
16012
16013 # Additional compiler flags for building library objects.
16014 pic_flag=$lt_lt_prog_compiler_pic_F77
16015 pic_mode=$pic_mode
16016
16017 # What is the maximum length of a command?
16018 max_cmd_len=$lt_cv_sys_max_cmd_len
16019
16020 # Does compiler simultaneously support -c and -o options?
16021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16022
16023 # Must we lock files when doing compilation?
16024 need_locks=$lt_need_locks
16025
16026 # Do we need the lib prefix for modules?
16027 need_lib_prefix=$need_lib_prefix
16028
16029 # Do we need a version for libraries?
16030 need_version=$need_version
16031
16032 # Whether dlopen is supported.
16033 dlopen_support=$enable_dlopen
16034
16035 # Whether dlopen of programs is supported.
16036 dlopen_self=$enable_dlopen_self
16037
16038 # Whether dlopen of statically linked programs is supported.
16039 dlopen_self_static=$enable_dlopen_self_static
16040
16041 # Compiler flag to prevent dynamic linking.
16042 link_static_flag=$lt_lt_prog_compiler_static_F77
16043
16044 # Compiler flag to turn off builtin functions.
16045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16046
16047 # Compiler flag to allow reflexive dlopens.
16048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16049
16050 # Compiler flag to generate shared objects directly from archives.
16051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16052
16053 # Compiler flag to generate thread-safe objects.
16054 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16055
16056 # Library versioning type.
16057 version_type=$version_type
16058
16059 # Format of library name prefix.
16060 libname_spec=$lt_libname_spec
16061
16062 # List of archive names.  First name is the real one, the rest are links.
16063 # The last name is the one that the linker finds with -lNAME.
16064 library_names_spec=$lt_library_names_spec
16065
16066 # The coded name of the library, if different from the real name.
16067 soname_spec=$lt_soname_spec
16068
16069 # Commands used to build and install an old-style archive.
16070 RANLIB=$lt_RANLIB
16071 old_archive_cmds=$lt_old_archive_cmds_F77
16072 old_postinstall_cmds=$lt_old_postinstall_cmds
16073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16074
16075 # Create an old-style archive from a shared archive.
16076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16077
16078 # Create a temporary old-style archive to link instead of a shared archive.
16079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16080
16081 # Commands used to build and install a shared archive.
16082 archive_cmds=$lt_archive_cmds_F77
16083 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16084 postinstall_cmds=$lt_postinstall_cmds
16085 postuninstall_cmds=$lt_postuninstall_cmds
16086
16087 # Commands used to build a loadable module (assumed same as above if empty)
16088 module_cmds=$lt_module_cmds_F77
16089 module_expsym_cmds=$lt_module_expsym_cmds_F77
16090
16091 # Commands to strip libraries.
16092 old_striplib=$lt_old_striplib
16093 striplib=$lt_striplib
16094
16095 # Dependencies to place before the objects being linked to create a
16096 # shared library.
16097 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16098
16099 # Dependencies to place after the objects being linked to create a
16100 # shared library.
16101 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16102
16103 # Dependencies to place before the objects being linked to create a
16104 # shared library.
16105 predeps=$lt_predeps_F77
16106
16107 # Dependencies to place after the objects being linked to create a
16108 # shared library.
16109 postdeps=$lt_postdeps_F77
16110
16111 # The library search path used internally by the compiler when linking
16112 # a shared library.
16113 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16114
16115 # Method to check whether dependent libraries are shared objects.
16116 deplibs_check_method=$lt_deplibs_check_method
16117
16118 # Command to use when deplibs_check_method == file_magic.
16119 file_magic_cmd=$lt_file_magic_cmd
16120
16121 # Flag that allows shared libraries with undefined symbols to be built.
16122 allow_undefined_flag=$lt_allow_undefined_flag_F77
16123
16124 # Flag that forces no undefined symbols.
16125 no_undefined_flag=$lt_no_undefined_flag_F77
16126
16127 # Commands used to finish a libtool library installation in a directory.
16128 finish_cmds=$lt_finish_cmds
16129
16130 # Same as above, but a single script fragment to be evaled but not shown.
16131 finish_eval=$lt_finish_eval
16132
16133 # Take the output of nm and produce a listing of raw symbols and C names.
16134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16135
16136 # Transform the output of nm in a proper C declaration
16137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16138
16139 # Transform the output of nm in a C name address pair
16140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16141
16142 # This is the shared library runtime path variable.
16143 runpath_var=$runpath_var
16144
16145 # This is the shared library path variable.
16146 shlibpath_var=$shlibpath_var
16147
16148 # Is shlibpath searched before the hard-coded library search path?
16149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16150
16151 # How to hardcode a shared library path into an executable.
16152 hardcode_action=$hardcode_action_F77
16153
16154 # Whether we should hardcode library paths into libraries.
16155 hardcode_into_libs=$hardcode_into_libs
16156
16157 # Flag to hardcode \$libdir into a binary during linking.
16158 # This must work even if \$libdir does not exist.
16159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16160
16161 # If ld is used when linking, flag to hardcode \$libdir into
16162 # a binary during linking. This must work even if \$libdir does
16163 # not exist.
16164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16165
16166 # Whether we need a single -rpath flag with a separated argument.
16167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16168
16169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16170 # resulting binary.
16171 hardcode_direct=$hardcode_direct_F77
16172
16173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16174 # resulting binary.
16175 hardcode_minus_L=$hardcode_minus_L_F77
16176
16177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16178 # the resulting binary.
16179 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16180
16181 # Set to yes if building a shared library automatically hardcodes DIR into the library
16182 # and all subsequent libraries and executables linked against it.
16183 hardcode_automatic=$hardcode_automatic_F77
16184
16185 # Variables whose values should be saved in libtool wrapper scripts and
16186 # restored at relink time.
16187 variables_saved_for_relink="$variables_saved_for_relink"
16188
16189 # Whether libtool must link a program against all its dependency libraries.
16190 link_all_deplibs=$link_all_deplibs_F77
16191
16192 # Compile-time system search path for libraries
16193 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16194
16195 # Run-time system search path for libraries
16196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16197
16198 # Fix the shell variable \$srcfile for the compiler.
16199 fix_srcfile_path=$lt_fix_srcfile_path
16200
16201 # Set to yes if exported symbols are required.
16202 always_export_symbols=$always_export_symbols_F77
16203
16204 # The commands to list exported symbols.
16205 export_symbols_cmds=$lt_export_symbols_cmds_F77
16206
16207 # The commands to extract the exported symbol list from a shared archive.
16208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16209
16210 # Symbols that should not be listed in the preloaded symbols.
16211 exclude_expsyms=$lt_exclude_expsyms_F77
16212
16213 # Symbols that must always be exported.
16214 include_expsyms=$lt_include_expsyms_F77
16215
16216 # ### END LIBTOOL TAG CONFIG: $tagname
16217
16218 __EOF__
16219
16220
16221 else
16222   # If there is no Makefile yet, we rely on a make rule to execute
16223   # `config.status --recheck' to rerun these tests and create the
16224   # libtool script then.
16225   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16226   if test -f "$ltmain_in"; then
16227     test -f Makefile && make "$ltmain"
16228   fi
16229 fi
16230
16231
16232 ac_ext=c
16233 ac_cpp='$CPP $CPPFLAGS'
16234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16237
16238 CC="$lt_save_CC"
16239
16240         else
16241           tagname=""
16242         fi
16243         ;;
16244
16245       GCJ)
16246         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16247
16248
16249 # Source file extension for Java test sources.
16250 ac_ext=java
16251
16252 # Object file extension for compiled Java test sources.
16253 objext=o
16254 objext_GCJ=$objext
16255
16256 # Code to be used in simple compile tests
16257 lt_simple_compile_test_code="class foo {}"
16258
16259 # Code to be used in simple link tests
16260 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16261
16262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16263
16264 # If no C compiler was specified, use CC.
16265 LTCC=${LTCC-"$CC"}
16266
16267 # If no C compiler flags were specified, use CFLAGS.
16268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16269
16270 # Allow CC to be a program name with arguments.
16271 compiler=$CC
16272
16273
16274 # save warnings/boilerplate of simple test code
16275 ac_outfile=conftest.$ac_objext
16276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16278 _lt_compiler_boilerplate=`cat conftest.err`
16279 $rm conftest*
16280
16281 ac_outfile=conftest.$ac_objext
16282 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16284 _lt_linker_boilerplate=`cat conftest.err`
16285 $rm conftest*
16286
16287
16288 # Allow CC to be a program name with arguments.
16289 lt_save_CC="$CC"
16290 CC=${GCJ-"gcj"}
16291 compiler=$CC
16292 compiler_GCJ=$CC
16293 for cc_temp in $compiler""; do
16294   case $cc_temp in
16295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16297     \-*) ;;
16298     *) break;;
16299   esac
16300 done
16301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16302
16303 LD_GCJ="$LD"
16304
16305 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16306 archive_cmds_need_lc_GCJ=no
16307
16308 old_archive_cmds_GCJ=$old_archive_cmds
16309
16310
16311 lt_prog_compiler_no_builtin_flag_GCJ=
16312
16313 if test "$GCC" = yes; then
16314   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16315
16316
16317 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16318 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16319 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   lt_cv_prog_compiler_rtti_exceptions=no
16323   ac_outfile=conftest.$ac_objext
16324    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16325    lt_compiler_flag="-fno-rtti -fno-exceptions"
16326    # Insert the option either (1) after the last *FLAGS variable, or
16327    # (2) before a word containing "conftest.", or (3) at the end.
16328    # Note that $ac_compile itself does not contain backslashes and begins
16329    # with a dollar sign (not a hyphen), so the echo should work correctly.
16330    # The option is referenced via a variable to avoid confusing sed.
16331    lt_compile=`echo "$ac_compile" | $SED \
16332    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16333    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16334    -e 's:$: $lt_compiler_flag:'`
16335    (eval echo "\"\$as_me:16335: $lt_compile\"" >&5)
16336    (eval "$lt_compile" 2>conftest.err)
16337    ac_status=$?
16338    cat conftest.err >&5
16339    echo "$as_me:16339: \$? = $ac_status" >&5
16340    if (exit $ac_status) && test -s "$ac_outfile"; then
16341      # The compiler can only warn and ignore the option if not recognized
16342      # So say no if there are warnings other than the usual output.
16343      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16344      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16345      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16346        lt_cv_prog_compiler_rtti_exceptions=yes
16347      fi
16348    fi
16349    $rm conftest*
16350
16351 fi
16352 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16353 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16354
16355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16356     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16357 else
16358     :
16359 fi
16360
16361 fi
16362
16363 lt_prog_compiler_wl_GCJ=
16364 lt_prog_compiler_pic_GCJ=
16365 lt_prog_compiler_static_GCJ=
16366
16367 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16368 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16369
16370   if test "$GCC" = yes; then
16371     lt_prog_compiler_wl_GCJ='-Wl,'
16372     lt_prog_compiler_static_GCJ='-static'
16373
16374     case $host_os in
16375       aix*)
16376       # All AIX code is PIC.
16377       if test "$host_cpu" = ia64; then
16378         # AIX 5 now supports IA64 processor
16379         lt_prog_compiler_static_GCJ='-Bstatic'
16380       fi
16381       ;;
16382
16383     amigaos*)
16384       # FIXME: we need at least 68020 code to build shared libraries, but
16385       # adding the `-m68020' flag to GCC prevents building anything better,
16386       # like `-m68040'.
16387       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16388       ;;
16389
16390     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16391       # PIC is the default for these OSes.
16392       ;;
16393
16394     mingw* | cygwin* | pw32* | os2*)
16395       # This hack is so that the source file can tell whether it is being
16396       # built for inclusion in a dll (and should export symbols for example).
16397       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16398       # (--disable-auto-import) libraries
16399       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16400       ;;
16401
16402     darwin* | rhapsody*)
16403       # PIC is the default on this platform
16404       # Common symbols not allowed in MH_DYLIB files
16405       lt_prog_compiler_pic_GCJ='-fno-common'
16406       ;;
16407
16408     interix[3-9]*)
16409       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16410       # Instead, we relocate shared libraries at runtime.
16411       ;;
16412
16413     msdosdjgpp*)
16414       # Just because we use GCC doesn't mean we suddenly get shared libraries
16415       # on systems that don't support them.
16416       lt_prog_compiler_can_build_shared_GCJ=no
16417       enable_shared=no
16418       ;;
16419
16420     sysv4*MP*)
16421       if test -d /usr/nec; then
16422         lt_prog_compiler_pic_GCJ=-Kconform_pic
16423       fi
16424       ;;
16425
16426     hpux*)
16427       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16428       # not for PA HP-UX.
16429       case $host_cpu in
16430       hppa*64*|ia64*)
16431         # +Z the default
16432         ;;
16433       *)
16434         lt_prog_compiler_pic_GCJ='-fPIC'
16435         ;;
16436       esac
16437       ;;
16438
16439     *)
16440       lt_prog_compiler_pic_GCJ='-fPIC'
16441       ;;
16442     esac
16443   else
16444     # PORTME Check for flag to pass linker flags through the system compiler.
16445     case $host_os in
16446     aix*)
16447       lt_prog_compiler_wl_GCJ='-Wl,'
16448       if test "$host_cpu" = ia64; then
16449         # AIX 5 now supports IA64 processor
16450         lt_prog_compiler_static_GCJ='-Bstatic'
16451       else
16452         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16453       fi
16454       ;;
16455       darwin*)
16456         # PIC is the default on this platform
16457         # Common symbols not allowed in MH_DYLIB files
16458        case $cc_basename in
16459          xlc*)
16460          lt_prog_compiler_pic_GCJ='-qnocommon'
16461          lt_prog_compiler_wl_GCJ='-Wl,'
16462          ;;
16463        esac
16464        ;;
16465
16466     mingw* | cygwin* | pw32* | os2*)
16467       # This hack is so that the source file can tell whether it is being
16468       # built for inclusion in a dll (and should export symbols for example).
16469       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16470       ;;
16471
16472     hpux9* | hpux10* | hpux11*)
16473       lt_prog_compiler_wl_GCJ='-Wl,'
16474       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16475       # not for PA HP-UX.
16476       case $host_cpu in
16477       hppa*64*|ia64*)
16478         # +Z the default
16479         ;;
16480       *)
16481         lt_prog_compiler_pic_GCJ='+Z'
16482         ;;
16483       esac
16484       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16485       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16486       ;;
16487
16488     irix5* | irix6* | nonstopux*)
16489       lt_prog_compiler_wl_GCJ='-Wl,'
16490       # PIC (with -KPIC) is the default.
16491       lt_prog_compiler_static_GCJ='-non_shared'
16492       ;;
16493
16494     newsos6)
16495       lt_prog_compiler_pic_GCJ='-KPIC'
16496       lt_prog_compiler_static_GCJ='-Bstatic'
16497       ;;
16498
16499     linux* | k*bsd*-gnu)
16500       case $cc_basename in
16501       icc* | ecc*)
16502         lt_prog_compiler_wl_GCJ='-Wl,'
16503         lt_prog_compiler_pic_GCJ='-KPIC'
16504         lt_prog_compiler_static_GCJ='-static'
16505         ;;
16506       pgcc* | pgf77* | pgf90* | pgf95*)
16507         # Portland Group compilers (*not* the Pentium gcc compiler,
16508         # which looks to be a dead project)
16509         lt_prog_compiler_wl_GCJ='-Wl,'
16510         lt_prog_compiler_pic_GCJ='-fpic'
16511         lt_prog_compiler_static_GCJ='-Bstatic'
16512         ;;
16513       ccc*)
16514         lt_prog_compiler_wl_GCJ='-Wl,'
16515         # All Alpha code is PIC.
16516         lt_prog_compiler_static_GCJ='-non_shared'
16517         ;;
16518       *)
16519         case `$CC -V 2>&1 | sed 5q` in
16520         *Sun\ C*)
16521           # Sun C 5.9
16522           lt_prog_compiler_pic_GCJ='-KPIC'
16523           lt_prog_compiler_static_GCJ='-Bstatic'
16524           lt_prog_compiler_wl_GCJ='-Wl,'
16525           ;;
16526         *Sun\ F*)
16527           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16528           lt_prog_compiler_pic_GCJ='-KPIC'
16529           lt_prog_compiler_static_GCJ='-Bstatic'
16530           lt_prog_compiler_wl_GCJ=''
16531           ;;
16532         esac
16533         ;;
16534       esac
16535       ;;
16536
16537     osf3* | osf4* | osf5*)
16538       lt_prog_compiler_wl_GCJ='-Wl,'
16539       # All OSF/1 code is PIC.
16540       lt_prog_compiler_static_GCJ='-non_shared'
16541       ;;
16542
16543     rdos*)
16544       lt_prog_compiler_static_GCJ='-non_shared'
16545       ;;
16546
16547     solaris*)
16548       lt_prog_compiler_pic_GCJ='-KPIC'
16549       lt_prog_compiler_static_GCJ='-Bstatic'
16550       case $cc_basename in
16551       f77* | f90* | f95*)
16552         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16553       *)
16554         lt_prog_compiler_wl_GCJ='-Wl,';;
16555       esac
16556       ;;
16557
16558     sunos4*)
16559       lt_prog_compiler_wl_GCJ='-Qoption ld '
16560       lt_prog_compiler_pic_GCJ='-PIC'
16561       lt_prog_compiler_static_GCJ='-Bstatic'
16562       ;;
16563
16564     sysv4 | sysv4.2uw2* | sysv4.3*)
16565       lt_prog_compiler_wl_GCJ='-Wl,'
16566       lt_prog_compiler_pic_GCJ='-KPIC'
16567       lt_prog_compiler_static_GCJ='-Bstatic'
16568       ;;
16569
16570     sysv4*MP*)
16571       if test -d /usr/nec ;then
16572         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16573         lt_prog_compiler_static_GCJ='-Bstatic'
16574       fi
16575       ;;
16576
16577     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16578       lt_prog_compiler_wl_GCJ='-Wl,'
16579       lt_prog_compiler_pic_GCJ='-KPIC'
16580       lt_prog_compiler_static_GCJ='-Bstatic'
16581       ;;
16582
16583     unicos*)
16584       lt_prog_compiler_wl_GCJ='-Wl,'
16585       lt_prog_compiler_can_build_shared_GCJ=no
16586       ;;
16587
16588     uts4*)
16589       lt_prog_compiler_pic_GCJ='-pic'
16590       lt_prog_compiler_static_GCJ='-Bstatic'
16591       ;;
16592
16593     *)
16594       lt_prog_compiler_can_build_shared_GCJ=no
16595       ;;
16596     esac
16597   fi
16598
16599 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16600 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16601
16602 #
16603 # Check to make sure the PIC flag actually works.
16604 #
16605 if test -n "$lt_prog_compiler_pic_GCJ"; then
16606
16607 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16608 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16609 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16610   echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612   lt_prog_compiler_pic_works_GCJ=no
16613   ac_outfile=conftest.$ac_objext
16614    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16615    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16616    # Insert the option either (1) after the last *FLAGS variable, or
16617    # (2) before a word containing "conftest.", or (3) at the end.
16618    # Note that $ac_compile itself does not contain backslashes and begins
16619    # with a dollar sign (not a hyphen), so the echo should work correctly.
16620    # The option is referenced via a variable to avoid confusing sed.
16621    lt_compile=`echo "$ac_compile" | $SED \
16622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16624    -e 's:$: $lt_compiler_flag:'`
16625    (eval echo "\"\$as_me:16625: $lt_compile\"" >&5)
16626    (eval "$lt_compile" 2>conftest.err)
16627    ac_status=$?
16628    cat conftest.err >&5
16629    echo "$as_me:16629: \$? = $ac_status" >&5
16630    if (exit $ac_status) && test -s "$ac_outfile"; then
16631      # The compiler can only warn and ignore the option if not recognized
16632      # So say no if there are warnings other than the usual output.
16633      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16634      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16635      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16636        lt_prog_compiler_pic_works_GCJ=yes
16637      fi
16638    fi
16639    $rm conftest*
16640
16641 fi
16642 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16643 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16644
16645 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16646     case $lt_prog_compiler_pic_GCJ in
16647      "" | " "*) ;;
16648      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16649      esac
16650 else
16651     lt_prog_compiler_pic_GCJ=
16652      lt_prog_compiler_can_build_shared_GCJ=no
16653 fi
16654
16655 fi
16656 case $host_os in
16657   # For platforms which do not support PIC, -DPIC is meaningless:
16658   *djgpp*)
16659     lt_prog_compiler_pic_GCJ=
16660     ;;
16661   *)
16662     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16663     ;;
16664 esac
16665
16666 #
16667 # Check to make sure the static flag actually works.
16668 #
16669 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16670 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16671 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16672 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16673   echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675   lt_prog_compiler_static_works_GCJ=no
16676    save_LDFLAGS="$LDFLAGS"
16677    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16678    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16679    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16680      # The linker can only warn and ignore the option if not recognized
16681      # So say no if there are warnings
16682      if test -s conftest.err; then
16683        # Append any errors to the config.log.
16684        cat conftest.err 1>&5
16685        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16686        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16687        if diff conftest.exp conftest.er2 >/dev/null; then
16688          lt_prog_compiler_static_works_GCJ=yes
16689        fi
16690      else
16691        lt_prog_compiler_static_works_GCJ=yes
16692      fi
16693    fi
16694    $rm conftest*
16695    LDFLAGS="$save_LDFLAGS"
16696
16697 fi
16698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16699 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16700
16701 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16702     :
16703 else
16704     lt_prog_compiler_static_GCJ=
16705 fi
16706
16707
16708 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16710 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   lt_cv_prog_compiler_c_o_GCJ=no
16714    $rm -r conftest 2>/dev/null
16715    mkdir conftest
16716    cd conftest
16717    mkdir out
16718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719
16720    lt_compiler_flag="-o out/conftest2.$ac_objext"
16721    # Insert the option either (1) after the last *FLAGS variable, or
16722    # (2) before a word containing "conftest.", or (3) at the end.
16723    # Note that $ac_compile itself does not contain backslashes and begins
16724    # with a dollar sign (not a hyphen), so the echo should work correctly.
16725    lt_compile=`echo "$ac_compile" | $SED \
16726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728    -e 's:$: $lt_compiler_flag:'`
16729    (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730    (eval "$lt_compile" 2>out/conftest.err)
16731    ac_status=$?
16732    cat out/conftest.err >&5
16733    echo "$as_me:16733: \$? = $ac_status" >&5
16734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16735    then
16736      # The compiler can only warn and ignore the option if not recognized
16737      # So say no if there are warnings
16738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16739      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16740      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16741        lt_cv_prog_compiler_c_o_GCJ=yes
16742      fi
16743    fi
16744    chmod u+w . 2>&5
16745    $rm conftest*
16746    # SGI C++ compiler will create directory out/ii_files/ for
16747    # template instantiation
16748    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16749    $rm out/* && rmdir out
16750    cd ..
16751    rmdir conftest
16752    $rm conftest*
16753
16754 fi
16755 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16756 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16757
16758
16759 hard_links="nottested"
16760 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16761   # do not overwrite the value of need_locks provided by the user
16762   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16763 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16764   hard_links=yes
16765   $rm conftest*
16766   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767   touch conftest.a
16768   ln conftest.a conftest.b 2>&5 || hard_links=no
16769   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770   { echo "$as_me:$LINENO: result: $hard_links" >&5
16771 echo "${ECHO_T}$hard_links" >&6; }
16772   if test "$hard_links" = no; then
16773     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16774 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16775     need_locks=warn
16776   fi
16777 else
16778   need_locks=no
16779 fi
16780
16781 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16782 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16783
16784   runpath_var=
16785   allow_undefined_flag_GCJ=
16786   enable_shared_with_static_runtimes_GCJ=no
16787   archive_cmds_GCJ=
16788   archive_expsym_cmds_GCJ=
16789   old_archive_From_new_cmds_GCJ=
16790   old_archive_from_expsyms_cmds_GCJ=
16791   export_dynamic_flag_spec_GCJ=
16792   whole_archive_flag_spec_GCJ=
16793   thread_safe_flag_spec_GCJ=
16794   hardcode_libdir_flag_spec_GCJ=
16795   hardcode_libdir_flag_spec_ld_GCJ=
16796   hardcode_libdir_separator_GCJ=
16797   hardcode_direct_GCJ=no
16798   hardcode_minus_L_GCJ=no
16799   hardcode_shlibpath_var_GCJ=unsupported
16800   link_all_deplibs_GCJ=unknown
16801   hardcode_automatic_GCJ=no
16802   module_cmds_GCJ=
16803   module_expsym_cmds_GCJ=
16804   always_export_symbols_GCJ=no
16805   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806   # include_expsyms should be a list of space-separated symbols to be *always*
16807   # included in the symbol list
16808   include_expsyms_GCJ=
16809   # exclude_expsyms can be an extended regexp of symbols to exclude
16810   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16811   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16812   # as well as any symbol that contains `d'.
16813   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16814   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16815   # platforms (ab)use it in PIC code, but their linkers get confused if
16816   # the symbol is explicitly referenced.  Since portable code cannot
16817   # rely on this symbol name, it's probably fine to never include it in
16818   # preloaded symbol tables.
16819   extract_expsyms_cmds=
16820   # Just being paranoid about ensuring that cc_basename is set.
16821   for cc_temp in $compiler""; do
16822   case $cc_temp in
16823     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16824     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16825     \-*) ;;
16826     *) break;;
16827   esac
16828 done
16829 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16830
16831   case $host_os in
16832   cygwin* | mingw* | pw32*)
16833     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16834     # When not using gcc, we currently assume that we are using
16835     # Microsoft Visual C++.
16836     if test "$GCC" != yes; then
16837       with_gnu_ld=no
16838     fi
16839     ;;
16840   interix*)
16841     # we just hope/assume this is gcc and not c89 (= MSVC++)
16842     with_gnu_ld=yes
16843     ;;
16844   openbsd*)
16845     with_gnu_ld=no
16846     ;;
16847   esac
16848
16849   ld_shlibs_GCJ=yes
16850   if test "$with_gnu_ld" = yes; then
16851     # If archive_cmds runs LD, not CC, wlarc should be empty
16852     wlarc='${wl}'
16853
16854     # Set some defaults for GNU ld with shared library support. These
16855     # are reset later if shared libraries are not supported. Putting them
16856     # here allows them to be overridden if necessary.
16857     runpath_var=LD_RUN_PATH
16858     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16859     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16860     # ancient GNU ld didn't support --whole-archive et. al.
16861     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16862         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16863       else
16864         whole_archive_flag_spec_GCJ=
16865     fi
16866     supports_anon_versioning=no
16867     case `$LD -v 2>/dev/null` in
16868       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16869       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16870       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16871       *\ 2.11.*) ;; # other 2.11 versions
16872       *) supports_anon_versioning=yes ;;
16873     esac
16874
16875     # See if GNU ld supports shared libraries.
16876     case $host_os in
16877     aix3* | aix4* | aix5*)
16878       # On AIX/PPC, the GNU linker is very broken
16879       if test "$host_cpu" != ia64; then
16880         ld_shlibs_GCJ=no
16881         cat <<EOF 1>&2
16882
16883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16884 *** to be unable to reliably create shared libraries on AIX.
16885 *** Therefore, libtool is disabling shared libraries support.  If you
16886 *** really care for shared libraries, you may want to modify your PATH
16887 *** so that a non-GNU linker is found, and then restart.
16888
16889 EOF
16890       fi
16891       ;;
16892
16893     amigaos*)
16894       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)'
16895       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16896       hardcode_minus_L_GCJ=yes
16897
16898       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16899       # that the semantics of dynamic libraries on AmigaOS, at least up
16900       # to version 4, is to share data among multiple programs linked
16901       # with the same dynamic library.  Since this doesn't match the
16902       # behavior of shared libraries on other platforms, we can't use
16903       # them.
16904       ld_shlibs_GCJ=no
16905       ;;
16906
16907     beos*)
16908       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16909         allow_undefined_flag_GCJ=unsupported
16910         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16911         # support --undefined.  This deserves some investigation.  FIXME
16912         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16913       else
16914         ld_shlibs_GCJ=no
16915       fi
16916       ;;
16917
16918     cygwin* | mingw* | pw32*)
16919       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16920       # as there is no search path for DLLs.
16921       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922       allow_undefined_flag_GCJ=unsupported
16923       always_export_symbols_GCJ=no
16924       enable_shared_with_static_runtimes_GCJ=yes
16925       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16926
16927       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16928         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16929         # If the export-symbols file already is a .def file (1st line
16930         # is EXPORTS), use it as is; otherwise, prepend...
16931         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16932           cp $export_symbols $output_objdir/$soname.def;
16933         else
16934           echo EXPORTS > $output_objdir/$soname.def;
16935           cat $export_symbols >> $output_objdir/$soname.def;
16936         fi~
16937         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16938       else
16939         ld_shlibs_GCJ=no
16940       fi
16941       ;;
16942
16943     interix[3-9]*)
16944       hardcode_direct_GCJ=no
16945       hardcode_shlibpath_var_GCJ=no
16946       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16947       export_dynamic_flag_spec_GCJ='${wl}-E'
16948       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16949       # Instead, shared libraries are loaded at an image base (0x10000000 by
16950       # default) and relocated if they conflict, which is a slow very memory
16951       # consuming and fragmenting process.  To avoid this, we pick a random,
16952       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16953       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16954       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'
16955       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'
16956       ;;
16957
16958     gnu* | linux* | k*bsd*-gnu)
16959       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16960         tmp_addflag=
16961         case $cc_basename,$host_cpu in
16962         pgcc*)                          # Portland Group C compiler
16963           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'
16964           tmp_addflag=' $pic_flag'
16965           ;;
16966         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16967           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'
16968           tmp_addflag=' $pic_flag -Mnomain' ;;
16969         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16970           tmp_addflag=' -i_dynamic' ;;
16971         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16972           tmp_addflag=' -i_dynamic -nofor_main' ;;
16973         ifc* | ifort*)                  # Intel Fortran compiler
16974           tmp_addflag=' -nofor_main' ;;
16975         esac
16976         case `$CC -V 2>&1 | sed 5q` in
16977         *Sun\ C*)                       # Sun C 5.9
16978           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'
16979           tmp_sharedflag='-G' ;;
16980         *Sun\ F*)                       # Sun Fortran 8.3
16981           tmp_sharedflag='-G' ;;
16982         *)
16983           tmp_sharedflag='-shared' ;;
16984         esac
16985         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16986
16987         if test $supports_anon_versioning = yes; then
16988           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16989   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16990   $echo "local: *; };" >> $output_objdir/$libname.ver~
16991           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16992         fi
16993       else
16994         ld_shlibs_GCJ=no
16995       fi
16996       ;;
16997
16998     netbsd*)
16999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17000         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17001         wlarc=
17002       else
17003         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17005       fi
17006       ;;
17007
17008     solaris*)
17009       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17010         ld_shlibs_GCJ=no
17011         cat <<EOF 1>&2
17012
17013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17014 *** create shared libraries on Solaris systems.  Therefore, libtool
17015 *** is disabling shared libraries support.  We urge you to upgrade GNU
17016 *** binutils to release 2.9.1 or newer.  Another option is to modify
17017 *** your PATH or compiler configuration so that the native linker is
17018 *** used, and then restart.
17019
17020 EOF
17021       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17023         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17024       else
17025         ld_shlibs_GCJ=no
17026       fi
17027       ;;
17028
17029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17030       case `$LD -v 2>&1` in
17031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17032         ld_shlibs_GCJ=no
17033         cat <<_LT_EOF 1>&2
17034
17035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17037 *** is disabling shared libraries support.  We urge you to upgrade GNU
17038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17039 *** your PATH or compiler configuration so that the native linker is
17040 *** used, and then restart.
17041
17042 _LT_EOF
17043         ;;
17044         *)
17045           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17046             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17047             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17048             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17049           else
17050             ld_shlibs_GCJ=no
17051           fi
17052         ;;
17053       esac
17054       ;;
17055
17056     sunos4*)
17057       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17058       wlarc=
17059       hardcode_direct_GCJ=yes
17060       hardcode_shlibpath_var_GCJ=no
17061       ;;
17062
17063     *)
17064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17067       else
17068         ld_shlibs_GCJ=no
17069       fi
17070       ;;
17071     esac
17072
17073     if test "$ld_shlibs_GCJ" = no; then
17074       runpath_var=
17075       hardcode_libdir_flag_spec_GCJ=
17076       export_dynamic_flag_spec_GCJ=
17077       whole_archive_flag_spec_GCJ=
17078     fi
17079   else
17080     # PORTME fill in a description of your system's linker (not GNU ld)
17081     case $host_os in
17082     aix3*)
17083       allow_undefined_flag_GCJ=unsupported
17084       always_export_symbols_GCJ=yes
17085       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'
17086       # Note: this linker hardcodes the directories in LIBPATH if there
17087       # are no directories specified by -L.
17088       hardcode_minus_L_GCJ=yes
17089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17090         # Neither direct hardcoding nor static linking is supported with a
17091         # broken collect2.
17092         hardcode_direct_GCJ=unsupported
17093       fi
17094       ;;
17095
17096     aix4* | aix5*)
17097       if test "$host_cpu" = ia64; then
17098         # On IA64, the linker does run time linking by default, so we don't
17099         # have to do anything special.
17100         aix_use_runtimelinking=no
17101         exp_sym_flag='-Bexport'
17102         no_entry_flag=""
17103       else
17104         # If we're using GNU nm, then we don't want the "-C" option.
17105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17106         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17107           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'
17108         else
17109           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'
17110         fi
17111         aix_use_runtimelinking=no
17112
17113         # Test if we are trying to use run time linking or normal
17114         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17115         # need to do runtime linking.
17116         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17117           for ld_flag in $LDFLAGS; do
17118           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17119             aix_use_runtimelinking=yes
17120             break
17121           fi
17122           done
17123           ;;
17124         esac
17125
17126         exp_sym_flag='-bexport'
17127         no_entry_flag='-bnoentry'
17128       fi
17129
17130       # When large executables or shared objects are built, AIX ld can
17131       # have problems creating the table of contents.  If linking a library
17132       # or program results in "error TOC overflow" add -mminimal-toc to
17133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17135
17136       archive_cmds_GCJ=''
17137       hardcode_direct_GCJ=yes
17138       hardcode_libdir_separator_GCJ=':'
17139       link_all_deplibs_GCJ=yes
17140
17141       if test "$GCC" = yes; then
17142         case $host_os in aix4.[012]|aix4.[012].*)
17143         # We only want to do this on AIX 4.2 and lower, the check
17144         # below for broken collect2 doesn't work under 4.3+
17145           collect2name=`${CC} -print-prog-name=collect2`
17146           if test -f "$collect2name" && \
17147            strings "$collect2name" | grep resolve_lib_name >/dev/null
17148           then
17149           # We have reworked collect2
17150           :
17151           else
17152           # We have old collect2
17153           hardcode_direct_GCJ=unsupported
17154           # It fails to find uninstalled libraries when the uninstalled
17155           # path is not listed in the libpath.  Setting hardcode_minus_L
17156           # to unsupported forces relinking
17157           hardcode_minus_L_GCJ=yes
17158           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17159           hardcode_libdir_separator_GCJ=
17160           fi
17161           ;;
17162         esac
17163         shared_flag='-shared'
17164         if test "$aix_use_runtimelinking" = yes; then
17165           shared_flag="$shared_flag "'${wl}-G'
17166         fi
17167       else
17168         # not using gcc
17169         if test "$host_cpu" = ia64; then
17170         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17171         # chokes on -Wl,-G. The following line is correct:
17172           shared_flag='-G'
17173         else
17174           if test "$aix_use_runtimelinking" = yes; then
17175             shared_flag='${wl}-G'
17176           else
17177             shared_flag='${wl}-bM:SRE'
17178           fi
17179         fi
17180       fi
17181
17182       # It seems that -bexpall does not export symbols beginning with
17183       # underscore (_), so it is better to generate a list of symbols to export.
17184       always_export_symbols_GCJ=yes
17185       if test "$aix_use_runtimelinking" = yes; then
17186         # Warning - without using the other runtime loading flags (-brtl),
17187         # -berok will link without error, but may produce a broken library.
17188         allow_undefined_flag_GCJ='-berok'
17189        # Determine the default libpath from the value encoded in an empty executable.
17190        cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196
17197 int
17198 main ()
17199 {
17200
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_link") 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } && {
17219          test -z "$ac_c_werror_flag" ||
17220          test ! -s conftest.err
17221        } && test -s conftest$ac_exeext &&
17222        $as_test_x conftest$ac_exeext; then
17223
17224 lt_aix_libpath_sed='
17225     /Import File Strings/,/^$/ {
17226         /^0/ {
17227             s/^0  *\(.*\)$/\1/
17228             p
17229         }
17230     }'
17231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17232 # Check for a 64-bit object if we didn't find anything.
17233 if test -z "$aix_libpath"; then
17234   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17235 fi
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240
17241 fi
17242
17243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17244       conftest$ac_exeext conftest.$ac_ext
17245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17246
17247        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17248         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"
17249        else
17250         if test "$host_cpu" = ia64; then
17251           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17252           allow_undefined_flag_GCJ="-z nodefs"
17253           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"
17254         else
17255          # Determine the default libpath from the value encoded in an empty executable.
17256          cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262
17263 int
17264 main ()
17265 {
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_link") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } && {
17285          test -z "$ac_c_werror_flag" ||
17286          test ! -s conftest.err
17287        } && test -s conftest$ac_exeext &&
17288        $as_test_x conftest$ac_exeext; then
17289
17290 lt_aix_libpath_sed='
17291     /Import File Strings/,/^$/ {
17292         /^0/ {
17293             s/^0  *\(.*\)$/\1/
17294             p
17295         }
17296     }'
17297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17298 # Check for a 64-bit object if we didn't find anything.
17299 if test -z "$aix_libpath"; then
17300   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17301 fi
17302 else
17303   echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306
17307 fi
17308
17309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17310       conftest$ac_exeext conftest.$ac_ext
17311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17312
17313          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17314           # Warning - without using the other run time loading flags,
17315           # -berok will link without error, but may produce a broken library.
17316           no_undefined_flag_GCJ=' ${wl}-bernotok'
17317           allow_undefined_flag_GCJ=' ${wl}-berok'
17318           # Exported symbols can be pulled into shared objects from archives
17319           whole_archive_flag_spec_GCJ='$convenience'
17320           archive_cmds_need_lc_GCJ=yes
17321           # This is similar to how AIX traditionally builds its shared libraries.
17322           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'
17323         fi
17324       fi
17325       ;;
17326
17327     amigaos*)
17328       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)'
17329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17330       hardcode_minus_L_GCJ=yes
17331       # see comment about different semantics on the GNU ld section
17332       ld_shlibs_GCJ=no
17333       ;;
17334
17335     bsdi[45]*)
17336       export_dynamic_flag_spec_GCJ=-rdynamic
17337       ;;
17338
17339     cygwin* | mingw* | pw32*)
17340       # When not using gcc, we currently assume that we are using
17341       # Microsoft Visual C++.
17342       # hardcode_libdir_flag_spec is actually meaningless, as there is
17343       # no search path for DLLs.
17344       hardcode_libdir_flag_spec_GCJ=' '
17345       allow_undefined_flag_GCJ=unsupported
17346       # Tell ltmain to make .lib files, not .a files.
17347       libext=lib
17348       # Tell ltmain to make .dll files, not .so files.
17349       shrext_cmds=".dll"
17350       # FIXME: Setting linknames here is a bad hack.
17351       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17352       # The linker will automatically build a .lib file if we build a DLL.
17353       old_archive_From_new_cmds_GCJ='true'
17354       # FIXME: Should let the user specify the lib program.
17355       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17356       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17357       enable_shared_with_static_runtimes_GCJ=yes
17358       ;;
17359
17360     darwin* | rhapsody*)
17361       case $host_os in
17362         rhapsody* | darwin1.[012])
17363          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17364          ;;
17365        *) # Darwin 1.3 on
17366          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17367            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17368          else
17369            case ${MACOSX_DEPLOYMENT_TARGET} in
17370              10.[012])
17371                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17372                ;;
17373              10.*)
17374                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17375                ;;
17376            esac
17377          fi
17378          ;;
17379       esac
17380       archive_cmds_need_lc_GCJ=no
17381       hardcode_direct_GCJ=no
17382       hardcode_automatic_GCJ=yes
17383       hardcode_shlibpath_var_GCJ=unsupported
17384       whole_archive_flag_spec_GCJ=''
17385       link_all_deplibs_GCJ=yes
17386     if test "$GCC" = yes ; then
17387         output_verbose_link_cmd='echo'
17388         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17389       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17390       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17391       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}'
17392       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}'
17393     else
17394       case $cc_basename in
17395         xlc*)
17396          output_verbose_link_cmd='echo'
17397          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17398          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17399           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17400          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}'
17401           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}'
17402           ;;
17403        *)
17404          ld_shlibs_GCJ=no
17405           ;;
17406       esac
17407     fi
17408       ;;
17409
17410     dgux*)
17411       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17413       hardcode_shlibpath_var_GCJ=no
17414       ;;
17415
17416     freebsd1*)
17417       ld_shlibs_GCJ=no
17418       ;;
17419
17420     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17421     # support.  Future versions do this automatically, but an explicit c++rt0.o
17422     # does not break anything, and helps significantly (at the cost of a little
17423     # extra space).
17424     freebsd2.2*)
17425       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17426       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427       hardcode_direct_GCJ=yes
17428       hardcode_shlibpath_var_GCJ=no
17429       ;;
17430
17431     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17432     freebsd2*)
17433       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17434       hardcode_direct_GCJ=yes
17435       hardcode_minus_L_GCJ=yes
17436       hardcode_shlibpath_var_GCJ=no
17437       ;;
17438
17439     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17440     freebsd* | dragonfly*)
17441       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17442       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443       hardcode_direct_GCJ=yes
17444       hardcode_shlibpath_var_GCJ=no
17445       ;;
17446
17447     hpux9*)
17448       if test "$GCC" = yes; then
17449         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'
17450       else
17451         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'
17452       fi
17453       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17454       hardcode_libdir_separator_GCJ=:
17455       hardcode_direct_GCJ=yes
17456
17457       # hardcode_minus_L: Not really in the search PATH,
17458       # but as the default location of the library.
17459       hardcode_minus_L_GCJ=yes
17460       export_dynamic_flag_spec_GCJ='${wl}-E'
17461       ;;
17462
17463     hpux10*)
17464       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17465         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17466       else
17467         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17468       fi
17469       if test "$with_gnu_ld" = no; then
17470         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17471         hardcode_libdir_separator_GCJ=:
17472
17473         hardcode_direct_GCJ=yes
17474         export_dynamic_flag_spec_GCJ='${wl}-E'
17475
17476         # hardcode_minus_L: Not really in the search PATH,
17477         # but as the default location of the library.
17478         hardcode_minus_L_GCJ=yes
17479       fi
17480       ;;
17481
17482     hpux11*)
17483       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17484         case $host_cpu in
17485         hppa*64*)
17486           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17487           ;;
17488         ia64*)
17489           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17490           ;;
17491         *)
17492           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17493           ;;
17494         esac
17495       else
17496         case $host_cpu in
17497         hppa*64*)
17498           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17499           ;;
17500         ia64*)
17501           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17502           ;;
17503         *)
17504           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17505           ;;
17506         esac
17507       fi
17508       if test "$with_gnu_ld" = no; then
17509         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17510         hardcode_libdir_separator_GCJ=:
17511
17512         case $host_cpu in
17513         hppa*64*|ia64*)
17514           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17515           hardcode_direct_GCJ=no
17516           hardcode_shlibpath_var_GCJ=no
17517           ;;
17518         *)
17519           hardcode_direct_GCJ=yes
17520           export_dynamic_flag_spec_GCJ='${wl}-E'
17521
17522           # hardcode_minus_L: Not really in the search PATH,
17523           # but as the default location of the library.
17524           hardcode_minus_L_GCJ=yes
17525           ;;
17526         esac
17527       fi
17528       ;;
17529
17530     irix5* | irix6* | nonstopux*)
17531       if test "$GCC" = yes; then
17532         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'
17533       else
17534         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'
17535         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17536       fi
17537       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17538       hardcode_libdir_separator_GCJ=:
17539       link_all_deplibs_GCJ=yes
17540       ;;
17541
17542     netbsd*)
17543       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17544         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17545       else
17546         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17547       fi
17548       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549       hardcode_direct_GCJ=yes
17550       hardcode_shlibpath_var_GCJ=no
17551       ;;
17552
17553     newsos6)
17554       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17555       hardcode_direct_GCJ=yes
17556       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17557       hardcode_libdir_separator_GCJ=:
17558       hardcode_shlibpath_var_GCJ=no
17559       ;;
17560
17561     openbsd*)
17562       if test -f /usr/libexec/ld.so; then
17563         hardcode_direct_GCJ=yes
17564         hardcode_shlibpath_var_GCJ=no
17565         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17566           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17567           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17568           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17569           export_dynamic_flag_spec_GCJ='${wl}-E'
17570         else
17571           case $host_os in
17572            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17573              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17574              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17575              ;;
17576            *)
17577              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17578              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17579              ;;
17580           esac
17581         fi
17582       else
17583         ld_shlibs_GCJ=no
17584       fi
17585       ;;
17586
17587     os2*)
17588       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17589       hardcode_minus_L_GCJ=yes
17590       allow_undefined_flag_GCJ=unsupported
17591       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'
17592       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17593       ;;
17594
17595     osf3*)
17596       if test "$GCC" = yes; then
17597         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17598         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'
17599       else
17600         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17601         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'
17602       fi
17603       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17604       hardcode_libdir_separator_GCJ=:
17605       ;;
17606
17607     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17608       if test "$GCC" = yes; then
17609         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17610         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'
17611         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17612       else
17613         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17614         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'
17615         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~
17616         $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'
17617
17618         # Both c and cxx compiler support -rpath directly
17619         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17620       fi
17621       hardcode_libdir_separator_GCJ=:
17622       ;;
17623
17624     solaris*)
17625       no_undefined_flag_GCJ=' -z text'
17626       if test "$GCC" = yes; then
17627         wlarc='${wl}'
17628         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17630           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17631       else
17632         wlarc=''
17633         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17634         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17635         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17636       fi
17637       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17638       hardcode_shlibpath_var_GCJ=no
17639       case $host_os in
17640       solaris2.[0-5] | solaris2.[0-5].*) ;;
17641       *)
17642         # The compiler driver will combine and reorder linker options,
17643         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17644         # but is careful enough not to reorder.
17645         # Supported since Solaris 2.6 (maybe 2.5.1?)
17646         if test "$GCC" = yes; then
17647           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17648         else
17649           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17650         fi
17651         ;;
17652       esac
17653       link_all_deplibs_GCJ=yes
17654       ;;
17655
17656     sunos4*)
17657       if test "x$host_vendor" = xsequent; then
17658         # Use $CC to link under sequent, because it throws in some extra .o
17659         # files that make .init and .fini sections work.
17660         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17661       else
17662         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17663       fi
17664       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665       hardcode_direct_GCJ=yes
17666       hardcode_minus_L_GCJ=yes
17667       hardcode_shlibpath_var_GCJ=no
17668       ;;
17669
17670     sysv4)
17671       case $host_vendor in
17672         sni)
17673           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674           hardcode_direct_GCJ=yes # is this really true???
17675         ;;
17676         siemens)
17677           ## LD is ld it makes a PLAMLIB
17678           ## CC just makes a GrossModule.
17679           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17680           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17681           hardcode_direct_GCJ=no
17682         ;;
17683         motorola)
17684           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17686         ;;
17687       esac
17688       runpath_var='LD_RUN_PATH'
17689       hardcode_shlibpath_var_GCJ=no
17690       ;;
17691
17692     sysv4.3*)
17693       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17694       hardcode_shlibpath_var_GCJ=no
17695       export_dynamic_flag_spec_GCJ='-Bexport'
17696       ;;
17697
17698     sysv4*MP*)
17699       if test -d /usr/nec; then
17700         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701         hardcode_shlibpath_var_GCJ=no
17702         runpath_var=LD_RUN_PATH
17703         hardcode_runpath_var=yes
17704         ld_shlibs_GCJ=yes
17705       fi
17706       ;;
17707
17708     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17709       no_undefined_flag_GCJ='${wl}-z,text'
17710       archive_cmds_need_lc_GCJ=no
17711       hardcode_shlibpath_var_GCJ=no
17712       runpath_var='LD_RUN_PATH'
17713
17714       if test "$GCC" = yes; then
17715         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17716         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17717       else
17718         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17719         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17720       fi
17721       ;;
17722
17723     sysv5* | sco3.2v5* | sco5v6*)
17724       # Note: We can NOT use -z defs as we might desire, because we do not
17725       # link with -lc, and that would cause any symbols used from libc to
17726       # always be unresolved, which means just about no library would
17727       # ever link correctly.  If we're not using GNU ld we use -z text
17728       # though, which does catch some bad symbols but isn't as heavy-handed
17729       # as -z defs.
17730       no_undefined_flag_GCJ='${wl}-z,text'
17731       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17732       archive_cmds_need_lc_GCJ=no
17733       hardcode_shlibpath_var_GCJ=no
17734       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17735       hardcode_libdir_separator_GCJ=':'
17736       link_all_deplibs_GCJ=yes
17737       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17738       runpath_var='LD_RUN_PATH'
17739
17740       if test "$GCC" = yes; then
17741         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17742         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17743       else
17744         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17745         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17746       fi
17747       ;;
17748
17749     uts4*)
17750       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17752       hardcode_shlibpath_var_GCJ=no
17753       ;;
17754
17755     *)
17756       ld_shlibs_GCJ=no
17757       ;;
17758     esac
17759   fi
17760
17761 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17762 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17763 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17764
17765 #
17766 # Do we need to explicitly link libc?
17767 #
17768 case "x$archive_cmds_need_lc_GCJ" in
17769 x|xyes)
17770   # Assume -lc should be added
17771   archive_cmds_need_lc_GCJ=yes
17772
17773   if test "$enable_shared" = yes && test "$GCC" = yes; then
17774     case $archive_cmds_GCJ in
17775     *'~'*)
17776       # FIXME: we may have to deal with multi-command sequences.
17777       ;;
17778     '$CC '*)
17779       # Test whether the compiler implicitly links with -lc since on some
17780       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17781       # to ld, don't add -lc before -lgcc.
17782       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17783 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17784       $rm conftest*
17785       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17786
17787       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17788   (eval $ac_compile) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); } 2>conftest.err; then
17792         soname=conftest
17793         lib=conftest
17794         libobjs=conftest.$ac_objext
17795         deplibs=
17796         wl=$lt_prog_compiler_wl_GCJ
17797         pic_flag=$lt_prog_compiler_pic_GCJ
17798         compiler_flags=-v
17799         linker_flags=-v
17800         verstring=
17801         output_objdir=.
17802         libname=conftest
17803         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17804         allow_undefined_flag_GCJ=
17805         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17806   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }
17810         then
17811           archive_cmds_need_lc_GCJ=no
17812         else
17813           archive_cmds_need_lc_GCJ=yes
17814         fi
17815         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17816       else
17817         cat conftest.err 1>&5
17818       fi
17819       $rm conftest*
17820       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17821 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17822       ;;
17823     esac
17824   fi
17825   ;;
17826 esac
17827
17828 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17830 library_names_spec=
17831 libname_spec='lib$name'
17832 soname_spec=
17833 shrext_cmds=".so"
17834 postinstall_cmds=
17835 postuninstall_cmds=
17836 finish_cmds=
17837 finish_eval=
17838 shlibpath_var=
17839 shlibpath_overrides_runpath=unknown
17840 version_type=none
17841 dynamic_linker="$host_os ld.so"
17842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17843
17844 need_lib_prefix=unknown
17845 hardcode_into_libs=no
17846
17847 # when you set need_version to no, make sure it does not cause -set_version
17848 # flags to be left without arguments
17849 need_version=unknown
17850
17851 case $host_os in
17852 aix3*)
17853   version_type=linux
17854   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17855   shlibpath_var=LIBPATH
17856
17857   # AIX 3 has no versioning support, so we append a major version to the name.
17858   soname_spec='${libname}${release}${shared_ext}$major'
17859   ;;
17860
17861 aix4* | aix5*)
17862   version_type=linux
17863   need_lib_prefix=no
17864   need_version=no
17865   hardcode_into_libs=yes
17866   if test "$host_cpu" = ia64; then
17867     # AIX 5 supports IA64
17868     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17869     shlibpath_var=LD_LIBRARY_PATH
17870   else
17871     # With GCC up to 2.95.x, collect2 would create an import file
17872     # for dependence libraries.  The import file would start with
17873     # the line `#! .'.  This would cause the generated library to
17874     # depend on `.', always an invalid library.  This was fixed in
17875     # development snapshots of GCC prior to 3.0.
17876     case $host_os in
17877       aix4 | aix4.[01] | aix4.[01].*)
17878       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17879            echo ' yes '
17880            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17881         :
17882       else
17883         can_build_shared=no
17884       fi
17885       ;;
17886     esac
17887     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17888     # soname into executable. Probably we can add versioning support to
17889     # collect2, so additional links can be useful in future.
17890     if test "$aix_use_runtimelinking" = yes; then
17891       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17892       # instead of lib<name>.a to let people know that these are not
17893       # typical AIX shared libraries.
17894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895     else
17896       # We preserve .a as extension for shared libraries through AIX4.2
17897       # and later when we are not doing run time linking.
17898       library_names_spec='${libname}${release}.a $libname.a'
17899       soname_spec='${libname}${release}${shared_ext}$major'
17900     fi
17901     shlibpath_var=LIBPATH
17902   fi
17903   ;;
17904
17905 amigaos*)
17906   library_names_spec='$libname.ixlibrary $libname.a'
17907   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17908   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'
17909   ;;
17910
17911 beos*)
17912   library_names_spec='${libname}${shared_ext}'
17913   dynamic_linker="$host_os ld.so"
17914   shlibpath_var=LIBRARY_PATH
17915   ;;
17916
17917 bsdi[45]*)
17918   version_type=linux
17919   need_version=no
17920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921   soname_spec='${libname}${release}${shared_ext}$major'
17922   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17923   shlibpath_var=LD_LIBRARY_PATH
17924   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17925   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17926   # the default ld.so.conf also contains /usr/contrib/lib and
17927   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17928   # libtool to hard-code these into programs
17929   ;;
17930
17931 cygwin* | mingw* | pw32*)
17932   version_type=windows
17933   shrext_cmds=".dll"
17934   need_version=no
17935   need_lib_prefix=no
17936
17937   case $GCC,$host_os in
17938   yes,cygwin* | yes,mingw* | yes,pw32*)
17939     library_names_spec='$libname.dll.a'
17940     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17941     postinstall_cmds='base_file=`basename \${file}`~
17942       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17943       dldir=$destdir/`dirname \$dlpath`~
17944       test -d \$dldir || mkdir -p \$dldir~
17945       $install_prog $dir/$dlname \$dldir/$dlname~
17946       chmod a+x \$dldir/$dlname'
17947     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17948       dlpath=$dir/\$dldll~
17949        $rm \$dlpath'
17950     shlibpath_overrides_runpath=yes
17951
17952     case $host_os in
17953     cygwin*)
17954       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17955       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17956       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17957       ;;
17958     mingw*)
17959       # MinGW DLLs use traditional 'lib' prefix
17960       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17961       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17962       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17963         # It is most probably a Windows format PATH printed by
17964         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17965         # path with ; separators, and with drive letters. We can handle the
17966         # drive letters (cygwin fileutils understands them), so leave them,
17967         # especially as we might pass files found there to a mingw objdump,
17968         # which wouldn't understand a cygwinified path. Ahh.
17969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17970       else
17971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17972       fi
17973       ;;
17974     pw32*)
17975       # pw32 DLLs use 'pw' prefix rather than 'lib'
17976       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17977       ;;
17978     esac
17979     ;;
17980
17981   *)
17982     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17983     ;;
17984   esac
17985   dynamic_linker='Win32 ld.exe'
17986   # FIXME: first we should search . and the directory the executable is in
17987   shlibpath_var=PATH
17988   ;;
17989
17990 darwin* | rhapsody*)
17991   dynamic_linker="$host_os dyld"
17992   version_type=darwin
17993   need_lib_prefix=no
17994   need_version=no
17995   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17996   soname_spec='${libname}${release}${major}$shared_ext'
17997   shlibpath_overrides_runpath=yes
17998   shlibpath_var=DYLD_LIBRARY_PATH
17999   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18000
18001   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18002   ;;
18003
18004 dgux*)
18005   version_type=linux
18006   need_lib_prefix=no
18007   need_version=no
18008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18009   soname_spec='${libname}${release}${shared_ext}$major'
18010   shlibpath_var=LD_LIBRARY_PATH
18011   ;;
18012
18013 freebsd1*)
18014   dynamic_linker=no
18015   ;;
18016
18017 freebsd* | dragonfly*)
18018   # DragonFly does not have aout.  When/if they implement a new
18019   # versioning mechanism, adjust this.
18020   if test -x /usr/bin/objformat; then
18021     objformat=`/usr/bin/objformat`
18022   else
18023     case $host_os in
18024     freebsd[123]*) objformat=aout ;;
18025     *) objformat=elf ;;
18026     esac
18027   fi
18028   version_type=freebsd-$objformat
18029   case $version_type in
18030     freebsd-elf*)
18031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18032       need_version=no
18033       need_lib_prefix=no
18034       ;;
18035     freebsd-*)
18036       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18037       need_version=yes
18038       ;;
18039   esac
18040   shlibpath_var=LD_LIBRARY_PATH
18041   case $host_os in
18042   freebsd2*)
18043     shlibpath_overrides_runpath=yes
18044     ;;
18045   freebsd3.[01]* | freebsdelf3.[01]*)
18046     shlibpath_overrides_runpath=yes
18047     hardcode_into_libs=yes
18048     ;;
18049   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18050   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18051     shlibpath_overrides_runpath=no
18052     hardcode_into_libs=yes
18053     ;;
18054   *) # from 4.6 on, and DragonFly
18055     shlibpath_overrides_runpath=yes
18056     hardcode_into_libs=yes
18057     ;;
18058   esac
18059   ;;
18060
18061 gnu*)
18062   version_type=linux
18063   need_lib_prefix=no
18064   need_version=no
18065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18066   soname_spec='${libname}${release}${shared_ext}$major'
18067   shlibpath_var=LD_LIBRARY_PATH
18068   hardcode_into_libs=yes
18069   ;;
18070
18071 hpux9* | hpux10* | hpux11*)
18072   # Give a soname corresponding to the major version so that dld.sl refuses to
18073   # link against other versions.
18074   version_type=sunos
18075   need_lib_prefix=no
18076   need_version=no
18077   case $host_cpu in
18078   ia64*)
18079     shrext_cmds='.so'
18080     hardcode_into_libs=yes
18081     dynamic_linker="$host_os dld.so"
18082     shlibpath_var=LD_LIBRARY_PATH
18083     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085     soname_spec='${libname}${release}${shared_ext}$major'
18086     if test "X$HPUX_IA64_MODE" = X32; then
18087       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088     else
18089       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090     fi
18091     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092     ;;
18093    hppa*64*)
18094      shrext_cmds='.sl'
18095      hardcode_into_libs=yes
18096      dynamic_linker="$host_os dld.sl"
18097      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18098      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18099      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100      soname_spec='${libname}${release}${shared_ext}$major'
18101      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18102      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18103      ;;
18104    *)
18105     shrext_cmds='.sl'
18106     dynamic_linker="$host_os dld.sl"
18107     shlibpath_var=SHLIB_PATH
18108     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110     soname_spec='${libname}${release}${shared_ext}$major'
18111     ;;
18112   esac
18113   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18114   postinstall_cmds='chmod 555 $lib'
18115   ;;
18116
18117 interix[3-9]*)
18118   version_type=linux
18119   need_lib_prefix=no
18120   need_version=no
18121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18122   soname_spec='${libname}${release}${shared_ext}$major'
18123   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18124   shlibpath_var=LD_LIBRARY_PATH
18125   shlibpath_overrides_runpath=no
18126   hardcode_into_libs=yes
18127   ;;
18128
18129 irix5* | irix6* | nonstopux*)
18130   case $host_os in
18131     nonstopux*) version_type=nonstopux ;;
18132     *)
18133         if test "$lt_cv_prog_gnu_ld" = yes; then
18134                 version_type=linux
18135         else
18136                 version_type=irix
18137         fi ;;
18138   esac
18139   need_lib_prefix=no
18140   need_version=no
18141   soname_spec='${libname}${release}${shared_ext}$major'
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18143   case $host_os in
18144   irix5* | nonstopux*)
18145     libsuff= shlibsuff=
18146     ;;
18147   *)
18148     case $LD in # libtool.m4 will add one of these switches to LD
18149     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18150       libsuff= shlibsuff= libmagic=32-bit;;
18151     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18152       libsuff=32 shlibsuff=N32 libmagic=N32;;
18153     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18154       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18155     *) libsuff= shlibsuff= libmagic=never-match;;
18156     esac
18157     ;;
18158   esac
18159   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18160   shlibpath_overrides_runpath=no
18161   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18162   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18163   hardcode_into_libs=yes
18164   ;;
18165
18166 # No shared lib support for Linux oldld, aout, or coff.
18167 linux*oldld* | linux*aout* | linux*coff*)
18168   dynamic_linker=no
18169   ;;
18170
18171 # This must be Linux ELF.
18172 linux* | k*bsd*-gnu)
18173   version_type=linux
18174   need_lib_prefix=no
18175   need_version=no
18176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177   soname_spec='${libname}${release}${shared_ext}$major'
18178   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18179   shlibpath_var=LD_LIBRARY_PATH
18180   shlibpath_overrides_runpath=no
18181   # This implies no fast_install, which is unacceptable.
18182   # Some rework will be needed to allow for fast_install
18183   # before this can be enabled.
18184   hardcode_into_libs=yes
18185
18186   # find out which ABI we are using
18187   libsuff=
18188   case "$host_cpu" in
18189   x86_64*|s390x*|powerpc64*)
18190     echo '#line 18190 "configure"' > conftest.$ac_ext
18191     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192   (eval $ac_compile) 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; then
18196       case `/usr/bin/file conftest.$ac_objext` in
18197       *64-bit*)
18198         libsuff=64
18199         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18200         ;;
18201       esac
18202     fi
18203     rm -rf conftest*
18204     ;;
18205   esac
18206
18207   # Append ld.so.conf contents to the search path
18208   if test -f /etc/ld.so.conf; then
18209     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' ' '`
18210     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18211   fi
18212
18213   # We used to test for /lib/ld.so.1 and disable shared libraries on
18214   # powerpc, because MkLinux only supported shared libraries with the
18215   # GNU dynamic linker.  Since this was broken with cross compilers,
18216   # most powerpc-linux boxes support dynamic linking these days and
18217   # people can always --disable-shared, the test was removed, and we
18218   # assume the GNU/Linux dynamic linker is in use.
18219   dynamic_linker='GNU/Linux ld.so'
18220   ;;
18221
18222 netbsd*)
18223   version_type=sunos
18224   need_lib_prefix=no
18225   need_version=no
18226   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18228     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18229     dynamic_linker='NetBSD (a.out) ld.so'
18230   else
18231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18232     soname_spec='${libname}${release}${shared_ext}$major'
18233     dynamic_linker='NetBSD ld.elf_so'
18234   fi
18235   shlibpath_var=LD_LIBRARY_PATH
18236   shlibpath_overrides_runpath=yes
18237   hardcode_into_libs=yes
18238   ;;
18239
18240 newsos6)
18241   version_type=linux
18242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18243   shlibpath_var=LD_LIBRARY_PATH
18244   shlibpath_overrides_runpath=yes
18245   ;;
18246
18247 nto-qnx*)
18248   version_type=linux
18249   need_lib_prefix=no
18250   need_version=no
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   shlibpath_var=LD_LIBRARY_PATH
18254   shlibpath_overrides_runpath=yes
18255   ;;
18256
18257 openbsd*)
18258   version_type=sunos
18259   sys_lib_dlsearch_path_spec="/usr/lib"
18260   need_lib_prefix=no
18261   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18262   case $host_os in
18263     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18264     *)                         need_version=no  ;;
18265   esac
18266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18267   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18268   shlibpath_var=LD_LIBRARY_PATH
18269   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18270     case $host_os in
18271       openbsd2.[89] | openbsd2.[89].*)
18272         shlibpath_overrides_runpath=no
18273         ;;
18274       *)
18275         shlibpath_overrides_runpath=yes
18276         ;;
18277       esac
18278   else
18279     shlibpath_overrides_runpath=yes
18280   fi
18281   ;;
18282
18283 os2*)
18284   libname_spec='$name'
18285   shrext_cmds=".dll"
18286   need_lib_prefix=no
18287   library_names_spec='$libname${shared_ext} $libname.a'
18288   dynamic_linker='OS/2 ld.exe'
18289   shlibpath_var=LIBPATH
18290   ;;
18291
18292 osf3* | osf4* | osf5*)
18293   version_type=osf
18294   need_lib_prefix=no
18295   need_version=no
18296   soname_spec='${libname}${release}${shared_ext}$major'
18297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298   shlibpath_var=LD_LIBRARY_PATH
18299   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18300   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18301   ;;
18302
18303 rdos*)
18304   dynamic_linker=no
18305   ;;
18306
18307 solaris*)
18308   version_type=linux
18309   need_lib_prefix=no
18310   need_version=no
18311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312   soname_spec='${libname}${release}${shared_ext}$major'
18313   shlibpath_var=LD_LIBRARY_PATH
18314   shlibpath_overrides_runpath=yes
18315   hardcode_into_libs=yes
18316   # ldd complains unless libraries are executable
18317   postinstall_cmds='chmod +x $lib'
18318   ;;
18319
18320 sunos4*)
18321   version_type=sunos
18322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18323   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18324   shlibpath_var=LD_LIBRARY_PATH
18325   shlibpath_overrides_runpath=yes
18326   if test "$with_gnu_ld" = yes; then
18327     need_lib_prefix=no
18328   fi
18329   need_version=yes
18330   ;;
18331
18332 sysv4 | sysv4.3*)
18333   version_type=linux
18334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18335   soname_spec='${libname}${release}${shared_ext}$major'
18336   shlibpath_var=LD_LIBRARY_PATH
18337   case $host_vendor in
18338     sni)
18339       shlibpath_overrides_runpath=no
18340       need_lib_prefix=no
18341       export_dynamic_flag_spec='${wl}-Blargedynsym'
18342       runpath_var=LD_RUN_PATH
18343       ;;
18344     siemens)
18345       need_lib_prefix=no
18346       ;;
18347     motorola)
18348       need_lib_prefix=no
18349       need_version=no
18350       shlibpath_overrides_runpath=no
18351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18352       ;;
18353   esac
18354   ;;
18355
18356 sysv4*MP*)
18357   if test -d /usr/nec ;then
18358     version_type=linux
18359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18360     soname_spec='$libname${shared_ext}.$major'
18361     shlibpath_var=LD_LIBRARY_PATH
18362   fi
18363   ;;
18364
18365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18366   version_type=freebsd-elf
18367   need_lib_prefix=no
18368   need_version=no
18369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18370   soname_spec='${libname}${release}${shared_ext}$major'
18371   shlibpath_var=LD_LIBRARY_PATH
18372   hardcode_into_libs=yes
18373   if test "$with_gnu_ld" = yes; then
18374     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18375     shlibpath_overrides_runpath=no
18376   else
18377     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18378     shlibpath_overrides_runpath=yes
18379     case $host_os in
18380       sco3.2v5*)
18381         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18382         ;;
18383     esac
18384   fi
18385   sys_lib_dlsearch_path_spec='/usr/lib'
18386   ;;
18387
18388 uts4*)
18389   version_type=linux
18390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391   soname_spec='${libname}${release}${shared_ext}$major'
18392   shlibpath_var=LD_LIBRARY_PATH
18393   ;;
18394
18395 *)
18396   dynamic_linker=no
18397   ;;
18398 esac
18399 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18400 echo "${ECHO_T}$dynamic_linker" >&6; }
18401 test "$dynamic_linker" = no && can_build_shared=no
18402
18403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18404 if test "$GCC" = yes; then
18405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18406 fi
18407
18408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18410 hardcode_action_GCJ=
18411 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18412    test -n "$runpath_var_GCJ" || \
18413    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18414
18415   # We can hardcode non-existant directories.
18416   if test "$hardcode_direct_GCJ" != no &&
18417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18418      # have to relink, otherwise we might link with an installed library
18419      # when we should be linking with a yet-to-be-installed one
18420      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18421      test "$hardcode_minus_L_GCJ" != no; then
18422     # Linking always hardcodes the temporary library directory.
18423     hardcode_action_GCJ=relink
18424   else
18425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18426     hardcode_action_GCJ=immediate
18427   fi
18428 else
18429   # We cannot hardcode anything, or else we can only hardcode existing
18430   # directories.
18431   hardcode_action_GCJ=unsupported
18432 fi
18433 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18434 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18435
18436 if test "$hardcode_action_GCJ" = relink; then
18437   # Fast installation is not supported
18438   enable_fast_install=no
18439 elif test "$shlibpath_overrides_runpath" = yes ||
18440      test "$enable_shared" = no; then
18441   # Fast installation is not necessary
18442   enable_fast_install=needless
18443 fi
18444
18445
18446 # The else clause should only fire when bootstrapping the
18447 # libtool distribution, otherwise you forgot to ship ltmain.sh
18448 # with your package, and you will get complaints that there are
18449 # no rules to generate ltmain.sh.
18450 if test -f "$ltmain"; then
18451   # See if we are running on zsh, and set the options which allow our commands through
18452   # without removal of \ escapes.
18453   if test -n "${ZSH_VERSION+set}" ; then
18454     setopt NO_GLOB_SUBST
18455   fi
18456   # Now quote all the things that may contain metacharacters while being
18457   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18458   # variables and quote the copies for generation of the libtool script.
18459   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18460     SED SHELL STRIP \
18461     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18462     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18463     deplibs_check_method reload_flag reload_cmds need_locks \
18464     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18465     lt_cv_sys_global_symbol_to_c_name_address \
18466     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18467     old_postinstall_cmds old_postuninstall_cmds \
18468     compiler_GCJ \
18469     CC_GCJ \
18470     LD_GCJ \
18471     lt_prog_compiler_wl_GCJ \
18472     lt_prog_compiler_pic_GCJ \
18473     lt_prog_compiler_static_GCJ \
18474     lt_prog_compiler_no_builtin_flag_GCJ \
18475     export_dynamic_flag_spec_GCJ \
18476     thread_safe_flag_spec_GCJ \
18477     whole_archive_flag_spec_GCJ \
18478     enable_shared_with_static_runtimes_GCJ \
18479     old_archive_cmds_GCJ \
18480     old_archive_from_new_cmds_GCJ \
18481     predep_objects_GCJ \
18482     postdep_objects_GCJ \
18483     predeps_GCJ \
18484     postdeps_GCJ \
18485     compiler_lib_search_path_GCJ \
18486     archive_cmds_GCJ \
18487     archive_expsym_cmds_GCJ \
18488     postinstall_cmds_GCJ \
18489     postuninstall_cmds_GCJ \
18490     old_archive_from_expsyms_cmds_GCJ \
18491     allow_undefined_flag_GCJ \
18492     no_undefined_flag_GCJ \
18493     export_symbols_cmds_GCJ \
18494     hardcode_libdir_flag_spec_GCJ \
18495     hardcode_libdir_flag_spec_ld_GCJ \
18496     hardcode_libdir_separator_GCJ \
18497     hardcode_automatic_GCJ \
18498     module_cmds_GCJ \
18499     module_expsym_cmds_GCJ \
18500     lt_cv_prog_compiler_c_o_GCJ \
18501     fix_srcfile_path_GCJ \
18502     exclude_expsyms_GCJ \
18503     include_expsyms_GCJ; do
18504
18505     case $var in
18506     old_archive_cmds_GCJ | \
18507     old_archive_from_new_cmds_GCJ | \
18508     archive_cmds_GCJ | \
18509     archive_expsym_cmds_GCJ | \
18510     module_cmds_GCJ | \
18511     module_expsym_cmds_GCJ | \
18512     old_archive_from_expsyms_cmds_GCJ | \
18513     export_symbols_cmds_GCJ | \
18514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18515     postinstall_cmds | postuninstall_cmds | \
18516     old_postinstall_cmds | old_postuninstall_cmds | \
18517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18518       # Double-quote double-evaled strings.
18519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18520       ;;
18521     *)
18522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18523       ;;
18524     esac
18525   done
18526
18527   case $lt_echo in
18528   *'\$0 --fallback-echo"')
18529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18530     ;;
18531   esac
18532
18533 cfgfile="$ofile"
18534
18535   cat <<__EOF__ >> "$cfgfile"
18536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18537
18538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18539
18540 # Shell to use when invoking shell scripts.
18541 SHELL=$lt_SHELL
18542
18543 # Whether or not to build shared libraries.
18544 build_libtool_libs=$enable_shared
18545
18546 # Whether or not to build static libraries.
18547 build_old_libs=$enable_static
18548
18549 # Whether or not to add -lc for building shared libraries.
18550 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18551
18552 # Whether or not to disallow shared libs when runtime libs are static
18553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18554
18555 # Whether or not to optimize for fast installation.
18556 fast_install=$enable_fast_install
18557
18558 # The host system.
18559 host_alias=$host_alias
18560 host=$host
18561 host_os=$host_os
18562
18563 # The build system.
18564 build_alias=$build_alias
18565 build=$build
18566 build_os=$build_os
18567
18568 # An echo program that does not interpret backslashes.
18569 echo=$lt_echo
18570
18571 # The archiver.
18572 AR=$lt_AR
18573 AR_FLAGS=$lt_AR_FLAGS
18574
18575 # A C compiler.
18576 LTCC=$lt_LTCC
18577
18578 # LTCC compiler flags.
18579 LTCFLAGS=$lt_LTCFLAGS
18580
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18583
18584 # Is the compiler the GNU C compiler?
18585 with_gcc=$GCC_GCJ
18586
18587 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18588 gcc_ver=\`gcc -dumpversion\`
18589
18590 # An ERE matcher.
18591 EGREP=$lt_EGREP
18592
18593 # The linker used to build libraries.
18594 LD=$lt_LD_GCJ
18595
18596 # Whether we need hard or soft links.
18597 LN_S=$lt_LN_S
18598
18599 # A BSD-compatible nm program.
18600 NM=$lt_NM
18601
18602 # A symbol stripping program
18603 STRIP=$lt_STRIP
18604
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18607
18608 # Used on cygwin: DLL creation program.
18609 DLLTOOL="$DLLTOOL"
18610
18611 # Used on cygwin: object dumper.
18612 OBJDUMP="$OBJDUMP"
18613
18614 # Used on cygwin: assembler.
18615 AS="$AS"
18616
18617 # The name of the directory that contains temporary libtool files.
18618 objdir=$objdir
18619
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18623
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_GCJ
18626
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18629
18630 # Old archive suffix (normally "a").
18631 libext="$libext"
18632
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18635
18636 # Executable file suffix (normally "").
18637 exeext="$exeext"
18638
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18641 pic_mode=$pic_mode
18642
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18645
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18648
18649 # Must we lock files when doing compilation?
18650 need_locks=$lt_need_locks
18651
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18654
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18657
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18660
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18663
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18666
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18669
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18672
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18675
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18678
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18681
18682 # Library versioning type.
18683 version_type=$version_type
18684
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18687
18688 # List of archive names.  First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18691
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18694
18695 # Commands used to build and install an old-style archive.
18696 RANLIB=$lt_RANLIB
18697 old_archive_cmds=$lt_old_archive_cmds_GCJ
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18703
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18706
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_GCJ
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18712
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_GCJ
18715 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18716
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18720
18721 # Dependencies to place before the objects being linked to create a
18722 # shared library.
18723 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18724
18725 # Dependencies to place after the objects being linked to create a
18726 # shared library.
18727 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18728
18729 # Dependencies to place before the objects being linked to create a
18730 # shared library.
18731 predeps=$lt_predeps_GCJ
18732
18733 # Dependencies to place after the objects being linked to create a
18734 # shared library.
18735 postdeps=$lt_postdeps_GCJ
18736
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18740
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18743
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18746
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18749
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_GCJ
18752
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18755
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18758
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18770
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18773
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18776
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_GCJ
18779
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18782
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18786
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18789 # not exist.
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18791
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18794
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_GCJ
18798
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_GCJ
18802
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18806
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_GCJ
18810
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18814
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_GCJ
18817
18818 # Compile-time system search path for libraries
18819 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18820
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path=$lt_fix_srcfile_path
18826
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_GCJ
18829
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18832
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18835
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_GCJ
18838
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_GCJ
18841
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18843
18844 __EOF__
18845
18846
18847 else
18848   # If there is no Makefile yet, we rely on a make rule to execute
18849   # `config.status --recheck' to rerun these tests and create the
18850   # libtool script then.
18851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852   if test -f "$ltmain_in"; then
18853     test -f Makefile && make "$ltmain"
18854   fi
18855 fi
18856
18857
18858 ac_ext=c
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864 CC="$lt_save_CC"
18865
18866         else
18867           tagname=""
18868         fi
18869         ;;
18870
18871       RC)
18872
18873
18874 # Source file extension for RC test sources.
18875 ac_ext=rc
18876
18877 # Object file extension for compiled RC test sources.
18878 objext=o
18879 objext_RC=$objext
18880
18881 # Code to be used in simple compile tests
18882 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18883
18884 # Code to be used in simple link tests
18885 lt_simple_link_test_code="$lt_simple_compile_test_code"
18886
18887 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18888
18889 # If no C compiler was specified, use CC.
18890 LTCC=${LTCC-"$CC"}
18891
18892 # If no C compiler flags were specified, use CFLAGS.
18893 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18894
18895 # Allow CC to be a program name with arguments.
18896 compiler=$CC
18897
18898
18899 # save warnings/boilerplate of simple test code
18900 ac_outfile=conftest.$ac_objext
18901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18903 _lt_compiler_boilerplate=`cat conftest.err`
18904 $rm conftest*
18905
18906 ac_outfile=conftest.$ac_objext
18907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18909 _lt_linker_boilerplate=`cat conftest.err`
18910 $rm conftest*
18911
18912
18913 # Allow CC to be a program name with arguments.
18914 lt_save_CC="$CC"
18915 CC=${RC-"windres"}
18916 compiler=$CC
18917 compiler_RC=$CC
18918 for cc_temp in $compiler""; do
18919   case $cc_temp in
18920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18922     \-*) ;;
18923     *) break;;
18924   esac
18925 done
18926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18927
18928 lt_cv_prog_compiler_c_o_RC=yes
18929
18930 # The else clause should only fire when bootstrapping the
18931 # libtool distribution, otherwise you forgot to ship ltmain.sh
18932 # with your package, and you will get complaints that there are
18933 # no rules to generate ltmain.sh.
18934 if test -f "$ltmain"; then
18935   # See if we are running on zsh, and set the options which allow our commands through
18936   # without removal of \ escapes.
18937   if test -n "${ZSH_VERSION+set}" ; then
18938     setopt NO_GLOB_SUBST
18939   fi
18940   # Now quote all the things that may contain metacharacters while being
18941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18942   # variables and quote the copies for generation of the libtool script.
18943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18944     SED SHELL STRIP \
18945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18947     deplibs_check_method reload_flag reload_cmds need_locks \
18948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18949     lt_cv_sys_global_symbol_to_c_name_address \
18950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18951     old_postinstall_cmds old_postuninstall_cmds \
18952     compiler_RC \
18953     CC_RC \
18954     LD_RC \
18955     lt_prog_compiler_wl_RC \
18956     lt_prog_compiler_pic_RC \
18957     lt_prog_compiler_static_RC \
18958     lt_prog_compiler_no_builtin_flag_RC \
18959     export_dynamic_flag_spec_RC \
18960     thread_safe_flag_spec_RC \
18961     whole_archive_flag_spec_RC \
18962     enable_shared_with_static_runtimes_RC \
18963     old_archive_cmds_RC \
18964     old_archive_from_new_cmds_RC \
18965     predep_objects_RC \
18966     postdep_objects_RC \
18967     predeps_RC \
18968     postdeps_RC \
18969     compiler_lib_search_path_RC \
18970     archive_cmds_RC \
18971     archive_expsym_cmds_RC \
18972     postinstall_cmds_RC \
18973     postuninstall_cmds_RC \
18974     old_archive_from_expsyms_cmds_RC \
18975     allow_undefined_flag_RC \
18976     no_undefined_flag_RC \
18977     export_symbols_cmds_RC \
18978     hardcode_libdir_flag_spec_RC \
18979     hardcode_libdir_flag_spec_ld_RC \
18980     hardcode_libdir_separator_RC \
18981     hardcode_automatic_RC \
18982     module_cmds_RC \
18983     module_expsym_cmds_RC \
18984     lt_cv_prog_compiler_c_o_RC \
18985     fix_srcfile_path_RC \
18986     exclude_expsyms_RC \
18987     include_expsyms_RC; do
18988
18989     case $var in
18990     old_archive_cmds_RC | \
18991     old_archive_from_new_cmds_RC | \
18992     archive_cmds_RC | \
18993     archive_expsym_cmds_RC | \
18994     module_cmds_RC | \
18995     module_expsym_cmds_RC | \
18996     old_archive_from_expsyms_cmds_RC | \
18997     export_symbols_cmds_RC | \
18998     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18999     postinstall_cmds | postuninstall_cmds | \
19000     old_postinstall_cmds | old_postuninstall_cmds | \
19001     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19002       # Double-quote double-evaled strings.
19003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19004       ;;
19005     *)
19006       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19007       ;;
19008     esac
19009   done
19010
19011   case $lt_echo in
19012   *'\$0 --fallback-echo"')
19013     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19014     ;;
19015   esac
19016
19017 cfgfile="$ofile"
19018
19019   cat <<__EOF__ >> "$cfgfile"
19020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19021
19022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19023
19024 # Shell to use when invoking shell scripts.
19025 SHELL=$lt_SHELL
19026
19027 # Whether or not to build shared libraries.
19028 build_libtool_libs=$enable_shared
19029
19030 # Whether or not to build static libraries.
19031 build_old_libs=$enable_static
19032
19033 # Whether or not to add -lc for building shared libraries.
19034 build_libtool_need_lc=$archive_cmds_need_lc_RC
19035
19036 # Whether or not to disallow shared libs when runtime libs are static
19037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19038
19039 # Whether or not to optimize for fast installation.
19040 fast_install=$enable_fast_install
19041
19042 # The host system.
19043 host_alias=$host_alias
19044 host=$host
19045 host_os=$host_os
19046
19047 # The build system.
19048 build_alias=$build_alias
19049 build=$build
19050 build_os=$build_os
19051
19052 # An echo program that does not interpret backslashes.
19053 echo=$lt_echo
19054
19055 # The archiver.
19056 AR=$lt_AR
19057 AR_FLAGS=$lt_AR_FLAGS
19058
19059 # A C compiler.
19060 LTCC=$lt_LTCC
19061
19062 # LTCC compiler flags.
19063 LTCFLAGS=$lt_LTCFLAGS
19064
19065 # A language-specific compiler.
19066 CC=$lt_compiler_RC
19067
19068 # Is the compiler the GNU C compiler?
19069 with_gcc=$GCC_RC
19070
19071 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19072 gcc_ver=\`gcc -dumpversion\`
19073
19074 # An ERE matcher.
19075 EGREP=$lt_EGREP
19076
19077 # The linker used to build libraries.
19078 LD=$lt_LD_RC
19079
19080 # Whether we need hard or soft links.
19081 LN_S=$lt_LN_S
19082
19083 # A BSD-compatible nm program.
19084 NM=$lt_NM
19085
19086 # A symbol stripping program
19087 STRIP=$lt_STRIP
19088
19089 # Used to examine libraries when file_magic_cmd begins "file"
19090 MAGIC_CMD=$MAGIC_CMD
19091
19092 # Used on cygwin: DLL creation program.
19093 DLLTOOL="$DLLTOOL"
19094
19095 # Used on cygwin: object dumper.
19096 OBJDUMP="$OBJDUMP"
19097
19098 # Used on cygwin: assembler.
19099 AS="$AS"
19100
19101 # The name of the directory that contains temporary libtool files.
19102 objdir=$objdir
19103
19104 # How to create reloadable object files.
19105 reload_flag=$lt_reload_flag
19106 reload_cmds=$lt_reload_cmds
19107
19108 # How to pass a linker flag through the compiler.
19109 wl=$lt_lt_prog_compiler_wl_RC
19110
19111 # Object file suffix (normally "o").
19112 objext="$ac_objext"
19113
19114 # Old archive suffix (normally "a").
19115 libext="$libext"
19116
19117 # Shared library suffix (normally ".so").
19118 shrext_cmds='$shrext_cmds'
19119
19120 # Executable file suffix (normally "").
19121 exeext="$exeext"
19122
19123 # Additional compiler flags for building library objects.
19124 pic_flag=$lt_lt_prog_compiler_pic_RC
19125 pic_mode=$pic_mode
19126
19127 # What is the maximum length of a command?
19128 max_cmd_len=$lt_cv_sys_max_cmd_len
19129
19130 # Does compiler simultaneously support -c and -o options?
19131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19132
19133 # Must we lock files when doing compilation?
19134 need_locks=$lt_need_locks
19135
19136 # Do we need the lib prefix for modules?
19137 need_lib_prefix=$need_lib_prefix
19138
19139 # Do we need a version for libraries?
19140 need_version=$need_version
19141
19142 # Whether dlopen is supported.
19143 dlopen_support=$enable_dlopen
19144
19145 # Whether dlopen of programs is supported.
19146 dlopen_self=$enable_dlopen_self
19147
19148 # Whether dlopen of statically linked programs is supported.
19149 dlopen_self_static=$enable_dlopen_self_static
19150
19151 # Compiler flag to prevent dynamic linking.
19152 link_static_flag=$lt_lt_prog_compiler_static_RC
19153
19154 # Compiler flag to turn off builtin functions.
19155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19156
19157 # Compiler flag to allow reflexive dlopens.
19158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19159
19160 # Compiler flag to generate shared objects directly from archives.
19161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19162
19163 # Compiler flag to generate thread-safe objects.
19164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19165
19166 # Library versioning type.
19167 version_type=$version_type
19168
19169 # Format of library name prefix.
19170 libname_spec=$lt_libname_spec
19171
19172 # List of archive names.  First name is the real one, the rest are links.
19173 # The last name is the one that the linker finds with -lNAME.
19174 library_names_spec=$lt_library_names_spec
19175
19176 # The coded name of the library, if different from the real name.
19177 soname_spec=$lt_soname_spec
19178
19179 # Commands used to build and install an old-style archive.
19180 RANLIB=$lt_RANLIB
19181 old_archive_cmds=$lt_old_archive_cmds_RC
19182 old_postinstall_cmds=$lt_old_postinstall_cmds
19183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19184
19185 # Create an old-style archive from a shared archive.
19186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19187
19188 # Create a temporary old-style archive to link instead of a shared archive.
19189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19190
19191 # Commands used to build and install a shared archive.
19192 archive_cmds=$lt_archive_cmds_RC
19193 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19194 postinstall_cmds=$lt_postinstall_cmds
19195 postuninstall_cmds=$lt_postuninstall_cmds
19196
19197 # Commands used to build a loadable module (assumed same as above if empty)
19198 module_cmds=$lt_module_cmds_RC
19199 module_expsym_cmds=$lt_module_expsym_cmds_RC
19200
19201 # Commands to strip libraries.
19202 old_striplib=$lt_old_striplib
19203 striplib=$lt_striplib
19204
19205 # Dependencies to place before the objects being linked to create a
19206 # shared library.
19207 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19208
19209 # Dependencies to place after the objects being linked to create a
19210 # shared library.
19211 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19212
19213 # Dependencies to place before the objects being linked to create a
19214 # shared library.
19215 predeps=$lt_predeps_RC
19216
19217 # Dependencies to place after the objects being linked to create a
19218 # shared library.
19219 postdeps=$lt_postdeps_RC
19220
19221 # The library search path used internally by the compiler when linking
19222 # a shared library.
19223 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19224
19225 # Method to check whether dependent libraries are shared objects.
19226 deplibs_check_method=$lt_deplibs_check_method
19227
19228 # Command to use when deplibs_check_method == file_magic.
19229 file_magic_cmd=$lt_file_magic_cmd
19230
19231 # Flag that allows shared libraries with undefined symbols to be built.
19232 allow_undefined_flag=$lt_allow_undefined_flag_RC
19233
19234 # Flag that forces no undefined symbols.
19235 no_undefined_flag=$lt_no_undefined_flag_RC
19236
19237 # Commands used to finish a libtool library installation in a directory.
19238 finish_cmds=$lt_finish_cmds
19239
19240 # Same as above, but a single script fragment to be evaled but not shown.
19241 finish_eval=$lt_finish_eval
19242
19243 # Take the output of nm and produce a listing of raw symbols and C names.
19244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19245
19246 # Transform the output of nm in a proper C declaration
19247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19248
19249 # Transform the output of nm in a C name address pair
19250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19251
19252 # This is the shared library runtime path variable.
19253 runpath_var=$runpath_var
19254
19255 # This is the shared library path variable.
19256 shlibpath_var=$shlibpath_var
19257
19258 # Is shlibpath searched before the hard-coded library search path?
19259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19260
19261 # How to hardcode a shared library path into an executable.
19262 hardcode_action=$hardcode_action_RC
19263
19264 # Whether we should hardcode library paths into libraries.
19265 hardcode_into_libs=$hardcode_into_libs
19266
19267 # Flag to hardcode \$libdir into a binary during linking.
19268 # This must work even if \$libdir does not exist.
19269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19270
19271 # If ld is used when linking, flag to hardcode \$libdir into
19272 # a binary during linking. This must work even if \$libdir does
19273 # not exist.
19274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19275
19276 # Whether we need a single -rpath flag with a separated argument.
19277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19278
19279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19280 # resulting binary.
19281 hardcode_direct=$hardcode_direct_RC
19282
19283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19284 # resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L_RC
19286
19287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19288 # the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19290
19291 # Set to yes if building a shared library automatically hardcodes DIR into the library
19292 # and all subsequent libraries and executables linked against it.
19293 hardcode_automatic=$hardcode_automatic_RC
19294
19295 # Variables whose values should be saved in libtool wrapper scripts and
19296 # restored at relink time.
19297 variables_saved_for_relink="$variables_saved_for_relink"
19298
19299 # Whether libtool must link a program against all its dependency libraries.
19300 link_all_deplibs=$link_all_deplibs_RC
19301
19302 # Compile-time system search path for libraries
19303 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19304
19305 # Run-time system search path for libraries
19306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19307
19308 # Fix the shell variable \$srcfile for the compiler.
19309 fix_srcfile_path=$lt_fix_srcfile_path
19310
19311 # Set to yes if exported symbols are required.
19312 always_export_symbols=$always_export_symbols_RC
19313
19314 # The commands to list exported symbols.
19315 export_symbols_cmds=$lt_export_symbols_cmds_RC
19316
19317 # The commands to extract the exported symbol list from a shared archive.
19318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19319
19320 # Symbols that should not be listed in the preloaded symbols.
19321 exclude_expsyms=$lt_exclude_expsyms_RC
19322
19323 # Symbols that must always be exported.
19324 include_expsyms=$lt_include_expsyms_RC
19325
19326 # ### END LIBTOOL TAG CONFIG: $tagname
19327
19328 __EOF__
19329
19330
19331 else
19332   # If there is no Makefile yet, we rely on a make rule to execute
19333   # `config.status --recheck' to rerun these tests and create the
19334   # libtool script then.
19335   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19336   if test -f "$ltmain_in"; then
19337     test -f Makefile && make "$ltmain"
19338   fi
19339 fi
19340
19341
19342 ac_ext=c
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19347
19348 CC="$lt_save_CC"
19349
19350         ;;
19351
19352       *)
19353         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19354 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19355    { (exit 1); exit 1; }; }
19356         ;;
19357       esac
19358
19359       # Append the new tag name to the list of available tags.
19360       if test -n "$tagname" ; then
19361       available_tags="$available_tags $tagname"
19362     fi
19363     fi
19364   done
19365   IFS="$lt_save_ifs"
19366
19367   # Now substitute the updated list of available tags.
19368   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19369     mv "${ofile}T" "$ofile"
19370     chmod +x "$ofile"
19371   else
19372     rm -f "${ofile}T"
19373     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19374 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19375    { (exit 1); exit 1; }; }
19376   fi
19377 fi
19378
19379
19380
19381 # This can be used to rebuild libtool when needed
19382 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19383
19384 # Always use our own libtool.
19385 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19386
19387 # Prevent multiple expansion
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409 ac_ext=c
19410 ac_cpp='$CPP $CPPFLAGS'
19411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414
19415
19416 ac_ext=c
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421 if test -n "$ac_tool_prefix"; then
19422   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19426 if test "${ac_cv_prog_CC+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429   if test -n "$CC"; then
19430   ac_cv_prog_CC="$CC" # Let the user override the test.
19431 else
19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19433 for as_dir in $PATH
19434 do
19435   IFS=$as_save_IFS
19436   test -z "$as_dir" && as_dir=.
19437   for ac_exec_ext in '' $ac_executable_extensions; do
19438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19439     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19441     break 2
19442   fi
19443 done
19444 done
19445 IFS=$as_save_IFS
19446
19447 fi
19448 fi
19449 CC=$ac_cv_prog_CC
19450 if test -n "$CC"; then
19451   { echo "$as_me:$LINENO: result: $CC" >&5
19452 echo "${ECHO_T}$CC" >&6; }
19453 else
19454   { echo "$as_me:$LINENO: result: no" >&5
19455 echo "${ECHO_T}no" >&6; }
19456 fi
19457
19458
19459 fi
19460 if test -z "$ac_cv_prog_CC"; then
19461   ac_ct_CC=$CC
19462   # Extract the first word of "gcc", so it can be a program name with args.
19463 set dummy gcc; ac_word=$2
19464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   if test -n "$ac_ct_CC"; then
19470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19471 else
19472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473 for as_dir in $PATH
19474 do
19475   IFS=$as_save_IFS
19476   test -z "$as_dir" && as_dir=.
19477   for ac_exec_ext in '' $ac_executable_extensions; do
19478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19479     ac_cv_prog_ac_ct_CC="gcc"
19480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19481     break 2
19482   fi
19483 done
19484 done
19485 IFS=$as_save_IFS
19486
19487 fi
19488 fi
19489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19490 if test -n "$ac_ct_CC"; then
19491   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19492 echo "${ECHO_T}$ac_ct_CC" >&6; }
19493 else
19494   { echo "$as_me:$LINENO: result: no" >&5
19495 echo "${ECHO_T}no" >&6; }
19496 fi
19497
19498   if test "x$ac_ct_CC" = x; then
19499     CC=""
19500   else
19501     case $cross_compiling:$ac_tool_warned in
19502 yes:)
19503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19504 whose name does not start with the host triplet.  If you think this
19505 configuration is useful to you, please write to autoconf@gnu.org." >&5
19506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19507 whose name does not start with the host triplet.  If you think this
19508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19509 ac_tool_warned=yes ;;
19510 esac
19511     CC=$ac_ct_CC
19512   fi
19513 else
19514   CC="$ac_cv_prog_CC"
19515 fi
19516
19517 if test -z "$CC"; then
19518           if test -n "$ac_tool_prefix"; then
19519     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19520 set dummy ${ac_tool_prefix}cc; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_prog_CC+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   if test -n "$CC"; then
19527   ac_cv_prog_CC="$CC" # Let the user override the test.
19528 else
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19531 do
19532   IFS=$as_save_IFS
19533   test -z "$as_dir" && as_dir=.
19534   for ac_exec_ext in '' $ac_executable_extensions; do
19535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19536     ac_cv_prog_CC="${ac_tool_prefix}cc"
19537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19538     break 2
19539   fi
19540 done
19541 done
19542 IFS=$as_save_IFS
19543
19544 fi
19545 fi
19546 CC=$ac_cv_prog_CC
19547 if test -n "$CC"; then
19548   { echo "$as_me:$LINENO: result: $CC" >&5
19549 echo "${ECHO_T}$CC" >&6; }
19550 else
19551   { echo "$as_me:$LINENO: result: no" >&5
19552 echo "${ECHO_T}no" >&6; }
19553 fi
19554
19555
19556   fi
19557 fi
19558 if test -z "$CC"; then
19559   # Extract the first word of "cc", so it can be a program name with args.
19560 set dummy cc; ac_word=$2
19561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19563 if test "${ac_cv_prog_CC+set}" = set; then
19564   echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566   if test -n "$CC"; then
19567   ac_cv_prog_CC="$CC" # Let the user override the test.
19568 else
19569   ac_prog_rejected=no
19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19572 do
19573   IFS=$as_save_IFS
19574   test -z "$as_dir" && as_dir=.
19575   for ac_exec_ext in '' $ac_executable_extensions; do
19576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19578        ac_prog_rejected=yes
19579        continue
19580      fi
19581     ac_cv_prog_CC="cc"
19582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19583     break 2
19584   fi
19585 done
19586 done
19587 IFS=$as_save_IFS
19588
19589 if test $ac_prog_rejected = yes; then
19590   # We found a bogon in the path, so make sure we never use it.
19591   set dummy $ac_cv_prog_CC
19592   shift
19593   if test $# != 0; then
19594     # We chose a different compiler from the bogus one.
19595     # However, it has the same basename, so the bogon will be chosen
19596     # first if we set CC to just the basename; use the full file name.
19597     shift
19598     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19599   fi
19600 fi
19601 fi
19602 fi
19603 CC=$ac_cv_prog_CC
19604 if test -n "$CC"; then
19605   { echo "$as_me:$LINENO: result: $CC" >&5
19606 echo "${ECHO_T}$CC" >&6; }
19607 else
19608   { echo "$as_me:$LINENO: result: no" >&5
19609 echo "${ECHO_T}no" >&6; }
19610 fi
19611
19612
19613 fi
19614 if test -z "$CC"; then
19615   if test -n "$ac_tool_prefix"; then
19616   for ac_prog in cl.exe
19617   do
19618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19622 if test "${ac_cv_prog_CC+set}" = set; then
19623   echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625   if test -n "$CC"; then
19626   ac_cv_prog_CC="$CC" # Let the user override the test.
19627 else
19628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19629 for as_dir in $PATH
19630 do
19631   IFS=$as_save_IFS
19632   test -z "$as_dir" && as_dir=.
19633   for ac_exec_ext in '' $ac_executable_extensions; do
19634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19637     break 2
19638   fi
19639 done
19640 done
19641 IFS=$as_save_IFS
19642
19643 fi
19644 fi
19645 CC=$ac_cv_prog_CC
19646 if test -n "$CC"; then
19647   { echo "$as_me:$LINENO: result: $CC" >&5
19648 echo "${ECHO_T}$CC" >&6; }
19649 else
19650   { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19652 fi
19653
19654
19655     test -n "$CC" && break
19656   done
19657 fi
19658 if test -z "$CC"; then
19659   ac_ct_CC=$CC
19660   for ac_prog in cl.exe
19661 do
19662   # Extract the first word of "$ac_prog", so it can be a program name with args.
19663 set dummy $ac_prog; ac_word=$2
19664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   if test -n "$ac_ct_CC"; then
19670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19671 else
19672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673 for as_dir in $PATH
19674 do
19675   IFS=$as_save_IFS
19676   test -z "$as_dir" && as_dir=.
19677   for ac_exec_ext in '' $ac_executable_extensions; do
19678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19679     ac_cv_prog_ac_ct_CC="$ac_prog"
19680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19681     break 2
19682   fi
19683 done
19684 done
19685 IFS=$as_save_IFS
19686
19687 fi
19688 fi
19689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19690 if test -n "$ac_ct_CC"; then
19691   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19692 echo "${ECHO_T}$ac_ct_CC" >&6; }
19693 else
19694   { echo "$as_me:$LINENO: result: no" >&5
19695 echo "${ECHO_T}no" >&6; }
19696 fi
19697
19698
19699   test -n "$ac_ct_CC" && break
19700 done
19701
19702   if test "x$ac_ct_CC" = x; then
19703     CC=""
19704   else
19705     case $cross_compiling:$ac_tool_warned in
19706 yes:)
19707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19708 whose name does not start with the host triplet.  If you think this
19709 configuration is useful to you, please write to autoconf@gnu.org." >&5
19710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19711 whose name does not start with the host triplet.  If you think this
19712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19713 ac_tool_warned=yes ;;
19714 esac
19715     CC=$ac_ct_CC
19716   fi
19717 fi
19718
19719 fi
19720
19721
19722 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19723 See \`config.log' for more details." >&5
19724 echo "$as_me: error: no acceptable C compiler found in \$PATH
19725 See \`config.log' for more details." >&2;}
19726    { (exit 1); exit 1; }; }
19727
19728 # Provide some information about the compiler.
19729 echo "$as_me:$LINENO: checking for C compiler version" >&5
19730 ac_compiler=`set X $ac_compile; echo $2`
19731 { (ac_try="$ac_compiler --version >&5"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_compiler --version >&5") 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }
19741 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }
19751 { (ac_try="$ac_compiler -V >&5"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757   (eval "$ac_compiler -V >&5") 2>&5
19758   ac_status=$?
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); }
19761
19762 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19763 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19764 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773
19774 int
19775 main ()
19776 {
19777 #ifndef __GNUC__
19778        choke me
19779 #endif
19780
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_compile") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } && {
19799          test -z "$ac_c_werror_flag" ||
19800          test ! -s conftest.err
19801        } && test -s conftest.$ac_objext; then
19802   ac_compiler_gnu=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         ac_compiler_gnu=no
19808 fi
19809
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19812
19813 fi
19814 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19815 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19816 GCC=`test $ac_compiler_gnu = yes && echo yes`
19817 ac_test_CFLAGS=${CFLAGS+set}
19818 ac_save_CFLAGS=$CFLAGS
19819 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19821 if test "${ac_cv_prog_cc_g+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   ac_save_c_werror_flag=$ac_c_werror_flag
19825    ac_c_werror_flag=yes
19826    ac_cv_prog_cc_g=no
19827    CFLAGS="-g"
19828    cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834
19835 int
19836 main ()
19837 {
19838
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847   *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850   (eval "$ac_compile") 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } && {
19857          test -z "$ac_c_werror_flag" ||
19858          test ! -s conftest.err
19859        } && test -s conftest.$ac_objext; then
19860   ac_cv_prog_cc_g=yes
19861 else
19862   echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865         CFLAGS=""
19866       cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872
19873 int
19874 main ()
19875 {
19876
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_compile") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } && {
19895          test -z "$ac_c_werror_flag" ||
19896          test ! -s conftest.err
19897        } && test -s conftest.$ac_objext; then
19898   :
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903         ac_c_werror_flag=$ac_save_c_werror_flag
19904          CFLAGS="-g"
19905          cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 int
19913 main ()
19914 {
19915
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_compile") 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } && {
19934          test -z "$ac_c_werror_flag" ||
19935          test ! -s conftest.err
19936        } && test -s conftest.$ac_objext; then
19937   ac_cv_prog_cc_g=yes
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 fi
19950
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952    ac_c_werror_flag=$ac_save_c_werror_flag
19953 fi
19954 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19956 if test "$ac_test_CFLAGS" = set; then
19957   CFLAGS=$ac_save_CFLAGS
19958 elif test $ac_cv_prog_cc_g = yes; then
19959   if test "$GCC" = yes; then
19960     CFLAGS="-g -O2"
19961   else
19962     CFLAGS="-g"
19963   fi
19964 else
19965   if test "$GCC" = yes; then
19966     CFLAGS="-O2"
19967   else
19968     CFLAGS=
19969   fi
19970 fi
19971 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19972 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19973 if test "${ac_cv_prog_cc_c89+set}" = set; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976   ac_cv_prog_cc_c89=no
19977 ac_save_CC=$CC
19978 cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 #include <stdarg.h>
19985 #include <stdio.h>
19986 #include <sys/types.h>
19987 #include <sys/stat.h>
19988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19989 struct buf { int x; };
19990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19991 static char *e (p, i)
19992      char **p;
19993      int i;
19994 {
19995   return p[i];
19996 }
19997 static char *f (char * (*g) (char **, int), char **p, ...)
19998 {
19999   char *s;
20000   va_list v;
20001   va_start (v,p);
20002   s = g (p, va_arg (v,int));
20003   va_end (v);
20004   return s;
20005 }
20006
20007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20008    function prototypes and stuff, but not '\xHH' hex character constants.
20009    These don't provoke an error unfortunately, instead are silently treated
20010    as 'x'.  The following induces an error, until -std is added to get
20011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20012    array size at least.  It's necessary to write '\x00'==0 to get something
20013    that's true only with -std.  */
20014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20015
20016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20017    inside strings and character constants.  */
20018 #define FOO(x) 'x'
20019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20020
20021 int test (int i, double x);
20022 struct s1 {int (*f) (int a);};
20023 struct s2 {int (*f) (double a);};
20024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20025 int argc;
20026 char **argv;
20027 int
20028 main ()
20029 {
20030 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20036         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20037 do
20038   CC="$ac_save_CC $ac_arg"
20039   rm -f conftest.$ac_objext
20040 if { (ac_try="$ac_compile"
20041 case "(($ac_try" in
20042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043   *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046   (eval "$ac_compile") 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } && {
20053          test -z "$ac_c_werror_flag" ||
20054          test ! -s conftest.err
20055        } && test -s conftest.$ac_objext; then
20056   ac_cv_prog_cc_c89=$ac_arg
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext
20065   test "x$ac_cv_prog_cc_c89" != "xno" && break
20066 done
20067 rm -f conftest.$ac_ext
20068 CC=$ac_save_CC
20069
20070 fi
20071 # AC_CACHE_VAL
20072 case "x$ac_cv_prog_cc_c89" in
20073   x)
20074     { echo "$as_me:$LINENO: result: none needed" >&5
20075 echo "${ECHO_T}none needed" >&6; } ;;
20076   xno)
20077     { echo "$as_me:$LINENO: result: unsupported" >&5
20078 echo "${ECHO_T}unsupported" >&6; } ;;
20079   *)
20080     CC="$CC $ac_cv_prog_cc_c89"
20081     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20082 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20083 esac
20084
20085
20086 ac_ext=c
20087 ac_cpp='$CPP $CPPFLAGS'
20088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20091
20092 depcc="$CC"   am_compiler_list=
20093
20094 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20095 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20096 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20100   # We make a subdir and do the tests there.  Otherwise we can end up
20101   # making bogus files that we don't know about and never remove.  For
20102   # instance it was reported that on HP-UX the gcc test will end up
20103   # making a dummy file named `D' -- because `-MD' means `put the output
20104   # in D'.
20105   mkdir conftest.dir
20106   # Copy depcomp to subdir because otherwise we won't find it if we're
20107   # using a relative directory.
20108   cp "$am_depcomp" conftest.dir
20109   cd conftest.dir
20110   # We will build objects and dependencies in a subdirectory because
20111   # it helps to detect inapplicable dependency modes.  For instance
20112   # both Tru64's cc and ICC support -MD to output dependencies as a
20113   # side effect of compilation, but ICC will put the dependencies in
20114   # the current directory while Tru64 will put them in the object
20115   # directory.
20116   mkdir sub
20117
20118   am_cv_CC_dependencies_compiler_type=none
20119   if test "$am_compiler_list" = ""; then
20120      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20121   fi
20122   for depmode in $am_compiler_list; do
20123     # Setup a source with many dependencies, because some compilers
20124     # like to wrap large dependency lists on column 80 (with \), and
20125     # we should not choose a depcomp mode which is confused by this.
20126     #
20127     # We need to recreate these files for each test, as the compiler may
20128     # overwrite some of them when testing with obscure command lines.
20129     # This happens at least with the AIX C compiler.
20130     : > sub/conftest.c
20131     for i in 1 2 3 4 5 6; do
20132       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20133       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20134       # Solaris 8's {/usr,}/bin/sh.
20135       touch sub/conftst$i.h
20136     done
20137     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20138
20139     case $depmode in
20140     nosideeffect)
20141       # after this tag, mechanisms are not by side-effect, so they'll
20142       # only be used when explicitly requested
20143       if test "x$enable_dependency_tracking" = xyes; then
20144         continue
20145       else
20146         break
20147       fi
20148       ;;
20149     none) break ;;
20150     esac
20151     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20152     # mode.  It turns out that the SunPro C++ compiler does not properly
20153     # handle `-M -o', and we need to detect this.
20154     if depmode=$depmode \
20155        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20156        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20157        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20158          >/dev/null 2>conftest.err &&
20159        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20160        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20161        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20162        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20163       # icc doesn't choke on unknown options, it will just issue warnings
20164       # or remarks (even with -Werror).  So we grep stderr for any message
20165       # that says an option was ignored or not supported.
20166       # When given -MP, icc 7.0 and 7.1 complain thusly:
20167       #   icc: Command line warning: ignoring option '-M'; no argument required
20168       # The diagnosis changed in icc 8.0:
20169       #   icc: Command line remark: option '-MP' not supported
20170       if (grep 'ignoring option' conftest.err ||
20171           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20172         am_cv_CC_dependencies_compiler_type=$depmode
20173         break
20174       fi
20175     fi
20176   done
20177
20178   cd ..
20179   rm -rf conftest.dir
20180 else
20181   am_cv_CC_dependencies_compiler_type=none
20182 fi
20183
20184 fi
20185 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20186 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20187 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20188
20189  if
20190   test "x$enable_dependency_tracking" != xno \
20191   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20192   am__fastdepCC_TRUE=
20193   am__fastdepCC_FALSE='#'
20194 else
20195   am__fastdepCC_TRUE='#'
20196   am__fastdepCC_FALSE=
20197 fi
20198
20199
20200
20201 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20202 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20203 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20204 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   cat >conftest.make <<\_ACEOF
20208 SHELL = /bin/sh
20209 all:
20210         @echo '@@@%%%=$(MAKE)=@@@%%%'
20211 _ACEOF
20212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20214   *@@@%%%=?*=@@@%%%*)
20215     eval ac_cv_prog_make_${ac_make}_set=yes;;
20216   *)
20217     eval ac_cv_prog_make_${ac_make}_set=no;;
20218 esac
20219 rm -f conftest.make
20220 fi
20221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20222   { echo "$as_me:$LINENO: result: yes" >&5
20223 echo "${ECHO_T}yes" >&6; }
20224   SET_MAKE=
20225 else
20226   { echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6; }
20228   SET_MAKE="MAKE=${MAKE-make}"
20229 fi
20230
20231
20232 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20234 if test "${ac_cv_header_stdc+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 #include <stdlib.h>
20244 #include <stdarg.h>
20245 #include <string.h>
20246 #include <float.h>
20247
20248 int
20249 main ()
20250 {
20251
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (ac_try="$ac_compile"
20258 case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_compile") 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } && {
20270          test -z "$ac_c_werror_flag" ||
20271          test ! -s conftest.err
20272        } && test -s conftest.$ac_objext; then
20273   ac_cv_header_stdc=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278         ac_cv_header_stdc=no
20279 fi
20280
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282
20283 if test $ac_cv_header_stdc = yes; then
20284   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20285   cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 #include <string.h>
20292
20293 _ACEOF
20294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20295   $EGREP "memchr" >/dev/null 2>&1; then
20296   :
20297 else
20298   ac_cv_header_stdc=no
20299 fi
20300 rm -f conftest*
20301
20302 fi
20303
20304 if test $ac_cv_header_stdc = yes; then
20305   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312 #include <stdlib.h>
20313
20314 _ACEOF
20315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20316   $EGREP "free" >/dev/null 2>&1; then
20317   :
20318 else
20319   ac_cv_header_stdc=no
20320 fi
20321 rm -f conftest*
20322
20323 fi
20324
20325 if test $ac_cv_header_stdc = yes; then
20326   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20327   if test "$cross_compiling" = yes; then
20328   :
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 #include <ctype.h>
20337 #include <stdlib.h>
20338 #if ((' ' & 0x0FF) == 0x020)
20339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20341 #else
20342 # define ISLOWER(c) \
20343                    (('a' <= (c) && (c) <= 'i') \
20344                      || ('j' <= (c) && (c) <= 'r') \
20345                      || ('s' <= (c) && (c) <= 'z'))
20346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20347 #endif
20348
20349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20350 int
20351 main ()
20352 {
20353   int i;
20354   for (i = 0; i < 256; i++)
20355     if (XOR (islower (i), ISLOWER (i))
20356         || toupper (i) != TOUPPER (i))
20357       return 2;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_link") 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20372   { (case "(($ac_try" in
20373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374   *) ac_try_echo=$ac_try;;
20375 esac
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377   (eval "$ac_try") 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   :
20382 else
20383   echo "$as_me: program exited with status $ac_status" >&5
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ( exit $ac_status )
20388 ac_cv_header_stdc=no
20389 fi
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20391 fi
20392
20393
20394 fi
20395 fi
20396 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20397 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20398 if test $ac_cv_header_stdc = yes; then
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define STDC_HEADERS 1
20402 _ACEOF
20403
20404 fi
20405
20406
20407
20408
20409
20410
20411
20412 ac_header_dirent=no
20413 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20414   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20415 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20416 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420   cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426 #include <sys/types.h>
20427 #include <$ac_hdr>
20428
20429 int
20430 main ()
20431 {
20432 if ((DIR *) 0)
20433 return 0;
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_compile") 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && {
20452          test -z "$ac_c_werror_flag" ||
20453          test ! -s conftest.err
20454        } && test -s conftest.$ac_objext; then
20455   eval "$as_ac_Header=yes"
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         eval "$as_ac_Header=no"
20461 fi
20462
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 fi
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466                { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20469   cat >>confdefs.h <<_ACEOF
20470 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20471 _ACEOF
20472
20473 ac_header_dirent=$ac_hdr; break
20474 fi
20475
20476 done
20477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20478 if test $ac_header_dirent = dirent.h; then
20479   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20480 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20481 if test "${ac_cv_search_opendir+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   ac_func_search_save_LIBS=$LIBS
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491
20492 /* Override any GCC internal prototype to avoid an error.
20493    Use char because int might match the return type of a GCC
20494    builtin and then its argument prototype would still apply.  */
20495 #ifdef __cplusplus
20496 extern "C"
20497 #endif
20498 char opendir ();
20499 int
20500 main ()
20501 {
20502 return opendir ();
20503   ;
20504   return 0;
20505 }
20506 _ACEOF
20507 for ac_lib in '' dir; do
20508   if test -z "$ac_lib"; then
20509     ac_res="none required"
20510   else
20511     ac_res=-l$ac_lib
20512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20513   fi
20514   rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_link") 2>conftest.er1
20522   ac_status=$?
20523   grep -v '^ *+' conftest.er1 >conftest.err
20524   rm -f conftest.er1
20525   cat conftest.err >&5
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } && {
20528          test -z "$ac_c_werror_flag" ||
20529          test ! -s conftest.err
20530        } && test -s conftest$ac_exeext &&
20531        $as_test_x conftest$ac_exeext; then
20532   ac_cv_search_opendir=$ac_res
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541       conftest$ac_exeext
20542   if test "${ac_cv_search_opendir+set}" = set; then
20543   break
20544 fi
20545 done
20546 if test "${ac_cv_search_opendir+set}" = set; then
20547   :
20548 else
20549   ac_cv_search_opendir=no
20550 fi
20551 rm conftest.$ac_ext
20552 LIBS=$ac_func_search_save_LIBS
20553 fi
20554 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20555 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20556 ac_res=$ac_cv_search_opendir
20557 if test "$ac_res" != no; then
20558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20559
20560 fi
20561
20562 else
20563   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20564 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20565 if test "${ac_cv_search_opendir+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   ac_func_search_save_LIBS=$LIBS
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575
20576 /* Override any GCC internal prototype to avoid an error.
20577    Use char because int might match the return type of a GCC
20578    builtin and then its argument prototype would still apply.  */
20579 #ifdef __cplusplus
20580 extern "C"
20581 #endif
20582 char opendir ();
20583 int
20584 main ()
20585 {
20586 return opendir ();
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 for ac_lib in '' x; do
20592   if test -z "$ac_lib"; then
20593     ac_res="none required"
20594   else
20595     ac_res=-l$ac_lib
20596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20597   fi
20598   rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_link") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && {
20612          test -z "$ac_c_werror_flag" ||
20613          test ! -s conftest.err
20614        } && test -s conftest$ac_exeext &&
20615        $as_test_x conftest$ac_exeext; then
20616   ac_cv_search_opendir=$ac_res
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621
20622 fi
20623
20624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20625       conftest$ac_exeext
20626   if test "${ac_cv_search_opendir+set}" = set; then
20627   break
20628 fi
20629 done
20630 if test "${ac_cv_search_opendir+set}" = set; then
20631   :
20632 else
20633   ac_cv_search_opendir=no
20634 fi
20635 rm conftest.$ac_ext
20636 LIBS=$ac_func_search_save_LIBS
20637 fi
20638 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20639 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20640 ac_res=$ac_cv_search_opendir
20641 if test "$ac_res" != no; then
20642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20643
20644 fi
20645
20646 fi
20647
20648
20649
20650 for ac_header in unistd.h
20651 do
20652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20657   echo $ECHO_N "(cached) $ECHO_C" >&6
20658 fi
20659 ac_res=`eval echo '${'$as_ac_Header'}'`
20660                { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 else
20663   # Is the header compilable?
20664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 $ac_includes_default
20673 #include <$ac_header>
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_compile") 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } && {
20689          test -z "$ac_c_werror_flag" ||
20690          test ! -s conftest.err
20691        } && test -s conftest.$ac_objext; then
20692   ac_header_compiler=yes
20693 else
20694   echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20696
20697         ac_header_compiler=no
20698 fi
20699
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20702 echo "${ECHO_T}$ac_header_compiler" >&6; }
20703
20704 # Is the header present?
20705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 #include <$ac_header>
20714 _ACEOF
20715 if { (ac_try="$ac_cpp conftest.$ac_ext"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } >/dev/null && {
20728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20729          test ! -s conftest.err
20730        }; then
20731   ac_header_preproc=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736   ac_header_preproc=no
20737 fi
20738
20739 rm -f conftest.err conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20741 echo "${ECHO_T}$ac_header_preproc" >&6; }
20742
20743 # So?  What about this header?
20744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20745   yes:no: )
20746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20750     ac_header_preproc=yes
20751     ;;
20752   no:yes:* )
20753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20765
20766     ;;
20767 esac
20768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773   eval "$as_ac_Header=\$ac_header_preproc"
20774 fi
20775 ac_res=`eval echo '${'$as_ac_Header'}'`
20776                { echo "$as_me:$LINENO: result: $ac_res" >&5
20777 echo "${ECHO_T}$ac_res" >&6; }
20778
20779 fi
20780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20781   cat >>confdefs.h <<_ACEOF
20782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20783 _ACEOF
20784
20785 else
20786   { { echo "$as_me:$LINENO: error: required header file missing" >&5
20787 echo "$as_me: error: required header file missing" >&2;}
20788    { (exit 1); exit 1; }; }
20789 fi
20790
20791 done
20792
20793
20794
20795
20796
20797
20798 for ac_header in sys/stat.h sys/wait.h sys/time.h sys/timeb.h
20799 do
20800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20802   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805   echo $ECHO_N "(cached) $ECHO_C" >&6
20806 fi
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808                { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20810 else
20811   # Is the header compilable?
20812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h.  */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h.  */
20820 $ac_includes_default
20821 #include <$ac_header>
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_compile") 2>conftest.er1
20831   ac_status=$?
20832   grep -v '^ *+' conftest.er1 >conftest.err
20833   rm -f conftest.er1
20834   cat conftest.err >&5
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && {
20837          test -z "$ac_c_werror_flag" ||
20838          test ! -s conftest.err
20839        } && test -s conftest.$ac_objext; then
20840   ac_header_compiler=yes
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845         ac_header_compiler=no
20846 fi
20847
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20850 echo "${ECHO_T}$ac_header_compiler" >&6; }
20851
20852 # Is the header present?
20853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20855 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <$ac_header>
20862 _ACEOF
20863 if { (ac_try="$ac_cpp conftest.$ac_ext"
20864 case "(($ac_try" in
20865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866   *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20870   ac_status=$?
20871   grep -v '^ *+' conftest.er1 >conftest.err
20872   rm -f conftest.er1
20873   cat conftest.err >&5
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); } >/dev/null && {
20876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877          test ! -s conftest.err
20878        }; then
20879   ac_header_preproc=yes
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884   ac_header_preproc=no
20885 fi
20886
20887 rm -f conftest.err conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6; }
20890
20891 # So?  What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20893   yes:no: )
20894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20898     ac_header_preproc=yes
20899     ;;
20900   no:yes:* )
20901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20913
20914     ;;
20915 esac
20916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20919   echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921   eval "$as_ac_Header=\$ac_header_preproc"
20922 fi
20923 ac_res=`eval echo '${'$as_ac_Header'}'`
20924                { echo "$as_me:$LINENO: result: $ac_res" >&5
20925 echo "${ECHO_T}$ac_res" >&6; }
20926
20927 fi
20928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20929   cat >>confdefs.h <<_ACEOF
20930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931 _ACEOF
20932
20933 fi
20934
20935 done
20936
20937
20938 # Check whether --enable-lua was given.
20939 if test "${enable_lua+set}" = set; then
20940   enableval=$enable_lua; case "${enableval}" in
20941        yes) lua=true ;;
20942        no)  lua=false ;;
20943        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-lua" >&5
20944 echo "$as_me: error: bad value ${enableval} for --enable-lua" >&2;}
20945    { (exit 1); exit 1; }; } ;;
20946      esac
20947 else
20948   lua=false
20949 fi
20950
20951
20952
20953 for ac_header in lua.h
20954 do
20955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 fi
20962 ac_res=`eval echo '${'$as_ac_Header'}'`
20963                { echo "$as_me:$LINENO: result: $ac_res" >&5
20964 echo "${ECHO_T}$ac_res" >&6; }
20965 else
20966   # Is the header compilable?
20967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 $ac_includes_default
20976 #include <$ac_header>
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_compile") 2>conftest.er1
20986   ac_status=$?
20987   grep -v '^ *+' conftest.er1 >conftest.err
20988   rm -f conftest.er1
20989   cat conftest.err >&5
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } && {
20992          test -z "$ac_c_werror_flag" ||
20993          test ! -s conftest.err
20994        } && test -s conftest.$ac_objext; then
20995   ac_header_compiler=yes
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_header_compiler=no
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005 echo "${ECHO_T}$ac_header_compiler" >&6; }
21006
21007 # Is the header present?
21008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 #include <$ac_header>
21017 _ACEOF
21018 if { (ac_try="$ac_cpp conftest.$ac_ext"
21019 case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } >/dev/null && {
21031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21032          test ! -s conftest.err
21033        }; then
21034   ac_header_preproc=yes
21035 else
21036   echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039   ac_header_preproc=no
21040 fi
21041
21042 rm -f conftest.err conftest.$ac_ext
21043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21044 echo "${ECHO_T}$ac_header_preproc" >&6; }
21045
21046 # So?  What about this header?
21047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21048   yes:no: )
21049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21053     ac_header_preproc=yes
21054     ;;
21055   no:yes:* )
21056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21068
21069     ;;
21070 esac
21071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076   eval "$as_ac_Header=\$ac_header_preproc"
21077 fi
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079                { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21081
21082 fi
21083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21084   cat >>confdefs.h <<_ACEOF
21085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21086 _ACEOF
21087
21088 else
21089   lua=false
21090 fi
21091
21092 done
21093
21094
21095 if test x$lua = xtrue; then
21096   { echo "$as_me:$LINENO: Will build the Lua module" >&5
21097 echo "$as_me: Will build the Lua module" >&6;}
21098 else
21099   { echo "$as_me:$LINENO: Skipping the lua module" >&5
21100 echo "$as_me: Skipping the lua module" >&6;}
21101 fi
21102
21103
21104  if test x$lua = xtrue; then
21105   WITH_LUA_TRUE=
21106   WITH_LUA_FALSE='#'
21107 else
21108   WITH_LUA_TRUE='#'
21109   WITH_LUA_FALSE=
21110 fi
21111
21112
21113
21114
21115 for ac_func in access atoi
21116 do
21117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21131 #define $ac_func innocuous_$ac_func
21132
21133 /* System header to define __stub macros and hopefully few prototypes,
21134     which can conflict with char $ac_func (); below.
21135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21136     <limits.h> exists even on freestanding compilers.  */
21137
21138 #ifdef __STDC__
21139 # include <limits.h>
21140 #else
21141 # include <assert.h>
21142 #endif
21143
21144 #undef $ac_func
21145
21146 /* Override any GCC internal prototype to avoid an error.
21147    Use char because int might match the return type of a GCC
21148    builtin and then its argument prototype would still apply.  */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char $ac_func ();
21153 /* The GNU C library defines this for functions which it implements
21154     to always fail with ENOSYS.  Some functions are actually named
21155     something starting with __ and the normal name is an alias.  */
21156 #if defined __stub_$ac_func || defined __stub___$ac_func
21157 choke me
21158 #endif
21159
21160 int
21161 main ()
21162 {
21163 return $ac_func ();
21164   ;
21165   return 0;
21166 }
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172   *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175   (eval "$ac_link") 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } && {
21182          test -z "$ac_c_werror_flag" ||
21183          test ! -s conftest.err
21184        } && test -s conftest$ac_exeext &&
21185        $as_test_x conftest$ac_exeext; then
21186   eval "$as_ac_var=yes"
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191         eval "$as_ac_var=no"
21192 fi
21193
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195       conftest$ac_exeext conftest.$ac_ext
21196 fi
21197 ac_res=`eval echo '${'$as_ac_var'}'`
21198                { echo "$as_me:$LINENO: result: $ac_res" >&5
21199 echo "${ECHO_T}$ac_res" >&6; }
21200 if test `eval echo '${'$as_ac_var'}'` = yes; then
21201   cat >>confdefs.h <<_ACEOF
21202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21203 _ACEOF
21204
21205 else
21206   { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
21207 echo "$as_me: error: required standard library function missing" >&2;}
21208    { (exit 1); exit 1; }; }
21209 fi
21210 done
21211
21212
21213
21214
21215
21216
21217
21218 for ac_func in snprintf gettimeofday ftime mkstemp mktemp
21219 do
21220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21224   echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226   cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21234 #define $ac_func innocuous_$ac_func
21235
21236 /* System header to define __stub macros and hopefully few prototypes,
21237     which can conflict with char $ac_func (); below.
21238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21239     <limits.h> exists even on freestanding compilers.  */
21240
21241 #ifdef __STDC__
21242 # include <limits.h>
21243 #else
21244 # include <assert.h>
21245 #endif
21246
21247 #undef $ac_func
21248
21249 /* Override any GCC internal prototype to avoid an error.
21250    Use char because int might match the return type of a GCC
21251    builtin and then its argument prototype would still apply.  */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 char $ac_func ();
21256 /* The GNU C library defines this for functions which it implements
21257     to always fail with ENOSYS.  Some functions are actually named
21258     something starting with __ and the normal name is an alias.  */
21259 #if defined __stub_$ac_func || defined __stub___$ac_func
21260 choke me
21261 #endif
21262
21263 int
21264 main ()
21265 {
21266 return $ac_func ();
21267   ;
21268   return 0;
21269 }
21270 _ACEOF
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (ac_try="$ac_link"
21273 case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_link") 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && {
21285          test -z "$ac_c_werror_flag" ||
21286          test ! -s conftest.err
21287        } && test -s conftest$ac_exeext &&
21288        $as_test_x conftest$ac_exeext; then
21289   eval "$as_ac_var=yes"
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294         eval "$as_ac_var=no"
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21298       conftest$ac_exeext conftest.$ac_ext
21299 fi
21300 ac_res=`eval echo '${'$as_ac_var'}'`
21301                { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21303 if test `eval echo '${'$as_ac_var'}'` = yes; then
21304   cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21306 _ACEOF
21307
21308 fi
21309 done
21310
21311
21312
21313
21314 { echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
21315 echo $ECHO_N "checking for st_mtim in struct stat... $ECHO_C" >&6; }
21316 if test "${ac_cv_struct_st_mtim+set}" = set; then
21317   echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319   cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 #include <sys/types.h>
21326 #include <sys/stat.h>
21327 int
21328 main ()
21329 {
21330 struct stat s; s.st_mtim;
21331   ;
21332   return 0;
21333 }
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (ac_try="$ac_compile"
21337 case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_compile") 2>conftest.er1
21343   ac_status=$?
21344   grep -v '^ *+' conftest.er1 >conftest.err
21345   rm -f conftest.er1
21346   cat conftest.err >&5
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } && {
21349          test -z "$ac_c_werror_flag" ||
21350          test ! -s conftest.err
21351        } && test -s conftest.$ac_objext; then
21352   ac_cv_struct_st_mtim=yes
21353 else
21354   echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357         ac_cv_struct_st_mtim=no
21358 fi
21359
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 fi
21362 { echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
21363 echo "${ECHO_T}$ac_cv_struct_st_mtim" >&6; }
21364 if test $ac_cv_struct_st_mtim = yes; then
21365
21366 cat >>confdefs.h <<\_ACEOF
21367 #define HAVE_ST_MTIM 1
21368 _ACEOF
21369
21370 fi
21371
21372
21373
21374 ac_config_files="$ac_config_files Makefile"
21375
21376 cat >confcache <<\_ACEOF
21377 # This file is a shell script that caches the results of configure
21378 # tests run on this system so they can be shared between configure
21379 # scripts and configure runs, see configure's option --config-cache.
21380 # It is not useful on other systems.  If it contains results you don't
21381 # want to keep, you may remove or edit it.
21382 #
21383 # config.status only pays attention to the cache file if you give it
21384 # the --recheck option to rerun configure.
21385 #
21386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21388 # following values.
21389
21390 _ACEOF
21391
21392 # The following way of writing the cache mishandles newlines in values,
21393 # but we know of no workaround that is simple, portable, and efficient.
21394 # So, we kill variables containing newlines.
21395 # Ultrix sh set writes to stderr and can't be redirected directly,
21396 # and sets the high bit in the cache file unless we assign to the vars.
21397 (
21398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21399     eval ac_val=\$$ac_var
21400     case $ac_val in #(
21401     *${as_nl}*)
21402       case $ac_var in #(
21403       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21405       esac
21406       case $ac_var in #(
21407       _ | IFS | as_nl) ;; #(
21408       *) $as_unset $ac_var ;;
21409       esac ;;
21410     esac
21411   done
21412
21413   (set) 2>&1 |
21414     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415     *${as_nl}ac_space=\ *)
21416       # `set' does not quote correctly, so add quotes (double-quote
21417       # substitution turns \\\\ into \\, and sed turns \\ into \).
21418       sed -n \
21419         "s/'/'\\\\''/g;
21420           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21421       ;; #(
21422     *)
21423       # `set' quotes correctly as required by POSIX, so do not add quotes.
21424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21425       ;;
21426     esac |
21427     sort
21428 ) |
21429   sed '
21430      /^ac_cv_env_/b end
21431      t clear
21432      :clear
21433      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21434      t end
21435      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21436      :end' >>confcache
21437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438   if test -w "$cache_file"; then
21439     test "x$cache_file" != "x/dev/null" &&
21440       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21441 echo "$as_me: updating cache $cache_file" >&6;}
21442     cat confcache >$cache_file
21443   else
21444     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21446   fi
21447 fi
21448 rm -f confcache
21449
21450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21451 # Let make expand exec_prefix.
21452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21453
21454 DEFS=-DHAVE_CONFIG_H
21455
21456 ac_libobjs=
21457 ac_ltlibobjs=
21458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21459   # 1. Remove the extension, and $U if already installed.
21460   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21461   ac_i=`echo "$ac_i" | sed "$ac_script"`
21462   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21463   #    will be set to the directory where LIBOBJS objects are built.
21464   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21465   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21466 done
21467 LIBOBJS=$ac_libobjs
21468
21469 LTLIBOBJS=$ac_ltlibobjs
21470
21471
21472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21473   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21474 Usually this means the macro was only invoked conditionally." >&5
21475 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21476 Usually this means the macro was only invoked conditionally." >&2;}
21477    { (exit 1); exit 1; }; }
21478 fi
21479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21480   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&5
21482 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21483 Usually this means the macro was only invoked conditionally." >&2;}
21484    { (exit 1); exit 1; }; }
21485 fi
21486 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21487   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21488 Usually this means the macro was only invoked conditionally." >&5
21489 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21490 Usually this means the macro was only invoked conditionally." >&2;}
21491    { (exit 1); exit 1; }; }
21492 fi
21493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21494   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21495 Usually this means the macro was only invoked conditionally." >&5
21496 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21497 Usually this means the macro was only invoked conditionally." >&2;}
21498    { (exit 1); exit 1; }; }
21499 fi
21500 if test -z "${WITH_LUA_TRUE}" && test -z "${WITH_LUA_FALSE}"; then
21501   { { echo "$as_me:$LINENO: error: conditional \"WITH_LUA\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"WITH_LUA\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505    { (exit 1); exit 1; }; }
21506 fi
21507
21508 : ${CONFIG_STATUS=./config.status}
21509 ac_clean_files_save=$ac_clean_files
21510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21513 cat >$CONFIG_STATUS <<_ACEOF
21514 #! $SHELL
21515 # Generated by $as_me.
21516 # Run this file to recreate the current configuration.
21517 # Compiler output produced by configure, useful for debugging
21518 # configure, is in config.log if it exists.
21519
21520 debug=false
21521 ac_cs_recheck=false
21522 ac_cs_silent=false
21523 SHELL=\${CONFIG_SHELL-$SHELL}
21524 _ACEOF
21525
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 ## --------------------- ##
21528 ## M4sh Initialization.  ##
21529 ## --------------------- ##
21530
21531 # Be more Bourne compatible
21532 DUALCASE=1; export DUALCASE # for MKS sh
21533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21534   emulate sh
21535   NULLCMD=:
21536   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21537   # is contrary to our usage.  Disable this feature.
21538   alias -g '${1+"$@"}'='"$@"'
21539   setopt NO_GLOB_SUBST
21540 else
21541   case `(set -o) 2>/dev/null` in
21542   *posix*) set -o posix ;;
21543 esac
21544
21545 fi
21546
21547
21548
21549
21550 # PATH needs CR
21551 # Avoid depending upon Character Ranges.
21552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21555 as_cr_digits='0123456789'
21556 as_cr_alnum=$as_cr_Letters$as_cr_digits
21557
21558 # The user is always right.
21559 if test "${PATH_SEPARATOR+set}" != set; then
21560   echo "#! /bin/sh" >conf$$.sh
21561   echo  "exit 0"   >>conf$$.sh
21562   chmod +x conf$$.sh
21563   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21564     PATH_SEPARATOR=';'
21565   else
21566     PATH_SEPARATOR=:
21567   fi
21568   rm -f conf$$.sh
21569 fi
21570
21571 # Support unset when possible.
21572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21573   as_unset=unset
21574 else
21575   as_unset=false
21576 fi
21577
21578
21579 # IFS
21580 # We need space, tab and new line, in precisely that order.  Quoting is
21581 # there to prevent editors from complaining about space-tab.
21582 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21583 # splitting by setting IFS to empty value.)
21584 as_nl='
21585 '
21586 IFS=" ""        $as_nl"
21587
21588 # Find who we are.  Look in the path if we contain no directory separator.
21589 case $0 in
21590   *[\\/]* ) as_myself=$0 ;;
21591   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in $PATH
21593 do
21594   IFS=$as_save_IFS
21595   test -z "$as_dir" && as_dir=.
21596   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21597 done
21598 IFS=$as_save_IFS
21599
21600      ;;
21601 esac
21602 # We did not find ourselves, most probably we were run as `sh COMMAND'
21603 # in which case we are not to be found in the path.
21604 if test "x$as_myself" = x; then
21605   as_myself=$0
21606 fi
21607 if test ! -f "$as_myself"; then
21608   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21609   { (exit 1); exit 1; }
21610 fi
21611
21612 # Work around bugs in pre-3.0 UWIN ksh.
21613 for as_var in ENV MAIL MAILPATH
21614 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21615 done
21616 PS1='$ '
21617 PS2='> '
21618 PS4='+ '
21619
21620 # NLS nuisances.
21621 for as_var in \
21622   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21623   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21624   LC_TELEPHONE LC_TIME
21625 do
21626   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21627     eval $as_var=C; export $as_var
21628   else
21629     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21630   fi
21631 done
21632
21633 # Required to use basename.
21634 if expr a : '\(a\)' >/dev/null 2>&1 &&
21635    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21636   as_expr=expr
21637 else
21638   as_expr=false
21639 fi
21640
21641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21642   as_basename=basename
21643 else
21644   as_basename=false
21645 fi
21646
21647
21648 # Name of the executable.
21649 as_me=`$as_basename -- "$0" ||
21650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21651          X"$0" : 'X\(//\)$' \| \
21652          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21653 echo X/"$0" |
21654     sed '/^.*\/\([^/][^/]*\)\/*$/{
21655             s//\1/
21656             q
21657           }
21658           /^X\/\(\/\/\)$/{
21659             s//\1/
21660             q
21661           }
21662           /^X\/\(\/\).*/{
21663             s//\1/
21664             q
21665           }
21666           s/.*/./; q'`
21667
21668 # CDPATH.
21669 $as_unset CDPATH
21670
21671
21672
21673   as_lineno_1=$LINENO
21674   as_lineno_2=$LINENO
21675   test "x$as_lineno_1" != "x$as_lineno_2" &&
21676   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21677
21678   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21679   # uniformly replaced by the line number.  The first 'sed' inserts a
21680   # line-number line after each line using $LINENO; the second 'sed'
21681   # does the real work.  The second script uses 'N' to pair each
21682   # line-number line with the line containing $LINENO, and appends
21683   # trailing '-' during substitution so that $LINENO is not a special
21684   # case at line end.
21685   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21686   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21687   # E. McMahon (1931-1989) for sed's syntax.  :-)
21688   sed -n '
21689     p
21690     /[$]LINENO/=
21691   ' <$as_myself |
21692     sed '
21693       s/[$]LINENO.*/&-/
21694       t lineno
21695       b
21696       :lineno
21697       N
21698       :loop
21699       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21700       t loop
21701       s/-\n.*//
21702     ' >$as_me.lineno &&
21703   chmod +x "$as_me.lineno" ||
21704     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21705    { (exit 1); exit 1; }; }
21706
21707   # Don't try to exec as it changes $[0], causing all sort of problems
21708   # (the dirname of $[0] is not the place where we might find the
21709   # original and so on.  Autoconf is especially sensitive to this).
21710   . "./$as_me.lineno"
21711   # Exit status is that of the last command.
21712   exit
21713 }
21714
21715
21716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21717   as_dirname=dirname
21718 else
21719   as_dirname=false
21720 fi
21721
21722 ECHO_C= ECHO_N= ECHO_T=
21723 case `echo -n x` in
21724 -n*)
21725   case `echo 'x\c'` in
21726   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21727   *)   ECHO_C='\c';;
21728   esac;;
21729 *)
21730   ECHO_N='-n';;
21731 esac
21732
21733 if expr a : '\(a\)' >/dev/null 2>&1 &&
21734    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21735   as_expr=expr
21736 else
21737   as_expr=false
21738 fi
21739
21740 rm -f conf$$ conf$$.exe conf$$.file
21741 if test -d conf$$.dir; then
21742   rm -f conf$$.dir/conf$$.file
21743 else
21744   rm -f conf$$.dir
21745   mkdir conf$$.dir
21746 fi
21747 echo >conf$$.file
21748 if ln -s conf$$.file conf$$ 2>/dev/null; then
21749   as_ln_s='ln -s'
21750   # ... but there are two gotchas:
21751   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21752   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21753   # In both cases, we have to default to `cp -p'.
21754   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21755     as_ln_s='cp -p'
21756 elif ln conf$$.file conf$$ 2>/dev/null; then
21757   as_ln_s=ln
21758 else
21759   as_ln_s='cp -p'
21760 fi
21761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21762 rmdir conf$$.dir 2>/dev/null
21763
21764 if mkdir -p . 2>/dev/null; then
21765   as_mkdir_p=:
21766 else
21767   test -d ./-p && rmdir ./-p
21768   as_mkdir_p=false
21769 fi
21770
21771 if test -x / >/dev/null 2>&1; then
21772   as_test_x='test -x'
21773 else
21774   if ls -dL / >/dev/null 2>&1; then
21775     as_ls_L_option=L
21776   else
21777     as_ls_L_option=
21778   fi
21779   as_test_x='
21780     eval sh -c '\''
21781       if test -d "$1"; then
21782         test -d "$1/.";
21783       else
21784         case $1 in
21785         -*)set "./$1";;
21786         esac;
21787         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21788         ???[sx]*):;;*)false;;esac;fi
21789     '\'' sh
21790   '
21791 fi
21792 as_executable_p=$as_test_x
21793
21794 # Sed expression to map a string onto a valid CPP name.
21795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21796
21797 # Sed expression to map a string onto a valid variable name.
21798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21799
21800
21801 exec 6>&1
21802
21803 # Save the log message, to keep $[0] and so on meaningful, and to
21804 # report actual input values of CONFIG_FILES etc. instead of their
21805 # values after options handling.
21806 ac_log="
21807 This file was extended by $as_me, which was
21808 generated by GNU Autoconf 2.61.  Invocation command line was
21809
21810   CONFIG_FILES    = $CONFIG_FILES
21811   CONFIG_HEADERS  = $CONFIG_HEADERS
21812   CONFIG_LINKS    = $CONFIG_LINKS
21813   CONFIG_COMMANDS = $CONFIG_COMMANDS
21814   $ $0 $@
21815
21816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21817 "
21818
21819 _ACEOF
21820
21821 cat >>$CONFIG_STATUS <<_ACEOF
21822 # Files that config.status was made for.
21823 config_files="$ac_config_files"
21824 config_headers="$ac_config_headers"
21825 config_commands="$ac_config_commands"
21826
21827 _ACEOF
21828
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21830 ac_cs_usage="\
21831 \`$as_me' instantiates files from templates according to the
21832 current configuration.
21833
21834 Usage: $0 [OPTIONS] [FILE]...
21835
21836   -h, --help       print this help, then exit
21837   -V, --version    print version number and configuration settings, then exit
21838   -q, --quiet      do not print progress messages
21839   -d, --debug      don't remove temporary files
21840       --recheck    update $as_me by reconfiguring in the same conditions
21841   --file=FILE[:TEMPLATE]
21842                    instantiate the configuration file FILE
21843   --header=FILE[:TEMPLATE]
21844                    instantiate the configuration header FILE
21845
21846 Configuration files:
21847 $config_files
21848
21849 Configuration headers:
21850 $config_headers
21851
21852 Configuration commands:
21853 $config_commands
21854
21855 Report bugs to <bug-autoconf@gnu.org>."
21856
21857 _ACEOF
21858 cat >>$CONFIG_STATUS <<_ACEOF
21859 ac_cs_version="\\
21860 config.status
21861 configured by $0, generated by GNU Autoconf 2.61,
21862   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21863
21864 Copyright (C) 2006 Free Software Foundation, Inc.
21865 This config.status script is free software; the Free Software Foundation
21866 gives unlimited permission to copy, distribute and modify it."
21867
21868 ac_pwd='$ac_pwd'
21869 srcdir='$srcdir'
21870 INSTALL='$INSTALL'
21871 MKDIR_P='$MKDIR_P'
21872 _ACEOF
21873
21874 cat >>$CONFIG_STATUS <<\_ACEOF
21875 # If no file are specified by the user, then we need to provide default
21876 # value.  By we need to know if files were specified by the user.
21877 ac_need_defaults=:
21878 while test $# != 0
21879 do
21880   case $1 in
21881   --*=*)
21882     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21883     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21884     ac_shift=:
21885     ;;
21886   *)
21887     ac_option=$1
21888     ac_optarg=$2
21889     ac_shift=shift
21890     ;;
21891   esac
21892
21893   case $ac_option in
21894   # Handling of the options.
21895   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21896     ac_cs_recheck=: ;;
21897   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21898     echo "$ac_cs_version"; exit ;;
21899   --debug | --debu | --deb | --de | --d | -d )
21900     debug=: ;;
21901   --file | --fil | --fi | --f )
21902     $ac_shift
21903     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21904     ac_need_defaults=false;;
21905   --header | --heade | --head | --hea )
21906     $ac_shift
21907     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21908     ac_need_defaults=false;;
21909   --he | --h)
21910     # Conflict between --help and --header
21911     { echo "$as_me: error: ambiguous option: $1
21912 Try \`$0 --help' for more information." >&2
21913    { (exit 1); exit 1; }; };;
21914   --help | --hel | -h )
21915     echo "$ac_cs_usage"; exit ;;
21916   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21917   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21918     ac_cs_silent=: ;;
21919
21920   # This is an error.
21921   -*) { echo "$as_me: error: unrecognized option: $1
21922 Try \`$0 --help' for more information." >&2
21923    { (exit 1); exit 1; }; } ;;
21924
21925   *) ac_config_targets="$ac_config_targets $1"
21926      ac_need_defaults=false ;;
21927
21928   esac
21929   shift
21930 done
21931
21932 ac_configure_extra_args=
21933
21934 if $ac_cs_silent; then
21935   exec 6>/dev/null
21936   ac_configure_extra_args="$ac_configure_extra_args --silent"
21937 fi
21938
21939 _ACEOF
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 if \$ac_cs_recheck; then
21942   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21943   CONFIG_SHELL=$SHELL
21944   export CONFIG_SHELL
21945   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21946 fi
21947
21948 _ACEOF
21949 cat >>$CONFIG_STATUS <<\_ACEOF
21950 exec 5>>config.log
21951 {
21952   echo
21953   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21954 ## Running $as_me. ##
21955 _ASBOX
21956   echo "$ac_log"
21957 } >&5
21958
21959 _ACEOF
21960 cat >>$CONFIG_STATUS <<_ACEOF
21961 #
21962 # INIT-COMMANDS
21963 #
21964 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21965
21966 _ACEOF
21967
21968 cat >>$CONFIG_STATUS <<\_ACEOF
21969
21970 # Handling of arguments.
21971 for ac_config_target in $ac_config_targets
21972 do
21973   case $ac_config_target in
21974     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21975     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21976     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21977
21978   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21979 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21980    { (exit 1); exit 1; }; };;
21981   esac
21982 done
21983
21984
21985 # If the user did not use the arguments to specify the items to instantiate,
21986 # then the envvar interface is used.  Set only those that are not.
21987 # We use the long form for the default assignment because of an extremely
21988 # bizarre bug on SunOS 4.1.3.
21989 if $ac_need_defaults; then
21990   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21991   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21992   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21993 fi
21994
21995 # Have a temporary directory for convenience.  Make it in the build tree
21996 # simply because there is no reason against having it here, and in addition,
21997 # creating and moving files from /tmp can sometimes cause problems.
21998 # Hook for its removal unless debugging.
21999 # Note that there is a small window in which the directory will not be cleaned:
22000 # after its creation but before its name has been assigned to `$tmp'.
22001 $debug ||
22002 {
22003   tmp=
22004   trap 'exit_status=$?
22005   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22006 ' 0
22007   trap '{ (exit 1); exit 1; }' 1 2 13 15
22008 }
22009 # Create a (secure) tmp directory for tmp files.
22010
22011 {
22012   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22013   test -n "$tmp" && test -d "$tmp"
22014 }  ||
22015 {
22016   tmp=./conf$$-$RANDOM
22017   (umask 077 && mkdir "$tmp")
22018 } ||
22019 {
22020    echo "$me: cannot create a temporary directory in ." >&2
22021    { (exit 1); exit 1; }
22022 }
22023
22024 #
22025 # Set up the sed scripts for CONFIG_FILES section.
22026 #
22027
22028 # No need to generate the scripts if there are no CONFIG_FILES.
22029 # This happens for instance when ./config.status config.h
22030 if test -n "$CONFIG_FILES"; then
22031
22032 _ACEOF
22033
22034
22035
22036 ac_delim='%!_!# '
22037 for ac_last_try in false false false false false :; do
22038   cat >conf$$subs.sed <<_ACEOF
22039 SHELL!$SHELL$ac_delim
22040 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22041 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22042 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22043 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22044 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22045 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22046 exec_prefix!$exec_prefix$ac_delim
22047 prefix!$prefix$ac_delim
22048 program_transform_name!$program_transform_name$ac_delim
22049 bindir!$bindir$ac_delim
22050 sbindir!$sbindir$ac_delim
22051 libexecdir!$libexecdir$ac_delim
22052 datarootdir!$datarootdir$ac_delim
22053 datadir!$datadir$ac_delim
22054 sysconfdir!$sysconfdir$ac_delim
22055 sharedstatedir!$sharedstatedir$ac_delim
22056 localstatedir!$localstatedir$ac_delim
22057 includedir!$includedir$ac_delim
22058 oldincludedir!$oldincludedir$ac_delim
22059 docdir!$docdir$ac_delim
22060 infodir!$infodir$ac_delim
22061 htmldir!$htmldir$ac_delim
22062 dvidir!$dvidir$ac_delim
22063 pdfdir!$pdfdir$ac_delim
22064 psdir!$psdir$ac_delim
22065 libdir!$libdir$ac_delim
22066 localedir!$localedir$ac_delim
22067 mandir!$mandir$ac_delim
22068 DEFS!$DEFS$ac_delim
22069 ECHO_C!$ECHO_C$ac_delim
22070 ECHO_N!$ECHO_N$ac_delim
22071 ECHO_T!$ECHO_T$ac_delim
22072 LIBS!$LIBS$ac_delim
22073 build_alias!$build_alias$ac_delim
22074 host_alias!$host_alias$ac_delim
22075 target_alias!$target_alias$ac_delim
22076 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22077 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22078 INSTALL_DATA!$INSTALL_DATA$ac_delim
22079 am__isrc!$am__isrc$ac_delim
22080 CYGPATH_W!$CYGPATH_W$ac_delim
22081 PACKAGE!$PACKAGE$ac_delim
22082 VERSION!$VERSION$ac_delim
22083 ACLOCAL!$ACLOCAL$ac_delim
22084 AUTOCONF!$AUTOCONF$ac_delim
22085 AUTOMAKE!$AUTOMAKE$ac_delim
22086 AUTOHEADER!$AUTOHEADER$ac_delim
22087 MAKEINFO!$MAKEINFO$ac_delim
22088 install_sh!$install_sh$ac_delim
22089 STRIP!$STRIP$ac_delim
22090 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22091 mkdir_p!$mkdir_p$ac_delim
22092 AWK!$AWK$ac_delim
22093 SET_MAKE!$SET_MAKE$ac_delim
22094 am__leading_dot!$am__leading_dot$ac_delim
22095 AMTAR!$AMTAR$ac_delim
22096 am__tar!$am__tar$ac_delim
22097 am__untar!$am__untar$ac_delim
22098 build!$build$ac_delim
22099 build_cpu!$build_cpu$ac_delim
22100 build_vendor!$build_vendor$ac_delim
22101 build_os!$build_os$ac_delim
22102 host!$host$ac_delim
22103 host_cpu!$host_cpu$ac_delim
22104 host_vendor!$host_vendor$ac_delim
22105 host_os!$host_os$ac_delim
22106 CC!$CC$ac_delim
22107 CFLAGS!$CFLAGS$ac_delim
22108 LDFLAGS!$LDFLAGS$ac_delim
22109 CPPFLAGS!$CPPFLAGS$ac_delim
22110 ac_ct_CC!$ac_ct_CC$ac_delim
22111 EXEEXT!$EXEEXT$ac_delim
22112 OBJEXT!$OBJEXT$ac_delim
22113 DEPDIR!$DEPDIR$ac_delim
22114 am__include!$am__include$ac_delim
22115 am__quote!$am__quote$ac_delim
22116 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22117 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22118 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22119 CCDEPMODE!$CCDEPMODE$ac_delim
22120 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22121 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22122 SED!$SED$ac_delim
22123 GREP!$GREP$ac_delim
22124 EGREP!$EGREP$ac_delim
22125 LN_S!$LN_S$ac_delim
22126 ECHO!$ECHO$ac_delim
22127 AR!$AR$ac_delim
22128 RANLIB!$RANLIB$ac_delim
22129 CPP!$CPP$ac_delim
22130 CXX!$CXX$ac_delim
22131 CXXFLAGS!$CXXFLAGS$ac_delim
22132 ac_ct_CXX!$ac_ct_CXX$ac_delim
22133 CXXDEPMODE!$CXXDEPMODE$ac_delim
22134 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22135 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22136 _ACEOF
22137
22138   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22139     break
22140   elif $ac_last_try; then
22141     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22142 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22143    { (exit 1); exit 1; }; }
22144   else
22145     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22146   fi
22147 done
22148
22149 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22150 if test -n "$ac_eof"; then
22151   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22152   ac_eof=`expr $ac_eof + 1`
22153 fi
22154
22155 cat >>$CONFIG_STATUS <<_ACEOF
22156 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22158 _ACEOF
22159 sed '
22160 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22161 s/^/s,@/; s/!/@,|#_!!_#|/
22162 :n
22163 t n
22164 s/'"$ac_delim"'$/,g/; t
22165 s/$/\\/; p
22166 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22167 ' >>$CONFIG_STATUS <conf$$subs.sed
22168 rm -f conf$$subs.sed
22169 cat >>$CONFIG_STATUS <<_ACEOF
22170 CEOF$ac_eof
22171 _ACEOF
22172
22173
22174 ac_delim='%!_!# '
22175 for ac_last_try in false false false false false :; do
22176   cat >conf$$subs.sed <<_ACEOF
22177 CXXCPP!$CXXCPP$ac_delim
22178 F77!$F77$ac_delim
22179 FFLAGS!$FFLAGS$ac_delim
22180 ac_ct_F77!$ac_ct_F77$ac_delim
22181 LIBTOOL!$LIBTOOL$ac_delim
22182 WITH_LUA_TRUE!$WITH_LUA_TRUE$ac_delim
22183 WITH_LUA_FALSE!$WITH_LUA_FALSE$ac_delim
22184 LIBOBJS!$LIBOBJS$ac_delim
22185 LTLIBOBJS!$LTLIBOBJS$ac_delim
22186 _ACEOF
22187
22188   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22189     break
22190   elif $ac_last_try; then
22191     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22193    { (exit 1); exit 1; }; }
22194   else
22195     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22196   fi
22197 done
22198
22199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22200 if test -n "$ac_eof"; then
22201   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22202   ac_eof=`expr $ac_eof + 1`
22203 fi
22204
22205 cat >>$CONFIG_STATUS <<_ACEOF
22206 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22208 _ACEOF
22209 sed '
22210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22211 s/^/s,@/; s/!/@,|#_!!_#|/
22212 :n
22213 t n
22214 s/'"$ac_delim"'$/,g/; t
22215 s/$/\\/; p
22216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22217 ' >>$CONFIG_STATUS <conf$$subs.sed
22218 rm -f conf$$subs.sed
22219 cat >>$CONFIG_STATUS <<_ACEOF
22220 :end
22221 s/|#_!!_#|//g
22222 CEOF$ac_eof
22223 _ACEOF
22224
22225
22226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22228 # trailing colons and then remove the whole line if VPATH becomes empty
22229 # (actually we leave an empty line to preserve line numbers).
22230 if test "x$srcdir" = x.; then
22231   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22232 s/:*\$(srcdir):*/:/
22233 s/:*\${srcdir}:*/:/
22234 s/:*@srcdir@:*/:/
22235 s/^\([^=]*=[     ]*\):*/\1/
22236 s/:*$//
22237 s/^[^=]*=[       ]*$//
22238 }'
22239 fi
22240
22241 cat >>$CONFIG_STATUS <<\_ACEOF
22242 fi # test -n "$CONFIG_FILES"
22243
22244
22245 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22246 do
22247   case $ac_tag in
22248   :[FHLC]) ac_mode=$ac_tag; continue;;
22249   esac
22250   case $ac_mode$ac_tag in
22251   :[FHL]*:*);;
22252   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22254    { (exit 1); exit 1; }; };;
22255   :[FH]-) ac_tag=-:-;;
22256   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22257   esac
22258   ac_save_IFS=$IFS
22259   IFS=:
22260   set x $ac_tag
22261   IFS=$ac_save_IFS
22262   shift
22263   ac_file=$1
22264   shift
22265
22266   case $ac_mode in
22267   :L) ac_source=$1;;
22268   :[FH])
22269     ac_file_inputs=
22270     for ac_f
22271     do
22272       case $ac_f in
22273       -) ac_f="$tmp/stdin";;
22274       *) # Look for the file first in the build tree, then in the source tree
22275          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22276          # because $ac_f cannot contain `:'.
22277          test -f "$ac_f" ||
22278            case $ac_f in
22279            [\\/$]*) false;;
22280            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22281            esac ||
22282            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22284    { (exit 1); exit 1; }; };;
22285       esac
22286       ac_file_inputs="$ac_file_inputs $ac_f"
22287     done
22288
22289     # Let's still pretend it is `configure' which instantiates (i.e., don't
22290     # use $as_me), people would be surprised to read:
22291     #    /* config.h.  Generated by config.status.  */
22292     configure_input="Generated from "`IFS=:
22293           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22294     if test x"$ac_file" != x-; then
22295       configure_input="$ac_file.  $configure_input"
22296       { echo "$as_me:$LINENO: creating $ac_file" >&5
22297 echo "$as_me: creating $ac_file" >&6;}
22298     fi
22299
22300     case $ac_tag in
22301     *:-:* | *:-) cat >"$tmp/stdin";;
22302     esac
22303     ;;
22304   esac
22305
22306   ac_dir=`$as_dirname -- "$ac_file" ||
22307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22308          X"$ac_file" : 'X\(//\)[^/]' \| \
22309          X"$ac_file" : 'X\(//\)$' \| \
22310          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22311 echo X"$ac_file" |
22312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22313             s//\1/
22314             q
22315           }
22316           /^X\(\/\/\)[^/].*/{
22317             s//\1/
22318             q
22319           }
22320           /^X\(\/\/\)$/{
22321             s//\1/
22322             q
22323           }
22324           /^X\(\/\).*/{
22325             s//\1/
22326             q
22327           }
22328           s/.*/./; q'`
22329   { as_dir="$ac_dir"
22330   case $as_dir in #(
22331   -*) as_dir=./$as_dir;;
22332   esac
22333   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22334     as_dirs=
22335     while :; do
22336       case $as_dir in #(
22337       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22338       *) as_qdir=$as_dir;;
22339       esac
22340       as_dirs="'$as_qdir' $as_dirs"
22341       as_dir=`$as_dirname -- "$as_dir" ||
22342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343          X"$as_dir" : 'X\(//\)[^/]' \| \
22344          X"$as_dir" : 'X\(//\)$' \| \
22345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22346 echo X"$as_dir" |
22347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348             s//\1/
22349             q
22350           }
22351           /^X\(\/\/\)[^/].*/{
22352             s//\1/
22353             q
22354           }
22355           /^X\(\/\/\)$/{
22356             s//\1/
22357             q
22358           }
22359           /^X\(\/\).*/{
22360             s//\1/
22361             q
22362           }
22363           s/.*/./; q'`
22364       test -d "$as_dir" && break
22365     done
22366     test -z "$as_dirs" || eval "mkdir $as_dirs"
22367   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22369    { (exit 1); exit 1; }; }; }
22370   ac_builddir=.
22371
22372 case "$ac_dir" in
22373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22374 *)
22375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22376   # A ".." for each directory in $ac_dir_suffix.
22377   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22378   case $ac_top_builddir_sub in
22379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22381   esac ;;
22382 esac
22383 ac_abs_top_builddir=$ac_pwd
22384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22385 # for backward compatibility:
22386 ac_top_builddir=$ac_top_build_prefix
22387
22388 case $srcdir in
22389   .)  # We are building in place.
22390     ac_srcdir=.
22391     ac_top_srcdir=$ac_top_builddir_sub
22392     ac_abs_top_srcdir=$ac_pwd ;;
22393   [\\/]* | ?:[\\/]* )  # Absolute name.
22394     ac_srcdir=$srcdir$ac_dir_suffix;
22395     ac_top_srcdir=$srcdir
22396     ac_abs_top_srcdir=$srcdir ;;
22397   *) # Relative name.
22398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22399     ac_top_srcdir=$ac_top_build_prefix$srcdir
22400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22401 esac
22402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22403
22404
22405   case $ac_mode in
22406   :F)
22407   #
22408   # CONFIG_FILE
22409   #
22410
22411   case $INSTALL in
22412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22413   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22414   esac
22415   ac_MKDIR_P=$MKDIR_P
22416   case $MKDIR_P in
22417   [\\/$]* | ?:[\\/]* ) ;;
22418   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22419   esac
22420 _ACEOF
22421
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22423 # If the template does not know about datarootdir, expand it.
22424 # FIXME: This hack should be removed a few years after 2.60.
22425 ac_datarootdir_hack=; ac_datarootdir_seen=
22426
22427 case `sed -n '/datarootdir/ {
22428   p
22429   q
22430 }
22431 /@datadir@/p
22432 /@docdir@/p
22433 /@infodir@/p
22434 /@localedir@/p
22435 /@mandir@/p
22436 ' $ac_file_inputs` in
22437 *datarootdir*) ac_datarootdir_seen=yes;;
22438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22439   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22440 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22441 _ACEOF
22442 cat >>$CONFIG_STATUS <<_ACEOF
22443   ac_datarootdir_hack='
22444   s&@datadir@&$datadir&g
22445   s&@docdir@&$docdir&g
22446   s&@infodir@&$infodir&g
22447   s&@localedir@&$localedir&g
22448   s&@mandir@&$mandir&g
22449     s&\\\${datarootdir}&$datarootdir&g' ;;
22450 esac
22451 _ACEOF
22452
22453 # Neutralize VPATH when `$srcdir' = `.'.
22454 # Shell code in configure.ac might set extrasub.
22455 # FIXME: do we really want to maintain this feature?
22456 cat >>$CONFIG_STATUS <<_ACEOF
22457   sed "$ac_vpsub
22458 $extrasub
22459 _ACEOF
22460 cat >>$CONFIG_STATUS <<\_ACEOF
22461 :t
22462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22463 s&@configure_input@&$configure_input&;t t
22464 s&@top_builddir@&$ac_top_builddir_sub&;t t
22465 s&@srcdir@&$ac_srcdir&;t t
22466 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22467 s&@top_srcdir@&$ac_top_srcdir&;t t
22468 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22469 s&@builddir@&$ac_builddir&;t t
22470 s&@abs_builddir@&$ac_abs_builddir&;t t
22471 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22472 s&@INSTALL@&$ac_INSTALL&;t t
22473 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22474 $ac_datarootdir_hack
22475 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22476
22477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22478   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22479   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22480   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22481 which seems to be undefined.  Please make sure it is defined." >&5
22482 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22483 which seems to be undefined.  Please make sure it is defined." >&2;}
22484
22485   rm -f "$tmp/stdin"
22486   case $ac_file in
22487   -) cat "$tmp/out"; rm -f "$tmp/out";;
22488   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22489   esac
22490  ;;
22491   :H)
22492   #
22493   # CONFIG_HEADER
22494   #
22495 _ACEOF
22496
22497 # Transform confdefs.h into a sed script `conftest.defines', that
22498 # substitutes the proper values into config.h.in to produce config.h.
22499 rm -f conftest.defines conftest.tail
22500 # First, append a space to every undef/define line, to ease matching.
22501 echo 's/$/ /' >conftest.defines
22502 # Then, protect against being on the right side of a sed subst, or in
22503 # an unquoted here document, in config.status.  If some macros were
22504 # called several times there might be several #defines for the same
22505 # symbol, which is useless.  But do not sort them, since the last
22506 # AC_DEFINE must be honored.
22507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22508 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22509 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22510 # PARAMS is the parameter list in the macro definition--in most cases, it's
22511 # just an empty string.
22512 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22513 ac_dB='\\)[      (].*,\\1define\\2'
22514 ac_dC=' '
22515 ac_dD=' ,'
22516
22517 uniq confdefs.h |
22518   sed -n '
22519         t rset
22520         :rset
22521         s/^[     ]*#[    ]*define[       ][      ]*//
22522         t ok
22523         d
22524         :ok
22525         s/[\\&,]/\\&/g
22526         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22527         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22528   ' >>conftest.defines
22529
22530 # Remove the space that was appended to ease matching.
22531 # Then replace #undef with comments.  This is necessary, for
22532 # example, in the case of _POSIX_SOURCE, which is predefined and required
22533 # on some systems where configure will not decide to define it.
22534 # (The regexp can be short, since the line contains either #define or #undef.)
22535 echo 's/ $//
22536 s,^[     #]*u.*,/* & */,' >>conftest.defines
22537
22538 # Break up conftest.defines:
22539 ac_max_sed_lines=50
22540
22541 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22542 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22543 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22544 # et cetera.
22545 ac_in='$ac_file_inputs'
22546 ac_out='"$tmp/out1"'
22547 ac_nxt='"$tmp/out2"'
22548
22549 while :
22550 do
22551   # Write a here document:
22552     cat >>$CONFIG_STATUS <<_ACEOF
22553     # First, check the format of the line:
22554     cat >"\$tmp/defines.sed" <<\\CEOF
22555 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22556 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22557 b
22558 :def
22559 _ACEOF
22560   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22561   echo 'CEOF
22562     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22563   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22564   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22565   grep . conftest.tail >/dev/null || break
22566   rm -f conftest.defines
22567   mv conftest.tail conftest.defines
22568 done
22569 rm -f conftest.defines conftest.tail
22570
22571 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22572 cat >>$CONFIG_STATUS <<\_ACEOF
22573   if test x"$ac_file" != x-; then
22574     echo "/* $configure_input  */" >"$tmp/config.h"
22575     cat "$ac_result" >>"$tmp/config.h"
22576     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22577       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22578 echo "$as_me: $ac_file is unchanged" >&6;}
22579     else
22580       rm -f $ac_file
22581       mv "$tmp/config.h" $ac_file
22582     fi
22583   else
22584     echo "/* $configure_input  */"
22585     cat "$ac_result"
22586   fi
22587   rm -f "$tmp/out12"
22588 # Compute $ac_file's index in $config_headers.
22589 _am_arg=$ac_file
22590 _am_stamp_count=1
22591 for _am_header in $config_headers :; do
22592   case $_am_header in
22593     $_am_arg | $_am_arg:* )
22594       break ;;
22595     * )
22596       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22597   esac
22598 done
22599 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22600 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22601          X"$_am_arg" : 'X\(//\)[^/]' \| \
22602          X"$_am_arg" : 'X\(//\)$' \| \
22603          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22604 echo X"$_am_arg" |
22605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22606             s//\1/
22607             q
22608           }
22609           /^X\(\/\/\)[^/].*/{
22610             s//\1/
22611             q
22612           }
22613           /^X\(\/\/\)$/{
22614             s//\1/
22615             q
22616           }
22617           /^X\(\/\).*/{
22618             s//\1/
22619             q
22620           }
22621           s/.*/./; q'`/stamp-h$_am_stamp_count
22622  ;;
22623
22624   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22625 echo "$as_me: executing $ac_file commands" >&6;}
22626  ;;
22627   esac
22628
22629
22630   case $ac_file$ac_mode in
22631     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22632   # Strip MF so we end up with the name of the file.
22633   mf=`echo "$mf" | sed -e 's/:.*$//'`
22634   # Check whether this is an Automake generated Makefile or not.
22635   # We used to match only the files named `Makefile.in', but
22636   # some people rename them; so instead we look at the file content.
22637   # Grep'ing the first line is not enough: some people post-process
22638   # each Makefile.in and add a new line on top of each file to say so.
22639   # Grep'ing the whole file is not good either: AIX grep has a line
22640   # limit of 2048, but all sed's we know have understand at least 4000.
22641   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22642     dirpart=`$as_dirname -- "$mf" ||
22643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644          X"$mf" : 'X\(//\)[^/]' \| \
22645          X"$mf" : 'X\(//\)$' \| \
22646          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22647 echo X"$mf" |
22648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22649             s//\1/
22650             q
22651           }
22652           /^X\(\/\/\)[^/].*/{
22653             s//\1/
22654             q
22655           }
22656           /^X\(\/\/\)$/{
22657             s//\1/
22658             q
22659           }
22660           /^X\(\/\).*/{
22661             s//\1/
22662             q
22663           }
22664           s/.*/./; q'`
22665   else
22666     continue
22667   fi
22668   # Extract the definition of DEPDIR, am__include, and am__quote
22669   # from the Makefile without running `make'.
22670   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22671   test -z "$DEPDIR" && continue
22672   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22673   test -z "am__include" && continue
22674   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22675   # When using ansi2knr, U may be empty or an underscore; expand it
22676   U=`sed -n 's/^U = //p' < "$mf"`
22677   # Find all dependency output files, they are included files with
22678   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22679   # simplest approach to changing $(DEPDIR) to its actual value in the
22680   # expansion.
22681   for file in `sed -n "
22682     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22683        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22684     # Make sure the directory exists.
22685     test -f "$dirpart/$file" && continue
22686     fdir=`$as_dirname -- "$file" ||
22687 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22688          X"$file" : 'X\(//\)[^/]' \| \
22689          X"$file" : 'X\(//\)$' \| \
22690          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22691 echo X"$file" |
22692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22693             s//\1/
22694             q
22695           }
22696           /^X\(\/\/\)[^/].*/{
22697             s//\1/
22698             q
22699           }
22700           /^X\(\/\/\)$/{
22701             s//\1/
22702             q
22703           }
22704           /^X\(\/\).*/{
22705             s//\1/
22706             q
22707           }
22708           s/.*/./; q'`
22709     { as_dir=$dirpart/$fdir
22710   case $as_dir in #(
22711   -*) as_dir=./$as_dir;;
22712   esac
22713   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22714     as_dirs=
22715     while :; do
22716       case $as_dir in #(
22717       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22718       *) as_qdir=$as_dir;;
22719       esac
22720       as_dirs="'$as_qdir' $as_dirs"
22721       as_dir=`$as_dirname -- "$as_dir" ||
22722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22723          X"$as_dir" : 'X\(//\)[^/]' \| \
22724          X"$as_dir" : 'X\(//\)$' \| \
22725          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22726 echo X"$as_dir" |
22727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22728             s//\1/
22729             q
22730           }
22731           /^X\(\/\/\)[^/].*/{
22732             s//\1/
22733             q
22734           }
22735           /^X\(\/\/\)$/{
22736             s//\1/
22737             q
22738           }
22739           /^X\(\/\).*/{
22740             s//\1/
22741             q
22742           }
22743           s/.*/./; q'`
22744       test -d "$as_dir" && break
22745     done
22746     test -z "$as_dirs" || eval "mkdir $as_dirs"
22747   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22749    { (exit 1); exit 1; }; }; }
22750     # echo "creating $dirpart/$file"
22751     echo '# dummy' > "$dirpart/$file"
22752   done
22753 done
22754  ;;
22755
22756   esac
22757 done # for ac_tag
22758
22759
22760 { (exit 0); exit 0; }
22761 _ACEOF
22762 chmod +x $CONFIG_STATUS
22763 ac_clean_files=$ac_clean_files_save
22764
22765
22766 # configure is writing to config.log, and then calls config.status.
22767 # config.status does its own redirection, appending to config.log.
22768 # Unfortunately, on DOS this fails, as config.log is still kept open
22769 # by configure, so config.status won't be able to write to it; its
22770 # output is simply discarded.  So we exec the FD to /dev/null,
22771 # effectively closing config.log, so it can be properly (re)opened and
22772 # appended to by config.status.  When coming back to configure, we
22773 # need to make the FD available again.
22774 if test "$no_create" != yes; then
22775   ac_cs_success=:
22776   ac_config_status_args=
22777   test "$silent" = yes &&
22778     ac_config_status_args="$ac_config_status_args --quiet"
22779   exec 5>/dev/null
22780   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22781   exec 5>>config.log
22782   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22783   # would make configure fail if this is the last instruction.
22784   $ac_cs_success || { (exit 1); exit 1; }
22785 fi
22786
22787