OSDN Git Service

am 39f130fb: reconcile main tree with open-source eclair
[android-x86/external-libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libffi 3.0.6.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libffi'
730 PACKAGE_TARNAME='libffi'
731 PACKAGE_VERSION='3.0.6'
732 PACKAGE_STRING='libffi 3.0.6'
733 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
820 INSTALL_PROGRAM
821 INSTALL_SCRIPT
822 INSTALL_DATA
823 am__isrc
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 CCAS
859 CCASFLAGS
860 CCASDEPMODE
861 am__fastdepCCAS_TRUE
862 am__fastdepCCAS_FALSE
863 SED
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 AR
869 RANLIB
870 CPP
871 CXX
872 CXXFLAGS
873 ac_ct_CXX
874 CXXDEPMODE
875 am__fastdepCXX_TRUE
876 am__fastdepCXX_FALSE
877 CXXCPP
878 F77
879 FFLAGS
880 ac_ct_F77
881 LIBTOOL
882 MAINTAINER_MODE_TRUE
883 MAINTAINER_MODE_FALSE
884 MAINT
885 TESTSUBDIR_TRUE
886 TESTSUBDIR_FALSE
887 AM_RUNTESTFLAGS
888 MIPS_TRUE
889 MIPS_FALSE
890 SPARC_TRUE
891 SPARC_FALSE
892 X86_TRUE
893 X86_FALSE
894 X86_FREEBSD_TRUE
895 X86_FREEBSD_FALSE
896 X86_WIN32_TRUE
897 X86_WIN32_FALSE
898 X86_DARWIN_TRUE
899 X86_DARWIN_FALSE
900 ALPHA_TRUE
901 ALPHA_FALSE
902 IA64_TRUE
903 IA64_FALSE
904 M32R_TRUE
905 M32R_FALSE
906 M68K_TRUE
907 M68K_FALSE
908 POWERPC_TRUE
909 POWERPC_FALSE
910 POWERPC_AIX_TRUE
911 POWERPC_AIX_FALSE
912 POWERPC_DARWIN_TRUE
913 POWERPC_DARWIN_FALSE
914 POWERPC_FREEBSD_TRUE
915 POWERPC_FREEBSD_FALSE
916 ARM_TRUE
917 ARM_FALSE
918 LIBFFI_CRIS_TRUE
919 LIBFFI_CRIS_FALSE
920 FRV_TRUE
921 FRV_FALSE
922 S390_TRUE
923 S390_FALSE
924 X86_64_TRUE
925 X86_64_FALSE
926 SH_TRUE
927 SH_FALSE
928 SH64_TRUE
929 SH64_FALSE
930 PA_LINUX_TRUE
931 PA_LINUX_FALSE
932 PA_HPUX_TRUE
933 PA_HPUX_FALSE
934 PA64_HPUX_TRUE
935 PA64_HPUX_FALSE
936 ALLOCA
937 HAVE_LONG_DOUBLE
938 TARGET
939 TARGETDIR
940 toolexecdir
941 toolexeclibdir
942 LIBOBJS
943 LTLIBOBJS'
944 ac_subst_files=''
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CCAS
949 CCASFLAGS
950 CPP
951 CPPFLAGS
952 CXX
953 CXXFLAGS
954 LDFLAGS
955 LIBS
956 CCC
957 CXXCPP
958 F77
959 FFLAGS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
981
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1007
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1011 do
1012   # If the previous option needs an argument, assign it.
1013   if test -n "$ac_prev"; then
1014     eval $ac_prev=\$ac_option
1015     ac_prev=
1016     continue
1017   fi
1018
1019   case $ac_option in
1020   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021   *)    ac_optarg=yes ;;
1022   esac
1023
1024   # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026   case $ac_dashdash$ac_option in
1027   --)
1028     ac_dashdash=yes ;;
1029
1030   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031     ac_prev=bindir ;;
1032   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033     bindir=$ac_optarg ;;
1034
1035   -build | --build | --buil | --bui | --bu)
1036     ac_prev=build_alias ;;
1037   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038     build_alias=$ac_optarg ;;
1039
1040   -cache-file | --cache-file | --cache-fil | --cache-fi \
1041   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042     ac_prev=cache_file ;;
1043   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045     cache_file=$ac_optarg ;;
1046
1047   --config-cache | -C)
1048     cache_file=config.cache ;;
1049
1050   -datadir | --datadir | --datadi | --datad)
1051     ac_prev=datadir ;;
1052   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053     datadir=$ac_optarg ;;
1054
1055   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056   | --dataroo | --dataro | --datar)
1057     ac_prev=datarootdir ;;
1058   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060     datarootdir=$ac_optarg ;;
1061
1062   -disable-* | --disable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069     eval enable_$ac_feature=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086    { (exit 1); exit 1; }; }
1087     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088     eval enable_$ac_feature=\$ac_optarg ;;
1089
1090   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092   | --exec | --exe | --ex)
1093     ac_prev=exec_prefix ;;
1094   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096   | --exec=* | --exe=* | --ex=*)
1097     exec_prefix=$ac_optarg ;;
1098
1099   -gas | --gas | --ga | --g)
1100     # Obsolete; use --with-gas.
1101     with_gas=yes ;;
1102
1103   -help | --help | --hel | --he | -h)
1104     ac_init_help=long ;;
1105   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106     ac_init_help=recursive ;;
1107   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108     ac_init_help=short ;;
1109
1110   -host | --host | --hos | --ho)
1111     ac_prev=host_alias ;;
1112   -host=* | --host=* | --hos=* | --ho=*)
1113     host_alias=$ac_optarg ;;
1114
1115   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116     ac_prev=htmldir ;;
1117   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118   | --ht=*)
1119     htmldir=$ac_optarg ;;
1120
1121   -includedir | --includedir | --includedi | --included | --include \
1122   | --includ | --inclu | --incl | --inc)
1123     ac_prev=includedir ;;
1124   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125   | --includ=* | --inclu=* | --incl=* | --inc=*)
1126     includedir=$ac_optarg ;;
1127
1128   -infodir | --infodir | --infodi | --infod | --info | --inf)
1129     ac_prev=infodir ;;
1130   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131     infodir=$ac_optarg ;;
1132
1133   -libdir | --libdir | --libdi | --libd)
1134     ac_prev=libdir ;;
1135   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136     libdir=$ac_optarg ;;
1137
1138   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139   | --libexe | --libex | --libe)
1140     ac_prev=libexecdir ;;
1141   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142   | --libexe=* | --libex=* | --libe=*)
1143     libexecdir=$ac_optarg ;;
1144
1145   -localedir | --localedir | --localedi | --localed | --locale)
1146     ac_prev=localedir ;;
1147   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148     localedir=$ac_optarg ;;
1149
1150   -localstatedir | --localstatedir | --localstatedi | --localstated \
1151   | --localstate | --localstat | --localsta | --localst | --locals)
1152     ac_prev=localstatedir ;;
1153   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155     localstatedir=$ac_optarg ;;
1156
1157   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158     ac_prev=mandir ;;
1159   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160     mandir=$ac_optarg ;;
1161
1162   -nfp | --nfp | --nf)
1163     # Obsolete; use --without-fp.
1164     with_fp=no ;;
1165
1166   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167   | --no-cr | --no-c | -n)
1168     no_create=yes ;;
1169
1170   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172     no_recursion=yes ;;
1173
1174   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176   | --oldin | --oldi | --old | --ol | --o)
1177     ac_prev=oldincludedir ;;
1178   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181     oldincludedir=$ac_optarg ;;
1182
1183   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184     ac_prev=prefix ;;
1185   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186     prefix=$ac_optarg ;;
1187
1188   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189   | --program-pre | --program-pr | --program-p)
1190     ac_prev=program_prefix ;;
1191   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193     program_prefix=$ac_optarg ;;
1194
1195   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196   | --program-suf | --program-su | --program-s)
1197     ac_prev=program_suffix ;;
1198   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200     program_suffix=$ac_optarg ;;
1201
1202   -program-transform-name | --program-transform-name \
1203   | --program-transform-nam | --program-transform-na \
1204   | --program-transform-n | --program-transform- \
1205   | --program-transform | --program-transfor \
1206   | --program-transfo | --program-transf \
1207   | --program-trans | --program-tran \
1208   | --progr-tra | --program-tr | --program-t)
1209     ac_prev=program_transform_name ;;
1210   -program-transform-name=* | --program-transform-name=* \
1211   | --program-transform-nam=* | --program-transform-na=* \
1212   | --program-transform-n=* | --program-transform-=* \
1213   | --program-transform=* | --program-transfor=* \
1214   | --program-transfo=* | --program-transf=* \
1215   | --program-trans=* | --program-tran=* \
1216   | --progr-tra=* | --program-tr=* | --program-t=*)
1217     program_transform_name=$ac_optarg ;;
1218
1219   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220     ac_prev=pdfdir ;;
1221   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222     pdfdir=$ac_optarg ;;
1223
1224   -psdir | --psdir | --psdi | --psd | --ps)
1225     ac_prev=psdir ;;
1226   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227     psdir=$ac_optarg ;;
1228
1229   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230   | -silent | --silent | --silen | --sile | --sil)
1231     silent=yes ;;
1232
1233   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234     ac_prev=sbindir ;;
1235   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236   | --sbi=* | --sb=*)
1237     sbindir=$ac_optarg ;;
1238
1239   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241   | --sharedst | --shareds | --shared | --share | --shar \
1242   | --sha | --sh)
1243     ac_prev=sharedstatedir ;;
1244   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247   | --sha=* | --sh=*)
1248     sharedstatedir=$ac_optarg ;;
1249
1250   -site | --site | --sit)
1251     ac_prev=site ;;
1252   -site=* | --site=* | --sit=*)
1253     site=$ac_optarg ;;
1254
1255   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256     ac_prev=srcdir ;;
1257   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258     srcdir=$ac_optarg ;;
1259
1260   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261   | --syscon | --sysco | --sysc | --sys | --sy)
1262     ac_prev=sysconfdir ;;
1263   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265     sysconfdir=$ac_optarg ;;
1266
1267   -target | --target | --targe | --targ | --tar | --ta | --t)
1268     ac_prev=target_alias ;;
1269   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270     target_alias=$ac_optarg ;;
1271
1272   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273     verbose=yes ;;
1274
1275   -version | --version | --versio | --versi | --vers | -V)
1276     ac_init_version=: ;;
1277
1278   -with-* | --with-*)
1279     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285     eval with_$ac_package=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid package name: $ac_package" >&2
1292    { (exit 1); exit 1; }; }
1293     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294     eval with_$ac_package=no ;;
1295
1296   --x)
1297     # Obsolete; use --with-x.
1298     with_x=yes ;;
1299
1300   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301   | --x-incl | --x-inc | --x-in | --x-i)
1302     ac_prev=x_includes ;;
1303   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305     x_includes=$ac_optarg ;;
1306
1307   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309     ac_prev=x_libraries ;;
1310   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312     x_libraries=$ac_optarg ;;
1313
1314   -*) { echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316    { (exit 1); exit 1; }; }
1317     ;;
1318
1319   *=*)
1320     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324    { (exit 1); exit 1; }; }
1325     eval $ac_envvar=\$ac_optarg
1326     export $ac_envvar ;;
1327
1328   *)
1329     # FIXME: should be removed in autoconf 3.0.
1330     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334     ;;
1335
1336   esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341   { echo "$as_me: error: missing argument to $ac_option" >&2
1342    { (exit 1); exit 1; }; }
1343 fi
1344
1345 # Be sure to have absolute directory names.
1346 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347                 datadir sysconfdir sharedstatedir localstatedir includedir \
1348                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349                 libdir localedir mandir
1350 do
1351   eval ac_val=\$$ac_var
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357    { (exit 1); exit 1; }; }
1358 done
1359
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1366
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369   if test "x$build_alias" = x; then
1370     cross_compiling=maybe
1371     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372     If a cross compiler is detected then cross compile mode will be used." >&2
1373   elif test "x$build_alias" != "x$host_alias"; then
1374     cross_compiling=yes
1375   fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387   { echo "$as_me: error: Working directory cannot be determined" >&2
1388    { (exit 1); exit 1; }; }
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   { echo "$as_me: error: pwd does not report name of working directory" >&2
1391    { (exit 1); exit 1; }; }
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396   ac_srcdir_defaulted=yes
1397   # Try the directory containing this script, then the parent directory.
1398   ac_confdir=`$as_dirname -- "$0" ||
1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400          X"$0" : 'X\(//\)[^/]' \| \
1401          X"$0" : 'X\(//\)$' \| \
1402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1403 echo X"$0" |
1404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)[^/].*/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\).*/{
1417             s//\1/
1418             q
1419           }
1420           s/.*/./; q'`
1421   srcdir=$ac_confdir
1422   if test ! -r "$srcdir/$ac_unique_file"; then
1423     srcdir=..
1424   fi
1425 else
1426   ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1431    { (exit 1); exit 1; }; }
1432 fi
1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 ac_abs_confdir=`(
1435         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1436    { (exit 1); exit 1; }; }
1437         pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440   srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_env_${ac_var}_value=\$${ac_var}
1451   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459   # Omit some internal or obsolete options to make the list less imposing.
1460   # This message is too long to be a string in the A/UX 3.1 sh.
1461   cat <<_ACEOF
1462 \`configure' configures libffi 3.0.6 to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE.  See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472   -h, --help              display this help and exit
1473       --help=short        display options specific to this package
1474       --help=recursive    display the short help of all the included packages
1475   -V, --version           display version information and exit
1476   -q, --quiet, --silent   do not print \`checking...' messages
1477       --cache-file=FILE   cache test results in FILE [disabled]
1478   -C, --config-cache      alias for \`--cache-file=config.cache'
1479   -n, --no-create         do not create output files
1480       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483   --prefix=PREFIX         install architecture-independent files in PREFIX
1484                           [$ac_default_prefix]
1485   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1486                           [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496   --bindir=DIR           user executables [EPREFIX/bin]
1497   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1498   --libexecdir=DIR       program executables [EPREFIX/libexec]
1499   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1500   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1501   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1502   --libdir=DIR           object code libraries [EPREFIX/lib]
1503   --includedir=DIR       C header files [PREFIX/include]
1504   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1505   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1506   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1507   --infodir=DIR          info documentation [DATAROOTDIR/info]
1508   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1509   --mandir=DIR           man documentation [DATAROOTDIR/man]
1510   --docdir=DIR           documentation root [DATAROOTDIR/doc/libffi]
1511   --htmldir=DIR          html documentation [DOCDIR]
1512   --dvidir=DIR           dvi documentation [DOCDIR]
1513   --pdfdir=DIR           pdf documentation [DOCDIR]
1514   --psdir=DIR            ps documentation [DOCDIR]
1515 _ACEOF
1516
1517   cat <<\_ACEOF
1518
1519 Program names:
1520   --program-prefix=PREFIX            prepend PREFIX to installed program names
1521   --program-suffix=SUFFIX            append SUFFIX to installed program names
1522   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1523
1524 System types:
1525   --build=BUILD     configure for building on BUILD [guessed]
1526   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1527   --target=TARGET   configure for building compilers for TARGET [HOST]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532   case $ac_init_help in
1533      short | recursive ) echo "Configuration of libffi 3.0.6:";;
1534    esac
1535   cat <<\_ACEOF
1536
1537 Optional Features:
1538   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --enable-shared[=PKGS]  build shared libraries [default=yes]
1543   --enable-static[=PKGS]  build static libraries [default=yes]
1544   --enable-fast-install[=PKGS]
1545                           optimize for fast installation [default=yes]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547   --enable-maintainer-mode  enable make rules and dependencies not useful
1548                           (and sometimes confusing) to the casual installer
1549   --enable-debug          debugging mode
1550   --disable-structs       omit code for struct support
1551   --disable-raw-api       make the raw api unavailable
1552   --enable-purify-safety  purify-safe mode
1553
1554 Optional Packages:
1555   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1558   --with-pic              try to use only PIC/non-PIC objects [default=use
1559                           both]
1560   --with-tags[=TAGS]      include additional configurations [automatic]
1561
1562 Some influential environment variables:
1563   CC          C compiler command
1564   CFLAGS      C compiler flags
1565   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1566               nonstandard directory <lib dir>
1567   LIBS        libraries to pass to the linker, e.g. -l<library>
1568   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569               you have headers in a nonstandard directory <include dir>
1570   CCAS        assembler compiler command (defaults to CC)
1571   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1572   CPP         C preprocessor
1573   CXX         C++ compiler command
1574   CXXFLAGS    C++ compiler flags
1575   CXXCPP      C++ preprocessor
1576   F77         Fortran 77 compiler command
1577   FFLAGS      Fortran 77 compiler flags
1578
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1581
1582 Report bugs to <http://gcc.gnu.org/bugs.html>.
1583 _ACEOF
1584 ac_status=$?
1585 fi
1586
1587 if test "$ac_init_help" = "recursive"; then
1588   # If there are subdirs, report their specific --help.
1589   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590     test -d "$ac_dir" || continue
1591     ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1597   # A ".." for each directory in $ac_dir_suffix.
1598   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599   case $ac_top_builddir_sub in
1600   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602   esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610   .)  # We are building in place.
1611     ac_srcdir=.
1612     ac_top_srcdir=$ac_top_builddir_sub
1613     ac_abs_top_srcdir=$ac_pwd ;;
1614   [\\/]* | ?:[\\/]* )  # Absolute name.
1615     ac_srcdir=$srcdir$ac_dir_suffix;
1616     ac_top_srcdir=$srcdir
1617     ac_abs_top_srcdir=$srcdir ;;
1618   *) # Relative name.
1619     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620     ac_top_srcdir=$ac_top_build_prefix$srcdir
1621     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625     cd "$ac_dir" || { ac_status=$?; continue; }
1626     # Check for guested configure.
1627     if test -f "$ac_srcdir/configure.gnu"; then
1628       echo &&
1629       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630     elif test -f "$ac_srcdir/configure"; then
1631       echo &&
1632       $SHELL "$ac_srcdir/configure" --help=recursive
1633     else
1634       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635     fi || ac_status=$?
1636     cd "$ac_pwd" || { ac_status=$?; break; }
1637   done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642   cat <<\_ACEOF
1643 libffi configure 3.0.6
1644 generated by GNU Autoconf 2.61
1645
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651   exit
1652 fi
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1656
1657 It was created by libffi $as_me 3.0.6, which was
1658 generated by GNU Autoconf 2.61.  Invocation command line was
1659
1660   $ $0 $@
1661
1662 _ACEOF
1663 exec 5>>config.log
1664 {
1665 cat <<_ASUNAME
1666 ## --------- ##
1667 ## Platform. ##
1668 ## --------- ##
1669
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1678
1679 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1680 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1683 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1684 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1685 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1686
1687 _ASUNAME
1688
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   echo "PATH: $as_dir"
1695 done
1696 IFS=$as_save_IFS
1697
1698 } >&5
1699
1700 cat >&5 <<_ACEOF
1701
1702
1703 ## ----------- ##
1704 ## Core tests. ##
1705 ## ----------- ##
1706
1707 _ACEOF
1708
1709
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 ac_must_keep_next=false
1719 for ac_pass in 1 2
1720 do
1721   for ac_arg
1722   do
1723     case $ac_arg in
1724     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726     | -silent | --silent | --silen | --sile | --sil)
1727       continue ;;
1728     *\'*)
1729       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730     esac
1731     case $ac_pass in
1732     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733     2)
1734       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735       if test $ac_must_keep_next = true; then
1736         ac_must_keep_next=false # Got value, back to normal.
1737       else
1738         case $ac_arg in
1739           *=* | --config-cache | -C | -disable-* | --disable-* \
1740           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742           | -with-* | --with-* | -without-* | --without-* | --x)
1743             case "$ac_configure_args0 " in
1744               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745             esac
1746             ;;
1747           -* ) ac_must_keep_next=true ;;
1748         esac
1749       fi
1750       ac_configure_args="$ac_configure_args '$ac_arg'"
1751       ;;
1752     esac
1753   done
1754 done
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log.  We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764   # Save into config.log some information that might help in debugging.
1765   {
1766     echo
1767
1768     cat <<\_ASBOX
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1772 _ASBOX
1773     echo
1774     # The following way of writing the cache mishandles newlines in values,
1775 (
1776   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777     eval ac_val=\$$ac_var
1778     case $ac_val in #(
1779     *${as_nl}*)
1780       case $ac_var in #(
1781       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783       esac
1784       case $ac_var in #(
1785       _ | IFS | as_nl) ;; #(
1786       *) $as_unset $ac_var ;;
1787       esac ;;
1788     esac
1789   done
1790   (set) 2>&1 |
1791     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792     *${as_nl}ac_space=\ *)
1793       sed -n \
1794         "s/'\''/'\''\\\\'\'''\''/g;
1795           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796       ;; #(
1797     *)
1798       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799       ;;
1800     esac |
1801     sort
1802 )
1803     echo
1804
1805     cat <<\_ASBOX
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1809 _ASBOX
1810     echo
1811     for ac_var in $ac_subst_vars
1812     do
1813       eval ac_val=\$$ac_var
1814       case $ac_val in
1815       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816       esac
1817       echo "$ac_var='\''$ac_val'\''"
1818     done | sort
1819     echo
1820
1821     if test -n "$ac_subst_files"; then
1822       cat <<\_ASBOX
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1826 _ASBOX
1827       echo
1828       for ac_var in $ac_subst_files
1829       do
1830         eval ac_val=\$$ac_var
1831         case $ac_val in
1832         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833         esac
1834         echo "$ac_var='\''$ac_val'\''"
1835       done | sort
1836       echo
1837     fi
1838
1839     if test -s confdefs.h; then
1840       cat <<\_ASBOX
1841 ## ----------- ##
1842 ## confdefs.h. ##
1843 ## ----------- ##
1844 _ASBOX
1845       echo
1846       cat confdefs.h
1847       echo
1848     fi
1849     test "$ac_signal" != 0 &&
1850       echo "$as_me: caught signal $ac_signal"
1851     echo "$as_me: exit $exit_status"
1852   } >&5
1853   rm -f core *.core core.conftest.* &&
1854     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855     exit $exit_status
1856 ' 0
1857 for ac_signal in 1 2 13 15; do
1858   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 done
1860 ac_signal=0
1861
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1864
1865 # Predefined preprocessor variables.
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1890
1891
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer explicitly selected file to automatically selected ones.
1894 if test -n "$CONFIG_SITE"; then
1895   set x "$CONFIG_SITE"
1896 elif test "x$prefix" != xNONE; then
1897   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1898 else
1899   set x "$ac_default_prefix/share/config.site" \
1900         "$ac_default_prefix/etc/config.site"
1901 fi
1902 shift
1903 for ac_site_file
1904 do
1905   if test -r "$ac_site_file"; then
1906     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907 echo "$as_me: loading site script $ac_site_file" >&6;}
1908     sed 's/^/| /' "$ac_site_file" >&5
1909     . "$ac_site_file"
1910   fi
1911 done
1912
1913 if test -r "$cache_file"; then
1914   # Some versions of bash will fail to source /dev/null (special
1915   # files actually), so we avoid doing that.
1916   if test -f "$cache_file"; then
1917     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918 echo "$as_me: loading cache $cache_file" >&6;}
1919     case $cache_file in
1920       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921       *)                      . "./$cache_file";;
1922     esac
1923   fi
1924 else
1925   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926 echo "$as_me: creating cache $cache_file" >&6;}
1927   >$cache_file
1928 fi
1929
1930 # Check that the precious variables saved in the cache have kept the same
1931 # value.
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935   eval ac_new_set=\$ac_env_${ac_var}_set
1936   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937   eval ac_new_val=\$ac_env_${ac_var}_value
1938   case $ac_old_set,$ac_new_set in
1939     set,)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,set)
1944       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,);;
1948     *)
1949       if test "x$ac_old_val" != "x$ac_new_val"; then
1950         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1952         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1953 echo "$as_me:   former value:  $ac_old_val" >&2;}
1954         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1955 echo "$as_me:   current value: $ac_new_val" >&2;}
1956         ac_cache_corrupted=:
1957       fi;;
1958   esac
1959   # Pass precious variables to config.status.
1960   if test "$ac_new_set" = set; then
1961     case $ac_new_val in
1962     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963     *) ac_arg=$ac_var=$ac_new_val ;;
1964     esac
1965     case " $ac_configure_args " in
1966       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1967       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968     esac
1969   fi
1970 done
1971 if $ac_cache_corrupted; then
1972   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010 ac_config_headers="$ac_config_headers fficonfig.h"
2011
2012
2013 ac_aux_dir=
2014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2015   if test -f "$ac_dir/install-sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install-sh -c"
2018     break
2019   elif test -f "$ac_dir/install.sh"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/install.sh -c"
2022     break
2023   elif test -f "$ac_dir/shtool"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/shtool install -c"
2026     break
2027   fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2031 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042
2043
2044 # Make sure we can run config.sub.
2045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2046   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2047 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2048    { (exit 1); exit 1; }; }
2049
2050 { echo "$as_me:$LINENO: checking build system type" >&5
2051 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2052 if test "${ac_cv_build+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   ac_build_alias=$build_alias
2056 test "x$ac_build_alias" = x &&
2057   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2058 test "x$ac_build_alias" = x &&
2059   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2060 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2061    { (exit 1); exit 1; }; }
2062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2063   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 fi
2068 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2069 echo "${ECHO_T}$ac_cv_build" >&6; }
2070 case $ac_cv_build in
2071 *-*-*) ;;
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2073 echo "$as_me: error: invalid value of canonical build" >&2;}
2074    { (exit 1); exit 1; }; };;
2075 esac
2076 build=$ac_cv_build
2077 ac_save_IFS=$IFS; IFS='-'
2078 set x $ac_cv_build
2079 shift
2080 build_cpu=$1
2081 build_vendor=$2
2082 shift; shift
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2085 build_os=$*
2086 IFS=$ac_save_IFS
2087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2088
2089
2090 { echo "$as_me:$LINENO: checking host system type" >&5
2091 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2092 if test "${ac_cv_host+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test "x$host_alias" = x; then
2096   ac_cv_host=$ac_cv_build
2097 else
2098   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2099     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2100 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 fi
2105 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2106 echo "${ECHO_T}$ac_cv_host" >&6; }
2107 case $ac_cv_host in
2108 *-*-*) ;;
2109 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2110 echo "$as_me: error: invalid value of canonical host" >&2;}
2111    { (exit 1); exit 1; }; };;
2112 esac
2113 host=$ac_cv_host
2114 ac_save_IFS=$IFS; IFS='-'
2115 set x $ac_cv_host
2116 shift
2117 host_cpu=$1
2118 host_vendor=$2
2119 shift; shift
2120 # Remember, the first character of IFS is used to create $*,
2121 # except with old shells:
2122 host_os=$*
2123 IFS=$ac_save_IFS
2124 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2125
2126
2127 { echo "$as_me:$LINENO: checking target system type" >&5
2128 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2129 if test "${ac_cv_target+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test "x$target_alias" = x; then
2133   ac_cv_target=$ac_cv_host
2134 else
2135   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2136     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 fi
2142 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2143 echo "${ECHO_T}$ac_cv_target" >&6; }
2144 case $ac_cv_target in
2145 *-*-*) ;;
2146 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2147 echo "$as_me: error: invalid value of canonical target" >&2;}
2148    { (exit 1); exit 1; }; };;
2149 esac
2150 target=$ac_cv_target
2151 ac_save_IFS=$IFS; IFS='-'
2152 set x $ac_cv_target
2153 shift
2154 target_cpu=$1
2155 target_vendor=$2
2156 shift; shift
2157 # Remember, the first character of IFS is used to create $*,
2158 # except with old shells:
2159 target_os=$*
2160 IFS=$ac_save_IFS
2161 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2162
2163
2164 # The aliases save the names the user supplied, while $host etc.
2165 # will get canonicalized.
2166 test -n "$target_alias" &&
2167   test "$program_prefix$program_suffix$program_transform_name" = \
2168     NONENONEs,x,x, &&
2169   program_prefix=${target_alias}-
2170 target_alias=${target_alias-$host_alias}
2171
2172 . ${srcdir}/configure.host
2173
2174 am__api_version='1.10'
2175
2176 # Find a good install program.  We prefer a C program (faster),
2177 # so one script is as good as another.  But avoid the broken or
2178 # incompatible versions:
2179 # SysV /etc/install, /usr/sbin/install
2180 # SunOS /usr/etc/install
2181 # IRIX /sbin/install
2182 # AIX /bin/install
2183 # AmigaOS /C/install, which installs bootblocks on floppy discs
2184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2187 # OS/2's system install, which has a completely different semantic
2188 # ./install, which can be erroneously created by make from ./install.sh.
2189 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2190 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2191 if test -z "$INSTALL"; then
2192 if test "${ac_cv_path_install+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   # Account for people who put trailing slashes in PATH elements.
2201 case $as_dir/ in
2202   ./ | .// | /cC/* | \
2203   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2204   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2205   /usr/ucb/* ) ;;
2206   *)
2207     # OSF1 and SCO ODT 3.0 have their own names for install.
2208     # Don't use installbsd from OSF since it installs stuff as root
2209     # by default.
2210     for ac_prog in ginstall scoinst install; do
2211       for ac_exec_ext in '' $ac_executable_extensions; do
2212         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2213           if test $ac_prog = install &&
2214             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215             # AIX install.  It has an incompatible calling convention.
2216             :
2217           elif test $ac_prog = install &&
2218             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219             # program-specific install script used by HP pwplus--don't use.
2220             :
2221           else
2222             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2223             break 3
2224           fi
2225         fi
2226       done
2227     done
2228     ;;
2229 esac
2230 done
2231 IFS=$as_save_IFS
2232
2233
2234 fi
2235   if test "${ac_cv_path_install+set}" = set; then
2236     INSTALL=$ac_cv_path_install
2237   else
2238     # As a last resort, use the slow shell script.  Don't cache a
2239     # value for INSTALL within a source directory, because that will
2240     # break other packages using the cache if that directory is
2241     # removed, or if the value is a relative name.
2242     INSTALL=$ac_install_sh
2243   fi
2244 fi
2245 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2246 echo "${ECHO_T}$INSTALL" >&6; }
2247
2248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249 # It thinks the first close brace ends the variable substitution.
2250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251
2252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253
2254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255
2256 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2257 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2258 # Just in case
2259 sleep 1
2260 echo timestamp > conftest.file
2261 # Do `set' in a subshell so we don't clobber the current shell's
2262 # arguments.  Must try -L first in case configure is actually a
2263 # symlink; some systems play weird games with the mod time of symlinks
2264 # (eg FreeBSD returns the mod time of the symlink's containing
2265 # directory).
2266 if (
2267    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2268    if test "$*" = "X"; then
2269       # -L didn't work.
2270       set X `ls -t $srcdir/configure conftest.file`
2271    fi
2272    rm -f conftest.file
2273    if test "$*" != "X $srcdir/configure conftest.file" \
2274       && test "$*" != "X conftest.file $srcdir/configure"; then
2275
2276       # If neither matched, then we have a broken ls.  This can happen
2277       # if, for instance, CONFIG_SHELL is bash and it inherits a
2278       # broken ls alias from the environment.  This has actually
2279       # happened.  Such a system could not be considered "sane".
2280       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2281 alias in your environment" >&5
2282 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2283 alias in your environment" >&2;}
2284    { (exit 1); exit 1; }; }
2285    fi
2286
2287    test "$2" = conftest.file
2288    )
2289 then
2290    # Ok.
2291    :
2292 else
2293    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2294 Check your system clock" >&5
2295 echo "$as_me: error: newly created file is older than distributed files!
2296 Check your system clock" >&2;}
2297    { (exit 1); exit 1; }; }
2298 fi
2299 { echo "$as_me:$LINENO: result: yes" >&5
2300 echo "${ECHO_T}yes" >&6; }
2301 test "$program_prefix" != NONE &&
2302   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2303 # Use a double $ so make ignores it.
2304 test "$program_suffix" != NONE &&
2305   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2306 # Double any \ or $.  echo might interpret backslashes.
2307 # By default was `s,x,x', remove it if useless.
2308 cat <<\_ACEOF >conftest.sed
2309 s/[\\$]/&&/g;s/;s,x,x,$//
2310 _ACEOF
2311 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2312 rm -f conftest.sed
2313
2314 # expand $ac_aux_dir to an absolute path
2315 am_aux_dir=`cd $ac_aux_dir && pwd`
2316
2317 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2318 # Use eval to expand $SHELL
2319 if eval "$MISSING --run true"; then
2320   am_missing_run="$MISSING --run "
2321 else
2322   am_missing_run=
2323   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2324 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2325 fi
2326
2327 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2328 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2329 if test -z "$MKDIR_P"; then
2330   if test "${ac_cv_path_mkdir+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_prog in mkdir gmkdir; do
2339          for ac_exec_ext in '' $ac_executable_extensions; do
2340            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2341            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2342              'mkdir (GNU coreutils) '* | \
2343              'mkdir (coreutils) '* | \
2344              'mkdir (fileutils) '4.1*)
2345                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2346                break 3;;
2347            esac
2348          done
2349        done
2350 done
2351 IFS=$as_save_IFS
2352
2353 fi
2354
2355   if test "${ac_cv_path_mkdir+set}" = set; then
2356     MKDIR_P="$ac_cv_path_mkdir -p"
2357   else
2358     # As a last resort, use the slow shell script.  Don't cache a
2359     # value for MKDIR_P within a source directory, because that will
2360     # break other packages using the cache if that directory is
2361     # removed, or if the value is a relative name.
2362     test -d ./--version && rmdir ./--version
2363     MKDIR_P="$ac_install_sh -d"
2364   fi
2365 fi
2366 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2367 echo "${ECHO_T}$MKDIR_P" >&6; }
2368
2369 mkdir_p="$MKDIR_P"
2370 case $mkdir_p in
2371   [\\/$]* | ?:[\\/]*) ;;
2372   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2373 esac
2374
2375 for ac_prog in gawk mawk nawk awk
2376 do
2377   # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy $ac_prog; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_AWK+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   if test -n "$AWK"; then
2385   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   for ac_exec_ext in '' $ac_executable_extensions; do
2393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394     ac_cv_prog_AWK="$ac_prog"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 AWK=$ac_cv_prog_AWK
2405 if test -n "$AWK"; then
2406   { echo "$as_me:$LINENO: result: $AWK" >&5
2407 echo "${ECHO_T}$AWK" >&6; }
2408 else
2409   { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 fi
2412
2413
2414   test -n "$AWK" && break
2415 done
2416
2417 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2418 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2419 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2420 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   cat >conftest.make <<\_ACEOF
2424 SHELL = /bin/sh
2425 all:
2426         @echo '@@@%%%=$(MAKE)=@@@%%%'
2427 _ACEOF
2428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2430   *@@@%%%=?*=@@@%%%*)
2431     eval ac_cv_prog_make_${ac_make}_set=yes;;
2432   *)
2433     eval ac_cv_prog_make_${ac_make}_set=no;;
2434 esac
2435 rm -f conftest.make
2436 fi
2437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2438   { echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6; }
2440   SET_MAKE=
2441 else
2442   { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2444   SET_MAKE="MAKE=${MAKE-make}"
2445 fi
2446
2447 rm -rf .tst 2>/dev/null
2448 mkdir .tst 2>/dev/null
2449 if test -d .tst; then
2450   am__leading_dot=.
2451 else
2452   am__leading_dot=_
2453 fi
2454 rmdir .tst 2>/dev/null
2455
2456 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2457   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2458   # is not polluted with repeated "-I."
2459   am__isrc=' -I$(srcdir)'
2460   # test to see if srcdir already configured
2461   if test -f $srcdir/config.status; then
2462     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2463 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2464    { (exit 1); exit 1; }; }
2465   fi
2466 fi
2467
2468 # test whether we have cygpath
2469 if test -z "$CYGPATH_W"; then
2470   if (cygpath --version) >/dev/null 2>/dev/null; then
2471     CYGPATH_W='cygpath -w'
2472   else
2473     CYGPATH_W=echo
2474   fi
2475 fi
2476
2477
2478 # Define the identity of the package.
2479  PACKAGE='libffi'
2480  VERSION='3.0.6'
2481
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE "$PACKAGE"
2485 _ACEOF
2486
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define VERSION "$VERSION"
2490 _ACEOF
2491
2492 # Some tools Automake needs.
2493
2494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2495
2496
2497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2498
2499
2500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2501
2502
2503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2504
2505
2506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2507
2508 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2509
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'.  However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no; then
2515   if test -n "$ac_tool_prefix"; then
2516   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}strip; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then
2521   echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523   if test -n "$STRIP"; then
2524   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531   for ac_exec_ext in '' $ac_executable_extensions; do
2532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 STRIP=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545   { echo "$as_me:$LINENO: result: $STRIP" >&5
2546 echo "${ECHO_T}$STRIP" >&6; }
2547 else
2548   { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2550 fi
2551
2552
2553 fi
2554 if test -z "$ac_cv_prog_STRIP"; then
2555   ac_ct_STRIP=$STRIP
2556   # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$ac_ct_STRIP"; then
2564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_ac_ct_STRIP="strip"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2586 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592   if test "x$ac_ct_STRIP" = x; then
2593     STRIP=":"
2594   else
2595     case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet.  If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&5
2600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet.  If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2603 ac_tool_warned=yes ;;
2604 esac
2605     STRIP=$ac_ct_STRIP
2606   fi
2607 else
2608   STRIP="$ac_cv_prog_STRIP"
2609 fi
2610
2611 fi
2612 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2613
2614 # We need awk for the "check" target.  The system "awk" is bad on
2615 # some platforms.
2616 # Always define AMTAR for backward compatibility.
2617
2618 AMTAR=${AMTAR-"${am_missing_run}tar"}
2619
2620 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2621
2622
2623
2624
2625
2626
2627 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2628 # We must force CC to /not/ be precious variables; otherwise
2629 # the wrong, non-multilib-adjusted value will be used in multilibs.
2630 # As a side effect, we have to subst CFLAGS ourselves.
2631
2632
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 if test -n "$ac_tool_prefix"; then
2640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669   { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2671 else
2672   { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 fi
2675
2676
2677 fi
2678 if test -z "$ac_cv_prog_CC"; then
2679   ac_ct_CC=$CC
2680   # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$ac_ct_CC"; then
2688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_ac_ct_CC="gcc"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 else
2712   { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2715
2716   if test "x$ac_ct_CC" = x; then
2717     CC=""
2718   else
2719     case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet.  If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet.  If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     CC=$ac_ct_CC
2730   fi
2731 else
2732   CC="$ac_cv_prog_CC"
2733 fi
2734
2735 if test -z "$CC"; then
2736           if test -n "$ac_tool_prefix"; then
2737     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   if test -n "$CC"; then
2745   ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_CC="${ac_tool_prefix}cc"
2755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766   { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2768 else
2769   { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2771 fi
2772
2773
2774   fi
2775 fi
2776 if test -z "$CC"; then
2777   # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   if test -n "$CC"; then
2785   ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787   ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796        ac_prog_rejected=yes
2797        continue
2798      fi
2799     ac_cv_prog_CC="cc"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 if test $ac_prog_rejected = yes; then
2808   # We found a bogon in the path, so make sure we never use it.
2809   set dummy $ac_cv_prog_CC
2810   shift
2811   if test $# != 0; then
2812     # We chose a different compiler from the bogus one.
2813     # However, it has the same basename, so the bogon will be chosen
2814     # first if we set CC to just the basename; use the full file name.
2815     shift
2816     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817   fi
2818 fi
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823   { echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6; }
2825 else
2826   { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$CC"; then
2833   if test -n "$ac_tool_prefix"; then
2834   for ac_prog in cl.exe
2835   do
2836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865   { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873     test -n "$CC" && break
2874   done
2875 fi
2876 if test -z "$CC"; then
2877   ac_ct_CC=$CC
2878   for ac_prog in cl.exe
2879 do
2880   # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$ac_ct_CC"; then
2888   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_ac_ct_CC="$ac_prog"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2910 echo "${ECHO_T}$ac_ct_CC" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917   test -n "$ac_ct_CC" && break
2918 done
2919
2920   if test "x$ac_ct_CC" = x; then
2921     CC=""
2922   else
2923     case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2926 whose name does not start with the host triplet.  If you think this
2927 configuration is useful to you, please write to autoconf@gnu.org." >&5
2928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet.  If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     CC=$ac_ct_CC
2934   fi
2935 fi
2936
2937 fi
2938
2939
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944    { (exit 1); exit 1; }; }
2945
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO: checking for C compiler version" >&5
2948 ac_compiler=`set X $ac_compile; echo $2`
2949 { (ac_try="$ac_compiler --version >&5"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_compiler --version >&5") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }
2959 { (ac_try="$ac_compiler -v >&5"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_compiler -v >&5") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }
2969 { (ac_try="$ac_compiler -V >&5"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_compiler -V >&5") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }
2979
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986
2987 int
2988 main ()
2989 {
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
2999 # of exeext.
3000 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3002 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003 #
3004 # List of possible output files, starting from the most likely.
3005 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3006 # only as a last resort.  b.out is created by i960 compilers.
3007 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3008 #
3009 # The IRIX 6 linker writes into existing files which may not be
3010 # executable, retaining their permissions.  Remove them first so a
3011 # subsequent execution test works.
3012 ac_rmfiles=
3013 for ac_file in $ac_files
3014 do
3015   case $ac_file in
3016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3017     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018   esac
3019 done
3020 rm -f $ac_rmfiles
3021
3022 if { (ac_try="$ac_link_default"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_link_default") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; then
3032   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3034 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3035 # so that the user can short-circuit this test for compilers unknown to
3036 # Autoconf.
3037 for ac_file in $ac_files ''
3038 do
3039   test -f "$ac_file" || continue
3040   case $ac_file in
3041     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3042         ;;
3043     [ab].out )
3044         # We found the default executable, but exeext='' is most
3045         # certainly right.
3046         break;;
3047     *.* )
3048         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3049         then :; else
3050            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3051         fi
3052         # We set ac_cv_exeext here because the later test for it is not
3053         # safe: cross compilers may not add the suffix if given an `-o'
3054         # argument, so we may need to know it at that point already.
3055         # Even if this section looks crufty: it has the advantage of
3056         # actually working.
3057         break;;
3058     * )
3059         break;;
3060   esac
3061 done
3062 test "$ac_cv_exeext" = no && ac_cv_exeext=
3063
3064 else
3065   ac_file=''
3066 fi
3067
3068 { echo "$as_me:$LINENO: result: $ac_file" >&5
3069 echo "${ECHO_T}$ac_file" >&6; }
3070 if test -z "$ac_file"; then
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&5
3076 echo "$as_me: error: C compiler cannot create executables
3077 See \`config.log' for more details." >&2;}
3078    { (exit 77); exit 77; }; }
3079 fi
3080
3081 ac_exeext=$ac_cv_exeext
3082
3083 # Check that the compiler produces executables we can run.  If not, either
3084 # the compiler is broken, or we cross compile.
3085 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3088 # If not cross compiling, check that we can run a simple program.
3089 if test "$cross_compiling" != yes; then
3090   if { ac_try='./$ac_file'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100     cross_compiling=no
3101   else
3102     if test "$cross_compiling" = maybe; then
3103         cross_compiling=yes
3104     else
3105         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3106 If you meant to cross compile, use \`--host'.
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details." >&2;}
3111    { (exit 1); exit 1; }; }
3112     fi
3113   fi
3114 fi
3115 { echo "$as_me:$LINENO: result: yes" >&5
3116 echo "${ECHO_T}yes" >&6; }
3117
3118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3119 ac_clean_files=$ac_clean_files_save
3120 # Check that the compiler produces executables we can run.  If not, either
3121 # the compiler is broken, or we cross compile.
3122 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3124 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3125 echo "${ECHO_T}$cross_compiling" >&6; }
3126
3127 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3129 if { (ac_try="$ac_link"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_link") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; then
3139   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3140 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3141 # work properly (i.e., refer to `conftest.exe'), while it won't with
3142 # `rm'.
3143 for ac_file in conftest.exe conftest conftest.*; do
3144   test -f "$ac_file" || continue
3145   case $ac_file in
3146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3147     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148           break;;
3149     * ) break;;
3150   esac
3151 done
3152 else
3153   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3156 See \`config.log' for more details." >&2;}
3157    { (exit 1); exit 1; }; }
3158 fi
3159
3160 rm -f conftest$ac_cv_exeext
3161 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3162 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3163
3164 rm -f conftest.$ac_ext
3165 EXEEXT=$ac_cv_exeext
3166 ac_exeext=$EXEEXT
3167 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3168 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3169 if test "${ac_cv_objext+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.o conftest.obj
3188 if { (ac_try="$ac_compile"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_compile") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; then
3198   for ac_file in conftest.o conftest.obj conftest.*; do
3199   test -f "$ac_file" || continue;
3200   case $ac_file in
3201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3202     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203        break;;
3204   esac
3205 done
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&5
3212 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3213 See \`config.log' for more details." >&2;}
3214    { (exit 1); exit 1; }; }
3215 fi
3216
3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218 fi
3219 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3220 echo "${ECHO_T}$ac_cv_objext" >&6; }
3221 OBJEXT=$ac_cv_objext
3222 ac_objext=$OBJEXT
3223 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3225 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238 #ifndef __GNUC__
3239        choke me
3240 #endif
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253   (eval "$ac_compile") 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } && {
3260          test -z "$ac_c_werror_flag" ||
3261          test ! -s conftest.err
3262        } && test -s conftest.$ac_objext; then
3263   ac_compiler_gnu=yes
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268         ac_compiler_gnu=no
3269 fi
3270
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3273
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3277 GCC=`test $ac_compiler_gnu = yes && echo yes`
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3281 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_g+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   ac_save_c_werror_flag=$ac_c_werror_flag
3286    ac_c_werror_flag=yes
3287    ac_cv_prog_cc_g=no
3288    CFLAGS="-g"
3289    cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_compile") 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } && {
3318          test -z "$ac_c_werror_flag" ||
3319          test ! -s conftest.err
3320        } && test -s conftest.$ac_objext; then
3321   ac_cv_prog_cc_g=yes
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326         CFLAGS=""
3327       cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && {
3356          test -z "$ac_c_werror_flag" ||
3357          test ! -s conftest.err
3358        } && test -s conftest.$ac_objext; then
3359   :
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364         ac_c_werror_flag=$ac_save_c_werror_flag
3365          CFLAGS="-g"
3366          cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_compile") 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } && {
3395          test -z "$ac_c_werror_flag" ||
3396          test ! -s conftest.err
3397        } && test -s conftest.$ac_objext; then
3398   ac_cv_prog_cc_g=yes
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
3404 fi
3405
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413    ac_c_werror_flag=$ac_save_c_werror_flag
3414 fi
3415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3417 if test "$ac_test_CFLAGS" = set; then
3418   CFLAGS=$ac_save_CFLAGS
3419 elif test $ac_cv_prog_cc_g = yes; then
3420   if test "$GCC" = yes; then
3421     CFLAGS="-g -O2"
3422   else
3423     CFLAGS="-g"
3424   fi
3425 else
3426   if test "$GCC" = yes; then
3427     CFLAGS="-O2"
3428   else
3429     CFLAGS=
3430   fi
3431 fi
3432 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3433 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3434 if test "${ac_cv_prog_cc_c89+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   ac_cv_prog_cc_c89=no
3438 ac_save_CC=$CC
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #include <stdarg.h>
3446 #include <stdio.h>
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3453      char **p;
3454      int i;
3455 {
3456   return p[i];
3457 }
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3459 {
3460   char *s;
3461   va_list v;
3462   va_start (v,p);
3463   s = g (p, va_arg (v,int));
3464   va_end (v);
3465   return s;
3466 }
3467
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3469    function prototypes and stuff, but not '\xHH' hex character constants.
3470    These don't provoke an error unfortunately, instead are silently treated
3471    as 'x'.  The following induces an error, until -std is added to get
3472    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3473    array size at least.  It's necessary to write '\x00'==0 to get something
3474    that's true only with -std.  */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3476
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478    inside strings and character constants.  */
3479 #define FOO(x) 'x'
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3481
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3488 int
3489 main ()
3490 {
3491 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 do
3499   CC="$ac_save_CC $ac_arg"
3500   rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_compile") 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } && {
3514          test -z "$ac_c_werror_flag" ||
3515          test ! -s conftest.err
3516        } && test -s conftest.$ac_objext; then
3517   ac_cv_prog_cc_c89=$ac_arg
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522
3523 fi
3524
3525 rm -f core conftest.err conftest.$ac_objext
3526   test "x$ac_cv_prog_cc_c89" != "xno" && break
3527 done
3528 rm -f conftest.$ac_ext
3529 CC=$ac_save_CC
3530
3531 fi
3532 # AC_CACHE_VAL
3533 case "x$ac_cv_prog_cc_c89" in
3534   x)
3535     { echo "$as_me:$LINENO: result: none needed" >&5
3536 echo "${ECHO_T}none needed" >&6; } ;;
3537   xno)
3538     { echo "$as_me:$LINENO: result: unsupported" >&5
3539 echo "${ECHO_T}unsupported" >&6; } ;;
3540   *)
3541     CC="$CC $ac_cv_prog_cc_c89"
3542     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3544 esac
3545
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 DEPDIR="${am__leading_dot}deps"
3553
3554 ac_config_commands="$ac_config_commands depfiles"
3555
3556
3557 am_make=${MAKE-make}
3558 cat > confinc << 'END'
3559 am__doit:
3560         @echo done
3561 .PHONY: am__doit
3562 END
3563 # If we don't find an include directive, just comment out the code.
3564 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3566 am__include="#"
3567 am__quote=
3568 _am_result=none
3569 # First try GNU make style include.
3570 echo "include confinc" > confmf
3571 # We grep out `Entering directory' and `Leaving directory'
3572 # messages which can occur if `w' ends up in MAKEFLAGS.
3573 # In particular we don't look at `^make:' because GNU make might
3574 # be invoked under some other name (usually "gmake"), in which
3575 # case it prints its new name instead of `make'.
3576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3577    am__include=include
3578    am__quote=
3579    _am_result=GNU
3580 fi
3581 # Now try BSD make style include.
3582 if test "$am__include" = "#"; then
3583    echo '.include "confinc"' > confmf
3584    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3585       am__include=.include
3586       am__quote="\""
3587       _am_result=BSD
3588    fi
3589 fi
3590
3591
3592 { echo "$as_me:$LINENO: result: $_am_result" >&5
3593 echo "${ECHO_T}$_am_result" >&6; }
3594 rm -f confinc confmf
3595
3596 # Check whether --enable-dependency-tracking was given.
3597 if test "${enable_dependency_tracking+set}" = set; then
3598   enableval=$enable_dependency_tracking;
3599 fi
3600
3601 if test "x$enable_dependency_tracking" != xno; then
3602   am_depcomp="$ac_aux_dir/depcomp"
3603   AMDEPBACKSLASH='\'
3604 fi
3605  if test "x$enable_dependency_tracking" != xno; then
3606   AMDEP_TRUE=
3607   AMDEP_FALSE='#'
3608 else
3609   AMDEP_TRUE='#'
3610   AMDEP_FALSE=
3611 fi
3612
3613
3614
3615 depcc="$CC"   am_compiler_list=
3616
3617 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3618 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3619 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3623   # We make a subdir and do the tests there.  Otherwise we can end up
3624   # making bogus files that we don't know about and never remove.  For
3625   # instance it was reported that on HP-UX the gcc test will end up
3626   # making a dummy file named `D' -- because `-MD' means `put the output
3627   # in D'.
3628   mkdir conftest.dir
3629   # Copy depcomp to subdir because otherwise we won't find it if we're
3630   # using a relative directory.
3631   cp "$am_depcomp" conftest.dir
3632   cd conftest.dir
3633   # We will build objects and dependencies in a subdirectory because
3634   # it helps to detect inapplicable dependency modes.  For instance
3635   # both Tru64's cc and ICC support -MD to output dependencies as a
3636   # side effect of compilation, but ICC will put the dependencies in
3637   # the current directory while Tru64 will put them in the object
3638   # directory.
3639   mkdir sub
3640
3641   am_cv_CC_dependencies_compiler_type=none
3642   if test "$am_compiler_list" = ""; then
3643      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3644   fi
3645   for depmode in $am_compiler_list; do
3646     # Setup a source with many dependencies, because some compilers
3647     # like to wrap large dependency lists on column 80 (with \), and
3648     # we should not choose a depcomp mode which is confused by this.
3649     #
3650     # We need to recreate these files for each test, as the compiler may
3651     # overwrite some of them when testing with obscure command lines.
3652     # This happens at least with the AIX C compiler.
3653     : > sub/conftest.c
3654     for i in 1 2 3 4 5 6; do
3655       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657       # Solaris 8's {/usr,}/bin/sh.
3658       touch sub/conftst$i.h
3659     done
3660     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3661
3662     case $depmode in
3663     nosideeffect)
3664       # after this tag, mechanisms are not by side-effect, so they'll
3665       # only be used when explicitly requested
3666       if test "x$enable_dependency_tracking" = xyes; then
3667         continue
3668       else
3669         break
3670       fi
3671       ;;
3672     none) break ;;
3673     esac
3674     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675     # mode.  It turns out that the SunPro C++ compiler does not properly
3676     # handle `-M -o', and we need to detect this.
3677     if depmode=$depmode \
3678        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3679        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3680        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3681          >/dev/null 2>conftest.err &&
3682        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3683        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3684        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3685        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3686       # icc doesn't choke on unknown options, it will just issue warnings
3687       # or remarks (even with -Werror).  So we grep stderr for any message
3688       # that says an option was ignored or not supported.
3689       # When given -MP, icc 7.0 and 7.1 complain thusly:
3690       #   icc: Command line warning: ignoring option '-M'; no argument required
3691       # The diagnosis changed in icc 8.0:
3692       #   icc: Command line remark: option '-MP' not supported
3693       if (grep 'ignoring option' conftest.err ||
3694           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3695         am_cv_CC_dependencies_compiler_type=$depmode
3696         break
3697       fi
3698     fi
3699   done
3700
3701   cd ..
3702   rm -rf conftest.dir
3703 else
3704   am_cv_CC_dependencies_compiler_type=none
3705 fi
3706
3707 fi
3708 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3709 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3711
3712  if
3713   test "x$enable_dependency_tracking" != xno \
3714   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3715   am__fastdepCC_TRUE=
3716   am__fastdepCC_FALSE='#'
3717 else
3718   am__fastdepCC_TRUE='#'
3719   am__fastdepCC_FALSE=
3720 fi
3721
3722
3723
3724
3725
3726
3727 # By default we simply use the C compiler to build assembly code.
3728
3729 test "${CCAS+set}" = set || CCAS=$CC
3730 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3731
3732
3733
3734 depcc="$CCAS"   am_compiler_list=
3735
3736 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3738 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3742   # We make a subdir and do the tests there.  Otherwise we can end up
3743   # making bogus files that we don't know about and never remove.  For
3744   # instance it was reported that on HP-UX the gcc test will end up
3745   # making a dummy file named `D' -- because `-MD' means `put the output
3746   # in D'.
3747   mkdir conftest.dir
3748   # Copy depcomp to subdir because otherwise we won't find it if we're
3749   # using a relative directory.
3750   cp "$am_depcomp" conftest.dir
3751   cd conftest.dir
3752   # We will build objects and dependencies in a subdirectory because
3753   # it helps to detect inapplicable dependency modes.  For instance
3754   # both Tru64's cc and ICC support -MD to output dependencies as a
3755   # side effect of compilation, but ICC will put the dependencies in
3756   # the current directory while Tru64 will put them in the object
3757   # directory.
3758   mkdir sub
3759
3760   am_cv_CCAS_dependencies_compiler_type=none
3761   if test "$am_compiler_list" = ""; then
3762      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3763   fi
3764   for depmode in $am_compiler_list; do
3765     # Setup a source with many dependencies, because some compilers
3766     # like to wrap large dependency lists on column 80 (with \), and
3767     # we should not choose a depcomp mode which is confused by this.
3768     #
3769     # We need to recreate these files for each test, as the compiler may
3770     # overwrite some of them when testing with obscure command lines.
3771     # This happens at least with the AIX C compiler.
3772     : > sub/conftest.c
3773     for i in 1 2 3 4 5 6; do
3774       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3775       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3776       # Solaris 8's {/usr,}/bin/sh.
3777       touch sub/conftst$i.h
3778     done
3779     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3780
3781     case $depmode in
3782     nosideeffect)
3783       # after this tag, mechanisms are not by side-effect, so they'll
3784       # only be used when explicitly requested
3785       if test "x$enable_dependency_tracking" = xyes; then
3786         continue
3787       else
3788         break
3789       fi
3790       ;;
3791     none) break ;;
3792     esac
3793     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794     # mode.  It turns out that the SunPro C++ compiler does not properly
3795     # handle `-M -o', and we need to detect this.
3796     if depmode=$depmode \
3797        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3798        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3800          >/dev/null 2>conftest.err &&
3801        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3802        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3803        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3804        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3805       # icc doesn't choke on unknown options, it will just issue warnings
3806       # or remarks (even with -Werror).  So we grep stderr for any message
3807       # that says an option was ignored or not supported.
3808       # When given -MP, icc 7.0 and 7.1 complain thusly:
3809       #   icc: Command line warning: ignoring option '-M'; no argument required
3810       # The diagnosis changed in icc 8.0:
3811       #   icc: Command line remark: option '-MP' not supported
3812       if (grep 'ignoring option' conftest.err ||
3813           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3814         am_cv_CCAS_dependencies_compiler_type=$depmode
3815         break
3816       fi
3817     fi
3818   done
3819
3820   cd ..
3821   rm -rf conftest.dir
3822 else
3823   am_cv_CCAS_dependencies_compiler_type=none
3824 fi
3825
3826 fi
3827 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3828 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
3829 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3830
3831  if
3832   test "x$enable_dependency_tracking" != xno \
3833   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3834   am__fastdepCCAS_TRUE=
3835   am__fastdepCCAS_FALSE='#'
3836 else
3837   am__fastdepCCAS_TRUE='#'
3838   am__fastdepCCAS_FALSE=
3839 fi
3840
3841
3842 if test "x$CC" != xcc; then
3843   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3844 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3845 else
3846   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3847 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3848 fi
3849 set dummy $CC; ac_cc=`echo $2 |
3850                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3851 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 # Make sure it works both with $CC and with simple cc.
3870 # We do the test twice because some compilers refuse to overwrite an
3871 # existing .o file with -o, though they will create one.
3872 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3873 rm -f conftest2.*
3874 if { (case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_try") 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } &&
3883    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885   *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888   (eval "$ac_try") 2>&5
3889   ac_status=$?
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); };
3892 then
3893   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3894   if test "x$CC" != xcc; then
3895     # Test first that cc exists at all.
3896     if { ac_try='cc -c conftest.$ac_ext >&5'
3897   { (case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_try") 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; }; then
3906       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3907       rm -f conftest2.*
3908       if { (case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_try") 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } &&
3917          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_try") 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); };
3926       then
3927         # cc works too.
3928         :
3929       else
3930         # cc exists but doesn't like -o.
3931         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3932       fi
3933     fi
3934   fi
3935 else
3936   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3937 fi
3938 rm -f core conftest*
3939
3940 fi
3941 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3942   { echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6; }
3944 else
3945   { echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6; }
3947
3948 cat >>confdefs.h <<\_ACEOF
3949 #define NO_MINUS_C_MINUS_O 1
3950 _ACEOF
3951
3952 fi
3953
3954 # FIXME: we rely on the cache variable name because
3955 # there is no other way.
3956 set dummy $CC
3957 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3958 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3959    # Losing compiler, so override with the script.
3960    # FIXME: It is wrong to rewrite CC.
3961    # But if we don't then we get into trouble of one sort or another.
3962    # A longer-term fix would be to have automake use am__CC in this case,
3963    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3964    CC="$am_aux_dir/compile $CC"
3965 fi
3966
3967
3968 # Check whether --enable-shared was given.
3969 if test "${enable_shared+set}" = set; then
3970   enableval=$enable_shared; p=${PACKAGE-default}
3971     case $enableval in
3972     yes) enable_shared=yes ;;
3973     no) enable_shared=no ;;
3974     *)
3975       enable_shared=no
3976       # Look at the argument we got.  We use all the common list separators.
3977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3978       for pkg in $enableval; do
3979         IFS="$lt_save_ifs"
3980         if test "X$pkg" = "X$p"; then
3981           enable_shared=yes
3982         fi
3983       done
3984       IFS="$lt_save_ifs"
3985       ;;
3986     esac
3987 else
3988   enable_shared=yes
3989 fi
3990
3991
3992 # Check whether --enable-static was given.
3993 if test "${enable_static+set}" = set; then
3994   enableval=$enable_static; p=${PACKAGE-default}
3995     case $enableval in
3996     yes) enable_static=yes ;;
3997     no) enable_static=no ;;
3998     *)
3999      enable_static=no
4000       # Look at the argument we got.  We use all the common list separators.
4001       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4002       for pkg in $enableval; do
4003         IFS="$lt_save_ifs"
4004         if test "X$pkg" = "X$p"; then
4005           enable_static=yes
4006         fi
4007       done
4008       IFS="$lt_save_ifs"
4009       ;;
4010     esac
4011 else
4012   enable_static=yes
4013 fi
4014
4015
4016 # Check whether --enable-fast-install was given.
4017 if test "${enable_fast_install+set}" = set; then
4018   enableval=$enable_fast_install; p=${PACKAGE-default}
4019     case $enableval in
4020     yes) enable_fast_install=yes ;;
4021     no) enable_fast_install=no ;;
4022     *)
4023       enable_fast_install=no
4024       # Look at the argument we got.  We use all the common list separators.
4025       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4026       for pkg in $enableval; do
4027         IFS="$lt_save_ifs"
4028         if test "X$pkg" = "X$p"; then
4029           enable_fast_install=yes
4030         fi
4031       done
4032       IFS="$lt_save_ifs"
4033       ;;
4034     esac
4035 else
4036   enable_fast_install=yes
4037 fi
4038
4039
4040 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4041 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4042 if test "${lt_cv_path_SED+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   # Loop through the user's path and test for sed and gsed.
4046 # Then use that list of sed's as ones to test for truncation.
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for lt_ac_prog in sed gsed; do
4053     for ac_exec_ext in '' $ac_executable_extensions; do
4054       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4055         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4056       fi
4057     done
4058   done
4059 done
4060 IFS=$as_save_IFS
4061 lt_ac_max=0
4062 lt_ac_count=0
4063 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4064 # along with /bin/sed that truncates output.
4065 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4066   test ! -f $lt_ac_sed && continue
4067   cat /dev/null > conftest.in
4068   lt_ac_count=0
4069   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4070   # Check for GNU sed and select it if it is found.
4071   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4072     lt_cv_path_SED=$lt_ac_sed
4073     break
4074   fi
4075   while true; do
4076     cat conftest.in conftest.in >conftest.tmp
4077     mv conftest.tmp conftest.in
4078     cp conftest.in conftest.nl
4079     echo >>conftest.nl
4080     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4081     cmp -s conftest.out conftest.nl || break
4082     # 10000 chars as input seems more than enough
4083     test $lt_ac_count -gt 10 && break
4084     lt_ac_count=`expr $lt_ac_count + 1`
4085     if test $lt_ac_count -gt $lt_ac_max; then
4086       lt_ac_max=$lt_ac_count
4087       lt_cv_path_SED=$lt_ac_sed
4088     fi
4089   done
4090 done
4091
4092 fi
4093
4094 SED=$lt_cv_path_SED
4095
4096 { echo "$as_me:$LINENO: result: $SED" >&5
4097 echo "${ECHO_T}$SED" >&6; }
4098
4099 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4100 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4101 if test "${ac_cv_path_GREP+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   # Extract the first word of "grep ggrep" to use in msg output
4105 if test -z "$GREP"; then
4106 set dummy grep ggrep; ac_prog_name=$2
4107 if test "${ac_cv_path_GREP+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   ac_path_GREP_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 do
4115   IFS=$as_save_IFS
4116   test -z "$as_dir" && as_dir=.
4117   for ac_prog in grep ggrep; do
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4120     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4121     # Check for GNU ac_path_GREP and select it if it is found.
4122   # Check for GNU $ac_path_GREP
4123 case `"$ac_path_GREP" --version 2>&1` in
4124 *GNU*)
4125   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4126 *)
4127   ac_count=0
4128   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4129   while :
4130   do
4131     cat "conftest.in" "conftest.in" >"conftest.tmp"
4132     mv "conftest.tmp" "conftest.in"
4133     cp "conftest.in" "conftest.nl"
4134     echo 'GREP' >> "conftest.nl"
4135     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137     ac_count=`expr $ac_count + 1`
4138     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4139       # Best one so far, save it but keep looking for a better one
4140       ac_cv_path_GREP="$ac_path_GREP"
4141       ac_path_GREP_max=$ac_count
4142     fi
4143     # 10*(2^10) chars as input seems more than enough
4144     test $ac_count -gt 10 && break
4145   done
4146   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147 esac
4148
4149
4150     $ac_path_GREP_found && break 3
4151   done
4152 done
4153
4154 done
4155 IFS=$as_save_IFS
4156
4157
4158 fi
4159
4160 GREP="$ac_cv_path_GREP"
4161 if test -z "$GREP"; then
4162   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4163 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4164    { (exit 1); exit 1; }; }
4165 fi
4166
4167 else
4168   ac_cv_path_GREP=$GREP
4169 fi
4170
4171
4172 fi
4173 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4174 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4175  GREP="$ac_cv_path_GREP"
4176
4177
4178 { echo "$as_me:$LINENO: checking for egrep" >&5
4179 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4180 if test "${ac_cv_path_EGREP+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184    then ac_cv_path_EGREP="$GREP -E"
4185    else
4186      # Extract the first word of "egrep" to use in msg output
4187 if test -z "$EGREP"; then
4188 set dummy egrep; ac_prog_name=$2
4189 if test "${ac_cv_path_EGREP+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   ac_path_EGREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_prog in egrep; do
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4202     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4203     # Check for GNU ac_path_EGREP and select it if it is found.
4204   # Check for GNU $ac_path_EGREP
4205 case `"$ac_path_EGREP" --version 2>&1` in
4206 *GNU*)
4207   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4208 *)
4209   ac_count=0
4210   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4211   while :
4212   do
4213     cat "conftest.in" "conftest.in" >"conftest.tmp"
4214     mv "conftest.tmp" "conftest.in"
4215     cp "conftest.in" "conftest.nl"
4216     echo 'EGREP' >> "conftest.nl"
4217     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219     ac_count=`expr $ac_count + 1`
4220     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221       # Best one so far, save it but keep looking for a better one
4222       ac_cv_path_EGREP="$ac_path_EGREP"
4223       ac_path_EGREP_max=$ac_count
4224     fi
4225     # 10*(2^10) chars as input seems more than enough
4226     test $ac_count -gt 10 && break
4227   done
4228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229 esac
4230
4231
4232     $ac_path_EGREP_found && break 3
4233   done
4234 done
4235
4236 done
4237 IFS=$as_save_IFS
4238
4239
4240 fi
4241
4242 EGREP="$ac_cv_path_EGREP"
4243 if test -z "$EGREP"; then
4244   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4246    { (exit 1); exit 1; }; }
4247 fi
4248
4249 else
4250   ac_cv_path_EGREP=$EGREP
4251 fi
4252
4253
4254    fi
4255 fi
4256 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4257 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4258  EGREP="$ac_cv_path_EGREP"
4259
4260
4261
4262 # Check whether --with-gnu-ld was given.
4263 if test "${with_gnu_ld+set}" = set; then
4264   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4265 else
4266   with_gnu_ld=no
4267 fi
4268
4269 ac_prog=ld
4270 if test "$GCC" = yes; then
4271   # Check if gcc -print-prog-name=ld gives a path.
4272   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4273 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4274   case $host in
4275   *-*-mingw*)
4276     # gcc leaves a trailing carriage return which upsets mingw
4277     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4278   *)
4279     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4280   esac
4281   case $ac_prog in
4282     # Accept absolute paths.
4283     [\\/]* | ?:[\\/]*)
4284       re_direlt='/[^/][^/]*/\.\./'
4285       # Canonicalize the pathname of ld
4286       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4287       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4288         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4289       done
4290       test -z "$LD" && LD="$ac_prog"
4291       ;;
4292   "")
4293     # If it fails, then pretend we aren't using GCC.
4294     ac_prog=ld
4295     ;;
4296   *)
4297     # If it is relative, then search for the first ld in PATH.
4298     with_gnu_ld=unknown
4299     ;;
4300   esac
4301 elif test "$with_gnu_ld" = yes; then
4302   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4304 else
4305   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4307 fi
4308 if test "${lt_cv_path_LD+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   if test -z "$LD"; then
4312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4313   for ac_dir in $PATH; do
4314     IFS="$lt_save_ifs"
4315     test -z "$ac_dir" && ac_dir=.
4316     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4317       lt_cv_path_LD="$ac_dir/$ac_prog"
4318       # Check to see if the program is GNU ld.  I'd rather use --version,
4319       # but apparently some variants of GNU ld only accept -v.
4320       # Break only if it was the GNU/non-GNU ld that we prefer.
4321       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4322       *GNU* | *'with BFD'*)
4323         test "$with_gnu_ld" != no && break
4324         ;;
4325       *)
4326         test "$with_gnu_ld" != yes && break
4327         ;;
4328       esac
4329     fi
4330   done
4331   IFS="$lt_save_ifs"
4332 else
4333   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4334 fi
4335 fi
4336
4337 LD="$lt_cv_path_LD"
4338 if test -n "$LD"; then
4339   { echo "$as_me:$LINENO: result: $LD" >&5
4340 echo "${ECHO_T}$LD" >&6; }
4341 else
4342   { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4344 fi
4345 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4347    { (exit 1); exit 1; }; }
4348 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4349 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4350 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4354 case `$LD -v 2>&1 </dev/null` in
4355 *GNU* | *'with BFD'*)
4356   lt_cv_prog_gnu_ld=yes
4357   ;;
4358 *)
4359   lt_cv_prog_gnu_ld=no
4360   ;;
4361 esac
4362 fi
4363 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4364 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4365 with_gnu_ld=$lt_cv_prog_gnu_ld
4366
4367
4368 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4369 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4370 if test "${lt_cv_ld_reload_flag+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   lt_cv_ld_reload_flag='-r'
4374 fi
4375 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4376 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4377 reload_flag=$lt_cv_ld_reload_flag
4378 case $reload_flag in
4379 "" | " "*) ;;
4380 *) reload_flag=" $reload_flag" ;;
4381 esac
4382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4383 case $host_os in
4384   darwin*)
4385     if test "$GCC" = yes; then
4386       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4387     else
4388       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4389     fi
4390     ;;
4391 esac
4392
4393 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4394 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4395 if test "${lt_cv_path_NM+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test -n "$NM"; then
4399   # Let the user override the test.
4400   lt_cv_path_NM="$NM"
4401 else
4402   lt_nm_to_check="${ac_tool_prefix}nm"
4403   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4404     lt_nm_to_check="$lt_nm_to_check nm"
4405   fi
4406   for lt_tmp_nm in $lt_nm_to_check; do
4407     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4408     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4409       IFS="$lt_save_ifs"
4410       test -z "$ac_dir" && ac_dir=.
4411       tmp_nm="$ac_dir/$lt_tmp_nm"
4412       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4413         # Check to see if the nm accepts a BSD-compat flag.
4414         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4415         #   nm: unknown option "B" ignored
4416         # Tru64's nm complains that /dev/null is an invalid object file
4417         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4418         */dev/null* | *'Invalid file or object type'*)
4419           lt_cv_path_NM="$tmp_nm -B"
4420           break
4421           ;;
4422         *)
4423           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4424           */dev/null*)
4425             lt_cv_path_NM="$tmp_nm -p"
4426             break
4427             ;;
4428           *)
4429             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4430             continue # so that we can try to find one that supports BSD flags
4431             ;;
4432           esac
4433           ;;
4434         esac
4435       fi
4436     done
4437     IFS="$lt_save_ifs"
4438   done
4439   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4440 fi
4441 fi
4442 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4443 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4444 NM="$lt_cv_path_NM"
4445
4446 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4448 LN_S=$as_ln_s
4449 if test "$LN_S" = "ln -s"; then
4450   { echo "$as_me:$LINENO: result: yes" >&5
4451 echo "${ECHO_T}yes" >&6; }
4452 else
4453   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454 echo "${ECHO_T}no, using $LN_S" >&6; }
4455 fi
4456
4457 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4458 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4459 if test "${lt_cv_deplibs_check_method+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   lt_cv_file_magic_cmd='$MAGIC_CMD'
4463 lt_cv_file_magic_test_file=
4464 lt_cv_deplibs_check_method='unknown'
4465 # Need to set the preceding variable on all platforms that support
4466 # interlibrary dependencies.
4467 # 'none' -- dependencies not supported.
4468 # `unknown' -- same as none, but documents that we really don't know.
4469 # 'pass_all' -- all dependencies passed with no checks.
4470 # 'test_compile' -- check by making test program.
4471 # 'file_magic [[regex]]' -- check by looking for files in library path
4472 # which responds to the $file_magic_cmd with a given extended regex.
4473 # If you have `file' or equivalent on your system and you're not sure
4474 # whether `pass_all' will *always* work, you probably want this one.
4475
4476 case $host_os in
4477 aix4* | aix5*)
4478   lt_cv_deplibs_check_method=pass_all
4479   ;;
4480
4481 beos*)
4482   lt_cv_deplibs_check_method=pass_all
4483   ;;
4484
4485 bsdi[45]*)
4486   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4487   lt_cv_file_magic_cmd='/usr/bin/file -L'
4488   lt_cv_file_magic_test_file=/shlib/libc.so
4489   ;;
4490
4491 cygwin*)
4492   # func_win32_libid is a shell function defined in ltmain.sh
4493   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4494   lt_cv_file_magic_cmd='func_win32_libid'
4495   ;;
4496
4497 mingw* | pw32*)
4498   # Base MSYS/MinGW do not provide the 'file' command needed by
4499   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4500   # unless we find 'file', for example because we are cross-compiling.
4501   if ( file / ) >/dev/null 2>&1; then
4502     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4503     lt_cv_file_magic_cmd='func_win32_libid'
4504   else
4505     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4506     lt_cv_file_magic_cmd='$OBJDUMP -f'
4507   fi
4508   ;;
4509
4510 darwin* | rhapsody*)
4511   lt_cv_deplibs_check_method=pass_all
4512   ;;
4513
4514 freebsd* | dragonfly*)
4515   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4516     case $host_cpu in
4517     i*86 )
4518       # Not sure whether the presence of OpenBSD here was a mistake.
4519       # Let's accept both of them until this is cleared up.
4520       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4521       lt_cv_file_magic_cmd=/usr/bin/file
4522       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4523       ;;
4524     esac
4525   else
4526     lt_cv_deplibs_check_method=pass_all
4527   fi
4528   ;;
4529
4530 gnu*)
4531   lt_cv_deplibs_check_method=pass_all
4532   ;;
4533
4534 hpux10.20* | hpux11*)
4535   lt_cv_file_magic_cmd=/usr/bin/file
4536   case $host_cpu in
4537   ia64*)
4538     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4539     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4540     ;;
4541   hppa*64*)
4542     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]'
4543     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4544     ;;
4545   *)
4546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4547     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4548     ;;
4549   esac
4550   ;;
4551
4552 interix[3-9]*)
4553   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4554   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4555   ;;
4556
4557 irix5* | irix6* | nonstopux*)
4558   case $LD in
4559   *-32|*"-32 ") libmagic=32-bit;;
4560   *-n32|*"-n32 ") libmagic=N32;;
4561   *-64|*"-64 ") libmagic=64-bit;;
4562   *) libmagic=never-match;;
4563   esac
4564   lt_cv_deplibs_check_method=pass_all
4565   ;;
4566
4567 # This must be Linux ELF.
4568 linux* | k*bsd*-gnu)
4569   lt_cv_deplibs_check_method=pass_all
4570   ;;
4571
4572 netbsd*)
4573   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4575   else
4576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4577   fi
4578   ;;
4579
4580 newos6*)
4581   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4582   lt_cv_file_magic_cmd=/usr/bin/file
4583   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4584   ;;
4585
4586 nto-qnx*)
4587   lt_cv_deplibs_check_method=unknown
4588   ;;
4589
4590 openbsd*)
4591   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4593   else
4594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4595   fi
4596   ;;
4597
4598 osf3* | osf4* | osf5*)
4599   lt_cv_deplibs_check_method=pass_all
4600   ;;
4601
4602 rdos*)
4603   lt_cv_deplibs_check_method=pass_all
4604   ;;
4605
4606 solaris*)
4607   lt_cv_deplibs_check_method=pass_all
4608   ;;
4609
4610 sysv4 | sysv4.3*)
4611   case $host_vendor in
4612   motorola)
4613     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]'
4614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4615     ;;
4616   ncr)
4617     lt_cv_deplibs_check_method=pass_all
4618     ;;
4619   sequent)
4620     lt_cv_file_magic_cmd='/bin/file'
4621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4622     ;;
4623   sni)
4624     lt_cv_file_magic_cmd='/bin/file'
4625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4626     lt_cv_file_magic_test_file=/lib/libc.so
4627     ;;
4628   siemens)
4629     lt_cv_deplibs_check_method=pass_all
4630     ;;
4631   pc)
4632     lt_cv_deplibs_check_method=pass_all
4633     ;;
4634   esac
4635   ;;
4636
4637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4638   lt_cv_deplibs_check_method=pass_all
4639   ;;
4640 esac
4641
4642 fi
4643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4645 file_magic_cmd=$lt_cv_file_magic_cmd
4646 deplibs_check_method=$lt_cv_deplibs_check_method
4647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4648
4649
4650
4651
4652 # If no C compiler was specified, use CC.
4653 LTCC=${LTCC-"$CC"}
4654
4655 # If no C compiler flags were specified, use CFLAGS.
4656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4657
4658 # Allow CC to be a program name with arguments.
4659 compiler=$CC
4660
4661
4662 # Check whether --enable-libtool-lock was given.
4663 if test "${enable_libtool_lock+set}" = set; then
4664   enableval=$enable_libtool_lock;
4665 fi
4666
4667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4668
4669 # Some flags need to be propagated to the compiler or linker for good
4670 # libtool support.
4671 case $host in
4672 ia64-*-hpux*)
4673   # Find out which ABI we are using.
4674   echo 'int i;' > conftest.$ac_ext
4675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; then
4680     case `/usr/bin/file conftest.$ac_objext` in
4681     *ELF-32*)
4682       HPUX_IA64_MODE="32"
4683       ;;
4684     *ELF-64*)
4685       HPUX_IA64_MODE="64"
4686       ;;
4687     esac
4688   fi
4689   rm -rf conftest*
4690   ;;
4691 *-*-irix6*)
4692   # Find out which ABI we are using.
4693   echo '#line 4693 "configure"' > conftest.$ac_ext
4694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; then
4699    if test "$lt_cv_prog_gnu_ld" = yes; then
4700     case `/usr/bin/file conftest.$ac_objext` in
4701     *32-bit*)
4702       LD="${LD-ld} -melf32bsmip"
4703       ;;
4704     *N32*)
4705       LD="${LD-ld} -melf32bmipn32"
4706       ;;
4707     *64-bit*)
4708       LD="${LD-ld} -melf64bmip"
4709       ;;
4710     esac
4711    else
4712     case `/usr/bin/file conftest.$ac_objext` in
4713     *32-bit*)
4714       LD="${LD-ld} -32"
4715       ;;
4716     *N32*)
4717       LD="${LD-ld} -n32"
4718       ;;
4719     *64-bit*)
4720       LD="${LD-ld} -64"
4721       ;;
4722     esac
4723    fi
4724   fi
4725   rm -rf conftest*
4726   ;;
4727
4728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4729 s390*-*linux*|sparc*-*linux*)
4730   # Find out which ABI we are using.
4731   echo 'int i;' > conftest.$ac_ext
4732   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; then
4737     case `/usr/bin/file conftest.o` in
4738     *32-bit*)
4739       case $host in
4740         x86_64-*kfreebsd*-gnu)
4741           LD="${LD-ld} -m elf_i386_fbsd"
4742           ;;
4743         x86_64-*linux*)
4744           LD="${LD-ld} -m elf_i386"
4745           ;;
4746         ppc64-*linux*|powerpc64-*linux*)
4747           LD="${LD-ld} -m elf32ppclinux"
4748           ;;
4749         s390x-*linux*)
4750           LD="${LD-ld} -m elf_s390"
4751           ;;
4752         sparc64-*linux*)
4753           LD="${LD-ld} -m elf32_sparc"
4754           ;;
4755       esac
4756       ;;
4757     *64-bit*)
4758       libsuff=64
4759       case $host in
4760         x86_64-*kfreebsd*-gnu)
4761           LD="${LD-ld} -m elf_x86_64_fbsd"
4762           ;;
4763         x86_64-*linux*)
4764           LD="${LD-ld} -m elf_x86_64"
4765           ;;
4766         ppc*-*linux*|powerpc*-*linux*)
4767           LD="${LD-ld} -m elf64ppc"
4768           ;;
4769         s390*-*linux*)
4770           LD="${LD-ld} -m elf64_s390"
4771           ;;
4772         sparc*-*linux*)
4773           LD="${LD-ld} -m elf64_sparc"
4774           ;;
4775       esac
4776       ;;
4777     esac
4778   fi
4779   rm -rf conftest*
4780   ;;
4781
4782 *-*-sco3.2v5*)
4783   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4784   SAVE_CFLAGS="$CFLAGS"
4785   CFLAGS="$CFLAGS -belf"
4786   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4787 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4788 if test "${lt_cv_cc_needs_belf+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796
4797      cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803
4804 int
4805 main ()
4806 {
4807
4808   ;
4809   return 0;
4810 }
4811 _ACEOF
4812 rm -f conftest.$ac_objext conftest$ac_exeext
4813 if { (ac_try="$ac_link"
4814 case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819   (eval "$ac_link") 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } && {
4826          test -z "$ac_c_werror_flag" ||
4827          test ! -s conftest.err
4828        } && test -s conftest$ac_exeext &&
4829        $as_test_x conftest$ac_exeext; then
4830   lt_cv_cc_needs_belf=yes
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835         lt_cv_cc_needs_belf=no
4836 fi
4837
4838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4839       conftest$ac_exeext conftest.$ac_ext
4840      ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845
4846 fi
4847 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4848 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4849   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4850     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4851     CFLAGS="$SAVE_CFLAGS"
4852   fi
4853   ;;
4854 sparc*-*solaris*)
4855   # Find out which ABI we are using.
4856   echo 'int i;' > conftest.$ac_ext
4857   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; then
4862     case `/usr/bin/file conftest.o` in
4863     *64-bit*)
4864       case $lt_cv_prog_gnu_ld in
4865       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4866       *)    LD="${LD-ld} -64" ;;
4867       esac
4868       ;;
4869     esac
4870   fi
4871   rm -rf conftest*
4872   ;;
4873
4874
4875 esac
4876
4877 need_locks="$enable_libtool_lock"
4878
4879
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4887 # On Suns, sometimes $CPP names a directory.
4888 if test -n "$CPP" && test -d "$CPP"; then
4889   CPP=
4890 fi
4891 if test -z "$CPP"; then
4892   if test "${ac_cv_prog_CPP+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895       # Double quotes because CPP needs to be expanded
4896     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897     do
4898       ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901   # Use a header file that comes with gcc, so configuring glibc
4902   # with a fresh cross-compiler works.
4903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904   # <limits.h> exists even on freestanding compilers.
4905   # On the NeXT, cc -E runs the code through the compiler's parser,
4906   # not just through cpp. "Syntax error" is here to catch this case.
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #ifdef __STDC__
4914 # include <limits.h>
4915 #else
4916 # include <assert.h>
4917 #endif
4918                      Syntax error
4919 _ACEOF
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4921 case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4927   ac_status=$?
4928   grep -v '^ *+' conftest.er1 >conftest.err
4929   rm -f conftest.er1
4930   cat conftest.err >&5
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } >/dev/null && {
4933          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4934          test ! -s conftest.err
4935        }; then
4936   :
4937 else
4938   echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4940
4941   # Broken: fails on valid input.
4942 continue
4943 fi
4944
4945 rm -f conftest.err conftest.$ac_ext
4946
4947   # OK, works on sane cases.  Now check whether nonexistent headers
4948   # can be detected and how.
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <ac_nonexistent.h>
4956 _ACEOF
4957 if { (ac_try="$ac_cpp conftest.$ac_ext"
4958 case "(($ac_try" in
4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960   *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } >/dev/null && {
4970          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4971          test ! -s conftest.err
4972        }; then
4973   # Broken: success on invalid input.
4974 continue
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979   # Passes both tests.
4980 ac_preproc_ok=:
4981 break
4982 fi
4983
4984 rm -f conftest.err conftest.$ac_ext
4985
4986 done
4987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4988 rm -f conftest.err conftest.$ac_ext
4989 if $ac_preproc_ok; then
4990   break
4991 fi
4992
4993     done
4994     ac_cv_prog_CPP=$CPP
4995
4996 fi
4997   CPP=$ac_cv_prog_CPP
4998 else
4999   ac_cv_prog_CPP=$CPP
5000 fi
5001 { echo "$as_me:$LINENO: result: $CPP" >&5
5002 echo "${ECHO_T}$CPP" >&6; }
5003 ac_preproc_ok=false
5004 for ac_c_preproc_warn_flag in '' yes
5005 do
5006   # Use a header file that comes with gcc, so configuring glibc
5007   # with a fresh cross-compiler works.
5008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009   # <limits.h> exists even on freestanding compilers.
5010   # On the NeXT, cc -E runs the code through the compiler's parser,
5011   # not just through cpp. "Syntax error" is here to catch this case.
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023                      Syntax error
5024 _ACEOF
5025 if { (ac_try="$ac_cpp conftest.$ac_ext"
5026 case "(($ac_try" in
5027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028   *) ac_try_echo=$ac_try;;
5029 esac
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } >/dev/null && {
5038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5039          test ! -s conftest.err
5040        }; then
5041   :
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   # Broken: fails on valid input.
5047 continue
5048 fi
5049
5050 rm -f conftest.err conftest.$ac_ext
5051
5052   # OK, works on sane cases.  Now check whether nonexistent headers
5053   # can be detected and how.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <ac_nonexistent.h>
5061 _ACEOF
5062 if { (ac_try="$ac_cpp conftest.$ac_ext"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } >/dev/null && {
5075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5076          test ! -s conftest.err
5077        }; then
5078   # Broken: success on invalid input.
5079 continue
5080 else
5081   echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084   # Passes both tests.
5085 ac_preproc_ok=:
5086 break
5087 fi
5088
5089 rm -f conftest.err conftest.$ac_ext
5090
5091 done
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then
5095   :
5096 else
5097   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." >&5
5099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." >&2;}
5101    { (exit 1); exit 1; }; }
5102 fi
5103
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110
5111 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5113 if test "${ac_cv_header_stdc+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 #include <stdlib.h>
5123 #include <stdarg.h>
5124 #include <string.h>
5125 #include <float.h>
5126
5127 int
5128 main ()
5129 {
5130
5131   ;
5132   return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5137 case "(($ac_try" in
5138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139   *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142   (eval "$ac_compile") 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } && {
5149          test -z "$ac_c_werror_flag" ||
5150          test ! -s conftest.err
5151        } && test -s conftest.$ac_objext; then
5152   ac_cv_header_stdc=yes
5153 else
5154   echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157         ac_cv_header_stdc=no
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161
5162 if test $ac_cv_header_stdc = yes; then
5163   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #include <string.h>
5171
5172 _ACEOF
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174   $EGREP "memchr" >/dev/null 2>&1; then
5175   :
5176 else
5177   ac_cv_header_stdc=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 #include <stdlib.h>
5192
5193 _ACEOF
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195   $EGREP "free" >/dev/null 2>&1; then
5196   :
5197 else
5198   ac_cv_header_stdc=no
5199 fi
5200 rm -f conftest*
5201
5202 fi
5203
5204 if test $ac_cv_header_stdc = yes; then
5205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5206   if test "$cross_compiling" = yes; then
5207   :
5208 else
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <ctype.h>
5216 #include <stdlib.h>
5217 #if ((' ' & 0x0FF) == 0x020)
5218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220 #else
5221 # define ISLOWER(c) \
5222                    (('a' <= (c) && (c) <= 'i') \
5223                      || ('j' <= (c) && (c) <= 'r') \
5224                      || ('s' <= (c) && (c) <= 'z'))
5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5226 #endif
5227
5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5229 int
5230 main ()
5231 {
5232   int i;
5233   for (i = 0; i < 256; i++)
5234     if (XOR (islower (i), ISLOWER (i))
5235         || toupper (i) != TOUPPER (i))
5236       return 2;
5237   return 0;
5238 }
5239 _ACEOF
5240 rm -f conftest$ac_exeext
5241 if { (ac_try="$ac_link"
5242 case "(($ac_try" in
5243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244   *) ac_try_echo=$ac_try;;
5245 esac
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247   (eval "$ac_link") 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5251   { (case "(($ac_try" in
5252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253   *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256   (eval "$ac_try") 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   :
5261 else
5262   echo "$as_me: program exited with status $ac_status" >&5
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ( exit $ac_status )
5267 ac_cv_header_stdc=no
5268 fi
5269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5270 fi
5271
5272
5273 fi
5274 fi
5275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5276 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5277 if test $ac_cv_header_stdc = yes; then
5278
5279 cat >>confdefs.h <<\_ACEOF
5280 #define STDC_HEADERS 1
5281 _ACEOF
5282
5283 fi
5284
5285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5296                   inttypes.h stdint.h unistd.h
5297 do
5298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 $ac_includes_default
5311
5312 #include <$ac_header>
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5316 case "(($ac_try" in
5317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318   *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321   (eval "$ac_compile") 2>conftest.er1
5322   ac_status=$?
5323   grep -v '^ *+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } && {
5328          test -z "$ac_c_werror_flag" ||
5329          test ! -s conftest.err
5330        } && test -s conftest.$ac_objext; then
5331   eval "$as_ac_Header=yes"
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336         eval "$as_ac_Header=no"
5337 fi
5338
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 fi
5341 ac_res=`eval echo '${'$as_ac_Header'}'`
5342                { echo "$as_me:$LINENO: result: $ac_res" >&5
5343 echo "${ECHO_T}$ac_res" >&6; }
5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345   cat >>confdefs.h <<_ACEOF
5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353
5354
5355 for ac_header in dlfcn.h
5356 do
5357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 fi
5364 ac_res=`eval echo '${'$as_ac_Header'}'`
5365                { echo "$as_me:$LINENO: result: $ac_res" >&5
5366 echo "${ECHO_T}$ac_res" >&6; }
5367 else
5368   # Is the header compilable?
5369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 $ac_includes_default
5378 #include <$ac_header>
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_compile") 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } && {
5394          test -z "$ac_c_werror_flag" ||
5395          test ! -s conftest.err
5396        } && test -s conftest.$ac_objext; then
5397   ac_header_compiler=yes
5398 else
5399   echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402         ac_header_compiler=no
5403 fi
5404
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5407 echo "${ECHO_T}$ac_header_compiler" >&6; }
5408
5409 # Is the header present?
5410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 #include <$ac_header>
5419 _ACEOF
5420 if { (ac_try="$ac_cpp conftest.$ac_ext"
5421 case "(($ac_try" in
5422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423   *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } >/dev/null && {
5433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5434          test ! -s conftest.err
5435        }; then
5436   ac_header_preproc=yes
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441   ac_header_preproc=no
5442 fi
5443
5444 rm -f conftest.err conftest.$ac_ext
5445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5446 echo "${ECHO_T}$ac_header_preproc" >&6; }
5447
5448 # So?  What about this header?
5449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5450   yes:no: )
5451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5455     ac_header_preproc=yes
5456     ;;
5457   no:yes:* )
5458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5470     ( cat <<\_ASBOX
5471 ## ------------------------------------------- ##
5472 ## Report this to http://gcc.gnu.org/bugs.html ##
5473 ## ------------------------------------------- ##
5474 _ASBOX
5475      ) | sed "s/^/$as_me: WARNING:     /" >&2
5476     ;;
5477 esac
5478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483   eval "$as_ac_Header=\$ac_header_preproc"
5484 fi
5485 ac_res=`eval echo '${'$as_ac_Header'}'`
5486                { echo "$as_me:$LINENO: result: $ac_res" >&5
5487 echo "${ECHO_T}$ac_res" >&6; }
5488
5489 fi
5490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5491   cat >>confdefs.h <<_ACEOF
5492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5493 _ACEOF
5494
5495 fi
5496
5497 done
5498
5499 ac_ext=cpp
5500 ac_cpp='$CXXCPP $CPPFLAGS'
5501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5504 if test -z "$CXX"; then
5505   if test -n "$CCC"; then
5506     CXX=$CCC
5507   else
5508     if test -n "$ac_tool_prefix"; then
5509   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5510   do
5511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5515 if test "${ac_cv_prog_CXX+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   if test -n "$CXX"; then
5519   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526   for ac_exec_ext in '' $ac_executable_extensions; do
5527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 CXX=$ac_cv_prog_CXX
5539 if test -n "$CXX"; then
5540   { echo "$as_me:$LINENO: result: $CXX" >&5
5541 echo "${ECHO_T}$CXX" >&6; }
5542 else
5543   { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545 fi
5546
5547
5548     test -n "$CXX" && break
5549   done
5550 fi
5551 if test -z "$CXX"; then
5552   ac_ct_CXX=$CXX
5553   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5554 do
5555   # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   if test -n "$ac_ct_CXX"; then
5563   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570   for ac_exec_ext in '' $ac_executable_extensions; do
5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572     ac_cv_prog_ac_ct_CXX="$ac_prog"
5573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5583 if test -n "$ac_ct_CXX"; then
5584   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5585 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5586 else
5587   { echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6; }
5589 fi
5590
5591
5592   test -n "$ac_ct_CXX" && break
5593 done
5594
5595   if test "x$ac_ct_CXX" = x; then
5596     CXX="g++"
5597   else
5598     case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet.  If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet.  If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     CXX=$ac_ct_CXX
5609   fi
5610 fi
5611
5612   fi
5613 fi
5614 # Provide some information about the compiler.
5615 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5616 ac_compiler=`set X $ac_compile; echo $2`
5617 { (ac_try="$ac_compiler --version >&5"
5618 case "(($ac_try" in
5619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620   *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623   (eval "$ac_compiler --version >&5") 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }
5627 { (ac_try="$ac_compiler -v >&5"
5628 case "(($ac_try" in
5629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630   *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633   (eval "$ac_compiler -v >&5") 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); }
5637 { (ac_try="$ac_compiler -V >&5"
5638 case "(($ac_try" in
5639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640   *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643   (eval "$ac_compiler -V >&5") 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }
5647
5648 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5649 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5650 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663 #ifndef __GNUC__
5664        choke me
5665 #endif
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675   *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678   (eval "$ac_compile") 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } && {
5685          test -z "$ac_cxx_werror_flag" ||
5686          test ! -s conftest.err
5687        } && test -s conftest.$ac_objext; then
5688   ac_compiler_gnu=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693         ac_compiler_gnu=no
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5698
5699 fi
5700 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5701 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5702 GXX=`test $ac_compiler_gnu = yes && echo yes`
5703 ac_test_CXXFLAGS=${CXXFLAGS+set}
5704 ac_save_CXXFLAGS=$CXXFLAGS
5705 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5706 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_cxx_g+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5711    ac_cxx_werror_flag=yes
5712    ac_cv_prog_cxx_g=no
5713    CXXFLAGS="-g"
5714    cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720
5721 int
5722 main ()
5723 {
5724
5725   ;
5726   return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (ac_try="$ac_compile"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_compile") 2>conftest.er1
5737   ac_status=$?
5738   grep -v '^ *+' conftest.er1 >conftest.err
5739   rm -f conftest.er1
5740   cat conftest.err >&5
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } && {
5743          test -z "$ac_cxx_werror_flag" ||
5744          test ! -s conftest.err
5745        } && test -s conftest.$ac_objext; then
5746   ac_cv_prog_cxx_g=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751         CXXFLAGS=""
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
5759 int
5760 main ()
5761 {
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (ac_try="$ac_compile"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_compile") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } && {
5781          test -z "$ac_cxx_werror_flag" ||
5782          test ! -s conftest.err
5783        } && test -s conftest.$ac_objext; then
5784   :
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5790          CXXFLAGS="-g"
5791          cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797
5798 int
5799 main ()
5800 {
5801
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_compile") 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } && {
5820          test -z "$ac_cxx_werror_flag" ||
5821          test ! -s conftest.err
5822        } && test -s conftest.$ac_objext; then
5823   ac_cv_prog_cxx_g=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 fi
5833
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5839 fi
5840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5841 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5842 if test "$ac_test_CXXFLAGS" = set; then
5843   CXXFLAGS=$ac_save_CXXFLAGS
5844 elif test $ac_cv_prog_cxx_g = yes; then
5845   if test "$GXX" = yes; then
5846     CXXFLAGS="-g -O2"
5847   else
5848     CXXFLAGS="-g"
5849   fi
5850 else
5851   if test "$GXX" = yes; then
5852     CXXFLAGS="-O2"
5853   else
5854     CXXFLAGS=
5855   fi
5856 fi
5857 ac_ext=cpp
5858 ac_cpp='$CXXCPP $CPPFLAGS'
5859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5862
5863 depcc="$CXX"  am_compiler_list=
5864
5865 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5871   # We make a subdir and do the tests there.  Otherwise we can end up
5872   # making bogus files that we don't know about and never remove.  For
5873   # instance it was reported that on HP-UX the gcc test will end up
5874   # making a dummy file named `D' -- because `-MD' means `put the output
5875   # in D'.
5876   mkdir conftest.dir
5877   # Copy depcomp to subdir because otherwise we won't find it if we're
5878   # using a relative directory.
5879   cp "$am_depcomp" conftest.dir
5880   cd conftest.dir
5881   # We will build objects and dependencies in a subdirectory because
5882   # it helps to detect inapplicable dependency modes.  For instance
5883   # both Tru64's cc and ICC support -MD to output dependencies as a
5884   # side effect of compilation, but ICC will put the dependencies in
5885   # the current directory while Tru64 will put them in the object
5886   # directory.
5887   mkdir sub
5888
5889   am_cv_CXX_dependencies_compiler_type=none
5890   if test "$am_compiler_list" = ""; then
5891      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5892   fi
5893   for depmode in $am_compiler_list; do
5894     # Setup a source with many dependencies, because some compilers
5895     # like to wrap large dependency lists on column 80 (with \), and
5896     # we should not choose a depcomp mode which is confused by this.
5897     #
5898     # We need to recreate these files for each test, as the compiler may
5899     # overwrite some of them when testing with obscure command lines.
5900     # This happens at least with the AIX C compiler.
5901     : > sub/conftest.c
5902     for i in 1 2 3 4 5 6; do
5903       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5904       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5905       # Solaris 8's {/usr,}/bin/sh.
5906       touch sub/conftst$i.h
5907     done
5908     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5909
5910     case $depmode in
5911     nosideeffect)
5912       # after this tag, mechanisms are not by side-effect, so they'll
5913       # only be used when explicitly requested
5914       if test "x$enable_dependency_tracking" = xyes; then
5915         continue
5916       else
5917         break
5918       fi
5919       ;;
5920     none) break ;;
5921     esac
5922     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5923     # mode.  It turns out that the SunPro C++ compiler does not properly
5924     # handle `-M -o', and we need to detect this.
5925     if depmode=$depmode \
5926        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5927        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5928        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5929          >/dev/null 2>conftest.err &&
5930        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5931        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5932        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5933        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5934       # icc doesn't choke on unknown options, it will just issue warnings
5935       # or remarks (even with -Werror).  So we grep stderr for any message
5936       # that says an option was ignored or not supported.
5937       # When given -MP, icc 7.0 and 7.1 complain thusly:
5938       #   icc: Command line warning: ignoring option '-M'; no argument required
5939       # The diagnosis changed in icc 8.0:
5940       #   icc: Command line remark: option '-MP' not supported
5941       if (grep 'ignoring option' conftest.err ||
5942           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5943         am_cv_CXX_dependencies_compiler_type=$depmode
5944         break
5945       fi
5946     fi
5947   done
5948
5949   cd ..
5950   rm -rf conftest.dir
5951 else
5952   am_cv_CXX_dependencies_compiler_type=none
5953 fi
5954
5955 fi
5956 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5957 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5958 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5959
5960  if
5961   test "x$enable_dependency_tracking" != xno \
5962   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5963   am__fastdepCXX_TRUE=
5964   am__fastdepCXX_FALSE='#'
5965 else
5966   am__fastdepCXX_TRUE='#'
5967   am__fastdepCXX_FALSE=
5968 fi
5969
5970
5971
5972
5973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5974     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5975     (test "X$CXX" != "Xg++"))) ; then
5976   ac_ext=cpp
5977 ac_cpp='$CXXCPP $CPPFLAGS'
5978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5981 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5983 if test -z "$CXXCPP"; then
5984   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987       # Double quotes because CXXCPP needs to be expanded
5988     for CXXCPP in "$CXX -E" "/lib/cpp"
5989     do
5990       ac_preproc_ok=false
5991 for ac_cxx_preproc_warn_flag in '' yes
5992 do
5993   # Use a header file that comes with gcc, so configuring glibc
5994   # with a fresh cross-compiler works.
5995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996   # <limits.h> exists even on freestanding compilers.
5997   # On the NeXT, cc -E runs the code through the compiler's parser,
5998   # not just through cpp. "Syntax error" is here to catch this case.
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 #ifdef __STDC__
6006 # include <limits.h>
6007 #else
6008 # include <assert.h>
6009 #endif
6010                      Syntax error
6011 _ACEOF
6012 if { (ac_try="$ac_cpp conftest.$ac_ext"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } >/dev/null && {
6025          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6026          test ! -s conftest.err
6027        }; then
6028   :
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033   # Broken: fails on valid input.
6034 continue
6035 fi
6036
6037 rm -f conftest.err conftest.$ac_ext
6038
6039   # OK, works on sane cases.  Now check whether nonexistent headers
6040   # can be detected and how.
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (ac_try="$ac_cpp conftest.$ac_ext"
6050 case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6056   ac_status=$?
6057   grep -v '^ *+' conftest.er1 >conftest.err
6058   rm -f conftest.er1
6059   cat conftest.err >&5
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } >/dev/null && {
6062          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6063          test ! -s conftest.err
6064        }; then
6065   # Broken: success on invalid input.
6066 continue
6067 else
6068   echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071   # Passes both tests.
6072 ac_preproc_ok=:
6073 break
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077
6078 done
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.$ac_ext
6081 if $ac_preproc_ok; then
6082   break
6083 fi
6084
6085     done
6086     ac_cv_prog_CXXCPP=$CXXCPP
6087
6088 fi
6089   CXXCPP=$ac_cv_prog_CXXCPP
6090 else
6091   ac_cv_prog_CXXCPP=$CXXCPP
6092 fi
6093 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6094 echo "${ECHO_T}$CXXCPP" >&6; }
6095 ac_preproc_ok=false
6096 for ac_cxx_preproc_warn_flag in '' yes
6097 do
6098   # Use a header file that comes with gcc, so configuring glibc
6099   # with a fresh cross-compiler works.
6100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101   # <limits.h> exists even on freestanding compilers.
6102   # On the NeXT, cc -E runs the code through the compiler's parser,
6103   # not just through cpp. "Syntax error" is here to catch this case.
6104   cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110 #ifdef __STDC__
6111 # include <limits.h>
6112 #else
6113 # include <assert.h>
6114 #endif
6115                      Syntax error
6116 _ACEOF
6117 if { (ac_try="$ac_cpp conftest.$ac_ext"
6118 case "(($ac_try" in
6119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120   *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } >/dev/null && {
6130          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6131          test ! -s conftest.err
6132        }; then
6133   :
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138   # Broken: fails on valid input.
6139 continue
6140 fi
6141
6142 rm -f conftest.err conftest.$ac_ext
6143
6144   # OK, works on sane cases.  Now check whether nonexistent headers
6145   # can be detected and how.
6146   cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h.  */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h.  */
6152 #include <ac_nonexistent.h>
6153 _ACEOF
6154 if { (ac_try="$ac_cpp conftest.$ac_ext"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } >/dev/null && {
6167          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6168          test ! -s conftest.err
6169        }; then
6170   # Broken: success on invalid input.
6171 continue
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176   # Passes both tests.
6177 ac_preproc_ok=:
6178 break
6179 fi
6180
6181 rm -f conftest.err conftest.$ac_ext
6182
6183 done
6184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185 rm -f conftest.err conftest.$ac_ext
6186 if $ac_preproc_ok; then
6187   :
6188 else
6189   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6190 See \`config.log' for more details." >&5
6191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6192 See \`config.log' for more details." >&2;}
6193    { (exit 1); exit 1; }; }
6194 fi
6195
6196 ac_ext=cpp
6197 ac_cpp='$CXXCPP $CPPFLAGS'
6198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6201
6202 fi
6203
6204
6205 ac_ext=f
6206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6209 if test -n "$ac_tool_prefix"; then
6210   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
6211   do
6212     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_F77+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   if test -n "$F77"; then
6220   ac_cv_prog_F77="$F77" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227   for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 F77=$ac_cv_prog_F77
6240 if test -n "$F77"; then
6241   { echo "$as_me:$LINENO: result: $F77" >&5
6242 echo "${ECHO_T}$F77" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6246 fi
6247
6248
6249     test -n "$F77" && break
6250   done
6251 fi
6252 if test -z "$F77"; then
6253   ac_ct_F77=$F77
6254   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
6255 do
6256   # Extract the first word of "$ac_prog", so it can be a program name with args.
6257 set dummy $ac_prog; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   if test -n "$ac_ct_F77"; then
6264   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_ac_ct_F77="$ac_prog"
6274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6284 if test -n "$ac_ct_F77"; then
6285   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6286 echo "${ECHO_T}$ac_ct_F77" >&6; }
6287 else
6288   { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6290 fi
6291
6292
6293   test -n "$ac_ct_F77" && break
6294 done
6295
6296   if test "x$ac_ct_F77" = x; then
6297     F77=""
6298   else
6299     case $cross_compiling:$ac_tool_warned in
6300 yes:)
6301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6302 whose name does not start with the host triplet.  If you think this
6303 configuration is useful to you, please write to autoconf@gnu.org." >&5
6304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6305 whose name does not start with the host triplet.  If you think this
6306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309     F77=$ac_ct_F77
6310   fi
6311 fi
6312
6313
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6316 ac_compiler=`set X $ac_compile; echo $2`
6317 { (ac_try="$ac_compiler --version >&5"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_compiler --version >&5") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6328 case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_compiler -v >&5") 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }
6337 { (ac_try="$ac_compiler -V >&5"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_compiler -V >&5") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }
6347 rm -f a.out
6348
6349 # If we don't use `.F' as extension, the preprocessor is not run on the
6350 # input file.  (Note that this only needs to work for GNU compilers.)
6351 ac_save_ext=$ac_ext
6352 ac_ext=F
6353 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6354 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   cat >conftest.$ac_ext <<_ACEOF
6359       program main
6360 #ifndef __GNUC__
6361        choke me
6362 #endif
6363
6364       end
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_compile") 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } && {
6380          test -z "$ac_f77_werror_flag" ||
6381          test ! -s conftest.err
6382        } && test -s conftest.$ac_objext; then
6383   ac_compiler_gnu=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388         ac_compiler_gnu=no
6389 fi
6390
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6393
6394 fi
6395 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6396 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6397 ac_ext=$ac_save_ext
6398 ac_test_FFLAGS=${FFLAGS+set}
6399 ac_save_FFLAGS=$FFLAGS
6400 FFLAGS=
6401 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6402 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6403 if test "${ac_cv_prog_f77_g+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   FFLAGS=-g
6407 cat >conftest.$ac_ext <<_ACEOF
6408       program main
6409
6410       end
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416   *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419   (eval "$ac_compile") 2>conftest.er1
6420   ac_status=$?
6421   grep -v '^ *+' conftest.er1 >conftest.err
6422   rm -f conftest.er1
6423   cat conftest.err >&5
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); } && {
6426          test -z "$ac_f77_werror_flag" ||
6427          test ! -s conftest.err
6428        } && test -s conftest.$ac_objext; then
6429   ac_cv_prog_f77_g=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434         ac_cv_prog_f77_g=no
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6441 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6442 if test "$ac_test_FFLAGS" = set; then
6443   FFLAGS=$ac_save_FFLAGS
6444 elif test $ac_cv_prog_f77_g = yes; then
6445   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6446     FFLAGS="-g -O2"
6447   else
6448     FFLAGS="-g"
6449   fi
6450 else
6451   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6452     FFLAGS="-O2"
6453   else
6454     FFLAGS=
6455   fi
6456 fi
6457
6458 G77=`test $ac_compiler_gnu = yes && echo yes`
6459 ac_ext=c
6460 ac_cpp='$CPP $CPPFLAGS'
6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465
6466
6467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6468
6469 # find the maximum length of command line arguments
6470 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6471 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475     i=0
6476   teststring="ABCD"
6477
6478   case $build_os in
6479   msdosdjgpp*)
6480     # On DJGPP, this test can blow up pretty badly due to problems in libc
6481     # (any single argument exceeding 2000 bytes causes a buffer overrun
6482     # during glob expansion).  Even if it were fixed, the result of this
6483     # check would be larger than it should be.
6484     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6485     ;;
6486
6487   gnu*)
6488     # Under GNU Hurd, this test is not required because there is
6489     # no limit to the length of command line arguments.
6490     # Libtool will interpret -1 as no limit whatsoever
6491     lt_cv_sys_max_cmd_len=-1;
6492     ;;
6493
6494   cygwin* | mingw*)
6495     # On Win9x/ME, this test blows up -- it succeeds, but takes
6496     # about 5 minutes as the teststring grows exponentially.
6497     # Worse, since 9x/ME are not pre-emptively multitasking,
6498     # you end up with a "frozen" computer, even though with patience
6499     # the test eventually succeeds (with a max line length of 256k).
6500     # Instead, let's just punt: use the minimum linelength reported by
6501     # all of the supported platforms: 8192 (on NT/2K/XP).
6502     lt_cv_sys_max_cmd_len=8192;
6503     ;;
6504
6505   amigaos*)
6506     # On AmigaOS with pdksh, this test takes hours, literally.
6507     # So we just punt and use a minimum line length of 8192.
6508     lt_cv_sys_max_cmd_len=8192;
6509     ;;
6510
6511   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6512     # This has been around since 386BSD, at least.  Likely further.
6513     if test -x /sbin/sysctl; then
6514       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6515     elif test -x /usr/sbin/sysctl; then
6516       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6517     else
6518       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6519     fi
6520     # And add a safety zone
6521     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6522     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6523     ;;
6524
6525   interix*)
6526     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6527     lt_cv_sys_max_cmd_len=196608
6528     ;;
6529
6530   osf*)
6531     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6532     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6533     # nice to cause kernel panics so lets avoid the loop below.
6534     # First set a reasonable default.
6535     lt_cv_sys_max_cmd_len=16384
6536     #
6537     if test -x /sbin/sysconfig; then
6538       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6539         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6540       esac
6541     fi
6542     ;;
6543   sco3.2v5*)
6544     lt_cv_sys_max_cmd_len=102400
6545     ;;
6546   sysv5* | sco5v6* | sysv4.2uw2*)
6547     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6548     if test -n "$kargmax"; then
6549       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6550     else
6551       lt_cv_sys_max_cmd_len=32768
6552     fi
6553     ;;
6554   *)
6555     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6556     if test -n "$lt_cv_sys_max_cmd_len"; then
6557       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6558       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6559     else
6560       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6561       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6562                = "XX$teststring") >/dev/null 2>&1 &&
6563               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6564               lt_cv_sys_max_cmd_len=$new_result &&
6565               test $i != 17 # 1/2 MB should be enough
6566       do
6567         i=`expr $i + 1`
6568         teststring=$teststring$teststring
6569       done
6570       teststring=
6571       # Add a significant safety factor because C++ compilers can tack on massive
6572       # amounts of additional arguments before passing them to the linker.
6573       # It appears as though 1/2 is a usable value.
6574       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6575     fi
6576     ;;
6577   esac
6578
6579 fi
6580
6581 if test -n $lt_cv_sys_max_cmd_len ; then
6582   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6583 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6584 else
6585   { echo "$as_me:$LINENO: result: none" >&5
6586 echo "${ECHO_T}none" >&6; }
6587 fi
6588
6589
6590
6591
6592
6593 # Check for command to grab the raw symbol name followed by C symbol from nm.
6594 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6595 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6596 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599
6600 # These are sane defaults that work on at least a few old systems.
6601 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6602
6603 # Character class describing NM global symbol codes.
6604 symcode='[BCDEGRST]'
6605
6606 # Regexp to match symbols that can be accessed directly from C.
6607 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6608
6609 # Transform an extracted symbol line into a proper C declaration
6610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6611
6612 # Transform an extracted symbol line into symbol name and symbol address
6613 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'"
6614
6615 # Define system-specific variables.
6616 case $host_os in
6617 aix*)
6618   symcode='[BCDT]'
6619   ;;
6620 cygwin* | mingw* | pw32*)
6621   symcode='[ABCDGISTW]'
6622   ;;
6623 hpux*) # Its linker distinguishes data from code symbols
6624   if test "$host_cpu" = ia64; then
6625     symcode='[ABCDEGRST]'
6626   fi
6627   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6628   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'"
6629   ;;
6630 linux* | k*bsd*-gnu)
6631   if test "$host_cpu" = ia64; then
6632     symcode='[ABCDGIRSTW]'
6633     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634     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'"
6635   fi
6636   ;;
6637 irix* | nonstopux*)
6638   symcode='[BCDEGRST]'
6639   ;;
6640 osf*)
6641   symcode='[BCDEGQRST]'
6642   ;;
6643 solaris*)
6644   symcode='[BDRT]'
6645   ;;
6646 sco3.2v5*)
6647   symcode='[DT]'
6648   ;;
6649 sysv4.2uw2*)
6650   symcode='[DT]'
6651   ;;
6652 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6653   symcode='[ABDT]'
6654   ;;
6655 sysv4)
6656   symcode='[DFNSTU]'
6657   ;;
6658 esac
6659
6660 # Handle CRLF in mingw tool chain
6661 opt_cr=
6662 case $build_os in
6663 mingw*)
6664   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6665   ;;
6666 esac
6667
6668 # If we're using GNU nm, then use its standard symbol codes.
6669 case `$NM -V 2>&1` in
6670 *GNU* | *'with BFD'*)
6671   symcode='[ABCDGIRSTW]' ;;
6672 esac
6673
6674 # Try without a prefix undercore, then with it.
6675 for ac_symprfx in "" "_"; do
6676
6677   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6678   symxfrm="\\1 $ac_symprfx\\2 \\2"
6679
6680   # Write the raw and C identifiers.
6681   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6682
6683   # Check to see that the pipe works correctly.
6684   pipe_works=no
6685
6686   rm -f conftest*
6687   cat > conftest.$ac_ext <<EOF
6688 #ifdef __cplusplus
6689 extern "C" {
6690 #endif
6691 char nm_test_var;
6692 void nm_test_func(){}
6693 #ifdef __cplusplus
6694 }
6695 #endif
6696 int main(){nm_test_var='a';nm_test_func();return(0);}
6697 EOF
6698
6699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700   (eval $ac_compile) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; then
6704     # Now try to grab the symbols.
6705     nlist=conftest.nm
6706     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6707   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } && test -s "$nlist"; then
6711       # Try sorting and uniquifying the output.
6712       if sort "$nlist" | uniq > "$nlist"T; then
6713         mv -f "$nlist"T "$nlist"
6714       else
6715         rm -f "$nlist"T
6716       fi
6717
6718       # Make sure that we snagged all the symbols we need.
6719       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6720         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6721           cat <<EOF > conftest.$ac_ext
6722 #ifdef __cplusplus
6723 extern "C" {
6724 #endif
6725
6726 EOF
6727           # Now generate the symbol file.
6728           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6729
6730           cat <<EOF >> conftest.$ac_ext
6731 #if defined (__STDC__) && __STDC__
6732 # define lt_ptr_t void *
6733 #else
6734 # define lt_ptr_t char *
6735 # define const
6736 #endif
6737
6738 /* The mapping between symbol names and symbols. */
6739 const struct {
6740   const char *name;
6741   lt_ptr_t address;
6742 }
6743 lt_preloaded_symbols[] =
6744 {
6745 EOF
6746           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6747           cat <<\EOF >> conftest.$ac_ext
6748   {0, (lt_ptr_t) 0}
6749 };
6750
6751 #ifdef __cplusplus
6752 }
6753 #endif
6754 EOF
6755           # Now try linking the two files.
6756           mv conftest.$ac_objext conftstm.$ac_objext
6757           lt_save_LIBS="$LIBS"
6758           lt_save_CFLAGS="$CFLAGS"
6759           LIBS="conftstm.$ac_objext"
6760           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6761           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762   (eval $ac_link) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6766             pipe_works=yes
6767           fi
6768           LIBS="$lt_save_LIBS"
6769           CFLAGS="$lt_save_CFLAGS"
6770         else
6771           echo "cannot find nm_test_func in $nlist" >&5
6772         fi
6773       else
6774         echo "cannot find nm_test_var in $nlist" >&5
6775       fi
6776     else
6777       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6778     fi
6779   else
6780     echo "$progname: failed program was:" >&5
6781     cat conftest.$ac_ext >&5
6782   fi
6783   rm -f conftest* conftst*
6784
6785   # Do not use the global_symbol_pipe unless it works.
6786   if test "$pipe_works" = yes; then
6787     break
6788   else
6789     lt_cv_sys_global_symbol_pipe=
6790   fi
6791 done
6792
6793 fi
6794
6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6796   lt_cv_sys_global_symbol_to_cdecl=
6797 fi
6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6799   { echo "$as_me:$LINENO: result: failed" >&5
6800 echo "${ECHO_T}failed" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: ok" >&5
6803 echo "${ECHO_T}ok" >&6; }
6804 fi
6805
6806 { echo "$as_me:$LINENO: checking for objdir" >&5
6807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6808 if test "${lt_cv_objdir+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   rm -f .libs 2>/dev/null
6812 mkdir .libs 2>/dev/null
6813 if test -d .libs; then
6814   lt_cv_objdir=.libs
6815 else
6816   # MS-DOS does not allow filenames that begin with a dot.
6817   lt_cv_objdir=_libs
6818 fi
6819 rmdir .libs 2>/dev/null
6820 fi
6821 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6822 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6823 objdir=$lt_cv_objdir
6824
6825
6826
6827
6828
6829 case $host_os in
6830 aix3*)
6831   # AIX sometimes has problems with the GCC collect2 program.  For some
6832   # reason, if we set the COLLECT_NAMES environment variable, the problems
6833   # vanish in a puff of smoke.
6834   if test "X${COLLECT_NAMES+set}" != Xset; then
6835     COLLECT_NAMES=
6836     export COLLECT_NAMES
6837   fi
6838   ;;
6839 esac
6840
6841 # Sed substitution that helps us do robust quoting.  It backslashifies
6842 # metacharacters that are still active within double-quoted strings.
6843 Xsed='sed -e 1s/^X//'
6844 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6845
6846 # Same as above, but do not quote variable references.
6847 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6848
6849 # Sed substitution to delay expansion of an escaped shell variable in a
6850 # double_quote_subst'ed string.
6851 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6852
6853 # Sed substitution to avoid accidental globbing in evaled expressions
6854 no_glob_subst='s/\*/\\\*/g'
6855
6856 # Constants:
6857 rm="rm -f"
6858
6859 # Global variables:
6860 default_ofile=libtool
6861 can_build_shared=yes
6862
6863 # All known linkers require a `.a' archive for static linking (except MSVC,
6864 # which needs '.lib').
6865 libext=a
6866 ltmain="$ac_aux_dir/ltmain.sh"
6867 ofile="$default_ofile"
6868 with_gnu_ld="$lt_cv_prog_gnu_ld"
6869
6870 if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}ar; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_prog_AR+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   if test -n "$AR"; then
6879   ac_cv_prog_AR="$AR" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_AR="${ac_tool_prefix}ar"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 AR=$ac_cv_prog_AR
6899 if test -n "$AR"; then
6900   { echo "$as_me:$LINENO: result: $AR" >&5
6901 echo "${ECHO_T}$AR" >&6; }
6902 else
6903   { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_AR"; then
6910   ac_ct_AR=$AR
6911   # Extract the first word of "ar", so it can be a program name with args.
6912 set dummy ar; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   if test -n "$ac_ct_AR"; then
6919   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_ac_ct_AR="ar"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6939 if test -n "$ac_ct_AR"; then
6940   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6941 echo "${ECHO_T}$ac_ct_AR" >&6; }
6942 else
6943   { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_AR" = x; then
6948     AR="false"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6953 whose name does not start with the host triplet.  If you think this
6954 configuration is useful to you, please write to autoconf@gnu.org." >&5
6955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6956 whose name does not start with the host triplet.  If you think this
6957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960     AR=$ac_ct_AR
6961   fi
6962 else
6963   AR="$ac_cv_prog_AR"
6964 fi
6965
6966 if test -n "$ac_tool_prefix"; then
6967   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_prog_RANLIB+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   if test -n "$RANLIB"; then
6975   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 RANLIB=$ac_cv_prog_RANLIB
6995 if test -n "$RANLIB"; then
6996   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6997 echo "${ECHO_T}$RANLIB" >&6; }
6998 else
6999   { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_RANLIB"; then
7006   ac_ct_RANLIB=$RANLIB
7007   # Extract the first word of "ranlib", so it can be a program name with args.
7008 set dummy ranlib; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   if test -n "$ac_ct_RANLIB"; then
7015   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_ac_ct_RANLIB="ranlib"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7035 if test -n "$ac_ct_RANLIB"; then
7036   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7037 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043   if test "x$ac_ct_RANLIB" = x; then
7044     RANLIB=":"
7045   else
7046     case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7049 whose name does not start with the host triplet.  If you think this
7050 configuration is useful to you, please write to autoconf@gnu.org." >&5
7051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7052 whose name does not start with the host triplet.  If you think this
7053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056     RANLIB=$ac_ct_RANLIB
7057   fi
7058 else
7059   RANLIB="$ac_cv_prog_RANLIB"
7060 fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}strip; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_STRIP+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$STRIP"; then
7071   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 STRIP=$ac_cv_prog_STRIP
7091 if test -n "$STRIP"; then
7092   { echo "$as_me:$LINENO: result: $STRIP" >&5
7093 echo "${ECHO_T}$STRIP" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_STRIP"; then
7102   ac_ct_STRIP=$STRIP
7103   # Extract the first word of "strip", so it can be a program name with args.
7104 set dummy strip; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$ac_ct_STRIP"; then
7111   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_ac_ct_STRIP="strip"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7131 if test -n "$ac_ct_STRIP"; then
7132   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7133 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_STRIP" = x; then
7140     STRIP=":"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet.  If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152     STRIP=$ac_ct_STRIP
7153   fi
7154 else
7155   STRIP="$ac_cv_prog_STRIP"
7156 fi
7157
7158
7159 old_CC="$CC"
7160 old_CFLAGS="$CFLAGS"
7161
7162 # Set sane defaults for various variables
7163 test -z "$AR" && AR=ar
7164 test -z "$AR_FLAGS" && AR_FLAGS=cru
7165 test -z "$AS" && AS=as
7166 test -z "$CC" && CC=cc
7167 test -z "$LTCC" && LTCC=$CC
7168 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7169 test -z "$DLLTOOL" && DLLTOOL=dlltool
7170 test -z "$LD" && LD=ld
7171 test -z "$LN_S" && LN_S="ln -s"
7172 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7173 test -z "$NM" && NM=nm
7174 test -z "$SED" && SED=sed
7175 test -z "$OBJDUMP" && OBJDUMP=objdump
7176 test -z "$RANLIB" && RANLIB=:
7177 test -z "$STRIP" && STRIP=:
7178 test -z "$ac_objext" && ac_objext=o
7179
7180 # Determine commands to create old-style static archives.
7181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7182 old_postinstall_cmds='chmod 644 $oldlib'
7183 old_postuninstall_cmds=
7184
7185 if test -n "$RANLIB"; then
7186   case $host_os in
7187   openbsd*)
7188     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7189     ;;
7190   *)
7191     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7192     ;;
7193   esac
7194   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7195 fi
7196
7197 for cc_temp in $compiler""; do
7198   case $cc_temp in
7199     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7200     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7201     \-*) ;;
7202     *) break;;
7203   esac
7204 done
7205 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7206
7207
7208 # Only perform the check for file, if the check method requires it
7209 case $deplibs_check_method in
7210 file_magic*)
7211   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7212     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   case $MAGIC_CMD in
7218 [\\/*] |  ?:[\\/]*)
7219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7220   ;;
7221 *)
7222   lt_save_MAGIC_CMD="$MAGIC_CMD"
7223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7225   for ac_dir in $ac_dummy; do
7226     IFS="$lt_save_ifs"
7227     test -z "$ac_dir" && ac_dir=.
7228     if test -f $ac_dir/${ac_tool_prefix}file; then
7229       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7230       if test -n "$file_magic_test_file"; then
7231         case $deplibs_check_method in
7232         "file_magic "*)
7233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7236             $EGREP "$file_magic_regex" > /dev/null; then
7237             :
7238           else
7239             cat <<EOF 1>&2
7240
7241 *** Warning: the command libtool uses to detect shared libraries,
7242 *** $file_magic_cmd, produces output that libtool cannot recognize.
7243 *** The result is that libtool may fail to recognize shared libraries
7244 *** as such.  This will affect the creation of libtool libraries that
7245 *** depend on shared libraries, but programs linked with such libtool
7246 *** libraries will work regardless of this problem.  Nevertheless, you
7247 *** may want to report the problem to your system manager and/or to
7248 *** bug-libtool@gnu.org
7249
7250 EOF
7251           fi ;;
7252         esac
7253       fi
7254       break
7255     fi
7256   done
7257   IFS="$lt_save_ifs"
7258   MAGIC_CMD="$lt_save_MAGIC_CMD"
7259   ;;
7260 esac
7261 fi
7262
7263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7264 if test -n "$MAGIC_CMD"; then
7265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7267 else
7268   { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272 if test -z "$lt_cv_path_MAGIC_CMD"; then
7273   if test -n "$ac_tool_prefix"; then
7274     { echo "$as_me:$LINENO: checking for file" >&5
7275 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $MAGIC_CMD in
7280 [\\/*] |  ?:[\\/]*)
7281   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282   ;;
7283 *)
7284   lt_save_MAGIC_CMD="$MAGIC_CMD"
7285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287   for ac_dir in $ac_dummy; do
7288     IFS="$lt_save_ifs"
7289     test -z "$ac_dir" && ac_dir=.
7290     if test -f $ac_dir/file; then
7291       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7292       if test -n "$file_magic_test_file"; then
7293         case $deplibs_check_method in
7294         "file_magic "*)
7295           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298             $EGREP "$file_magic_regex" > /dev/null; then
7299             :
7300           else
7301             cat <<EOF 1>&2
7302
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such.  This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem.  Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** bug-libtool@gnu.org
7311
7312 EOF
7313           fi ;;
7314         esac
7315       fi
7316       break
7317     fi
7318   done
7319   IFS="$lt_save_ifs"
7320   MAGIC_CMD="$lt_save_MAGIC_CMD"
7321   ;;
7322 esac
7323 fi
7324
7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334   else
7335     MAGIC_CMD=:
7336   fi
7337 fi
7338
7339   fi
7340   ;;
7341 esac
7342
7343 enable_dlopen=no
7344 enable_win32_dll=no
7345
7346 # Check whether --enable-libtool-lock was given.
7347 if test "${enable_libtool_lock+set}" = set; then
7348   enableval=$enable_libtool_lock;
7349 fi
7350
7351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7352
7353
7354 # Check whether --with-pic was given.
7355 if test "${with_pic+set}" = set; then
7356   withval=$with_pic; pic_mode="$withval"
7357 else
7358   pic_mode=default
7359 fi
7360
7361 test -z "$pic_mode" && pic_mode=default
7362
7363 # Use C for the default configuration in the libtool script
7364 tagname=
7365 lt_save_CC="$CC"
7366 ac_ext=c
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371
7372
7373 # Source file extension for C test sources.
7374 ac_ext=c
7375
7376 # Object file extension for compiled C test sources.
7377 objext=o
7378 objext=$objext
7379
7380 # Code to be used in simple compile tests
7381 lt_simple_compile_test_code="int some_variable = 0;"
7382
7383 # Code to be used in simple link tests
7384 lt_simple_link_test_code='int main(){return(0);}'
7385
7386
7387 # If no C compiler was specified, use CC.
7388 LTCC=${LTCC-"$CC"}
7389
7390 # If no C compiler flags were specified, use CFLAGS.
7391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7392
7393 # Allow CC to be a program name with arguments.
7394 compiler=$CC
7395
7396
7397 # save warnings/boilerplate of simple test code
7398 ac_outfile=conftest.$ac_objext
7399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7401 _lt_compiler_boilerplate=`cat conftest.err`
7402 $rm conftest*
7403
7404 ac_outfile=conftest.$ac_objext
7405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7407 _lt_linker_boilerplate=`cat conftest.err`
7408 $rm conftest*
7409
7410
7411
7412 lt_prog_compiler_no_builtin_flag=
7413
7414 if test "$GCC" = yes; then
7415   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7416
7417
7418 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   lt_cv_prog_compiler_rtti_exceptions=no
7424   ac_outfile=conftest.$ac_objext
7425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7426    lt_compiler_flag="-fno-rtti -fno-exceptions"
7427    # Insert the option either (1) after the last *FLAGS variable, or
7428    # (2) before a word containing "conftest.", or (3) at the end.
7429    # Note that $ac_compile itself does not contain backslashes and begins
7430    # with a dollar sign (not a hyphen), so the echo should work correctly.
7431    # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
7438    ac_status=$?
7439    cat conftest.err >&5
7440    echo "$as_me:7440: \$? = $ac_status" >&5
7441    if (exit $ac_status) && test -s "$ac_outfile"; then
7442      # The compiler can only warn and ignore the option if not recognized
7443      # So say no if there are warnings other than the usual output.
7444      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7447        lt_cv_prog_compiler_rtti_exceptions=yes
7448      fi
7449    fi
7450    $rm conftest*
7451
7452 fi
7453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7455
7456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7458 else
7459     :
7460 fi
7461
7462 fi
7463
7464 lt_prog_compiler_wl=
7465 lt_prog_compiler_pic=
7466 lt_prog_compiler_static=
7467
7468 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7470
7471   if test "$GCC" = yes; then
7472     lt_prog_compiler_wl='-Wl,'
7473     lt_prog_compiler_static='-static'
7474
7475     case $host_os in
7476       aix*)
7477       # All AIX code is PIC.
7478       if test "$host_cpu" = ia64; then
7479         # AIX 5 now supports IA64 processor
7480         lt_prog_compiler_static='-Bstatic'
7481       fi
7482       ;;
7483
7484     amigaos*)
7485       # FIXME: we need at least 68020 code to build shared libraries, but
7486       # adding the `-m68020' flag to GCC prevents building anything better,
7487       # like `-m68040'.
7488       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7489       ;;
7490
7491     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7492       # PIC is the default for these OSes.
7493       ;;
7494
7495     mingw* | cygwin* | pw32* | os2*)
7496       # This hack is so that the source file can tell whether it is being
7497       # built for inclusion in a dll (and should export symbols for example).
7498       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7499       # (--disable-auto-import) libraries
7500       lt_prog_compiler_pic='-DDLL_EXPORT'
7501       ;;
7502
7503     darwin* | rhapsody*)
7504       # PIC is the default on this platform
7505       # Common symbols not allowed in MH_DYLIB files
7506       lt_prog_compiler_pic='-fno-common'
7507       ;;
7508
7509     interix[3-9]*)
7510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7511       # Instead, we relocate shared libraries at runtime.
7512       ;;
7513
7514     msdosdjgpp*)
7515       # Just because we use GCC doesn't mean we suddenly get shared libraries
7516       # on systems that don't support them.
7517       lt_prog_compiler_can_build_shared=no
7518       enable_shared=no
7519       ;;
7520
7521     sysv4*MP*)
7522       if test -d /usr/nec; then
7523         lt_prog_compiler_pic=-Kconform_pic
7524       fi
7525       ;;
7526
7527     hpux*)
7528       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7529       # not for PA HP-UX.
7530       case $host_cpu in
7531       hppa*64*|ia64*)
7532         # +Z the default
7533         ;;
7534       *)
7535         lt_prog_compiler_pic='-fPIC'
7536         ;;
7537       esac
7538       ;;
7539
7540     *)
7541       lt_prog_compiler_pic='-fPIC'
7542       ;;
7543     esac
7544   else
7545     # PORTME Check for flag to pass linker flags through the system compiler.
7546     case $host_os in
7547     aix*)
7548       lt_prog_compiler_wl='-Wl,'
7549       if test "$host_cpu" = ia64; then
7550         # AIX 5 now supports IA64 processor
7551         lt_prog_compiler_static='-Bstatic'
7552       else
7553         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7554       fi
7555       ;;
7556       darwin*)
7557         # PIC is the default on this platform
7558         # Common symbols not allowed in MH_DYLIB files
7559        case $cc_basename in
7560          xlc*)
7561          lt_prog_compiler_pic='-qnocommon'
7562          lt_prog_compiler_wl='-Wl,'
7563          ;;
7564        esac
7565        ;;
7566
7567     mingw* | cygwin* | pw32* | os2*)
7568       # This hack is so that the source file can tell whether it is being
7569       # built for inclusion in a dll (and should export symbols for example).
7570       lt_prog_compiler_pic='-DDLL_EXPORT'
7571       ;;
7572
7573     hpux9* | hpux10* | hpux11*)
7574       lt_prog_compiler_wl='-Wl,'
7575       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7576       # not for PA HP-UX.
7577       case $host_cpu in
7578       hppa*64*|ia64*)
7579         # +Z the default
7580         ;;
7581       *)
7582         lt_prog_compiler_pic='+Z'
7583         ;;
7584       esac
7585       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7586       lt_prog_compiler_static='${wl}-a ${wl}archive'
7587       ;;
7588
7589     irix5* | irix6* | nonstopux*)
7590       lt_prog_compiler_wl='-Wl,'
7591       # PIC (with -KPIC) is the default.
7592       lt_prog_compiler_static='-non_shared'
7593       ;;
7594
7595     newsos6)
7596       lt_prog_compiler_pic='-KPIC'
7597       lt_prog_compiler_static='-Bstatic'
7598       ;;
7599
7600     linux* | k*bsd*-gnu)
7601       case $cc_basename in
7602       icc* | ecc*)
7603         lt_prog_compiler_wl='-Wl,'
7604         lt_prog_compiler_pic='-KPIC'
7605         lt_prog_compiler_static='-static'
7606         ;;
7607       pgcc* | pgf77* | pgf90* | pgf95*)
7608         # Portland Group compilers (*not* the Pentium gcc compiler,
7609         # which looks to be a dead project)
7610         lt_prog_compiler_wl='-Wl,'
7611         lt_prog_compiler_pic='-fpic'
7612         lt_prog_compiler_static='-Bstatic'
7613         ;;
7614       ccc*)
7615         lt_prog_compiler_wl='-Wl,'
7616         # All Alpha code is PIC.
7617         lt_prog_compiler_static='-non_shared'
7618         ;;
7619       *)
7620         case `$CC -V 2>&1 | sed 5q` in
7621         *Sun\ C*)
7622           # Sun C 5.9
7623           lt_prog_compiler_pic='-KPIC'
7624           lt_prog_compiler_static='-Bstatic'
7625           lt_prog_compiler_wl='-Wl,'
7626           ;;
7627         *Sun\ F*)
7628           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7629           lt_prog_compiler_pic='-KPIC'
7630           lt_prog_compiler_static='-Bstatic'
7631           lt_prog_compiler_wl=''
7632           ;;
7633         esac
7634         ;;
7635       esac
7636       ;;
7637
7638     osf3* | osf4* | osf5*)
7639       lt_prog_compiler_wl='-Wl,'
7640       # All OSF/1 code is PIC.
7641       lt_prog_compiler_static='-non_shared'
7642       ;;
7643
7644     rdos*)
7645       lt_prog_compiler_static='-non_shared'
7646       ;;
7647
7648     solaris*)
7649       lt_prog_compiler_pic='-KPIC'
7650       lt_prog_compiler_static='-Bstatic'
7651       case $cc_basename in
7652       f77* | f90* | f95*)
7653         lt_prog_compiler_wl='-Qoption ld ';;
7654       *)
7655         lt_prog_compiler_wl='-Wl,';;
7656       esac
7657       ;;
7658
7659     sunos4*)
7660       lt_prog_compiler_wl='-Qoption ld '
7661       lt_prog_compiler_pic='-PIC'
7662       lt_prog_compiler_static='-Bstatic'
7663       ;;
7664
7665     sysv4 | sysv4.2uw2* | sysv4.3*)
7666       lt_prog_compiler_wl='-Wl,'
7667       lt_prog_compiler_pic='-KPIC'
7668       lt_prog_compiler_static='-Bstatic'
7669       ;;
7670
7671     sysv4*MP*)
7672       if test -d /usr/nec ;then
7673         lt_prog_compiler_pic='-Kconform_pic'
7674         lt_prog_compiler_static='-Bstatic'
7675       fi
7676       ;;
7677
7678     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7679       lt_prog_compiler_wl='-Wl,'
7680       lt_prog_compiler_pic='-KPIC'
7681       lt_prog_compiler_static='-Bstatic'
7682       ;;
7683
7684     unicos*)
7685       lt_prog_compiler_wl='-Wl,'
7686       lt_prog_compiler_can_build_shared=no
7687       ;;
7688
7689     uts4*)
7690       lt_prog_compiler_pic='-pic'
7691       lt_prog_compiler_static='-Bstatic'
7692       ;;
7693
7694     *)
7695       lt_prog_compiler_can_build_shared=no
7696       ;;
7697     esac
7698   fi
7699
7700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7702
7703 #
7704 # Check to make sure the PIC flag actually works.
7705 #
7706 if test -n "$lt_prog_compiler_pic"; then
7707
7708 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7710 if test "${lt_prog_compiler_pic_works+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   lt_prog_compiler_pic_works=no
7714   ac_outfile=conftest.$ac_objext
7715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7716    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7717    # Insert the option either (1) after the last *FLAGS variable, or
7718    # (2) before a word containing "conftest.", or (3) at the end.
7719    # Note that $ac_compile itself does not contain backslashes and begins
7720    # with a dollar sign (not a hyphen), so the echo should work correctly.
7721    # The option is referenced via a variable to avoid confusing sed.
7722    lt_compile=`echo "$ac_compile" | $SED \
7723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725    -e 's:$: $lt_compiler_flag:'`
7726    (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7727    (eval "$lt_compile" 2>conftest.err)
7728    ac_status=$?
7729    cat conftest.err >&5
7730    echo "$as_me:7730: \$? = $ac_status" >&5
7731    if (exit $ac_status) && test -s "$ac_outfile"; then
7732      # The compiler can only warn and ignore the option if not recognized
7733      # So say no if there are warnings other than the usual output.
7734      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737        lt_prog_compiler_pic_works=yes
7738      fi
7739    fi
7740    $rm conftest*
7741
7742 fi
7743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7744 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7745
7746 if test x"$lt_prog_compiler_pic_works" = xyes; then
7747     case $lt_prog_compiler_pic in
7748      "" | " "*) ;;
7749      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7750      esac
7751 else
7752     lt_prog_compiler_pic=
7753      lt_prog_compiler_can_build_shared=no
7754 fi
7755
7756 fi
7757 case $host_os in
7758   # For platforms which do not support PIC, -DPIC is meaningless:
7759   *djgpp*)
7760     lt_prog_compiler_pic=
7761     ;;
7762   *)
7763     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7764     ;;
7765 esac
7766
7767 #
7768 # Check to make sure the static flag actually works.
7769 #
7770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7771 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7773 if test "${lt_prog_compiler_static_works+set}" = set; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776   lt_prog_compiler_static_works=no
7777    save_LDFLAGS="$LDFLAGS"
7778    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7779    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7780    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7781      # The linker can only warn and ignore the option if not recognized
7782      # So say no if there are warnings
7783      if test -s conftest.err; then
7784        # Append any errors to the config.log.
7785        cat conftest.err 1>&5
7786        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7787        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788        if diff conftest.exp conftest.er2 >/dev/null; then
7789          lt_prog_compiler_static_works=yes
7790        fi
7791      else
7792        lt_prog_compiler_static_works=yes
7793      fi
7794    fi
7795    $rm conftest*
7796    LDFLAGS="$save_LDFLAGS"
7797
7798 fi
7799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7801
7802 if test x"$lt_prog_compiler_static_works" = xyes; then
7803     :
7804 else
7805     lt_prog_compiler_static=
7806 fi
7807
7808
7809 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7811 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   lt_cv_prog_compiler_c_o=no
7815    $rm -r conftest 2>/dev/null
7816    mkdir conftest
7817    cd conftest
7818    mkdir out
7819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7820
7821    lt_compiler_flag="-o out/conftest2.$ac_objext"
7822    # Insert the option either (1) after the last *FLAGS variable, or
7823    # (2) before a word containing "conftest.", or (3) at the end.
7824    # Note that $ac_compile itself does not contain backslashes and begins
7825    # with a dollar sign (not a hyphen), so the echo should work correctly.
7826    lt_compile=`echo "$ac_compile" | $SED \
7827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829    -e 's:$: $lt_compiler_flag:'`
7830    (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831    (eval "$lt_compile" 2>out/conftest.err)
7832    ac_status=$?
7833    cat out/conftest.err >&5
7834    echo "$as_me:7834: \$? = $ac_status" >&5
7835    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7836    then
7837      # The compiler can only warn and ignore the option if not recognized
7838      # So say no if there are warnings
7839      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7840      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7841      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7842        lt_cv_prog_compiler_c_o=yes
7843      fi
7844    fi
7845    chmod u+w . 2>&5
7846    $rm conftest*
7847    # SGI C++ compiler will create directory out/ii_files/ for
7848    # template instantiation
7849    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7850    $rm out/* && rmdir out
7851    cd ..
7852    rmdir conftest
7853    $rm conftest*
7854
7855 fi
7856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7858
7859
7860 hard_links="nottested"
7861 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7862   # do not overwrite the value of need_locks provided by the user
7863   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7864 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7865   hard_links=yes
7866   $rm conftest*
7867   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7868   touch conftest.a
7869   ln conftest.a conftest.b 2>&5 || hard_links=no
7870   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7871   { echo "$as_me:$LINENO: result: $hard_links" >&5
7872 echo "${ECHO_T}$hard_links" >&6; }
7873   if test "$hard_links" = no; then
7874     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876     need_locks=warn
7877   fi
7878 else
7879   need_locks=no
7880 fi
7881
7882 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7884
7885   runpath_var=
7886   allow_undefined_flag=
7887   enable_shared_with_static_runtimes=no
7888   archive_cmds=
7889   archive_expsym_cmds=
7890   old_archive_From_new_cmds=
7891   old_archive_from_expsyms_cmds=
7892   export_dynamic_flag_spec=
7893   whole_archive_flag_spec=
7894   thread_safe_flag_spec=
7895   hardcode_libdir_flag_spec=
7896   hardcode_libdir_flag_spec_ld=
7897   hardcode_libdir_separator=
7898   hardcode_direct=no
7899   hardcode_minus_L=no
7900   hardcode_shlibpath_var=unsupported
7901   link_all_deplibs=unknown
7902   hardcode_automatic=no
7903   module_cmds=
7904   module_expsym_cmds=
7905   always_export_symbols=no
7906   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7907   # include_expsyms should be a list of space-separated symbols to be *always*
7908   # included in the symbol list
7909   include_expsyms=
7910   # exclude_expsyms can be an extended regexp of symbols to exclude
7911   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913   # as well as any symbol that contains `d'.
7914   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7915   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916   # platforms (ab)use it in PIC code, but their linkers get confused if
7917   # the symbol is explicitly referenced.  Since portable code cannot
7918   # rely on this symbol name, it's probably fine to never include it in
7919   # preloaded symbol tables.
7920   extract_expsyms_cmds=
7921   # Just being paranoid about ensuring that cc_basename is set.
7922   for cc_temp in $compiler""; do
7923   case $cc_temp in
7924     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7925     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7926     \-*) ;;
7927     *) break;;
7928   esac
7929 done
7930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7931
7932   case $host_os in
7933   cygwin* | mingw* | pw32*)
7934     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7935     # When not using gcc, we currently assume that we are using
7936     # Microsoft Visual C++.
7937     if test "$GCC" != yes; then
7938       with_gnu_ld=no
7939     fi
7940     ;;
7941   interix*)
7942     # we just hope/assume this is gcc and not c89 (= MSVC++)
7943     with_gnu_ld=yes
7944     ;;
7945   openbsd*)
7946     with_gnu_ld=no
7947     ;;
7948   esac
7949
7950   ld_shlibs=yes
7951   if test "$with_gnu_ld" = yes; then
7952     # If archive_cmds runs LD, not CC, wlarc should be empty
7953     wlarc='${wl}'
7954
7955     # Set some defaults for GNU ld with shared library support. These
7956     # are reset later if shared libraries are not supported. Putting them
7957     # here allows them to be overridden if necessary.
7958     runpath_var=LD_RUN_PATH
7959     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7960     export_dynamic_flag_spec='${wl}--export-dynamic'
7961     # ancient GNU ld didn't support --whole-archive et. al.
7962     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7963         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7964       else
7965         whole_archive_flag_spec=
7966     fi
7967     supports_anon_versioning=no
7968     case `$LD -v 2>/dev/null` in
7969       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7970       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7971       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7972       *\ 2.11.*) ;; # other 2.11 versions
7973       *) supports_anon_versioning=yes ;;
7974     esac
7975
7976     # See if GNU ld supports shared libraries.
7977     case $host_os in
7978     aix3* | aix4* | aix5*)
7979       # On AIX/PPC, the GNU linker is very broken
7980       if test "$host_cpu" != ia64; then
7981         ld_shlibs=no
7982         cat <<EOF 1>&2
7983
7984 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7985 *** to be unable to reliably create shared libraries on AIX.
7986 *** Therefore, libtool is disabling shared libraries support.  If you
7987 *** really care for shared libraries, you may want to modify your PATH
7988 *** so that a non-GNU linker is found, and then restart.
7989
7990 EOF
7991       fi
7992       ;;
7993
7994     amigaos*)
7995       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)'
7996       hardcode_libdir_flag_spec='-L$libdir'
7997       hardcode_minus_L=yes
7998
7999       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8000       # that the semantics of dynamic libraries on AmigaOS, at least up
8001       # to version 4, is to share data among multiple programs linked
8002       # with the same dynamic library.  Since this doesn't match the
8003       # behavior of shared libraries on other platforms, we can't use
8004       # them.
8005       ld_shlibs=no
8006       ;;
8007
8008     beos*)
8009       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010         allow_undefined_flag=unsupported
8011         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012         # support --undefined.  This deserves some investigation.  FIXME
8013         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014       else
8015         ld_shlibs=no
8016       fi
8017       ;;
8018
8019     cygwin* | mingw* | pw32*)
8020       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021       # as there is no search path for DLLs.
8022       hardcode_libdir_flag_spec='-L$libdir'
8023       allow_undefined_flag=unsupported
8024       always_export_symbols=no
8025       enable_shared_with_static_runtimes=yes
8026       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8027
8028       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8029         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030         # If the export-symbols file already is a .def file (1st line
8031         # is EXPORTS), use it as is; otherwise, prepend...
8032         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033           cp $export_symbols $output_objdir/$soname.def;
8034         else
8035           echo EXPORTS > $output_objdir/$soname.def;
8036           cat $export_symbols >> $output_objdir/$soname.def;
8037         fi~
8038         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8039       else
8040         ld_shlibs=no
8041       fi
8042       ;;
8043
8044     interix[3-9]*)
8045       hardcode_direct=no
8046       hardcode_shlibpath_var=no
8047       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8048       export_dynamic_flag_spec='${wl}-E'
8049       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050       # Instead, shared libraries are loaded at an image base (0x10000000 by
8051       # default) and relocated if they conflict, which is a slow very memory
8052       # consuming and fragmenting process.  To avoid this, we pick a random,
8053       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8055       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056       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'
8057       ;;
8058
8059     gnu* | linux* | k*bsd*-gnu)
8060       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061         tmp_addflag=
8062         case $cc_basename,$host_cpu in
8063         pgcc*)                          # Portland Group C compiler
8064           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'
8065           tmp_addflag=' $pic_flag'
8066           ;;
8067         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8068           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'
8069           tmp_addflag=' $pic_flag -Mnomain' ;;
8070         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8071           tmp_addflag=' -i_dynamic' ;;
8072         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8073           tmp_addflag=' -i_dynamic -nofor_main' ;;
8074         ifc* | ifort*)                  # Intel Fortran compiler
8075           tmp_addflag=' -nofor_main' ;;
8076         esac
8077         case `$CC -V 2>&1 | sed 5q` in
8078         *Sun\ C*)                       # Sun C 5.9
8079           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'
8080           tmp_sharedflag='-G' ;;
8081         *Sun\ F*)                       # Sun Fortran 8.3
8082           tmp_sharedflag='-G' ;;
8083         *)
8084           tmp_sharedflag='-shared' ;;
8085         esac
8086         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8087
8088         if test $supports_anon_versioning = yes; then
8089           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8090   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8091   $echo "local: *; };" >> $output_objdir/$libname.ver~
8092           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8093         fi
8094       else
8095         ld_shlibs=no
8096       fi
8097       ;;
8098
8099     netbsd*)
8100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8101         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8102         wlarc=
8103       else
8104         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8106       fi
8107       ;;
8108
8109     solaris*)
8110       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8111         ld_shlibs=no
8112         cat <<EOF 1>&2
8113
8114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8115 *** create shared libraries on Solaris systems.  Therefore, libtool
8116 *** is disabling shared libraries support.  We urge you to upgrade GNU
8117 *** binutils to release 2.9.1 or newer.  Another option is to modify
8118 *** your PATH or compiler configuration so that the native linker is
8119 *** used, and then restart.
8120
8121 EOF
8122       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8123         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8124         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8125       else
8126         ld_shlibs=no
8127       fi
8128       ;;
8129
8130     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8131       case `$LD -v 2>&1` in
8132         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8133         ld_shlibs=no
8134         cat <<_LT_EOF 1>&2
8135
8136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8137 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8138 *** is disabling shared libraries support.  We urge you to upgrade GNU
8139 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8140 *** your PATH or compiler configuration so that the native linker is
8141 *** used, and then restart.
8142
8143 _LT_EOF
8144         ;;
8145         *)
8146           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8147             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8148             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8149             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8150           else
8151             ld_shlibs=no
8152           fi
8153         ;;
8154       esac
8155       ;;
8156
8157     sunos4*)
8158       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8159       wlarc=
8160       hardcode_direct=yes
8161       hardcode_shlibpath_var=no
8162       ;;
8163
8164     *)
8165       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8168       else
8169         ld_shlibs=no
8170       fi
8171       ;;
8172     esac
8173
8174     if test "$ld_shlibs" = no; then
8175       runpath_var=
8176       hardcode_libdir_flag_spec=
8177       export_dynamic_flag_spec=
8178       whole_archive_flag_spec=
8179     fi
8180   else
8181     # PORTME fill in a description of your system's linker (not GNU ld)
8182     case $host_os in
8183     aix3*)
8184       allow_undefined_flag=unsupported
8185       always_export_symbols=yes
8186       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'
8187       # Note: this linker hardcodes the directories in LIBPATH if there
8188       # are no directories specified by -L.
8189       hardcode_minus_L=yes
8190       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8191         # Neither direct hardcoding nor static linking is supported with a
8192         # broken collect2.
8193         hardcode_direct=unsupported
8194       fi
8195       ;;
8196
8197     aix4* | aix5*)
8198       if test "$host_cpu" = ia64; then
8199         # On IA64, the linker does run time linking by default, so we don't
8200         # have to do anything special.
8201         aix_use_runtimelinking=no
8202         exp_sym_flag='-Bexport'
8203         no_entry_flag=""
8204       else
8205         # If we're using GNU nm, then we don't want the "-C" option.
8206         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8207         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8208           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'
8209         else
8210           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'
8211         fi
8212         aix_use_runtimelinking=no
8213
8214         # Test if we are trying to use run time linking or normal
8215         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8216         # need to do runtime linking.
8217         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8218           for ld_flag in $LDFLAGS; do
8219           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8220             aix_use_runtimelinking=yes
8221             break
8222           fi
8223           done
8224           ;;
8225         esac
8226
8227         exp_sym_flag='-bexport'
8228         no_entry_flag='-bnoentry'
8229       fi
8230
8231       # When large executables or shared objects are built, AIX ld can
8232       # have problems creating the table of contents.  If linking a library
8233       # or program results in "error TOC overflow" add -mminimal-toc to
8234       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8235       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8236
8237       archive_cmds=''
8238       hardcode_direct=yes
8239       hardcode_libdir_separator=':'
8240       link_all_deplibs=yes
8241
8242       if test "$GCC" = yes; then
8243         case $host_os in aix4.[012]|aix4.[012].*)
8244         # We only want to do this on AIX 4.2 and lower, the check
8245         # below for broken collect2 doesn't work under 4.3+
8246           collect2name=`${CC} -print-prog-name=collect2`
8247           if test -f "$collect2name" && \
8248            strings "$collect2name" | grep resolve_lib_name >/dev/null
8249           then
8250           # We have reworked collect2
8251           :
8252           else
8253           # We have old collect2
8254           hardcode_direct=unsupported
8255           # It fails to find uninstalled libraries when the uninstalled
8256           # path is not listed in the libpath.  Setting hardcode_minus_L
8257           # to unsupported forces relinking
8258           hardcode_minus_L=yes
8259           hardcode_libdir_flag_spec='-L$libdir'
8260           hardcode_libdir_separator=
8261           fi
8262           ;;
8263         esac
8264         shared_flag='-shared'
8265         if test "$aix_use_runtimelinking" = yes; then
8266           shared_flag="$shared_flag "'${wl}-G'
8267         fi
8268       else
8269         # not using gcc
8270         if test "$host_cpu" = ia64; then
8271         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8272         # chokes on -Wl,-G. The following line is correct:
8273           shared_flag='-G'
8274         else
8275           if test "$aix_use_runtimelinking" = yes; then
8276             shared_flag='${wl}-G'
8277           else
8278             shared_flag='${wl}-bM:SRE'
8279           fi
8280         fi
8281       fi
8282
8283       # It seems that -bexpall does not export symbols beginning with
8284       # underscore (_), so it is better to generate a list of symbols to export.
8285       always_export_symbols=yes
8286       if test "$aix_use_runtimelinking" = yes; then
8287         # Warning - without using the other runtime loading flags (-brtl),
8288         # -berok will link without error, but may produce a broken library.
8289         allow_undefined_flag='-berok'
8290        # Determine the default libpath from the value encoded in an empty executable.
8291        cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297
8298 int
8299 main ()
8300 {
8301
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (ac_try="$ac_link"
8308 case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_link") 2>conftest.er1
8314   ac_status=$?
8315   grep -v '^ *+' conftest.er1 >conftest.err
8316   rm -f conftest.er1
8317   cat conftest.err >&5
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } && {
8320          test -z "$ac_c_werror_flag" ||
8321          test ! -s conftest.err
8322        } && test -s conftest$ac_exeext &&
8323        $as_test_x conftest$ac_exeext; then
8324
8325 lt_aix_libpath_sed='
8326     /Import File Strings/,/^$/ {
8327         /^0/ {
8328             s/^0  *\(.*\)$/\1/
8329             p
8330         }
8331     }'
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333 # Check for a 64-bit object if we didn't find anything.
8334 if test -z "$aix_libpath"; then
8335   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 fi
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8345       conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8347
8348        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349         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"
8350        else
8351         if test "$host_cpu" = ia64; then
8352           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8353           allow_undefined_flag="-z nodefs"
8354           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"
8355         else
8356          # Determine the default libpath from the value encoded in an empty executable.
8357          cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363
8364 int
8365 main ()
8366 {
8367
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8374 case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_link") 2>conftest.er1
8380   ac_status=$?
8381   grep -v '^ *+' conftest.er1 >conftest.err
8382   rm -f conftest.er1
8383   cat conftest.err >&5
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } && {
8386          test -z "$ac_c_werror_flag" ||
8387          test ! -s conftest.err
8388        } && test -s conftest$ac_exeext &&
8389        $as_test_x conftest$ac_exeext; then
8390
8391 lt_aix_libpath_sed='
8392     /Import File Strings/,/^$/ {
8393         /^0/ {
8394             s/^0  *\(.*\)$/\1/
8395             p
8396         }
8397     }'
8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 # Check for a 64-bit object if we didn't find anything.
8400 if test -z "$aix_libpath"; then
8401   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8402 fi
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407
8408 fi
8409
8410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8411       conftest$ac_exeext conftest.$ac_ext
8412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8413
8414          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8415           # Warning - without using the other run time loading flags,
8416           # -berok will link without error, but may produce a broken library.
8417           no_undefined_flag=' ${wl}-bernotok'
8418           allow_undefined_flag=' ${wl}-berok'
8419           # Exported symbols can be pulled into shared objects from archives
8420           whole_archive_flag_spec='$convenience'
8421           archive_cmds_need_lc=yes
8422           # This is similar to how AIX traditionally builds its shared libraries.
8423           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'
8424         fi
8425       fi
8426       ;;
8427
8428     amigaos*)
8429       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)'
8430       hardcode_libdir_flag_spec='-L$libdir'
8431       hardcode_minus_L=yes
8432       # see comment about different semantics on the GNU ld section
8433       ld_shlibs=no
8434       ;;
8435
8436     bsdi[45]*)
8437       export_dynamic_flag_spec=-rdynamic
8438       ;;
8439
8440     cygwin* | mingw* | pw32*)
8441       # When not using gcc, we currently assume that we are using
8442       # Microsoft Visual C++.
8443       # hardcode_libdir_flag_spec is actually meaningless, as there is
8444       # no search path for DLLs.
8445       hardcode_libdir_flag_spec=' '
8446       allow_undefined_flag=unsupported
8447       # Tell ltmain to make .lib files, not .a files.
8448       libext=lib
8449       # Tell ltmain to make .dll files, not .so files.
8450       shrext_cmds=".dll"
8451       # FIXME: Setting linknames here is a bad hack.
8452       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8453       # The linker will automatically build a .lib file if we build a DLL.
8454       old_archive_From_new_cmds='true'
8455       # FIXME: Should let the user specify the lib program.
8456       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8457       fix_srcfile_path='`cygpath -w "$srcfile"`'
8458       enable_shared_with_static_runtimes=yes
8459       ;;
8460
8461     darwin* | rhapsody*)
8462       case $host_os in
8463         rhapsody* | darwin1.[012])
8464          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8465          ;;
8466        *) # Darwin 1.3 on
8467          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8468            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8469          else
8470            case ${MACOSX_DEPLOYMENT_TARGET} in
8471              10.[012])
8472                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8473                ;;
8474              10.*)
8475                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8476                ;;
8477            esac
8478          fi
8479          ;;
8480       esac
8481       archive_cmds_need_lc=no
8482       hardcode_direct=no
8483       hardcode_automatic=yes
8484       hardcode_shlibpath_var=unsupported
8485       whole_archive_flag_spec=''
8486       link_all_deplibs=yes
8487     if test "$GCC" = yes ; then
8488         output_verbose_link_cmd='echo'
8489         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8490       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8491       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8492       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}'
8493       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}'
8494     else
8495       case $cc_basename in
8496         xlc*)
8497          output_verbose_link_cmd='echo'
8498          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8499          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8501          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}'
8502           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}'
8503           ;;
8504        *)
8505          ld_shlibs=no
8506           ;;
8507       esac
8508     fi
8509       ;;
8510
8511     dgux*)
8512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8513       hardcode_libdir_flag_spec='-L$libdir'
8514       hardcode_shlibpath_var=no
8515       ;;
8516
8517     freebsd1*)
8518       ld_shlibs=no
8519       ;;
8520
8521     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8522     # support.  Future versions do this automatically, but an explicit c++rt0.o
8523     # does not break anything, and helps significantly (at the cost of a little
8524     # extra space).
8525     freebsd2.2*)
8526       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8527       hardcode_libdir_flag_spec='-R$libdir'
8528       hardcode_direct=yes
8529       hardcode_shlibpath_var=no
8530       ;;
8531
8532     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8533     freebsd2*)
8534       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8535       hardcode_direct=yes
8536       hardcode_minus_L=yes
8537       hardcode_shlibpath_var=no
8538       ;;
8539
8540     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8541     freebsd* | dragonfly*)
8542       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8543       hardcode_libdir_flag_spec='-R$libdir'
8544       hardcode_direct=yes
8545       hardcode_shlibpath_var=no
8546       ;;
8547
8548     hpux9*)
8549       if test "$GCC" = yes; then
8550         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'
8551       else
8552         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'
8553       fi
8554       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8555       hardcode_libdir_separator=:
8556       hardcode_direct=yes
8557
8558       # hardcode_minus_L: Not really in the search PATH,
8559       # but as the default location of the library.
8560       hardcode_minus_L=yes
8561       export_dynamic_flag_spec='${wl}-E'
8562       ;;
8563
8564     hpux10*)
8565       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8566         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8567       else
8568         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8569       fi
8570       if test "$with_gnu_ld" = no; then
8571         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8572         hardcode_libdir_separator=:
8573
8574         hardcode_direct=yes
8575         export_dynamic_flag_spec='${wl}-E'
8576
8577         # hardcode_minus_L: Not really in the search PATH,
8578         # but as the default location of the library.
8579         hardcode_minus_L=yes
8580       fi
8581       ;;
8582
8583     hpux11*)
8584       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8585         case $host_cpu in
8586         hppa*64*)
8587           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8588           ;;
8589         ia64*)
8590           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8591           ;;
8592         *)
8593           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594           ;;
8595         esac
8596       else
8597         case $host_cpu in
8598         hppa*64*)
8599           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8600           ;;
8601         ia64*)
8602           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8603           ;;
8604         *)
8605           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8606           ;;
8607         esac
8608       fi
8609       if test "$with_gnu_ld" = no; then
8610         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8611         hardcode_libdir_separator=:
8612
8613         case $host_cpu in
8614         hppa*64*|ia64*)
8615           hardcode_libdir_flag_spec_ld='+b $libdir'
8616           hardcode_direct=no
8617           hardcode_shlibpath_var=no
8618           ;;
8619         *)
8620           hardcode_direct=yes
8621           export_dynamic_flag_spec='${wl}-E'
8622
8623           # hardcode_minus_L: Not really in the search PATH,
8624           # but as the default location of the library.
8625           hardcode_minus_L=yes
8626           ;;
8627         esac
8628       fi
8629       ;;
8630
8631     irix5* | irix6* | nonstopux*)
8632       if test "$GCC" = yes; then
8633         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'
8634       else
8635         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'
8636         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637       fi
8638       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639       hardcode_libdir_separator=:
8640       link_all_deplibs=yes
8641       ;;
8642
8643     netbsd*)
8644       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8645         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8646       else
8647         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8648       fi
8649       hardcode_libdir_flag_spec='-R$libdir'
8650       hardcode_direct=yes
8651       hardcode_shlibpath_var=no
8652       ;;
8653
8654     newsos6)
8655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656       hardcode_direct=yes
8657       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658       hardcode_libdir_separator=:
8659       hardcode_shlibpath_var=no
8660       ;;
8661
8662     openbsd*)
8663       if test -f /usr/libexec/ld.so; then
8664         hardcode_direct=yes
8665         hardcode_shlibpath_var=no
8666         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8667           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8669           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8670           export_dynamic_flag_spec='${wl}-E'
8671         else
8672           case $host_os in
8673            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8674              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8675              hardcode_libdir_flag_spec='-R$libdir'
8676              ;;
8677            *)
8678              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8679              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8680              ;;
8681           esac
8682         fi
8683       else
8684         ld_shlibs=no
8685       fi
8686       ;;
8687
8688     os2*)
8689       hardcode_libdir_flag_spec='-L$libdir'
8690       hardcode_minus_L=yes
8691       allow_undefined_flag=unsupported
8692       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'
8693       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8694       ;;
8695
8696     osf3*)
8697       if test "$GCC" = yes; then
8698         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699         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'
8700       else
8701         allow_undefined_flag=' -expect_unresolved \*'
8702         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'
8703       fi
8704       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705       hardcode_libdir_separator=:
8706       ;;
8707
8708     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8709       if test "$GCC" = yes; then
8710         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8711         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'
8712         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713       else
8714         allow_undefined_flag=' -expect_unresolved \*'
8715         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'
8716         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8717         $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'
8718
8719         # Both c and cxx compiler support -rpath directly
8720         hardcode_libdir_flag_spec='-rpath $libdir'
8721       fi
8722       hardcode_libdir_separator=:
8723       ;;
8724
8725     solaris*)
8726       no_undefined_flag=' -z text'
8727       if test "$GCC" = yes; then
8728         wlarc='${wl}'
8729         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8732       else
8733         wlarc=''
8734         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8736         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8737       fi
8738       hardcode_libdir_flag_spec='-R$libdir'
8739       hardcode_shlibpath_var=no
8740       case $host_os in
8741       solaris2.[0-5] | solaris2.[0-5].*) ;;
8742       *)
8743         # The compiler driver will combine and reorder linker options,
8744         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8745         # but is careful enough not to reorder.
8746         # Supported since Solaris 2.6 (maybe 2.5.1?)
8747         if test "$GCC" = yes; then
8748           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8749         else
8750           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8751         fi
8752         ;;
8753       esac
8754       link_all_deplibs=yes
8755       ;;
8756
8757     sunos4*)
8758       if test "x$host_vendor" = xsequent; then
8759         # Use $CC to link under sequent, because it throws in some extra .o
8760         # files that make .init and .fini sections work.
8761         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8762       else
8763         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8764       fi
8765       hardcode_libdir_flag_spec='-L$libdir'
8766       hardcode_direct=yes
8767       hardcode_minus_L=yes
8768       hardcode_shlibpath_var=no
8769       ;;
8770
8771     sysv4)
8772       case $host_vendor in
8773         sni)
8774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775           hardcode_direct=yes # is this really true???
8776         ;;
8777         siemens)
8778           ## LD is ld it makes a PLAMLIB
8779           ## CC just makes a GrossModule.
8780           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8781           reload_cmds='$CC -r -o $output$reload_objs'
8782           hardcode_direct=no
8783         ;;
8784         motorola)
8785           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8787         ;;
8788       esac
8789       runpath_var='LD_RUN_PATH'
8790       hardcode_shlibpath_var=no
8791       ;;
8792
8793     sysv4.3*)
8794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795       hardcode_shlibpath_var=no
8796       export_dynamic_flag_spec='-Bexport'
8797       ;;
8798
8799     sysv4*MP*)
8800       if test -d /usr/nec; then
8801         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802         hardcode_shlibpath_var=no
8803         runpath_var=LD_RUN_PATH
8804         hardcode_runpath_var=yes
8805         ld_shlibs=yes
8806       fi
8807       ;;
8808
8809     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8810       no_undefined_flag='${wl}-z,text'
8811       archive_cmds_need_lc=no
8812       hardcode_shlibpath_var=no
8813       runpath_var='LD_RUN_PATH'
8814
8815       if test "$GCC" = yes; then
8816         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818       else
8819         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821       fi
8822       ;;
8823
8824     sysv5* | sco3.2v5* | sco5v6*)
8825       # Note: We can NOT use -z defs as we might desire, because we do not
8826       # link with -lc, and that would cause any symbols used from libc to
8827       # always be unresolved, which means just about no library would
8828       # ever link correctly.  If we're not using GNU ld we use -z text
8829       # though, which does catch some bad symbols but isn't as heavy-handed
8830       # as -z defs.
8831       no_undefined_flag='${wl}-z,text'
8832       allow_undefined_flag='${wl}-z,nodefs'
8833       archive_cmds_need_lc=no
8834       hardcode_shlibpath_var=no
8835       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8836       hardcode_libdir_separator=':'
8837       link_all_deplibs=yes
8838       export_dynamic_flag_spec='${wl}-Bexport'
8839       runpath_var='LD_RUN_PATH'
8840
8841       if test "$GCC" = yes; then
8842         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844       else
8845         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847       fi
8848       ;;
8849
8850     uts4*)
8851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852       hardcode_libdir_flag_spec='-L$libdir'
8853       hardcode_shlibpath_var=no
8854       ;;
8855
8856     *)
8857       ld_shlibs=no
8858       ;;
8859     esac
8860   fi
8861
8862 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8863 echo "${ECHO_T}$ld_shlibs" >&6; }
8864 test "$ld_shlibs" = no && can_build_shared=no
8865
8866 #
8867 # Do we need to explicitly link libc?
8868 #
8869 case "x$archive_cmds_need_lc" in
8870 x|xyes)
8871   # Assume -lc should be added
8872   archive_cmds_need_lc=yes
8873
8874   if test "$enable_shared" = yes && test "$GCC" = yes; then
8875     case $archive_cmds in
8876     *'~'*)
8877       # FIXME: we may have to deal with multi-command sequences.
8878       ;;
8879     '$CC '*)
8880       # Test whether the compiler implicitly links with -lc since on some
8881       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8882       # to ld, don't add -lc before -lgcc.
8883       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8885       $rm conftest*
8886       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8887
8888       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889   (eval $ac_compile) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } 2>conftest.err; then
8893         soname=conftest
8894         lib=conftest
8895         libobjs=conftest.$ac_objext
8896         deplibs=
8897         wl=$lt_prog_compiler_wl
8898         pic_flag=$lt_prog_compiler_pic
8899         compiler_flags=-v
8900         linker_flags=-v
8901         verstring=
8902         output_objdir=.
8903         libname=conftest
8904         lt_save_allow_undefined_flag=$allow_undefined_flag
8905         allow_undefined_flag=
8906         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8907   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }
8911         then
8912           archive_cmds_need_lc=no
8913         else
8914           archive_cmds_need_lc=yes
8915         fi
8916         allow_undefined_flag=$lt_save_allow_undefined_flag
8917       else
8918         cat conftest.err 1>&5
8919       fi
8920       $rm conftest*
8921       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8922 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8923       ;;
8924     esac
8925   fi
8926   ;;
8927 esac
8928
8929 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8931 library_names_spec=
8932 libname_spec='lib$name'
8933 soname_spec=
8934 shrext_cmds=".so"
8935 postinstall_cmds=
8936 postuninstall_cmds=
8937 finish_cmds=
8938 finish_eval=
8939 shlibpath_var=
8940 shlibpath_overrides_runpath=unknown
8941 version_type=none
8942 dynamic_linker="$host_os ld.so"
8943 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8944
8945 if test "$GCC" = yes; then
8946   case $host_os in
8947     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8948     *) lt_awk_arg="/^libraries:/" ;;
8949   esac
8950   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8952     # if the path contains ";" then we assume it to be the separator
8953     # otherwise default to the standard path separator (i.e. ":") - it is
8954     # assumed that no part of a normal pathname contains ";" but that should
8955     # okay in the real world where ";" in dirpaths is itself problematic.
8956     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8957   else
8958     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8959   fi
8960   # Ok, now we have the path, separated by spaces, we can step through it
8961   # and add multilib dir if necessary.
8962   lt_tmp_lt_search_path_spec=
8963   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8964   for lt_sys_path in $lt_search_path_spec; do
8965     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8966       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8967     else
8968       test -d "$lt_sys_path" && \
8969         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8970     fi
8971   done
8972   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8973 BEGIN {RS=" "; FS="/|\n";} {
8974   lt_foo="";
8975   lt_count=0;
8976   for (lt_i = NF; lt_i > 0; lt_i--) {
8977     if ($lt_i != "" && $lt_i != ".") {
8978       if ($lt_i == "..") {
8979         lt_count++;
8980       } else {
8981         if (lt_count == 0) {
8982           lt_foo="/" $lt_i lt_foo;
8983         } else {
8984           lt_count--;
8985         }
8986       }
8987     }
8988   }
8989   if (lt_foo != "") { lt_freq[lt_foo]++; }
8990   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8991 }'`
8992   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8993 else
8994   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8995 fi
8996 need_lib_prefix=unknown
8997 hardcode_into_libs=no
8998
8999 # when you set need_version to no, make sure it does not cause -set_version
9000 # flags to be left without arguments
9001 need_version=unknown
9002
9003 case $host_os in
9004 aix3*)
9005   version_type=linux
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9007   shlibpath_var=LIBPATH
9008
9009   # AIX 3 has no versioning support, so we append a major version to the name.
9010   soname_spec='${libname}${release}${shared_ext}$major'
9011   ;;
9012
9013 aix4* | aix5*)
9014   version_type=linux
9015   need_lib_prefix=no
9016   need_version=no
9017   hardcode_into_libs=yes
9018   if test "$host_cpu" = ia64; then
9019     # AIX 5 supports IA64
9020     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9021     shlibpath_var=LD_LIBRARY_PATH
9022   else
9023     # With GCC up to 2.95.x, collect2 would create an import file
9024     # for dependence libraries.  The import file would start with
9025     # the line `#! .'.  This would cause the generated library to
9026     # depend on `.', always an invalid library.  This was fixed in
9027     # development snapshots of GCC prior to 3.0.
9028     case $host_os in
9029       aix4 | aix4.[01] | aix4.[01].*)
9030       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9031            echo ' yes '
9032            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9033         :
9034       else
9035         can_build_shared=no
9036       fi
9037       ;;
9038     esac
9039     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9040     # soname into executable. Probably we can add versioning support to
9041     # collect2, so additional links can be useful in future.
9042     if test "$aix_use_runtimelinking" = yes; then
9043       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9044       # instead of lib<name>.a to let people know that these are not
9045       # typical AIX shared libraries.
9046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047     else
9048       # We preserve .a as extension for shared libraries through AIX4.2
9049       # and later when we are not doing run time linking.
9050       library_names_spec='${libname}${release}.a $libname.a'
9051       soname_spec='${libname}${release}${shared_ext}$major'
9052     fi
9053     shlibpath_var=LIBPATH
9054   fi
9055   ;;
9056
9057 amigaos*)
9058   library_names_spec='$libname.ixlibrary $libname.a'
9059   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9060   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'
9061   ;;
9062
9063 beos*)
9064   library_names_spec='${libname}${shared_ext}'
9065   dynamic_linker="$host_os ld.so"
9066   shlibpath_var=LIBRARY_PATH
9067   ;;
9068
9069 bsdi[45]*)
9070   version_type=linux
9071   need_version=no
9072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073   soname_spec='${libname}${release}${shared_ext}$major'
9074   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9077   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9078   # the default ld.so.conf also contains /usr/contrib/lib and
9079   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9080   # libtool to hard-code these into programs
9081   ;;
9082
9083 cygwin* | mingw* | pw32*)
9084   version_type=windows
9085   shrext_cmds=".dll"
9086   need_version=no
9087   need_lib_prefix=no
9088
9089   case $GCC,$host_os in
9090   yes,cygwin* | yes,mingw* | yes,pw32*)
9091     library_names_spec='$libname.dll.a'
9092     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9093     postinstall_cmds='base_file=`basename \${file}`~
9094       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9095       dldir=$destdir/`dirname \$dlpath`~
9096       test -d \$dldir || mkdir -p \$dldir~
9097       $install_prog $dir/$dlname \$dldir/$dlname~
9098       chmod a+x \$dldir/$dlname'
9099     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9100       dlpath=$dir/\$dldll~
9101        $rm \$dlpath'
9102     shlibpath_overrides_runpath=yes
9103
9104     case $host_os in
9105     cygwin*)
9106       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9107       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9109       ;;
9110     mingw*)
9111       # MinGW DLLs use traditional 'lib' prefix
9112       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9115         # It is most probably a Windows format PATH printed by
9116         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9117         # path with ; separators, and with drive letters. We can handle the
9118         # drive letters (cygwin fileutils understands them), so leave them,
9119         # especially as we might pass files found there to a mingw objdump,
9120         # which wouldn't understand a cygwinified path. Ahh.
9121         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9122       else
9123         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9124       fi
9125       ;;
9126     pw32*)
9127       # pw32 DLLs use 'pw' prefix rather than 'lib'
9128       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129       ;;
9130     esac
9131     ;;
9132
9133   *)
9134     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9135     ;;
9136   esac
9137   dynamic_linker='Win32 ld.exe'
9138   # FIXME: first we should search . and the directory the executable is in
9139   shlibpath_var=PATH
9140   ;;
9141
9142 darwin* | rhapsody*)
9143   dynamic_linker="$host_os dyld"
9144   version_type=darwin
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9148   soname_spec='${libname}${release}${major}$shared_ext'
9149   shlibpath_overrides_runpath=yes
9150   shlibpath_var=DYLD_LIBRARY_PATH
9151   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9152
9153   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9154   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9155   ;;
9156
9157 dgux*)
9158   version_type=linux
9159   need_lib_prefix=no
9160   need_version=no
9161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9162   soname_spec='${libname}${release}${shared_ext}$major'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   ;;
9165
9166 freebsd1*)
9167   dynamic_linker=no
9168   ;;
9169
9170 freebsd* | dragonfly*)
9171   # DragonFly does not have aout.  When/if they implement a new
9172   # versioning mechanism, adjust this.
9173   if test -x /usr/bin/objformat; then
9174     objformat=`/usr/bin/objformat`
9175   else
9176     case $host_os in
9177     freebsd[123]*) objformat=aout ;;
9178     *) objformat=elf ;;
9179     esac
9180   fi
9181   version_type=freebsd-$objformat
9182   case $version_type in
9183     freebsd-elf*)
9184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9185       need_version=no
9186       need_lib_prefix=no
9187       ;;
9188     freebsd-*)
9189       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9190       need_version=yes
9191       ;;
9192   esac
9193   shlibpath_var=LD_LIBRARY_PATH
9194   case $host_os in
9195   freebsd2*)
9196     shlibpath_overrides_runpath=yes
9197     ;;
9198   freebsd3.[01]* | freebsdelf3.[01]*)
9199     shlibpath_overrides_runpath=yes
9200     hardcode_into_libs=yes
9201     ;;
9202   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9203   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9204     shlibpath_overrides_runpath=no
9205     hardcode_into_libs=yes
9206     ;;
9207   *) # from 4.6 on, and DragonFly
9208     shlibpath_overrides_runpath=yes
9209     hardcode_into_libs=yes
9210     ;;
9211   esac
9212   ;;
9213
9214 gnu*)
9215   version_type=linux
9216   need_lib_prefix=no
9217   need_version=no
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   hardcode_into_libs=yes
9222   ;;
9223
9224 hpux9* | hpux10* | hpux11*)
9225   # Give a soname corresponding to the major version so that dld.sl refuses to
9226   # link against other versions.
9227   version_type=sunos
9228   need_lib_prefix=no
9229   need_version=no
9230   case $host_cpu in
9231   ia64*)
9232     shrext_cmds='.so'
9233     hardcode_into_libs=yes
9234     dynamic_linker="$host_os dld.so"
9235     shlibpath_var=LD_LIBRARY_PATH
9236     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238     soname_spec='${libname}${release}${shared_ext}$major'
9239     if test "X$HPUX_IA64_MODE" = X32; then
9240       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9241     else
9242       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9243     fi
9244     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245     ;;
9246    hppa*64*)
9247      shrext_cmds='.sl'
9248      hardcode_into_libs=yes
9249      dynamic_linker="$host_os dld.sl"
9250      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9251      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9252      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253      soname_spec='${libname}${release}${shared_ext}$major'
9254      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9255      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9256      ;;
9257    *)
9258     shrext_cmds='.sl'
9259     dynamic_linker="$host_os dld.sl"
9260     shlibpath_var=SHLIB_PATH
9261     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263     soname_spec='${libname}${release}${shared_ext}$major'
9264     ;;
9265   esac
9266   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9267   postinstall_cmds='chmod 555 $lib'
9268   ;;
9269
9270 interix[3-9]*)
9271   version_type=linux
9272   need_lib_prefix=no
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   shlibpath_overrides_runpath=no
9279   hardcode_into_libs=yes
9280   ;;
9281
9282 irix5* | irix6* | nonstopux*)
9283   case $host_os in
9284     nonstopux*) version_type=nonstopux ;;
9285     *)
9286         if test "$lt_cv_prog_gnu_ld" = yes; then
9287                 version_type=linux
9288         else
9289                 version_type=irix
9290         fi ;;
9291   esac
9292   need_lib_prefix=no
9293   need_version=no
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9296   case $host_os in
9297   irix5* | nonstopux*)
9298     libsuff= shlibsuff=
9299     ;;
9300   *)
9301     case $LD in # libtool.m4 will add one of these switches to LD
9302     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9303       libsuff= shlibsuff= libmagic=32-bit;;
9304     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9305       libsuff=32 shlibsuff=N32 libmagic=N32;;
9306     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9307       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9308     *) libsuff= shlibsuff= libmagic=never-match;;
9309     esac
9310     ;;
9311   esac
9312   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9313   shlibpath_overrides_runpath=no
9314   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9315   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9316   hardcode_into_libs=yes
9317   ;;
9318
9319 # No shared lib support for Linux oldld, aout, or coff.
9320 linux*oldld* | linux*aout* | linux*coff*)
9321   dynamic_linker=no
9322   ;;
9323
9324 # This must be Linux ELF.
9325 linux* | k*bsd*-gnu)
9326   version_type=linux
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   shlibpath_overrides_runpath=no
9334   # This implies no fast_install, which is unacceptable.
9335   # Some rework will be needed to allow for fast_install
9336   # before this can be enabled.
9337   hardcode_into_libs=yes
9338   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9339   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9340
9341   # Append ld.so.conf contents to the search path
9342   if test -f /etc/ld.so.conf; then
9343     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' ' '`
9344     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9345   fi
9346
9347   # We used to test for /lib/ld.so.1 and disable shared libraries on
9348   # powerpc, because MkLinux only supported shared libraries with the
9349   # GNU dynamic linker.  Since this was broken with cross compilers,
9350   # most powerpc-linux boxes support dynamic linking these days and
9351   # people can always --disable-shared, the test was removed, and we
9352   # assume the GNU/Linux dynamic linker is in use.
9353   dynamic_linker='GNU/Linux ld.so'
9354   ;;
9355
9356 netbsd*)
9357   version_type=sunos
9358   need_lib_prefix=no
9359   need_version=no
9360   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9363     dynamic_linker='NetBSD (a.out) ld.so'
9364   else
9365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366     soname_spec='${libname}${release}${shared_ext}$major'
9367     dynamic_linker='NetBSD ld.elf_so'
9368   fi
9369   shlibpath_var=LD_LIBRARY_PATH
9370   shlibpath_overrides_runpath=yes
9371   hardcode_into_libs=yes
9372   ;;
9373
9374 newsos6)
9375   version_type=linux
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   shlibpath_overrides_runpath=yes
9379   ;;
9380
9381 nto-qnx*)
9382   version_type=linux
9383   need_lib_prefix=no
9384   need_version=no
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386   soname_spec='${libname}${release}${shared_ext}$major'
9387   shlibpath_var=LD_LIBRARY_PATH
9388   shlibpath_overrides_runpath=yes
9389   ;;
9390
9391 openbsd*)
9392   version_type=sunos
9393   sys_lib_dlsearch_path_spec="/usr/lib"
9394   need_lib_prefix=no
9395   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9396   case $host_os in
9397     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9398     *)                         need_version=no  ;;
9399   esac
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9402   shlibpath_var=LD_LIBRARY_PATH
9403   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9404     case $host_os in
9405       openbsd2.[89] | openbsd2.[89].*)
9406         shlibpath_overrides_runpath=no
9407         ;;
9408       *)
9409         shlibpath_overrides_runpath=yes
9410         ;;
9411       esac
9412   else
9413     shlibpath_overrides_runpath=yes
9414   fi
9415   ;;
9416
9417 os2*)
9418   libname_spec='$name'
9419   shrext_cmds=".dll"
9420   need_lib_prefix=no
9421   library_names_spec='$libname${shared_ext} $libname.a'
9422   dynamic_linker='OS/2 ld.exe'
9423   shlibpath_var=LIBPATH
9424   ;;
9425
9426 osf3* | osf4* | osf5*)
9427   version_type=osf
9428   need_lib_prefix=no
9429   need_version=no
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9434   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9435   ;;
9436
9437 rdos*)
9438   dynamic_linker=no
9439   ;;
9440
9441 solaris*)
9442   version_type=linux
9443   need_lib_prefix=no
9444   need_version=no
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   shlibpath_overrides_runpath=yes
9449   hardcode_into_libs=yes
9450   # ldd complains unless libraries are executable
9451   postinstall_cmds='chmod +x $lib'
9452   ;;
9453
9454 sunos4*)
9455   version_type=sunos
9456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9457   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=yes
9460   if test "$with_gnu_ld" = yes; then
9461     need_lib_prefix=no
9462   fi
9463   need_version=yes
9464   ;;
9465
9466 sysv4 | sysv4.3*)
9467   version_type=linux
9468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469   soname_spec='${libname}${release}${shared_ext}$major'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   case $host_vendor in
9472     sni)
9473       shlibpath_overrides_runpath=no
9474       need_lib_prefix=no
9475       export_dynamic_flag_spec='${wl}-Blargedynsym'
9476       runpath_var=LD_RUN_PATH
9477       ;;
9478     siemens)
9479       need_lib_prefix=no
9480       ;;
9481     motorola)
9482       need_lib_prefix=no
9483       need_version=no
9484       shlibpath_overrides_runpath=no
9485       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9486       ;;
9487   esac
9488   ;;
9489
9490 sysv4*MP*)
9491   if test -d /usr/nec ;then
9492     version_type=linux
9493     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9494     soname_spec='$libname${shared_ext}.$major'
9495     shlibpath_var=LD_LIBRARY_PATH
9496   fi
9497   ;;
9498
9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9500   version_type=freebsd-elf
9501   need_lib_prefix=no
9502   need_version=no
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9504   soname_spec='${libname}${release}${shared_ext}$major'
9505   shlibpath_var=LD_LIBRARY_PATH
9506   hardcode_into_libs=yes
9507   if test "$with_gnu_ld" = yes; then
9508     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9509     shlibpath_overrides_runpath=no
9510   else
9511     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9512     shlibpath_overrides_runpath=yes
9513     case $host_os in
9514       sco3.2v5*)
9515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9516         ;;
9517     esac
9518   fi
9519   sys_lib_dlsearch_path_spec='/usr/lib'
9520   ;;
9521
9522 uts4*)
9523   version_type=linux
9524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525   soname_spec='${libname}${release}${shared_ext}$major'
9526   shlibpath_var=LD_LIBRARY_PATH
9527   ;;
9528
9529 *)
9530   dynamic_linker=no
9531   ;;
9532 esac
9533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9534 echo "${ECHO_T}$dynamic_linker" >&6; }
9535 test "$dynamic_linker" = no && can_build_shared=no
9536
9537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9538 if test "$GCC" = yes; then
9539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9540 fi
9541
9542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9544 hardcode_action=
9545 if test -n "$hardcode_libdir_flag_spec" || \
9546    test -n "$runpath_var" || \
9547    test "X$hardcode_automatic" = "Xyes" ; then
9548
9549   # We can hardcode non-existant directories.
9550   if test "$hardcode_direct" != no &&
9551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9552      # have to relink, otherwise we might link with an installed library
9553      # when we should be linking with a yet-to-be-installed one
9554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9555      test "$hardcode_minus_L" != no; then
9556     # Linking always hardcodes the temporary library directory.
9557     hardcode_action=relink
9558   else
9559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9560     hardcode_action=immediate
9561   fi
9562 else
9563   # We cannot hardcode anything, or else we can only hardcode existing
9564   # directories.
9565   hardcode_action=unsupported
9566 fi
9567 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9568 echo "${ECHO_T}$hardcode_action" >&6; }
9569
9570 if test "$hardcode_action" = relink; then
9571   # Fast installation is not supported
9572   enable_fast_install=no
9573 elif test "$shlibpath_overrides_runpath" = yes ||
9574      test "$enable_shared" = no; then
9575   # Fast installation is not necessary
9576   enable_fast_install=needless
9577 fi
9578
9579 striplib=
9580 old_striplib=
9581 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9584   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9585   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9586   { echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6; }
9588 else
9589 # FIXME - insert some real tests, host_os isn't really good enough
9590   case $host_os in
9591    darwin*)
9592        if test -n "$STRIP" ; then
9593          striplib="$STRIP -x"
9594          old_striplib="$STRIP -S"
9595          { echo "$as_me:$LINENO: result: yes" >&5
9596 echo "${ECHO_T}yes" >&6; }
9597        else
9598   { echo "$as_me:$LINENO: result: no" >&5
9599 echo "${ECHO_T}no" >&6; }
9600 fi
9601        ;;
9602    *)
9603   { echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6; }
9605     ;;
9606   esac
9607 fi
9608
9609 if test "x$enable_dlopen" != xyes; then
9610   enable_dlopen=unknown
9611   enable_dlopen_self=unknown
9612   enable_dlopen_self_static=unknown
9613 else
9614   lt_cv_dlopen=no
9615   lt_cv_dlopen_libs=
9616
9617   case $host_os in
9618   beos*)
9619     lt_cv_dlopen="load_add_on"
9620     lt_cv_dlopen_libs=
9621     lt_cv_dlopen_self=yes
9622     ;;
9623
9624   mingw* | pw32*)
9625     lt_cv_dlopen="LoadLibrary"
9626     lt_cv_dlopen_libs=
9627    ;;
9628
9629   cygwin*)
9630     lt_cv_dlopen="dlopen"
9631     lt_cv_dlopen_libs=
9632    ;;
9633
9634   darwin*)
9635   # if libdl is installed we need to link against it
9636     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-ldl  $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651    Use char because int might match the return type of a GCC
9652    builtin and then its argument prototype would still apply.  */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char dlopen ();
9657 int
9658 main ()
9659 {
9660 return dlopen ();
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_link") 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } && {
9679          test -z "$ac_c_werror_flag" ||
9680          test ! -s conftest.err
9681        } && test -s conftest$ac_exeext &&
9682        $as_test_x conftest$ac_exeext; then
9683   ac_cv_lib_dl_dlopen=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_cv_lib_dl_dlopen=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692       conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9697 if test $ac_cv_lib_dl_dlopen = yes; then
9698   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9699 else
9700
9701     lt_cv_dlopen="dyld"
9702     lt_cv_dlopen_libs=
9703     lt_cv_dlopen_self=yes
9704
9705 fi
9706
9707    ;;
9708
9709   *)
9710     { echo "$as_me:$LINENO: checking for shl_load" >&5
9711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_shl_load+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9723 #define shl_load innocuous_shl_load
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726     which can conflict with char shl_load (); below.
9727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728     <limits.h> exists even on freestanding compilers.  */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef shl_load
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739    Use char because int might match the return type of a GCC
9740    builtin and then its argument prototype would still apply.  */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char shl_load ();
9745 /* The GNU C library defines this for functions which it implements
9746     to always fail with ENOSYS.  Some functions are actually named
9747     something starting with __ and the normal name is an alias.  */
9748 #if defined __stub_shl_load || defined __stub___shl_load
9749 choke me
9750 #endif
9751
9752 int
9753 main ()
9754 {
9755 return shl_load ();
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_link") 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } && {
9774          test -z "$ac_c_werror_flag" ||
9775          test ! -s conftest.err
9776        } && test -s conftest$ac_exeext &&
9777        $as_test_x conftest$ac_exeext; then
9778   ac_cv_func_shl_load=yes
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783         ac_cv_func_shl_load=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787       conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9790 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9791 if test $ac_cv_func_shl_load = yes; then
9792   lt_cv_dlopen="shl_load"
9793 else
9794   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9795 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9796 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   ac_check_lib_save_LIBS=$LIBS
9800 LIBS="-ldld  $LIBS"
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809    Use char because int might match the return type of a GCC
9810    builtin and then its argument prototype would still apply.  */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char shl_load ();
9815 int
9816 main ()
9817 {
9818 return shl_load ();
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827   *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830   (eval "$ac_link") 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } && {
9837          test -z "$ac_c_werror_flag" ||
9838          test ! -s conftest.err
9839        } && test -s conftest$ac_exeext &&
9840        $as_test_x conftest$ac_exeext; then
9841   ac_cv_lib_dld_shl_load=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846         ac_cv_lib_dld_shl_load=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850       conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9856   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9857 else
9858   { echo "$as_me:$LINENO: checking for dlopen" >&5
9859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9860 if test "${ac_cv_func_dlopen+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9871 #define dlopen innocuous_dlopen
9872
9873 /* System header to define __stub macros and hopefully few prototypes,
9874     which can conflict with char dlopen (); below.
9875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876     <limits.h> exists even on freestanding compilers.  */
9877
9878 #ifdef __STDC__
9879 # include <limits.h>
9880 #else
9881 # include <assert.h>
9882 #endif
9883
9884 #undef dlopen
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887    Use char because int might match the return type of a GCC
9888    builtin and then its argument prototype would still apply.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char dlopen ();
9893 /* The GNU C library defines this for functions which it implements
9894     to always fail with ENOSYS.  Some functions are actually named
9895     something starting with __ and the normal name is an alias.  */
9896 #if defined __stub_dlopen || defined __stub___dlopen
9897 choke me
9898 #endif
9899
9900 int
9901 main ()
9902 {
9903 return dlopen ();
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9910 case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_link") 2>conftest.er1
9916   ac_status=$?
9917   grep -v '^ *+' conftest.er1 >conftest.err
9918   rm -f conftest.er1
9919   cat conftest.err >&5
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); } && {
9922          test -z "$ac_c_werror_flag" ||
9923          test ! -s conftest.err
9924        } && test -s conftest$ac_exeext &&
9925        $as_test_x conftest$ac_exeext; then
9926   ac_cv_func_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_func_dlopen=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935       conftest$ac_exeext conftest.$ac_ext
9936 fi
9937 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9939 if test $ac_cv_func_dlopen = yes; then
9940   lt_cv_dlopen="dlopen"
9941 else
9942   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   ac_check_lib_save_LIBS=$LIBS
9948 LIBS="-ldl  $LIBS"
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h.  */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h.  */
9955
9956 /* Override any GCC internal prototype to avoid an error.
9957    Use char because int might match the return type of a GCC
9958    builtin and then its argument prototype would still apply.  */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char dlopen ();
9963 int
9964 main ()
9965 {
9966 return dlopen ();
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9973 case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_link") 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } && {
9985          test -z "$ac_c_werror_flag" ||
9986          test ! -s conftest.err
9987        } && test -s conftest$ac_exeext &&
9988        $as_test_x conftest$ac_exeext; then
9989   ac_cv_lib_dl_dlopen=yes
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994         ac_cv_lib_dl_dlopen=no
9995 fi
9996
9997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9998       conftest$ac_exeext conftest.$ac_ext
9999 LIBS=$ac_check_lib_save_LIBS
10000 fi
10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10003 if test $ac_cv_lib_dl_dlopen = yes; then
10004   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10005 else
10006   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   ac_check_lib_save_LIBS=$LIBS
10012 LIBS="-lsvld  $LIBS"
10013 cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021    Use char because int might match the return type of a GCC
10022    builtin and then its argument prototype would still apply.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char dlopen ();
10027 int
10028 main ()
10029 {
10030 return dlopen ();
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_link") 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } && {
10049          test -z "$ac_c_werror_flag" ||
10050          test ! -s conftest.err
10051        } && test -s conftest$ac_exeext &&
10052        $as_test_x conftest$ac_exeext; then
10053   ac_cv_lib_svld_dlopen=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         ac_cv_lib_svld_dlopen=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10062       conftest$ac_exeext conftest.$ac_ext
10063 LIBS=$ac_check_lib_save_LIBS
10064 fi
10065 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10066 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10067 if test $ac_cv_lib_svld_dlopen = yes; then
10068   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10069 else
10070   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10071 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   ac_check_lib_save_LIBS=$LIBS
10076 LIBS="-ldld  $LIBS"
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083
10084 /* Override any GCC internal prototype to avoid an error.
10085    Use char because int might match the return type of a GCC
10086    builtin and then its argument prototype would still apply.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char dld_link ();
10091 int
10092 main ()
10093 {
10094 return dld_link ();
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext conftest$ac_exeext
10100 if { (ac_try="$ac_link"
10101 case "(($ac_try" in
10102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103   *) ac_try_echo=$ac_try;;
10104 esac
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106   (eval "$ac_link") 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } && {
10113          test -z "$ac_c_werror_flag" ||
10114          test ! -s conftest.err
10115        } && test -s conftest$ac_exeext &&
10116        $as_test_x conftest$ac_exeext; then
10117   ac_cv_lib_dld_dld_link=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122         ac_cv_lib_dld_dld_link=no
10123 fi
10124
10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126       conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10128 fi
10129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10130 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10131 if test $ac_cv_lib_dld_dld_link = yes; then
10132   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10133 fi
10134
10135
10136 fi
10137
10138
10139 fi
10140
10141
10142 fi
10143
10144
10145 fi
10146
10147
10148 fi
10149
10150     ;;
10151   esac
10152
10153   if test "x$lt_cv_dlopen" != xno; then
10154     enable_dlopen=yes
10155   else
10156     enable_dlopen=no
10157   fi
10158
10159   case $lt_cv_dlopen in
10160   dlopen)
10161     save_CPPFLAGS="$CPPFLAGS"
10162     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10163
10164     save_LDFLAGS="$LDFLAGS"
10165     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10166
10167     save_LIBS="$LIBS"
10168     LIBS="$lt_cv_dlopen_libs $LIBS"
10169
10170     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10171 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10172 if test "${lt_cv_dlopen_self+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175           if test "$cross_compiling" = yes; then :
10176   lt_cv_dlopen_self=cross
10177 else
10178   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179   lt_status=$lt_dlunknown
10180   cat > conftest.$ac_ext <<EOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10183
10184 #if HAVE_DLFCN_H
10185 #include <dlfcn.h>
10186 #endif
10187
10188 #include <stdio.h>
10189
10190 #ifdef RTLD_GLOBAL
10191 #  define LT_DLGLOBAL           RTLD_GLOBAL
10192 #else
10193 #  ifdef DL_GLOBAL
10194 #    define LT_DLGLOBAL         DL_GLOBAL
10195 #  else
10196 #    define LT_DLGLOBAL         0
10197 #  endif
10198 #endif
10199
10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201    find out it does not work in some platform. */
10202 #ifndef LT_DLLAZY_OR_NOW
10203 #  ifdef RTLD_LAZY
10204 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10205 #  else
10206 #    ifdef DL_LAZY
10207 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10208 #    else
10209 #      ifdef RTLD_NOW
10210 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10211 #      else
10212 #        ifdef DL_NOW
10213 #          define LT_DLLAZY_OR_NOW      DL_NOW
10214 #        else
10215 #          define LT_DLLAZY_OR_NOW      0
10216 #        endif
10217 #      endif
10218 #    endif
10219 #  endif
10220 #endif
10221
10222 #ifdef __cplusplus
10223 extern "C" void exit (int);
10224 #endif
10225
10226 void fnord() { int i=42;}
10227 int main ()
10228 {
10229   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10230   int status = $lt_dlunknown;
10231
10232   if (self)
10233     {
10234       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10235       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236       /* dlclose (self); */
10237     }
10238   else
10239     puts (dlerror ());
10240
10241     exit (status);
10242 }
10243 EOF
10244   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245   (eval $ac_link) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10249     (./conftest; exit; ) >&5 2>/dev/null
10250     lt_status=$?
10251     case x$lt_status in
10252       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10253       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10254       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10255     esac
10256   else :
10257     # compilation failed
10258     lt_cv_dlopen_self=no
10259   fi
10260 fi
10261 rm -fr conftest*
10262
10263
10264 fi
10265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10266 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10267
10268     if test "x$lt_cv_dlopen_self" = xyes; then
10269       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10270       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10271 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10272 if test "${lt_cv_dlopen_self_static+set}" = set; then
10273   echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275           if test "$cross_compiling" = yes; then :
10276   lt_cv_dlopen_self_static=cross
10277 else
10278   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10279   lt_status=$lt_dlunknown
10280   cat > conftest.$ac_ext <<EOF
10281 #line 10281 "configure"
10282 #include "confdefs.h"
10283
10284 #if HAVE_DLFCN_H
10285 #include <dlfcn.h>
10286 #endif
10287
10288 #include <stdio.h>
10289
10290 #ifdef RTLD_GLOBAL
10291 #  define LT_DLGLOBAL           RTLD_GLOBAL
10292 #else
10293 #  ifdef DL_GLOBAL
10294 #    define LT_DLGLOBAL         DL_GLOBAL
10295 #  else
10296 #    define LT_DLGLOBAL         0
10297 #  endif
10298 #endif
10299
10300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10301    find out it does not work in some platform. */
10302 #ifndef LT_DLLAZY_OR_NOW
10303 #  ifdef RTLD_LAZY
10304 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10305 #  else
10306 #    ifdef DL_LAZY
10307 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10308 #    else
10309 #      ifdef RTLD_NOW
10310 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10311 #      else
10312 #        ifdef DL_NOW
10313 #          define LT_DLLAZY_OR_NOW      DL_NOW
10314 #        else
10315 #          define LT_DLLAZY_OR_NOW      0
10316 #        endif
10317 #      endif
10318 #    endif
10319 #  endif
10320 #endif
10321
10322 #ifdef __cplusplus
10323 extern "C" void exit (int);
10324 #endif
10325
10326 void fnord() { int i=42;}
10327 int main ()
10328 {
10329   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10330   int status = $lt_dlunknown;
10331
10332   if (self)
10333     {
10334       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10335       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10336       /* dlclose (self); */
10337     }
10338   else
10339     puts (dlerror ());
10340
10341     exit (status);
10342 }
10343 EOF
10344   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345   (eval $ac_link) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10349     (./conftest; exit; ) >&5 2>/dev/null
10350     lt_status=$?
10351     case x$lt_status in
10352       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10353       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10354       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10355     esac
10356   else :
10357     # compilation failed
10358     lt_cv_dlopen_self_static=no
10359   fi
10360 fi
10361 rm -fr conftest*
10362
10363
10364 fi
10365 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10366 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10367     fi
10368
10369     CPPFLAGS="$save_CPPFLAGS"
10370     LDFLAGS="$save_LDFLAGS"
10371     LIBS="$save_LIBS"
10372     ;;
10373   esac
10374
10375   case $lt_cv_dlopen_self in
10376   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10377   *) enable_dlopen_self=unknown ;;
10378   esac
10379
10380   case $lt_cv_dlopen_self_static in
10381   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10382   *) enable_dlopen_self_static=unknown ;;
10383   esac
10384 fi
10385
10386
10387 # Report which library types will actually be built
10388 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10389 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10390 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10391 echo "${ECHO_T}$can_build_shared" >&6; }
10392
10393 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10394 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10395 test "$can_build_shared" = "no" && enable_shared=no
10396
10397 # On AIX, shared libraries and static libraries use the same namespace, and
10398 # are all built from PIC.
10399 case $host_os in
10400 aix3*)
10401   test "$enable_shared" = yes && enable_static=no
10402   if test -n "$RANLIB"; then
10403     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10404     postinstall_cmds='$RANLIB $lib'
10405   fi
10406   ;;
10407
10408 aix4* | aix5*)
10409   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10410     test "$enable_shared" = yes && enable_static=no
10411   fi
10412     ;;
10413 esac
10414 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10415 echo "${ECHO_T}$enable_shared" >&6; }
10416
10417 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10418 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10419 # Make sure either enable_shared or enable_static is yes.
10420 test "$enable_shared" = yes || enable_static=yes
10421 { echo "$as_me:$LINENO: result: $enable_static" >&5
10422 echo "${ECHO_T}$enable_static" >&6; }
10423
10424 # The else clause should only fire when bootstrapping the
10425 # libtool distribution, otherwise you forgot to ship ltmain.sh
10426 # with your package, and you will get complaints that there are
10427 # no rules to generate ltmain.sh.
10428 if test -f "$ltmain"; then
10429   # See if we are running on zsh, and set the options which allow our commands through
10430   # without removal of \ escapes.
10431   if test -n "${ZSH_VERSION+set}" ; then
10432     setopt NO_GLOB_SUBST
10433   fi
10434   # Now quote all the things that may contain metacharacters while being
10435   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10436   # variables and quote the copies for generation of the libtool script.
10437   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10438     SED SHELL STRIP \
10439     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10440     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10441     deplibs_check_method reload_flag reload_cmds need_locks \
10442     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10443     lt_cv_sys_global_symbol_to_c_name_address \
10444     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10445     old_postinstall_cmds old_postuninstall_cmds \
10446     compiler \
10447     CC \
10448     LD \
10449     lt_prog_compiler_wl \
10450     lt_prog_compiler_pic \
10451     lt_prog_compiler_static \
10452     lt_prog_compiler_no_builtin_flag \
10453     export_dynamic_flag_spec \
10454     thread_safe_flag_spec \
10455     whole_archive_flag_spec \
10456     enable_shared_with_static_runtimes \
10457     old_archive_cmds \
10458     old_archive_from_new_cmds \
10459     predep_objects \
10460     postdep_objects \
10461     predeps \
10462     postdeps \
10463     compiler_lib_search_path \
10464     archive_cmds \
10465     archive_expsym_cmds \
10466     postinstall_cmds \
10467     postuninstall_cmds \
10468     old_archive_from_expsyms_cmds \
10469     allow_undefined_flag \
10470     no_undefined_flag \
10471     export_symbols_cmds \
10472     hardcode_libdir_flag_spec \
10473     hardcode_libdir_flag_spec_ld \
10474     hardcode_libdir_separator \
10475     hardcode_automatic \
10476     module_cmds \
10477     module_expsym_cmds \
10478     lt_cv_prog_compiler_c_o \
10479     fix_srcfile_path \
10480     exclude_expsyms \
10481     include_expsyms; do
10482
10483     case $var in
10484     old_archive_cmds | \
10485     old_archive_from_new_cmds | \
10486     archive_cmds | \
10487     archive_expsym_cmds | \
10488     module_cmds | \
10489     module_expsym_cmds | \
10490     old_archive_from_expsyms_cmds | \
10491     export_symbols_cmds | \
10492     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10493     postinstall_cmds | postuninstall_cmds | \
10494     old_postinstall_cmds | old_postuninstall_cmds | \
10495     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10496       # Double-quote double-evaled strings.
10497       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10498       ;;
10499     *)
10500       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10501       ;;
10502     esac
10503   done
10504
10505   case $lt_echo in
10506   *'\$0 --fallback-echo"')
10507     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10508     ;;
10509   esac
10510
10511 cfgfile="${ofile}T"
10512   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10513   $rm -f "$cfgfile"
10514   { echo "$as_me:$LINENO: creating $ofile" >&5
10515 echo "$as_me: creating $ofile" >&6;}
10516
10517   cat <<__EOF__ >> "$cfgfile"
10518 #! $SHELL
10519
10520 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10521 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10522 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10523 #
10524 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10525 # Free Software Foundation, Inc.
10526 #
10527 # This file is part of GNU Libtool:
10528 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10529 #
10530 # This program is free software; you can redistribute it and/or modify
10531 # it under the terms of the GNU General Public License as published by
10532 # the Free Software Foundation; either version 2 of the License, or
10533 # (at your option) any later version.
10534 #
10535 # This program is distributed in the hope that it will be useful, but
10536 # WITHOUT ANY WARRANTY; without even the implied warranty of
10537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10538 # General Public License for more details.
10539 #
10540 # You should have received a copy of the GNU General Public License
10541 # along with this program; if not, write to the Free Software
10542 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10543 #
10544 # As a special exception to the GNU General Public License, if you
10545 # distribute this file as part of a program that contains a
10546 # configuration script generated by Autoconf, you may include it under
10547 # the same distribution terms that you use for the rest of that program.
10548
10549 # A sed program that does not truncate output.
10550 SED=$lt_SED
10551
10552 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10553 Xsed="$SED -e 1s/^X//"
10554
10555 # The HP-UX ksh and POSIX shell print the target directory to stdout
10556 # if CDPATH is set.
10557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10558
10559 # The names of the tagged configurations supported by this script.
10560 available_tags=
10561
10562 # ### BEGIN LIBTOOL CONFIG
10563
10564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10565
10566 # Shell to use when invoking shell scripts.
10567 SHELL=$lt_SHELL
10568
10569 # Whether or not to build shared libraries.
10570 build_libtool_libs=$enable_shared
10571
10572 # Whether or not to build static libraries.
10573 build_old_libs=$enable_static
10574
10575 # Whether or not to add -lc for building shared libraries.
10576 build_libtool_need_lc=$archive_cmds_need_lc
10577
10578 # Whether or not to disallow shared libs when runtime libs are static
10579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10580
10581 # Whether or not to optimize for fast installation.
10582 fast_install=$enable_fast_install
10583
10584 # The host system.
10585 host_alias=$host_alias
10586 host=$host
10587 host_os=$host_os
10588
10589 # The build system.
10590 build_alias=$build_alias
10591 build=$build
10592 build_os=$build_os
10593
10594 # An echo program that does not interpret backslashes.
10595 echo=$lt_echo
10596
10597 # The archiver.
10598 AR=$lt_AR
10599 AR_FLAGS=$lt_AR_FLAGS
10600
10601 # A C compiler.
10602 LTCC=$lt_LTCC
10603
10604 # LTCC compiler flags.
10605 LTCFLAGS=$lt_LTCFLAGS
10606
10607 # A language-specific compiler.
10608 CC=$lt_compiler
10609
10610 # Is the compiler the GNU C compiler?
10611 with_gcc=$GCC
10612
10613 # An ERE matcher.
10614 EGREP=$lt_EGREP
10615
10616 # The linker used to build libraries.
10617 LD=$lt_LD
10618
10619 # Whether we need hard or soft links.
10620 LN_S=$lt_LN_S
10621
10622 # A BSD-compatible nm program.
10623 NM=$lt_NM
10624
10625 # A symbol stripping program
10626 STRIP=$lt_STRIP
10627
10628 # Used to examine libraries when file_magic_cmd begins "file"
10629 MAGIC_CMD=$MAGIC_CMD
10630
10631 # Used on cygwin: DLL creation program.
10632 DLLTOOL="$DLLTOOL"
10633
10634 # Used on cygwin: object dumper.
10635 OBJDUMP="$OBJDUMP"
10636
10637 # Used on cygwin: assembler.
10638 AS="$AS"
10639
10640 # The name of the directory that contains temporary libtool files.
10641 objdir=$objdir
10642
10643 # How to create reloadable object files.
10644 reload_flag=$lt_reload_flag
10645 reload_cmds=$lt_reload_cmds
10646
10647 # How to pass a linker flag through the compiler.
10648 wl=$lt_lt_prog_compiler_wl
10649
10650 # Object file suffix (normally "o").
10651 objext="$ac_objext"
10652
10653 # Old archive suffix (normally "a").
10654 libext="$libext"
10655
10656 # Shared library suffix (normally ".so").
10657 shrext_cmds='$shrext_cmds'
10658
10659 # Executable file suffix (normally "").
10660 exeext="$exeext"
10661
10662 # Additional compiler flags for building library objects.
10663 pic_flag=$lt_lt_prog_compiler_pic
10664 pic_mode=$pic_mode
10665
10666 # What is the maximum length of a command?
10667 max_cmd_len=$lt_cv_sys_max_cmd_len
10668
10669 # Does compiler simultaneously support -c and -o options?
10670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10671
10672 # Must we lock files when doing compilation?
10673 need_locks=$lt_need_locks
10674
10675 # Do we need the lib prefix for modules?
10676 need_lib_prefix=$need_lib_prefix
10677
10678 # Do we need a version for libraries?
10679 need_version=$need_version
10680
10681 # Whether dlopen is supported.
10682 dlopen_support=$enable_dlopen
10683
10684 # Whether dlopen of programs is supported.
10685 dlopen_self=$enable_dlopen_self
10686
10687 # Whether dlopen of statically linked programs is supported.
10688 dlopen_self_static=$enable_dlopen_self_static
10689
10690 # Compiler flag to prevent dynamic linking.
10691 link_static_flag=$lt_lt_prog_compiler_static
10692
10693 # Compiler flag to turn off builtin functions.
10694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10695
10696 # Compiler flag to allow reflexive dlopens.
10697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10698
10699 # Compiler flag to generate shared objects directly from archives.
10700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10701
10702 # Compiler flag to generate thread-safe objects.
10703 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10704
10705 # Library versioning type.
10706 version_type=$version_type
10707
10708 # Format of library name prefix.
10709 libname_spec=$lt_libname_spec
10710
10711 # List of archive names.  First name is the real one, the rest are links.
10712 # The last name is the one that the linker finds with -lNAME.
10713 library_names_spec=$lt_library_names_spec
10714
10715 # The coded name of the library, if different from the real name.
10716 soname_spec=$lt_soname_spec
10717
10718 # Commands used to build and install an old-style archive.
10719 RANLIB=$lt_RANLIB
10720 old_archive_cmds=$lt_old_archive_cmds
10721 old_postinstall_cmds=$lt_old_postinstall_cmds
10722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10723
10724 # Create an old-style archive from a shared archive.
10725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10726
10727 # Create a temporary old-style archive to link instead of a shared archive.
10728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10729
10730 # Commands used to build and install a shared archive.
10731 archive_cmds=$lt_archive_cmds
10732 archive_expsym_cmds=$lt_archive_expsym_cmds
10733 postinstall_cmds=$lt_postinstall_cmds
10734 postuninstall_cmds=$lt_postuninstall_cmds
10735
10736 # Commands used to build a loadable module (assumed same as above if empty)
10737 module_cmds=$lt_module_cmds
10738 module_expsym_cmds=$lt_module_expsym_cmds
10739
10740 # Commands to strip libraries.
10741 old_striplib=$lt_old_striplib
10742 striplib=$lt_striplib
10743
10744 # Dependencies to place before the objects being linked to create a
10745 # shared library.
10746 predep_objects=$lt_predep_objects
10747
10748 # Dependencies to place after the objects being linked to create a
10749 # shared library.
10750 postdep_objects=$lt_postdep_objects
10751
10752 # Dependencies to place before the objects being linked to create a
10753 # shared library.
10754 predeps=$lt_predeps
10755
10756 # Dependencies to place after the objects being linked to create a
10757 # shared library.
10758 postdeps=$lt_postdeps
10759
10760 # The library search path used internally by the compiler when linking
10761 # a shared library.
10762 compiler_lib_search_path=$lt_compiler_lib_search_path
10763
10764 # Method to check whether dependent libraries are shared objects.
10765 deplibs_check_method=$lt_deplibs_check_method
10766
10767 # Command to use when deplibs_check_method == file_magic.
10768 file_magic_cmd=$lt_file_magic_cmd
10769
10770 # Flag that allows shared libraries with undefined symbols to be built.
10771 allow_undefined_flag=$lt_allow_undefined_flag
10772
10773 # Flag that forces no undefined symbols.
10774 no_undefined_flag=$lt_no_undefined_flag
10775
10776 # Commands used to finish a libtool library installation in a directory.
10777 finish_cmds=$lt_finish_cmds
10778
10779 # Same as above, but a single script fragment to be evaled but not shown.
10780 finish_eval=$lt_finish_eval
10781
10782 # Take the output of nm and produce a listing of raw symbols and C names.
10783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10784
10785 # Transform the output of nm in a proper C declaration
10786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10787
10788 # Transform the output of nm in a C name address pair
10789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10790
10791 # This is the shared library runtime path variable.
10792 runpath_var=$runpath_var
10793
10794 # This is the shared library path variable.
10795 shlibpath_var=$shlibpath_var
10796
10797 # Is shlibpath searched before the hard-coded library search path?
10798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10799
10800 # How to hardcode a shared library path into an executable.
10801 hardcode_action=$hardcode_action
10802
10803 # Whether we should hardcode library paths into libraries.
10804 hardcode_into_libs=$hardcode_into_libs
10805
10806 # Flag to hardcode \$libdir into a binary during linking.
10807 # This must work even if \$libdir does not exist.
10808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10809
10810 # If ld is used when linking, flag to hardcode \$libdir into
10811 # a binary during linking. This must work even if \$libdir does
10812 # not exist.
10813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10814
10815 # Whether we need a single -rpath flag with a separated argument.
10816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10817
10818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10819 # resulting binary.
10820 hardcode_direct=$hardcode_direct
10821
10822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10823 # resulting binary.
10824 hardcode_minus_L=$hardcode_minus_L
10825
10826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10827 # the resulting binary.
10828 hardcode_shlibpath_var=$hardcode_shlibpath_var
10829
10830 # Set to yes if building a shared library automatically hardcodes DIR into the library
10831 # and all subsequent libraries and executables linked against it.
10832 hardcode_automatic=$hardcode_automatic
10833
10834 # Variables whose values should be saved in libtool wrapper scripts and
10835 # restored at relink time.
10836 variables_saved_for_relink="$variables_saved_for_relink"
10837
10838 # Whether libtool must link a program against all its dependency libraries.
10839 link_all_deplibs=$link_all_deplibs
10840
10841 # Compile-time system search path for libraries
10842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10843
10844 # Run-time system search path for libraries
10845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10846
10847 # Fix the shell variable \$srcfile for the compiler.
10848 fix_srcfile_path=$lt_fix_srcfile_path
10849
10850 # Set to yes if exported symbols are required.
10851 always_export_symbols=$always_export_symbols
10852
10853 # The commands to list exported symbols.
10854 export_symbols_cmds=$lt_export_symbols_cmds
10855
10856 # The commands to extract the exported symbol list from a shared archive.
10857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10858
10859 # Symbols that should not be listed in the preloaded symbols.
10860 exclude_expsyms=$lt_exclude_expsyms
10861
10862 # Symbols that must always be exported.
10863 include_expsyms=$lt_include_expsyms
10864
10865 # ### END LIBTOOL CONFIG
10866
10867 __EOF__
10868
10869
10870   case $host_os in
10871   aix3*)
10872     cat <<\EOF >> "$cfgfile"
10873
10874 # AIX sometimes has problems with the GCC collect2 program.  For some
10875 # reason, if we set the COLLECT_NAMES environment variable, the problems
10876 # vanish in a puff of smoke.
10877 if test "X${COLLECT_NAMES+set}" != Xset; then
10878   COLLECT_NAMES=
10879   export COLLECT_NAMES
10880 fi
10881 EOF
10882     ;;
10883   esac
10884
10885   # We use sed instead of cat because bash on DJGPP gets confused if
10886   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10887   # text mode, it properly converts lines to CR/LF.  This bash problem
10888   # is reportedly fixed, but why not run on old versions too?
10889   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10890
10891   mv -f "$cfgfile" "$ofile" || \
10892     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10893   chmod +x "$ofile"
10894
10895 else
10896   # If there is no Makefile yet, we rely on a make rule to execute
10897   # `config.status --recheck' to rerun these tests and create the
10898   # libtool script then.
10899   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10900   if test -f "$ltmain_in"; then
10901     test -f Makefile && make "$ltmain"
10902   fi
10903 fi
10904
10905
10906 ac_ext=c
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10911
10912 CC="$lt_save_CC"
10913
10914
10915 # Check whether --with-tags was given.
10916 if test "${with_tags+set}" = set; then
10917   withval=$with_tags; tagnames="$withval"
10918 fi
10919
10920
10921 if test -f "$ltmain" && test -n "$tagnames"; then
10922   if test ! -f "${ofile}"; then
10923     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10924 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10925   fi
10926
10927   if test -z "$LTCC"; then
10928     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10929     if test -z "$LTCC"; then
10930       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10931 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10932     else
10933       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10935     fi
10936   fi
10937   if test -z "$LTCFLAGS"; then
10938     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10939   fi
10940
10941   # Extract list of available tagged configurations in $ofile.
10942   # Note that this assumes the entire list is on one line.
10943   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10944
10945   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946   for tagname in $tagnames; do
10947     IFS="$lt_save_ifs"
10948     # Check whether tagname contains only valid characters
10949     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10950     "") ;;
10951     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10952 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10953    { (exit 1); exit 1; }; }
10954         ;;
10955     esac
10956
10957     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10958     then
10959       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10960 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10961    { (exit 1); exit 1; }; }
10962     fi
10963
10964     # Update the list of available tags.
10965     if test -n "$tagname"; then
10966       echo appending configuration tag \"$tagname\" to $ofile
10967
10968       case $tagname in
10969       CXX)
10970         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10971             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10972             (test "X$CXX" != "Xg++"))) ; then
10973           ac_ext=cpp
10974 ac_cpp='$CXXCPP $CPPFLAGS'
10975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10978
10979
10980
10981
10982 archive_cmds_need_lc_CXX=no
10983 allow_undefined_flag_CXX=
10984 always_export_symbols_CXX=no
10985 archive_expsym_cmds_CXX=
10986 export_dynamic_flag_spec_CXX=
10987 hardcode_direct_CXX=no
10988 hardcode_libdir_flag_spec_CXX=
10989 hardcode_libdir_flag_spec_ld_CXX=
10990 hardcode_libdir_separator_CXX=
10991 hardcode_minus_L_CXX=no
10992 hardcode_shlibpath_var_CXX=unsupported
10993 hardcode_automatic_CXX=no
10994 module_cmds_CXX=
10995 module_expsym_cmds_CXX=
10996 link_all_deplibs_CXX=unknown
10997 old_archive_cmds_CXX=$old_archive_cmds
10998 no_undefined_flag_CXX=
10999 whole_archive_flag_spec_CXX=
11000 enable_shared_with_static_runtimes_CXX=no
11001
11002 # Dependencies to place before and after the object being linked:
11003 predep_objects_CXX=
11004 postdep_objects_CXX=
11005 predeps_CXX=
11006 postdeps_CXX=
11007 compiler_lib_search_path_CXX=
11008
11009 # Source file extension for C++ test sources.
11010 ac_ext=cpp
11011
11012 # Object file extension for compiled C++ test sources.
11013 objext=o
11014 objext_CXX=$objext
11015
11016 # Code to be used in simple compile tests
11017 lt_simple_compile_test_code="int some_variable = 0;"
11018
11019 # Code to be used in simple link tests
11020 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11021
11022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11023
11024 # If no C compiler was specified, use CC.
11025 LTCC=${LTCC-"$CC"}
11026
11027 # If no C compiler flags were specified, use CFLAGS.
11028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11029
11030 # Allow CC to be a program name with arguments.
11031 compiler=$CC
11032
11033
11034 # save warnings/boilerplate of simple test code
11035 ac_outfile=conftest.$ac_objext
11036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11038 _lt_compiler_boilerplate=`cat conftest.err`
11039 $rm conftest*
11040
11041 ac_outfile=conftest.$ac_objext
11042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11044 _lt_linker_boilerplate=`cat conftest.err`
11045 $rm conftest*
11046
11047
11048 # Allow CC to be a program name with arguments.
11049 lt_save_CC=$CC
11050 lt_save_LD=$LD
11051 lt_save_GCC=$GCC
11052 GCC=$GXX
11053 lt_save_with_gnu_ld=$with_gnu_ld
11054 lt_save_path_LD=$lt_cv_path_LD
11055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11056   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11057 else
11058   $as_unset lt_cv_prog_gnu_ld
11059 fi
11060 if test -n "${lt_cv_path_LDCXX+set}"; then
11061   lt_cv_path_LD=$lt_cv_path_LDCXX
11062 else
11063   $as_unset lt_cv_path_LD
11064 fi
11065 test -z "${LDCXX+set}" || LD=$LDCXX
11066 CC=${CXX-"c++"}
11067 compiler=$CC
11068 compiler_CXX=$CC
11069 for cc_temp in $compiler""; do
11070   case $cc_temp in
11071     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11072     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11073     \-*) ;;
11074     *) break;;
11075   esac
11076 done
11077 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11078
11079
11080 # We don't want -fno-exception wen compiling C++ code, so set the
11081 # no_builtin_flag separately
11082 if test "$GXX" = yes; then
11083   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11084 else
11085   lt_prog_compiler_no_builtin_flag_CXX=
11086 fi
11087
11088 if test "$GXX" = yes; then
11089   # Set up default GNU C++ configuration
11090
11091
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then
11094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096   with_gnu_ld=no
11097 fi
11098
11099 ac_prog=ld
11100 if test "$GCC" = yes; then
11101   # Check if gcc -print-prog-name=ld gives a path.
11102   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11104   case $host in
11105   *-*-mingw*)
11106     # gcc leaves a trailing carriage return which upsets mingw
11107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11108   *)
11109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11110   esac
11111   case $ac_prog in
11112     # Accept absolute paths.
11113     [\\/]* | ?:[\\/]*)
11114       re_direlt='/[^/][^/]*/\.\./'
11115       # Canonicalize the pathname of ld
11116       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11119       done
11120       test -z "$LD" && LD="$ac_prog"
11121       ;;
11122   "")
11123     # If it fails, then pretend we aren't using GCC.
11124     ac_prog=ld
11125     ;;
11126   *)
11127     # If it is relative, then search for the first ld in PATH.
11128     with_gnu_ld=unknown
11129     ;;
11130   esac
11131 elif test "$with_gnu_ld" = yes; then
11132   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11134 else
11135   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11137 fi
11138 if test "${lt_cv_path_LD+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   if test -z "$LD"; then
11142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143   for ac_dir in $PATH; do
11144     IFS="$lt_save_ifs"
11145     test -z "$ac_dir" && ac_dir=.
11146     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147       lt_cv_path_LD="$ac_dir/$ac_prog"
11148       # Check to see if the program is GNU ld.  I'd rather use --version,
11149       # but apparently some variants of GNU ld only accept -v.
11150       # Break only if it was the GNU/non-GNU ld that we prefer.
11151       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152       *GNU* | *'with BFD'*)
11153         test "$with_gnu_ld" != no && break
11154         ;;
11155       *)
11156         test "$with_gnu_ld" != yes && break
11157         ;;
11158       esac
11159     fi
11160   done
11161   IFS="$lt_save_ifs"
11162 else
11163   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11164 fi
11165 fi
11166
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169   { echo "$as_me:$LINENO: result: $LD" >&5
11170 echo "${ECHO_T}$LD" >&6; }
11171 else
11172   { echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6; }
11174 fi
11175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177    { (exit 1); exit 1; }; }
11178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11184 case `$LD -v 2>&1 </dev/null` in
11185 *GNU* | *'with BFD'*)
11186   lt_cv_prog_gnu_ld=yes
11187   ;;
11188 *)
11189   lt_cv_prog_gnu_ld=no
11190   ;;
11191 esac
11192 fi
11193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195 with_gnu_ld=$lt_cv_prog_gnu_ld
11196
11197
11198
11199   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11200   # archiving commands below assume that GNU ld is being used.
11201   if test "$with_gnu_ld" = yes; then
11202     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203     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'
11204
11205     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11207
11208     # If archive_cmds runs LD, not CC, wlarc should be empty
11209     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210     #     investigate it a little bit more. (MM)
11211     wlarc='${wl}'
11212
11213     # ancient GNU ld didn't support --whole-archive et. al.
11214     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11215         grep 'no-whole-archive' > /dev/null; then
11216       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11217     else
11218       whole_archive_flag_spec_CXX=
11219     fi
11220   else
11221     with_gnu_ld=no
11222     wlarc=
11223
11224     # A generic and very simple default shared library creation
11225     # command for GNU C++ for the case where it uses the native
11226     # linker, instead of GNU ld.  If possible, this setting should
11227     # overridden to take advantage of the native linker features on
11228     # the platform it is being used on.
11229     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11230   fi
11231
11232   # Commands to make compiler produce verbose output that lists
11233   # what "hidden" libraries, object files and flags are used when
11234   # linking a shared library.
11235   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11236
11237 else
11238   GXX=no
11239   with_gnu_ld=no
11240   wlarc=
11241 fi
11242
11243 # PORTME: fill in a description of your system's C++ link characteristics
11244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11246 ld_shlibs_CXX=yes
11247 case $host_os in
11248   aix3*)
11249     # FIXME: insert proper C++ library support
11250     ld_shlibs_CXX=no
11251     ;;
11252   aix4* | aix5*)
11253     if test "$host_cpu" = ia64; then
11254       # On IA64, the linker does run time linking by default, so we don't
11255       # have to do anything special.
11256       aix_use_runtimelinking=no
11257       exp_sym_flag='-Bexport'
11258       no_entry_flag=""
11259     else
11260       aix_use_runtimelinking=no
11261
11262       # Test if we are trying to use run time linking or normal
11263       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264       # need to do runtime linking.
11265       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266         for ld_flag in $LDFLAGS; do
11267           case $ld_flag in
11268           *-brtl*)
11269             aix_use_runtimelinking=yes
11270             break
11271             ;;
11272           esac
11273         done
11274         ;;
11275       esac
11276
11277       exp_sym_flag='-bexport'
11278       no_entry_flag='-bnoentry'
11279     fi
11280
11281     # When large executables or shared objects are built, AIX ld can
11282     # have problems creating the table of contents.  If linking a library
11283     # or program results in "error TOC overflow" add -mminimal-toc to
11284     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11285     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11286
11287     archive_cmds_CXX=''
11288     hardcode_direct_CXX=yes
11289     hardcode_libdir_separator_CXX=':'
11290     link_all_deplibs_CXX=yes
11291
11292     if test "$GXX" = yes; then
11293       case $host_os in aix4.[012]|aix4.[012].*)
11294       # We only want to do this on AIX 4.2 and lower, the check
11295       # below for broken collect2 doesn't work under 4.3+
11296         collect2name=`${CC} -print-prog-name=collect2`
11297         if test -f "$collect2name" && \
11298            strings "$collect2name" | grep resolve_lib_name >/dev/null
11299         then
11300           # We have reworked collect2
11301           :
11302         else
11303           # We have old collect2
11304           hardcode_direct_CXX=unsupported
11305           # It fails to find uninstalled libraries when the uninstalled
11306           # path is not listed in the libpath.  Setting hardcode_minus_L
11307           # to unsupported forces relinking
11308           hardcode_minus_L_CXX=yes
11309           hardcode_libdir_flag_spec_CXX='-L$libdir'
11310           hardcode_libdir_separator_CXX=
11311         fi
11312         ;;
11313       esac
11314       shared_flag='-shared'
11315       if test "$aix_use_runtimelinking" = yes; then
11316         shared_flag="$shared_flag "'${wl}-G'
11317       fi
11318     else
11319       # not using gcc
11320       if test "$host_cpu" = ia64; then
11321         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11322         # chokes on -Wl,-G. The following line is correct:
11323         shared_flag='-G'
11324       else
11325         if test "$aix_use_runtimelinking" = yes; then
11326           shared_flag='${wl}-G'
11327         else
11328           shared_flag='${wl}-bM:SRE'
11329         fi
11330       fi
11331     fi
11332
11333     # It seems that -bexpall does not export symbols beginning with
11334     # underscore (_), so it is better to generate a list of symbols to export.
11335     always_export_symbols_CXX=yes
11336     if test "$aix_use_runtimelinking" = yes; then
11337       # Warning - without using the other runtime loading flags (-brtl),
11338       # -berok will link without error, but may produce a broken library.
11339       allow_undefined_flag_CXX='-berok'
11340       # Determine the default libpath from the value encoded in an empty executable.
11341       cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347
11348 int
11349 main ()
11350 {
11351
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_link") 2>conftest.er1
11364   ac_status=$?
11365   grep -v '^ *+' conftest.er1 >conftest.err
11366   rm -f conftest.er1
11367   cat conftest.err >&5
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } && {
11370          test -z "$ac_cxx_werror_flag" ||
11371          test ! -s conftest.err
11372        } && test -s conftest$ac_exeext &&
11373        $as_test_x conftest$ac_exeext; then
11374
11375 lt_aix_libpath_sed='
11376     /Import File Strings/,/^$/ {
11377         /^0/ {
11378             s/^0  *\(.*\)$/\1/
11379             p
11380         }
11381     }'
11382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11383 # Check for a 64-bit object if we didn't find anything.
11384 if test -z "$aix_libpath"; then
11385   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11386 fi
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391
11392 fi
11393
11394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395       conftest$ac_exeext conftest.$ac_ext
11396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11397
11398       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11399
11400       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"
11401      else
11402       if test "$host_cpu" = ia64; then
11403         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11404         allow_undefined_flag_CXX="-z nodefs"
11405         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"
11406       else
11407         # Determine the default libpath from the value encoded in an empty executable.
11408         cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414
11415 int
11416 main ()
11417 {
11418
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_link") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } && {
11437          test -z "$ac_cxx_werror_flag" ||
11438          test ! -s conftest.err
11439        } && test -s conftest$ac_exeext &&
11440        $as_test_x conftest$ac_exeext; then
11441
11442 lt_aix_libpath_sed='
11443     /Import File Strings/,/^$/ {
11444         /^0/ {
11445             s/^0  *\(.*\)$/\1/
11446             p
11447         }
11448     }'
11449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11450 # Check for a 64-bit object if we didn't find anything.
11451 if test -z "$aix_libpath"; then
11452   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11453 fi
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458
11459 fi
11460
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462       conftest$ac_exeext conftest.$ac_ext
11463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11464
11465         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11466         # Warning - without using the other run time loading flags,
11467         # -berok will link without error, but may produce a broken library.
11468         no_undefined_flag_CXX=' ${wl}-bernotok'
11469         allow_undefined_flag_CXX=' ${wl}-berok'
11470         # Exported symbols can be pulled into shared objects from archives
11471         whole_archive_flag_spec_CXX='$convenience'
11472         archive_cmds_need_lc_CXX=yes
11473         # This is similar to how AIX traditionally builds its shared libraries.
11474         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'
11475       fi
11476     fi
11477     ;;
11478
11479   beos*)
11480     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11481       allow_undefined_flag_CXX=unsupported
11482       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11483       # support --undefined.  This deserves some investigation.  FIXME
11484       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11485     else
11486       ld_shlibs_CXX=no
11487     fi
11488     ;;
11489
11490   chorus*)
11491     case $cc_basename in
11492       *)
11493         # FIXME: insert proper C++ library support
11494         ld_shlibs_CXX=no
11495         ;;
11496     esac
11497     ;;
11498
11499   cygwin* | mingw* | pw32*)
11500     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11501     # as there is no search path for DLLs.
11502     hardcode_libdir_flag_spec_CXX='-L$libdir'
11503     allow_undefined_flag_CXX=unsupported
11504     always_export_symbols_CXX=no
11505     enable_shared_with_static_runtimes_CXX=yes
11506
11507     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11508       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'
11509       # If the export-symbols file already is a .def file (1st line
11510       # is EXPORTS), use it as is; otherwise, prepend...
11511       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11512         cp $export_symbols $output_objdir/$soname.def;
11513       else
11514         echo EXPORTS > $output_objdir/$soname.def;
11515         cat $export_symbols >> $output_objdir/$soname.def;
11516       fi~
11517       $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'
11518     else
11519       ld_shlibs_CXX=no
11520     fi
11521   ;;
11522       darwin* | rhapsody*)
11523         case $host_os in
11524         rhapsody* | darwin1.[012])
11525          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11526          ;;
11527        *) # Darwin 1.3 on
11528          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11529            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11530          else
11531            case ${MACOSX_DEPLOYMENT_TARGET} in
11532              10.[012])
11533                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11534                ;;
11535              10.*)
11536                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11537                ;;
11538            esac
11539          fi
11540          ;;
11541         esac
11542       archive_cmds_need_lc_CXX=no
11543       hardcode_direct_CXX=no
11544       hardcode_automatic_CXX=yes
11545       hardcode_shlibpath_var_CXX=unsupported
11546       whole_archive_flag_spec_CXX=''
11547       link_all_deplibs_CXX=yes
11548
11549     if test "$GXX" = yes ; then
11550       lt_int_apple_cc_single_mod=no
11551       output_verbose_link_cmd='echo'
11552       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11553        lt_int_apple_cc_single_mod=yes
11554       fi
11555       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11556        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11557       else
11558           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'
11559         fi
11560         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11561         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11562           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11563             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}'
11564           else
11565             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}'
11566           fi
11567             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}'
11568       else
11569       case $cc_basename in
11570         xlc*)
11571          output_verbose_link_cmd='echo'
11572           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'
11573           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575           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}'
11576           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}'
11577           ;;
11578        *)
11579          ld_shlibs_CXX=no
11580           ;;
11581       esac
11582       fi
11583         ;;
11584
11585   dgux*)
11586     case $cc_basename in
11587       ec++*)
11588         # FIXME: insert proper C++ library support
11589         ld_shlibs_CXX=no
11590         ;;
11591       ghcx*)
11592         # Green Hills C++ Compiler
11593         # FIXME: insert proper C++ library support
11594         ld_shlibs_CXX=no
11595         ;;
11596       *)
11597         # FIXME: insert proper C++ library support
11598         ld_shlibs_CXX=no
11599         ;;
11600     esac
11601     ;;
11602   freebsd[12]*)
11603     # C++ shared libraries reported to be fairly broken before switch to ELF
11604     ld_shlibs_CXX=no
11605     ;;
11606   freebsd-elf*)
11607     archive_cmds_need_lc_CXX=no
11608     ;;
11609   freebsd* | dragonfly*)
11610     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11611     # conventions
11612     ld_shlibs_CXX=yes
11613     ;;
11614   gnu*)
11615     ;;
11616   hpux9*)
11617     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618     hardcode_libdir_separator_CXX=:
11619     export_dynamic_flag_spec_CXX='${wl}-E'
11620     hardcode_direct_CXX=yes
11621     hardcode_minus_L_CXX=yes # Not in the search PATH,
11622                                 # but as the default
11623                                 # location of the library.
11624
11625     case $cc_basename in
11626     CC*)
11627       # FIXME: insert proper C++ library support
11628       ld_shlibs_CXX=no
11629       ;;
11630     aCC*)
11631       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'
11632       # Commands to make compiler produce verbose output that lists
11633       # what "hidden" libraries, object files and flags are used when
11634       # linking a shared library.
11635       #
11636       # There doesn't appear to be a way to prevent this compiler from
11637       # explicitly linking system object files so we need to strip them
11638       # from the output so that they don't get included in the library
11639       # dependencies.
11640       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'
11641       ;;
11642     *)
11643       if test "$GXX" = yes; then
11644         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'
11645       else
11646         # FIXME: insert proper C++ library support
11647         ld_shlibs_CXX=no
11648       fi
11649       ;;
11650     esac
11651     ;;
11652   hpux10*|hpux11*)
11653     if test $with_gnu_ld = no; then
11654       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655       hardcode_libdir_separator_CXX=:
11656
11657       case $host_cpu in
11658       hppa*64*|ia64*) ;;
11659       *)
11660         export_dynamic_flag_spec_CXX='${wl}-E'
11661         ;;
11662       esac
11663     fi
11664     case $host_cpu in
11665     hppa*64*|ia64*)
11666       hardcode_direct_CXX=no
11667       hardcode_shlibpath_var_CXX=no
11668       ;;
11669     *)
11670       hardcode_direct_CXX=yes
11671       hardcode_minus_L_CXX=yes # Not in the search PATH,
11672                                               # but as the default
11673                                               # location of the library.
11674       ;;
11675     esac
11676
11677     case $cc_basename in
11678       CC*)
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681         ;;
11682       aCC*)
11683         case $host_cpu in
11684         hppa*64*)
11685           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686           ;;
11687         ia64*)
11688           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689           ;;
11690         *)
11691           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692           ;;
11693         esac
11694         # Commands to make compiler produce verbose output that lists
11695         # what "hidden" libraries, object files and flags are used when
11696         # linking a shared library.
11697         #
11698         # There doesn't appear to be a way to prevent this compiler from
11699         # explicitly linking system object files so we need to strip them
11700         # from the output so that they don't get included in the library
11701         # dependencies.
11702         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'
11703         ;;
11704       *)
11705         if test "$GXX" = yes; then
11706           if test $with_gnu_ld = no; then
11707             case $host_cpu in
11708             hppa*64*)
11709               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710               ;;
11711             ia64*)
11712               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713               ;;
11714             *)
11715               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'
11716               ;;
11717             esac
11718           fi
11719         else
11720           # FIXME: insert proper C++ library support
11721           ld_shlibs_CXX=no
11722         fi
11723         ;;
11724     esac
11725     ;;
11726   interix[3-9]*)
11727     hardcode_direct_CXX=no
11728     hardcode_shlibpath_var_CXX=no
11729     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730     export_dynamic_flag_spec_CXX='${wl}-E'
11731     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732     # Instead, shared libraries are loaded at an image base (0x10000000 by
11733     # default) and relocated if they conflict, which is a slow very memory
11734     # consuming and fragmenting process.  To avoid this, we pick a random,
11735     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11737     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'
11738     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'
11739     ;;
11740   irix5* | irix6*)
11741     case $cc_basename in
11742       CC*)
11743         # SGI C++
11744         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'
11745
11746         # Archives containing C++ object files must be created using
11747         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11748         # necessary to make sure instantiated templates are included
11749         # in the archive.
11750         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11751         ;;
11752       *)
11753         if test "$GXX" = yes; then
11754           if test "$with_gnu_ld" = no; then
11755             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'
11756           else
11757             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'
11758           fi
11759         fi
11760         link_all_deplibs_CXX=yes
11761         ;;
11762     esac
11763     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764     hardcode_libdir_separator_CXX=:
11765     ;;
11766   linux* | k*bsd*-gnu)
11767     case $cc_basename in
11768       KCC*)
11769         # Kuck and Associates, Inc. (KAI) C++ Compiler
11770
11771         # KCC will only create a shared library if the output file
11772         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773         # to its proper name (with version) after linking.
11774         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'
11775         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'
11776         # Commands to make compiler produce verbose output that lists
11777         # what "hidden" libraries, object files and flags are used when
11778         # linking a shared library.
11779         #
11780         # There doesn't appear to be a way to prevent this compiler from
11781         # explicitly linking system object files so we need to strip them
11782         # from the output so that they don't get included in the library
11783         # dependencies.
11784         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'
11785
11786         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11787         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11788
11789         # Archives containing C++ object files must be created using
11790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11792         ;;
11793       icpc*)
11794         # Intel C++
11795         with_gnu_ld=yes
11796         # version 8.0 and above of icpc choke on multiply defined symbols
11797         # if we add $predep_objects and $postdep_objects, however 7.1 and
11798         # earlier do not add the objects themselves.
11799         case `$CC -V 2>&1` in
11800         *"Version 7."*)
11801           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802           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'
11803           ;;
11804         *)  # Version 8.0 or newer
11805           tmp_idyn=
11806           case $host_cpu in
11807             ia64*) tmp_idyn=' -i_dynamic';;
11808           esac
11809           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810           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'
11811           ;;
11812         esac
11813         archive_cmds_need_lc_CXX=no
11814         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11817         ;;
11818       pgCC*)
11819         # Portland Group C++ compiler
11820         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821         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'
11822
11823         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11824         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825         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'
11826         ;;
11827       cxx*)
11828         # Compaq C++
11829         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830         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'
11831
11832         runpath_var=LD_RUN_PATH
11833         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11834         hardcode_libdir_separator_CXX=:
11835
11836         # Commands to make compiler produce verbose output that lists
11837         # what "hidden" libraries, object files and flags are used when
11838         # linking a shared library.
11839         #
11840         # There doesn't appear to be a way to prevent this compiler from
11841         # explicitly linking system object files so we need to strip them
11842         # from the output so that they don't get included in the library
11843         # dependencies.
11844         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'
11845         ;;
11846       *)
11847         case `$CC -V 2>&1 | sed 5q` in
11848         *Sun\ C*)
11849           # Sun C++ 5.9
11850           no_undefined_flag_CXX=' -zdefs'
11851           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852           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'
11853           hardcode_libdir_flag_spec_CXX='-R$libdir'
11854           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'
11855
11856           # Not sure whether something based on
11857           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11858           # would be better.
11859           output_verbose_link_cmd='echo'
11860
11861           # Archives containing C++ object files must be created using
11862           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11863           # necessary to make sure instantiated templates are included
11864           # in the archive.
11865           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11866           ;;
11867         esac
11868         ;;
11869     esac
11870     ;;
11871   lynxos*)
11872     # FIXME: insert proper C++ library support
11873     ld_shlibs_CXX=no
11874     ;;
11875   m88k*)
11876     # FIXME: insert proper C++ library support
11877     ld_shlibs_CXX=no
11878     ;;
11879   mvs*)
11880     case $cc_basename in
11881       cxx*)
11882         # FIXME: insert proper C++ library support
11883         ld_shlibs_CXX=no
11884         ;;
11885       *)
11886         # FIXME: insert proper C++ library support
11887         ld_shlibs_CXX=no
11888         ;;
11889     esac
11890     ;;
11891   netbsd*)
11892     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11893       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11894       wlarc=
11895       hardcode_libdir_flag_spec_CXX='-R$libdir'
11896       hardcode_direct_CXX=yes
11897       hardcode_shlibpath_var_CXX=no
11898     fi
11899     # Workaround some broken pre-1.5 toolchains
11900     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11901     ;;
11902   openbsd2*)
11903     # C++ shared libraries are fairly broken
11904     ld_shlibs_CXX=no
11905     ;;
11906   openbsd*)
11907     if test -f /usr/libexec/ld.so; then
11908       hardcode_direct_CXX=yes
11909       hardcode_shlibpath_var_CXX=no
11910       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11912       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914         export_dynamic_flag_spec_CXX='${wl}-E'
11915         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11916       fi
11917       output_verbose_link_cmd='echo'
11918     else
11919       ld_shlibs_CXX=no
11920     fi
11921     ;;
11922   osf3*)
11923     case $cc_basename in
11924       KCC*)
11925         # Kuck and Associates, Inc. (KAI) C++ Compiler
11926
11927         # KCC will only create a shared library if the output file
11928         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929         # to its proper name (with version) after linking.
11930         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'
11931
11932         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933         hardcode_libdir_separator_CXX=:
11934
11935         # Archives containing C++ object files must be created using
11936         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11938
11939         ;;
11940       RCC*)
11941         # Rational C++ 2.4.1
11942         # FIXME: insert proper C++ library support
11943         ld_shlibs_CXX=no
11944         ;;
11945       cxx*)
11946         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11947         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'
11948
11949         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11950         hardcode_libdir_separator_CXX=:
11951
11952         # Commands to make compiler produce verbose output that lists
11953         # what "hidden" libraries, object files and flags are used when
11954         # linking a shared library.
11955         #
11956         # There doesn't appear to be a way to prevent this compiler from
11957         # explicitly linking system object files so we need to strip them
11958         # from the output so that they don't get included in the library
11959         # dependencies.
11960         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'
11961         ;;
11962       *)
11963         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11964           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965           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'
11966
11967           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968           hardcode_libdir_separator_CXX=:
11969
11970           # Commands to make compiler produce verbose output that lists
11971           # what "hidden" libraries, object files and flags are used when
11972           # linking a shared library.
11973           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11974
11975         else
11976           # FIXME: insert proper C++ library support
11977           ld_shlibs_CXX=no
11978         fi
11979         ;;
11980     esac
11981     ;;
11982   osf4* | osf5*)
11983     case $cc_basename in
11984       KCC*)
11985         # Kuck and Associates, Inc. (KAI) C++ Compiler
11986
11987         # KCC will only create a shared library if the output file
11988         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989         # to its proper name (with version) after linking.
11990         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'
11991
11992         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993         hardcode_libdir_separator_CXX=:
11994
11995         # Archives containing C++ object files must be created using
11996         # the KAI C++ compiler.
11997         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11998         ;;
11999       RCC*)
12000         # Rational C++ 2.4.1
12001         # FIXME: insert proper C++ library support
12002         ld_shlibs_CXX=no
12003         ;;
12004       cxx*)
12005         allow_undefined_flag_CXX=' -expect_unresolved \*'
12006         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'
12007         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008           echo "-hidden">> $lib.exp~
12009           $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~
12010           $rm $lib.exp'
12011
12012         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013         hardcode_libdir_separator_CXX=:
12014
12015         # Commands to make compiler produce verbose output that lists
12016         # what "hidden" libraries, object files and flags are used when
12017         # linking a shared library.
12018         #
12019         # There doesn't appear to be a way to prevent this compiler from
12020         # explicitly linking system object files so we need to strip them
12021         # from the output so that they don't get included in the library
12022         # dependencies.
12023         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'
12024         ;;
12025       *)
12026         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028          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'
12029
12030           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031           hardcode_libdir_separator_CXX=:
12032
12033           # Commands to make compiler produce verbose output that lists
12034           # what "hidden" libraries, object files and flags are used when
12035           # linking a shared library.
12036           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12037
12038         else
12039           # FIXME: insert proper C++ library support
12040           ld_shlibs_CXX=no
12041         fi
12042         ;;
12043     esac
12044     ;;
12045   psos*)
12046     # FIXME: insert proper C++ library support
12047     ld_shlibs_CXX=no
12048     ;;
12049   sunos4*)
12050     case $cc_basename in
12051       CC*)
12052         # Sun C++ 4.x
12053         # FIXME: insert proper C++ library support
12054         ld_shlibs_CXX=no
12055         ;;
12056       lcc*)
12057         # Lucid
12058         # FIXME: insert proper C++ library support
12059         ld_shlibs_CXX=no
12060         ;;
12061       *)
12062         # FIXME: insert proper C++ library support
12063         ld_shlibs_CXX=no
12064         ;;
12065     esac
12066     ;;
12067   solaris*)
12068     case $cc_basename in
12069       CC*)
12070         # Sun C++ 4.2, 5.x and Centerline C++
12071         archive_cmds_need_lc_CXX=yes
12072         no_undefined_flag_CXX=' -zdefs'
12073         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075         $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'
12076
12077         hardcode_libdir_flag_spec_CXX='-R$libdir'
12078         hardcode_shlibpath_var_CXX=no
12079         case $host_os in
12080           solaris2.[0-5] | solaris2.[0-5].*) ;;
12081           *)
12082             # The compiler driver will combine and reorder linker options,
12083             # but understands `-z linker_flag'.
12084             # Supported since Solaris 2.6 (maybe 2.5.1?)
12085             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12086             ;;
12087         esac
12088         link_all_deplibs_CXX=yes
12089
12090         output_verbose_link_cmd='echo'
12091
12092         # Archives containing C++ object files must be created using
12093         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12094         # necessary to make sure instantiated templates are included
12095         # in the archive.
12096         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12097         ;;
12098       gcx*)
12099         # Green Hills C++ Compiler
12100         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101
12102         # The C++ compiler must be used to create the archive.
12103         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12104         ;;
12105       *)
12106         # GNU C++ compiler with Solaris linker
12107         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12108           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12109           if $CC --version | grep -v '^2\.7' > /dev/null; then
12110             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12113
12114             # Commands to make compiler produce verbose output that lists
12115             # what "hidden" libraries, object files and flags are used when
12116             # linking a shared library.
12117             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12118           else
12119             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12120             # platform.
12121             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12124
12125             # Commands to make compiler produce verbose output that lists
12126             # what "hidden" libraries, object files and flags are used when
12127             # linking a shared library.
12128             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129           fi
12130
12131           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12132           case $host_os in
12133           solaris2.[0-5] | solaris2.[0-5].*) ;;
12134           *)
12135             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12136             ;;
12137           esac
12138         fi
12139         ;;
12140     esac
12141     ;;
12142   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143     no_undefined_flag_CXX='${wl}-z,text'
12144     archive_cmds_need_lc_CXX=no
12145     hardcode_shlibpath_var_CXX=no
12146     runpath_var='LD_RUN_PATH'
12147
12148     case $cc_basename in
12149       CC*)
12150         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152         ;;
12153       *)
12154         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156         ;;
12157     esac
12158     ;;
12159   sysv5* | sco3.2v5* | sco5v6*)
12160     # Note: We can NOT use -z defs as we might desire, because we do not
12161     # link with -lc, and that would cause any symbols used from libc to
12162     # always be unresolved, which means just about no library would
12163     # ever link correctly.  If we're not using GNU ld we use -z text
12164     # though, which does catch some bad symbols but isn't as heavy-handed
12165     # as -z defs.
12166     # For security reasons, it is highly recommended that you always
12167     # use absolute paths for naming shared libraries, and exclude the
12168     # DT_RUNPATH tag from executables and libraries.  But doing so
12169     # requires that you compile everything twice, which is a pain.
12170     # So that behaviour is only enabled if SCOABSPATH is set to a
12171     # non-empty value in the environment.  Most likely only useful for
12172     # creating official distributions of packages.
12173     # This is a hack until libtool officially supports absolute path
12174     # names for shared libraries.
12175     no_undefined_flag_CXX='${wl}-z,text'
12176     allow_undefined_flag_CXX='${wl}-z,nodefs'
12177     archive_cmds_need_lc_CXX=no
12178     hardcode_shlibpath_var_CXX=no
12179     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180     hardcode_libdir_separator_CXX=':'
12181     link_all_deplibs_CXX=yes
12182     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183     runpath_var='LD_RUN_PATH'
12184
12185     case $cc_basename in
12186       CC*)
12187         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189         ;;
12190       *)
12191         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12193         ;;
12194     esac
12195     ;;
12196   tandem*)
12197     case $cc_basename in
12198       NCC*)
12199         # NonStop-UX NCC 3.20
12200         # FIXME: insert proper C++ library support
12201         ld_shlibs_CXX=no
12202         ;;
12203       *)
12204         # FIXME: insert proper C++ library support
12205         ld_shlibs_CXX=no
12206         ;;
12207     esac
12208     ;;
12209   vxworks*)
12210     # FIXME: insert proper C++ library support
12211     ld_shlibs_CXX=no
12212     ;;
12213   *)
12214     # FIXME: insert proper C++ library support
12215     ld_shlibs_CXX=no
12216     ;;
12217 esac
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no && can_build_shared=no
12221
12222 GCC_CXX="$GXX"
12223 LD_CXX="$LD"
12224
12225
12226 cat > conftest.$ac_ext <<EOF
12227 class Foo
12228 {
12229 public:
12230   Foo (void) { a = 0; }
12231 private:
12232   int a;
12233 };
12234 EOF
12235
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237   (eval $ac_compile) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; then
12241   # Parse the compiler output and extract the necessary
12242   # objects, libraries and library flags.
12243
12244   # Sentinel used to keep track of whether or not we are before
12245   # the conftest object file.
12246   pre_test_object_deps_done=no
12247
12248   # The `*' in the case matches for architectures that use `case' in
12249   # $output_verbose_cmd can trigger glob expansion during the loop
12250   # eval without this substitution.
12251   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12252
12253   for p in `eval $output_verbose_link_cmd`; do
12254     case $p in
12255
12256     -L* | -R* | -l*)
12257        # Some compilers place space between "-{L,R}" and the path.
12258        # Remove the space.
12259        if test $p = "-L" \
12260           || test $p = "-R"; then
12261          prev=$p
12262          continue
12263        else
12264          prev=
12265        fi
12266
12267        if test "$pre_test_object_deps_done" = no; then
12268          case $p in
12269          -L* | -R*)
12270            # Internal compiler library paths should come after those
12271            # provided the user.  The postdeps already come after the
12272            # user supplied libs so there is no need to process them.
12273            if test -z "$compiler_lib_search_path_CXX"; then
12274              compiler_lib_search_path_CXX="${prev}${p}"
12275            else
12276              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12277            fi
12278            ;;
12279          # The "-l" case would never come before the object being
12280          # linked, so don't bother handling this case.
12281          esac
12282        else
12283          if test -z "$postdeps_CXX"; then
12284            postdeps_CXX="${prev}${p}"
12285          else
12286            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12287          fi
12288        fi
12289        ;;
12290
12291     *.$objext)
12292        # This assumes that the test object file only shows up
12293        # once in the compiler output.
12294        if test "$p" = "conftest.$objext"; then
12295          pre_test_object_deps_done=yes
12296          continue
12297        fi
12298
12299        if test "$pre_test_object_deps_done" = no; then
12300          if test -z "$predep_objects_CXX"; then
12301            predep_objects_CXX="$p"
12302          else
12303            predep_objects_CXX="$predep_objects_CXX $p"
12304          fi
12305        else
12306          if test -z "$postdep_objects_CXX"; then
12307            postdep_objects_CXX="$p"
12308          else
12309            postdep_objects_CXX="$postdep_objects_CXX $p"
12310          fi
12311        fi
12312        ;;
12313
12314     *) ;; # Ignore the rest.
12315
12316     esac
12317   done
12318
12319   # Clean up.
12320   rm -f a.out a.exe
12321 else
12322   echo "libtool.m4: error: problem compiling CXX test program"
12323 fi
12324
12325 $rm -f confest.$objext
12326
12327 # PORTME: override above test on systems where it is broken
12328 case $host_os in
12329 interix[3-9]*)
12330   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12331   # hack all around it, let's just trust "g++" to DTRT.
12332   predep_objects_CXX=
12333   postdep_objects_CXX=
12334   postdeps_CXX=
12335   ;;
12336
12337 linux*)
12338   case `$CC -V 2>&1 | sed 5q` in
12339   *Sun\ C*)
12340     # Sun C++ 5.9
12341     #
12342     # The more standards-conforming stlport4 library is
12343     # incompatible with the Cstd library. Avoid specifying
12344     # it if it's in CXXFLAGS. Ignore libCrun as
12345     # -library=stlport4 depends on it.
12346     case " $CXX $CXXFLAGS " in
12347     *" -library=stlport4 "*)
12348       solaris_use_stlport4=yes
12349       ;;
12350     esac
12351     if test "$solaris_use_stlport4" != yes; then
12352       postdeps_CXX='-library=Cstd -library=Crun'
12353     fi
12354     ;;
12355   esac
12356   ;;
12357
12358 solaris*)
12359   case $cc_basename in
12360   CC*)
12361     # The more standards-conforming stlport4 library is
12362     # incompatible with the Cstd library. Avoid specifying
12363     # it if it's in CXXFLAGS. Ignore libCrun as
12364     # -library=stlport4 depends on it.
12365     case " $CXX $CXXFLAGS " in
12366     *" -library=stlport4 "*)
12367       solaris_use_stlport4=yes
12368       ;;
12369     esac
12370
12371     # Adding this requires a known-good setup of shared libraries for
12372     # Sun compiler versions before 5.6, else PIC objects from an old
12373     # archive will be linked into the output, leading to subtle bugs.
12374     if test "$solaris_use_stlport4" != yes; then
12375       postdeps_CXX='-library=Cstd -library=Crun'
12376     fi
12377     ;;
12378   esac
12379   ;;
12380 esac
12381
12382
12383 case " $postdeps_CXX " in
12384 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12385 esac
12386
12387 lt_prog_compiler_wl_CXX=
12388 lt_prog_compiler_pic_CXX=
12389 lt_prog_compiler_static_CXX=
12390
12391 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12393
12394   # C++ specific cases for pic, static, wl, etc.
12395   if test "$GXX" = yes; then
12396     lt_prog_compiler_wl_CXX='-Wl,'
12397     lt_prog_compiler_static_CXX='-static'
12398
12399     case $host_os in
12400     aix*)
12401       # All AIX code is PIC.
12402       if test "$host_cpu" = ia64; then
12403         # AIX 5 now supports IA64 processor
12404         lt_prog_compiler_static_CXX='-Bstatic'
12405       fi
12406       ;;
12407     amigaos*)
12408       # FIXME: we need at least 68020 code to build shared libraries, but
12409       # adding the `-m68020' flag to GCC prevents building anything better,
12410       # like `-m68040'.
12411       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12412       ;;
12413     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12414       # PIC is the default for these OSes.
12415       ;;
12416     mingw* | cygwin* | os2* | pw32*)
12417       # This hack is so that the source file can tell whether it is being
12418       # built for inclusion in a dll (and should export symbols for example).
12419       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12420       # (--disable-auto-import) libraries
12421       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12422       ;;
12423     darwin* | rhapsody*)
12424       # PIC is the default on this platform
12425       # Common symbols not allowed in MH_DYLIB files
12426       lt_prog_compiler_pic_CXX='-fno-common'
12427       ;;
12428     *djgpp*)
12429       # DJGPP does not support shared libraries at all
12430       lt_prog_compiler_pic_CXX=
12431       ;;
12432     interix[3-9]*)
12433       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12434       # Instead, we relocate shared libraries at runtime.
12435       ;;
12436     sysv4*MP*)
12437       if test -d /usr/nec; then
12438         lt_prog_compiler_pic_CXX=-Kconform_pic
12439       fi
12440       ;;
12441     hpux*)
12442       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12443       # not for PA HP-UX.
12444       case $host_cpu in
12445       hppa*64*|ia64*)
12446         ;;
12447       *)
12448         lt_prog_compiler_pic_CXX='-fPIC'
12449         ;;
12450       esac
12451       ;;
12452     *)
12453       lt_prog_compiler_pic_CXX='-fPIC'
12454       ;;
12455     esac
12456   else
12457     case $host_os in
12458       aix4* | aix5*)
12459         # All AIX code is PIC.
12460         if test "$host_cpu" = ia64; then
12461           # AIX 5 now supports IA64 processor
12462           lt_prog_compiler_static_CXX='-Bstatic'
12463         else
12464           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12465         fi
12466         ;;
12467       chorus*)
12468         case $cc_basename in
12469         cxch68*)
12470           # Green Hills C++ Compiler
12471           # _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"
12472           ;;
12473         esac
12474         ;;
12475        darwin*)
12476          # PIC is the default on this platform
12477          # Common symbols not allowed in MH_DYLIB files
12478          case $cc_basename in
12479            xlc*)
12480            lt_prog_compiler_pic_CXX='-qnocommon'
12481            lt_prog_compiler_wl_CXX='-Wl,'
12482            ;;
12483          esac
12484        ;;
12485       dgux*)
12486         case $cc_basename in
12487           ec++*)
12488             lt_prog_compiler_pic_CXX='-KPIC'
12489             ;;
12490           ghcx*)
12491             # Green Hills C++ Compiler
12492             lt_prog_compiler_pic_CXX='-pic'
12493             ;;
12494           *)
12495             ;;
12496         esac
12497         ;;
12498       freebsd* | dragonfly*)
12499         # FreeBSD uses GNU C++
12500         ;;
12501       hpux9* | hpux10* | hpux11*)
12502         case $cc_basename in
12503           CC*)
12504             lt_prog_compiler_wl_CXX='-Wl,'
12505             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12506             if test "$host_cpu" != ia64; then
12507               lt_prog_compiler_pic_CXX='+Z'
12508             fi
12509             ;;
12510           aCC*)
12511             lt_prog_compiler_wl_CXX='-Wl,'
12512             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12513             case $host_cpu in
12514             hppa*64*|ia64*)
12515               # +Z the default
12516               ;;
12517             *)
12518               lt_prog_compiler_pic_CXX='+Z'
12519               ;;
12520             esac
12521             ;;
12522           *)
12523             ;;
12524         esac
12525         ;;
12526       interix*)
12527         # This is c89, which is MS Visual C++ (no shared libs)
12528         # Anyone wants to do a port?
12529         ;;
12530       irix5* | irix6* | nonstopux*)
12531         case $cc_basename in
12532           CC*)
12533             lt_prog_compiler_wl_CXX='-Wl,'
12534             lt_prog_compiler_static_CXX='-non_shared'
12535             # CC pic flag -KPIC is the default.
12536             ;;
12537           *)
12538             ;;
12539         esac
12540         ;;
12541       linux* | k*bsd*-gnu)
12542         case $cc_basename in
12543           KCC*)
12544             # KAI C++ Compiler
12545             lt_prog_compiler_wl_CXX='--backend -Wl,'
12546             lt_prog_compiler_pic_CXX='-fPIC'
12547             ;;
12548           icpc* | ecpc*)
12549             # Intel C++
12550             lt_prog_compiler_wl_CXX='-Wl,'
12551             lt_prog_compiler_pic_CXX='-KPIC'
12552             lt_prog_compiler_static_CXX='-static'
12553             ;;
12554           pgCC*)
12555             # Portland Group C++ compiler.
12556             lt_prog_compiler_wl_CXX='-Wl,'
12557             lt_prog_compiler_pic_CXX='-fpic'
12558             lt_prog_compiler_static_CXX='-Bstatic'
12559             ;;
12560           cxx*)
12561             # Compaq C++
12562             # Make sure the PIC flag is empty.  It appears that all Alpha
12563             # Linux and Compaq Tru64 Unix objects are PIC.
12564             lt_prog_compiler_pic_CXX=
12565             lt_prog_compiler_static_CXX='-non_shared'
12566             ;;
12567           *)
12568             case `$CC -V 2>&1 | sed 5q` in
12569             *Sun\ C*)
12570               # Sun C++ 5.9
12571               lt_prog_compiler_pic_CXX='-KPIC'
12572               lt_prog_compiler_static_CXX='-Bstatic'
12573               lt_prog_compiler_wl_CXX='-Qoption ld '
12574               ;;
12575             esac
12576             ;;
12577         esac
12578         ;;
12579       lynxos*)
12580         ;;
12581       m88k*)
12582         ;;
12583       mvs*)
12584         case $cc_basename in
12585           cxx*)
12586             lt_prog_compiler_pic_CXX='-W c,exportall'
12587             ;;
12588           *)
12589             ;;
12590         esac
12591         ;;
12592       netbsd*)
12593         ;;
12594       osf3* | osf4* | osf5*)
12595         case $cc_basename in
12596           KCC*)
12597             lt_prog_compiler_wl_CXX='--backend -Wl,'
12598             ;;
12599           RCC*)
12600             # Rational C++ 2.4.1
12601             lt_prog_compiler_pic_CXX='-pic'
12602             ;;
12603           cxx*)
12604             # Digital/Compaq C++
12605             lt_prog_compiler_wl_CXX='-Wl,'
12606             # Make sure the PIC flag is empty.  It appears that all Alpha
12607             # Linux and Compaq Tru64 Unix objects are PIC.
12608             lt_prog_compiler_pic_CXX=
12609             lt_prog_compiler_static_CXX='-non_shared'
12610             ;;
12611           *)
12612             ;;
12613         esac
12614         ;;
12615       psos*)
12616         ;;
12617       solaris*)
12618         case $cc_basename in
12619           CC*)
12620             # Sun C++ 4.2, 5.x and Centerline C++
12621             lt_prog_compiler_pic_CXX='-KPIC'
12622             lt_prog_compiler_static_CXX='-Bstatic'
12623             lt_prog_compiler_wl_CXX='-Qoption ld '
12624             ;;
12625           gcx*)
12626             # Green Hills C++ Compiler
12627             lt_prog_compiler_pic_CXX='-PIC'
12628             ;;
12629           *)
12630             ;;
12631         esac
12632         ;;
12633       sunos4*)
12634         case $cc_basename in
12635           CC*)
12636             # Sun C++ 4.x
12637             lt_prog_compiler_pic_CXX='-pic'
12638             lt_prog_compiler_static_CXX='-Bstatic'
12639             ;;
12640           lcc*)
12641             # Lucid
12642             lt_prog_compiler_pic_CXX='-pic'
12643             ;;
12644           *)
12645             ;;
12646         esac
12647         ;;
12648       tandem*)
12649         case $cc_basename in
12650           NCC*)
12651             # NonStop-UX NCC 3.20
12652             lt_prog_compiler_pic_CXX='-KPIC'
12653             ;;
12654           *)
12655             ;;
12656         esac
12657         ;;
12658       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12659         case $cc_basename in
12660           CC*)
12661             lt_prog_compiler_wl_CXX='-Wl,'
12662             lt_prog_compiler_pic_CXX='-KPIC'
12663             lt_prog_compiler_static_CXX='-Bstatic'
12664             ;;
12665         esac
12666         ;;
12667       vxworks*)
12668         ;;
12669       *)
12670         lt_prog_compiler_can_build_shared_CXX=no
12671         ;;
12672     esac
12673   fi
12674
12675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12676 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12677
12678 #
12679 # Check to make sure the PIC flag actually works.
12680 #
12681 if test -n "$lt_prog_compiler_pic_CXX"; then
12682
12683 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12685 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   lt_prog_compiler_pic_works_CXX=no
12689   ac_outfile=conftest.$ac_objext
12690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12691    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12692    # Insert the option either (1) after the last *FLAGS variable, or
12693    # (2) before a word containing "conftest.", or (3) at the end.
12694    # Note that $ac_compile itself does not contain backslashes and begins
12695    # with a dollar sign (not a hyphen), so the echo should work correctly.
12696    # The option is referenced via a variable to avoid confusing sed.
12697    lt_compile=`echo "$ac_compile" | $SED \
12698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700    -e 's:$: $lt_compiler_flag:'`
12701    (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
12702    (eval "$lt_compile" 2>conftest.err)
12703    ac_status=$?
12704    cat conftest.err >&5
12705    echo "$as_me:12705: \$? = $ac_status" >&5
12706    if (exit $ac_status) && test -s "$ac_outfile"; then
12707      # The compiler can only warn and ignore the option if not recognized
12708      # So say no if there are warnings other than the usual output.
12709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12712        lt_prog_compiler_pic_works_CXX=yes
12713      fi
12714    fi
12715    $rm conftest*
12716
12717 fi
12718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12719 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12720
12721 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12722     case $lt_prog_compiler_pic_CXX in
12723      "" | " "*) ;;
12724      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12725      esac
12726 else
12727     lt_prog_compiler_pic_CXX=
12728      lt_prog_compiler_can_build_shared_CXX=no
12729 fi
12730
12731 fi
12732 case $host_os in
12733   # For platforms which do not support PIC, -DPIC is meaningless:
12734   *djgpp*)
12735     lt_prog_compiler_pic_CXX=
12736     ;;
12737   *)
12738     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12739     ;;
12740 esac
12741
12742 #
12743 # Check to make sure the static flag actually works.
12744 #
12745 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12746 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12748 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   lt_prog_compiler_static_works_CXX=no
12752    save_LDFLAGS="$LDFLAGS"
12753    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12754    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12755    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12756      # The linker can only warn and ignore the option if not recognized
12757      # So say no if there are warnings
12758      if test -s conftest.err; then
12759        # Append any errors to the config.log.
12760        cat conftest.err 1>&5
12761        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12762        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12763        if diff conftest.exp conftest.er2 >/dev/null; then
12764          lt_prog_compiler_static_works_CXX=yes
12765        fi
12766      else
12767        lt_prog_compiler_static_works_CXX=yes
12768      fi
12769    fi
12770    $rm conftest*
12771    LDFLAGS="$save_LDFLAGS"
12772
12773 fi
12774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12775 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12776
12777 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12778     :
12779 else
12780     lt_prog_compiler_static_CXX=
12781 fi
12782
12783
12784 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12786 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789   lt_cv_prog_compiler_c_o_CXX=no
12790    $rm -r conftest 2>/dev/null
12791    mkdir conftest
12792    cd conftest
12793    mkdir out
12794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12795
12796    lt_compiler_flag="-o out/conftest2.$ac_objext"
12797    # Insert the option either (1) after the last *FLAGS variable, or
12798    # (2) before a word containing "conftest.", or (3) at the end.
12799    # Note that $ac_compile itself does not contain backslashes and begins
12800    # with a dollar sign (not a hyphen), so the echo should work correctly.
12801    lt_compile=`echo "$ac_compile" | $SED \
12802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12804    -e 's:$: $lt_compiler_flag:'`
12805    (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
12806    (eval "$lt_compile" 2>out/conftest.err)
12807    ac_status=$?
12808    cat out/conftest.err >&5
12809    echo "$as_me:12809: \$? = $ac_status" >&5
12810    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12811    then
12812      # The compiler can only warn and ignore the option if not recognized
12813      # So say no if there are warnings
12814      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12815      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12816      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12817        lt_cv_prog_compiler_c_o_CXX=yes
12818      fi
12819    fi
12820    chmod u+w . 2>&5
12821    $rm conftest*
12822    # SGI C++ compiler will create directory out/ii_files/ for
12823    # template instantiation
12824    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12825    $rm out/* && rmdir out
12826    cd ..
12827    rmdir conftest
12828    $rm conftest*
12829
12830 fi
12831 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12833
12834
12835 hard_links="nottested"
12836 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12837   # do not overwrite the value of need_locks provided by the user
12838   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12840   hard_links=yes
12841   $rm conftest*
12842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12843   touch conftest.a
12844   ln conftest.a conftest.b 2>&5 || hard_links=no
12845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12846   { echo "$as_me:$LINENO: result: $hard_links" >&5
12847 echo "${ECHO_T}$hard_links" >&6; }
12848   if test "$hard_links" = no; then
12849     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12851     need_locks=warn
12852   fi
12853 else
12854   need_locks=no
12855 fi
12856
12857 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12859
12860   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12861   case $host_os in
12862   aix4* | aix5*)
12863     # If we're using GNU nm, then we don't want the "-C" option.
12864     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12865     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12866       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'
12867     else
12868       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'
12869     fi
12870     ;;
12871   pw32*)
12872     export_symbols_cmds_CXX="$ltdll_cmds"
12873   ;;
12874   cygwin* | mingw*)
12875     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'
12876   ;;
12877   *)
12878     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12879   ;;
12880   esac
12881
12882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12884 test "$ld_shlibs_CXX" = no && can_build_shared=no
12885
12886 #
12887 # Do we need to explicitly link libc?
12888 #
12889 case "x$archive_cmds_need_lc_CXX" in
12890 x|xyes)
12891   # Assume -lc should be added
12892   archive_cmds_need_lc_CXX=yes
12893
12894   if test "$enable_shared" = yes && test "$GCC" = yes; then
12895     case $archive_cmds_CXX in
12896     *'~'*)
12897       # FIXME: we may have to deal with multi-command sequences.
12898       ;;
12899     '$CC '*)
12900       # Test whether the compiler implicitly links with -lc since on some
12901       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12902       # to ld, don't add -lc before -lgcc.
12903       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12905       $rm conftest*
12906       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907
12908       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909   (eval $ac_compile) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } 2>conftest.err; then
12913         soname=conftest
12914         lib=conftest
12915         libobjs=conftest.$ac_objext
12916         deplibs=
12917         wl=$lt_prog_compiler_wl_CXX
12918         pic_flag=$lt_prog_compiler_pic_CXX
12919         compiler_flags=-v
12920         linker_flags=-v
12921         verstring=
12922         output_objdir=.
12923         libname=conftest
12924         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12925         allow_undefined_flag_CXX=
12926         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12927   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }
12931         then
12932           archive_cmds_need_lc_CXX=no
12933         else
12934           archive_cmds_need_lc_CXX=yes
12935         fi
12936         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12937       else
12938         cat conftest.err 1>&5
12939       fi
12940       $rm conftest*
12941       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12942 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12943       ;;
12944     esac
12945   fi
12946   ;;
12947 esac
12948
12949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12951 library_names_spec=
12952 libname_spec='lib$name'
12953 soname_spec=
12954 shrext_cmds=".so"
12955 postinstall_cmds=
12956 postuninstall_cmds=
12957 finish_cmds=
12958 finish_eval=
12959 shlibpath_var=
12960 shlibpath_overrides_runpath=unknown
12961 version_type=none
12962 dynamic_linker="$host_os ld.so"
12963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12964
12965 need_lib_prefix=unknown
12966 hardcode_into_libs=no
12967
12968 # when you set need_version to no, make sure it does not cause -set_version
12969 # flags to be left without arguments
12970 need_version=unknown
12971
12972 case $host_os in
12973 aix3*)
12974   version_type=linux
12975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12976   shlibpath_var=LIBPATH
12977
12978   # AIX 3 has no versioning support, so we append a major version to the name.
12979   soname_spec='${libname}${release}${shared_ext}$major'
12980   ;;
12981
12982 aix4* | aix5*)
12983   version_type=linux
12984   need_lib_prefix=no
12985   need_version=no
12986   hardcode_into_libs=yes
12987   if test "$host_cpu" = ia64; then
12988     # AIX 5 supports IA64
12989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12990     shlibpath_var=LD_LIBRARY_PATH
12991   else
12992     # With GCC up to 2.95.x, collect2 would create an import file
12993     # for dependence libraries.  The import file would start with
12994     # the line `#! .'.  This would cause the generated library to
12995     # depend on `.', always an invalid library.  This was fixed in
12996     # development snapshots of GCC prior to 3.0.
12997     case $host_os in
12998       aix4 | aix4.[01] | aix4.[01].*)
12999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13000            echo ' yes '
13001            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13002         :
13003       else
13004         can_build_shared=no
13005       fi
13006       ;;
13007     esac
13008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13009     # soname into executable. Probably we can add versioning support to
13010     # collect2, so additional links can be useful in future.
13011     if test "$aix_use_runtimelinking" = yes; then
13012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13013       # instead of lib<name>.a to let people know that these are not
13014       # typical AIX shared libraries.
13015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13016     else
13017       # We preserve .a as extension for shared libraries through AIX4.2
13018       # and later when we are not doing run time linking.
13019       library_names_spec='${libname}${release}.a $libname.a'
13020       soname_spec='${libname}${release}${shared_ext}$major'
13021     fi
13022     shlibpath_var=LIBPATH
13023   fi
13024   ;;
13025
13026 amigaos*)
13027   library_names_spec='$libname.ixlibrary $libname.a'
13028   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13029   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'
13030   ;;
13031
13032 beos*)
13033   library_names_spec='${libname}${shared_ext}'
13034   dynamic_linker="$host_os ld.so"
13035   shlibpath_var=LIBRARY_PATH
13036   ;;
13037
13038 bsdi[45]*)
13039   version_type=linux
13040   need_version=no
13041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13046   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13047   # the default ld.so.conf also contains /usr/contrib/lib and
13048   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13049   # libtool to hard-code these into programs
13050   ;;
13051
13052 cygwin* | mingw* | pw32*)
13053   version_type=windows
13054   shrext_cmds=".dll"
13055   need_version=no
13056   need_lib_prefix=no
13057
13058   case $GCC,$host_os in
13059   yes,cygwin* | yes,mingw* | yes,pw32*)
13060     library_names_spec='$libname.dll.a'
13061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13062     postinstall_cmds='base_file=`basename \${file}`~
13063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13064       dldir=$destdir/`dirname \$dlpath`~
13065       test -d \$dldir || mkdir -p \$dldir~
13066       $install_prog $dir/$dlname \$dldir/$dlname~
13067       chmod a+x \$dldir/$dlname'
13068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13069       dlpath=$dir/\$dldll~
13070        $rm \$dlpath'
13071     shlibpath_overrides_runpath=yes
13072
13073     case $host_os in
13074     cygwin*)
13075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13078       ;;
13079     mingw*)
13080       # MinGW DLLs use traditional 'lib' prefix
13081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13084         # It is most probably a Windows format PATH printed by
13085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086         # path with ; separators, and with drive letters. We can handle the
13087         # drive letters (cygwin fileutils understands them), so leave them,
13088         # especially as we might pass files found there to a mingw objdump,
13089         # which wouldn't understand a cygwinified path. Ahh.
13090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13091       else
13092         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13093       fi
13094       ;;
13095     pw32*)
13096       # pw32 DLLs use 'pw' prefix rather than 'lib'
13097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13098       ;;
13099     esac
13100     ;;
13101
13102   *)
13103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13104     ;;
13105   esac
13106   dynamic_linker='Win32 ld.exe'
13107   # FIXME: first we should search . and the directory the executable is in
13108   shlibpath_var=PATH
13109   ;;
13110
13111 darwin* | rhapsody*)
13112   dynamic_linker="$host_os dyld"
13113   version_type=darwin
13114   need_lib_prefix=no
13115   need_version=no
13116   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13117   soname_spec='${libname}${release}${major}$shared_ext'
13118   shlibpath_overrides_runpath=yes
13119   shlibpath_var=DYLD_LIBRARY_PATH
13120   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13121
13122   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13123   ;;
13124
13125 dgux*)
13126   version_type=linux
13127   need_lib_prefix=no
13128   need_version=no
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13130   soname_spec='${libname}${release}${shared_ext}$major'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   ;;
13133
13134 freebsd1*)
13135   dynamic_linker=no
13136   ;;
13137
13138 freebsd* | dragonfly*)
13139   # DragonFly does not have aout.  When/if they implement a new
13140   # versioning mechanism, adjust this.
13141   if test -x /usr/bin/objformat; then
13142     objformat=`/usr/bin/objformat`
13143   else
13144     case $host_os in
13145     freebsd[123]*) objformat=aout ;;
13146     *) objformat=elf ;;
13147     esac
13148   fi
13149   version_type=freebsd-$objformat
13150   case $version_type in
13151     freebsd-elf*)
13152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13153       need_version=no
13154       need_lib_prefix=no
13155       ;;
13156     freebsd-*)
13157       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13158       need_version=yes
13159       ;;
13160   esac
13161   shlibpath_var=LD_LIBRARY_PATH
13162   case $host_os in
13163   freebsd2*)
13164     shlibpath_overrides_runpath=yes
13165     ;;
13166   freebsd3.[01]* | freebsdelf3.[01]*)
13167     shlibpath_overrides_runpath=yes
13168     hardcode_into_libs=yes
13169     ;;
13170   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13171   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13172     shlibpath_overrides_runpath=no
13173     hardcode_into_libs=yes
13174     ;;
13175   *) # from 4.6 on, and DragonFly
13176     shlibpath_overrides_runpath=yes
13177     hardcode_into_libs=yes
13178     ;;
13179   esac
13180   ;;
13181
13182 gnu*)
13183   version_type=linux
13184   need_lib_prefix=no
13185   need_version=no
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13187   soname_spec='${libname}${release}${shared_ext}$major'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   hardcode_into_libs=yes
13190   ;;
13191
13192 hpux9* | hpux10* | hpux11*)
13193   # Give a soname corresponding to the major version so that dld.sl refuses to
13194   # link against other versions.
13195   version_type=sunos
13196   need_lib_prefix=no
13197   need_version=no
13198   case $host_cpu in
13199   ia64*)
13200     shrext_cmds='.so'
13201     hardcode_into_libs=yes
13202     dynamic_linker="$host_os dld.so"
13203     shlibpath_var=LD_LIBRARY_PATH
13204     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206     soname_spec='${libname}${release}${shared_ext}$major'
13207     if test "X$HPUX_IA64_MODE" = X32; then
13208       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13209     else
13210       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13211     fi
13212     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13213     ;;
13214    hppa*64*)
13215      shrext_cmds='.sl'
13216      hardcode_into_libs=yes
13217      dynamic_linker="$host_os dld.sl"
13218      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13219      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221      soname_spec='${libname}${release}${shared_ext}$major'
13222      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13223      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13224      ;;
13225    *)
13226     shrext_cmds='.sl'
13227     dynamic_linker="$host_os dld.sl"
13228     shlibpath_var=SHLIB_PATH
13229     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231     soname_spec='${libname}${release}${shared_ext}$major'
13232     ;;
13233   esac
13234   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13235   postinstall_cmds='chmod 555 $lib'
13236   ;;
13237
13238 interix[3-9]*)
13239   version_type=linux
13240   need_lib_prefix=no
13241   need_version=no
13242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13243   soname_spec='${libname}${release}${shared_ext}$major'
13244   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   shlibpath_overrides_runpath=no
13247   hardcode_into_libs=yes
13248   ;;
13249
13250 irix5* | irix6* | nonstopux*)
13251   case $host_os in
13252     nonstopux*) version_type=nonstopux ;;
13253     *)
13254         if test "$lt_cv_prog_gnu_ld" = yes; then
13255                 version_type=linux
13256         else
13257                 version_type=irix
13258         fi ;;
13259   esac
13260   need_lib_prefix=no
13261   need_version=no
13262   soname_spec='${libname}${release}${shared_ext}$major'
13263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13264   case $host_os in
13265   irix5* | nonstopux*)
13266     libsuff= shlibsuff=
13267     ;;
13268   *)
13269     case $LD in # libtool.m4 will add one of these switches to LD
13270     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13271       libsuff= shlibsuff= libmagic=32-bit;;
13272     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13273       libsuff=32 shlibsuff=N32 libmagic=N32;;
13274     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13275       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13276     *) libsuff= shlibsuff= libmagic=never-match;;
13277     esac
13278     ;;
13279   esac
13280   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13281   shlibpath_overrides_runpath=no
13282   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13283   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13284   hardcode_into_libs=yes
13285   ;;
13286
13287 # No shared lib support for Linux oldld, aout, or coff.
13288 linux*oldld* | linux*aout* | linux*coff*)
13289   dynamic_linker=no
13290   ;;
13291
13292 # This must be Linux ELF.
13293 linux* | k*bsd*-gnu)
13294   version_type=linux
13295   need_lib_prefix=no
13296   need_version=no
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298   soname_spec='${libname}${release}${shared_ext}$major'
13299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13300   shlibpath_var=LD_LIBRARY_PATH
13301   shlibpath_overrides_runpath=no
13302   # This implies no fast_install, which is unacceptable.
13303   # Some rework will be needed to allow for fast_install
13304   # before this can be enabled.
13305   hardcode_into_libs=yes
13306   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13307   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13308
13309   # Append ld.so.conf contents to the search path
13310   if test -f /etc/ld.so.conf; then
13311     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' ' '`
13312     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13313   fi
13314
13315   # We used to test for /lib/ld.so.1 and disable shared libraries on
13316   # powerpc, because MkLinux only supported shared libraries with the
13317   # GNU dynamic linker.  Since this was broken with cross compilers,
13318   # most powerpc-linux boxes support dynamic linking these days and
13319   # people can always --disable-shared, the test was removed, and we
13320   # assume the GNU/Linux dynamic linker is in use.
13321   dynamic_linker='GNU/Linux ld.so'
13322   ;;
13323
13324 netbsd*)
13325   version_type=sunos
13326   need_lib_prefix=no
13327   need_version=no
13328   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13330     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13331     dynamic_linker='NetBSD (a.out) ld.so'
13332   else
13333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334     soname_spec='${libname}${release}${shared_ext}$major'
13335     dynamic_linker='NetBSD ld.elf_so'
13336   fi
13337   shlibpath_var=LD_LIBRARY_PATH
13338   shlibpath_overrides_runpath=yes
13339   hardcode_into_libs=yes
13340   ;;
13341
13342 newsos6)
13343   version_type=linux
13344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13345   shlibpath_var=LD_LIBRARY_PATH
13346   shlibpath_overrides_runpath=yes
13347   ;;
13348
13349 nto-qnx*)
13350   version_type=linux
13351   need_lib_prefix=no
13352   need_version=no
13353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354   soname_spec='${libname}${release}${shared_ext}$major'
13355   shlibpath_var=LD_LIBRARY_PATH
13356   shlibpath_overrides_runpath=yes
13357   ;;
13358
13359 openbsd*)
13360   version_type=sunos
13361   sys_lib_dlsearch_path_spec="/usr/lib"
13362   need_lib_prefix=no
13363   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13364   case $host_os in
13365     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13366     *)                         need_version=no  ;;
13367   esac
13368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13369   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13370   shlibpath_var=LD_LIBRARY_PATH
13371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13372     case $host_os in
13373       openbsd2.[89] | openbsd2.[89].*)
13374         shlibpath_overrides_runpath=no
13375         ;;
13376       *)
13377         shlibpath_overrides_runpath=yes
13378         ;;
13379       esac
13380   else
13381     shlibpath_overrides_runpath=yes
13382   fi
13383   ;;
13384
13385 os2*)
13386   libname_spec='$name'
13387   shrext_cmds=".dll"
13388   need_lib_prefix=no
13389   library_names_spec='$libname${shared_ext} $libname.a'
13390   dynamic_linker='OS/2 ld.exe'
13391   shlibpath_var=LIBPATH
13392   ;;
13393
13394 osf3* | osf4* | osf5*)
13395   version_type=osf
13396   need_lib_prefix=no
13397   need_version=no
13398   soname_spec='${libname}${release}${shared_ext}$major'
13399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13400   shlibpath_var=LD_LIBRARY_PATH
13401   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13402   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13403   ;;
13404
13405 rdos*)
13406   dynamic_linker=no
13407   ;;
13408
13409 solaris*)
13410   version_type=linux
13411   need_lib_prefix=no
13412   need_version=no
13413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414   soname_spec='${libname}${release}${shared_ext}$major'
13415   shlibpath_var=LD_LIBRARY_PATH
13416   shlibpath_overrides_runpath=yes
13417   hardcode_into_libs=yes
13418   # ldd complains unless libraries are executable
13419   postinstall_cmds='chmod +x $lib'
13420   ;;
13421
13422 sunos4*)
13423   version_type=sunos
13424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13425   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13426   shlibpath_var=LD_LIBRARY_PATH
13427   shlibpath_overrides_runpath=yes
13428   if test "$with_gnu_ld" = yes; then
13429     need_lib_prefix=no
13430   fi
13431   need_version=yes
13432   ;;
13433
13434 sysv4 | sysv4.3*)
13435   version_type=linux
13436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437   soname_spec='${libname}${release}${shared_ext}$major'
13438   shlibpath_var=LD_LIBRARY_PATH
13439   case $host_vendor in
13440     sni)
13441       shlibpath_overrides_runpath=no
13442       need_lib_prefix=no
13443       export_dynamic_flag_spec='${wl}-Blargedynsym'
13444       runpath_var=LD_RUN_PATH
13445       ;;
13446     siemens)
13447       need_lib_prefix=no
13448       ;;
13449     motorola)
13450       need_lib_prefix=no
13451       need_version=no
13452       shlibpath_overrides_runpath=no
13453       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13454       ;;
13455   esac
13456   ;;
13457
13458 sysv4*MP*)
13459   if test -d /usr/nec ;then
13460     version_type=linux
13461     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13462     soname_spec='$libname${shared_ext}.$major'
13463     shlibpath_var=LD_LIBRARY_PATH
13464   fi
13465   ;;
13466
13467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13468   version_type=freebsd-elf
13469   need_lib_prefix=no
13470   need_version=no
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13472   soname_spec='${libname}${release}${shared_ext}$major'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   hardcode_into_libs=yes
13475   if test "$with_gnu_ld" = yes; then
13476     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13477     shlibpath_overrides_runpath=no
13478   else
13479     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13480     shlibpath_overrides_runpath=yes
13481     case $host_os in
13482       sco3.2v5*)
13483         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13484         ;;
13485     esac
13486   fi
13487   sys_lib_dlsearch_path_spec='/usr/lib'
13488   ;;
13489
13490 uts4*)
13491   version_type=linux
13492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493   soname_spec='${libname}${release}${shared_ext}$major'
13494   shlibpath_var=LD_LIBRARY_PATH
13495   ;;
13496
13497 *)
13498   dynamic_linker=no
13499   ;;
13500 esac
13501 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13502 echo "${ECHO_T}$dynamic_linker" >&6; }
13503 test "$dynamic_linker" = no && can_build_shared=no
13504
13505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13506 if test "$GCC" = yes; then
13507   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13508 fi
13509
13510 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13511 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13512 hardcode_action_CXX=
13513 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13514    test -n "$runpath_var_CXX" || \
13515    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13516
13517   # We can hardcode non-existant directories.
13518   if test "$hardcode_direct_CXX" != no &&
13519      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13520      # have to relink, otherwise we might link with an installed library
13521      # when we should be linking with a yet-to-be-installed one
13522      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13523      test "$hardcode_minus_L_CXX" != no; then
13524     # Linking always hardcodes the temporary library directory.
13525     hardcode_action_CXX=relink
13526   else
13527     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13528     hardcode_action_CXX=immediate
13529   fi
13530 else
13531   # We cannot hardcode anything, or else we can only hardcode existing
13532   # directories.
13533   hardcode_action_CXX=unsupported
13534 fi
13535 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13536 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13537
13538 if test "$hardcode_action_CXX" = relink; then
13539   # Fast installation is not supported
13540   enable_fast_install=no
13541 elif test "$shlibpath_overrides_runpath" = yes ||
13542      test "$enable_shared" = no; then
13543   # Fast installation is not necessary
13544   enable_fast_install=needless
13545 fi
13546
13547
13548 # The else clause should only fire when bootstrapping the
13549 # libtool distribution, otherwise you forgot to ship ltmain.sh
13550 # with your package, and you will get complaints that there are
13551 # no rules to generate ltmain.sh.
13552 if test -f "$ltmain"; then
13553   # See if we are running on zsh, and set the options which allow our commands through
13554   # without removal of \ escapes.
13555   if test -n "${ZSH_VERSION+set}" ; then
13556     setopt NO_GLOB_SUBST
13557   fi
13558   # Now quote all the things that may contain metacharacters while being
13559   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13560   # variables and quote the copies for generation of the libtool script.
13561   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13562     SED SHELL STRIP \
13563     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13564     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13565     deplibs_check_method reload_flag reload_cmds need_locks \
13566     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13567     lt_cv_sys_global_symbol_to_c_name_address \
13568     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13569     old_postinstall_cmds old_postuninstall_cmds \
13570     compiler_CXX \
13571     CC_CXX \
13572     LD_CXX \
13573     lt_prog_compiler_wl_CXX \
13574     lt_prog_compiler_pic_CXX \
13575     lt_prog_compiler_static_CXX \
13576     lt_prog_compiler_no_builtin_flag_CXX \
13577     export_dynamic_flag_spec_CXX \
13578     thread_safe_flag_spec_CXX \
13579     whole_archive_flag_spec_CXX \
13580     enable_shared_with_static_runtimes_CXX \
13581     old_archive_cmds_CXX \
13582     old_archive_from_new_cmds_CXX \
13583     predep_objects_CXX \
13584     postdep_objects_CXX \
13585     predeps_CXX \
13586     postdeps_CXX \
13587     compiler_lib_search_path_CXX \
13588     archive_cmds_CXX \
13589     archive_expsym_cmds_CXX \
13590     postinstall_cmds_CXX \
13591     postuninstall_cmds_CXX \
13592     old_archive_from_expsyms_cmds_CXX \
13593     allow_undefined_flag_CXX \
13594     no_undefined_flag_CXX \
13595     export_symbols_cmds_CXX \
13596     hardcode_libdir_flag_spec_CXX \
13597     hardcode_libdir_flag_spec_ld_CXX \
13598     hardcode_libdir_separator_CXX \
13599     hardcode_automatic_CXX \
13600     module_cmds_CXX \
13601     module_expsym_cmds_CXX \
13602     lt_cv_prog_compiler_c_o_CXX \
13603     fix_srcfile_path_CXX \
13604     exclude_expsyms_CXX \
13605     include_expsyms_CXX; do
13606
13607     case $var in
13608     old_archive_cmds_CXX | \
13609     old_archive_from_new_cmds_CXX | \
13610     archive_cmds_CXX | \
13611     archive_expsym_cmds_CXX | \
13612     module_cmds_CXX | \
13613     module_expsym_cmds_CXX | \
13614     old_archive_from_expsyms_cmds_CXX | \
13615     export_symbols_cmds_CXX | \
13616     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13617     postinstall_cmds | postuninstall_cmds | \
13618     old_postinstall_cmds | old_postuninstall_cmds | \
13619     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13620       # Double-quote double-evaled strings.
13621       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13622       ;;
13623     *)
13624       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13625       ;;
13626     esac
13627   done
13628
13629   case $lt_echo in
13630   *'\$0 --fallback-echo"')
13631     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13632     ;;
13633   esac
13634
13635 cfgfile="$ofile"
13636
13637   cat <<__EOF__ >> "$cfgfile"
13638 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13639
13640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13641
13642 # Shell to use when invoking shell scripts.
13643 SHELL=$lt_SHELL
13644
13645 # Whether or not to build shared libraries.
13646 build_libtool_libs=$enable_shared
13647
13648 # Whether or not to build static libraries.
13649 build_old_libs=$enable_static
13650
13651 # Whether or not to add -lc for building shared libraries.
13652 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13653
13654 # Whether or not to disallow shared libs when runtime libs are static
13655 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13656
13657 # Whether or not to optimize for fast installation.
13658 fast_install=$enable_fast_install
13659
13660 # The host system.
13661 host_alias=$host_alias
13662 host=$host
13663 host_os=$host_os
13664
13665 # The build system.
13666 build_alias=$build_alias
13667 build=$build
13668 build_os=$build_os
13669
13670 # An echo program that does not interpret backslashes.
13671 echo=$lt_echo
13672
13673 # The archiver.
13674 AR=$lt_AR
13675 AR_FLAGS=$lt_AR_FLAGS
13676
13677 # A C compiler.
13678 LTCC=$lt_LTCC
13679
13680 # LTCC compiler flags.
13681 LTCFLAGS=$lt_LTCFLAGS
13682
13683 # A language-specific compiler.
13684 CC=$lt_compiler_CXX
13685
13686 # Is the compiler the GNU C compiler?
13687 with_gcc=$GCC_CXX
13688
13689 # An ERE matcher.
13690 EGREP=$lt_EGREP
13691
13692 # The linker used to build libraries.
13693 LD=$lt_LD_CXX
13694
13695 # Whether we need hard or soft links.
13696 LN_S=$lt_LN_S
13697
13698 # A BSD-compatible nm program.
13699 NM=$lt_NM
13700
13701 # A symbol stripping program
13702 STRIP=$lt_STRIP
13703
13704 # Used to examine libraries when file_magic_cmd begins "file"
13705 MAGIC_CMD=$MAGIC_CMD
13706
13707 # Used on cygwin: DLL creation program.
13708 DLLTOOL="$DLLTOOL"
13709
13710 # Used on cygwin: object dumper.
13711 OBJDUMP="$OBJDUMP"
13712
13713 # Used on cygwin: assembler.
13714 AS="$AS"
13715
13716 # The name of the directory that contains temporary libtool files.
13717 objdir=$objdir
13718
13719 # How to create reloadable object files.
13720 reload_flag=$lt_reload_flag
13721 reload_cmds=$lt_reload_cmds
13722
13723 # How to pass a linker flag through the compiler.
13724 wl=$lt_lt_prog_compiler_wl_CXX
13725
13726 # Object file suffix (normally "o").
13727 objext="$ac_objext"
13728
13729 # Old archive suffix (normally "a").
13730 libext="$libext"
13731
13732 # Shared library suffix (normally ".so").
13733 shrext_cmds='$shrext_cmds'
13734
13735 # Executable file suffix (normally "").
13736 exeext="$exeext"
13737
13738 # Additional compiler flags for building library objects.
13739 pic_flag=$lt_lt_prog_compiler_pic_CXX
13740 pic_mode=$pic_mode
13741
13742 # What is the maximum length of a command?
13743 max_cmd_len=$lt_cv_sys_max_cmd_len
13744
13745 # Does compiler simultaneously support -c and -o options?
13746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13747
13748 # Must we lock files when doing compilation?
13749 need_locks=$lt_need_locks
13750
13751 # Do we need the lib prefix for modules?
13752 need_lib_prefix=$need_lib_prefix
13753
13754 # Do we need a version for libraries?
13755 need_version=$need_version
13756
13757 # Whether dlopen is supported.
13758 dlopen_support=$enable_dlopen
13759
13760 # Whether dlopen of programs is supported.
13761 dlopen_self=$enable_dlopen_self
13762
13763 # Whether dlopen of statically linked programs is supported.
13764 dlopen_self_static=$enable_dlopen_self_static
13765
13766 # Compiler flag to prevent dynamic linking.
13767 link_static_flag=$lt_lt_prog_compiler_static_CXX
13768
13769 # Compiler flag to turn off builtin functions.
13770 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13771
13772 # Compiler flag to allow reflexive dlopens.
13773 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13774
13775 # Compiler flag to generate shared objects directly from archives.
13776 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13777
13778 # Compiler flag to generate thread-safe objects.
13779 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13780
13781 # Library versioning type.
13782 version_type=$version_type
13783
13784 # Format of library name prefix.
13785 libname_spec=$lt_libname_spec
13786
13787 # List of archive names.  First name is the real one, the rest are links.
13788 # The last name is the one that the linker finds with -lNAME.
13789 library_names_spec=$lt_library_names_spec
13790
13791 # The coded name of the library, if different from the real name.
13792 soname_spec=$lt_soname_spec
13793
13794 # Commands used to build and install an old-style archive.
13795 RANLIB=$lt_RANLIB
13796 old_archive_cmds=$lt_old_archive_cmds_CXX
13797 old_postinstall_cmds=$lt_old_postinstall_cmds
13798 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13799
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13802
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13805
13806 # Commands used to build and install a shared archive.
13807 archive_cmds=$lt_archive_cmds_CXX
13808 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13809 postinstall_cmds=$lt_postinstall_cmds
13810 postuninstall_cmds=$lt_postuninstall_cmds
13811
13812 # Commands used to build a loadable module (assumed same as above if empty)
13813 module_cmds=$lt_module_cmds_CXX
13814 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13815
13816 # Commands to strip libraries.
13817 old_striplib=$lt_old_striplib
13818 striplib=$lt_striplib
13819
13820 # Dependencies to place before the objects being linked to create a
13821 # shared library.
13822 predep_objects=$lt_predep_objects_CXX
13823
13824 # Dependencies to place after the objects being linked to create a
13825 # shared library.
13826 postdep_objects=$lt_postdep_objects_CXX
13827
13828 # Dependencies to place before the objects being linked to create a
13829 # shared library.
13830 predeps=$lt_predeps_CXX
13831
13832 # Dependencies to place after the objects being linked to create a
13833 # shared library.
13834 postdeps=$lt_postdeps_CXX
13835
13836 # The library search path used internally by the compiler when linking
13837 # a shared library.
13838 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13839
13840 # Method to check whether dependent libraries are shared objects.
13841 deplibs_check_method=$lt_deplibs_check_method
13842
13843 # Command to use when deplibs_check_method == file_magic.
13844 file_magic_cmd=$lt_file_magic_cmd
13845
13846 # Flag that allows shared libraries with undefined symbols to be built.
13847 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13848
13849 # Flag that forces no undefined symbols.
13850 no_undefined_flag=$lt_no_undefined_flag_CXX
13851
13852 # Commands used to finish a libtool library installation in a directory.
13853 finish_cmds=$lt_finish_cmds
13854
13855 # Same as above, but a single script fragment to be evaled but not shown.
13856 finish_eval=$lt_finish_eval
13857
13858 # Take the output of nm and produce a listing of raw symbols and C names.
13859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13860
13861 # Transform the output of nm in a proper C declaration
13862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13863
13864 # Transform the output of nm in a C name address pair
13865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13866
13867 # This is the shared library runtime path variable.
13868 runpath_var=$runpath_var
13869
13870 # This is the shared library path variable.
13871 shlibpath_var=$shlibpath_var
13872
13873 # Is shlibpath searched before the hard-coded library search path?
13874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13875
13876 # How to hardcode a shared library path into an executable.
13877 hardcode_action=$hardcode_action_CXX
13878
13879 # Whether we should hardcode library paths into libraries.
13880 hardcode_into_libs=$hardcode_into_libs
13881
13882 # Flag to hardcode \$libdir into a binary during linking.
13883 # This must work even if \$libdir does not exist.
13884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13885
13886 # If ld is used when linking, flag to hardcode \$libdir into
13887 # a binary during linking. This must work even if \$libdir does
13888 # not exist.
13889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13890
13891 # Whether we need a single -rpath flag with a separated argument.
13892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13893
13894 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13895 # resulting binary.
13896 hardcode_direct=$hardcode_direct_CXX
13897
13898 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13899 # resulting binary.
13900 hardcode_minus_L=$hardcode_minus_L_CXX
13901
13902 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13903 # the resulting binary.
13904 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13905
13906 # Set to yes if building a shared library automatically hardcodes DIR into the library
13907 # and all subsequent libraries and executables linked against it.
13908 hardcode_automatic=$hardcode_automatic_CXX
13909
13910 # Variables whose values should be saved in libtool wrapper scripts and
13911 # restored at relink time.
13912 variables_saved_for_relink="$variables_saved_for_relink"
13913
13914 # Whether libtool must link a program against all its dependency libraries.
13915 link_all_deplibs=$link_all_deplibs_CXX
13916
13917 # Compile-time system search path for libraries
13918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13919
13920 # Run-time system search path for libraries
13921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13922
13923 # Fix the shell variable \$srcfile for the compiler.
13924 fix_srcfile_path=$lt_fix_srcfile_path
13925
13926 # Set to yes if exported symbols are required.
13927 always_export_symbols=$always_export_symbols_CXX
13928
13929 # The commands to list exported symbols.
13930 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13931
13932 # The commands to extract the exported symbol list from a shared archive.
13933 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13934
13935 # Symbols that should not be listed in the preloaded symbols.
13936 exclude_expsyms=$lt_exclude_expsyms_CXX
13937
13938 # Symbols that must always be exported.
13939 include_expsyms=$lt_include_expsyms_CXX
13940
13941 # ### END LIBTOOL TAG CONFIG: $tagname
13942
13943 __EOF__
13944
13945
13946 else
13947   # If there is no Makefile yet, we rely on a make rule to execute
13948   # `config.status --recheck' to rerun these tests and create the
13949   # libtool script then.
13950   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13951   if test -f "$ltmain_in"; then
13952     test -f Makefile && make "$ltmain"
13953   fi
13954 fi
13955
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963 CC=$lt_save_CC
13964 LDCXX=$LD
13965 LD=$lt_save_LD
13966 GCC=$lt_save_GCC
13967 with_gnu_ldcxx=$with_gnu_ld
13968 with_gnu_ld=$lt_save_with_gnu_ld
13969 lt_cv_path_LDCXX=$lt_cv_path_LD
13970 lt_cv_path_LD=$lt_save_path_LD
13971 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13972 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13973
13974         else
13975           tagname=""
13976         fi
13977         ;;
13978
13979       F77)
13980         if test -n "$F77" && test "X$F77" != "Xno"; then
13981
13982 ac_ext=f
13983 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13984 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13986
13987
13988 archive_cmds_need_lc_F77=no
13989 allow_undefined_flag_F77=
13990 always_export_symbols_F77=no
13991 archive_expsym_cmds_F77=
13992 export_dynamic_flag_spec_F77=
13993 hardcode_direct_F77=no
13994 hardcode_libdir_flag_spec_F77=
13995 hardcode_libdir_flag_spec_ld_F77=
13996 hardcode_libdir_separator_F77=
13997 hardcode_minus_L_F77=no
13998 hardcode_automatic_F77=no
13999 module_cmds_F77=
14000 module_expsym_cmds_F77=
14001 link_all_deplibs_F77=unknown
14002 old_archive_cmds_F77=$old_archive_cmds
14003 no_undefined_flag_F77=
14004 whole_archive_flag_spec_F77=
14005 enable_shared_with_static_runtimes_F77=no
14006
14007 # Source file extension for f77 test sources.
14008 ac_ext=f
14009
14010 # Object file extension for compiled f77 test sources.
14011 objext=o
14012 objext_F77=$objext
14013
14014 # Code to be used in simple compile tests
14015 lt_simple_compile_test_code="\
14016       subroutine t
14017       return
14018       end
14019 "
14020
14021 # Code to be used in simple link tests
14022 lt_simple_link_test_code="\
14023       program t
14024       end
14025 "
14026
14027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14028
14029 # If no C compiler was specified, use CC.
14030 LTCC=${LTCC-"$CC"}
14031
14032 # If no C compiler flags were specified, use CFLAGS.
14033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14034
14035 # Allow CC to be a program name with arguments.
14036 compiler=$CC
14037
14038
14039 # save warnings/boilerplate of simple test code
14040 ac_outfile=conftest.$ac_objext
14041 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14043 _lt_compiler_boilerplate=`cat conftest.err`
14044 $rm conftest*
14045
14046 ac_outfile=conftest.$ac_objext
14047 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14049 _lt_linker_boilerplate=`cat conftest.err`
14050 $rm conftest*
14051
14052
14053 # Allow CC to be a program name with arguments.
14054 lt_save_CC="$CC"
14055 CC=${F77-"f77"}
14056 compiler=$CC
14057 compiler_F77=$CC
14058 for cc_temp in $compiler""; do
14059   case $cc_temp in
14060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14062     \-*) ;;
14063     *) break;;
14064   esac
14065 done
14066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14067
14068
14069 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14070 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14071 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14072 echo "${ECHO_T}$can_build_shared" >&6; }
14073
14074 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14075 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14076 test "$can_build_shared" = "no" && enable_shared=no
14077
14078 # On AIX, shared libraries and static libraries use the same namespace, and
14079 # are all built from PIC.
14080 case $host_os in
14081 aix3*)
14082   test "$enable_shared" = yes && enable_static=no
14083   if test -n "$RANLIB"; then
14084     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14085     postinstall_cmds='$RANLIB $lib'
14086   fi
14087   ;;
14088 aix4* | aix5*)
14089   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14090     test "$enable_shared" = yes && enable_static=no
14091   fi
14092   ;;
14093 esac
14094 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14095 echo "${ECHO_T}$enable_shared" >&6; }
14096
14097 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14099 # Make sure either enable_shared or enable_static is yes.
14100 test "$enable_shared" = yes || enable_static=yes
14101 { echo "$as_me:$LINENO: result: $enable_static" >&5
14102 echo "${ECHO_T}$enable_static" >&6; }
14103
14104 GCC_F77="$G77"
14105 LD_F77="$LD"
14106
14107 lt_prog_compiler_wl_F77=
14108 lt_prog_compiler_pic_F77=
14109 lt_prog_compiler_static_F77=
14110
14111 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14112 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14113
14114   if test "$GCC" = yes; then
14115     lt_prog_compiler_wl_F77='-Wl,'
14116     lt_prog_compiler_static_F77='-static'
14117
14118     case $host_os in
14119       aix*)
14120       # All AIX code is PIC.
14121       if test "$host_cpu" = ia64; then
14122         # AIX 5 now supports IA64 processor
14123         lt_prog_compiler_static_F77='-Bstatic'
14124       fi
14125       ;;
14126
14127     amigaos*)
14128       # FIXME: we need at least 68020 code to build shared libraries, but
14129       # adding the `-m68020' flag to GCC prevents building anything better,
14130       # like `-m68040'.
14131       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14132       ;;
14133
14134     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14135       # PIC is the default for these OSes.
14136       ;;
14137
14138     mingw* | cygwin* | pw32* | os2*)
14139       # This hack is so that the source file can tell whether it is being
14140       # built for inclusion in a dll (and should export symbols for example).
14141       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14142       # (--disable-auto-import) libraries
14143       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14144       ;;
14145
14146     darwin* | rhapsody*)
14147       # PIC is the default on this platform
14148       # Common symbols not allowed in MH_DYLIB files
14149       lt_prog_compiler_pic_F77='-fno-common'
14150       ;;
14151
14152     interix[3-9]*)
14153       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14154       # Instead, we relocate shared libraries at runtime.
14155       ;;
14156
14157     msdosdjgpp*)
14158       # Just because we use GCC doesn't mean we suddenly get shared libraries
14159       # on systems that don't support them.
14160       lt_prog_compiler_can_build_shared_F77=no
14161       enable_shared=no
14162       ;;
14163
14164     sysv4*MP*)
14165       if test -d /usr/nec; then
14166         lt_prog_compiler_pic_F77=-Kconform_pic
14167       fi
14168       ;;
14169
14170     hpux*)
14171       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14172       # not for PA HP-UX.
14173       case $host_cpu in
14174       hppa*64*|ia64*)
14175         # +Z the default
14176         ;;
14177       *)
14178         lt_prog_compiler_pic_F77='-fPIC'
14179         ;;
14180       esac
14181       ;;
14182
14183     *)
14184       lt_prog_compiler_pic_F77='-fPIC'
14185       ;;
14186     esac
14187   else
14188     # PORTME Check for flag to pass linker flags through the system compiler.
14189     case $host_os in
14190     aix*)
14191       lt_prog_compiler_wl_F77='-Wl,'
14192       if test "$host_cpu" = ia64; then
14193         # AIX 5 now supports IA64 processor
14194         lt_prog_compiler_static_F77='-Bstatic'
14195       else
14196         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14197       fi
14198       ;;
14199       darwin*)
14200         # PIC is the default on this platform
14201         # Common symbols not allowed in MH_DYLIB files
14202        case $cc_basename in
14203          xlc*)
14204          lt_prog_compiler_pic_F77='-qnocommon'
14205          lt_prog_compiler_wl_F77='-Wl,'
14206          ;;
14207        esac
14208        ;;
14209
14210     mingw* | cygwin* | pw32* | os2*)
14211       # This hack is so that the source file can tell whether it is being
14212       # built for inclusion in a dll (and should export symbols for example).
14213       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14214       ;;
14215
14216     hpux9* | hpux10* | hpux11*)
14217       lt_prog_compiler_wl_F77='-Wl,'
14218       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14219       # not for PA HP-UX.
14220       case $host_cpu in
14221       hppa*64*|ia64*)
14222         # +Z the default
14223         ;;
14224       *)
14225         lt_prog_compiler_pic_F77='+Z'
14226         ;;
14227       esac
14228       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14229       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14230       ;;
14231
14232     irix5* | irix6* | nonstopux*)
14233       lt_prog_compiler_wl_F77='-Wl,'
14234       # PIC (with -KPIC) is the default.
14235       lt_prog_compiler_static_F77='-non_shared'
14236       ;;
14237
14238     newsos6)
14239       lt_prog_compiler_pic_F77='-KPIC'
14240       lt_prog_compiler_static_F77='-Bstatic'
14241       ;;
14242
14243     linux* | k*bsd*-gnu)
14244       case $cc_basename in
14245       icc* | ecc*)
14246         lt_prog_compiler_wl_F77='-Wl,'
14247         lt_prog_compiler_pic_F77='-KPIC'
14248         lt_prog_compiler_static_F77='-static'
14249         ;;
14250       pgcc* | pgf77* | pgf90* | pgf95*)
14251         # Portland Group compilers (*not* the Pentium gcc compiler,
14252         # which looks to be a dead project)
14253         lt_prog_compiler_wl_F77='-Wl,'
14254         lt_prog_compiler_pic_F77='-fpic'
14255         lt_prog_compiler_static_F77='-Bstatic'
14256         ;;
14257       ccc*)
14258         lt_prog_compiler_wl_F77='-Wl,'
14259         # All Alpha code is PIC.
14260         lt_prog_compiler_static_F77='-non_shared'
14261         ;;
14262       *)
14263         case `$CC -V 2>&1 | sed 5q` in
14264         *Sun\ C*)
14265           # Sun C 5.9
14266           lt_prog_compiler_pic_F77='-KPIC'
14267           lt_prog_compiler_static_F77='-Bstatic'
14268           lt_prog_compiler_wl_F77='-Wl,'
14269           ;;
14270         *Sun\ F*)
14271           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14272           lt_prog_compiler_pic_F77='-KPIC'
14273           lt_prog_compiler_static_F77='-Bstatic'
14274           lt_prog_compiler_wl_F77=''
14275           ;;
14276         esac
14277         ;;
14278       esac
14279       ;;
14280
14281     osf3* | osf4* | osf5*)
14282       lt_prog_compiler_wl_F77='-Wl,'
14283       # All OSF/1 code is PIC.
14284       lt_prog_compiler_static_F77='-non_shared'
14285       ;;
14286
14287     rdos*)
14288       lt_prog_compiler_static_F77='-non_shared'
14289       ;;
14290
14291     solaris*)
14292       lt_prog_compiler_pic_F77='-KPIC'
14293       lt_prog_compiler_static_F77='-Bstatic'
14294       case $cc_basename in
14295       f77* | f90* | f95*)
14296         lt_prog_compiler_wl_F77='-Qoption ld ';;
14297       *)
14298         lt_prog_compiler_wl_F77='-Wl,';;
14299       esac
14300       ;;
14301
14302     sunos4*)
14303       lt_prog_compiler_wl_F77='-Qoption ld '
14304       lt_prog_compiler_pic_F77='-PIC'
14305       lt_prog_compiler_static_F77='-Bstatic'
14306       ;;
14307
14308     sysv4 | sysv4.2uw2* | sysv4.3*)
14309       lt_prog_compiler_wl_F77='-Wl,'
14310       lt_prog_compiler_pic_F77='-KPIC'
14311       lt_prog_compiler_static_F77='-Bstatic'
14312       ;;
14313
14314     sysv4*MP*)
14315       if test -d /usr/nec ;then
14316         lt_prog_compiler_pic_F77='-Kconform_pic'
14317         lt_prog_compiler_static_F77='-Bstatic'
14318       fi
14319       ;;
14320
14321     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14322       lt_prog_compiler_wl_F77='-Wl,'
14323       lt_prog_compiler_pic_F77='-KPIC'
14324       lt_prog_compiler_static_F77='-Bstatic'
14325       ;;
14326
14327     unicos*)
14328       lt_prog_compiler_wl_F77='-Wl,'
14329       lt_prog_compiler_can_build_shared_F77=no
14330       ;;
14331
14332     uts4*)
14333       lt_prog_compiler_pic_F77='-pic'
14334       lt_prog_compiler_static_F77='-Bstatic'
14335       ;;
14336
14337     *)
14338       lt_prog_compiler_can_build_shared_F77=no
14339       ;;
14340     esac
14341   fi
14342
14343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14344 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14345
14346 #
14347 # Check to make sure the PIC flag actually works.
14348 #
14349 if test -n "$lt_prog_compiler_pic_F77"; then
14350
14351 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14352 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14353 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14354   echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356   lt_prog_compiler_pic_works_F77=no
14357   ac_outfile=conftest.$ac_objext
14358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14359    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14360    # Insert the option either (1) after the last *FLAGS variable, or
14361    # (2) before a word containing "conftest.", or (3) at the end.
14362    # Note that $ac_compile itself does not contain backslashes and begins
14363    # with a dollar sign (not a hyphen), so the echo should work correctly.
14364    # The option is referenced via a variable to avoid confusing sed.
14365    lt_compile=`echo "$ac_compile" | $SED \
14366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368    -e 's:$: $lt_compiler_flag:'`
14369    (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370    (eval "$lt_compile" 2>conftest.err)
14371    ac_status=$?
14372    cat conftest.err >&5
14373    echo "$as_me:14373: \$? = $ac_status" >&5
14374    if (exit $ac_status) && test -s "$ac_outfile"; then
14375      # The compiler can only warn and ignore the option if not recognized
14376      # So say no if there are warnings other than the usual output.
14377      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14380        lt_prog_compiler_pic_works_F77=yes
14381      fi
14382    fi
14383    $rm conftest*
14384
14385 fi
14386 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14387 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14388
14389 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14390     case $lt_prog_compiler_pic_F77 in
14391      "" | " "*) ;;
14392      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14393      esac
14394 else
14395     lt_prog_compiler_pic_F77=
14396      lt_prog_compiler_can_build_shared_F77=no
14397 fi
14398
14399 fi
14400 case $host_os in
14401   # For platforms which do not support PIC, -DPIC is meaningless:
14402   *djgpp*)
14403     lt_prog_compiler_pic_F77=
14404     ;;
14405   *)
14406     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14407     ;;
14408 esac
14409
14410 #
14411 # Check to make sure the static flag actually works.
14412 #
14413 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14414 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14416 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   lt_prog_compiler_static_works_F77=no
14420    save_LDFLAGS="$LDFLAGS"
14421    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14423    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424      # The linker can only warn and ignore the option if not recognized
14425      # So say no if there are warnings
14426      if test -s conftest.err; then
14427        # Append any errors to the config.log.
14428        cat conftest.err 1>&5
14429        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14430        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431        if diff conftest.exp conftest.er2 >/dev/null; then
14432          lt_prog_compiler_static_works_F77=yes
14433        fi
14434      else
14435        lt_prog_compiler_static_works_F77=yes
14436      fi
14437    fi
14438    $rm conftest*
14439    LDFLAGS="$save_LDFLAGS"
14440
14441 fi
14442 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14443 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14444
14445 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14446     :
14447 else
14448     lt_prog_compiler_static_F77=
14449 fi
14450
14451
14452 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14453 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14454 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457   lt_cv_prog_compiler_c_o_F77=no
14458    $rm -r conftest 2>/dev/null
14459    mkdir conftest
14460    cd conftest
14461    mkdir out
14462    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14463
14464    lt_compiler_flag="-o out/conftest2.$ac_objext"
14465    # Insert the option either (1) after the last *FLAGS variable, or
14466    # (2) before a word containing "conftest.", or (3) at the end.
14467    # Note that $ac_compile itself does not contain backslashes and begins
14468    # with a dollar sign (not a hyphen), so the echo should work correctly.
14469    lt_compile=`echo "$ac_compile" | $SED \
14470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472    -e 's:$: $lt_compiler_flag:'`
14473    (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
14474    (eval "$lt_compile" 2>out/conftest.err)
14475    ac_status=$?
14476    cat out/conftest.err >&5
14477    echo "$as_me:14477: \$? = $ac_status" >&5
14478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14479    then
14480      # The compiler can only warn and ignore the option if not recognized
14481      # So say no if there are warnings
14482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14485        lt_cv_prog_compiler_c_o_F77=yes
14486      fi
14487    fi
14488    chmod u+w . 2>&5
14489    $rm conftest*
14490    # SGI C++ compiler will create directory out/ii_files/ for
14491    # template instantiation
14492    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14493    $rm out/* && rmdir out
14494    cd ..
14495    rmdir conftest
14496    $rm conftest*
14497
14498 fi
14499 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14501
14502
14503 hard_links="nottested"
14504 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14505   # do not overwrite the value of need_locks provided by the user
14506   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14508   hard_links=yes
14509   $rm conftest*
14510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14511   touch conftest.a
14512   ln conftest.a conftest.b 2>&5 || hard_links=no
14513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14514   { echo "$as_me:$LINENO: result: $hard_links" >&5
14515 echo "${ECHO_T}$hard_links" >&6; }
14516   if test "$hard_links" = no; then
14517     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14519     need_locks=warn
14520   fi
14521 else
14522   need_locks=no
14523 fi
14524
14525 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14527
14528   runpath_var=
14529   allow_undefined_flag_F77=
14530   enable_shared_with_static_runtimes_F77=no
14531   archive_cmds_F77=
14532   archive_expsym_cmds_F77=
14533   old_archive_From_new_cmds_F77=
14534   old_archive_from_expsyms_cmds_F77=
14535   export_dynamic_flag_spec_F77=
14536   whole_archive_flag_spec_F77=
14537   thread_safe_flag_spec_F77=
14538   hardcode_libdir_flag_spec_F77=
14539   hardcode_libdir_flag_spec_ld_F77=
14540   hardcode_libdir_separator_F77=
14541   hardcode_direct_F77=no
14542   hardcode_minus_L_F77=no
14543   hardcode_shlibpath_var_F77=unsupported
14544   link_all_deplibs_F77=unknown
14545   hardcode_automatic_F77=no
14546   module_cmds_F77=
14547   module_expsym_cmds_F77=
14548   always_export_symbols_F77=no
14549   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550   # include_expsyms should be a list of space-separated symbols to be *always*
14551   # included in the symbol list
14552   include_expsyms_F77=
14553   # exclude_expsyms can be an extended regexp of symbols to exclude
14554   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14555   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14556   # as well as any symbol that contains `d'.
14557   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14558   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14559   # platforms (ab)use it in PIC code, but their linkers get confused if
14560   # the symbol is explicitly referenced.  Since portable code cannot
14561   # rely on this symbol name, it's probably fine to never include it in
14562   # preloaded symbol tables.
14563   extract_expsyms_cmds=
14564   # Just being paranoid about ensuring that cc_basename is set.
14565   for cc_temp in $compiler""; do
14566   case $cc_temp in
14567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14569     \-*) ;;
14570     *) break;;
14571   esac
14572 done
14573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14574
14575   case $host_os in
14576   cygwin* | mingw* | pw32*)
14577     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14578     # When not using gcc, we currently assume that we are using
14579     # Microsoft Visual C++.
14580     if test "$GCC" != yes; then
14581       with_gnu_ld=no
14582     fi
14583     ;;
14584   interix*)
14585     # we just hope/assume this is gcc and not c89 (= MSVC++)
14586     with_gnu_ld=yes
14587     ;;
14588   openbsd*)
14589     with_gnu_ld=no
14590     ;;
14591   esac
14592
14593   ld_shlibs_F77=yes
14594   if test "$with_gnu_ld" = yes; then
14595     # If archive_cmds runs LD, not CC, wlarc should be empty
14596     wlarc='${wl}'
14597
14598     # Set some defaults for GNU ld with shared library support. These
14599     # are reset later if shared libraries are not supported. Putting them
14600     # here allows them to be overridden if necessary.
14601     runpath_var=LD_RUN_PATH
14602     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14603     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14604     # ancient GNU ld didn't support --whole-archive et. al.
14605     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14606         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14607       else
14608         whole_archive_flag_spec_F77=
14609     fi
14610     supports_anon_versioning=no
14611     case `$LD -v 2>/dev/null` in
14612       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14613       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14614       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14615       *\ 2.11.*) ;; # other 2.11 versions
14616       *) supports_anon_versioning=yes ;;
14617     esac
14618
14619     # See if GNU ld supports shared libraries.
14620     case $host_os in
14621     aix3* | aix4* | aix5*)
14622       # On AIX/PPC, the GNU linker is very broken
14623       if test "$host_cpu" != ia64; then
14624         ld_shlibs_F77=no
14625         cat <<EOF 1>&2
14626
14627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14628 *** to be unable to reliably create shared libraries on AIX.
14629 *** Therefore, libtool is disabling shared libraries support.  If you
14630 *** really care for shared libraries, you may want to modify your PATH
14631 *** so that a non-GNU linker is found, and then restart.
14632
14633 EOF
14634       fi
14635       ;;
14636
14637     amigaos*)
14638       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)'
14639       hardcode_libdir_flag_spec_F77='-L$libdir'
14640       hardcode_minus_L_F77=yes
14641
14642       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14643       # that the semantics of dynamic libraries on AmigaOS, at least up
14644       # to version 4, is to share data among multiple programs linked
14645       # with the same dynamic library.  Since this doesn't match the
14646       # behavior of shared libraries on other platforms, we can't use
14647       # them.
14648       ld_shlibs_F77=no
14649       ;;
14650
14651     beos*)
14652       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653         allow_undefined_flag_F77=unsupported
14654         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14655         # support --undefined.  This deserves some investigation.  FIXME
14656         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657       else
14658         ld_shlibs_F77=no
14659       fi
14660       ;;
14661
14662     cygwin* | mingw* | pw32*)
14663       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14664       # as there is no search path for DLLs.
14665       hardcode_libdir_flag_spec_F77='-L$libdir'
14666       allow_undefined_flag_F77=unsupported
14667       always_export_symbols_F77=no
14668       enable_shared_with_static_runtimes_F77=yes
14669       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14670
14671       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14672         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14673         # If the export-symbols file already is a .def file (1st line
14674         # is EXPORTS), use it as is; otherwise, prepend...
14675         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14676           cp $export_symbols $output_objdir/$soname.def;
14677         else
14678           echo EXPORTS > $output_objdir/$soname.def;
14679           cat $export_symbols >> $output_objdir/$soname.def;
14680         fi~
14681         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14682       else
14683         ld_shlibs_F77=no
14684       fi
14685       ;;
14686
14687     interix[3-9]*)
14688       hardcode_direct_F77=no
14689       hardcode_shlibpath_var_F77=no
14690       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14691       export_dynamic_flag_spec_F77='${wl}-E'
14692       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14693       # Instead, shared libraries are loaded at an image base (0x10000000 by
14694       # default) and relocated if they conflict, which is a slow very memory
14695       # consuming and fragmenting process.  To avoid this, we pick a random,
14696       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14697       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14698       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'
14699       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'
14700       ;;
14701
14702     gnu* | linux* | k*bsd*-gnu)
14703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14704         tmp_addflag=
14705         case $cc_basename,$host_cpu in
14706         pgcc*)                          # Portland Group C compiler
14707           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'
14708           tmp_addflag=' $pic_flag'
14709           ;;
14710         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14711           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'
14712           tmp_addflag=' $pic_flag -Mnomain' ;;
14713         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14714           tmp_addflag=' -i_dynamic' ;;
14715         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14716           tmp_addflag=' -i_dynamic -nofor_main' ;;
14717         ifc* | ifort*)                  # Intel Fortran compiler
14718           tmp_addflag=' -nofor_main' ;;
14719         esac
14720         case `$CC -V 2>&1 | sed 5q` in
14721         *Sun\ C*)                       # Sun C 5.9
14722           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'
14723           tmp_sharedflag='-G' ;;
14724         *Sun\ F*)                       # Sun Fortran 8.3
14725           tmp_sharedflag='-G' ;;
14726         *)
14727           tmp_sharedflag='-shared' ;;
14728         esac
14729         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14730
14731         if test $supports_anon_versioning = yes; then
14732           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14733   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14734   $echo "local: *; };" >> $output_objdir/$libname.ver~
14735           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14736         fi
14737       else
14738         ld_shlibs_F77=no
14739       fi
14740       ;;
14741
14742     netbsd*)
14743       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14744         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14745         wlarc=
14746       else
14747         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14749       fi
14750       ;;
14751
14752     solaris*)
14753       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14754         ld_shlibs_F77=no
14755         cat <<EOF 1>&2
14756
14757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14758 *** create shared libraries on Solaris systems.  Therefore, libtool
14759 *** is disabling shared libraries support.  We urge you to upgrade GNU
14760 *** binutils to release 2.9.1 or newer.  Another option is to modify
14761 *** your PATH or compiler configuration so that the native linker is
14762 *** used, and then restart.
14763
14764 EOF
14765       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14768       else
14769         ld_shlibs_F77=no
14770       fi
14771       ;;
14772
14773     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14774       case `$LD -v 2>&1` in
14775         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14776         ld_shlibs_F77=no
14777         cat <<_LT_EOF 1>&2
14778
14779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14780 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14781 *** is disabling shared libraries support.  We urge you to upgrade GNU
14782 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14783 *** your PATH or compiler configuration so that the native linker is
14784 *** used, and then restart.
14785
14786 _LT_EOF
14787         ;;
14788         *)
14789           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14791             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14792             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14793           else
14794             ld_shlibs_F77=no
14795           fi
14796         ;;
14797       esac
14798       ;;
14799
14800     sunos4*)
14801       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14802       wlarc=
14803       hardcode_direct_F77=yes
14804       hardcode_shlibpath_var_F77=no
14805       ;;
14806
14807     *)
14808       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14809         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14811       else
14812         ld_shlibs_F77=no
14813       fi
14814       ;;
14815     esac
14816
14817     if test "$ld_shlibs_F77" = no; then
14818       runpath_var=
14819       hardcode_libdir_flag_spec_F77=
14820       export_dynamic_flag_spec_F77=
14821       whole_archive_flag_spec_F77=
14822     fi
14823   else
14824     # PORTME fill in a description of your system's linker (not GNU ld)
14825     case $host_os in
14826     aix3*)
14827       allow_undefined_flag_F77=unsupported
14828       always_export_symbols_F77=yes
14829       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'
14830       # Note: this linker hardcodes the directories in LIBPATH if there
14831       # are no directories specified by -L.
14832       hardcode_minus_L_F77=yes
14833       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14834         # Neither direct hardcoding nor static linking is supported with a
14835         # broken collect2.
14836         hardcode_direct_F77=unsupported
14837       fi
14838       ;;
14839
14840     aix4* | aix5*)
14841       if test "$host_cpu" = ia64; then
14842         # On IA64, the linker does run time linking by default, so we don't
14843         # have to do anything special.
14844         aix_use_runtimelinking=no
14845         exp_sym_flag='-Bexport'
14846         no_entry_flag=""
14847       else
14848         # If we're using GNU nm, then we don't want the "-C" option.
14849         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14850         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14851           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'
14852         else
14853           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'
14854         fi
14855         aix_use_runtimelinking=no
14856
14857         # Test if we are trying to use run time linking or normal
14858         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14859         # need to do runtime linking.
14860         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14861           for ld_flag in $LDFLAGS; do
14862           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14863             aix_use_runtimelinking=yes
14864             break
14865           fi
14866           done
14867           ;;
14868         esac
14869
14870         exp_sym_flag='-bexport'
14871         no_entry_flag='-bnoentry'
14872       fi
14873
14874       # When large executables or shared objects are built, AIX ld can
14875       # have problems creating the table of contents.  If linking a library
14876       # or program results in "error TOC overflow" add -mminimal-toc to
14877       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14878       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14879
14880       archive_cmds_F77=''
14881       hardcode_direct_F77=yes
14882       hardcode_libdir_separator_F77=':'
14883       link_all_deplibs_F77=yes
14884
14885       if test "$GCC" = yes; then
14886         case $host_os in aix4.[012]|aix4.[012].*)
14887         # We only want to do this on AIX 4.2 and lower, the check
14888         # below for broken collect2 doesn't work under 4.3+
14889           collect2name=`${CC} -print-prog-name=collect2`
14890           if test -f "$collect2name" && \
14891            strings "$collect2name" | grep resolve_lib_name >/dev/null
14892           then
14893           # We have reworked collect2
14894           :
14895           else
14896           # We have old collect2
14897           hardcode_direct_F77=unsupported
14898           # It fails to find uninstalled libraries when the uninstalled
14899           # path is not listed in the libpath.  Setting hardcode_minus_L
14900           # to unsupported forces relinking
14901           hardcode_minus_L_F77=yes
14902           hardcode_libdir_flag_spec_F77='-L$libdir'
14903           hardcode_libdir_separator_F77=
14904           fi
14905           ;;
14906         esac
14907         shared_flag='-shared'
14908         if test "$aix_use_runtimelinking" = yes; then
14909           shared_flag="$shared_flag "'${wl}-G'
14910         fi
14911       else
14912         # not using gcc
14913         if test "$host_cpu" = ia64; then
14914         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14915         # chokes on -Wl,-G. The following line is correct:
14916           shared_flag='-G'
14917         else
14918           if test "$aix_use_runtimelinking" = yes; then
14919             shared_flag='${wl}-G'
14920           else
14921             shared_flag='${wl}-bM:SRE'
14922           fi
14923         fi
14924       fi
14925
14926       # It seems that -bexpall does not export symbols beginning with
14927       # underscore (_), so it is better to generate a list of symbols to export.
14928       always_export_symbols_F77=yes
14929       if test "$aix_use_runtimelinking" = yes; then
14930         # Warning - without using the other runtime loading flags (-brtl),
14931         # -berok will link without error, but may produce a broken library.
14932         allow_undefined_flag_F77='-berok'
14933        # Determine the default libpath from the value encoded in an empty executable.
14934        cat >conftest.$ac_ext <<_ACEOF
14935       program main
14936
14937       end
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_link") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } && {
14953          test -z "$ac_f77_werror_flag" ||
14954          test ! -s conftest.err
14955        } && test -s conftest$ac_exeext &&
14956        $as_test_x conftest$ac_exeext; then
14957
14958 lt_aix_libpath_sed='
14959     /Import File Strings/,/^$/ {
14960         /^0/ {
14961             s/^0  *\(.*\)$/\1/
14962             p
14963         }
14964     }'
14965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14966 # Check for a 64-bit object if we didn't find anything.
14967 if test -z "$aix_libpath"; then
14968   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14969 fi
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974
14975 fi
14976
14977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14978       conftest$ac_exeext conftest.$ac_ext
14979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14980
14981        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14982         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"
14983        else
14984         if test "$host_cpu" = ia64; then
14985           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14986           allow_undefined_flag_F77="-z nodefs"
14987           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"
14988         else
14989          # Determine the default libpath from the value encoded in an empty executable.
14990          cat >conftest.$ac_ext <<_ACEOF
14991       program main
14992
14993       end
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_link") 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } && {
15009          test -z "$ac_f77_werror_flag" ||
15010          test ! -s conftest.err
15011        } && test -s conftest$ac_exeext &&
15012        $as_test_x conftest$ac_exeext; then
15013
15014 lt_aix_libpath_sed='
15015     /Import File Strings/,/^$/ {
15016         /^0/ {
15017             s/^0  *\(.*\)$/\1/
15018             p
15019         }
15020     }'
15021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15022 # Check for a 64-bit object if we didn't find anything.
15023 if test -z "$aix_libpath"; then
15024   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025 fi
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034       conftest$ac_exeext conftest.$ac_ext
15035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15036
15037          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15038           # Warning - without using the other run time loading flags,
15039           # -berok will link without error, but may produce a broken library.
15040           no_undefined_flag_F77=' ${wl}-bernotok'
15041           allow_undefined_flag_F77=' ${wl}-berok'
15042           # Exported symbols can be pulled into shared objects from archives
15043           whole_archive_flag_spec_F77='$convenience'
15044           archive_cmds_need_lc_F77=yes
15045           # This is similar to how AIX traditionally builds its shared libraries.
15046           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'
15047         fi
15048       fi
15049       ;;
15050
15051     amigaos*)
15052       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)'
15053       hardcode_libdir_flag_spec_F77='-L$libdir'
15054       hardcode_minus_L_F77=yes
15055       # see comment about different semantics on the GNU ld section
15056       ld_shlibs_F77=no
15057       ;;
15058
15059     bsdi[45]*)
15060       export_dynamic_flag_spec_F77=-rdynamic
15061       ;;
15062
15063     cygwin* | mingw* | pw32*)
15064       # When not using gcc, we currently assume that we are using
15065       # Microsoft Visual C++.
15066       # hardcode_libdir_flag_spec is actually meaningless, as there is
15067       # no search path for DLLs.
15068       hardcode_libdir_flag_spec_F77=' '
15069       allow_undefined_flag_F77=unsupported
15070       # Tell ltmain to make .lib files, not .a files.
15071       libext=lib
15072       # Tell ltmain to make .dll files, not .so files.
15073       shrext_cmds=".dll"
15074       # FIXME: Setting linknames here is a bad hack.
15075       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15076       # The linker will automatically build a .lib file if we build a DLL.
15077       old_archive_From_new_cmds_F77='true'
15078       # FIXME: Should let the user specify the lib program.
15079       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15080       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15081       enable_shared_with_static_runtimes_F77=yes
15082       ;;
15083
15084     darwin* | rhapsody*)
15085       case $host_os in
15086         rhapsody* | darwin1.[012])
15087          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15088          ;;
15089        *) # Darwin 1.3 on
15090          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15091            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15092          else
15093            case ${MACOSX_DEPLOYMENT_TARGET} in
15094              10.[012])
15095                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15096                ;;
15097              10.*)
15098                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15099                ;;
15100            esac
15101          fi
15102          ;;
15103       esac
15104       archive_cmds_need_lc_F77=no
15105       hardcode_direct_F77=no
15106       hardcode_automatic_F77=yes
15107       hardcode_shlibpath_var_F77=unsupported
15108       whole_archive_flag_spec_F77=''
15109       link_all_deplibs_F77=yes
15110     if test "$GCC" = yes ; then
15111         output_verbose_link_cmd='echo'
15112         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15113       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15114       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15115       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}'
15116       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}'
15117     else
15118       case $cc_basename in
15119         xlc*)
15120          output_verbose_link_cmd='echo'
15121          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15122          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15123           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15124          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}'
15125           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}'
15126           ;;
15127        *)
15128          ld_shlibs_F77=no
15129           ;;
15130       esac
15131     fi
15132       ;;
15133
15134     dgux*)
15135       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136       hardcode_libdir_flag_spec_F77='-L$libdir'
15137       hardcode_shlibpath_var_F77=no
15138       ;;
15139
15140     freebsd1*)
15141       ld_shlibs_F77=no
15142       ;;
15143
15144     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15145     # support.  Future versions do this automatically, but an explicit c++rt0.o
15146     # does not break anything, and helps significantly (at the cost of a little
15147     # extra space).
15148     freebsd2.2*)
15149       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15150       hardcode_libdir_flag_spec_F77='-R$libdir'
15151       hardcode_direct_F77=yes
15152       hardcode_shlibpath_var_F77=no
15153       ;;
15154
15155     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15156     freebsd2*)
15157       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15158       hardcode_direct_F77=yes
15159       hardcode_minus_L_F77=yes
15160       hardcode_shlibpath_var_F77=no
15161       ;;
15162
15163     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15164     freebsd* | dragonfly*)
15165       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15166       hardcode_libdir_flag_spec_F77='-R$libdir'
15167       hardcode_direct_F77=yes
15168       hardcode_shlibpath_var_F77=no
15169       ;;
15170
15171     hpux9*)
15172       if test "$GCC" = yes; then
15173         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'
15174       else
15175         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'
15176       fi
15177       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15178       hardcode_libdir_separator_F77=:
15179       hardcode_direct_F77=yes
15180
15181       # hardcode_minus_L: Not really in the search PATH,
15182       # but as the default location of the library.
15183       hardcode_minus_L_F77=yes
15184       export_dynamic_flag_spec_F77='${wl}-E'
15185       ;;
15186
15187     hpux10*)
15188       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15189         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190       else
15191         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15192       fi
15193       if test "$with_gnu_ld" = no; then
15194         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195         hardcode_libdir_separator_F77=:
15196
15197         hardcode_direct_F77=yes
15198         export_dynamic_flag_spec_F77='${wl}-E'
15199
15200         # hardcode_minus_L: Not really in the search PATH,
15201         # but as the default location of the library.
15202         hardcode_minus_L_F77=yes
15203       fi
15204       ;;
15205
15206     hpux11*)
15207       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15208         case $host_cpu in
15209         hppa*64*)
15210           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211           ;;
15212         ia64*)
15213           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15214           ;;
15215         *)
15216           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15217           ;;
15218         esac
15219       else
15220         case $host_cpu in
15221         hppa*64*)
15222           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15223           ;;
15224         ia64*)
15225           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15226           ;;
15227         *)
15228           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15229           ;;
15230         esac
15231       fi
15232       if test "$with_gnu_ld" = no; then
15233         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15234         hardcode_libdir_separator_F77=:
15235
15236         case $host_cpu in
15237         hppa*64*|ia64*)
15238           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15239           hardcode_direct_F77=no
15240           hardcode_shlibpath_var_F77=no
15241           ;;
15242         *)
15243           hardcode_direct_F77=yes
15244           export_dynamic_flag_spec_F77='${wl}-E'
15245
15246           # hardcode_minus_L: Not really in the search PATH,
15247           # but as the default location of the library.
15248           hardcode_minus_L_F77=yes
15249           ;;
15250         esac
15251       fi
15252       ;;
15253
15254     irix5* | irix6* | nonstopux*)
15255       if test "$GCC" = yes; then
15256         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'
15257       else
15258         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'
15259         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15260       fi
15261       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15262       hardcode_libdir_separator_F77=:
15263       link_all_deplibs_F77=yes
15264       ;;
15265
15266     netbsd*)
15267       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15268         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15269       else
15270         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15271       fi
15272       hardcode_libdir_flag_spec_F77='-R$libdir'
15273       hardcode_direct_F77=yes
15274       hardcode_shlibpath_var_F77=no
15275       ;;
15276
15277     newsos6)
15278       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279       hardcode_direct_F77=yes
15280       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15281       hardcode_libdir_separator_F77=:
15282       hardcode_shlibpath_var_F77=no
15283       ;;
15284
15285     openbsd*)
15286       if test -f /usr/libexec/ld.so; then
15287         hardcode_direct_F77=yes
15288         hardcode_shlibpath_var_F77=no
15289         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15290           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15292           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15293           export_dynamic_flag_spec_F77='${wl}-E'
15294         else
15295           case $host_os in
15296            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15297              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15298              hardcode_libdir_flag_spec_F77='-R$libdir'
15299              ;;
15300            *)
15301              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15302              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15303              ;;
15304           esac
15305         fi
15306       else
15307         ld_shlibs_F77=no
15308       fi
15309       ;;
15310
15311     os2*)
15312       hardcode_libdir_flag_spec_F77='-L$libdir'
15313       hardcode_minus_L_F77=yes
15314       allow_undefined_flag_F77=unsupported
15315       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'
15316       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15317       ;;
15318
15319     osf3*)
15320       if test "$GCC" = yes; then
15321         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15322         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'
15323       else
15324         allow_undefined_flag_F77=' -expect_unresolved \*'
15325         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'
15326       fi
15327       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15328       hardcode_libdir_separator_F77=:
15329       ;;
15330
15331     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15332       if test "$GCC" = yes; then
15333         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15334         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'
15335         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15336       else
15337         allow_undefined_flag_F77=' -expect_unresolved \*'
15338         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'
15339         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~
15340         $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'
15341
15342         # Both c and cxx compiler support -rpath directly
15343         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15344       fi
15345       hardcode_libdir_separator_F77=:
15346       ;;
15347
15348     solaris*)
15349       no_undefined_flag_F77=' -z text'
15350       if test "$GCC" = yes; then
15351         wlarc='${wl}'
15352         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15354           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15355       else
15356         wlarc=''
15357         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15358         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15359         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15360       fi
15361       hardcode_libdir_flag_spec_F77='-R$libdir'
15362       hardcode_shlibpath_var_F77=no
15363       case $host_os in
15364       solaris2.[0-5] | solaris2.[0-5].*) ;;
15365       *)
15366         # The compiler driver will combine and reorder linker options,
15367         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15368         # but is careful enough not to reorder.
15369         # Supported since Solaris 2.6 (maybe 2.5.1?)
15370         if test "$GCC" = yes; then
15371           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15372         else
15373           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15374         fi
15375         ;;
15376       esac
15377       link_all_deplibs_F77=yes
15378       ;;
15379
15380     sunos4*)
15381       if test "x$host_vendor" = xsequent; then
15382         # Use $CC to link under sequent, because it throws in some extra .o
15383         # files that make .init and .fini sections work.
15384         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15385       else
15386         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15387       fi
15388       hardcode_libdir_flag_spec_F77='-L$libdir'
15389       hardcode_direct_F77=yes
15390       hardcode_minus_L_F77=yes
15391       hardcode_shlibpath_var_F77=no
15392       ;;
15393
15394     sysv4)
15395       case $host_vendor in
15396         sni)
15397           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398           hardcode_direct_F77=yes # is this really true???
15399         ;;
15400         siemens)
15401           ## LD is ld it makes a PLAMLIB
15402           ## CC just makes a GrossModule.
15403           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15404           reload_cmds_F77='$CC -r -o $output$reload_objs'
15405           hardcode_direct_F77=no
15406         ;;
15407         motorola)
15408           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15410         ;;
15411       esac
15412       runpath_var='LD_RUN_PATH'
15413       hardcode_shlibpath_var_F77=no
15414       ;;
15415
15416     sysv4.3*)
15417       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418       hardcode_shlibpath_var_F77=no
15419       export_dynamic_flag_spec_F77='-Bexport'
15420       ;;
15421
15422     sysv4*MP*)
15423       if test -d /usr/nec; then
15424         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425         hardcode_shlibpath_var_F77=no
15426         runpath_var=LD_RUN_PATH
15427         hardcode_runpath_var=yes
15428         ld_shlibs_F77=yes
15429       fi
15430       ;;
15431
15432     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15433       no_undefined_flag_F77='${wl}-z,text'
15434       archive_cmds_need_lc_F77=no
15435       hardcode_shlibpath_var_F77=no
15436       runpath_var='LD_RUN_PATH'
15437
15438       if test "$GCC" = yes; then
15439         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15440         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15441       else
15442         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15444       fi
15445       ;;
15446
15447     sysv5* | sco3.2v5* | sco5v6*)
15448       # Note: We can NOT use -z defs as we might desire, because we do not
15449       # link with -lc, and that would cause any symbols used from libc to
15450       # always be unresolved, which means just about no library would
15451       # ever link correctly.  If we're not using GNU ld we use -z text
15452       # though, which does catch some bad symbols but isn't as heavy-handed
15453       # as -z defs.
15454       no_undefined_flag_F77='${wl}-z,text'
15455       allow_undefined_flag_F77='${wl}-z,nodefs'
15456       archive_cmds_need_lc_F77=no
15457       hardcode_shlibpath_var_F77=no
15458       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15459       hardcode_libdir_separator_F77=':'
15460       link_all_deplibs_F77=yes
15461       export_dynamic_flag_spec_F77='${wl}-Bexport'
15462       runpath_var='LD_RUN_PATH'
15463
15464       if test "$GCC" = yes; then
15465         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467       else
15468         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15470       fi
15471       ;;
15472
15473     uts4*)
15474       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475       hardcode_libdir_flag_spec_F77='-L$libdir'
15476       hardcode_shlibpath_var_F77=no
15477       ;;
15478
15479     *)
15480       ld_shlibs_F77=no
15481       ;;
15482     esac
15483   fi
15484
15485 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15486 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15487 test "$ld_shlibs_F77" = no && can_build_shared=no
15488
15489 #
15490 # Do we need to explicitly link libc?
15491 #
15492 case "x$archive_cmds_need_lc_F77" in
15493 x|xyes)
15494   # Assume -lc should be added
15495   archive_cmds_need_lc_F77=yes
15496
15497   if test "$enable_shared" = yes && test "$GCC" = yes; then
15498     case $archive_cmds_F77 in
15499     *'~'*)
15500       # FIXME: we may have to deal with multi-command sequences.
15501       ;;
15502     '$CC '*)
15503       # Test whether the compiler implicitly links with -lc since on some
15504       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15505       # to ld, don't add -lc before -lgcc.
15506       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15508       $rm conftest*
15509       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510
15511       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512   (eval $ac_compile) 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); } 2>conftest.err; then
15516         soname=conftest
15517         lib=conftest
15518         libobjs=conftest.$ac_objext
15519         deplibs=
15520         wl=$lt_prog_compiler_wl_F77
15521         pic_flag=$lt_prog_compiler_pic_F77
15522         compiler_flags=-v
15523         linker_flags=-v
15524         verstring=
15525         output_objdir=.
15526         libname=conftest
15527         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15528         allow_undefined_flag_F77=
15529         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15530   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }
15534         then
15535           archive_cmds_need_lc_F77=no
15536         else
15537           archive_cmds_need_lc_F77=yes
15538         fi
15539         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15540       else
15541         cat conftest.err 1>&5
15542       fi
15543       $rm conftest*
15544       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15545 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15546       ;;
15547     esac
15548   fi
15549   ;;
15550 esac
15551
15552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15554 library_names_spec=
15555 libname_spec='lib$name'
15556 soname_spec=
15557 shrext_cmds=".so"
15558 postinstall_cmds=
15559 postuninstall_cmds=
15560 finish_cmds=
15561 finish_eval=
15562 shlibpath_var=
15563 shlibpath_overrides_runpath=unknown
15564 version_type=none
15565 dynamic_linker="$host_os ld.so"
15566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15567
15568 need_lib_prefix=unknown
15569 hardcode_into_libs=no
15570
15571 # when you set need_version to no, make sure it does not cause -set_version
15572 # flags to be left without arguments
15573 need_version=unknown
15574
15575 case $host_os in
15576 aix3*)
15577   version_type=linux
15578   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15579   shlibpath_var=LIBPATH
15580
15581   # AIX 3 has no versioning support, so we append a major version to the name.
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   ;;
15584
15585 aix4* | aix5*)
15586   version_type=linux
15587   need_lib_prefix=no
15588   need_version=no
15589   hardcode_into_libs=yes
15590   if test "$host_cpu" = ia64; then
15591     # AIX 5 supports IA64
15592     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15593     shlibpath_var=LD_LIBRARY_PATH
15594   else
15595     # With GCC up to 2.95.x, collect2 would create an import file
15596     # for dependence libraries.  The import file would start with
15597     # the line `#! .'.  This would cause the generated library to
15598     # depend on `.', always an invalid library.  This was fixed in
15599     # development snapshots of GCC prior to 3.0.
15600     case $host_os in
15601       aix4 | aix4.[01] | aix4.[01].*)
15602       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15603            echo ' yes '
15604            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15605         :
15606       else
15607         can_build_shared=no
15608       fi
15609       ;;
15610     esac
15611     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15612     # soname into executable. Probably we can add versioning support to
15613     # collect2, so additional links can be useful in future.
15614     if test "$aix_use_runtimelinking" = yes; then
15615       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15616       # instead of lib<name>.a to let people know that these are not
15617       # typical AIX shared libraries.
15618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619     else
15620       # We preserve .a as extension for shared libraries through AIX4.2
15621       # and later when we are not doing run time linking.
15622       library_names_spec='${libname}${release}.a $libname.a'
15623       soname_spec='${libname}${release}${shared_ext}$major'
15624     fi
15625     shlibpath_var=LIBPATH
15626   fi
15627   ;;
15628
15629 amigaos*)
15630   library_names_spec='$libname.ixlibrary $libname.a'
15631   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15632   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'
15633   ;;
15634
15635 beos*)
15636   library_names_spec='${libname}${shared_ext}'
15637   dynamic_linker="$host_os ld.so"
15638   shlibpath_var=LIBRARY_PATH
15639   ;;
15640
15641 bsdi[45]*)
15642   version_type=linux
15643   need_version=no
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15650   # the default ld.so.conf also contains /usr/contrib/lib and
15651   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652   # libtool to hard-code these into programs
15653   ;;
15654
15655 cygwin* | mingw* | pw32*)
15656   version_type=windows
15657   shrext_cmds=".dll"
15658   need_version=no
15659   need_lib_prefix=no
15660
15661   case $GCC,$host_os in
15662   yes,cygwin* | yes,mingw* | yes,pw32*)
15663     library_names_spec='$libname.dll.a'
15664     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665     postinstall_cmds='base_file=`basename \${file}`~
15666       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667       dldir=$destdir/`dirname \$dlpath`~
15668       test -d \$dldir || mkdir -p \$dldir~
15669       $install_prog $dir/$dlname \$dldir/$dlname~
15670       chmod a+x \$dldir/$dlname'
15671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672       dlpath=$dir/\$dldll~
15673        $rm \$dlpath'
15674     shlibpath_overrides_runpath=yes
15675
15676     case $host_os in
15677     cygwin*)
15678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15679       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15681       ;;
15682     mingw*)
15683       # MinGW DLLs use traditional 'lib' prefix
15684       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15687         # It is most probably a Windows format PATH printed by
15688         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15689         # path with ; separators, and with drive letters. We can handle the
15690         # drive letters (cygwin fileutils understands them), so leave them,
15691         # especially as we might pass files found there to a mingw objdump,
15692         # which wouldn't understand a cygwinified path. Ahh.
15693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15694       else
15695         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15696       fi
15697       ;;
15698     pw32*)
15699       # pw32 DLLs use 'pw' prefix rather than 'lib'
15700       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701       ;;
15702     esac
15703     ;;
15704
15705   *)
15706     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15707     ;;
15708   esac
15709   dynamic_linker='Win32 ld.exe'
15710   # FIXME: first we should search . and the directory the executable is in
15711   shlibpath_var=PATH
15712   ;;
15713
15714 darwin* | rhapsody*)
15715   dynamic_linker="$host_os dyld"
15716   version_type=darwin
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15720   soname_spec='${libname}${release}${major}$shared_ext'
15721   shlibpath_overrides_runpath=yes
15722   shlibpath_var=DYLD_LIBRARY_PATH
15723   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15724
15725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15726   ;;
15727
15728 dgux*)
15729   version_type=linux
15730   need_lib_prefix=no
15731   need_version=no
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15733   soname_spec='${libname}${release}${shared_ext}$major'
15734   shlibpath_var=LD_LIBRARY_PATH
15735   ;;
15736
15737 freebsd1*)
15738   dynamic_linker=no
15739   ;;
15740
15741 freebsd* | dragonfly*)
15742   # DragonFly does not have aout.  When/if they implement a new
15743   # versioning mechanism, adjust this.
15744   if test -x /usr/bin/objformat; then
15745     objformat=`/usr/bin/objformat`
15746   else
15747     case $host_os in
15748     freebsd[123]*) objformat=aout ;;
15749     *) objformat=elf ;;
15750     esac
15751   fi
15752   version_type=freebsd-$objformat
15753   case $version_type in
15754     freebsd-elf*)
15755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15756       need_version=no
15757       need_lib_prefix=no
15758       ;;
15759     freebsd-*)
15760       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15761       need_version=yes
15762       ;;
15763   esac
15764   shlibpath_var=LD_LIBRARY_PATH
15765   case $host_os in
15766   freebsd2*)
15767     shlibpath_overrides_runpath=yes
15768     ;;
15769   freebsd3.[01]* | freebsdelf3.[01]*)
15770     shlibpath_overrides_runpath=yes
15771     hardcode_into_libs=yes
15772     ;;
15773   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15774   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15775     shlibpath_overrides_runpath=no
15776     hardcode_into_libs=yes
15777     ;;
15778   *) # from 4.6 on, and DragonFly
15779     shlibpath_overrides_runpath=yes
15780     hardcode_into_libs=yes
15781     ;;
15782   esac
15783   ;;
15784
15785 gnu*)
15786   version_type=linux
15787   need_lib_prefix=no
15788   need_version=no
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15790   soname_spec='${libname}${release}${shared_ext}$major'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   hardcode_into_libs=yes
15793   ;;
15794
15795 hpux9* | hpux10* | hpux11*)
15796   # Give a soname corresponding to the major version so that dld.sl refuses to
15797   # link against other versions.
15798   version_type=sunos
15799   need_lib_prefix=no
15800   need_version=no
15801   case $host_cpu in
15802   ia64*)
15803     shrext_cmds='.so'
15804     hardcode_into_libs=yes
15805     dynamic_linker="$host_os dld.so"
15806     shlibpath_var=LD_LIBRARY_PATH
15807     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809     soname_spec='${libname}${release}${shared_ext}$major'
15810     if test "X$HPUX_IA64_MODE" = X32; then
15811       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15812     else
15813       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15814     fi
15815     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15816     ;;
15817    hppa*64*)
15818      shrext_cmds='.sl'
15819      hardcode_into_libs=yes
15820      dynamic_linker="$host_os dld.sl"
15821      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15822      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15823      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824      soname_spec='${libname}${release}${shared_ext}$major'
15825      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15826      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15827      ;;
15828    *)
15829     shrext_cmds='.sl'
15830     dynamic_linker="$host_os dld.sl"
15831     shlibpath_var=SHLIB_PATH
15832     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834     soname_spec='${libname}${release}${shared_ext}$major'
15835     ;;
15836   esac
15837   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15838   postinstall_cmds='chmod 555 $lib'
15839   ;;
15840
15841 interix[3-9]*)
15842   version_type=linux
15843   need_lib_prefix=no
15844   need_version=no
15845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15846   soname_spec='${libname}${release}${shared_ext}$major'
15847   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15848   shlibpath_var=LD_LIBRARY_PATH
15849   shlibpath_overrides_runpath=no
15850   hardcode_into_libs=yes
15851   ;;
15852
15853 irix5* | irix6* | nonstopux*)
15854   case $host_os in
15855     nonstopux*) version_type=nonstopux ;;
15856     *)
15857         if test "$lt_cv_prog_gnu_ld" = yes; then
15858                 version_type=linux
15859         else
15860                 version_type=irix
15861         fi ;;
15862   esac
15863   need_lib_prefix=no
15864   need_version=no
15865   soname_spec='${libname}${release}${shared_ext}$major'
15866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15867   case $host_os in
15868   irix5* | nonstopux*)
15869     libsuff= shlibsuff=
15870     ;;
15871   *)
15872     case $LD in # libtool.m4 will add one of these switches to LD
15873     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15874       libsuff= shlibsuff= libmagic=32-bit;;
15875     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15876       libsuff=32 shlibsuff=N32 libmagic=N32;;
15877     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15878       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15879     *) libsuff= shlibsuff= libmagic=never-match;;
15880     esac
15881     ;;
15882   esac
15883   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15884   shlibpath_overrides_runpath=no
15885   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15886   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15887   hardcode_into_libs=yes
15888   ;;
15889
15890 # No shared lib support for Linux oldld, aout, or coff.
15891 linux*oldld* | linux*aout* | linux*coff*)
15892   dynamic_linker=no
15893   ;;
15894
15895 # This must be Linux ELF.
15896 linux* | k*bsd*-gnu)
15897   version_type=linux
15898   need_lib_prefix=no
15899   need_version=no
15900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901   soname_spec='${libname}${release}${shared_ext}$major'
15902   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15903   shlibpath_var=LD_LIBRARY_PATH
15904   shlibpath_overrides_runpath=no
15905   # This implies no fast_install, which is unacceptable.
15906   # Some rework will be needed to allow for fast_install
15907   # before this can be enabled.
15908   hardcode_into_libs=yes
15909   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15910   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15911
15912   # Append ld.so.conf contents to the search path
15913   if test -f /etc/ld.so.conf; then
15914     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' ' '`
15915     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15916   fi
15917
15918   # We used to test for /lib/ld.so.1 and disable shared libraries on
15919   # powerpc, because MkLinux only supported shared libraries with the
15920   # GNU dynamic linker.  Since this was broken with cross compilers,
15921   # most powerpc-linux boxes support dynamic linking these days and
15922   # people can always --disable-shared, the test was removed, and we
15923   # assume the GNU/Linux dynamic linker is in use.
15924   dynamic_linker='GNU/Linux ld.so'
15925   ;;
15926
15927 netbsd*)
15928   version_type=sunos
15929   need_lib_prefix=no
15930   need_version=no
15931   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15934     dynamic_linker='NetBSD (a.out) ld.so'
15935   else
15936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937     soname_spec='${libname}${release}${shared_ext}$major'
15938     dynamic_linker='NetBSD ld.elf_so'
15939   fi
15940   shlibpath_var=LD_LIBRARY_PATH
15941   shlibpath_overrides_runpath=yes
15942   hardcode_into_libs=yes
15943   ;;
15944
15945 newsos6)
15946   version_type=linux
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   shlibpath_overrides_runpath=yes
15950   ;;
15951
15952 nto-qnx*)
15953   version_type=linux
15954   need_lib_prefix=no
15955   need_version=no
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957   soname_spec='${libname}${release}${shared_ext}$major'
15958   shlibpath_var=LD_LIBRARY_PATH
15959   shlibpath_overrides_runpath=yes
15960   ;;
15961
15962 openbsd*)
15963   version_type=sunos
15964   sys_lib_dlsearch_path_spec="/usr/lib"
15965   need_lib_prefix=no
15966   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15967   case $host_os in
15968     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15969     *)                         need_version=no  ;;
15970   esac
15971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15972   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15973   shlibpath_var=LD_LIBRARY_PATH
15974   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15975     case $host_os in
15976       openbsd2.[89] | openbsd2.[89].*)
15977         shlibpath_overrides_runpath=no
15978         ;;
15979       *)
15980         shlibpath_overrides_runpath=yes
15981         ;;
15982       esac
15983   else
15984     shlibpath_overrides_runpath=yes
15985   fi
15986   ;;
15987
15988 os2*)
15989   libname_spec='$name'
15990   shrext_cmds=".dll"
15991   need_lib_prefix=no
15992   library_names_spec='$libname${shared_ext} $libname.a'
15993   dynamic_linker='OS/2 ld.exe'
15994   shlibpath_var=LIBPATH
15995   ;;
15996
15997 osf3* | osf4* | osf5*)
15998   version_type=osf
15999   need_lib_prefix=no
16000   need_version=no
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16005   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16006   ;;
16007
16008 rdos*)
16009   dynamic_linker=no
16010   ;;
16011
16012 solaris*)
16013   version_type=linux
16014   need_lib_prefix=no
16015   need_version=no
16016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017   soname_spec='${libname}${release}${shared_ext}$major'
16018   shlibpath_var=LD_LIBRARY_PATH
16019   shlibpath_overrides_runpath=yes
16020   hardcode_into_libs=yes
16021   # ldd complains unless libraries are executable
16022   postinstall_cmds='chmod +x $lib'
16023   ;;
16024
16025 sunos4*)
16026   version_type=sunos
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16028   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16029   shlibpath_var=LD_LIBRARY_PATH
16030   shlibpath_overrides_runpath=yes
16031   if test "$with_gnu_ld" = yes; then
16032     need_lib_prefix=no
16033   fi
16034   need_version=yes
16035   ;;
16036
16037 sysv4 | sysv4.3*)
16038   version_type=linux
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   case $host_vendor in
16043     sni)
16044       shlibpath_overrides_runpath=no
16045       need_lib_prefix=no
16046       export_dynamic_flag_spec='${wl}-Blargedynsym'
16047       runpath_var=LD_RUN_PATH
16048       ;;
16049     siemens)
16050       need_lib_prefix=no
16051       ;;
16052     motorola)
16053       need_lib_prefix=no
16054       need_version=no
16055       shlibpath_overrides_runpath=no
16056       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16057       ;;
16058   esac
16059   ;;
16060
16061 sysv4*MP*)
16062   if test -d /usr/nec ;then
16063     version_type=linux
16064     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16065     soname_spec='$libname${shared_ext}.$major'
16066     shlibpath_var=LD_LIBRARY_PATH
16067   fi
16068   ;;
16069
16070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16071   version_type=freebsd-elf
16072   need_lib_prefix=no
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   hardcode_into_libs=yes
16078   if test "$with_gnu_ld" = yes; then
16079     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16080     shlibpath_overrides_runpath=no
16081   else
16082     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16083     shlibpath_overrides_runpath=yes
16084     case $host_os in
16085       sco3.2v5*)
16086         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16087         ;;
16088     esac
16089   fi
16090   sys_lib_dlsearch_path_spec='/usr/lib'
16091   ;;
16092
16093 uts4*)
16094   version_type=linux
16095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096   soname_spec='${libname}${release}${shared_ext}$major'
16097   shlibpath_var=LD_LIBRARY_PATH
16098   ;;
16099
16100 *)
16101   dynamic_linker=no
16102   ;;
16103 esac
16104 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16105 echo "${ECHO_T}$dynamic_linker" >&6; }
16106 test "$dynamic_linker" = no && can_build_shared=no
16107
16108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16109 if test "$GCC" = yes; then
16110   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16111 fi
16112
16113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16115 hardcode_action_F77=
16116 if test -n "$hardcode_libdir_flag_spec_F77" || \
16117    test -n "$runpath_var_F77" || \
16118    test "X$hardcode_automatic_F77" = "Xyes" ; then
16119
16120   # We can hardcode non-existant directories.
16121   if test "$hardcode_direct_F77" != no &&
16122      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16123      # have to relink, otherwise we might link with an installed library
16124      # when we should be linking with a yet-to-be-installed one
16125      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16126      test "$hardcode_minus_L_F77" != no; then
16127     # Linking always hardcodes the temporary library directory.
16128     hardcode_action_F77=relink
16129   else
16130     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16131     hardcode_action_F77=immediate
16132   fi
16133 else
16134   # We cannot hardcode anything, or else we can only hardcode existing
16135   # directories.
16136   hardcode_action_F77=unsupported
16137 fi
16138 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16139 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16140
16141 if test "$hardcode_action_F77" = relink; then
16142   # Fast installation is not supported
16143   enable_fast_install=no
16144 elif test "$shlibpath_overrides_runpath" = yes ||
16145      test "$enable_shared" = no; then
16146   # Fast installation is not necessary
16147   enable_fast_install=needless
16148 fi
16149
16150
16151 # The else clause should only fire when bootstrapping the
16152 # libtool distribution, otherwise you forgot to ship ltmain.sh
16153 # with your package, and you will get complaints that there are
16154 # no rules to generate ltmain.sh.
16155 if test -f "$ltmain"; then
16156   # See if we are running on zsh, and set the options which allow our commands through
16157   # without removal of \ escapes.
16158   if test -n "${ZSH_VERSION+set}" ; then
16159     setopt NO_GLOB_SUBST
16160   fi
16161   # Now quote all the things that may contain metacharacters while being
16162   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16163   # variables and quote the copies for generation of the libtool script.
16164   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16165     SED SHELL STRIP \
16166     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16167     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16168     deplibs_check_method reload_flag reload_cmds need_locks \
16169     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16170     lt_cv_sys_global_symbol_to_c_name_address \
16171     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16172     old_postinstall_cmds old_postuninstall_cmds \
16173     compiler_F77 \
16174     CC_F77 \
16175     LD_F77 \
16176     lt_prog_compiler_wl_F77 \
16177     lt_prog_compiler_pic_F77 \
16178     lt_prog_compiler_static_F77 \
16179     lt_prog_compiler_no_builtin_flag_F77 \
16180     export_dynamic_flag_spec_F77 \
16181     thread_safe_flag_spec_F77 \
16182     whole_archive_flag_spec_F77 \
16183     enable_shared_with_static_runtimes_F77 \
16184     old_archive_cmds_F77 \
16185     old_archive_from_new_cmds_F77 \
16186     predep_objects_F77 \
16187     postdep_objects_F77 \
16188     predeps_F77 \
16189     postdeps_F77 \
16190     compiler_lib_search_path_F77 \
16191     archive_cmds_F77 \
16192     archive_expsym_cmds_F77 \
16193     postinstall_cmds_F77 \
16194     postuninstall_cmds_F77 \
16195     old_archive_from_expsyms_cmds_F77 \
16196     allow_undefined_flag_F77 \
16197     no_undefined_flag_F77 \
16198     export_symbols_cmds_F77 \
16199     hardcode_libdir_flag_spec_F77 \
16200     hardcode_libdir_flag_spec_ld_F77 \
16201     hardcode_libdir_separator_F77 \
16202     hardcode_automatic_F77 \
16203     module_cmds_F77 \
16204     module_expsym_cmds_F77 \
16205     lt_cv_prog_compiler_c_o_F77 \
16206     fix_srcfile_path_F77 \
16207     exclude_expsyms_F77 \
16208     include_expsyms_F77; do
16209
16210     case $var in
16211     old_archive_cmds_F77 | \
16212     old_archive_from_new_cmds_F77 | \
16213     archive_cmds_F77 | \
16214     archive_expsym_cmds_F77 | \
16215     module_cmds_F77 | \
16216     module_expsym_cmds_F77 | \
16217     old_archive_from_expsyms_cmds_F77 | \
16218     export_symbols_cmds_F77 | \
16219     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16220     postinstall_cmds | postuninstall_cmds | \
16221     old_postinstall_cmds | old_postuninstall_cmds | \
16222     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16223       # Double-quote double-evaled strings.
16224       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16225       ;;
16226     *)
16227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16228       ;;
16229     esac
16230   done
16231
16232   case $lt_echo in
16233   *'\$0 --fallback-echo"')
16234     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16235     ;;
16236   esac
16237
16238 cfgfile="$ofile"
16239
16240   cat <<__EOF__ >> "$cfgfile"
16241 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16242
16243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16244
16245 # Shell to use when invoking shell scripts.
16246 SHELL=$lt_SHELL
16247
16248 # Whether or not to build shared libraries.
16249 build_libtool_libs=$enable_shared
16250
16251 # Whether or not to build static libraries.
16252 build_old_libs=$enable_static
16253
16254 # Whether or not to add -lc for building shared libraries.
16255 build_libtool_need_lc=$archive_cmds_need_lc_F77
16256
16257 # Whether or not to disallow shared libs when runtime libs are static
16258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16259
16260 # Whether or not to optimize for fast installation.
16261 fast_install=$enable_fast_install
16262
16263 # The host system.
16264 host_alias=$host_alias
16265 host=$host
16266 host_os=$host_os
16267
16268 # The build system.
16269 build_alias=$build_alias
16270 build=$build
16271 build_os=$build_os
16272
16273 # An echo program that does not interpret backslashes.
16274 echo=$lt_echo
16275
16276 # The archiver.
16277 AR=$lt_AR
16278 AR_FLAGS=$lt_AR_FLAGS
16279
16280 # A C compiler.
16281 LTCC=$lt_LTCC
16282
16283 # LTCC compiler flags.
16284 LTCFLAGS=$lt_LTCFLAGS
16285
16286 # A language-specific compiler.
16287 CC=$lt_compiler_F77
16288
16289 # Is the compiler the GNU C compiler?
16290 with_gcc=$GCC_F77
16291
16292 # An ERE matcher.
16293 EGREP=$lt_EGREP
16294
16295 # The linker used to build libraries.
16296 LD=$lt_LD_F77
16297
16298 # Whether we need hard or soft links.
16299 LN_S=$lt_LN_S
16300
16301 # A BSD-compatible nm program.
16302 NM=$lt_NM
16303
16304 # A symbol stripping program
16305 STRIP=$lt_STRIP
16306
16307 # Used to examine libraries when file_magic_cmd begins "file"
16308 MAGIC_CMD=$MAGIC_CMD
16309
16310 # Used on cygwin: DLL creation program.
16311 DLLTOOL="$DLLTOOL"
16312
16313 # Used on cygwin: object dumper.
16314 OBJDUMP="$OBJDUMP"
16315
16316 # Used on cygwin: assembler.
16317 AS="$AS"
16318
16319 # The name of the directory that contains temporary libtool files.
16320 objdir=$objdir
16321
16322 # How to create reloadable object files.
16323 reload_flag=$lt_reload_flag
16324 reload_cmds=$lt_reload_cmds
16325
16326 # How to pass a linker flag through the compiler.
16327 wl=$lt_lt_prog_compiler_wl_F77
16328
16329 # Object file suffix (normally "o").
16330 objext="$ac_objext"
16331
16332 # Old archive suffix (normally "a").
16333 libext="$libext"
16334
16335 # Shared library suffix (normally ".so").
16336 shrext_cmds='$shrext_cmds'
16337
16338 # Executable file suffix (normally "").
16339 exeext="$exeext"
16340
16341 # Additional compiler flags for building library objects.
16342 pic_flag=$lt_lt_prog_compiler_pic_F77
16343 pic_mode=$pic_mode
16344
16345 # What is the maximum length of a command?
16346 max_cmd_len=$lt_cv_sys_max_cmd_len
16347
16348 # Does compiler simultaneously support -c and -o options?
16349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16350
16351 # Must we lock files when doing compilation?
16352 need_locks=$lt_need_locks
16353
16354 # Do we need the lib prefix for modules?
16355 need_lib_prefix=$need_lib_prefix
16356
16357 # Do we need a version for libraries?
16358 need_version=$need_version
16359
16360 # Whether dlopen is supported.
16361 dlopen_support=$enable_dlopen
16362
16363 # Whether dlopen of programs is supported.
16364 dlopen_self=$enable_dlopen_self
16365
16366 # Whether dlopen of statically linked programs is supported.
16367 dlopen_self_static=$enable_dlopen_self_static
16368
16369 # Compiler flag to prevent dynamic linking.
16370 link_static_flag=$lt_lt_prog_compiler_static_F77
16371
16372 # Compiler flag to turn off builtin functions.
16373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16374
16375 # Compiler flag to allow reflexive dlopens.
16376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16377
16378 # Compiler flag to generate shared objects directly from archives.
16379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16380
16381 # Compiler flag to generate thread-safe objects.
16382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16383
16384 # Library versioning type.
16385 version_type=$version_type
16386
16387 # Format of library name prefix.
16388 libname_spec=$lt_libname_spec
16389
16390 # List of archive names.  First name is the real one, the rest are links.
16391 # The last name is the one that the linker finds with -lNAME.
16392 library_names_spec=$lt_library_names_spec
16393
16394 # The coded name of the library, if different from the real name.
16395 soname_spec=$lt_soname_spec
16396
16397 # Commands used to build and install an old-style archive.
16398 RANLIB=$lt_RANLIB
16399 old_archive_cmds=$lt_old_archive_cmds_F77
16400 old_postinstall_cmds=$lt_old_postinstall_cmds
16401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16402
16403 # Create an old-style archive from a shared archive.
16404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16405
16406 # Create a temporary old-style archive to link instead of a shared archive.
16407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16408
16409 # Commands used to build and install a shared archive.
16410 archive_cmds=$lt_archive_cmds_F77
16411 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16412 postinstall_cmds=$lt_postinstall_cmds
16413 postuninstall_cmds=$lt_postuninstall_cmds
16414
16415 # Commands used to build a loadable module (assumed same as above if empty)
16416 module_cmds=$lt_module_cmds_F77
16417 module_expsym_cmds=$lt_module_expsym_cmds_F77
16418
16419 # Commands to strip libraries.
16420 old_striplib=$lt_old_striplib
16421 striplib=$lt_striplib
16422
16423 # Dependencies to place before the objects being linked to create a
16424 # shared library.
16425 predep_objects=$lt_predep_objects_F77
16426
16427 # Dependencies to place after the objects being linked to create a
16428 # shared library.
16429 postdep_objects=$lt_postdep_objects_F77
16430
16431 # Dependencies to place before the objects being linked to create a
16432 # shared library.
16433 predeps=$lt_predeps_F77
16434
16435 # Dependencies to place after the objects being linked to create a
16436 # shared library.
16437 postdeps=$lt_postdeps_F77
16438
16439 # The library search path used internally by the compiler when linking
16440 # a shared library.
16441 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16442
16443 # Method to check whether dependent libraries are shared objects.
16444 deplibs_check_method=$lt_deplibs_check_method
16445
16446 # Command to use when deplibs_check_method == file_magic.
16447 file_magic_cmd=$lt_file_magic_cmd
16448
16449 # Flag that allows shared libraries with undefined symbols to be built.
16450 allow_undefined_flag=$lt_allow_undefined_flag_F77
16451
16452 # Flag that forces no undefined symbols.
16453 no_undefined_flag=$lt_no_undefined_flag_F77
16454
16455 # Commands used to finish a libtool library installation in a directory.
16456 finish_cmds=$lt_finish_cmds
16457
16458 # Same as above, but a single script fragment to be evaled but not shown.
16459 finish_eval=$lt_finish_eval
16460
16461 # Take the output of nm and produce a listing of raw symbols and C names.
16462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16463
16464 # Transform the output of nm in a proper C declaration
16465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16466
16467 # Transform the output of nm in a C name address pair
16468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16469
16470 # This is the shared library runtime path variable.
16471 runpath_var=$runpath_var
16472
16473 # This is the shared library path variable.
16474 shlibpath_var=$shlibpath_var
16475
16476 # Is shlibpath searched before the hard-coded library search path?
16477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16478
16479 # How to hardcode a shared library path into an executable.
16480 hardcode_action=$hardcode_action_F77
16481
16482 # Whether we should hardcode library paths into libraries.
16483 hardcode_into_libs=$hardcode_into_libs
16484
16485 # Flag to hardcode \$libdir into a binary during linking.
16486 # This must work even if \$libdir does not exist.
16487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16488
16489 # If ld is used when linking, flag to hardcode \$libdir into
16490 # a binary during linking. This must work even if \$libdir does
16491 # not exist.
16492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16493
16494 # Whether we need a single -rpath flag with a separated argument.
16495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16496
16497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16498 # resulting binary.
16499 hardcode_direct=$hardcode_direct_F77
16500
16501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16502 # resulting binary.
16503 hardcode_minus_L=$hardcode_minus_L_F77
16504
16505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16506 # the resulting binary.
16507 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16508
16509 # Set to yes if building a shared library automatically hardcodes DIR into the library
16510 # and all subsequent libraries and executables linked against it.
16511 hardcode_automatic=$hardcode_automatic_F77
16512
16513 # Variables whose values should be saved in libtool wrapper scripts and
16514 # restored at relink time.
16515 variables_saved_for_relink="$variables_saved_for_relink"
16516
16517 # Whether libtool must link a program against all its dependency libraries.
16518 link_all_deplibs=$link_all_deplibs_F77
16519
16520 # Compile-time system search path for libraries
16521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16522
16523 # Run-time system search path for libraries
16524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16525
16526 # Fix the shell variable \$srcfile for the compiler.
16527 fix_srcfile_path=$lt_fix_srcfile_path
16528
16529 # Set to yes if exported symbols are required.
16530 always_export_symbols=$always_export_symbols_F77
16531
16532 # The commands to list exported symbols.
16533 export_symbols_cmds=$lt_export_symbols_cmds_F77
16534
16535 # The commands to extract the exported symbol list from a shared archive.
16536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16537
16538 # Symbols that should not be listed in the preloaded symbols.
16539 exclude_expsyms=$lt_exclude_expsyms_F77
16540
16541 # Symbols that must always be exported.
16542 include_expsyms=$lt_include_expsyms_F77
16543
16544 # ### END LIBTOOL TAG CONFIG: $tagname
16545
16546 __EOF__
16547
16548
16549 else
16550   # If there is no Makefile yet, we rely on a make rule to execute
16551   # `config.status --recheck' to rerun these tests and create the
16552   # libtool script then.
16553   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16554   if test -f "$ltmain_in"; then
16555     test -f Makefile && make "$ltmain"
16556   fi
16557 fi
16558
16559
16560 ac_ext=c
16561 ac_cpp='$CPP $CPPFLAGS'
16562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16565
16566 CC="$lt_save_CC"
16567
16568         else
16569           tagname=""
16570         fi
16571         ;;
16572
16573       GCJ)
16574         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16575
16576
16577 # Source file extension for Java test sources.
16578 ac_ext=java
16579
16580 # Object file extension for compiled Java test sources.
16581 objext=o
16582 objext_GCJ=$objext
16583
16584 # Code to be used in simple compile tests
16585 lt_simple_compile_test_code="class foo {}"
16586
16587 # Code to be used in simple link tests
16588 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16589
16590 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16591
16592 # If no C compiler was specified, use CC.
16593 LTCC=${LTCC-"$CC"}
16594
16595 # If no C compiler flags were specified, use CFLAGS.
16596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16597
16598 # Allow CC to be a program name with arguments.
16599 compiler=$CC
16600
16601
16602 # save warnings/boilerplate of simple test code
16603 ac_outfile=conftest.$ac_objext
16604 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16605 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16606 _lt_compiler_boilerplate=`cat conftest.err`
16607 $rm conftest*
16608
16609 ac_outfile=conftest.$ac_objext
16610 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16611 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16612 _lt_linker_boilerplate=`cat conftest.err`
16613 $rm conftest*
16614
16615
16616 # Allow CC to be a program name with arguments.
16617 lt_save_CC="$CC"
16618 CC=${GCJ-"gcj"}
16619 compiler=$CC
16620 compiler_GCJ=$CC
16621 for cc_temp in $compiler""; do
16622   case $cc_temp in
16623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16625     \-*) ;;
16626     *) break;;
16627   esac
16628 done
16629 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16630
16631
16632 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16633 archive_cmds_need_lc_GCJ=no
16634
16635 old_archive_cmds_GCJ=$old_archive_cmds
16636
16637
16638 lt_prog_compiler_no_builtin_flag_GCJ=
16639
16640 if test "$GCC" = yes; then
16641   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16642
16643
16644 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16645 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   lt_cv_prog_compiler_rtti_exceptions=no
16650   ac_outfile=conftest.$ac_objext
16651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16652    lt_compiler_flag="-fno-rtti -fno-exceptions"
16653    # Insert the option either (1) after the last *FLAGS variable, or
16654    # (2) before a word containing "conftest.", or (3) at the end.
16655    # Note that $ac_compile itself does not contain backslashes and begins
16656    # with a dollar sign (not a hyphen), so the echo should work correctly.
16657    # The option is referenced via a variable to avoid confusing sed.
16658    lt_compile=`echo "$ac_compile" | $SED \
16659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16661    -e 's:$: $lt_compiler_flag:'`
16662    (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
16663    (eval "$lt_compile" 2>conftest.err)
16664    ac_status=$?
16665    cat conftest.err >&5
16666    echo "$as_me:16666: \$? = $ac_status" >&5
16667    if (exit $ac_status) && test -s "$ac_outfile"; then
16668      # The compiler can only warn and ignore the option if not recognized
16669      # So say no if there are warnings other than the usual output.
16670      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16673        lt_cv_prog_compiler_rtti_exceptions=yes
16674      fi
16675    fi
16676    $rm conftest*
16677
16678 fi
16679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16680 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16681
16682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16683     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16684 else
16685     :
16686 fi
16687
16688 fi
16689
16690 lt_prog_compiler_wl_GCJ=
16691 lt_prog_compiler_pic_GCJ=
16692 lt_prog_compiler_static_GCJ=
16693
16694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16696
16697   if test "$GCC" = yes; then
16698     lt_prog_compiler_wl_GCJ='-Wl,'
16699     lt_prog_compiler_static_GCJ='-static'
16700
16701     case $host_os in
16702       aix*)
16703       # All AIX code is PIC.
16704       if test "$host_cpu" = ia64; then
16705         # AIX 5 now supports IA64 processor
16706         lt_prog_compiler_static_GCJ='-Bstatic'
16707       fi
16708       ;;
16709
16710     amigaos*)
16711       # FIXME: we need at least 68020 code to build shared libraries, but
16712       # adding the `-m68020' flag to GCC prevents building anything better,
16713       # like `-m68040'.
16714       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16715       ;;
16716
16717     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16718       # PIC is the default for these OSes.
16719       ;;
16720
16721     mingw* | cygwin* | pw32* | os2*)
16722       # This hack is so that the source file can tell whether it is being
16723       # built for inclusion in a dll (and should export symbols for example).
16724       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16725       # (--disable-auto-import) libraries
16726       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16727       ;;
16728
16729     darwin* | rhapsody*)
16730       # PIC is the default on this platform
16731       # Common symbols not allowed in MH_DYLIB files
16732       lt_prog_compiler_pic_GCJ='-fno-common'
16733       ;;
16734
16735     interix[3-9]*)
16736       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16737       # Instead, we relocate shared libraries at runtime.
16738       ;;
16739
16740     msdosdjgpp*)
16741       # Just because we use GCC doesn't mean we suddenly get shared libraries
16742       # on systems that don't support them.
16743       lt_prog_compiler_can_build_shared_GCJ=no
16744       enable_shared=no
16745       ;;
16746
16747     sysv4*MP*)
16748       if test -d /usr/nec; then
16749         lt_prog_compiler_pic_GCJ=-Kconform_pic
16750       fi
16751       ;;
16752
16753     hpux*)
16754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16755       # not for PA HP-UX.
16756       case $host_cpu in
16757       hppa*64*|ia64*)
16758         # +Z the default
16759         ;;
16760       *)
16761         lt_prog_compiler_pic_GCJ='-fPIC'
16762         ;;
16763       esac
16764       ;;
16765
16766     *)
16767       lt_prog_compiler_pic_GCJ='-fPIC'
16768       ;;
16769     esac
16770   else
16771     # PORTME Check for flag to pass linker flags through the system compiler.
16772     case $host_os in
16773     aix*)
16774       lt_prog_compiler_wl_GCJ='-Wl,'
16775       if test "$host_cpu" = ia64; then
16776         # AIX 5 now supports IA64 processor
16777         lt_prog_compiler_static_GCJ='-Bstatic'
16778       else
16779         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16780       fi
16781       ;;
16782       darwin*)
16783         # PIC is the default on this platform
16784         # Common symbols not allowed in MH_DYLIB files
16785        case $cc_basename in
16786          xlc*)
16787          lt_prog_compiler_pic_GCJ='-qnocommon'
16788          lt_prog_compiler_wl_GCJ='-Wl,'
16789          ;;
16790        esac
16791        ;;
16792
16793     mingw* | cygwin* | pw32* | os2*)
16794       # This hack is so that the source file can tell whether it is being
16795       # built for inclusion in a dll (and should export symbols for example).
16796       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16797       ;;
16798
16799     hpux9* | hpux10* | hpux11*)
16800       lt_prog_compiler_wl_GCJ='-Wl,'
16801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16802       # not for PA HP-UX.
16803       case $host_cpu in
16804       hppa*64*|ia64*)
16805         # +Z the default
16806         ;;
16807       *)
16808         lt_prog_compiler_pic_GCJ='+Z'
16809         ;;
16810       esac
16811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16812       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16813       ;;
16814
16815     irix5* | irix6* | nonstopux*)
16816       lt_prog_compiler_wl_GCJ='-Wl,'
16817       # PIC (with -KPIC) is the default.
16818       lt_prog_compiler_static_GCJ='-non_shared'
16819       ;;
16820
16821     newsos6)
16822       lt_prog_compiler_pic_GCJ='-KPIC'
16823       lt_prog_compiler_static_GCJ='-Bstatic'
16824       ;;
16825
16826     linux* | k*bsd*-gnu)
16827       case $cc_basename in
16828       icc* | ecc*)
16829         lt_prog_compiler_wl_GCJ='-Wl,'
16830         lt_prog_compiler_pic_GCJ='-KPIC'
16831         lt_prog_compiler_static_GCJ='-static'
16832         ;;
16833       pgcc* | pgf77* | pgf90* | pgf95*)
16834         # Portland Group compilers (*not* the Pentium gcc compiler,
16835         # which looks to be a dead project)
16836         lt_prog_compiler_wl_GCJ='-Wl,'
16837         lt_prog_compiler_pic_GCJ='-fpic'
16838         lt_prog_compiler_static_GCJ='-Bstatic'
16839         ;;
16840       ccc*)
16841         lt_prog_compiler_wl_GCJ='-Wl,'
16842         # All Alpha code is PIC.
16843         lt_prog_compiler_static_GCJ='-non_shared'
16844         ;;
16845       *)
16846         case `$CC -V 2>&1 | sed 5q` in
16847         *Sun\ C*)
16848           # Sun C 5.9
16849           lt_prog_compiler_pic_GCJ='-KPIC'
16850           lt_prog_compiler_static_GCJ='-Bstatic'
16851           lt_prog_compiler_wl_GCJ='-Wl,'
16852           ;;
16853         *Sun\ F*)
16854           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16855           lt_prog_compiler_pic_GCJ='-KPIC'
16856           lt_prog_compiler_static_GCJ='-Bstatic'
16857           lt_prog_compiler_wl_GCJ=''
16858           ;;
16859         esac
16860         ;;
16861       esac
16862       ;;
16863
16864     osf3* | osf4* | osf5*)
16865       lt_prog_compiler_wl_GCJ='-Wl,'
16866       # All OSF/1 code is PIC.
16867       lt_prog_compiler_static_GCJ='-non_shared'
16868       ;;
16869
16870     rdos*)
16871       lt_prog_compiler_static_GCJ='-non_shared'
16872       ;;
16873
16874     solaris*)
16875       lt_prog_compiler_pic_GCJ='-KPIC'
16876       lt_prog_compiler_static_GCJ='-Bstatic'
16877       case $cc_basename in
16878       f77* | f90* | f95*)
16879         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16880       *)
16881         lt_prog_compiler_wl_GCJ='-Wl,';;
16882       esac
16883       ;;
16884
16885     sunos4*)
16886       lt_prog_compiler_wl_GCJ='-Qoption ld '
16887       lt_prog_compiler_pic_GCJ='-PIC'
16888       lt_prog_compiler_static_GCJ='-Bstatic'
16889       ;;
16890
16891     sysv4 | sysv4.2uw2* | sysv4.3*)
16892       lt_prog_compiler_wl_GCJ='-Wl,'
16893       lt_prog_compiler_pic_GCJ='-KPIC'
16894       lt_prog_compiler_static_GCJ='-Bstatic'
16895       ;;
16896
16897     sysv4*MP*)
16898       if test -d /usr/nec ;then
16899         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16900         lt_prog_compiler_static_GCJ='-Bstatic'
16901       fi
16902       ;;
16903
16904     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16905       lt_prog_compiler_wl_GCJ='-Wl,'
16906       lt_prog_compiler_pic_GCJ='-KPIC'
16907       lt_prog_compiler_static_GCJ='-Bstatic'
16908       ;;
16909
16910     unicos*)
16911       lt_prog_compiler_wl_GCJ='-Wl,'
16912       lt_prog_compiler_can_build_shared_GCJ=no
16913       ;;
16914
16915     uts4*)
16916       lt_prog_compiler_pic_GCJ='-pic'
16917       lt_prog_compiler_static_GCJ='-Bstatic'
16918       ;;
16919
16920     *)
16921       lt_prog_compiler_can_build_shared_GCJ=no
16922       ;;
16923     esac
16924   fi
16925
16926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16927 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16928
16929 #
16930 # Check to make sure the PIC flag actually works.
16931 #
16932 if test -n "$lt_prog_compiler_pic_GCJ"; then
16933
16934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16936 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   lt_prog_compiler_pic_works_GCJ=no
16940   ac_outfile=conftest.$ac_objext
16941    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16942    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16943    # Insert the option either (1) after the last *FLAGS variable, or
16944    # (2) before a word containing "conftest.", or (3) at the end.
16945    # Note that $ac_compile itself does not contain backslashes and begins
16946    # with a dollar sign (not a hyphen), so the echo should work correctly.
16947    # The option is referenced via a variable to avoid confusing sed.
16948    lt_compile=`echo "$ac_compile" | $SED \
16949    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16951    -e 's:$: $lt_compiler_flag:'`
16952    (eval echo "\"\$as_me:16952: $lt_compile\"" >&5)
16953    (eval "$lt_compile" 2>conftest.err)
16954    ac_status=$?
16955    cat conftest.err >&5
16956    echo "$as_me:16956: \$? = $ac_status" >&5
16957    if (exit $ac_status) && test -s "$ac_outfile"; then
16958      # The compiler can only warn and ignore the option if not recognized
16959      # So say no if there are warnings other than the usual output.
16960      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16961      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16962      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16963        lt_prog_compiler_pic_works_GCJ=yes
16964      fi
16965    fi
16966    $rm conftest*
16967
16968 fi
16969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16970 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16971
16972 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16973     case $lt_prog_compiler_pic_GCJ in
16974      "" | " "*) ;;
16975      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16976      esac
16977 else
16978     lt_prog_compiler_pic_GCJ=
16979      lt_prog_compiler_can_build_shared_GCJ=no
16980 fi
16981
16982 fi
16983 case $host_os in
16984   # For platforms which do not support PIC, -DPIC is meaningless:
16985   *djgpp*)
16986     lt_prog_compiler_pic_GCJ=
16987     ;;
16988   *)
16989     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16990     ;;
16991 esac
16992
16993 #
16994 # Check to make sure the static flag actually works.
16995 #
16996 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16999 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   lt_prog_compiler_static_works_GCJ=no
17003    save_LDFLAGS="$LDFLAGS"
17004    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17005    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17006    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17007      # The linker can only warn and ignore the option if not recognized
17008      # So say no if there are warnings
17009      if test -s conftest.err; then
17010        # Append any errors to the config.log.
17011        cat conftest.err 1>&5
17012        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17013        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17014        if diff conftest.exp conftest.er2 >/dev/null; then
17015          lt_prog_compiler_static_works_GCJ=yes
17016        fi
17017      else
17018        lt_prog_compiler_static_works_GCJ=yes
17019      fi
17020    fi
17021    $rm conftest*
17022    LDFLAGS="$save_LDFLAGS"
17023
17024 fi
17025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17026 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17027
17028 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17029     :
17030 else
17031     lt_prog_compiler_static_GCJ=
17032 fi
17033
17034
17035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17037 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   lt_cv_prog_compiler_c_o_GCJ=no
17041    $rm -r conftest 2>/dev/null
17042    mkdir conftest
17043    cd conftest
17044    mkdir out
17045    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17046
17047    lt_compiler_flag="-o out/conftest2.$ac_objext"
17048    # Insert the option either (1) after the last *FLAGS variable, or
17049    # (2) before a word containing "conftest.", or (3) at the end.
17050    # Note that $ac_compile itself does not contain backslashes and begins
17051    # with a dollar sign (not a hyphen), so the echo should work correctly.
17052    lt_compile=`echo "$ac_compile" | $SED \
17053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17055    -e 's:$: $lt_compiler_flag:'`
17056    (eval echo "\"\$as_me:17056: $lt_compile\"" >&5)
17057    (eval "$lt_compile" 2>out/conftest.err)
17058    ac_status=$?
17059    cat out/conftest.err >&5
17060    echo "$as_me:17060: \$? = $ac_status" >&5
17061    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17062    then
17063      # The compiler can only warn and ignore the option if not recognized
17064      # So say no if there are warnings
17065      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17066      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17067      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17068        lt_cv_prog_compiler_c_o_GCJ=yes
17069      fi
17070    fi
17071    chmod u+w . 2>&5
17072    $rm conftest*
17073    # SGI C++ compiler will create directory out/ii_files/ for
17074    # template instantiation
17075    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17076    $rm out/* && rmdir out
17077    cd ..
17078    rmdir conftest
17079    $rm conftest*
17080
17081 fi
17082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17084
17085
17086 hard_links="nottested"
17087 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17088   # do not overwrite the value of need_locks provided by the user
17089   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17091   hard_links=yes
17092   $rm conftest*
17093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094   touch conftest.a
17095   ln conftest.a conftest.b 2>&5 || hard_links=no
17096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17097   { echo "$as_me:$LINENO: result: $hard_links" >&5
17098 echo "${ECHO_T}$hard_links" >&6; }
17099   if test "$hard_links" = no; then
17100     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17102     need_locks=warn
17103   fi
17104 else
17105   need_locks=no
17106 fi
17107
17108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17110
17111   runpath_var=
17112   allow_undefined_flag_GCJ=
17113   enable_shared_with_static_runtimes_GCJ=no
17114   archive_cmds_GCJ=
17115   archive_expsym_cmds_GCJ=
17116   old_archive_From_new_cmds_GCJ=
17117   old_archive_from_expsyms_cmds_GCJ=
17118   export_dynamic_flag_spec_GCJ=
17119   whole_archive_flag_spec_GCJ=
17120   thread_safe_flag_spec_GCJ=
17121   hardcode_libdir_flag_spec_GCJ=
17122   hardcode_libdir_flag_spec_ld_GCJ=
17123   hardcode_libdir_separator_GCJ=
17124   hardcode_direct_GCJ=no
17125   hardcode_minus_L_GCJ=no
17126   hardcode_shlibpath_var_GCJ=unsupported
17127   link_all_deplibs_GCJ=unknown
17128   hardcode_automatic_GCJ=no
17129   module_cmds_GCJ=
17130   module_expsym_cmds_GCJ=
17131   always_export_symbols_GCJ=no
17132   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17133   # include_expsyms should be a list of space-separated symbols to be *always*
17134   # included in the symbol list
17135   include_expsyms_GCJ=
17136   # exclude_expsyms can be an extended regexp of symbols to exclude
17137   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17138   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17139   # as well as any symbol that contains `d'.
17140   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17141   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17142   # platforms (ab)use it in PIC code, but their linkers get confused if
17143   # the symbol is explicitly referenced.  Since portable code cannot
17144   # rely on this symbol name, it's probably fine to never include it in
17145   # preloaded symbol tables.
17146   extract_expsyms_cmds=
17147   # Just being paranoid about ensuring that cc_basename is set.
17148   for cc_temp in $compiler""; do
17149   case $cc_temp in
17150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17152     \-*) ;;
17153     *) break;;
17154   esac
17155 done
17156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17157
17158   case $host_os in
17159   cygwin* | mingw* | pw32*)
17160     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17161     # When not using gcc, we currently assume that we are using
17162     # Microsoft Visual C++.
17163     if test "$GCC" != yes; then
17164       with_gnu_ld=no
17165     fi
17166     ;;
17167   interix*)
17168     # we just hope/assume this is gcc and not c89 (= MSVC++)
17169     with_gnu_ld=yes
17170     ;;
17171   openbsd*)
17172     with_gnu_ld=no
17173     ;;
17174   esac
17175
17176   ld_shlibs_GCJ=yes
17177   if test "$with_gnu_ld" = yes; then
17178     # If archive_cmds runs LD, not CC, wlarc should be empty
17179     wlarc='${wl}'
17180
17181     # Set some defaults for GNU ld with shared library support. These
17182     # are reset later if shared libraries are not supported. Putting them
17183     # here allows them to be overridden if necessary.
17184     runpath_var=LD_RUN_PATH
17185     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17186     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17187     # ancient GNU ld didn't support --whole-archive et. al.
17188     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17189         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17190       else
17191         whole_archive_flag_spec_GCJ=
17192     fi
17193     supports_anon_versioning=no
17194     case `$LD -v 2>/dev/null` in
17195       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17196       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17197       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17198       *\ 2.11.*) ;; # other 2.11 versions
17199       *) supports_anon_versioning=yes ;;
17200     esac
17201
17202     # See if GNU ld supports shared libraries.
17203     case $host_os in
17204     aix3* | aix4* | aix5*)
17205       # On AIX/PPC, the GNU linker is very broken
17206       if test "$host_cpu" != ia64; then
17207         ld_shlibs_GCJ=no
17208         cat <<EOF 1>&2
17209
17210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17211 *** to be unable to reliably create shared libraries on AIX.
17212 *** Therefore, libtool is disabling shared libraries support.  If you
17213 *** really care for shared libraries, you may want to modify your PATH
17214 *** so that a non-GNU linker is found, and then restart.
17215
17216 EOF
17217       fi
17218       ;;
17219
17220     amigaos*)
17221       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)'
17222       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17223       hardcode_minus_L_GCJ=yes
17224
17225       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17226       # that the semantics of dynamic libraries on AmigaOS, at least up
17227       # to version 4, is to share data among multiple programs linked
17228       # with the same dynamic library.  Since this doesn't match the
17229       # behavior of shared libraries on other platforms, we can't use
17230       # them.
17231       ld_shlibs_GCJ=no
17232       ;;
17233
17234     beos*)
17235       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17236         allow_undefined_flag_GCJ=unsupported
17237         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17238         # support --undefined.  This deserves some investigation.  FIXME
17239         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17240       else
17241         ld_shlibs_GCJ=no
17242       fi
17243       ;;
17244
17245     cygwin* | mingw* | pw32*)
17246       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17247       # as there is no search path for DLLs.
17248       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17249       allow_undefined_flag_GCJ=unsupported
17250       always_export_symbols_GCJ=no
17251       enable_shared_with_static_runtimes_GCJ=yes
17252       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17253
17254       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17255         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17256         # If the export-symbols file already is a .def file (1st line
17257         # is EXPORTS), use it as is; otherwise, prepend...
17258         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17259           cp $export_symbols $output_objdir/$soname.def;
17260         else
17261           echo EXPORTS > $output_objdir/$soname.def;
17262           cat $export_symbols >> $output_objdir/$soname.def;
17263         fi~
17264         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17265       else
17266         ld_shlibs_GCJ=no
17267       fi
17268       ;;
17269
17270     interix[3-9]*)
17271       hardcode_direct_GCJ=no
17272       hardcode_shlibpath_var_GCJ=no
17273       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17274       export_dynamic_flag_spec_GCJ='${wl}-E'
17275       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17276       # Instead, shared libraries are loaded at an image base (0x10000000 by
17277       # default) and relocated if they conflict, which is a slow very memory
17278       # consuming and fragmenting process.  To avoid this, we pick a random,
17279       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17280       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17281       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'
17282       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'
17283       ;;
17284
17285     gnu* | linux* | k*bsd*-gnu)
17286       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17287         tmp_addflag=
17288         case $cc_basename,$host_cpu in
17289         pgcc*)                          # Portland Group C compiler
17290           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'
17291           tmp_addflag=' $pic_flag'
17292           ;;
17293         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17294           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'
17295           tmp_addflag=' $pic_flag -Mnomain' ;;
17296         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17297           tmp_addflag=' -i_dynamic' ;;
17298         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17299           tmp_addflag=' -i_dynamic -nofor_main' ;;
17300         ifc* | ifort*)                  # Intel Fortran compiler
17301           tmp_addflag=' -nofor_main' ;;
17302         esac
17303         case `$CC -V 2>&1 | sed 5q` in
17304         *Sun\ C*)                       # Sun C 5.9
17305           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'
17306           tmp_sharedflag='-G' ;;
17307         *Sun\ F*)                       # Sun Fortran 8.3
17308           tmp_sharedflag='-G' ;;
17309         *)
17310           tmp_sharedflag='-shared' ;;
17311         esac
17312         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17313
17314         if test $supports_anon_versioning = yes; then
17315           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17316   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17317   $echo "local: *; };" >> $output_objdir/$libname.ver~
17318           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17319         fi
17320       else
17321         ld_shlibs_GCJ=no
17322       fi
17323       ;;
17324
17325     netbsd*)
17326       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17327         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17328         wlarc=
17329       else
17330         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17332       fi
17333       ;;
17334
17335     solaris*)
17336       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17337         ld_shlibs_GCJ=no
17338         cat <<EOF 1>&2
17339
17340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17341 *** create shared libraries on Solaris systems.  Therefore, libtool
17342 *** is disabling shared libraries support.  We urge you to upgrade GNU
17343 *** binutils to release 2.9.1 or newer.  Another option is to modify
17344 *** your PATH or compiler configuration so that the native linker is
17345 *** used, and then restart.
17346
17347 EOF
17348       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17350         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17351       else
17352         ld_shlibs_GCJ=no
17353       fi
17354       ;;
17355
17356     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17357       case `$LD -v 2>&1` in
17358         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17359         ld_shlibs_GCJ=no
17360         cat <<_LT_EOF 1>&2
17361
17362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17363 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17364 *** is disabling shared libraries support.  We urge you to upgrade GNU
17365 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17366 *** your PATH or compiler configuration so that the native linker is
17367 *** used, and then restart.
17368
17369 _LT_EOF
17370         ;;
17371         *)
17372           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17373             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17374             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17375             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17376           else
17377             ld_shlibs_GCJ=no
17378           fi
17379         ;;
17380       esac
17381       ;;
17382
17383     sunos4*)
17384       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17385       wlarc=
17386       hardcode_direct_GCJ=yes
17387       hardcode_shlibpath_var_GCJ=no
17388       ;;
17389
17390     *)
17391       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17392         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394       else
17395         ld_shlibs_GCJ=no
17396       fi
17397       ;;
17398     esac
17399
17400     if test "$ld_shlibs_GCJ" = no; then
17401       runpath_var=
17402       hardcode_libdir_flag_spec_GCJ=
17403       export_dynamic_flag_spec_GCJ=
17404       whole_archive_flag_spec_GCJ=
17405     fi
17406   else
17407     # PORTME fill in a description of your system's linker (not GNU ld)
17408     case $host_os in
17409     aix3*)
17410       allow_undefined_flag_GCJ=unsupported
17411       always_export_symbols_GCJ=yes
17412       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'
17413       # Note: this linker hardcodes the directories in LIBPATH if there
17414       # are no directories specified by -L.
17415       hardcode_minus_L_GCJ=yes
17416       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17417         # Neither direct hardcoding nor static linking is supported with a
17418         # broken collect2.
17419         hardcode_direct_GCJ=unsupported
17420       fi
17421       ;;
17422
17423     aix4* | aix5*)
17424       if test "$host_cpu" = ia64; then
17425         # On IA64, the linker does run time linking by default, so we don't
17426         # have to do anything special.
17427         aix_use_runtimelinking=no
17428         exp_sym_flag='-Bexport'
17429         no_entry_flag=""
17430       else
17431         # If we're using GNU nm, then we don't want the "-C" option.
17432         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17433         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17434           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'
17435         else
17436           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'
17437         fi
17438         aix_use_runtimelinking=no
17439
17440         # Test if we are trying to use run time linking or normal
17441         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17442         # need to do runtime linking.
17443         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17444           for ld_flag in $LDFLAGS; do
17445           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17446             aix_use_runtimelinking=yes
17447             break
17448           fi
17449           done
17450           ;;
17451         esac
17452
17453         exp_sym_flag='-bexport'
17454         no_entry_flag='-bnoentry'
17455       fi
17456
17457       # When large executables or shared objects are built, AIX ld can
17458       # have problems creating the table of contents.  If linking a library
17459       # or program results in "error TOC overflow" add -mminimal-toc to
17460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17462
17463       archive_cmds_GCJ=''
17464       hardcode_direct_GCJ=yes
17465       hardcode_libdir_separator_GCJ=':'
17466       link_all_deplibs_GCJ=yes
17467
17468       if test "$GCC" = yes; then
17469         case $host_os in aix4.[012]|aix4.[012].*)
17470         # We only want to do this on AIX 4.2 and lower, the check
17471         # below for broken collect2 doesn't work under 4.3+
17472           collect2name=`${CC} -print-prog-name=collect2`
17473           if test -f "$collect2name" && \
17474            strings "$collect2name" | grep resolve_lib_name >/dev/null
17475           then
17476           # We have reworked collect2
17477           :
17478           else
17479           # We have old collect2
17480           hardcode_direct_GCJ=unsupported
17481           # It fails to find uninstalled libraries when the uninstalled
17482           # path is not listed in the libpath.  Setting hardcode_minus_L
17483           # to unsupported forces relinking
17484           hardcode_minus_L_GCJ=yes
17485           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17486           hardcode_libdir_separator_GCJ=
17487           fi
17488           ;;
17489         esac
17490         shared_flag='-shared'
17491         if test "$aix_use_runtimelinking" = yes; then
17492           shared_flag="$shared_flag "'${wl}-G'
17493         fi
17494       else
17495         # not using gcc
17496         if test "$host_cpu" = ia64; then
17497         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17498         # chokes on -Wl,-G. The following line is correct:
17499           shared_flag='-G'
17500         else
17501           if test "$aix_use_runtimelinking" = yes; then
17502             shared_flag='${wl}-G'
17503           else
17504             shared_flag='${wl}-bM:SRE'
17505           fi
17506         fi
17507       fi
17508
17509       # It seems that -bexpall does not export symbols beginning with
17510       # underscore (_), so it is better to generate a list of symbols to export.
17511       always_export_symbols_GCJ=yes
17512       if test "$aix_use_runtimelinking" = yes; then
17513         # Warning - without using the other runtime loading flags (-brtl),
17514         # -berok will link without error, but may produce a broken library.
17515         allow_undefined_flag_GCJ='-berok'
17516        # Determine the default libpath from the value encoded in an empty executable.
17517        cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h.  */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h.  */
17523
17524 int
17525 main ()
17526 {
17527
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_link") 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && {
17546          test -z "$ac_c_werror_flag" ||
17547          test ! -s conftest.err
17548        } && test -s conftest$ac_exeext &&
17549        $as_test_x conftest$ac_exeext; then
17550
17551 lt_aix_libpath_sed='
17552     /Import File Strings/,/^$/ {
17553         /^0/ {
17554             s/^0  *\(.*\)$/\1/
17555             p
17556         }
17557     }'
17558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17559 # Check for a 64-bit object if we didn't find anything.
17560 if test -z "$aix_libpath"; then
17561   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17562 fi
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567
17568 fi
17569
17570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17571       conftest$ac_exeext conftest.$ac_ext
17572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17573
17574        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17575         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"
17576        else
17577         if test "$host_cpu" = ia64; then
17578           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17579           allow_undefined_flag_GCJ="-z nodefs"
17580           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"
17581         else
17582          # Determine the default libpath from the value encoded in an empty executable.
17583          cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589
17590 int
17591 main ()
17592 {
17593
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } && {
17612          test -z "$ac_c_werror_flag" ||
17613          test ! -s conftest.err
17614        } && test -s conftest$ac_exeext &&
17615        $as_test_x conftest$ac_exeext; then
17616
17617 lt_aix_libpath_sed='
17618     /Import File Strings/,/^$/ {
17619         /^0/ {
17620             s/^0  *\(.*\)$/\1/
17621             p
17622         }
17623     }'
17624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17625 # Check for a 64-bit object if we didn't find anything.
17626 if test -z "$aix_libpath"; then
17627   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628 fi
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637       conftest$ac_exeext conftest.$ac_ext
17638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17639
17640          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17641           # Warning - without using the other run time loading flags,
17642           # -berok will link without error, but may produce a broken library.
17643           no_undefined_flag_GCJ=' ${wl}-bernotok'
17644           allow_undefined_flag_GCJ=' ${wl}-berok'
17645           # Exported symbols can be pulled into shared objects from archives
17646           whole_archive_flag_spec_GCJ='$convenience'
17647           archive_cmds_need_lc_GCJ=yes
17648           # This is similar to how AIX traditionally builds its shared libraries.
17649           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'
17650         fi
17651       fi
17652       ;;
17653
17654     amigaos*)
17655       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)'
17656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657       hardcode_minus_L_GCJ=yes
17658       # see comment about different semantics on the GNU ld section
17659       ld_shlibs_GCJ=no
17660       ;;
17661
17662     bsdi[45]*)
17663       export_dynamic_flag_spec_GCJ=-rdynamic
17664       ;;
17665
17666     cygwin* | mingw* | pw32*)
17667       # When not using gcc, we currently assume that we are using
17668       # Microsoft Visual C++.
17669       # hardcode_libdir_flag_spec is actually meaningless, as there is
17670       # no search path for DLLs.
17671       hardcode_libdir_flag_spec_GCJ=' '
17672       allow_undefined_flag_GCJ=unsupported
17673       # Tell ltmain to make .lib files, not .a files.
17674       libext=lib
17675       # Tell ltmain to make .dll files, not .so files.
17676       shrext_cmds=".dll"
17677       # FIXME: Setting linknames here is a bad hack.
17678       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17679       # The linker will automatically build a .lib file if we build a DLL.
17680       old_archive_From_new_cmds_GCJ='true'
17681       # FIXME: Should let the user specify the lib program.
17682       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17683       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17684       enable_shared_with_static_runtimes_GCJ=yes
17685       ;;
17686
17687     darwin* | rhapsody*)
17688       case $host_os in
17689         rhapsody* | darwin1.[012])
17690          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17691          ;;
17692        *) # Darwin 1.3 on
17693          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17694            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17695          else
17696            case ${MACOSX_DEPLOYMENT_TARGET} in
17697              10.[012])
17698                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17699                ;;
17700              10.*)
17701                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17702                ;;
17703            esac
17704          fi
17705          ;;
17706       esac
17707       archive_cmds_need_lc_GCJ=no
17708       hardcode_direct_GCJ=no
17709       hardcode_automatic_GCJ=yes
17710       hardcode_shlibpath_var_GCJ=unsupported
17711       whole_archive_flag_spec_GCJ=''
17712       link_all_deplibs_GCJ=yes
17713     if test "$GCC" = yes ; then
17714         output_verbose_link_cmd='echo'
17715         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17716       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17717       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17718       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}'
17719       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}'
17720     else
17721       case $cc_basename in
17722         xlc*)
17723          output_verbose_link_cmd='echo'
17724          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17725          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17726           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17727          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}'
17728           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}'
17729           ;;
17730        *)
17731          ld_shlibs_GCJ=no
17732           ;;
17733       esac
17734     fi
17735       ;;
17736
17737     dgux*)
17738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17740       hardcode_shlibpath_var_GCJ=no
17741       ;;
17742
17743     freebsd1*)
17744       ld_shlibs_GCJ=no
17745       ;;
17746
17747     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17748     # support.  Future versions do this automatically, but an explicit c++rt0.o
17749     # does not break anything, and helps significantly (at the cost of a little
17750     # extra space).
17751     freebsd2.2*)
17752       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754       hardcode_direct_GCJ=yes
17755       hardcode_shlibpath_var_GCJ=no
17756       ;;
17757
17758     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17759     freebsd2*)
17760       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17761       hardcode_direct_GCJ=yes
17762       hardcode_minus_L_GCJ=yes
17763       hardcode_shlibpath_var_GCJ=no
17764       ;;
17765
17766     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17767     freebsd* | dragonfly*)
17768       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17769       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17770       hardcode_direct_GCJ=yes
17771       hardcode_shlibpath_var_GCJ=no
17772       ;;
17773
17774     hpux9*)
17775       if test "$GCC" = yes; then
17776         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'
17777       else
17778         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'
17779       fi
17780       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17781       hardcode_libdir_separator_GCJ=:
17782       hardcode_direct_GCJ=yes
17783
17784       # hardcode_minus_L: Not really in the search PATH,
17785       # but as the default location of the library.
17786       hardcode_minus_L_GCJ=yes
17787       export_dynamic_flag_spec_GCJ='${wl}-E'
17788       ;;
17789
17790     hpux10*)
17791       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17793       else
17794         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17795       fi
17796       if test "$with_gnu_ld" = no; then
17797         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17798         hardcode_libdir_separator_GCJ=:
17799
17800         hardcode_direct_GCJ=yes
17801         export_dynamic_flag_spec_GCJ='${wl}-E'
17802
17803         # hardcode_minus_L: Not really in the search PATH,
17804         # but as the default location of the library.
17805         hardcode_minus_L_GCJ=yes
17806       fi
17807       ;;
17808
17809     hpux11*)
17810       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17811         case $host_cpu in
17812         hppa*64*)
17813           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814           ;;
17815         ia64*)
17816           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17817           ;;
17818         *)
17819           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17820           ;;
17821         esac
17822       else
17823         case $host_cpu in
17824         hppa*64*)
17825           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17826           ;;
17827         ia64*)
17828           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17829           ;;
17830         *)
17831           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17832           ;;
17833         esac
17834       fi
17835       if test "$with_gnu_ld" = no; then
17836         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17837         hardcode_libdir_separator_GCJ=:
17838
17839         case $host_cpu in
17840         hppa*64*|ia64*)
17841           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17842           hardcode_direct_GCJ=no
17843           hardcode_shlibpath_var_GCJ=no
17844           ;;
17845         *)
17846           hardcode_direct_GCJ=yes
17847           export_dynamic_flag_spec_GCJ='${wl}-E'
17848
17849           # hardcode_minus_L: Not really in the search PATH,
17850           # but as the default location of the library.
17851           hardcode_minus_L_GCJ=yes
17852           ;;
17853         esac
17854       fi
17855       ;;
17856
17857     irix5* | irix6* | nonstopux*)
17858       if test "$GCC" = yes; then
17859         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'
17860       else
17861         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'
17862         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17863       fi
17864       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865       hardcode_libdir_separator_GCJ=:
17866       link_all_deplibs_GCJ=yes
17867       ;;
17868
17869     netbsd*)
17870       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17871         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17872       else
17873         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17874       fi
17875       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17876       hardcode_direct_GCJ=yes
17877       hardcode_shlibpath_var_GCJ=no
17878       ;;
17879
17880     newsos6)
17881       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17882       hardcode_direct_GCJ=yes
17883       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17884       hardcode_libdir_separator_GCJ=:
17885       hardcode_shlibpath_var_GCJ=no
17886       ;;
17887
17888     openbsd*)
17889       if test -f /usr/libexec/ld.so; then
17890         hardcode_direct_GCJ=yes
17891         hardcode_shlibpath_var_GCJ=no
17892         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17893           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17894           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17895           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17896           export_dynamic_flag_spec_GCJ='${wl}-E'
17897         else
17898           case $host_os in
17899            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17900              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17902              ;;
17903            *)
17904              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17905              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17906              ;;
17907           esac
17908         fi
17909       else
17910         ld_shlibs_GCJ=no
17911       fi
17912       ;;
17913
17914     os2*)
17915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916       hardcode_minus_L_GCJ=yes
17917       allow_undefined_flag_GCJ=unsupported
17918       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'
17919       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17920       ;;
17921
17922     osf3*)
17923       if test "$GCC" = yes; then
17924         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17925         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'
17926       else
17927         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17928         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'
17929       fi
17930       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17931       hardcode_libdir_separator_GCJ=:
17932       ;;
17933
17934     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17935       if test "$GCC" = yes; then
17936         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17937         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'
17938         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17939       else
17940         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941         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'
17942         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~
17943         $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'
17944
17945         # Both c and cxx compiler support -rpath directly
17946         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17947       fi
17948       hardcode_libdir_separator_GCJ=:
17949       ;;
17950
17951     solaris*)
17952       no_undefined_flag_GCJ=' -z text'
17953       if test "$GCC" = yes; then
17954         wlarc='${wl}'
17955         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17957           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17958       else
17959         wlarc=''
17960         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17962         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17963       fi
17964       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17965       hardcode_shlibpath_var_GCJ=no
17966       case $host_os in
17967       solaris2.[0-5] | solaris2.[0-5].*) ;;
17968       *)
17969         # The compiler driver will combine and reorder linker options,
17970         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17971         # but is careful enough not to reorder.
17972         # Supported since Solaris 2.6 (maybe 2.5.1?)
17973         if test "$GCC" = yes; then
17974           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17975         else
17976           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17977         fi
17978         ;;
17979       esac
17980       link_all_deplibs_GCJ=yes
17981       ;;
17982
17983     sunos4*)
17984       if test "x$host_vendor" = xsequent; then
17985         # Use $CC to link under sequent, because it throws in some extra .o
17986         # files that make .init and .fini sections work.
17987         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17988       else
17989         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17990       fi
17991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992       hardcode_direct_GCJ=yes
17993       hardcode_minus_L_GCJ=yes
17994       hardcode_shlibpath_var_GCJ=no
17995       ;;
17996
17997     sysv4)
17998       case $host_vendor in
17999         sni)
18000           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001           hardcode_direct_GCJ=yes # is this really true???
18002         ;;
18003         siemens)
18004           ## LD is ld it makes a PLAMLIB
18005           ## CC just makes a GrossModule.
18006           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18008           hardcode_direct_GCJ=no
18009         ;;
18010         motorola)
18011           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18013         ;;
18014       esac
18015       runpath_var='LD_RUN_PATH'
18016       hardcode_shlibpath_var_GCJ=no
18017       ;;
18018
18019     sysv4.3*)
18020       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18021       hardcode_shlibpath_var_GCJ=no
18022       export_dynamic_flag_spec_GCJ='-Bexport'
18023       ;;
18024
18025     sysv4*MP*)
18026       if test -d /usr/nec; then
18027         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028         hardcode_shlibpath_var_GCJ=no
18029         runpath_var=LD_RUN_PATH
18030         hardcode_runpath_var=yes
18031         ld_shlibs_GCJ=yes
18032       fi
18033       ;;
18034
18035     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18036       no_undefined_flag_GCJ='${wl}-z,text'
18037       archive_cmds_need_lc_GCJ=no
18038       hardcode_shlibpath_var_GCJ=no
18039       runpath_var='LD_RUN_PATH'
18040
18041       if test "$GCC" = yes; then
18042         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18044       else
18045         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18047       fi
18048       ;;
18049
18050     sysv5* | sco3.2v5* | sco5v6*)
18051       # Note: We can NOT use -z defs as we might desire, because we do not
18052       # link with -lc, and that would cause any symbols used from libc to
18053       # always be unresolved, which means just about no library would
18054       # ever link correctly.  If we're not using GNU ld we use -z text
18055       # though, which does catch some bad symbols but isn't as heavy-handed
18056       # as -z defs.
18057       no_undefined_flag_GCJ='${wl}-z,text'
18058       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18059       archive_cmds_need_lc_GCJ=no
18060       hardcode_shlibpath_var_GCJ=no
18061       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18062       hardcode_libdir_separator_GCJ=':'
18063       link_all_deplibs_GCJ=yes
18064       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18065       runpath_var='LD_RUN_PATH'
18066
18067       if test "$GCC" = yes; then
18068         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070       else
18071         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18073       fi
18074       ;;
18075
18076     uts4*)
18077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079       hardcode_shlibpath_var_GCJ=no
18080       ;;
18081
18082     *)
18083       ld_shlibs_GCJ=no
18084       ;;
18085     esac
18086   fi
18087
18088 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18089 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18090 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18091
18092 #
18093 # Do we need to explicitly link libc?
18094 #
18095 case "x$archive_cmds_need_lc_GCJ" in
18096 x|xyes)
18097   # Assume -lc should be added
18098   archive_cmds_need_lc_GCJ=yes
18099
18100   if test "$enable_shared" = yes && test "$GCC" = yes; then
18101     case $archive_cmds_GCJ in
18102     *'~'*)
18103       # FIXME: we may have to deal with multi-command sequences.
18104       ;;
18105     '$CC '*)
18106       # Test whether the compiler implicitly links with -lc since on some
18107       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18108       # to ld, don't add -lc before -lgcc.
18109       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18111       $rm conftest*
18112       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18113
18114       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115   (eval $ac_compile) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } 2>conftest.err; then
18119         soname=conftest
18120         lib=conftest
18121         libobjs=conftest.$ac_objext
18122         deplibs=
18123         wl=$lt_prog_compiler_wl_GCJ
18124         pic_flag=$lt_prog_compiler_pic_GCJ
18125         compiler_flags=-v
18126         linker_flags=-v
18127         verstring=
18128         output_objdir=.
18129         libname=conftest
18130         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18131         allow_undefined_flag_GCJ=
18132         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18133   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }
18137         then
18138           archive_cmds_need_lc_GCJ=no
18139         else
18140           archive_cmds_need_lc_GCJ=yes
18141         fi
18142         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18143       else
18144         cat conftest.err 1>&5
18145       fi
18146       $rm conftest*
18147       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18148 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18149       ;;
18150     esac
18151   fi
18152   ;;
18153 esac
18154
18155 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18156 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18157 library_names_spec=
18158 libname_spec='lib$name'
18159 soname_spec=
18160 shrext_cmds=".so"
18161 postinstall_cmds=
18162 postuninstall_cmds=
18163 finish_cmds=
18164 finish_eval=
18165 shlibpath_var=
18166 shlibpath_overrides_runpath=unknown
18167 version_type=none
18168 dynamic_linker="$host_os ld.so"
18169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18170
18171 need_lib_prefix=unknown
18172 hardcode_into_libs=no
18173
18174 # when you set need_version to no, make sure it does not cause -set_version
18175 # flags to be left without arguments
18176 need_version=unknown
18177
18178 case $host_os in
18179 aix3*)
18180   version_type=linux
18181   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18182   shlibpath_var=LIBPATH
18183
18184   # AIX 3 has no versioning support, so we append a major version to the name.
18185   soname_spec='${libname}${release}${shared_ext}$major'
18186   ;;
18187
18188 aix4* | aix5*)
18189   version_type=linux
18190   need_lib_prefix=no
18191   need_version=no
18192   hardcode_into_libs=yes
18193   if test "$host_cpu" = ia64; then
18194     # AIX 5 supports IA64
18195     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18196     shlibpath_var=LD_LIBRARY_PATH
18197   else
18198     # With GCC up to 2.95.x, collect2 would create an import file
18199     # for dependence libraries.  The import file would start with
18200     # the line `#! .'.  This would cause the generated library to
18201     # depend on `.', always an invalid library.  This was fixed in
18202     # development snapshots of GCC prior to 3.0.
18203     case $host_os in
18204       aix4 | aix4.[01] | aix4.[01].*)
18205       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18206            echo ' yes '
18207            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18208         :
18209       else
18210         can_build_shared=no
18211       fi
18212       ;;
18213     esac
18214     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18215     # soname into executable. Probably we can add versioning support to
18216     # collect2, so additional links can be useful in future.
18217     if test "$aix_use_runtimelinking" = yes; then
18218       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18219       # instead of lib<name>.a to let people know that these are not
18220       # typical AIX shared libraries.
18221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222     else
18223       # We preserve .a as extension for shared libraries through AIX4.2
18224       # and later when we are not doing run time linking.
18225       library_names_spec='${libname}${release}.a $libname.a'
18226       soname_spec='${libname}${release}${shared_ext}$major'
18227     fi
18228     shlibpath_var=LIBPATH
18229   fi
18230   ;;
18231
18232 amigaos*)
18233   library_names_spec='$libname.ixlibrary $libname.a'
18234   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18235   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'
18236   ;;
18237
18238 beos*)
18239   library_names_spec='${libname}${shared_ext}'
18240   dynamic_linker="$host_os ld.so"
18241   shlibpath_var=LIBRARY_PATH
18242   ;;
18243
18244 bsdi[45]*)
18245   version_type=linux
18246   need_version=no
18247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248   soname_spec='${libname}${release}${shared_ext}$major'
18249   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18250   shlibpath_var=LD_LIBRARY_PATH
18251   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18252   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18253   # the default ld.so.conf also contains /usr/contrib/lib and
18254   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18255   # libtool to hard-code these into programs
18256   ;;
18257
18258 cygwin* | mingw* | pw32*)
18259   version_type=windows
18260   shrext_cmds=".dll"
18261   need_version=no
18262   need_lib_prefix=no
18263
18264   case $GCC,$host_os in
18265   yes,cygwin* | yes,mingw* | yes,pw32*)
18266     library_names_spec='$libname.dll.a'
18267     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18268     postinstall_cmds='base_file=`basename \${file}`~
18269       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18270       dldir=$destdir/`dirname \$dlpath`~
18271       test -d \$dldir || mkdir -p \$dldir~
18272       $install_prog $dir/$dlname \$dldir/$dlname~
18273       chmod a+x \$dldir/$dlname'
18274     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18275       dlpath=$dir/\$dldll~
18276        $rm \$dlpath'
18277     shlibpath_overrides_runpath=yes
18278
18279     case $host_os in
18280     cygwin*)
18281       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18282       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18283       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18284       ;;
18285     mingw*)
18286       # MinGW DLLs use traditional 'lib' prefix
18287       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18288       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18289       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18290         # It is most probably a Windows format PATH printed by
18291         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18292         # path with ; separators, and with drive letters. We can handle the
18293         # drive letters (cygwin fileutils understands them), so leave them,
18294         # especially as we might pass files found there to a mingw objdump,
18295         # which wouldn't understand a cygwinified path. Ahh.
18296         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18297       else
18298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18299       fi
18300       ;;
18301     pw32*)
18302       # pw32 DLLs use 'pw' prefix rather than 'lib'
18303       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18304       ;;
18305     esac
18306     ;;
18307
18308   *)
18309     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18310     ;;
18311   esac
18312   dynamic_linker='Win32 ld.exe'
18313   # FIXME: first we should search . and the directory the executable is in
18314   shlibpath_var=PATH
18315   ;;
18316
18317 darwin* | rhapsody*)
18318   dynamic_linker="$host_os dyld"
18319   version_type=darwin
18320   need_lib_prefix=no
18321   need_version=no
18322   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18323   soname_spec='${libname}${release}${major}$shared_ext'
18324   shlibpath_overrides_runpath=yes
18325   shlibpath_var=DYLD_LIBRARY_PATH
18326   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18327
18328   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18329   ;;
18330
18331 dgux*)
18332   version_type=linux
18333   need_lib_prefix=no
18334   need_version=no
18335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18336   soname_spec='${libname}${release}${shared_ext}$major'
18337   shlibpath_var=LD_LIBRARY_PATH
18338   ;;
18339
18340 freebsd1*)
18341   dynamic_linker=no
18342   ;;
18343
18344 freebsd* | dragonfly*)
18345   # DragonFly does not have aout.  When/if they implement a new
18346   # versioning mechanism, adjust this.
18347   if test -x /usr/bin/objformat; then
18348     objformat=`/usr/bin/objformat`
18349   else
18350     case $host_os in
18351     freebsd[123]*) objformat=aout ;;
18352     *) objformat=elf ;;
18353     esac
18354   fi
18355   version_type=freebsd-$objformat
18356   case $version_type in
18357     freebsd-elf*)
18358       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18359       need_version=no
18360       need_lib_prefix=no
18361       ;;
18362     freebsd-*)
18363       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18364       need_version=yes
18365       ;;
18366   esac
18367   shlibpath_var=LD_LIBRARY_PATH
18368   case $host_os in
18369   freebsd2*)
18370     shlibpath_overrides_runpath=yes
18371     ;;
18372   freebsd3.[01]* | freebsdelf3.[01]*)
18373     shlibpath_overrides_runpath=yes
18374     hardcode_into_libs=yes
18375     ;;
18376   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18377   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18378     shlibpath_overrides_runpath=no
18379     hardcode_into_libs=yes
18380     ;;
18381   *) # from 4.6 on, and DragonFly
18382     shlibpath_overrides_runpath=yes
18383     hardcode_into_libs=yes
18384     ;;
18385   esac
18386   ;;
18387
18388 gnu*)
18389   version_type=linux
18390   need_lib_prefix=no
18391   need_version=no
18392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18393   soname_spec='${libname}${release}${shared_ext}$major'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   hardcode_into_libs=yes
18396   ;;
18397
18398 hpux9* | hpux10* | hpux11*)
18399   # Give a soname corresponding to the major version so that dld.sl refuses to
18400   # link against other versions.
18401   version_type=sunos
18402   need_lib_prefix=no
18403   need_version=no
18404   case $host_cpu in
18405   ia64*)
18406     shrext_cmds='.so'
18407     hardcode_into_libs=yes
18408     dynamic_linker="$host_os dld.so"
18409     shlibpath_var=LD_LIBRARY_PATH
18410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412     soname_spec='${libname}${release}${shared_ext}$major'
18413     if test "X$HPUX_IA64_MODE" = X32; then
18414       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18415     else
18416       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18417     fi
18418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18419     ;;
18420    hppa*64*)
18421      shrext_cmds='.sl'
18422      hardcode_into_libs=yes
18423      dynamic_linker="$host_os dld.sl"
18424      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18425      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427      soname_spec='${libname}${release}${shared_ext}$major'
18428      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18429      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18430      ;;
18431    *)
18432     shrext_cmds='.sl'
18433     dynamic_linker="$host_os dld.sl"
18434     shlibpath_var=SHLIB_PATH
18435     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437     soname_spec='${libname}${release}${shared_ext}$major'
18438     ;;
18439   esac
18440   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18441   postinstall_cmds='chmod 555 $lib'
18442   ;;
18443
18444 interix[3-9]*)
18445   version_type=linux
18446   need_lib_prefix=no
18447   need_version=no
18448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18449   soname_spec='${libname}${release}${shared_ext}$major'
18450   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18451   shlibpath_var=LD_LIBRARY_PATH
18452   shlibpath_overrides_runpath=no
18453   hardcode_into_libs=yes
18454   ;;
18455
18456 irix5* | irix6* | nonstopux*)
18457   case $host_os in
18458     nonstopux*) version_type=nonstopux ;;
18459     *)
18460         if test "$lt_cv_prog_gnu_ld" = yes; then
18461                 version_type=linux
18462         else
18463                 version_type=irix
18464         fi ;;
18465   esac
18466   need_lib_prefix=no
18467   need_version=no
18468   soname_spec='${libname}${release}${shared_ext}$major'
18469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18470   case $host_os in
18471   irix5* | nonstopux*)
18472     libsuff= shlibsuff=
18473     ;;
18474   *)
18475     case $LD in # libtool.m4 will add one of these switches to LD
18476     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18477       libsuff= shlibsuff= libmagic=32-bit;;
18478     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18479       libsuff=32 shlibsuff=N32 libmagic=N32;;
18480     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18481       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18482     *) libsuff= shlibsuff= libmagic=never-match;;
18483     esac
18484     ;;
18485   esac
18486   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18487   shlibpath_overrides_runpath=no
18488   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18489   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18490   hardcode_into_libs=yes
18491   ;;
18492
18493 # No shared lib support for Linux oldld, aout, or coff.
18494 linux*oldld* | linux*aout* | linux*coff*)
18495   dynamic_linker=no
18496   ;;
18497
18498 # This must be Linux ELF.
18499 linux* | k*bsd*-gnu)
18500   version_type=linux
18501   need_lib_prefix=no
18502   need_version=no
18503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504   soname_spec='${libname}${release}${shared_ext}$major'
18505   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18506   shlibpath_var=LD_LIBRARY_PATH
18507   shlibpath_overrides_runpath=no
18508   # This implies no fast_install, which is unacceptable.
18509   # Some rework will be needed to allow for fast_install
18510   # before this can be enabled.
18511   hardcode_into_libs=yes
18512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18514
18515   # Append ld.so.conf contents to the search path
18516   if test -f /etc/ld.so.conf; then
18517     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' ' '`
18518     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18519   fi
18520
18521   # We used to test for /lib/ld.so.1 and disable shared libraries on
18522   # powerpc, because MkLinux only supported shared libraries with the
18523   # GNU dynamic linker.  Since this was broken with cross compilers,
18524   # most powerpc-linux boxes support dynamic linking these days and
18525   # people can always --disable-shared, the test was removed, and we
18526   # assume the GNU/Linux dynamic linker is in use.
18527   dynamic_linker='GNU/Linux ld.so'
18528   ;;
18529
18530 netbsd*)
18531   version_type=sunos
18532   need_lib_prefix=no
18533   need_version=no
18534   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18536     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18537     dynamic_linker='NetBSD (a.out) ld.so'
18538   else
18539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18540     soname_spec='${libname}${release}${shared_ext}$major'
18541     dynamic_linker='NetBSD ld.elf_so'
18542   fi
18543   shlibpath_var=LD_LIBRARY_PATH
18544   shlibpath_overrides_runpath=yes
18545   hardcode_into_libs=yes
18546   ;;
18547
18548 newsos6)
18549   version_type=linux
18550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551   shlibpath_var=LD_LIBRARY_PATH
18552   shlibpath_overrides_runpath=yes
18553   ;;
18554
18555 nto-qnx*)
18556   version_type=linux
18557   need_lib_prefix=no
18558   need_version=no
18559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560   soname_spec='${libname}${release}${shared_ext}$major'
18561   shlibpath_var=LD_LIBRARY_PATH
18562   shlibpath_overrides_runpath=yes
18563   ;;
18564
18565 openbsd*)
18566   version_type=sunos
18567   sys_lib_dlsearch_path_spec="/usr/lib"
18568   need_lib_prefix=no
18569   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18570   case $host_os in
18571     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18572     *)                         need_version=no  ;;
18573   esac
18574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18576   shlibpath_var=LD_LIBRARY_PATH
18577   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18578     case $host_os in
18579       openbsd2.[89] | openbsd2.[89].*)
18580         shlibpath_overrides_runpath=no
18581         ;;
18582       *)
18583         shlibpath_overrides_runpath=yes
18584         ;;
18585       esac
18586   else
18587     shlibpath_overrides_runpath=yes
18588   fi
18589   ;;
18590
18591 os2*)
18592   libname_spec='$name'
18593   shrext_cmds=".dll"
18594   need_lib_prefix=no
18595   library_names_spec='$libname${shared_ext} $libname.a'
18596   dynamic_linker='OS/2 ld.exe'
18597   shlibpath_var=LIBPATH
18598   ;;
18599
18600 osf3* | osf4* | osf5*)
18601   version_type=osf
18602   need_lib_prefix=no
18603   need_version=no
18604   soname_spec='${libname}${release}${shared_ext}$major'
18605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606   shlibpath_var=LD_LIBRARY_PATH
18607   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18608   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18609   ;;
18610
18611 rdos*)
18612   dynamic_linker=no
18613   ;;
18614
18615 solaris*)
18616   version_type=linux
18617   need_lib_prefix=no
18618   need_version=no
18619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620   soname_spec='${libname}${release}${shared_ext}$major'
18621   shlibpath_var=LD_LIBRARY_PATH
18622   shlibpath_overrides_runpath=yes
18623   hardcode_into_libs=yes
18624   # ldd complains unless libraries are executable
18625   postinstall_cmds='chmod +x $lib'
18626   ;;
18627
18628 sunos4*)
18629   version_type=sunos
18630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18631   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18632   shlibpath_var=LD_LIBRARY_PATH
18633   shlibpath_overrides_runpath=yes
18634   if test "$with_gnu_ld" = yes; then
18635     need_lib_prefix=no
18636   fi
18637   need_version=yes
18638   ;;
18639
18640 sysv4 | sysv4.3*)
18641   version_type=linux
18642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643   soname_spec='${libname}${release}${shared_ext}$major'
18644   shlibpath_var=LD_LIBRARY_PATH
18645   case $host_vendor in
18646     sni)
18647       shlibpath_overrides_runpath=no
18648       need_lib_prefix=no
18649       export_dynamic_flag_spec='${wl}-Blargedynsym'
18650       runpath_var=LD_RUN_PATH
18651       ;;
18652     siemens)
18653       need_lib_prefix=no
18654       ;;
18655     motorola)
18656       need_lib_prefix=no
18657       need_version=no
18658       shlibpath_overrides_runpath=no
18659       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18660       ;;
18661   esac
18662   ;;
18663
18664 sysv4*MP*)
18665   if test -d /usr/nec ;then
18666     version_type=linux
18667     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18668     soname_spec='$libname${shared_ext}.$major'
18669     shlibpath_var=LD_LIBRARY_PATH
18670   fi
18671   ;;
18672
18673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18674   version_type=freebsd-elf
18675   need_lib_prefix=no
18676   need_version=no
18677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18678   soname_spec='${libname}${release}${shared_ext}$major'
18679   shlibpath_var=LD_LIBRARY_PATH
18680   hardcode_into_libs=yes
18681   if test "$with_gnu_ld" = yes; then
18682     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18683     shlibpath_overrides_runpath=no
18684   else
18685     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18686     shlibpath_overrides_runpath=yes
18687     case $host_os in
18688       sco3.2v5*)
18689         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18690         ;;
18691     esac
18692   fi
18693   sys_lib_dlsearch_path_spec='/usr/lib'
18694   ;;
18695
18696 uts4*)
18697   version_type=linux
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699   soname_spec='${libname}${release}${shared_ext}$major'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   ;;
18702
18703 *)
18704   dynamic_linker=no
18705   ;;
18706 esac
18707 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18708 echo "${ECHO_T}$dynamic_linker" >&6; }
18709 test "$dynamic_linker" = no && can_build_shared=no
18710
18711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18714 fi
18715
18716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718 hardcode_action_GCJ=
18719 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720    test -n "$runpath_var_GCJ" || \
18721    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18722
18723   # We can hardcode non-existant directories.
18724   if test "$hardcode_direct_GCJ" != no &&
18725      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18726      # have to relink, otherwise we might link with an installed library
18727      # when we should be linking with a yet-to-be-installed one
18728      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729      test "$hardcode_minus_L_GCJ" != no; then
18730     # Linking always hardcodes the temporary library directory.
18731     hardcode_action_GCJ=relink
18732   else
18733     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18734     hardcode_action_GCJ=immediate
18735   fi
18736 else
18737   # We cannot hardcode anything, or else we can only hardcode existing
18738   # directories.
18739   hardcode_action_GCJ=unsupported
18740 fi
18741 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18743
18744 if test "$hardcode_action_GCJ" = relink; then
18745   # Fast installation is not supported
18746   enable_fast_install=no
18747 elif test "$shlibpath_overrides_runpath" = yes ||
18748      test "$enable_shared" = no; then
18749   # Fast installation is not necessary
18750   enable_fast_install=needless
18751 fi
18752
18753
18754 # The else clause should only fire when bootstrapping the
18755 # libtool distribution, otherwise you forgot to ship ltmain.sh
18756 # with your package, and you will get complaints that there are
18757 # no rules to generate ltmain.sh.
18758 if test -f "$ltmain"; then
18759   # See if we are running on zsh, and set the options which allow our commands through
18760   # without removal of \ escapes.
18761   if test -n "${ZSH_VERSION+set}" ; then
18762     setopt NO_GLOB_SUBST
18763   fi
18764   # Now quote all the things that may contain metacharacters while being
18765   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18766   # variables and quote the copies for generation of the libtool script.
18767   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18768     SED SHELL STRIP \
18769     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18770     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18771     deplibs_check_method reload_flag reload_cmds need_locks \
18772     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18773     lt_cv_sys_global_symbol_to_c_name_address \
18774     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18775     old_postinstall_cmds old_postuninstall_cmds \
18776     compiler_GCJ \
18777     CC_GCJ \
18778     LD_GCJ \
18779     lt_prog_compiler_wl_GCJ \
18780     lt_prog_compiler_pic_GCJ \
18781     lt_prog_compiler_static_GCJ \
18782     lt_prog_compiler_no_builtin_flag_GCJ \
18783     export_dynamic_flag_spec_GCJ \
18784     thread_safe_flag_spec_GCJ \
18785     whole_archive_flag_spec_GCJ \
18786     enable_shared_with_static_runtimes_GCJ \
18787     old_archive_cmds_GCJ \
18788     old_archive_from_new_cmds_GCJ \
18789     predep_objects_GCJ \
18790     postdep_objects_GCJ \
18791     predeps_GCJ \
18792     postdeps_GCJ \
18793     compiler_lib_search_path_GCJ \
18794     archive_cmds_GCJ \
18795     archive_expsym_cmds_GCJ \
18796     postinstall_cmds_GCJ \
18797     postuninstall_cmds_GCJ \
18798     old_archive_from_expsyms_cmds_GCJ \
18799     allow_undefined_flag_GCJ \
18800     no_undefined_flag_GCJ \
18801     export_symbols_cmds_GCJ \
18802     hardcode_libdir_flag_spec_GCJ \
18803     hardcode_libdir_flag_spec_ld_GCJ \
18804     hardcode_libdir_separator_GCJ \
18805     hardcode_automatic_GCJ \
18806     module_cmds_GCJ \
18807     module_expsym_cmds_GCJ \
18808     lt_cv_prog_compiler_c_o_GCJ \
18809     fix_srcfile_path_GCJ \
18810     exclude_expsyms_GCJ \
18811     include_expsyms_GCJ; do
18812
18813     case $var in
18814     old_archive_cmds_GCJ | \
18815     old_archive_from_new_cmds_GCJ | \
18816     archive_cmds_GCJ | \
18817     archive_expsym_cmds_GCJ | \
18818     module_cmds_GCJ | \
18819     module_expsym_cmds_GCJ | \
18820     old_archive_from_expsyms_cmds_GCJ | \
18821     export_symbols_cmds_GCJ | \
18822     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18823     postinstall_cmds | postuninstall_cmds | \
18824     old_postinstall_cmds | old_postuninstall_cmds | \
18825     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18826       # Double-quote double-evaled strings.
18827       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18828       ;;
18829     *)
18830       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18831       ;;
18832     esac
18833   done
18834
18835   case $lt_echo in
18836   *'\$0 --fallback-echo"')
18837     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18838     ;;
18839   esac
18840
18841 cfgfile="$ofile"
18842
18843   cat <<__EOF__ >> "$cfgfile"
18844 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18845
18846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18847
18848 # Shell to use when invoking shell scripts.
18849 SHELL=$lt_SHELL
18850
18851 # Whether or not to build shared libraries.
18852 build_libtool_libs=$enable_shared
18853
18854 # Whether or not to build static libraries.
18855 build_old_libs=$enable_static
18856
18857 # Whether or not to add -lc for building shared libraries.
18858 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18859
18860 # Whether or not to disallow shared libs when runtime libs are static
18861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18862
18863 # Whether or not to optimize for fast installation.
18864 fast_install=$enable_fast_install
18865
18866 # The host system.
18867 host_alias=$host_alias
18868 host=$host
18869 host_os=$host_os
18870
18871 # The build system.
18872 build_alias=$build_alias
18873 build=$build
18874 build_os=$build_os
18875
18876 # An echo program that does not interpret backslashes.
18877 echo=$lt_echo
18878
18879 # The archiver.
18880 AR=$lt_AR
18881 AR_FLAGS=$lt_AR_FLAGS
18882
18883 # A C compiler.
18884 LTCC=$lt_LTCC
18885
18886 # LTCC compiler flags.
18887 LTCFLAGS=$lt_LTCFLAGS
18888
18889 # A language-specific compiler.
18890 CC=$lt_compiler_GCJ
18891
18892 # Is the compiler the GNU C compiler?
18893 with_gcc=$GCC_GCJ
18894
18895 # An ERE matcher.
18896 EGREP=$lt_EGREP
18897
18898 # The linker used to build libraries.
18899 LD=$lt_LD_GCJ
18900
18901 # Whether we need hard or soft links.
18902 LN_S=$lt_LN_S
18903
18904 # A BSD-compatible nm program.
18905 NM=$lt_NM
18906
18907 # A symbol stripping program
18908 STRIP=$lt_STRIP
18909
18910 # Used to examine libraries when file_magic_cmd begins "file"
18911 MAGIC_CMD=$MAGIC_CMD
18912
18913 # Used on cygwin: DLL creation program.
18914 DLLTOOL="$DLLTOOL"
18915
18916 # Used on cygwin: object dumper.
18917 OBJDUMP="$OBJDUMP"
18918
18919 # Used on cygwin: assembler.
18920 AS="$AS"
18921
18922 # The name of the directory that contains temporary libtool files.
18923 objdir=$objdir
18924
18925 # How to create reloadable object files.
18926 reload_flag=$lt_reload_flag
18927 reload_cmds=$lt_reload_cmds
18928
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl_GCJ
18931
18932 # Object file suffix (normally "o").
18933 objext="$ac_objext"
18934
18935 # Old archive suffix (normally "a").
18936 libext="$libext"
18937
18938 # Shared library suffix (normally ".so").
18939 shrext_cmds='$shrext_cmds'
18940
18941 # Executable file suffix (normally "").
18942 exeext="$exeext"
18943
18944 # Additional compiler flags for building library objects.
18945 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18946 pic_mode=$pic_mode
18947
18948 # What is the maximum length of a command?
18949 max_cmd_len=$lt_cv_sys_max_cmd_len
18950
18951 # Does compiler simultaneously support -c and -o options?
18952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18953
18954 # Must we lock files when doing compilation?
18955 need_locks=$lt_need_locks
18956
18957 # Do we need the lib prefix for modules?
18958 need_lib_prefix=$need_lib_prefix
18959
18960 # Do we need a version for libraries?
18961 need_version=$need_version
18962
18963 # Whether dlopen is supported.
18964 dlopen_support=$enable_dlopen
18965
18966 # Whether dlopen of programs is supported.
18967 dlopen_self=$enable_dlopen_self
18968
18969 # Whether dlopen of statically linked programs is supported.
18970 dlopen_self_static=$enable_dlopen_self_static
18971
18972 # Compiler flag to prevent dynamic linking.
18973 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18974
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18977
18978 # Compiler flag to allow reflexive dlopens.
18979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18980
18981 # Compiler flag to generate shared objects directly from archives.
18982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18983
18984 # Compiler flag to generate thread-safe objects.
18985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18986
18987 # Library versioning type.
18988 version_type=$version_type
18989
18990 # Format of library name prefix.
18991 libname_spec=$lt_libname_spec
18992
18993 # List of archive names.  First name is the real one, the rest are links.
18994 # The last name is the one that the linker finds with -lNAME.
18995 library_names_spec=$lt_library_names_spec
18996
18997 # The coded name of the library, if different from the real name.
18998 soname_spec=$lt_soname_spec
18999
19000 # Commands used to build and install an old-style archive.
19001 RANLIB=$lt_RANLIB
19002 old_archive_cmds=$lt_old_archive_cmds_GCJ
19003 old_postinstall_cmds=$lt_old_postinstall_cmds
19004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19005
19006 # Create an old-style archive from a shared archive.
19007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19008
19009 # Create a temporary old-style archive to link instead of a shared archive.
19010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19011
19012 # Commands used to build and install a shared archive.
19013 archive_cmds=$lt_archive_cmds_GCJ
19014 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19015 postinstall_cmds=$lt_postinstall_cmds
19016 postuninstall_cmds=$lt_postuninstall_cmds
19017
19018 # Commands used to build a loadable module (assumed same as above if empty)
19019 module_cmds=$lt_module_cmds_GCJ
19020 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19021
19022 # Commands to strip libraries.
19023 old_striplib=$lt_old_striplib
19024 striplib=$lt_striplib
19025
19026 # Dependencies to place before the objects being linked to create a
19027 # shared library.
19028 predep_objects=$lt_predep_objects_GCJ
19029
19030 # Dependencies to place after the objects being linked to create a
19031 # shared library.
19032 postdep_objects=$lt_postdep_objects_GCJ
19033
19034 # Dependencies to place before the objects being linked to create a
19035 # shared library.
19036 predeps=$lt_predeps_GCJ
19037
19038 # Dependencies to place after the objects being linked to create a
19039 # shared library.
19040 postdeps=$lt_postdeps_GCJ
19041
19042 # The library search path used internally by the compiler when linking
19043 # a shared library.
19044 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19045
19046 # Method to check whether dependent libraries are shared objects.
19047 deplibs_check_method=$lt_deplibs_check_method
19048
19049 # Command to use when deplibs_check_method == file_magic.
19050 file_magic_cmd=$lt_file_magic_cmd
19051
19052 # Flag that allows shared libraries with undefined symbols to be built.
19053 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19054
19055 # Flag that forces no undefined symbols.
19056 no_undefined_flag=$lt_no_undefined_flag_GCJ
19057
19058 # Commands used to finish a libtool library installation in a directory.
19059 finish_cmds=$lt_finish_cmds
19060
19061 # Same as above, but a single script fragment to be evaled but not shown.
19062 finish_eval=$lt_finish_eval
19063
19064 # Take the output of nm and produce a listing of raw symbols and C names.
19065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19066
19067 # Transform the output of nm in a proper C declaration
19068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19069
19070 # Transform the output of nm in a C name address pair
19071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19072
19073 # This is the shared library runtime path variable.
19074 runpath_var=$runpath_var
19075
19076 # This is the shared library path variable.
19077 shlibpath_var=$shlibpath_var
19078
19079 # Is shlibpath searched before the hard-coded library search path?
19080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19081
19082 # How to hardcode a shared library path into an executable.
19083 hardcode_action=$hardcode_action_GCJ
19084
19085 # Whether we should hardcode library paths into libraries.
19086 hardcode_into_libs=$hardcode_into_libs
19087
19088 # Flag to hardcode \$libdir into a binary during linking.
19089 # This must work even if \$libdir does not exist.
19090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19091
19092 # If ld is used when linking, flag to hardcode \$libdir into
19093 # a binary during linking. This must work even if \$libdir does
19094 # not exist.
19095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19096
19097 # Whether we need a single -rpath flag with a separated argument.
19098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19099
19100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19101 # resulting binary.
19102 hardcode_direct=$hardcode_direct_GCJ
19103
19104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19105 # resulting binary.
19106 hardcode_minus_L=$hardcode_minus_L_GCJ
19107
19108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19109 # the resulting binary.
19110 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19111
19112 # Set to yes if building a shared library automatically hardcodes DIR into the library
19113 # and all subsequent libraries and executables linked against it.
19114 hardcode_automatic=$hardcode_automatic_GCJ
19115
19116 # Variables whose values should be saved in libtool wrapper scripts and
19117 # restored at relink time.
19118 variables_saved_for_relink="$variables_saved_for_relink"
19119
19120 # Whether libtool must link a program against all its dependency libraries.
19121 link_all_deplibs=$link_all_deplibs_GCJ
19122
19123 # Compile-time system search path for libraries
19124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19125
19126 # Run-time system search path for libraries
19127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19128
19129 # Fix the shell variable \$srcfile for the compiler.
19130 fix_srcfile_path=$lt_fix_srcfile_path
19131
19132 # Set to yes if exported symbols are required.
19133 always_export_symbols=$always_export_symbols_GCJ
19134
19135 # The commands to list exported symbols.
19136 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19137
19138 # The commands to extract the exported symbol list from a shared archive.
19139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19140
19141 # Symbols that should not be listed in the preloaded symbols.
19142 exclude_expsyms=$lt_exclude_expsyms_GCJ
19143
19144 # Symbols that must always be exported.
19145 include_expsyms=$lt_include_expsyms_GCJ
19146
19147 # ### END LIBTOOL TAG CONFIG: $tagname
19148
19149 __EOF__
19150
19151
19152 else
19153   # If there is no Makefile yet, we rely on a make rule to execute
19154   # `config.status --recheck' to rerun these tests and create the
19155   # libtool script then.
19156   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19157   if test -f "$ltmain_in"; then
19158     test -f Makefile && make "$ltmain"
19159   fi
19160 fi
19161
19162
19163 ac_ext=c
19164 ac_cpp='$CPP $CPPFLAGS'
19165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19168
19169 CC="$lt_save_CC"
19170
19171         else
19172           tagname=""
19173         fi
19174         ;;
19175
19176       RC)
19177
19178
19179 # Source file extension for RC test sources.
19180 ac_ext=rc
19181
19182 # Object file extension for compiled RC test sources.
19183 objext=o
19184 objext_RC=$objext
19185
19186 # Code to be used in simple compile tests
19187 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19188
19189 # Code to be used in simple link tests
19190 lt_simple_link_test_code="$lt_simple_compile_test_code"
19191
19192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19193
19194 # If no C compiler was specified, use CC.
19195 LTCC=${LTCC-"$CC"}
19196
19197 # If no C compiler flags were specified, use CFLAGS.
19198 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19199
19200 # Allow CC to be a program name with arguments.
19201 compiler=$CC
19202
19203
19204 # save warnings/boilerplate of simple test code
19205 ac_outfile=conftest.$ac_objext
19206 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19207 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19208 _lt_compiler_boilerplate=`cat conftest.err`
19209 $rm conftest*
19210
19211 ac_outfile=conftest.$ac_objext
19212 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19213 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19214 _lt_linker_boilerplate=`cat conftest.err`
19215 $rm conftest*
19216
19217
19218 # Allow CC to be a program name with arguments.
19219 lt_save_CC="$CC"
19220 CC=${RC-"windres"}
19221 compiler=$CC
19222 compiler_RC=$CC
19223 for cc_temp in $compiler""; do
19224   case $cc_temp in
19225     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19226     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19227     \-*) ;;
19228     *) break;;
19229   esac
19230 done
19231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19232
19233 lt_cv_prog_compiler_c_o_RC=yes
19234
19235 # The else clause should only fire when bootstrapping the
19236 # libtool distribution, otherwise you forgot to ship ltmain.sh
19237 # with your package, and you will get complaints that there are
19238 # no rules to generate ltmain.sh.
19239 if test -f "$ltmain"; then
19240   # See if we are running on zsh, and set the options which allow our commands through
19241   # without removal of \ escapes.
19242   if test -n "${ZSH_VERSION+set}" ; then
19243     setopt NO_GLOB_SUBST
19244   fi
19245   # Now quote all the things that may contain metacharacters while being
19246   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19247   # variables and quote the copies for generation of the libtool script.
19248   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19249     SED SHELL STRIP \
19250     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19251     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19252     deplibs_check_method reload_flag reload_cmds need_locks \
19253     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19254     lt_cv_sys_global_symbol_to_c_name_address \
19255     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19256     old_postinstall_cmds old_postuninstall_cmds \
19257     compiler_RC \
19258     CC_RC \
19259     LD_RC \
19260     lt_prog_compiler_wl_RC \
19261     lt_prog_compiler_pic_RC \
19262     lt_prog_compiler_static_RC \
19263     lt_prog_compiler_no_builtin_flag_RC \
19264     export_dynamic_flag_spec_RC \
19265     thread_safe_flag_spec_RC \
19266     whole_archive_flag_spec_RC \
19267     enable_shared_with_static_runtimes_RC \
19268     old_archive_cmds_RC \
19269     old_archive_from_new_cmds_RC \
19270     predep_objects_RC \
19271     postdep_objects_RC \
19272     predeps_RC \
19273     postdeps_RC \
19274     compiler_lib_search_path_RC \
19275     archive_cmds_RC \
19276     archive_expsym_cmds_RC \
19277     postinstall_cmds_RC \
19278     postuninstall_cmds_RC \
19279     old_archive_from_expsyms_cmds_RC \
19280     allow_undefined_flag_RC \
19281     no_undefined_flag_RC \
19282     export_symbols_cmds_RC \
19283     hardcode_libdir_flag_spec_RC \
19284     hardcode_libdir_flag_spec_ld_RC \
19285     hardcode_libdir_separator_RC \
19286     hardcode_automatic_RC \
19287     module_cmds_RC \
19288     module_expsym_cmds_RC \
19289     lt_cv_prog_compiler_c_o_RC \
19290     fix_srcfile_path_RC \
19291     exclude_expsyms_RC \
19292     include_expsyms_RC; do
19293
19294     case $var in
19295     old_archive_cmds_RC | \
19296     old_archive_from_new_cmds_RC | \
19297     archive_cmds_RC | \
19298     archive_expsym_cmds_RC | \
19299     module_cmds_RC | \
19300     module_expsym_cmds_RC | \
19301     old_archive_from_expsyms_cmds_RC | \
19302     export_symbols_cmds_RC | \
19303     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19304     postinstall_cmds | postuninstall_cmds | \
19305     old_postinstall_cmds | old_postuninstall_cmds | \
19306     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19307       # Double-quote double-evaled strings.
19308       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19309       ;;
19310     *)
19311       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19312       ;;
19313     esac
19314   done
19315
19316   case $lt_echo in
19317   *'\$0 --fallback-echo"')
19318     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19319     ;;
19320   esac
19321
19322 cfgfile="$ofile"
19323
19324   cat <<__EOF__ >> "$cfgfile"
19325 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19326
19327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19328
19329 # Shell to use when invoking shell scripts.
19330 SHELL=$lt_SHELL
19331
19332 # Whether or not to build shared libraries.
19333 build_libtool_libs=$enable_shared
19334
19335 # Whether or not to build static libraries.
19336 build_old_libs=$enable_static
19337
19338 # Whether or not to add -lc for building shared libraries.
19339 build_libtool_need_lc=$archive_cmds_need_lc_RC
19340
19341 # Whether or not to disallow shared libs when runtime libs are static
19342 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19343
19344 # Whether or not to optimize for fast installation.
19345 fast_install=$enable_fast_install
19346
19347 # The host system.
19348 host_alias=$host_alias
19349 host=$host
19350 host_os=$host_os
19351
19352 # The build system.
19353 build_alias=$build_alias
19354 build=$build
19355 build_os=$build_os
19356
19357 # An echo program that does not interpret backslashes.
19358 echo=$lt_echo
19359
19360 # The archiver.
19361 AR=$lt_AR
19362 AR_FLAGS=$lt_AR_FLAGS
19363
19364 # A C compiler.
19365 LTCC=$lt_LTCC
19366
19367 # LTCC compiler flags.
19368 LTCFLAGS=$lt_LTCFLAGS
19369
19370 # A language-specific compiler.
19371 CC=$lt_compiler_RC
19372
19373 # Is the compiler the GNU C compiler?
19374 with_gcc=$GCC_RC
19375
19376 # An ERE matcher.
19377 EGREP=$lt_EGREP
19378
19379 # The linker used to build libraries.
19380 LD=$lt_LD_RC
19381
19382 # Whether we need hard or soft links.
19383 LN_S=$lt_LN_S
19384
19385 # A BSD-compatible nm program.
19386 NM=$lt_NM
19387
19388 # A symbol stripping program
19389 STRIP=$lt_STRIP
19390
19391 # Used to examine libraries when file_magic_cmd begins "file"
19392 MAGIC_CMD=$MAGIC_CMD
19393
19394 # Used on cygwin: DLL creation program.
19395 DLLTOOL="$DLLTOOL"
19396
19397 # Used on cygwin: object dumper.
19398 OBJDUMP="$OBJDUMP"
19399
19400 # Used on cygwin: assembler.
19401 AS="$AS"
19402
19403 # The name of the directory that contains temporary libtool files.
19404 objdir=$objdir
19405
19406 # How to create reloadable object files.
19407 reload_flag=$lt_reload_flag
19408 reload_cmds=$lt_reload_cmds
19409
19410 # How to pass a linker flag through the compiler.
19411 wl=$lt_lt_prog_compiler_wl_RC
19412
19413 # Object file suffix (normally "o").
19414 objext="$ac_objext"
19415
19416 # Old archive suffix (normally "a").
19417 libext="$libext"
19418
19419 # Shared library suffix (normally ".so").
19420 shrext_cmds='$shrext_cmds'
19421
19422 # Executable file suffix (normally "").
19423 exeext="$exeext"
19424
19425 # Additional compiler flags for building library objects.
19426 pic_flag=$lt_lt_prog_compiler_pic_RC
19427 pic_mode=$pic_mode
19428
19429 # What is the maximum length of a command?
19430 max_cmd_len=$lt_cv_sys_max_cmd_len
19431
19432 # Does compiler simultaneously support -c and -o options?
19433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19434
19435 # Must we lock files when doing compilation?
19436 need_locks=$lt_need_locks
19437
19438 # Do we need the lib prefix for modules?
19439 need_lib_prefix=$need_lib_prefix
19440
19441 # Do we need a version for libraries?
19442 need_version=$need_version
19443
19444 # Whether dlopen is supported.
19445 dlopen_support=$enable_dlopen
19446
19447 # Whether dlopen of programs is supported.
19448 dlopen_self=$enable_dlopen_self
19449
19450 # Whether dlopen of statically linked programs is supported.
19451 dlopen_self_static=$enable_dlopen_self_static
19452
19453 # Compiler flag to prevent dynamic linking.
19454 link_static_flag=$lt_lt_prog_compiler_static_RC
19455
19456 # Compiler flag to turn off builtin functions.
19457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19458
19459 # Compiler flag to allow reflexive dlopens.
19460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19461
19462 # Compiler flag to generate shared objects directly from archives.
19463 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19464
19465 # Compiler flag to generate thread-safe objects.
19466 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19467
19468 # Library versioning type.
19469 version_type=$version_type
19470
19471 # Format of library name prefix.
19472 libname_spec=$lt_libname_spec
19473
19474 # List of archive names.  First name is the real one, the rest are links.
19475 # The last name is the one that the linker finds with -lNAME.
19476 library_names_spec=$lt_library_names_spec
19477
19478 # The coded name of the library, if different from the real name.
19479 soname_spec=$lt_soname_spec
19480
19481 # Commands used to build and install an old-style archive.
19482 RANLIB=$lt_RANLIB
19483 old_archive_cmds=$lt_old_archive_cmds_RC
19484 old_postinstall_cmds=$lt_old_postinstall_cmds
19485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19486
19487 # Create an old-style archive from a shared archive.
19488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19489
19490 # Create a temporary old-style archive to link instead of a shared archive.
19491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19492
19493 # Commands used to build and install a shared archive.
19494 archive_cmds=$lt_archive_cmds_RC
19495 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19496 postinstall_cmds=$lt_postinstall_cmds
19497 postuninstall_cmds=$lt_postuninstall_cmds
19498
19499 # Commands used to build a loadable module (assumed same as above if empty)
19500 module_cmds=$lt_module_cmds_RC
19501 module_expsym_cmds=$lt_module_expsym_cmds_RC
19502
19503 # Commands to strip libraries.
19504 old_striplib=$lt_old_striplib
19505 striplib=$lt_striplib
19506
19507 # Dependencies to place before the objects being linked to create a
19508 # shared library.
19509 predep_objects=$lt_predep_objects_RC
19510
19511 # Dependencies to place after the objects being linked to create a
19512 # shared library.
19513 postdep_objects=$lt_postdep_objects_RC
19514
19515 # Dependencies to place before the objects being linked to create a
19516 # shared library.
19517 predeps=$lt_predeps_RC
19518
19519 # Dependencies to place after the objects being linked to create a
19520 # shared library.
19521 postdeps=$lt_postdeps_RC
19522
19523 # The library search path used internally by the compiler when linking
19524 # a shared library.
19525 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19526
19527 # Method to check whether dependent libraries are shared objects.
19528 deplibs_check_method=$lt_deplibs_check_method
19529
19530 # Command to use when deplibs_check_method == file_magic.
19531 file_magic_cmd=$lt_file_magic_cmd
19532
19533 # Flag that allows shared libraries with undefined symbols to be built.
19534 allow_undefined_flag=$lt_allow_undefined_flag_RC
19535
19536 # Flag that forces no undefined symbols.
19537 no_undefined_flag=$lt_no_undefined_flag_RC
19538
19539 # Commands used to finish a libtool library installation in a directory.
19540 finish_cmds=$lt_finish_cmds
19541
19542 # Same as above, but a single script fragment to be evaled but not shown.
19543 finish_eval=$lt_finish_eval
19544
19545 # Take the output of nm and produce a listing of raw symbols and C names.
19546 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19547
19548 # Transform the output of nm in a proper C declaration
19549 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19550
19551 # Transform the output of nm in a C name address pair
19552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19553
19554 # This is the shared library runtime path variable.
19555 runpath_var=$runpath_var
19556
19557 # This is the shared library path variable.
19558 shlibpath_var=$shlibpath_var
19559
19560 # Is shlibpath searched before the hard-coded library search path?
19561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19562
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action_RC
19565
19566 # Whether we should hardcode library paths into libraries.
19567 hardcode_into_libs=$hardcode_into_libs
19568
19569 # Flag to hardcode \$libdir into a binary during linking.
19570 # This must work even if \$libdir does not exist.
19571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19572
19573 # If ld is used when linking, flag to hardcode \$libdir into
19574 # a binary during linking. This must work even if \$libdir does
19575 # not exist.
19576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19577
19578 # Whether we need a single -rpath flag with a separated argument.
19579 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19580
19581 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19582 # resulting binary.
19583 hardcode_direct=$hardcode_direct_RC
19584
19585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19586 # resulting binary.
19587 hardcode_minus_L=$hardcode_minus_L_RC
19588
19589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19590 # the resulting binary.
19591 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19592
19593 # Set to yes if building a shared library automatically hardcodes DIR into the library
19594 # and all subsequent libraries and executables linked against it.
19595 hardcode_automatic=$hardcode_automatic_RC
19596
19597 # Variables whose values should be saved in libtool wrapper scripts and
19598 # restored at relink time.
19599 variables_saved_for_relink="$variables_saved_for_relink"
19600
19601 # Whether libtool must link a program against all its dependency libraries.
19602 link_all_deplibs=$link_all_deplibs_RC
19603
19604 # Compile-time system search path for libraries
19605 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19606
19607 # Run-time system search path for libraries
19608 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19609
19610 # Fix the shell variable \$srcfile for the compiler.
19611 fix_srcfile_path=$lt_fix_srcfile_path
19612
19613 # Set to yes if exported symbols are required.
19614 always_export_symbols=$always_export_symbols_RC
19615
19616 # The commands to list exported symbols.
19617 export_symbols_cmds=$lt_export_symbols_cmds_RC
19618
19619 # The commands to extract the exported symbol list from a shared archive.
19620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19621
19622 # Symbols that should not be listed in the preloaded symbols.
19623 exclude_expsyms=$lt_exclude_expsyms_RC
19624
19625 # Symbols that must always be exported.
19626 include_expsyms=$lt_include_expsyms_RC
19627
19628 # ### END LIBTOOL TAG CONFIG: $tagname
19629
19630 __EOF__
19631
19632
19633 else
19634   # If there is no Makefile yet, we rely on a make rule to execute
19635   # `config.status --recheck' to rerun these tests and create the
19636   # libtool script then.
19637   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19638   if test -f "$ltmain_in"; then
19639     test -f Makefile && make "$ltmain"
19640   fi
19641 fi
19642
19643
19644 ac_ext=c
19645 ac_cpp='$CPP $CPPFLAGS'
19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650 CC="$lt_save_CC"
19651
19652         ;;
19653
19654       *)
19655         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19656 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19657    { (exit 1); exit 1; }; }
19658         ;;
19659       esac
19660
19661       # Append the new tag name to the list of available tags.
19662       if test -n "$tagname" ; then
19663       available_tags="$available_tags $tagname"
19664     fi
19665     fi
19666   done
19667   IFS="$lt_save_ifs"
19668
19669   # Now substitute the updated list of available tags.
19670   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19671     mv "${ofile}T" "$ofile"
19672     chmod +x "$ofile"
19673   else
19674     rm -f "${ofile}T"
19675     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19676 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19677    { (exit 1); exit 1; }; }
19678   fi
19679 fi
19680
19681
19682
19683 # This can be used to rebuild libtool when needed
19684 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19685
19686 # Always use our own libtool.
19687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19688
19689 # Prevent multiple expansion
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
19712 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
19713     # Check whether --enable-maintainer-mode was given.
19714 if test "${enable_maintainer_mode+set}" = set; then
19715   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19716 else
19717   USE_MAINTAINER_MODE=no
19718 fi
19719
19720   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
19721 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
19722    if test $USE_MAINTAINER_MODE = yes; then
19723   MAINTAINER_MODE_TRUE=
19724   MAINTAINER_MODE_FALSE='#'
19725 else
19726   MAINTAINER_MODE_TRUE='#'
19727   MAINTAINER_MODE_FALSE=
19728 fi
19729
19730   MAINT=$MAINTAINER_MODE_TRUE
19731
19732
19733
19734
19735 for ac_header in sys/mman.h
19736 do
19737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 fi
19744 ac_res=`eval echo '${'$as_ac_Header'}'`
19745                { echo "$as_me:$LINENO: result: $ac_res" >&5
19746 echo "${ECHO_T}$ac_res" >&6; }
19747 else
19748   # Is the header compilable?
19749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h.  */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h.  */
19757 $ac_includes_default
19758 #include <$ac_header>
19759 _ACEOF
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_compile") 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } && {
19774          test -z "$ac_c_werror_flag" ||
19775          test ! -s conftest.err
19776        } && test -s conftest.$ac_objext; then
19777   ac_header_compiler=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782         ac_header_compiler=no
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19787 echo "${ECHO_T}$ac_header_compiler" >&6; }
19788
19789 # Is the header present?
19790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19792 cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h.  */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h.  */
19798 #include <$ac_header>
19799 _ACEOF
19800 if { (ac_try="$ac_cpp conftest.$ac_ext"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } >/dev/null && {
19813          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19814          test ! -s conftest.err
19815        }; then
19816   ac_header_preproc=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821   ac_header_preproc=no
19822 fi
19823
19824 rm -f conftest.err conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19826 echo "${ECHO_T}$ac_header_preproc" >&6; }
19827
19828 # So?  What about this header?
19829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19830   yes:no: )
19831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19835     ac_header_preproc=yes
19836     ;;
19837   no:yes:* )
19838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19850     ( cat <<\_ASBOX
19851 ## ------------------------------------------- ##
19852 ## Report this to http://gcc.gnu.org/bugs.html ##
19853 ## ------------------------------------------- ##
19854 _ASBOX
19855      ) | sed "s/^/$as_me: WARNING:     /" >&2
19856     ;;
19857 esac
19858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   eval "$as_ac_Header=\$ac_header_preproc"
19864 fi
19865 ac_res=`eval echo '${'$as_ac_Header'}'`
19866                { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868
19869 fi
19870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19871   cat >>confdefs.h <<_ACEOF
19872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19873 _ACEOF
19874
19875 fi
19876
19877 done
19878
19879
19880 for ac_func in mmap
19881 do
19882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19896 #define $ac_func innocuous_$ac_func
19897
19898 /* System header to define __stub macros and hopefully few prototypes,
19899     which can conflict with char $ac_func (); below.
19900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901     <limits.h> exists even on freestanding compilers.  */
19902
19903 #ifdef __STDC__
19904 # include <limits.h>
19905 #else
19906 # include <assert.h>
19907 #endif
19908
19909 #undef $ac_func
19910
19911 /* Override any GCC internal prototype to avoid an error.
19912    Use char because int might match the return type of a GCC
19913    builtin and then its argument prototype would still apply.  */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char $ac_func ();
19918 /* The GNU C library defines this for functions which it implements
19919     to always fail with ENOSYS.  Some functions are actually named
19920     something starting with __ and the normal name is an alias.  */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19922 choke me
19923 #endif
19924
19925 int
19926 main ()
19927 {
19928 return $ac_func ();
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_link") 2>conftest.er1
19941   ac_status=$?
19942   grep -v '^ *+' conftest.er1 >conftest.err
19943   rm -f conftest.er1
19944   cat conftest.err >&5
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } && {
19947          test -z "$ac_c_werror_flag" ||
19948          test ! -s conftest.err
19949        } && test -s conftest$ac_exeext &&
19950        $as_test_x conftest$ac_exeext; then
19951   eval "$as_ac_var=yes"
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956         eval "$as_ac_var=no"
19957 fi
19958
19959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19960       conftest$ac_exeext conftest.$ac_ext
19961 fi
19962 ac_res=`eval echo '${'$as_ac_var'}'`
19963                { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 if test `eval echo '${'$as_ac_var'}'` = yes; then
19966   cat >>confdefs.h <<_ACEOF
19967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19968 _ACEOF
19969
19970 fi
19971 done
19972
19973
19974 if test "${ac_cv_header_sys_mman_h+set}" = set; then
19975   { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
19976 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_sys_mman_h+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 fi
19980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
19981 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
19982 else
19983   # Is the header compilable?
19984 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
19985 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 $ac_includes_default
19993 #include <sys/mman.h>
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_compile") 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } && {
20009          test -z "$ac_c_werror_flag" ||
20010          test ! -s conftest.err
20011        } && test -s conftest.$ac_objext; then
20012   ac_header_compiler=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017         ac_header_compiler=no
20018 fi
20019
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20023
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
20026 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #include <sys/mman.h>
20034 _ACEOF
20035 if { (ac_try="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } >/dev/null && {
20048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20049          test ! -s conftest.err
20050        }; then
20051   ac_header_preproc=yes
20052 else
20053   echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056   ac_header_preproc=no
20057 fi
20058
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20062
20063 # So?  What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065   yes:no: )
20066     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
20070     ac_header_preproc=yes
20071     ;;
20072   no:yes:* )
20073     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20081     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
20085     ( cat <<\_ASBOX
20086 ## ------------------------------------------- ##
20087 ## Report this to http://gcc.gnu.org/bugs.html ##
20088 ## ------------------------------------------- ##
20089 _ASBOX
20090      ) | sed "s/^/$as_me: WARNING:     /" >&2
20091     ;;
20092 esac
20093 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20094 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
20095 if test "${ac_cv_header_sys_mman_h+set}" = set; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   ac_cv_header_sys_mman_h=$ac_header_preproc
20099 fi
20100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20101 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
20102
20103 fi
20104 if test $ac_cv_header_sys_mman_h = yes; then
20105   libffi_header_sys_mman_h=yes
20106 else
20107   libffi_header_sys_mman_h=no
20108 fi
20109
20110
20111 { echo "$as_me:$LINENO: checking for mmap" >&5
20112 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
20113 if test "${ac_cv_func_mmap+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20124 #define mmap innocuous_mmap
20125
20126 /* System header to define __stub macros and hopefully few prototypes,
20127     which can conflict with char mmap (); below.
20128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20129     <limits.h> exists even on freestanding compilers.  */
20130
20131 #ifdef __STDC__
20132 # include <limits.h>
20133 #else
20134 # include <assert.h>
20135 #endif
20136
20137 #undef mmap
20138
20139 /* Override any GCC internal prototype to avoid an error.
20140    Use char because int might match the return type of a GCC
20141    builtin and then its argument prototype would still apply.  */
20142 #ifdef __cplusplus
20143 extern "C"
20144 #endif
20145 char mmap ();
20146 /* The GNU C library defines this for functions which it implements
20147     to always fail with ENOSYS.  Some functions are actually named
20148     something starting with __ and the normal name is an alias.  */
20149 #if defined __stub_mmap || defined __stub___mmap
20150 choke me
20151 #endif
20152
20153 int
20154 main ()
20155 {
20156 return mmap ();
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_link") 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } && {
20175          test -z "$ac_c_werror_flag" ||
20176          test ! -s conftest.err
20177        } && test -s conftest$ac_exeext &&
20178        $as_test_x conftest$ac_exeext; then
20179   ac_cv_func_mmap=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         ac_cv_func_mmap=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188       conftest$ac_exeext conftest.$ac_ext
20189 fi
20190 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20191 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
20192 if test $ac_cv_func_mmap = yes; then
20193   libffi_func_mmap=yes
20194 else
20195   libffi_func_mmap=no
20196 fi
20197
20198 if test "$libffi_header_sys_mman_h" != yes \
20199  || test "$libffi_func_mmap" != yes; then
20200    ac_cv_func_mmap_file=no
20201    ac_cv_func_mmap_dev_zero=no
20202    ac_cv_func_mmap_anon=no
20203 else
20204    { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
20205 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_mmap_file+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   # Add a system to this blacklist if
20210    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
20211    # memory area containing the same data that you'd get if you applied
20212    # read() to the same fd.  The only system known to have a problem here
20213    # is VMS, where text files have record structure.
20214    case "$host_os" in
20215      vms* | ultrix*)
20216         ac_cv_func_mmap_file=no ;;
20217      *)
20218         ac_cv_func_mmap_file=yes;;
20219    esac
20220 fi
20221 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20222 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20223    { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
20224 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
20225 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   # Add a system to this blacklist if it has mmap() but /dev/zero
20229    # does not exist, or if mmapping /dev/zero does not give anonymous
20230    # zeroed pages with both the following properties:
20231    # 1. If you map N consecutive pages in with one call, and then
20232    #    unmap any subset of those pages, the pages that were not
20233    #    explicitly unmapped remain accessible.
20234    # 2. If you map two adjacent blocks of memory and then unmap them
20235    #    both at once, they must both go away.
20236    # Systems known to be in this category are Windows (all variants),
20237    # VMS, and Darwin.
20238    case "$host_os" in
20239      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
20240         ac_cv_func_mmap_dev_zero=no ;;
20241      *)
20242         ac_cv_func_mmap_dev_zero=yes;;
20243    esac
20244 fi
20245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
20246 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
20247
20248    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
20249    { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
20250 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
20251 if test "${ac_cv_decl_map_anon+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <sys/types.h>
20261 #include <sys/mman.h>
20262 #include <unistd.h>
20263
20264 #ifndef MAP_ANONYMOUS
20265 #define MAP_ANONYMOUS MAP_ANON
20266 #endif
20267
20268 int
20269 main ()
20270 {
20271 int n = MAP_ANONYMOUS;
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_compile") 2>conftest.er1
20284   ac_status=$?
20285   grep -v '^ *+' conftest.er1 >conftest.err
20286   rm -f conftest.er1
20287   cat conftest.err >&5
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && {
20290          test -z "$ac_c_werror_flag" ||
20291          test ! -s conftest.err
20292        } && test -s conftest.$ac_objext; then
20293   ac_cv_decl_map_anon=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_cv_decl_map_anon=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 { echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
20304 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6; }
20305
20306    if test $ac_cv_decl_map_anon = no; then
20307      ac_cv_func_mmap_anon=no
20308    else
20309      { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
20310 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
20311 if test "${ac_cv_func_mmap_anon+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   # Add a system to this blacklist if it has mmap() and MAP_ANON or
20315    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
20316    # doesn't give anonymous zeroed pages with the same properties listed
20317    # above for use of /dev/zero.
20318    # Systems known to be in this category are Windows, VMS, and SCO Unix.
20319    case "$host_os" in
20320      vms* | cygwin* | pe | mingw* | sco* | udk* )
20321         ac_cv_func_mmap_anon=no ;;
20322      *)
20323         ac_cv_func_mmap_anon=yes;;
20324    esac
20325 fi
20326 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
20327 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
20328    fi
20329 fi
20330
20331 if test $ac_cv_func_mmap_file = yes; then
20332
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_MMAP_FILE 1
20335 _ACEOF
20336
20337 fi
20338 if test $ac_cv_func_mmap_dev_zero = yes; then
20339
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_MMAP_DEV_ZERO 1
20342 _ACEOF
20343
20344 fi
20345 if test $ac_cv_func_mmap_anon = yes; then
20346
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_MMAP_ANON 1
20349 _ACEOF
20350
20351 fi
20352
20353
20354  if test -d $srcdir/testsuite; then
20355   TESTSUBDIR_TRUE=
20356   TESTSUBDIR_FALSE='#'
20357 else
20358   TESTSUBDIR_TRUE='#'
20359   TESTSUBDIR_FALSE=
20360 fi
20361
20362
20363 TARGETDIR="unknown"
20364 case "$host" in
20365   alpha*-*-*)
20366         TARGET=ALPHA; TARGETDIR=alpha;
20367         # Support 128-bit long double, changable via command-line switch.
20368         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
20369         ;;
20370
20371   arm*-*-*)
20372         TARGET=ARM; TARGETDIR=arm
20373         ;;
20374
20375   amd64-*-freebsd*)
20376         TARGET=X86_64; TARGETDIR=x86
20377         ;;
20378
20379   cris-*-*)
20380         TARGET=LIBFFI_CRIS; TARGETDIR=cris
20381         ;;
20382
20383   frv-*-*)
20384         TARGET=FRV; TARGETDIR=frv
20385         ;;
20386
20387   hppa*-*-linux* | parisc*-*-linux*)
20388         TARGET=PA_LINUX; TARGETDIR=pa
20389         ;;
20390   hppa*64-*-hpux*)
20391         TARGET=PA64_HPUX; TARGETDIR=pa
20392         ;;
20393   hppa*-*-hpux*)
20394         TARGET=PA_HPUX; TARGETDIR=pa
20395         ;;
20396
20397   i386-*-freebsd* | i386-*-openbsd*)
20398         TARGET=X86_FREEBSD; TARGETDIR=x86
20399         ;;
20400   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
20401         TARGET=X86_WIN32; TARGETDIR=x86
20402         ;;
20403   i?86-*-darwin*)
20404         TARGET=X86_DARWIN; TARGETDIR=x86
20405         ;;
20406   i?86-*-solaris2.1[0-9]*)
20407         TARGET=X86_64; TARGETDIR=x86
20408         ;;
20409   i?86-*-*)
20410         TARGET=X86; TARGETDIR=x86
20411         ;;
20412
20413   ia64*-*-*)
20414         TARGET=IA64; TARGETDIR=ia64
20415         ;;
20416
20417   m32r*-*-*)
20418         TARGET=M32R; TARGETDIR=m32r
20419         ;;
20420
20421   m68k-*-*)
20422         TARGET=M68K; TARGETDIR=m68k
20423         ;;
20424
20425   mips-sgi-irix5.* | mips-sgi-irix6.*)
20426         TARGET=MIPS; TARGETDIR=mips
20427         ;;
20428   mips*-*-linux*)
20429         TARGET=MIPS; TARGETDIR=mips
20430         ;;
20431
20432   powerpc*-*-linux* | powerpc-*-sysv*)
20433         TARGET=POWERPC; TARGETDIR=powerpc
20434         ;;
20435   powerpc-*-beos*)
20436         TARGET=POWERPC; TARGETDIR=powerpc
20437         ;;
20438   powerpc-*-darwin*)
20439         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
20440         ;;
20441   powerpc-*-aix* | rs6000-*-aix*)
20442         TARGET=POWERPC_AIX; TARGETDIR=powerpc
20443         ;;
20444   powerpc-*-freebsd*)
20445         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
20446         ;;
20447   powerpc*-*-rtems*)
20448         TARGET=POWERPC; TARGETDIR=powerpc
20449         ;;
20450
20451   s390-*-* | s390x-*-*)
20452         TARGET=S390; TARGETDIR=s390
20453         ;;
20454
20455   sh-*-* | sh[34]*-*-*)
20456         TARGET=SH; TARGETDIR=sh
20457         ;;
20458   sh64-*-* | sh5*-*-*)
20459         TARGET=SH64; TARGETDIR=sh64
20460         ;;
20461
20462   sparc*-*-*)
20463         TARGET=SPARC; TARGETDIR=sparc
20464         ;;
20465
20466   x86_64-*-darwin*)
20467         TARGET=X86_DARWIN; TARGETDIR=x86
20468         ;;
20469   x86_64-*-cygwin* | x86_64-*-mingw*)
20470         ;;
20471   x86_64-*-*)
20472         TARGET=X86_64; TARGETDIR=x86
20473         ;;
20474 esac
20475
20476
20477
20478 if test $TARGETDIR = unknown; then
20479   { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
20480 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
20481    { (exit 1); exit 1; }; }
20482 fi
20483
20484  if test x$TARGET = xMIPS; then
20485   MIPS_TRUE=
20486   MIPS_FALSE='#'
20487 else
20488   MIPS_TRUE='#'
20489   MIPS_FALSE=
20490 fi
20491
20492  if test x$TARGET = xSPARC; then
20493   SPARC_TRUE=
20494   SPARC_FALSE='#'
20495 else
20496   SPARC_TRUE='#'
20497   SPARC_FALSE=
20498 fi
20499
20500  if test x$TARGET = xX86; then
20501   X86_TRUE=
20502   X86_FALSE='#'
20503 else
20504   X86_TRUE='#'
20505   X86_FALSE=
20506 fi
20507
20508  if test x$TARGET = xX86_FREEBSD; then
20509   X86_FREEBSD_TRUE=
20510   X86_FREEBSD_FALSE='#'
20511 else
20512   X86_FREEBSD_TRUE='#'
20513   X86_FREEBSD_FALSE=
20514 fi
20515
20516  if test x$TARGET = xX86_WIN32; then
20517   X86_WIN32_TRUE=
20518   X86_WIN32_FALSE='#'
20519 else
20520   X86_WIN32_TRUE='#'
20521   X86_WIN32_FALSE=
20522 fi
20523
20524  if test x$TARGET = xX86_DARWIN; then
20525   X86_DARWIN_TRUE=
20526   X86_DARWIN_FALSE='#'
20527 else
20528   X86_DARWIN_TRUE='#'
20529   X86_DARWIN_FALSE=
20530 fi
20531
20532  if test x$TARGET = xALPHA; then
20533   ALPHA_TRUE=
20534   ALPHA_FALSE='#'
20535 else
20536   ALPHA_TRUE='#'
20537   ALPHA_FALSE=
20538 fi
20539
20540  if test x$TARGET = xIA64; then
20541   IA64_TRUE=
20542   IA64_FALSE='#'
20543 else
20544   IA64_TRUE='#'
20545   IA64_FALSE=
20546 fi
20547
20548  if test x$TARGET = xM32R; then
20549   M32R_TRUE=
20550   M32R_FALSE='#'
20551 else
20552   M32R_TRUE='#'
20553   M32R_FALSE=
20554 fi
20555
20556  if test x$TARGET = xM68K; then
20557   M68K_TRUE=
20558   M68K_FALSE='#'
20559 else
20560   M68K_TRUE='#'
20561   M68K_FALSE=
20562 fi
20563
20564  if test x$TARGET = xPOWERPC; then
20565   POWERPC_TRUE=
20566   POWERPC_FALSE='#'
20567 else
20568   POWERPC_TRUE='#'
20569   POWERPC_FALSE=
20570 fi
20571
20572  if test x$TARGET = xPOWERPC_AIX; then
20573   POWERPC_AIX_TRUE=
20574   POWERPC_AIX_FALSE='#'
20575 else
20576   POWERPC_AIX_TRUE='#'
20577   POWERPC_AIX_FALSE=
20578 fi
20579
20580  if test x$TARGET = xPOWERPC_DARWIN; then
20581   POWERPC_DARWIN_TRUE=
20582   POWERPC_DARWIN_FALSE='#'
20583 else
20584   POWERPC_DARWIN_TRUE='#'
20585   POWERPC_DARWIN_FALSE=
20586 fi
20587
20588  if test x$TARGET = xPOWERPC_FREEBSD; then
20589   POWERPC_FREEBSD_TRUE=
20590   POWERPC_FREEBSD_FALSE='#'
20591 else
20592   POWERPC_FREEBSD_TRUE='#'
20593   POWERPC_FREEBSD_FALSE=
20594 fi
20595
20596  if test x$TARGET = xARM; then
20597   ARM_TRUE=
20598   ARM_FALSE='#'
20599 else
20600   ARM_TRUE='#'
20601   ARM_FALSE=
20602 fi
20603
20604  if test x$TARGET = xLIBFFI_CRIS; then
20605   LIBFFI_CRIS_TRUE=
20606   LIBFFI_CRIS_FALSE='#'
20607 else
20608   LIBFFI_CRIS_TRUE='#'
20609   LIBFFI_CRIS_FALSE=
20610 fi
20611
20612  if test x$TARGET = xFRV; then
20613   FRV_TRUE=
20614   FRV_FALSE='#'
20615 else
20616   FRV_TRUE='#'
20617   FRV_FALSE=
20618 fi
20619
20620  if test x$TARGET = xS390; then
20621   S390_TRUE=
20622   S390_FALSE='#'
20623 else
20624   S390_TRUE='#'
20625   S390_FALSE=
20626 fi
20627
20628  if test x$TARGET = xX86_64; then
20629   X86_64_TRUE=
20630   X86_64_FALSE='#'
20631 else
20632   X86_64_TRUE='#'
20633   X86_64_FALSE=
20634 fi
20635
20636  if test x$TARGET = xSH; then
20637   SH_TRUE=
20638   SH_FALSE='#'
20639 else
20640   SH_TRUE='#'
20641   SH_FALSE=
20642 fi
20643
20644  if test x$TARGET = xSH64; then
20645   SH64_TRUE=
20646   SH64_FALSE='#'
20647 else
20648   SH64_TRUE='#'
20649   SH64_FALSE=
20650 fi
20651
20652  if test x$TARGET = xPA_LINUX; then
20653   PA_LINUX_TRUE=
20654   PA_LINUX_FALSE='#'
20655 else
20656   PA_LINUX_TRUE='#'
20657   PA_LINUX_FALSE=
20658 fi
20659
20660  if test x$TARGET = xPA_HPUX; then
20661   PA_HPUX_TRUE=
20662   PA_HPUX_FALSE='#'
20663 else
20664   PA_HPUX_TRUE='#'
20665   PA_HPUX_FALSE=
20666 fi
20667
20668  if test x$TARGET = xPA64_HPUX; then
20669   PA64_HPUX_TRUE=
20670   PA64_HPUX_FALSE='#'
20671 else
20672   PA64_HPUX_TRUE='#'
20673   PA64_HPUX_FALSE=
20674 fi
20675
20676
20677 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20678 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20679 if test "${ac_cv_header_stdc+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 #include <stdlib.h>
20689 #include <stdarg.h>
20690 #include <string.h>
20691 #include <float.h>
20692
20693 int
20694 main ()
20695 {
20696
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_compile") 2>conftest.er1
20709   ac_status=$?
20710   grep -v '^ *+' conftest.er1 >conftest.err
20711   rm -f conftest.er1
20712   cat conftest.err >&5
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } && {
20715          test -z "$ac_c_werror_flag" ||
20716          test ! -s conftest.err
20717        } && test -s conftest.$ac_objext; then
20718   ac_cv_header_stdc=yes
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         ac_cv_header_stdc=no
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727
20728 if test $ac_cv_header_stdc = yes; then
20729   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20730   cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736 #include <string.h>
20737
20738 _ACEOF
20739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20740   $EGREP "memchr" >/dev/null 2>&1; then
20741   :
20742 else
20743   ac_cv_header_stdc=no
20744 fi
20745 rm -f conftest*
20746
20747 fi
20748
20749 if test $ac_cv_header_stdc = yes; then
20750   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20751   cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 #include <stdlib.h>
20758
20759 _ACEOF
20760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20761   $EGREP "free" >/dev/null 2>&1; then
20762   :
20763 else
20764   ac_cv_header_stdc=no
20765 fi
20766 rm -f conftest*
20767
20768 fi
20769
20770 if test $ac_cv_header_stdc = yes; then
20771   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20772   if test "$cross_compiling" = yes; then
20773   :
20774 else
20775   cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 #include <ctype.h>
20782 #include <stdlib.h>
20783 #if ((' ' & 0x0FF) == 0x020)
20784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20786 #else
20787 # define ISLOWER(c) \
20788                    (('a' <= (c) && (c) <= 'i') \
20789                      || ('j' <= (c) && (c) <= 'r') \
20790                      || ('s' <= (c) && (c) <= 'z'))
20791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20792 #endif
20793
20794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20795 int
20796 main ()
20797 {
20798   int i;
20799   for (i = 0; i < 256; i++)
20800     if (XOR (islower (i), ISLOWER (i))
20801         || toupper (i) != TOUPPER (i))
20802       return 2;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813   (eval "$ac_link") 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817   { (case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_try") 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; }; then
20826   :
20827 else
20828   echo "$as_me: program exited with status $ac_status" >&5
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832 ( exit $ac_status )
20833 ac_cv_header_stdc=no
20834 fi
20835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836 fi
20837
20838
20839 fi
20840 fi
20841 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20842 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20843 if test $ac_cv_header_stdc = yes; then
20844
20845 cat >>confdefs.h <<\_ACEOF
20846 #define STDC_HEADERS 1
20847 _ACEOF
20848
20849 fi
20850
20851
20852 for ac_func in memcpy
20853 do
20854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20868 #define $ac_func innocuous_$ac_func
20869
20870 /* System header to define __stub macros and hopefully few prototypes,
20871     which can conflict with char $ac_func (); below.
20872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20873     <limits.h> exists even on freestanding compilers.  */
20874
20875 #ifdef __STDC__
20876 # include <limits.h>
20877 #else
20878 # include <assert.h>
20879 #endif
20880
20881 #undef $ac_func
20882
20883 /* Override any GCC internal prototype to avoid an error.
20884    Use char because int might match the return type of a GCC
20885    builtin and then its argument prototype would still apply.  */
20886 #ifdef __cplusplus
20887 extern "C"
20888 #endif
20889 char $ac_func ();
20890 /* The GNU C library defines this for functions which it implements
20891     to always fail with ENOSYS.  Some functions are actually named
20892     something starting with __ and the normal name is an alias.  */
20893 #if defined __stub_$ac_func || defined __stub___$ac_func
20894 choke me
20895 #endif
20896
20897 int
20898 main ()
20899 {
20900 return $ac_func ();
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext conftest$ac_exeext
20906 if { (ac_try="$ac_link"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_link") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && {
20919          test -z "$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        } && test -s conftest$ac_exeext &&
20922        $as_test_x conftest$ac_exeext; then
20923   eval "$as_ac_var=yes"
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928         eval "$as_ac_var=no"
20929 fi
20930
20931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20932       conftest$ac_exeext conftest.$ac_ext
20933 fi
20934 ac_res=`eval echo '${'$as_ac_var'}'`
20935                { echo "$as_me:$LINENO: result: $ac_res" >&5
20936 echo "${ECHO_T}$ac_res" >&6; }
20937 if test `eval echo '${'$as_ac_var'}'` = yes; then
20938   cat >>confdefs.h <<_ACEOF
20939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20940 _ACEOF
20941
20942 fi
20943 done
20944
20945 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20946 # for constant arguments.  Useless!
20947 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
20948 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
20949 if test "${ac_cv_working_alloca_h+set}" = set; then
20950   echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952   cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958 #include <alloca.h>
20959 int
20960 main ()
20961 {
20962 char *p = (char *) alloca (2 * sizeof (int));
20963                           if (p) return 0;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (ac_try="$ac_link"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_link") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_c_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest$ac_exeext &&
20985        $as_test_x conftest$ac_exeext; then
20986   ac_cv_working_alloca_h=yes
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_cv_working_alloca_h=no
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995       conftest$ac_exeext conftest.$ac_ext
20996 fi
20997 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20998 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
20999 if test $ac_cv_working_alloca_h = yes; then
21000
21001 cat >>confdefs.h <<\_ACEOF
21002 #define HAVE_ALLOCA_H 1
21003 _ACEOF
21004
21005 fi
21006
21007 { echo "$as_me:$LINENO: checking for alloca" >&5
21008 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21009 if test "${ac_cv_func_alloca_works+set}" = set; then
21010   echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012   cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 #ifdef __GNUC__
21019 # define alloca __builtin_alloca
21020 #else
21021 # ifdef _MSC_VER
21022 #  include <malloc.h>
21023 #  define alloca _alloca
21024 # else
21025 #  ifdef HAVE_ALLOCA_H
21026 #   include <alloca.h>
21027 #  else
21028 #   ifdef _AIX
21029  #pragma alloca
21030 #   else
21031 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21032 char *alloca ();
21033 #    endif
21034 #   endif
21035 #  endif
21036 # endif
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 char *p = (char *) alloca (1);
21043                                     if (p) return 0;
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (ac_try="$ac_link"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055   (eval "$ac_link") 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && {
21062          test -z "$ac_c_werror_flag" ||
21063          test ! -s conftest.err
21064        } && test -s conftest$ac_exeext &&
21065        $as_test_x conftest$ac_exeext; then
21066   ac_cv_func_alloca_works=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071         ac_cv_func_alloca_works=no
21072 fi
21073
21074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21075       conftest$ac_exeext conftest.$ac_ext
21076 fi
21077 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21078 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21079
21080 if test $ac_cv_func_alloca_works = yes; then
21081
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_ALLOCA 1
21084 _ACEOF
21085
21086 else
21087   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21088 # that cause trouble.  Some versions do not even contain alloca or
21089 # contain a buggy version.  If you still want to use their alloca,
21090 # use ar to extract alloca.o from them instead of compiling alloca.c.
21091
21092 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21093
21094 cat >>confdefs.h <<\_ACEOF
21095 #define C_ALLOCA 1
21096 _ACEOF
21097
21098
21099 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21100 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21101 if test "${ac_cv_os_cray+set}" = set; then
21102   echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104   cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110 #if defined CRAY && ! defined CRAY2
21111 webecray
21112 #else
21113 wenotbecray
21114 #endif
21115
21116 _ACEOF
21117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21118   $EGREP "webecray" >/dev/null 2>&1; then
21119   ac_cv_os_cray=yes
21120 else
21121   ac_cv_os_cray=no
21122 fi
21123 rm -f conftest*
21124
21125 fi
21126 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21127 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21128 if test $ac_cv_os_cray = yes; then
21129   for ac_func in _getb67 GETB67 getb67; do
21130     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21134   echo $ECHO_N "(cached) $ECHO_C" >&6
21135 else
21136   cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21144 #define $ac_func innocuous_$ac_func
21145
21146 /* System header to define __stub macros and hopefully few prototypes,
21147     which can conflict with char $ac_func (); below.
21148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21149     <limits.h> exists even on freestanding compilers.  */
21150
21151 #ifdef __STDC__
21152 # include <limits.h>
21153 #else
21154 # include <assert.h>
21155 #endif
21156
21157 #undef $ac_func
21158
21159 /* Override any GCC internal prototype to avoid an error.
21160    Use char because int might match the return type of a GCC
21161    builtin and then its argument prototype would still apply.  */
21162 #ifdef __cplusplus
21163 extern "C"
21164 #endif
21165 char $ac_func ();
21166 /* The GNU C library defines this for functions which it implements
21167     to always fail with ENOSYS.  Some functions are actually named
21168     something starting with __ and the normal name is an alias.  */
21169 #if defined __stub_$ac_func || defined __stub___$ac_func
21170 choke me
21171 #endif
21172
21173 int
21174 main ()
21175 {
21176 return $ac_func ();
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (ac_try="$ac_link"
21183 case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_link") 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } && {
21195          test -z "$ac_c_werror_flag" ||
21196          test ! -s conftest.err
21197        } && test -s conftest$ac_exeext &&
21198        $as_test_x conftest$ac_exeext; then
21199   eval "$as_ac_var=yes"
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204         eval "$as_ac_var=no"
21205 fi
21206
21207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21208       conftest$ac_exeext conftest.$ac_ext
21209 fi
21210 ac_res=`eval echo '${'$as_ac_var'}'`
21211                { echo "$as_me:$LINENO: result: $ac_res" >&5
21212 echo "${ECHO_T}$ac_res" >&6; }
21213 if test `eval echo '${'$as_ac_var'}'` = yes; then
21214
21215 cat >>confdefs.h <<_ACEOF
21216 #define CRAY_STACKSEG_END $ac_func
21217 _ACEOF
21218
21219     break
21220 fi
21221
21222   done
21223 fi
21224
21225 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21226 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21227 if test "${ac_cv_c_stack_direction+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230   if test "$cross_compiling" = yes; then
21231   ac_cv_c_stack_direction=0
21232 else
21233   cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239 $ac_includes_default
21240 int
21241 find_stack_direction ()
21242 {
21243   static char *addr = 0;
21244   auto char dummy;
21245   if (addr == 0)
21246     {
21247       addr = &dummy;
21248       return find_stack_direction ();
21249     }
21250   else
21251     return (&dummy > addr) ? 1 : -1;
21252 }
21253
21254 int
21255 main ()
21256 {
21257   return find_stack_direction () < 0;
21258 }
21259 _ACEOF
21260 rm -f conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_link") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271   { (case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_try") 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); }; }; then
21280   ac_cv_c_stack_direction=1
21281 else
21282   echo "$as_me: program exited with status $ac_status" >&5
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ( exit $ac_status )
21287 ac_cv_c_stack_direction=-1
21288 fi
21289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21290 fi
21291
21292
21293 fi
21294 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21295 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define STACK_DIRECTION $ac_cv_c_stack_direction
21299 _ACEOF
21300
21301
21302 fi
21303
21304
21305 { echo "$as_me:$LINENO: checking for double" >&5
21306 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
21307 if test "${ac_cv_type_double+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310   cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 $ac_includes_default
21317 typedef double ac__type_new_;
21318 int
21319 main ()
21320 {
21321 if ((ac__type_new_ *) 0)
21322   return 0;
21323 if (sizeof (ac__type_new_))
21324   return 0;
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 rm -f conftest.$ac_objext
21330 if { (ac_try="$ac_compile"
21331 case "(($ac_try" in
21332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333   *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336   (eval "$ac_compile") 2>conftest.er1
21337   ac_status=$?
21338   grep -v '^ *+' conftest.er1 >conftest.err
21339   rm -f conftest.er1
21340   cat conftest.err >&5
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); } && {
21343          test -z "$ac_c_werror_flag" ||
21344          test ! -s conftest.err
21345        } && test -s conftest.$ac_objext; then
21346   ac_cv_type_double=yes
21347 else
21348   echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21350
21351         ac_cv_type_double=no
21352 fi
21353
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
21357 echo "${ECHO_T}$ac_cv_type_double" >&6; }
21358
21359 # The cast to long int works around a bug in the HP C Compiler
21360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21362 # This bug is HP SR number 8606223364.
21363 { echo "$as_me:$LINENO: checking size of double" >&5
21364 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
21365 if test "${ac_cv_sizeof_double+set}" = set; then
21366   echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368   if test "$cross_compiling" = yes; then
21369   # Depending upon the size, compute the lo and hi bounds.
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 $ac_includes_default
21377    typedef double ac__type_sizeof_;
21378 int
21379 main ()
21380 {
21381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21382 test_array [0] = 0
21383
21384   ;
21385   return 0;
21386 }
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_compile") 2>conftest.er1
21396   ac_status=$?
21397   grep -v '^ *+' conftest.er1 >conftest.err
21398   rm -f conftest.er1
21399   cat conftest.err >&5
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); } && {
21402          test -z "$ac_c_werror_flag" ||
21403          test ! -s conftest.err
21404        } && test -s conftest.$ac_objext; then
21405   ac_lo=0 ac_mid=0
21406   while :; do
21407     cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 $ac_includes_default
21414    typedef double ac__type_sizeof_;
21415 int
21416 main ()
21417 {
21418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21419 test_array [0] = 0
21420
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432   (eval "$ac_compile") 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } && {
21439          test -z "$ac_c_werror_flag" ||
21440          test ! -s conftest.err
21441        } && test -s conftest.$ac_objext; then
21442   ac_hi=$ac_mid; break
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447         ac_lo=`expr $ac_mid + 1`
21448                         if test $ac_lo -le $ac_mid; then
21449                           ac_lo= ac_hi=
21450                           break
21451                         fi
21452                         ac_mid=`expr 2 '*' $ac_mid + 1`
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456   done
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 $ac_includes_default
21468    typedef double ac__type_sizeof_;
21469 int
21470 main ()
21471 {
21472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21473 test_array [0] = 0
21474
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (ac_try="$ac_compile"
21481 case "(($ac_try" in
21482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483   *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486   (eval "$ac_compile") 2>conftest.er1
21487   ac_status=$?
21488   grep -v '^ *+' conftest.er1 >conftest.err
21489   rm -f conftest.er1
21490   cat conftest.err >&5
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } && {
21493          test -z "$ac_c_werror_flag" ||
21494          test ! -s conftest.err
21495        } && test -s conftest.$ac_objext; then
21496   ac_hi=-1 ac_mid=-1
21497   while :; do
21498     cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504 $ac_includes_default
21505    typedef double ac__type_sizeof_;
21506 int
21507 main ()
21508 {
21509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21510 test_array [0] = 0
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   ac_lo=$ac_mid; break
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         ac_hi=`expr '(' $ac_mid ')' - 1`
21539                         if test $ac_mid -le $ac_hi; then
21540                           ac_lo= ac_hi=
21541                           break
21542                         fi
21543                         ac_mid=`expr 2 '*' $ac_mid`
21544 fi
21545
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547   done
21548 else
21549   echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552         ac_lo= ac_hi=
21553 fi
21554
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 fi
21557
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 # Binary search between lo and hi bounds.
21560 while test "x$ac_lo" != "x$ac_hi"; do
21561   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21562   cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 $ac_includes_default
21569    typedef double ac__type_sizeof_;
21570 int
21571 main ()
21572 {
21573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21574 test_array [0] = 0
21575
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_compile") 2>conftest.er1
21588   ac_status=$?
21589   grep -v '^ *+' conftest.er1 >conftest.err
21590   rm -f conftest.er1
21591   cat conftest.err >&5
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } && {
21594          test -z "$ac_c_werror_flag" ||
21595          test ! -s conftest.err
21596        } && test -s conftest.$ac_objext; then
21597   ac_hi=$ac_mid
21598 else
21599   echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602         ac_lo=`expr '(' $ac_mid ')' + 1`
21603 fi
21604
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 done
21607 case $ac_lo in
21608 ?*) ac_cv_sizeof_double=$ac_lo;;
21609 '') if test "$ac_cv_type_double" = yes; then
21610      { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
21611 See \`config.log' for more details." >&5
21612 echo "$as_me: error: cannot compute sizeof (double)
21613 See \`config.log' for more details." >&2;}
21614    { (exit 77); exit 77; }; }
21615    else
21616      ac_cv_sizeof_double=0
21617    fi ;;
21618 esac
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 $ac_includes_default
21627    typedef double ac__type_sizeof_;
21628 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21629 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21630 #include <stdio.h>
21631 #include <stdlib.h>
21632 int
21633 main ()
21634 {
21635
21636   FILE *f = fopen ("conftest.val", "w");
21637   if (! f)
21638     return 1;
21639   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21640     {
21641       long int i = longval ();
21642       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21643         return 1;
21644       fprintf (f, "%ld\n", i);
21645     }
21646   else
21647     {
21648       unsigned long int i = ulongval ();
21649       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21650         return 1;
21651       fprintf (f, "%lu\n", i);
21652     }
21653   return ferror (f) || fclose (f) != 0;
21654
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_link") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670   { (case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_try") 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; }; then
21679   ac_cv_sizeof_double=`cat conftest.val`
21680 else
21681   echo "$as_me: program exited with status $ac_status" >&5
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ( exit $ac_status )
21686 if test "$ac_cv_type_double" = yes; then
21687      { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
21688 See \`config.log' for more details." >&5
21689 echo "$as_me: error: cannot compute sizeof (double)
21690 See \`config.log' for more details." >&2;}
21691    { (exit 77); exit 77; }; }
21692    else
21693      ac_cv_sizeof_double=0
21694    fi
21695 fi
21696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21697 fi
21698 rm -f conftest.val
21699 fi
21700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21701 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
21702
21703
21704
21705 cat >>confdefs.h <<_ACEOF
21706 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21707 _ACEOF
21708
21709
21710 { echo "$as_me:$LINENO: checking for long double" >&5
21711 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
21712 if test "${ac_cv_type_long_double+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715   cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h.  */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h.  */
21721 $ac_includes_default
21722 typedef long double ac__type_new_;
21723 int
21724 main ()
21725 {
21726 if ((ac__type_new_ *) 0)
21727   return 0;
21728 if (sizeof (ac__type_new_))
21729   return 0;
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738   *) ac_try_echo=$ac_try;;
21739 esac
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741   (eval "$ac_compile") 2>conftest.er1
21742   ac_status=$?
21743   grep -v '^ *+' conftest.er1 >conftest.err
21744   rm -f conftest.er1
21745   cat conftest.err >&5
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); } && {
21748          test -z "$ac_c_werror_flag" ||
21749          test ! -s conftest.err
21750        } && test -s conftest.$ac_objext; then
21751   ac_cv_type_long_double=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756         ac_cv_type_long_double=no
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 fi
21761 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
21762 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
21763
21764 # The cast to long int works around a bug in the HP C Compiler
21765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21767 # This bug is HP SR number 8606223364.
21768 { echo "$as_me:$LINENO: checking size of long double" >&5
21769 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
21770 if test "${ac_cv_sizeof_long_double+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773   if test "$cross_compiling" = yes; then
21774   # Depending upon the size, compute the lo and hi bounds.
21775 cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 $ac_includes_default
21782    typedef long double ac__type_sizeof_;
21783 int
21784 main ()
21785 {
21786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21787 test_array [0] = 0
21788
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_compile") 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } && {
21807          test -z "$ac_c_werror_flag" ||
21808          test ! -s conftest.err
21809        } && test -s conftest.$ac_objext; then
21810   ac_lo=0 ac_mid=0
21811   while :; do
21812     cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 $ac_includes_default
21819    typedef long double ac__type_sizeof_;
21820 int
21821 main ()
21822 {
21823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21824 test_array [0] = 0
21825
21826   ;
21827   return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834   *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837   (eval "$ac_compile") 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && {
21844          test -z "$ac_c_werror_flag" ||
21845          test ! -s conftest.err
21846        } && test -s conftest.$ac_objext; then
21847   ac_hi=$ac_mid; break
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         ac_lo=`expr $ac_mid + 1`
21853                         if test $ac_lo -le $ac_mid; then
21854                           ac_lo= ac_hi=
21855                           break
21856                         fi
21857                         ac_mid=`expr 2 '*' $ac_mid + 1`
21858 fi
21859
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861   done
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866         cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 $ac_includes_default
21873    typedef long double ac__type_sizeof_;
21874 int
21875 main ()
21876 {
21877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21878 test_array [0] = 0
21879
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   ac_hi=-1 ac_mid=-1
21902   while :; do
21903     cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 $ac_includes_default
21910    typedef long double ac__type_sizeof_;
21911 int
21912 main ()
21913 {
21914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21915 test_array [0] = 0
21916
21917   ;
21918   return 0;
21919 }
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925   *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928   (eval "$ac_compile") 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } && {
21935          test -z "$ac_c_werror_flag" ||
21936          test ! -s conftest.err
21937        } && test -s conftest.$ac_objext; then
21938   ac_lo=$ac_mid; break
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943         ac_hi=`expr '(' $ac_mid ')' - 1`
21944                         if test $ac_mid -le $ac_hi; then
21945                           ac_lo= ac_hi=
21946                           break
21947                         fi
21948                         ac_mid=`expr 2 '*' $ac_mid`
21949 fi
21950
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952   done
21953 else
21954   echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957         ac_lo= ac_hi=
21958 fi
21959
21960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 fi
21962
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 # Binary search between lo and hi bounds.
21965 while test "x$ac_lo" != "x$ac_hi"; do
21966   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21967   cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974    typedef long double ac__type_sizeof_;
21975 int
21976 main ()
21977 {
21978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21979 test_array [0] = 0
21980
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 rm -f conftest.$ac_objext
21986 if { (ac_try="$ac_compile"
21987 case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_compile") 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } && {
21999          test -z "$ac_c_werror_flag" ||
22000          test ! -s conftest.err
22001        } && test -s conftest.$ac_objext; then
22002   ac_hi=$ac_mid
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007         ac_lo=`expr '(' $ac_mid ')' + 1`
22008 fi
22009
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 done
22012 case $ac_lo in
22013 ?*) ac_cv_sizeof_long_double=$ac_lo;;
22014 '') if test "$ac_cv_type_long_double" = yes; then
22015      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
22016 See \`config.log' for more details." >&5
22017 echo "$as_me: error: cannot compute sizeof (long double)
22018 See \`config.log' for more details." >&2;}
22019    { (exit 77); exit 77; }; }
22020    else
22021      ac_cv_sizeof_long_double=0
22022    fi ;;
22023 esac
22024 else
22025   cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h.  */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h.  */
22031 $ac_includes_default
22032    typedef long double ac__type_sizeof_;
22033 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22034 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22035 #include <stdio.h>
22036 #include <stdlib.h>
22037 int
22038 main ()
22039 {
22040
22041   FILE *f = fopen ("conftest.val", "w");
22042   if (! f)
22043     return 1;
22044   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22045     {
22046       long int i = longval ();
22047       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22048         return 1;
22049       fprintf (f, "%ld\n", i);
22050     }
22051   else
22052     {
22053       unsigned long int i = ulongval ();
22054       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22055         return 1;
22056       fprintf (f, "%lu\n", i);
22057     }
22058   return ferror (f) || fclose (f) != 0;
22059
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_link") 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22075   { (case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_try") 2>&5
22081   ac_status=$?
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); }; }; then
22084   ac_cv_sizeof_long_double=`cat conftest.val`
22085 else
22086   echo "$as_me: program exited with status $ac_status" >&5
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22089
22090 ( exit $ac_status )
22091 if test "$ac_cv_type_long_double" = yes; then
22092      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
22093 See \`config.log' for more details." >&5
22094 echo "$as_me: error: cannot compute sizeof (long double)
22095 See \`config.log' for more details." >&2;}
22096    { (exit 77); exit 77; }; }
22097    else
22098      ac_cv_sizeof_long_double=0
22099    fi
22100 fi
22101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22102 fi
22103 rm -f conftest.val
22104 fi
22105 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
22106 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
22107
22108
22109
22110 cat >>confdefs.h <<_ACEOF
22111 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
22112 _ACEOF
22113
22114
22115
22116 # Also AC_SUBST this variable for ffi.h.
22117 if test -z "$HAVE_LONG_DOUBLE"; then
22118   HAVE_LONG_DOUBLE=0
22119   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
22120     if test $ac_cv_sizeof_long_double != 0; then
22121       HAVE_LONG_DOUBLE=1
22122
22123 cat >>confdefs.h <<\_ACEOF
22124 #define HAVE_LONG_DOUBLE 1
22125 _ACEOF
22126
22127     fi
22128   fi
22129 fi
22130
22131
22132 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22133 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22134 if test "${ac_cv_c_bigendian+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   # See if sys/param.h defines the BYTE_ORDER macro.
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <sys/types.h>
22145 #include <sys/param.h>
22146
22147 int
22148 main ()
22149 {
22150 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22151         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22152  bogus endian macros
22153 #endif
22154
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166   (eval "$ac_compile") 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && {
22173          test -z "$ac_c_werror_flag" ||
22174          test ! -s conftest.err
22175        } && test -s conftest.$ac_objext; then
22176   # It does; now see whether it defined to BIG_ENDIAN or not.
22177 cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183 #include <sys/types.h>
22184 #include <sys/param.h>
22185
22186 int
22187 main ()
22188 {
22189 #if BYTE_ORDER != BIG_ENDIAN
22190  not big endian
22191 #endif
22192
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 rm -f conftest.$ac_objext
22198 if { (ac_try="$ac_compile"
22199 case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_compile") 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } && {
22211          test -z "$ac_c_werror_flag" ||
22212          test ! -s conftest.err
22213        } && test -s conftest.$ac_objext; then
22214   ac_cv_c_bigendian=yes
22215 else
22216   echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219         ac_cv_c_bigendian=no
22220 fi
22221
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227         # It does not; compile a test program.
22228 if test "$cross_compiling" = yes; then
22229   # try to guess the endianness by grepping values into an object file
22230   ac_cv_c_bigendian=unknown
22231   cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h.  */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h.  */
22237 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22238 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22239 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22240 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22241 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22242 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22243 int
22244 main ()
22245 {
22246  _ascii (); _ebcdic ();
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258   (eval "$ac_compile") 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && {
22265          test -z "$ac_c_werror_flag" ||
22266          test ! -s conftest.err
22267        } && test -s conftest.$ac_objext; then
22268   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22269   ac_cv_c_bigendian=yes
22270 fi
22271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22272   if test "$ac_cv_c_bigendian" = unknown; then
22273     ac_cv_c_bigendian=no
22274   else
22275     # finding both strings is unlikely to happen, but who knows?
22276     ac_cv_c_bigendian=unknown
22277   fi
22278 fi
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283
22284 fi
22285
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 else
22288   cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 $ac_includes_default
22295 int
22296 main ()
22297 {
22298
22299   /* Are we little or big endian?  From Harbison&Steele.  */
22300   union
22301   {
22302     long int l;
22303     char c[sizeof (long int)];
22304   } u;
22305   u.l = 1;
22306   return u.c[sizeof (long int) - 1] == 1;
22307
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest$ac_exeext
22313 if { (ac_try="$ac_link"
22314 case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319   (eval "$ac_link") 2>&5
22320   ac_status=$?
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22323   { (case "(($ac_try" in
22324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325   *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328   (eval "$ac_try") 2>&5
22329   ac_status=$?
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); }; }; then
22332   ac_cv_c_bigendian=no
22333 else
22334   echo "$as_me: program exited with status $ac_status" >&5
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22337
22338 ( exit $ac_status )
22339 ac_cv_c_bigendian=yes
22340 fi
22341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22342 fi
22343
22344
22345 fi
22346
22347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348 fi
22349 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22350 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22351 case $ac_cv_c_bigendian in
22352   yes)
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define WORDS_BIGENDIAN 1
22356 _ACEOF
22357  ;;
22358   no)
22359      ;;
22360   *)
22361     { { echo "$as_me:$LINENO: error: unknown endianness
22362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22363 echo "$as_me: error: unknown endianness
22364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22365    { (exit 1); exit 1; }; } ;;
22366 esac
22367
22368
22369 { echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
22370 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6; }
22371 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
22372   echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374
22375     libffi_cv_as_cfi_pseudo_op=unknown
22376     cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 asm (".cfi_startproc\n\t.cfi_endproc");
22383 int
22384 main ()
22385 {
22386
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_compile") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } && {
22405          test -z "$ac_c_werror_flag" ||
22406          test ! -s conftest.err
22407        } && test -s conftest.$ac_objext; then
22408   libffi_cv_as_cfi_pseudo_op=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413         libffi_cv_as_cfi_pseudo_op=no
22414 fi
22415
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417
22418 fi
22419 { echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
22420 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6; }
22421 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
22422
22423 cat >>confdefs.h <<\_ACEOF
22424 #define HAVE_AS_CFI_PSEUDO_OP 1
22425 _ACEOF
22426
22427 fi
22428
22429 if test x$TARGET = xSPARC; then
22430     { echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
22431 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6; }
22432 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
22433   echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435
22436         save_CFLAGS="$CFLAGS"
22437         save_LDFLAGS="$LDFLAGS"
22438         CFLAGS="$CFLAGS -fpic"
22439         LDFLAGS="$LDFLAGS -shared"
22440         cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h.  */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h.  */
22446 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
22447 int
22448 main ()
22449 {
22450
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext conftest$ac_exeext
22456 if { (ac_try="$ac_link"
22457 case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_link") 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } && {
22469          test -z "$ac_c_werror_flag" ||
22470          test ! -s conftest.err
22471        } && test -s conftest$ac_exeext &&
22472        $as_test_x conftest$ac_exeext; then
22473   libffi_cv_as_sparc_ua_pcrel=yes
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478         libffi_cv_as_sparc_ua_pcrel=no
22479 fi
22480
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482       conftest$ac_exeext conftest.$ac_ext
22483         CFLAGS="$save_CFLAGS"
22484         LDFLAGS="$save_LDFLAGS"
22485 fi
22486 { echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
22487 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6; }
22488     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
22489
22490 cat >>confdefs.h <<\_ACEOF
22491 #define HAVE_AS_SPARC_UA_PCREL 1
22492 _ACEOF
22493
22494     fi
22495
22496     { echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
22497 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6; }
22498 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
22499   echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501
22502        libffi_cv_as_register_pseudo_op=unknown
22503        # Check if we have .register
22504        cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 asm (".register %g2, #scratch");
22511 int
22512 main ()
22513 {
22514
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_compile") 2>conftest.er1
22527   ac_status=$?
22528   grep -v '^ *+' conftest.er1 >conftest.err
22529   rm -f conftest.er1
22530   cat conftest.err >&5
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } && {
22533          test -z "$ac_c_werror_flag" ||
22534          test ! -s conftest.err
22535        } && test -s conftest.$ac_objext; then
22536   libffi_cv_as_register_pseudo_op=yes
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541         libffi_cv_as_register_pseudo_op=no
22542 fi
22543
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545
22546 fi
22547 { echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
22548 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6; }
22549     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
22550
22551 cat >>confdefs.h <<\_ACEOF
22552 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22553 _ACEOF
22554
22555     fi
22556 fi
22557
22558 { echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
22559 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6; }
22560 if test "${libffi_cv_ro_eh_frame+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563
22564         libffi_cv_ro_eh_frame=no
22565         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
22566         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
22567             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
22568                 libffi_cv_ro_eh_frame=yes
22569             elif grep '.section.*eh_frame.*#alloc' conftest.c \
22570                  | grep -v '#write' > /dev/null; then
22571                 libffi_cv_ro_eh_frame=yes
22572             fi
22573         fi
22574         rm -f conftest.*
22575
22576 fi
22577 { echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
22578 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6; }
22579 if test "x$libffi_cv_ro_eh_frame" = xyes; then
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_RO_EH_FRAME 1
22583 _ACEOF
22584
22585
22586 cat >>confdefs.h <<\_ACEOF
22587 #define EH_FRAME_FLAGS "a"
22588 _ACEOF
22589
22590 else
22591
22592 cat >>confdefs.h <<\_ACEOF
22593 #define EH_FRAME_FLAGS "aw"
22594 _ACEOF
22595
22596 fi
22597
22598 { echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
22599 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6; }
22600 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
22601   echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603
22604         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
22605         libffi_cv_hidden_visibility_attribute=no
22606         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
22607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608   (eval $ac_try) 2>&5
22609   ac_status=$?
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); }; }; then
22612             if grep '\.hidden.*foo' conftest.s >/dev/null; then
22613                 libffi_cv_hidden_visibility_attribute=yes
22614             fi
22615         fi
22616         rm -f conftest.*
22617
22618 fi
22619 { echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
22620 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6; }
22621 if test $libffi_cv_hidden_visibility_attribute = yes; then
22622
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
22625 _ACEOF
22626
22627 fi
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637 # Check whether --enable-debug was given.
22638 if test "${enable_debug+set}" = set; then
22639   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
22640
22641 cat >>confdefs.h <<\_ACEOF
22642 #define FFI_DEBUG 1
22643 _ACEOF
22644
22645   fi
22646 fi
22647
22648
22649 # Check whether --enable-structs was given.
22650 if test "${enable_structs+set}" = set; then
22651   enableval=$enable_structs; if test "$enable_structs" = "no"; then
22652
22653 cat >>confdefs.h <<\_ACEOF
22654 #define FFI_NO_STRUCTS 1
22655 _ACEOF
22656
22657   fi
22658 fi
22659
22660
22661 # Check whether --enable-raw-api was given.
22662 if test "${enable_raw_api+set}" = set; then
22663   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
22664
22665 cat >>confdefs.h <<\_ACEOF
22666 #define FFI_NO_RAW_API 1
22667 _ACEOF
22668
22669   fi
22670 fi
22671
22672
22673 # Check whether --enable-purify-safety was given.
22674 if test "${enable_purify_safety+set}" = set; then
22675   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
22676
22677 cat >>confdefs.h <<\_ACEOF
22678 #define USING_PURIFY 1
22679 _ACEOF
22680
22681   fi
22682 fi
22683
22684
22685 if test -n "$with_cross_host" &&
22686    test x"$with_cross_host" != x"no"; then
22687   toolexecdir='$(exec_prefix)/$(target_alias)'
22688   toolexeclibdir='$(toolexecdir)/lib'
22689 else
22690   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22691   toolexeclibdir='$(libdir)'
22692 fi
22693 multi_os_directory=`$CC -print-multi-os-directory`
22694 case $multi_os_directory in
22695   .) ;; # Avoid trailing /.
22696   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
22697 esac
22698
22699
22700
22701 if test "${multilib}" = "yes"; then
22702   multilib_arg="--enable-multilib"
22703 else
22704   multilib_arg=
22705 fi
22706
22707 ac_config_commands="$ac_config_commands include"
22708
22709 ac_config_commands="$ac_config_commands src"
22710
22711
22712 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
22713
22714
22715 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
22716
22717
22718 cat >confcache <<\_ACEOF
22719 # This file is a shell script that caches the results of configure
22720 # tests run on this system so they can be shared between configure
22721 # scripts and configure runs, see configure's option --config-cache.
22722 # It is not useful on other systems.  If it contains results you don't
22723 # want to keep, you may remove or edit it.
22724 #
22725 # config.status only pays attention to the cache file if you give it
22726 # the --recheck option to rerun configure.
22727 #
22728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22730 # following values.
22731
22732 _ACEOF
22733
22734 # The following way of writing the cache mishandles newlines in values,
22735 # but we know of no workaround that is simple, portable, and efficient.
22736 # So, we kill variables containing newlines.
22737 # Ultrix sh set writes to stderr and can't be redirected directly,
22738 # and sets the high bit in the cache file unless we assign to the vars.
22739 (
22740   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22741     eval ac_val=\$$ac_var
22742     case $ac_val in #(
22743     *${as_nl}*)
22744       case $ac_var in #(
22745       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22746 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22747       esac
22748       case $ac_var in #(
22749       _ | IFS | as_nl) ;; #(
22750       *) $as_unset $ac_var ;;
22751       esac ;;
22752     esac
22753   done
22754
22755   (set) 2>&1 |
22756     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22757     *${as_nl}ac_space=\ *)
22758       # `set' does not quote correctly, so add quotes (double-quote
22759       # substitution turns \\\\ into \\, and sed turns \\ into \).
22760       sed -n \
22761         "s/'/'\\\\''/g;
22762           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22763       ;; #(
22764     *)
22765       # `set' quotes correctly as required by POSIX, so do not add quotes.
22766       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22767       ;;
22768     esac |
22769     sort
22770 ) |
22771   sed '
22772      /^ac_cv_env_/b end
22773      t clear
22774      :clear
22775      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22776      t end
22777      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22778      :end' >>confcache
22779 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22780   if test -w "$cache_file"; then
22781     test "x$cache_file" != "x/dev/null" &&
22782       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22783 echo "$as_me: updating cache $cache_file" >&6;}
22784     cat confcache >$cache_file
22785   else
22786     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22787 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22788   fi
22789 fi
22790 rm -f confcache
22791
22792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22793 # Let make expand exec_prefix.
22794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22795
22796 DEFS=-DHAVE_CONFIG_H
22797
22798 ac_libobjs=
22799 ac_ltlibobjs=
22800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22801   # 1. Remove the extension, and $U if already installed.
22802   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22803   ac_i=`echo "$ac_i" | sed "$ac_script"`
22804   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22805   #    will be set to the directory where LIBOBJS objects are built.
22806   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22807   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22808 done
22809 LIBOBJS=$ac_libobjs
22810
22811 LTLIBOBJS=$ac_ltlibobjs
22812
22813
22814 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22815   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22816 Usually this means the macro was only invoked conditionally." >&5
22817 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22818 Usually this means the macro was only invoked conditionally." >&2;}
22819    { (exit 1); exit 1; }; }
22820 fi
22821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22822   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22823 Usually this means the macro was only invoked conditionally." >&5
22824 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22825 Usually this means the macro was only invoked conditionally." >&2;}
22826    { (exit 1); exit 1; }; }
22827 fi
22828 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22829   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22830 Usually this means the macro was only invoked conditionally." >&5
22831 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22832 Usually this means the macro was only invoked conditionally." >&2;}
22833    { (exit 1); exit 1; }; }
22834 fi
22835 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22836   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22837 Usually this means the macro was only invoked conditionally." >&5
22838 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22839 Usually this means the macro was only invoked conditionally." >&2;}
22840    { (exit 1); exit 1; }; }
22841 fi
22842 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22843   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22844 Usually this means the macro was only invoked conditionally." >&5
22845 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22846 Usually this means the macro was only invoked conditionally." >&2;}
22847    { (exit 1); exit 1; }; }
22848 fi
22849 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
22850   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
22851 Usually this means the macro was only invoked conditionally." >&5
22852 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
22853 Usually this means the macro was only invoked conditionally." >&2;}
22854    { (exit 1); exit 1; }; }
22855 fi
22856 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
22857   { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
22858 Usually this means the macro was only invoked conditionally." >&5
22859 echo "$as_me: error: conditional \"MIPS\" was never defined.
22860 Usually this means the macro was only invoked conditionally." >&2;}
22861    { (exit 1); exit 1; }; }
22862 fi
22863 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
22864   { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
22865 Usually this means the macro was only invoked conditionally." >&5
22866 echo "$as_me: error: conditional \"SPARC\" was never defined.
22867 Usually this means the macro was only invoked conditionally." >&2;}
22868    { (exit 1); exit 1; }; }
22869 fi
22870 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
22871   { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
22872 Usually this means the macro was only invoked conditionally." >&5
22873 echo "$as_me: error: conditional \"X86\" was never defined.
22874 Usually this means the macro was only invoked conditionally." >&2;}
22875    { (exit 1); exit 1; }; }
22876 fi
22877 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
22878   { { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
22879 Usually this means the macro was only invoked conditionally." >&5
22880 echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
22881 Usually this means the macro was only invoked conditionally." >&2;}
22882    { (exit 1); exit 1; }; }
22883 fi
22884 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
22885   { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
22886 Usually this means the macro was only invoked conditionally." >&5
22887 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
22888 Usually this means the macro was only invoked conditionally." >&2;}
22889    { (exit 1); exit 1; }; }
22890 fi
22891 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
22892   { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
22893 Usually this means the macro was only invoked conditionally." >&5
22894 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
22895 Usually this means the macro was only invoked conditionally." >&2;}
22896    { (exit 1); exit 1; }; }
22897 fi
22898 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
22899   { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
22900 Usually this means the macro was only invoked conditionally." >&5
22901 echo "$as_me: error: conditional \"ALPHA\" was never defined.
22902 Usually this means the macro was only invoked conditionally." >&2;}
22903    { (exit 1); exit 1; }; }
22904 fi
22905 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
22906   { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
22907 Usually this means the macro was only invoked conditionally." >&5
22908 echo "$as_me: error: conditional \"IA64\" was never defined.
22909 Usually this means the macro was only invoked conditionally." >&2;}
22910    { (exit 1); exit 1; }; }
22911 fi
22912 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
22913   { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
22914 Usually this means the macro was only invoked conditionally." >&5
22915 echo "$as_me: error: conditional \"M32R\" was never defined.
22916 Usually this means the macro was only invoked conditionally." >&2;}
22917    { (exit 1); exit 1; }; }
22918 fi
22919 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
22920   { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
22921 Usually this means the macro was only invoked conditionally." >&5
22922 echo "$as_me: error: conditional \"M68K\" was never defined.
22923 Usually this means the macro was only invoked conditionally." >&2;}
22924    { (exit 1); exit 1; }; }
22925 fi
22926 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
22927   { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
22928 Usually this means the macro was only invoked conditionally." >&5
22929 echo "$as_me: error: conditional \"POWERPC\" was never defined.
22930 Usually this means the macro was only invoked conditionally." >&2;}
22931    { (exit 1); exit 1; }; }
22932 fi
22933 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
22934   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
22935 Usually this means the macro was only invoked conditionally." >&5
22936 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
22937 Usually this means the macro was only invoked conditionally." >&2;}
22938    { (exit 1); exit 1; }; }
22939 fi
22940 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
22941   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
22942 Usually this means the macro was only invoked conditionally." >&5
22943 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
22944 Usually this means the macro was only invoked conditionally." >&2;}
22945    { (exit 1); exit 1; }; }
22946 fi
22947 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
22948   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
22949 Usually this means the macro was only invoked conditionally." >&5
22950 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
22951 Usually this means the macro was only invoked conditionally." >&2;}
22952    { (exit 1); exit 1; }; }
22953 fi
22954 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
22955   { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
22956 Usually this means the macro was only invoked conditionally." >&5
22957 echo "$as_me: error: conditional \"ARM\" was never defined.
22958 Usually this means the macro was only invoked conditionally." >&2;}
22959    { (exit 1); exit 1; }; }
22960 fi
22961 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
22962   { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
22963 Usually this means the macro was only invoked conditionally." >&5
22964 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
22965 Usually this means the macro was only invoked conditionally." >&2;}
22966    { (exit 1); exit 1; }; }
22967 fi
22968 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
22969   { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
22970 Usually this means the macro was only invoked conditionally." >&5
22971 echo "$as_me: error: conditional \"FRV\" was never defined.
22972 Usually this means the macro was only invoked conditionally." >&2;}
22973    { (exit 1); exit 1; }; }
22974 fi
22975 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
22976   { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
22977 Usually this means the macro was only invoked conditionally." >&5
22978 echo "$as_me: error: conditional \"S390\" was never defined.
22979 Usually this means the macro was only invoked conditionally." >&2;}
22980    { (exit 1); exit 1; }; }
22981 fi
22982 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
22983   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
22984 Usually this means the macro was only invoked conditionally." >&5
22985 echo "$as_me: error: conditional \"X86_64\" was never defined.
22986 Usually this means the macro was only invoked conditionally." >&2;}
22987    { (exit 1); exit 1; }; }
22988 fi
22989 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
22990   { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
22991 Usually this means the macro was only invoked conditionally." >&5
22992 echo "$as_me: error: conditional \"SH\" was never defined.
22993 Usually this means the macro was only invoked conditionally." >&2;}
22994    { (exit 1); exit 1; }; }
22995 fi
22996 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
22997   { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
22998 Usually this means the macro was only invoked conditionally." >&5
22999 echo "$as_me: error: conditional \"SH64\" was never defined.
23000 Usually this means the macro was only invoked conditionally." >&2;}
23001    { (exit 1); exit 1; }; }
23002 fi
23003 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
23004   { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
23005 Usually this means the macro was only invoked conditionally." >&5
23006 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
23007 Usually this means the macro was only invoked conditionally." >&2;}
23008    { (exit 1); exit 1; }; }
23009 fi
23010 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
23011   { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
23012 Usually this means the macro was only invoked conditionally." >&5
23013 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
23014 Usually this means the macro was only invoked conditionally." >&2;}
23015    { (exit 1); exit 1; }; }
23016 fi
23017 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
23018   { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
23019 Usually this means the macro was only invoked conditionally." >&5
23020 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
23021 Usually this means the macro was only invoked conditionally." >&2;}
23022    { (exit 1); exit 1; }; }
23023 fi
23024
23025 : ${CONFIG_STATUS=./config.status}
23026 ac_clean_files_save=$ac_clean_files
23027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23028 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23029 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23030 cat >$CONFIG_STATUS <<_ACEOF
23031 #! $SHELL
23032 # Generated by $as_me.
23033 # Run this file to recreate the current configuration.
23034 # Compiler output produced by configure, useful for debugging
23035 # configure, is in config.log if it exists.
23036
23037 debug=false
23038 ac_cs_recheck=false
23039 ac_cs_silent=false
23040 SHELL=\${CONFIG_SHELL-$SHELL}
23041 _ACEOF
23042
23043 cat >>$CONFIG_STATUS <<\_ACEOF
23044 ## --------------------- ##
23045 ## M4sh Initialization.  ##
23046 ## --------------------- ##
23047
23048 # Be more Bourne compatible
23049 DUALCASE=1; export DUALCASE # for MKS sh
23050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23051   emulate sh
23052   NULLCMD=:
23053   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23054   # is contrary to our usage.  Disable this feature.
23055   alias -g '${1+"$@"}'='"$@"'
23056   setopt NO_GLOB_SUBST
23057 else
23058   case `(set -o) 2>/dev/null` in
23059   *posix*) set -o posix ;;
23060 esac
23061
23062 fi
23063
23064
23065
23066
23067 # PATH needs CR
23068 # Avoid depending upon Character Ranges.
23069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23072 as_cr_digits='0123456789'
23073 as_cr_alnum=$as_cr_Letters$as_cr_digits
23074
23075 # The user is always right.
23076 if test "${PATH_SEPARATOR+set}" != set; then
23077   echo "#! /bin/sh" >conf$$.sh
23078   echo  "exit 0"   >>conf$$.sh
23079   chmod +x conf$$.sh
23080   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23081     PATH_SEPARATOR=';'
23082   else
23083     PATH_SEPARATOR=:
23084   fi
23085   rm -f conf$$.sh
23086 fi
23087
23088 # Support unset when possible.
23089 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23090   as_unset=unset
23091 else
23092   as_unset=false
23093 fi
23094
23095
23096 # IFS
23097 # We need space, tab and new line, in precisely that order.  Quoting is
23098 # there to prevent editors from complaining about space-tab.
23099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23100 # splitting by setting IFS to empty value.)
23101 as_nl='
23102 '
23103 IFS=" ""        $as_nl"
23104
23105 # Find who we are.  Look in the path if we contain no directory separator.
23106 case $0 in
23107   *[\\/]* ) as_myself=$0 ;;
23108   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23109 for as_dir in $PATH
23110 do
23111   IFS=$as_save_IFS
23112   test -z "$as_dir" && as_dir=.
23113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23114 done
23115 IFS=$as_save_IFS
23116
23117      ;;
23118 esac
23119 # We did not find ourselves, most probably we were run as `sh COMMAND'
23120 # in which case we are not to be found in the path.
23121 if test "x$as_myself" = x; then
23122   as_myself=$0
23123 fi
23124 if test ! -f "$as_myself"; then
23125   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23126   { (exit 1); exit 1; }
23127 fi
23128
23129 # Work around bugs in pre-3.0 UWIN ksh.
23130 for as_var in ENV MAIL MAILPATH
23131 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23132 done
23133 PS1='$ '
23134 PS2='> '
23135 PS4='+ '
23136
23137 # NLS nuisances.
23138 for as_var in \
23139   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23140   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23141   LC_TELEPHONE LC_TIME
23142 do
23143   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23144     eval $as_var=C; export $as_var
23145   else
23146     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23147   fi
23148 done
23149
23150 # Required to use basename.
23151 if expr a : '\(a\)' >/dev/null 2>&1 &&
23152    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23153   as_expr=expr
23154 else
23155   as_expr=false
23156 fi
23157
23158 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23159   as_basename=basename
23160 else
23161   as_basename=false
23162 fi
23163
23164
23165 # Name of the executable.
23166 as_me=`$as_basename -- "$0" ||
23167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23168          X"$0" : 'X\(//\)$' \| \
23169          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23170 echo X/"$0" |
23171     sed '/^.*\/\([^/][^/]*\)\/*$/{
23172             s//\1/
23173             q
23174           }
23175           /^X\/\(\/\/\)$/{
23176             s//\1/
23177             q
23178           }
23179           /^X\/\(\/\).*/{
23180             s//\1/
23181             q
23182           }
23183           s/.*/./; q'`
23184
23185 # CDPATH.
23186 $as_unset CDPATH
23187
23188
23189
23190   as_lineno_1=$LINENO
23191   as_lineno_2=$LINENO
23192   test "x$as_lineno_1" != "x$as_lineno_2" &&
23193   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23194
23195   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23196   # uniformly replaced by the line number.  The first 'sed' inserts a
23197   # line-number line after each line using $LINENO; the second 'sed'
23198   # does the real work.  The second script uses 'N' to pair each
23199   # line-number line with the line containing $LINENO, and appends
23200   # trailing '-' during substitution so that $LINENO is not a special
23201   # case at line end.
23202   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23203   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23204   # E. McMahon (1931-1989) for sed's syntax.  :-)
23205   sed -n '
23206     p
23207     /[$]LINENO/=
23208   ' <$as_myself |
23209     sed '
23210       s/[$]LINENO.*/&-/
23211       t lineno
23212       b
23213       :lineno
23214       N
23215       :loop
23216       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23217       t loop
23218       s/-\n.*//
23219     ' >$as_me.lineno &&
23220   chmod +x "$as_me.lineno" ||
23221     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23222    { (exit 1); exit 1; }; }
23223
23224   # Don't try to exec as it changes $[0], causing all sort of problems
23225   # (the dirname of $[0] is not the place where we might find the
23226   # original and so on.  Autoconf is especially sensitive to this).
23227   . "./$as_me.lineno"
23228   # Exit status is that of the last command.
23229   exit
23230 }
23231
23232
23233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23234   as_dirname=dirname
23235 else
23236   as_dirname=false
23237 fi
23238
23239 ECHO_C= ECHO_N= ECHO_T=
23240 case `echo -n x` in
23241 -n*)
23242   case `echo 'x\c'` in
23243   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23244   *)   ECHO_C='\c';;
23245   esac;;
23246 *)
23247   ECHO_N='-n';;
23248 esac
23249
23250 if expr a : '\(a\)' >/dev/null 2>&1 &&
23251    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23252   as_expr=expr
23253 else
23254   as_expr=false
23255 fi
23256
23257 rm -f conf$$ conf$$.exe conf$$.file
23258 if test -d conf$$.dir; then
23259   rm -f conf$$.dir/conf$$.file
23260 else
23261   rm -f conf$$.dir
23262   mkdir conf$$.dir
23263 fi
23264 echo >conf$$.file
23265 if ln -s conf$$.file conf$$ 2>/dev/null; then
23266   as_ln_s='ln -s'
23267   # ... but there are two gotchas:
23268   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23269   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23270   # In both cases, we have to default to `cp -p'.
23271   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23272     as_ln_s='cp -p'
23273 elif ln conf$$.file conf$$ 2>/dev/null; then
23274   as_ln_s=ln
23275 else
23276   as_ln_s='cp -p'
23277 fi
23278 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23279 rmdir conf$$.dir 2>/dev/null
23280
23281 if mkdir -p . 2>/dev/null; then
23282   as_mkdir_p=:
23283 else
23284   test -d ./-p && rmdir ./-p
23285   as_mkdir_p=false
23286 fi
23287
23288 if test -x / >/dev/null 2>&1; then
23289   as_test_x='test -x'
23290 else
23291   if ls -dL / >/dev/null 2>&1; then
23292     as_ls_L_option=L
23293   else
23294     as_ls_L_option=
23295   fi
23296   as_test_x='
23297     eval sh -c '\''
23298       if test -d "$1"; then
23299         test -d "$1/.";
23300       else
23301         case $1 in
23302         -*)set "./$1";;
23303         esac;
23304         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23305         ???[sx]*):;;*)false;;esac;fi
23306     '\'' sh
23307   '
23308 fi
23309 as_executable_p=$as_test_x
23310
23311 # Sed expression to map a string onto a valid CPP name.
23312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23313
23314 # Sed expression to map a string onto a valid variable name.
23315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23316
23317
23318 exec 6>&1
23319
23320 # Save the log message, to keep $[0] and so on meaningful, and to
23321 # report actual input values of CONFIG_FILES etc. instead of their
23322 # values after options handling.
23323 ac_log="
23324 This file was extended by libffi $as_me 3.0.6, which was
23325 generated by GNU Autoconf 2.61.  Invocation command line was
23326
23327   CONFIG_FILES    = $CONFIG_FILES
23328   CONFIG_HEADERS  = $CONFIG_HEADERS
23329   CONFIG_LINKS    = $CONFIG_LINKS
23330   CONFIG_COMMANDS = $CONFIG_COMMANDS
23331   $ $0 $@
23332
23333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23334 "
23335
23336 _ACEOF
23337
23338 cat >>$CONFIG_STATUS <<_ACEOF
23339 # Files that config.status was made for.
23340 config_files="$ac_config_files"
23341 config_headers="$ac_config_headers"
23342 config_links="$ac_config_links"
23343 config_commands="$ac_config_commands"
23344
23345 _ACEOF
23346
23347 cat >>$CONFIG_STATUS <<\_ACEOF
23348 ac_cs_usage="\
23349 \`$as_me' instantiates files from templates according to the
23350 current configuration.
23351
23352 Usage: $0 [OPTIONS] [FILE]...
23353
23354   -h, --help       print this help, then exit
23355   -V, --version    print version number and configuration settings, then exit
23356   -q, --quiet      do not print progress messages
23357   -d, --debug      don't remove temporary files
23358       --recheck    update $as_me by reconfiguring in the same conditions
23359   --file=FILE[:TEMPLATE]
23360                    instantiate the configuration file FILE
23361   --header=FILE[:TEMPLATE]
23362                    instantiate the configuration header FILE
23363
23364 Configuration files:
23365 $config_files
23366
23367 Configuration headers:
23368 $config_headers
23369
23370 Configuration links:
23371 $config_links
23372
23373 Configuration commands:
23374 $config_commands
23375
23376 Report bugs to <bug-autoconf@gnu.org>."
23377
23378 _ACEOF
23379 cat >>$CONFIG_STATUS <<_ACEOF
23380 ac_cs_version="\\
23381 libffi config.status 3.0.6
23382 configured by $0, generated by GNU Autoconf 2.61,
23383   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23384
23385 Copyright (C) 2006 Free Software Foundation, Inc.
23386 This config.status script is free software; the Free Software Foundation
23387 gives unlimited permission to copy, distribute and modify it."
23388
23389 ac_pwd='$ac_pwd'
23390 srcdir='$srcdir'
23391 INSTALL='$INSTALL'
23392 MKDIR_P='$MKDIR_P'
23393 _ACEOF
23394
23395 cat >>$CONFIG_STATUS <<\_ACEOF
23396 # If no file are specified by the user, then we need to provide default
23397 # value.  By we need to know if files were specified by the user.
23398 ac_need_defaults=:
23399 while test $# != 0
23400 do
23401   case $1 in
23402   --*=*)
23403     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23404     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23405     ac_shift=:
23406     ;;
23407   *)
23408     ac_option=$1
23409     ac_optarg=$2
23410     ac_shift=shift
23411     ;;
23412   esac
23413
23414   case $ac_option in
23415   # Handling of the options.
23416   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23417     ac_cs_recheck=: ;;
23418   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23419     echo "$ac_cs_version"; exit ;;
23420   --debug | --debu | --deb | --de | --d | -d )
23421     debug=: ;;
23422   --file | --fil | --fi | --f )
23423     $ac_shift
23424     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23425     ac_need_defaults=false;;
23426   --header | --heade | --head | --hea )
23427     $ac_shift
23428     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23429     ac_need_defaults=false;;
23430   --he | --h)
23431     # Conflict between --help and --header
23432     { echo "$as_me: error: ambiguous option: $1
23433 Try \`$0 --help' for more information." >&2
23434    { (exit 1); exit 1; }; };;
23435   --help | --hel | -h )
23436     echo "$ac_cs_usage"; exit ;;
23437   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23438   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23439     ac_cs_silent=: ;;
23440
23441   # This is an error.
23442   -*) { echo "$as_me: error: unrecognized option: $1
23443 Try \`$0 --help' for more information." >&2
23444    { (exit 1); exit 1; }; } ;;
23445
23446   *) ac_config_targets="$ac_config_targets $1"
23447      ac_need_defaults=false ;;
23448
23449   esac
23450   shift
23451 done
23452
23453 ac_configure_extra_args=
23454
23455 if $ac_cs_silent; then
23456   exec 6>/dev/null
23457   ac_configure_extra_args="$ac_configure_extra_args --silent"
23458 fi
23459
23460 _ACEOF
23461 cat >>$CONFIG_STATUS <<_ACEOF
23462 if \$ac_cs_recheck; then
23463   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23464   CONFIG_SHELL=$SHELL
23465   export CONFIG_SHELL
23466   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23467 fi
23468
23469 _ACEOF
23470 cat >>$CONFIG_STATUS <<\_ACEOF
23471 exec 5>>config.log
23472 {
23473   echo
23474   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23475 ## Running $as_me. ##
23476 _ASBOX
23477   echo "$ac_log"
23478 } >&5
23479
23480 _ACEOF
23481 cat >>$CONFIG_STATUS <<_ACEOF
23482 #
23483 # INIT-COMMANDS
23484 #
23485 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23486 TARGETDIR="$TARGETDIR"
23487
23488 _ACEOF
23489
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23491
23492 # Handling of arguments.
23493 for ac_config_target in $ac_config_targets
23494 do
23495   case $ac_config_target in
23496     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
23497     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23498     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
23499     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
23500     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
23501     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23502     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
23503     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23504     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
23505     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23506     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
23507
23508   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23510    { (exit 1); exit 1; }; };;
23511   esac
23512 done
23513
23514
23515 # If the user did not use the arguments to specify the items to instantiate,
23516 # then the envvar interface is used.  Set only those that are not.
23517 # We use the long form for the default assignment because of an extremely
23518 # bizarre bug on SunOS 4.1.3.
23519 if $ac_need_defaults; then
23520   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23521   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23522   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23523   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23524 fi
23525
23526 # Have a temporary directory for convenience.  Make it in the build tree
23527 # simply because there is no reason against having it here, and in addition,
23528 # creating and moving files from /tmp can sometimes cause problems.
23529 # Hook for its removal unless debugging.
23530 # Note that there is a small window in which the directory will not be cleaned:
23531 # after its creation but before its name has been assigned to `$tmp'.
23532 $debug ||
23533 {
23534   tmp=
23535   trap 'exit_status=$?
23536   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23537 ' 0
23538   trap '{ (exit 1); exit 1; }' 1 2 13 15
23539 }
23540 # Create a (secure) tmp directory for tmp files.
23541
23542 {
23543   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23544   test -n "$tmp" && test -d "$tmp"
23545 }  ||
23546 {
23547   tmp=./conf$$-$RANDOM
23548   (umask 077 && mkdir "$tmp")
23549 } ||
23550 {
23551    echo "$me: cannot create a temporary directory in ." >&2
23552    { (exit 1); exit 1; }
23553 }
23554
23555 #
23556 # Set up the sed scripts for CONFIG_FILES section.
23557 #
23558
23559 # No need to generate the scripts if there are no CONFIG_FILES.
23560 # This happens for instance when ./config.status config.h
23561 if test -n "$CONFIG_FILES"; then
23562
23563 _ACEOF
23564
23565
23566
23567 ac_delim='%!_!# '
23568 for ac_last_try in false false false false false :; do
23569   cat >conf$$subs.sed <<_ACEOF
23570 SHELL!$SHELL$ac_delim
23571 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23572 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23573 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23574 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23575 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23576 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23577 exec_prefix!$exec_prefix$ac_delim
23578 prefix!$prefix$ac_delim
23579 program_transform_name!$program_transform_name$ac_delim
23580 bindir!$bindir$ac_delim
23581 sbindir!$sbindir$ac_delim
23582 libexecdir!$libexecdir$ac_delim
23583 datarootdir!$datarootdir$ac_delim
23584 datadir!$datadir$ac_delim
23585 sysconfdir!$sysconfdir$ac_delim
23586 sharedstatedir!$sharedstatedir$ac_delim
23587 localstatedir!$localstatedir$ac_delim
23588 includedir!$includedir$ac_delim
23589 oldincludedir!$oldincludedir$ac_delim
23590 docdir!$docdir$ac_delim
23591 infodir!$infodir$ac_delim
23592 htmldir!$htmldir$ac_delim
23593 dvidir!$dvidir$ac_delim
23594 pdfdir!$pdfdir$ac_delim
23595 psdir!$psdir$ac_delim
23596 libdir!$libdir$ac_delim
23597 localedir!$localedir$ac_delim
23598 mandir!$mandir$ac_delim
23599 DEFS!$DEFS$ac_delim
23600 ECHO_C!$ECHO_C$ac_delim
23601 ECHO_N!$ECHO_N$ac_delim
23602 ECHO_T!$ECHO_T$ac_delim
23603 LIBS!$LIBS$ac_delim
23604 build_alias!$build_alias$ac_delim
23605 host_alias!$host_alias$ac_delim
23606 target_alias!$target_alias$ac_delim
23607 build!$build$ac_delim
23608 build_cpu!$build_cpu$ac_delim
23609 build_vendor!$build_vendor$ac_delim
23610 build_os!$build_os$ac_delim
23611 host!$host$ac_delim
23612 host_cpu!$host_cpu$ac_delim
23613 host_vendor!$host_vendor$ac_delim
23614 host_os!$host_os$ac_delim
23615 target!$target$ac_delim
23616 target_cpu!$target_cpu$ac_delim
23617 target_vendor!$target_vendor$ac_delim
23618 target_os!$target_os$ac_delim
23619 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23620 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23621 INSTALL_DATA!$INSTALL_DATA$ac_delim
23622 am__isrc!$am__isrc$ac_delim
23623 CYGPATH_W!$CYGPATH_W$ac_delim
23624 PACKAGE!$PACKAGE$ac_delim
23625 VERSION!$VERSION$ac_delim
23626 ACLOCAL!$ACLOCAL$ac_delim
23627 AUTOCONF!$AUTOCONF$ac_delim
23628 AUTOMAKE!$AUTOMAKE$ac_delim
23629 AUTOHEADER!$AUTOHEADER$ac_delim
23630 MAKEINFO!$MAKEINFO$ac_delim
23631 install_sh!$install_sh$ac_delim
23632 STRIP!$STRIP$ac_delim
23633 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23634 mkdir_p!$mkdir_p$ac_delim
23635 AWK!$AWK$ac_delim
23636 SET_MAKE!$SET_MAKE$ac_delim
23637 am__leading_dot!$am__leading_dot$ac_delim
23638 AMTAR!$AMTAR$ac_delim
23639 am__tar!$am__tar$ac_delim
23640 am__untar!$am__untar$ac_delim
23641 CC!$CC$ac_delim
23642 CFLAGS!$CFLAGS$ac_delim
23643 LDFLAGS!$LDFLAGS$ac_delim
23644 CPPFLAGS!$CPPFLAGS$ac_delim
23645 ac_ct_CC!$ac_ct_CC$ac_delim
23646 EXEEXT!$EXEEXT$ac_delim
23647 OBJEXT!$OBJEXT$ac_delim
23648 DEPDIR!$DEPDIR$ac_delim
23649 am__include!$am__include$ac_delim
23650 am__quote!$am__quote$ac_delim
23651 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23652 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23653 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23654 CCDEPMODE!$CCDEPMODE$ac_delim
23655 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23656 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23657 CCAS!$CCAS$ac_delim
23658 CCASFLAGS!$CCASFLAGS$ac_delim
23659 CCASDEPMODE!$CCASDEPMODE$ac_delim
23660 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23661 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23662 SED!$SED$ac_delim
23663 GREP!$GREP$ac_delim
23664 EGREP!$EGREP$ac_delim
23665 LN_S!$LN_S$ac_delim
23666 ECHO!$ECHO$ac_delim
23667 _ACEOF
23668
23669   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23670     break
23671   elif $ac_last_try; then
23672     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23673 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23674    { (exit 1); exit 1; }; }
23675   else
23676     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23677   fi
23678 done
23679
23680 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23681 if test -n "$ac_eof"; then
23682   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23683   ac_eof=`expr $ac_eof + 1`
23684 fi
23685
23686 cat >>$CONFIG_STATUS <<_ACEOF
23687 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23689 _ACEOF
23690 sed '
23691 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23692 s/^/s,@/; s/!/@,|#_!!_#|/
23693 :n
23694 t n
23695 s/'"$ac_delim"'$/,g/; t
23696 s/$/\\/; p
23697 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23698 ' >>$CONFIG_STATUS <conf$$subs.sed
23699 rm -f conf$$subs.sed
23700 cat >>$CONFIG_STATUS <<_ACEOF
23701 CEOF$ac_eof
23702 _ACEOF
23703
23704
23705 ac_delim='%!_!# '
23706 for ac_last_try in false false false false false :; do
23707   cat >conf$$subs.sed <<_ACEOF
23708 AR!$AR$ac_delim
23709 RANLIB!$RANLIB$ac_delim
23710 CPP!$CPP$ac_delim
23711 CXX!$CXX$ac_delim
23712 CXXFLAGS!$CXXFLAGS$ac_delim
23713 ac_ct_CXX!$ac_ct_CXX$ac_delim
23714 CXXDEPMODE!$CXXDEPMODE$ac_delim
23715 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23716 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23717 CXXCPP!$CXXCPP$ac_delim
23718 F77!$F77$ac_delim
23719 FFLAGS!$FFLAGS$ac_delim
23720 ac_ct_F77!$ac_ct_F77$ac_delim
23721 LIBTOOL!$LIBTOOL$ac_delim
23722 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23723 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23724 MAINT!$MAINT$ac_delim
23725 TESTSUBDIR_TRUE!$TESTSUBDIR_TRUE$ac_delim
23726 TESTSUBDIR_FALSE!$TESTSUBDIR_FALSE$ac_delim
23727 AM_RUNTESTFLAGS!$AM_RUNTESTFLAGS$ac_delim
23728 MIPS_TRUE!$MIPS_TRUE$ac_delim
23729 MIPS_FALSE!$MIPS_FALSE$ac_delim
23730 SPARC_TRUE!$SPARC_TRUE$ac_delim
23731 SPARC_FALSE!$SPARC_FALSE$ac_delim
23732 X86_TRUE!$X86_TRUE$ac_delim
23733 X86_FALSE!$X86_FALSE$ac_delim
23734 X86_FREEBSD_TRUE!$X86_FREEBSD_TRUE$ac_delim
23735 X86_FREEBSD_FALSE!$X86_FREEBSD_FALSE$ac_delim
23736 X86_WIN32_TRUE!$X86_WIN32_TRUE$ac_delim
23737 X86_WIN32_FALSE!$X86_WIN32_FALSE$ac_delim
23738 X86_DARWIN_TRUE!$X86_DARWIN_TRUE$ac_delim
23739 X86_DARWIN_FALSE!$X86_DARWIN_FALSE$ac_delim
23740 ALPHA_TRUE!$ALPHA_TRUE$ac_delim
23741 ALPHA_FALSE!$ALPHA_FALSE$ac_delim
23742 IA64_TRUE!$IA64_TRUE$ac_delim
23743 IA64_FALSE!$IA64_FALSE$ac_delim
23744 M32R_TRUE!$M32R_TRUE$ac_delim
23745 M32R_FALSE!$M32R_FALSE$ac_delim
23746 M68K_TRUE!$M68K_TRUE$ac_delim
23747 M68K_FALSE!$M68K_FALSE$ac_delim
23748 POWERPC_TRUE!$POWERPC_TRUE$ac_delim
23749 POWERPC_FALSE!$POWERPC_FALSE$ac_delim
23750 POWERPC_AIX_TRUE!$POWERPC_AIX_TRUE$ac_delim
23751 POWERPC_AIX_FALSE!$POWERPC_AIX_FALSE$ac_delim
23752 POWERPC_DARWIN_TRUE!$POWERPC_DARWIN_TRUE$ac_delim
23753 POWERPC_DARWIN_FALSE!$POWERPC_DARWIN_FALSE$ac_delim
23754 POWERPC_FREEBSD_TRUE!$POWERPC_FREEBSD_TRUE$ac_delim
23755 POWERPC_FREEBSD_FALSE!$POWERPC_FREEBSD_FALSE$ac_delim
23756 ARM_TRUE!$ARM_TRUE$ac_delim
23757 ARM_FALSE!$ARM_FALSE$ac_delim
23758 LIBFFI_CRIS_TRUE!$LIBFFI_CRIS_TRUE$ac_delim
23759 LIBFFI_CRIS_FALSE!$LIBFFI_CRIS_FALSE$ac_delim
23760 FRV_TRUE!$FRV_TRUE$ac_delim
23761 FRV_FALSE!$FRV_FALSE$ac_delim
23762 S390_TRUE!$S390_TRUE$ac_delim
23763 S390_FALSE!$S390_FALSE$ac_delim
23764 X86_64_TRUE!$X86_64_TRUE$ac_delim
23765 X86_64_FALSE!$X86_64_FALSE$ac_delim
23766 SH_TRUE!$SH_TRUE$ac_delim
23767 SH_FALSE!$SH_FALSE$ac_delim
23768 SH64_TRUE!$SH64_TRUE$ac_delim
23769 SH64_FALSE!$SH64_FALSE$ac_delim
23770 PA_LINUX_TRUE!$PA_LINUX_TRUE$ac_delim
23771 PA_LINUX_FALSE!$PA_LINUX_FALSE$ac_delim
23772 PA_HPUX_TRUE!$PA_HPUX_TRUE$ac_delim
23773 PA_HPUX_FALSE!$PA_HPUX_FALSE$ac_delim
23774 PA64_HPUX_TRUE!$PA64_HPUX_TRUE$ac_delim
23775 PA64_HPUX_FALSE!$PA64_HPUX_FALSE$ac_delim
23776 ALLOCA!$ALLOCA$ac_delim
23777 HAVE_LONG_DOUBLE!$HAVE_LONG_DOUBLE$ac_delim
23778 TARGET!$TARGET$ac_delim
23779 TARGETDIR!$TARGETDIR$ac_delim
23780 toolexecdir!$toolexecdir$ac_delim
23781 toolexeclibdir!$toolexeclibdir$ac_delim
23782 LIBOBJS!$LIBOBJS$ac_delim
23783 LTLIBOBJS!$LTLIBOBJS$ac_delim
23784 _ACEOF
23785
23786   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
23787     break
23788   elif $ac_last_try; then
23789     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23791    { (exit 1); exit 1; }; }
23792   else
23793     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23794   fi
23795 done
23796
23797 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23798 if test -n "$ac_eof"; then
23799   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23800   ac_eof=`expr $ac_eof + 1`
23801 fi
23802
23803 cat >>$CONFIG_STATUS <<_ACEOF
23804 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23806 _ACEOF
23807 sed '
23808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23809 s/^/s,@/; s/!/@,|#_!!_#|/
23810 :n
23811 t n
23812 s/'"$ac_delim"'$/,g/; t
23813 s/$/\\/; p
23814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23815 ' >>$CONFIG_STATUS <conf$$subs.sed
23816 rm -f conf$$subs.sed
23817 cat >>$CONFIG_STATUS <<_ACEOF
23818 :end
23819 s/|#_!!_#|//g
23820 CEOF$ac_eof
23821 _ACEOF
23822
23823
23824 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23825 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23826 # trailing colons and then remove the whole line if VPATH becomes empty
23827 # (actually we leave an empty line to preserve line numbers).
23828 if test "x$srcdir" = x.; then
23829   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23830 s/:*\$(srcdir):*/:/
23831 s/:*\${srcdir}:*/:/
23832 s/:*@srcdir@:*/:/
23833 s/^\([^=]*=[     ]*\):*/\1/
23834 s/:*$//
23835 s/^[^=]*=[       ]*$//
23836 }'
23837 fi
23838
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23840 fi # test -n "$CONFIG_FILES"
23841
23842
23843 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
23844 do
23845   case $ac_tag in
23846   :[FHLC]) ac_mode=$ac_tag; continue;;
23847   esac
23848   case $ac_mode$ac_tag in
23849   :[FHL]*:*);;
23850   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23851 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23852    { (exit 1); exit 1; }; };;
23853   :[FH]-) ac_tag=-:-;;
23854   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23855   esac
23856   ac_save_IFS=$IFS
23857   IFS=:
23858   set x $ac_tag
23859   IFS=$ac_save_IFS
23860   shift
23861   ac_file=$1
23862   shift
23863
23864   case $ac_mode in
23865   :L) ac_source=$1;;
23866   :[FH])
23867     ac_file_inputs=
23868     for ac_f
23869     do
23870       case $ac_f in
23871       -) ac_f="$tmp/stdin";;
23872       *) # Look for the file first in the build tree, then in the source tree
23873          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23874          # because $ac_f cannot contain `:'.
23875          test -f "$ac_f" ||
23876            case $ac_f in
23877            [\\/$]*) false;;
23878            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23879            esac ||
23880            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23881 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23882    { (exit 1); exit 1; }; };;
23883       esac
23884       ac_file_inputs="$ac_file_inputs $ac_f"
23885     done
23886
23887     # Let's still pretend it is `configure' which instantiates (i.e., don't
23888     # use $as_me), people would be surprised to read:
23889     #    /* config.h.  Generated by config.status.  */
23890     configure_input="Generated from "`IFS=:
23891           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23892     if test x"$ac_file" != x-; then
23893       configure_input="$ac_file.  $configure_input"
23894       { echo "$as_me:$LINENO: creating $ac_file" >&5
23895 echo "$as_me: creating $ac_file" >&6;}
23896     fi
23897
23898     case $ac_tag in
23899     *:-:* | *:-) cat >"$tmp/stdin";;
23900     esac
23901     ;;
23902   esac
23903
23904   ac_dir=`$as_dirname -- "$ac_file" ||
23905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23906          X"$ac_file" : 'X\(//\)[^/]' \| \
23907          X"$ac_file" : 'X\(//\)$' \| \
23908          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23909 echo X"$ac_file" |
23910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23911             s//\1/
23912             q
23913           }
23914           /^X\(\/\/\)[^/].*/{
23915             s//\1/
23916             q
23917           }
23918           /^X\(\/\/\)$/{
23919             s//\1/
23920             q
23921           }
23922           /^X\(\/\).*/{
23923             s//\1/
23924             q
23925           }
23926           s/.*/./; q'`
23927   { as_dir="$ac_dir"
23928   case $as_dir in #(
23929   -*) as_dir=./$as_dir;;
23930   esac
23931   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23932     as_dirs=
23933     while :; do
23934       case $as_dir in #(
23935       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23936       *) as_qdir=$as_dir;;
23937       esac
23938       as_dirs="'$as_qdir' $as_dirs"
23939       as_dir=`$as_dirname -- "$as_dir" ||
23940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23941          X"$as_dir" : 'X\(//\)[^/]' \| \
23942          X"$as_dir" : 'X\(//\)$' \| \
23943          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23944 echo X"$as_dir" |
23945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23946             s//\1/
23947             q
23948           }
23949           /^X\(\/\/\)[^/].*/{
23950             s//\1/
23951             q
23952           }
23953           /^X\(\/\/\)$/{
23954             s//\1/
23955             q
23956           }
23957           /^X\(\/\).*/{
23958             s//\1/
23959             q
23960           }
23961           s/.*/./; q'`
23962       test -d "$as_dir" && break
23963     done
23964     test -z "$as_dirs" || eval "mkdir $as_dirs"
23965   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23967    { (exit 1); exit 1; }; }; }
23968   ac_builddir=.
23969
23970 case "$ac_dir" in
23971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23972 *)
23973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23974   # A ".." for each directory in $ac_dir_suffix.
23975   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23976   case $ac_top_builddir_sub in
23977   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23978   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23979   esac ;;
23980 esac
23981 ac_abs_top_builddir=$ac_pwd
23982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23983 # for backward compatibility:
23984 ac_top_builddir=$ac_top_build_prefix
23985
23986 case $srcdir in
23987   .)  # We are building in place.
23988     ac_srcdir=.
23989     ac_top_srcdir=$ac_top_builddir_sub
23990     ac_abs_top_srcdir=$ac_pwd ;;
23991   [\\/]* | ?:[\\/]* )  # Absolute name.
23992     ac_srcdir=$srcdir$ac_dir_suffix;
23993     ac_top_srcdir=$srcdir
23994     ac_abs_top_srcdir=$srcdir ;;
23995   *) # Relative name.
23996     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23997     ac_top_srcdir=$ac_top_build_prefix$srcdir
23998     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23999 esac
24000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24001
24002
24003   case $ac_mode in
24004   :F)
24005   #
24006   # CONFIG_FILE
24007   #
24008
24009   case $INSTALL in
24010   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24011   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24012   esac
24013   ac_MKDIR_P=$MKDIR_P
24014   case $MKDIR_P in
24015   [\\/$]* | ?:[\\/]* ) ;;
24016   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24017   esac
24018 _ACEOF
24019
24020 cat >>$CONFIG_STATUS <<\_ACEOF
24021 # If the template does not know about datarootdir, expand it.
24022 # FIXME: This hack should be removed a few years after 2.60.
24023 ac_datarootdir_hack=; ac_datarootdir_seen=
24024
24025 case `sed -n '/datarootdir/ {
24026   p
24027   q
24028 }
24029 /@datadir@/p
24030 /@docdir@/p
24031 /@infodir@/p
24032 /@localedir@/p
24033 /@mandir@/p
24034 ' $ac_file_inputs` in
24035 *datarootdir*) ac_datarootdir_seen=yes;;
24036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24037   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24038 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24039 _ACEOF
24040 cat >>$CONFIG_STATUS <<_ACEOF
24041   ac_datarootdir_hack='
24042   s&@datadir@&$datadir&g
24043   s&@docdir@&$docdir&g
24044   s&@infodir@&$infodir&g
24045   s&@localedir@&$localedir&g
24046   s&@mandir@&$mandir&g
24047     s&\\\${datarootdir}&$datarootdir&g' ;;
24048 esac
24049 _ACEOF
24050
24051 # Neutralize VPATH when `$srcdir' = `.'.
24052 # Shell code in configure.ac might set extrasub.
24053 # FIXME: do we really want to maintain this feature?
24054 cat >>$CONFIG_STATUS <<_ACEOF
24055   sed "$ac_vpsub
24056 $extrasub
24057 _ACEOF
24058 cat >>$CONFIG_STATUS <<\_ACEOF
24059 :t
24060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24061 s&@configure_input@&$configure_input&;t t
24062 s&@top_builddir@&$ac_top_builddir_sub&;t t
24063 s&@srcdir@&$ac_srcdir&;t t
24064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24065 s&@top_srcdir@&$ac_top_srcdir&;t t
24066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24067 s&@builddir@&$ac_builddir&;t t
24068 s&@abs_builddir@&$ac_abs_builddir&;t t
24069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24070 s&@INSTALL@&$ac_INSTALL&;t t
24071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24072 $ac_datarootdir_hack
24073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24074
24075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24076   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24077   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24078   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24079 which seems to be undefined.  Please make sure it is defined." >&5
24080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24081 which seems to be undefined.  Please make sure it is defined." >&2;}
24082
24083   rm -f "$tmp/stdin"
24084   case $ac_file in
24085   -) cat "$tmp/out"; rm -f "$tmp/out";;
24086   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24087   esac
24088  ;;
24089   :H)
24090   #
24091   # CONFIG_HEADER
24092   #
24093 _ACEOF
24094
24095 # Transform confdefs.h into a sed script `conftest.defines', that
24096 # substitutes the proper values into config.h.in to produce config.h.
24097 rm -f conftest.defines conftest.tail
24098 # First, append a space to every undef/define line, to ease matching.
24099 echo 's/$/ /' >conftest.defines
24100 # Then, protect against being on the right side of a sed subst, or in
24101 # an unquoted here document, in config.status.  If some macros were
24102 # called several times there might be several #defines for the same
24103 # symbol, which is useless.  But do not sort them, since the last
24104 # AC_DEFINE must be honored.
24105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24106 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24107 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24108 # PARAMS is the parameter list in the macro definition--in most cases, it's
24109 # just an empty string.
24110 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24111 ac_dB='\\)[      (].*,\\1define\\2'
24112 ac_dC=' '
24113 ac_dD=' ,'
24114
24115 uniq confdefs.h |
24116   sed -n '
24117         t rset
24118         :rset
24119         s/^[     ]*#[    ]*define[       ][      ]*//
24120         t ok
24121         d
24122         :ok
24123         s/[\\&,]/\\&/g
24124         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24125         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24126   ' >>conftest.defines
24127
24128 # Remove the space that was appended to ease matching.
24129 # Then replace #undef with comments.  This is necessary, for
24130 # example, in the case of _POSIX_SOURCE, which is predefined and required
24131 # on some systems where configure will not decide to define it.
24132 # (The regexp can be short, since the line contains either #define or #undef.)
24133 echo 's/ $//
24134 s,^[     #]*u.*,/* & */,' >>conftest.defines
24135
24136 # Break up conftest.defines:
24137 ac_max_sed_lines=50
24138
24139 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24140 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24141 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24142 # et cetera.
24143 ac_in='$ac_file_inputs'
24144 ac_out='"$tmp/out1"'
24145 ac_nxt='"$tmp/out2"'
24146
24147 while :
24148 do
24149   # Write a here document:
24150     cat >>$CONFIG_STATUS <<_ACEOF
24151     # First, check the format of the line:
24152     cat >"\$tmp/defines.sed" <<\\CEOF
24153 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24154 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24155 b
24156 :def
24157 _ACEOF
24158   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24159   echo 'CEOF
24160     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24161   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24162   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24163   grep . conftest.tail >/dev/null || break
24164   rm -f conftest.defines
24165   mv conftest.tail conftest.defines
24166 done
24167 rm -f conftest.defines conftest.tail
24168
24169 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24170 cat >>$CONFIG_STATUS <<\_ACEOF
24171   if test x"$ac_file" != x-; then
24172     echo "/* $configure_input  */" >"$tmp/config.h"
24173     cat "$ac_result" >>"$tmp/config.h"
24174     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24175       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24176 echo "$as_me: $ac_file is unchanged" >&6;}
24177     else
24178       rm -f $ac_file
24179       mv "$tmp/config.h" $ac_file
24180     fi
24181   else
24182     echo "/* $configure_input  */"
24183     cat "$ac_result"
24184   fi
24185   rm -f "$tmp/out12"
24186 # Compute $ac_file's index in $config_headers.
24187 _am_stamp_count=1
24188 for _am_header in $config_headers :; do
24189   case $_am_header in
24190     $ac_file | $ac_file:* )
24191       break ;;
24192     * )
24193       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24194   esac
24195 done
24196 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24197 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24198          X$ac_file : 'X\(//\)[^/]' \| \
24199          X$ac_file : 'X\(//\)$' \| \
24200          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24201 echo X$ac_file |
24202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24203             s//\1/
24204             q
24205           }
24206           /^X\(\/\/\)[^/].*/{
24207             s//\1/
24208             q
24209           }
24210           /^X\(\/\/\)$/{
24211             s//\1/
24212             q
24213           }
24214           /^X\(\/\).*/{
24215             s//\1/
24216             q
24217           }
24218           s/.*/./; q'`/stamp-h$_am_stamp_count
24219  ;;
24220   :L)
24221   #
24222   # CONFIG_LINK
24223   #
24224
24225   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
24226 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
24227
24228   if test ! -r "$srcdir/$ac_source"; then
24229     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24230 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24231    { (exit 1); exit 1; }; }
24232   fi
24233   rm -f "$ac_file"
24234
24235   # Try a relative symlink, then a hard link, then a copy.
24236   case $srcdir in
24237   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24238       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
24239   esac
24240   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
24241     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
24242     cp -p "$srcdir/$ac_source" "$ac_file" ||
24243     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
24244 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
24245    { (exit 1); exit 1; }; }
24246  ;;
24247   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24248 echo "$as_me: executing $ac_file commands" >&6;}
24249  ;;
24250   esac
24251
24252
24253   case $ac_file$ac_mode in
24254     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24255   # Strip MF so we end up with the name of the file.
24256   mf=`echo "$mf" | sed -e 's/:.*$//'`
24257   # Check whether this is an Automake generated Makefile or not.
24258   # We used to match only the files named `Makefile.in', but
24259   # some people rename them; so instead we look at the file content.
24260   # Grep'ing the first line is not enough: some people post-process
24261   # each Makefile.in and add a new line on top of each file to say so.
24262   # Grep'ing the whole file is not good either: AIX grep has a line
24263   # limit of 2048, but all sed's we know have understand at least 4000.
24264   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24265     dirpart=`$as_dirname -- "$mf" ||
24266 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24267          X"$mf" : 'X\(//\)[^/]' \| \
24268          X"$mf" : 'X\(//\)$' \| \
24269          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24270 echo X"$mf" |
24271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24272             s//\1/
24273             q
24274           }
24275           /^X\(\/\/\)[^/].*/{
24276             s//\1/
24277             q
24278           }
24279           /^X\(\/\/\)$/{
24280             s//\1/
24281             q
24282           }
24283           /^X\(\/\).*/{
24284             s//\1/
24285             q
24286           }
24287           s/.*/./; q'`
24288   else
24289     continue
24290   fi
24291   # Extract the definition of DEPDIR, am__include, and am__quote
24292   # from the Makefile without running `make'.
24293   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24294   test -z "$DEPDIR" && continue
24295   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24296   test -z "am__include" && continue
24297   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24298   # When using ansi2knr, U may be empty or an underscore; expand it
24299   U=`sed -n 's/^U = //p' < "$mf"`
24300   # Find all dependency output files, they are included files with
24301   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24302   # simplest approach to changing $(DEPDIR) to its actual value in the
24303   # expansion.
24304   for file in `sed -n "
24305     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24306        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24307     # Make sure the directory exists.
24308     test -f "$dirpart/$file" && continue
24309     fdir=`$as_dirname -- "$file" ||
24310 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24311          X"$file" : 'X\(//\)[^/]' \| \
24312          X"$file" : 'X\(//\)$' \| \
24313          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24314 echo X"$file" |
24315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24316             s//\1/
24317             q
24318           }
24319           /^X\(\/\/\)[^/].*/{
24320             s//\1/
24321             q
24322           }
24323           /^X\(\/\/\)$/{
24324             s//\1/
24325             q
24326           }
24327           /^X\(\/\).*/{
24328             s//\1/
24329             q
24330           }
24331           s/.*/./; q'`
24332     { as_dir=$dirpart/$fdir
24333   case $as_dir in #(
24334   -*) as_dir=./$as_dir;;
24335   esac
24336   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24337     as_dirs=
24338     while :; do
24339       case $as_dir in #(
24340       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24341       *) as_qdir=$as_dir;;
24342       esac
24343       as_dirs="'$as_qdir' $as_dirs"
24344       as_dir=`$as_dirname -- "$as_dir" ||
24345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24346          X"$as_dir" : 'X\(//\)[^/]' \| \
24347          X"$as_dir" : 'X\(//\)$' \| \
24348          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24349 echo X"$as_dir" |
24350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24351             s//\1/
24352             q
24353           }
24354           /^X\(\/\/\)[^/].*/{
24355             s//\1/
24356             q
24357           }
24358           /^X\(\/\/\)$/{
24359             s//\1/
24360             q
24361           }
24362           /^X\(\/\).*/{
24363             s//\1/
24364             q
24365           }
24366           s/.*/./; q'`
24367       test -d "$as_dir" && break
24368     done
24369     test -z "$as_dirs" || eval "mkdir $as_dirs"
24370   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24372    { (exit 1); exit 1; }; }; }
24373     # echo "creating $dirpart/$file"
24374     echo '# dummy' > "$dirpart/$file"
24375   done
24376 done
24377  ;;
24378     "include":C) test -d include || mkdir include ;;
24379     "src":C)
24380 test -d src || mkdir src
24381 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
24382  ;;
24383
24384   esac
24385 done # for ac_tag
24386
24387
24388 { (exit 0); exit 0; }
24389 _ACEOF
24390 chmod +x $CONFIG_STATUS
24391 ac_clean_files=$ac_clean_files_save
24392
24393
24394 # configure is writing to config.log, and then calls config.status.
24395 # config.status does its own redirection, appending to config.log.
24396 # Unfortunately, on DOS this fails, as config.log is still kept open
24397 # by configure, so config.status won't be able to write to it; its
24398 # output is simply discarded.  So we exec the FD to /dev/null,
24399 # effectively closing config.log, so it can be properly (re)opened and
24400 # appended to by config.status.  When coming back to configure, we
24401 # need to make the FD available again.
24402 if test "$no_create" != yes; then
24403   ac_cs_success=:
24404   ac_config_status_args=
24405   test "$silent" = yes &&
24406     ac_config_status_args="$ac_config_status_args --quiet"
24407   exec 5>/dev/null
24408   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24409   exec 5>>config.log
24410   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24411   # would make configure fail if this is the last instruction.
24412   $ac_cs_success || { (exit 1); exit 1; }
24413 fi
24414