Add opcode to TargetInstrDescriptor.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.0cvs'
719 PACKAGE_STRING='llvm 2.0cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 JIT
834 TARGET_HAS_JIT
835 ENABLE_DOXYGEN
836 ENABLE_THREADS
837 TARGETS_TO_BUILD
838 ENABLE_CBE_PRINTF_A
839 EXTRA_OPTIONS
840 CXX
841 CXXFLAGS
842 ac_ct_CXX
843 LEX
844 LEXLIB
845 LEX_OUTPUT_ROOT
846 FLEX
847 YACC
848 YFLAGS
849 BISON
850 NM
851 ifGNUmake
852 LN_S
853 CMP
854 CP
855 DATE
856 FIND
857 MKDIR
858 MV
859 RANLIB
860 RM
861 SED
862 TAR
863 BINPWD
864 GRAPHVIZ
865 DOT
866 GV
867 DOTTY
868 PERL
869 HAVE_PERL
870 INSTALL_PROGRAM
871 INSTALL_SCRIPT
872 INSTALL_DATA
873 BZIP2
874 DOXYGEN
875 GROFF
876 GZIP
877 POD2HTML
878 POD2MAN
879 RUNTEST
880 TCLSH
881 ZIP
882 INSTALL_LTDL_TRUE
883 INSTALL_LTDL_FALSE
884 CONVENIENCE_LTDL_TRUE
885 CONVENIENCE_LTDL_FALSE
886 LIBADD_DL
887 ECHO
888 AR
889 STRIP
890 CXXCPP
891 F77
892 FFLAGS
893 ac_ct_F77
894 LIBTOOL
895 ETAGSFLAGS
896 LLVMGCC
897 LLVMGXX
898 HUGE_VAL_SANITY
899 ALLOCA
900 MMAP_FILE
901 LLVMCC1
902 LLVMCC1PLUS
903 LLVMGCCDIR
904 LLVMGCC_VERSION
905 LLVMGCC_MAJVERS
906 SHLIBEXT
907 LLVM_PREFIX
908 LLVM_BINDIR
909 LLVM_LIBDIR
910 LLVM_DATADIR
911 LLVM_DOCSDIR
912 LLVM_ETCDIR
913 LLVM_INCLUDEDIR
914 LLVM_INFODIR
915 LLVM_MANDIR
916 LLVM_CONFIGTIME
917 LIBOBJS
918 LTLIBOBJS'
919 ac_subst_files=''
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 CPPFLAGS
927 CPP
928 CXX
929 CXXFLAGS
930 CCC
931 YACC
932 YFLAGS
933 CXXCPP
934 F77
935 FFLAGS'
936 ac_subdirs_all='projects/sample
937 projects/Stacker
938 projects/privbracket
939 projects/llvm-test
940 projects/llvm-reopt
941 projects/llvm-gcc
942 projects/llvm-java
943 projects/llvm-tv
944 projects/llvm-poolalloc
945 projects/llvm-kernel'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997   # If the previous option needs an argument, assign it.
998   if test -n "$ac_prev"; then
999     eval $ac_prev=\$ac_option
1000     ac_prev=
1001     continue
1002   fi
1003
1004   case $ac_option in
1005   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006   *)    ac_optarg=yes ;;
1007   esac
1008
1009   # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011   case $ac_dashdash$ac_option in
1012   --)
1013     ac_dashdash=yes ;;
1014
1015   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016     ac_prev=bindir ;;
1017   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018     bindir=$ac_optarg ;;
1019
1020   -build | --build | --buil | --bui | --bu)
1021     ac_prev=build_alias ;;
1022   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023     build_alias=$ac_optarg ;;
1024
1025   -cache-file | --cache-file | --cache-fil | --cache-fi \
1026   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027     ac_prev=cache_file ;;
1028   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030     cache_file=$ac_optarg ;;
1031
1032   --config-cache | -C)
1033     cache_file=config.cache ;;
1034
1035   -datadir | --datadir | --datadi | --datad)
1036     ac_prev=datadir ;;
1037   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038     datadir=$ac_optarg ;;
1039
1040   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041   | --dataroo | --dataro | --datar)
1042     ac_prev=datarootdir ;;
1043   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045     datarootdir=$ac_optarg ;;
1046
1047   -disable-* | --disable-*)
1048     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054     eval enable_$ac_feature=no ;;
1055
1056   -docdir | --docdir | --docdi | --doc | --do)
1057     ac_prev=docdir ;;
1058   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059     docdir=$ac_optarg ;;
1060
1061   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062     ac_prev=dvidir ;;
1063   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064     dvidir=$ac_optarg ;;
1065
1066   -enable-* | --enable-*)
1067     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071    { (exit 1); exit 1; }; }
1072     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073     eval enable_$ac_feature=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267       { echo "$as_me: error: invalid package name: $ac_package" >&2
1268    { (exit 1); exit 1; }; }
1269     ac_package=`echo $ac_package| sed 's/-/_/g'`
1270     eval with_$ac_package=\$ac_optarg ;;
1271
1272   -without-* | --without-*)
1273     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid package name: $ac_package" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_package=`echo $ac_package | sed 's/-/_/g'`
1279     eval with_$ac_package=no ;;
1280
1281   --x)
1282     # Obsolete; use --with-x.
1283     with_x=yes ;;
1284
1285   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286   | --x-incl | --x-inc | --x-in | --x-i)
1287     ac_prev=x_includes ;;
1288   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290     x_includes=$ac_optarg ;;
1291
1292   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294     ac_prev=x_libraries ;;
1295   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297     x_libraries=$ac_optarg ;;
1298
1299   -*) { echo "$as_me: error: unrecognized option: $ac_option
1300 Try \`$0 --help' for more information." >&2
1301    { (exit 1); exit 1; }; }
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309    { (exit 1); exit 1; }; }
1310     eval $ac_envvar=\$ac_optarg
1311     export $ac_envvar ;;
1312
1313   *)
1314     # FIXME: should be removed in autoconf 3.0.
1315     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319     ;;
1320
1321   esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326   { echo "$as_me: error: missing argument to $ac_option" >&2
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 # Be sure to have absolute directory names.
1331 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332                 datadir sysconfdir sharedstatedir localstatedir includedir \
1333                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334                 libdir localedir mandir
1335 do
1336   eval ac_val=\$$ac_var
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342    { (exit 1); exit 1; }; }
1343 done
1344
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1351
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354   if test "x$build_alias" = x; then
1355     cross_compiling=maybe
1356     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357     If a cross compiler is detected then cross compile mode will be used." >&2
1358   elif test "x$build_alias" != "x$host_alias"; then
1359     cross_compiling=yes
1360   fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372   { echo "$as_me: error: Working directory cannot be determined" >&2
1373    { (exit 1); exit 1; }; }
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375   { echo "$as_me: error: pwd does not report name of working directory" >&2
1376    { (exit 1); exit 1; }; }
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381   ac_srcdir_defaulted=yes
1382   # Try the directory containing this script, then the parent directory.
1383   ac_confdir=`$as_dirname -- "$0" ||
1384 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385          X"$0" : 'X\(//\)[^/]' \| \
1386          X"$0" : 'X\(//\)$' \| \
1387          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1388 echo X"$0" |
1389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)[^/].*/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)$/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\).*/{
1402             s//\1/
1403             q
1404           }
1405           s/.*/./; q'`
1406   srcdir=$ac_confdir
1407   if test ! -r "$srcdir/$ac_unique_file"; then
1408     srcdir=..
1409   fi
1410 else
1411   ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1416    { (exit 1); exit 1; }; }
1417 fi
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1421    { (exit 1); exit 1; }; }
1422         pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425   srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_env_${ac_var}_value=\$${ac_var}
1436   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444   # Omit some internal or obsolete options to make the list less imposing.
1445   # This message is too long to be a string in the A/UX 3.1 sh.
1446   cat <<_ACEOF
1447 \`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457   -h, --help              display this help and exit
1458       --help=short        display options specific to this package
1459       --help=recursive    display the short help of all the included packages
1460   -V, --version           display version information and exit
1461   -q, --quiet, --silent   do not print \`checking...' messages
1462       --cache-file=FILE   cache test results in FILE [disabled]
1463   -C, --config-cache      alias for \`--cache-file=config.cache'
1464   -n, --no-create         do not create output files
1465       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468   --prefix=PREFIX         install architecture-independent files in PREFIX
1469                           [$ac_default_prefix]
1470   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                           [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481   --bindir=DIR           user executables [EPREFIX/bin]
1482   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1483   --libexecdir=DIR       program executables [EPREFIX/libexec]
1484   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1485   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1486   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1487   --libdir=DIR           object code libraries [EPREFIX/lib]
1488   --includedir=DIR       C header files [PREFIX/include]
1489   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1490   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1491   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1492   --infodir=DIR          info documentation [DATAROOTDIR/info]
1493   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1494   --mandir=DIR           man documentation [DATAROOTDIR/man]
1495   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1496   --htmldir=DIR          html documentation [DOCDIR]
1497   --dvidir=DIR           dvi documentation [DOCDIR]
1498   --pdfdir=DIR           pdf documentation [DOCDIR]
1499   --psdir=DIR            ps documentation [DOCDIR]
1500 _ACEOF
1501
1502   cat <<\_ACEOF
1503
1504 System types:
1505   --build=BUILD     configure for building on BUILD [guessed]
1506   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507   --target=TARGET   configure for building compilers for TARGET [HOST]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512   case $ac_init_help in
1513      short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1514    esac
1515   cat <<\_ACEOF
1516
1517 Optional Features:
1518   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520   --enable-optimized
1521   --enable-assertions
1522   --enable-jit            Enable Just In Time Compiling (default is YES)
1523   --enable-doxygen        Build doxygen documentation (default is NO)
1524   --enable-threads        Use threads if available (default is YES)
1525   --enable-targets        Build specific host targets:
1526                           all,host-only,{target-name} (default=all)
1527   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1528                           %a (default is YES)
1529   --enable-ltdl-install   install libltdl
1530   --enable-shared[=PKGS]  build shared libraries
1531                           [default=enable_shared_default]
1532   --enable-static[=PKGS]  build static libraries
1533                           [default=enable_static_default]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation
1536                           [default=enable_Fast_install_default]
1537   --disable-libtool-lock  avoid locking (might break parallel builds)
1538
1539 Optional Packages:
1540   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1543                           searches PATH)
1544   --with-extra-options    Specify addtional options to compile LLVM with
1545   --with-tclinclude       directory where tcl headers are
1546   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1547   --with-pic              try to use only PIC/non-PIC objects [default=use
1548                           both]
1549   --with-tags[=TAGS]      include additional configurations [automatic]
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559   CXX         C++ compiler command
1560   CXXFLAGS    C++ compiler flags
1561   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1562               the first program found out of: `bison -y', `byacc', `yacc'.
1563   YFLAGS      The list of arguments that will be passed by default to $YACC.
1564               This script will default YFLAGS to the empty string to avoid a
1565               default value of `-d' given by some make applications.
1566   CXXCPP      C++ preprocessor
1567   F77         Fortran 77 compiler command
1568   FFLAGS      Fortran 77 compiler flags
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <llvmbugs@cs.uiuc.edu>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" || continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 llvm configure 2.0cvs
1635 generated by GNU Autoconf 2.60
1636
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641
1642 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1643 _ACEOF
1644   exit
1645 fi
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1649
1650 It was created by llvm $as_me 2.0cvs, which was
1651 generated by GNU Autoconf 2.60.  Invocation command line was
1652
1653   $ $0 $@
1654
1655 _ACEOF
1656 exec 5>>config.log
1657 {
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1662
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1671
1672 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1673 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1676 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1677 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1678 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1679
1680 _ASUNAME
1681
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1690
1691 } >&5
1692
1693 cat >&5 <<_ACEOF
1694
1695
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1699
1700 _ACEOF
1701
1702
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1713 do
1714   for ac_arg
1715   do
1716     case $ac_arg in
1717     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719     | -silent | --silent | --silen | --sile | --sil)
1720       continue ;;
1721     *\'*)
1722       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723     esac
1724     case $ac_pass in
1725     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726     2)
1727       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728       if test $ac_must_keep_next = true; then
1729         ac_must_keep_next=false # Got value, back to normal.
1730       else
1731         case $ac_arg in
1732           *=* | --config-cache | -C | -disable-* | --disable-* \
1733           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735           | -with-* | --with-* | -without-* | --without-* | --x)
1736             case "$ac_configure_args0 " in
1737               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738             esac
1739             ;;
1740           -* ) ac_must_keep_next=true ;;
1741         esac
1742       fi
1743       ac_configure_args="$ac_configure_args '$ac_arg'"
1744       ;;
1745     esac
1746   done
1747 done
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log.  We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757   # Save into config.log some information that might help in debugging.
1758   {
1759     echo
1760
1761     cat <<\_ASBOX
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1765 _ASBOX
1766     echo
1767     # The following way of writing the cache mishandles newlines in values,
1768 (
1769   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770     eval ac_val=\$$ac_var
1771     case $ac_val in #(
1772     *${as_nl}*)
1773       case $ac_var in #(
1774       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776       esac
1777       case $ac_var in #(
1778       _ | IFS | as_nl) ;; #(
1779       *) $as_unset $ac_var ;;
1780       esac ;;
1781     esac
1782   done
1783   (set) 2>&1 |
1784     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785     *${as_nl}ac_space=\ *)
1786       sed -n \
1787         "s/'\''/'\''\\\\'\'''\''/g;
1788           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789       ;; #(
1790     *)
1791       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792       ;;
1793     esac |
1794     sort
1795 )
1796     echo
1797
1798     cat <<\_ASBOX
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1802 _ASBOX
1803     echo
1804     for ac_var in $ac_subst_vars
1805     do
1806       eval ac_val=\$$ac_var
1807       case $ac_val in
1808       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809       esac
1810       echo "$ac_var='\''$ac_val'\''"
1811     done | sort
1812     echo
1813
1814     if test -n "$ac_subst_files"; then
1815       cat <<\_ASBOX
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1819 _ASBOX
1820       echo
1821       for ac_var in $ac_subst_files
1822       do
1823         eval ac_val=\$$ac_var
1824         case $ac_val in
1825         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826         esac
1827         echo "$ac_var='\''$ac_val'\''"
1828       done | sort
1829       echo
1830     fi
1831
1832     if test -s confdefs.h; then
1833       cat <<\_ASBOX
1834 ## ----------- ##
1835 ## confdefs.h. ##
1836 ## ----------- ##
1837 _ASBOX
1838       echo
1839       cat confdefs.h
1840       echo
1841     fi
1842     test "$ac_signal" != 0 &&
1843       echo "$as_me: caught signal $ac_signal"
1844     echo "$as_me: exit $exit_status"
1845   } >&5
1846   rm -f core *.core core.conftest.* &&
1847     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848     exit $exit_status
1849 ' 0
1850 for ac_signal in 1 2 13 15; do
1851   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 done
1853 ac_signal=0
1854
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1857
1858 # Predefined preprocessor variables.
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 _ACEOF
1883
1884
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888   set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 else
1892   set x "$ac_default_prefix/share/config.site" \
1893         "$ac_default_prefix/etc/config.site"
1894 fi
1895 shift
1896 for ac_site_file
1897 do
1898   if test -r "$ac_site_file"; then
1899     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901     sed 's/^/| /' "$ac_site_file" >&5
1902     . "$ac_site_file"
1903   fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907   # Some versions of bash will fail to source /dev/null (special
1908   # files actually), so we avoid doing that.
1909   if test -f "$cache_file"; then
1910     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1912     case $cache_file in
1913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914       *)                      . "./$cache_file";;
1915     esac
1916   fi
1917 else
1918   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1920   >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928   eval ac_new_set=\$ac_env_${ac_var}_set
1929   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930   eval ac_new_val=\$ac_env_${ac_var}_value
1931   case $ac_old_set,$ac_new_set in
1932     set,)
1933       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,set)
1937       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,);;
1941     *)
1942       if test "x$ac_old_val" != "x$ac_new_val"; then
1943         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1946 echo "$as_me:   former value:  $ac_old_val" >&2;}
1947         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1948 echo "$as_me:   current value: $ac_new_val" >&2;}
1949         ac_cache_corrupted=:
1950       fi;;
1951   esac
1952   # Pass precious variables to config.status.
1953   if test "$ac_new_set" = set; then
1954     case $ac_new_val in
1955     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956     *) ac_arg=$ac_var=$ac_new_val ;;
1957     esac
1958     case " $ac_configure_args " in
1959       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1960       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961     esac
1962   fi
1963 done
1964 if $ac_cache_corrupted; then
1965   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003
2004 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2005
2006
2007
2008
2009
2010
2011
2012 ac_aux_dir=
2013 for ac_dir in autoconf "$srcdir"/autoconf; do
2014   if test -f "$ac_dir/install-sh"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/install-sh -c"
2017     break
2018   elif test -f "$ac_dir/install.sh"; then
2019     ac_aux_dir=$ac_dir
2020     ac_install_sh="$ac_aux_dir/install.sh -c"
2021     break
2022   elif test -f "$ac_dir/shtool"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/shtool install -c"
2025     break
2026   fi
2027 done
2028 if test -z "$ac_aux_dir"; then
2029   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2030 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2041
2042
2043
2044 if test ${srcdir} != "." ; then
2045   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2046     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2047 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2048    { (exit 1); exit 1; }; }
2049   fi
2050 fi
2051
2052 for i in `ls ${srcdir}/projects`
2053 do
2054   if test -d ${srcdir}/projects/${i} ; then
2055     case ${i} in
2056       "CVS") ;;
2057       "sample")       subdirs="$subdirs projects/sample"
2058     ;;
2059       "Stacker")      subdirs="$subdirs projects/Stacker"
2060    ;;
2061       "privbracket")  subdirs="$subdirs projects/privbracket"
2062  ;;
2063       "llvm-test")    subdirs="$subdirs projects/llvm-test"
2064  ;;
2065       "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2066 ;;
2067       "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2068   ;;
2069       "llvm-java")    subdirs="$subdirs projects/llvm-java"
2070  ;;
2071       "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2072    ;;
2073       "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2074  ;;
2075       "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2076  ;;
2077       *)
2078         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2079 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2080         ;;
2081     esac
2082   fi
2083 done
2084
2085
2086 # Make sure we can run config.sub.
2087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2088   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2089 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2090    { (exit 1); exit 1; }; }
2091
2092 { echo "$as_me:$LINENO: checking build system type" >&5
2093 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2094 if test "${ac_cv_build+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103    { (exit 1); exit 1; }; }
2104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2105   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2106 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 fi
2110 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111 echo "${ECHO_T}$ac_cv_build" >&6; }
2112 case $ac_cv_build in
2113 *-*-*) ;;
2114 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2115 echo "$as_me: error: invalid value of canonical build" >&2;}
2116    { (exit 1); exit 1; }; };;
2117 esac
2118 build=$ac_cv_build
2119 ac_save_IFS=$IFS; IFS='-'
2120 set x $ac_cv_build
2121 shift
2122 build_cpu=$1
2123 build_vendor=$2
2124 shift; shift
2125 # Remember, the first character of IFS is used to create $*,
2126 # except with old shells:
2127 build_os=$*
2128 IFS=$ac_save_IFS
2129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2130
2131
2132 { echo "$as_me:$LINENO: checking host system type" >&5
2133 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_host+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test "x$host_alias" = x; then
2138   ac_cv_host=$ac_cv_build
2139 else
2140   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2141     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2143    { (exit 1); exit 1; }; }
2144 fi
2145
2146 fi
2147 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2148 echo "${ECHO_T}$ac_cv_host" >&6; }
2149 case $ac_cv_host in
2150 *-*-*) ;;
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2152 echo "$as_me: error: invalid value of canonical host" >&2;}
2153    { (exit 1); exit 1; }; };;
2154 esac
2155 host=$ac_cv_host
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_host
2158 shift
2159 host_cpu=$1
2160 host_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 host_os=$*
2165 IFS=$ac_save_IFS
2166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2167
2168
2169 { echo "$as_me:$LINENO: checking target system type" >&5
2170 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_target+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test "x$target_alias" = x; then
2175   ac_cv_target=$ac_cv_host
2176 else
2177   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2178     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2180    { (exit 1); exit 1; }; }
2181 fi
2182
2183 fi
2184 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2185 echo "${ECHO_T}$ac_cv_target" >&6; }
2186 case $ac_cv_target in
2187 *-*-*) ;;
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2189 echo "$as_me: error: invalid value of canonical target" >&2;}
2190    { (exit 1); exit 1; }; };;
2191 esac
2192 target=$ac_cv_target
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_target
2195 shift
2196 target_cpu=$1
2197 target_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 target_os=$*
2202 IFS=$ac_save_IFS
2203 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2204
2205
2206 # The aliases save the names the user supplied, while $host etc.
2207 # will get canonicalized.
2208 test -n "$target_alias" &&
2209   test "$program_prefix$program_suffix$program_transform_name" = \
2210     NONENONEs,x,x, &&
2211   program_prefix=${target_alias}-
2212
2213 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2214 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2215 if test "${llvm_cv_os_type+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   case $host in
2219   *-*-aix*)
2220     llvm_cv_link_all_option="-Wl,--whole-archive"
2221     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222     llvm_cv_os_type="AIX"
2223     llvm_cv_platform_type="Unix" ;;
2224   *-*-irix*)
2225     llvm_cv_link_all_option="-Wl,--whole-archive"
2226     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227     llvm_cv_os_type="IRIX"
2228     llvm_cv_platform_type="Unix" ;;
2229   *-*-cygwin*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="Cygwin"
2233     llvm_cv_platform_type="Unix" ;;
2234   *-*-darwin*)
2235     llvm_cv_link_all_option="-Wl,-all_load"
2236     llvm_cv_link_all_option="-Wl,-noall_load"
2237     llvm_cv_os_type="Darwin"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-*-freebsd*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="FreeBSD"
2243     llvm_cv_platform_type="Unix" ;;
2244   *-*-openbsd*)
2245     llvm_cv_link_all_option="-Wl,--whole-archive"
2246     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247     llvm_cv_os_type="OpenBSD"
2248     llvm_cv_platform_type="Unix" ;;
2249   *-*-hpux*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="HP-UX"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-interix*)
2255     llvm_cv_link_all_option="-Wl,--whole-archive"
2256     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257     llvm_cv_os_type="Interix"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-linux*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="Linux"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-solaris*)
2265     llvm_cv_link_all_option="-Wl,-z,allextract"
2266     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2267     llvm_cv_os_type="SunOS"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-win32*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="Win32"
2273     llvm_cv_platform_type="Win32" ;;
2274   *-*-mingw*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="MingW"
2278     llvm_cv_platform_type="Win32" ;;
2279   *)
2280     llvm_cv_link_all_option=""
2281     llvm_cv_no_link_all_option=""
2282     llvm_cv_os_type="Unknown"
2283     llvm_cv_platform_type="Unknown" ;;
2284 esac
2285 fi
2286 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2287 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2288
2289 if test "$llvm_cv_os_type" = "Unknown" ; then
2290   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2291 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 OS=$llvm_cv_os_type
2296
2297
2298 LINKALL=$llvm_cv_link_all_option
2299
2300 NOLINKALL=$llvm_cv_no_link_all_option
2301
2302
2303 case $llvm_cv_platform_type in
2304   Unix)
2305
2306 cat >>confdefs.h <<\_ACEOF
2307 #define LLVM_ON_UNIX 1
2308 _ACEOF
2309
2310     LLVM_ON_UNIX=1
2311
2312     LLVM_ON_WIN32=0
2313
2314     ;;
2315   Win32)
2316
2317 cat >>confdefs.h <<\_ACEOF
2318 #define LLVM_ON_WIN32 1
2319 _ACEOF
2320
2321     LLVM_ON_UNIX=0
2322
2323     LLVM_ON_WIN32=1
2324
2325     ;;
2326 esac
2327
2328 { echo "$as_me:$LINENO: checking target architecture" >&5
2329 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2330 if test "${llvm_cv_target_arch+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   case $target in
2334   i?86-*)                 llvm_cv_target_arch="x86" ;;
2335   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2336   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2337   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2338   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2339   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2340   *)                      llvm_cv_target_arch="Unknown" ;;
2341 esac
2342 fi
2343 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2344 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2345
2346 if test "$llvm_cv_target_arch" = "Unknown" ; then
2347   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2348 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2349 fi
2350
2351 ARCH=$llvm_cv_target_arch
2352
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 else
2432   { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_CC" = x; then
2437     CC=""
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2448 esac
2449     CC=$ac_ct_CC
2450   fi
2451 else
2452   CC="$ac_cv_prog_CC"
2453 fi
2454
2455 if test -z "$CC"; then
2456           if test -n "$ac_tool_prefix"; then
2457     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="${ac_tool_prefix}cc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   fi
2495 fi
2496 if test -z "$CC"; then
2497   # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$CC"; then
2505   ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507   ac_prog_rejected=no
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516        ac_prog_rejected=yes
2517        continue
2518      fi
2519     ac_cv_prog_CC="cc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 if test $ac_prog_rejected = yes; then
2528   # We found a bogon in the path, so make sure we never use it.
2529   set dummy $ac_cv_prog_CC
2530   shift
2531   if test $# != 0; then
2532     # We chose a different compiler from the bogus one.
2533     # However, it has the same basename, so the bogon will be chosen
2534     # first if we set CC to just the basename; use the full file name.
2535     shift
2536     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537   fi
2538 fi
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543   { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$CC"; then
2553   if test -n "$ac_tool_prefix"; then
2554   for ac_prog in cl.exe
2555   do
2556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$CC"; then
2564   ac_cv_prog_CC="$CC" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593     test -n "$CC" && break
2594   done
2595 fi
2596 if test -z "$CC"; then
2597   ac_ct_CC=$CC
2598   for ac_prog in cl.exe
2599 do
2600   # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$ac_ct_CC"; then
2608   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_CC="$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637   test -n "$ac_ct_CC" && break
2638 done
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653     CC=$ac_ct_CC
2654   fi
2655 fi
2656
2657 fi
2658
2659
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664    { (exit 1); exit 1; }; }
2665
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compiler --version >&5") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compiler -v >&5") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compiler -V >&5") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2719 # of exeext.
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 #
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort.  b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 #
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions.  Remove them first so a
2731 # subsequent execution test works.
2732 ac_rmfiles=
2733 for ac_file in $ac_files
2734 do
2735   case $ac_file in
2736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738   esac
2739 done
2740 rm -f $ac_rmfiles
2741
2742 if { (ac_try="$ac_link_default"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_link_default") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; then
2752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2756 # Autoconf.
2757 for ac_file in $ac_files
2758 do
2759   test -f "$ac_file" || continue
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762         ;;
2763     [ab].out )
2764         # We found the default executable, but exeext='' is most
2765         # certainly right.
2766         break;;
2767     *.* )
2768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769         then :; else
2770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771         fi
2772         # We set ac_cv_exeext here because the later test for it is not
2773         # safe: cross compilers may not add the suffix if given an `-o'
2774         # argument, so we may need to know it at that point already.
2775         # Even if this section looks crufty: it has the advantage of
2776         # actually working.
2777         break;;
2778     * )
2779         break;;
2780   esac
2781 done
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792    { (exit 77); exit 77; }; }
2793 fi
2794
2795 ac_exeext=$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest.$ac_objext'
2987   { (case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_try") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_compiler_gnu=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         ac_compiler_gnu=no
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3010 GCC=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_g+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_save_c_werror_flag=$ac_c_werror_flag
3019    ac_c_werror_flag=yes
3020    ac_cv_prog_cc_g=no
3021    CFLAGS="-g"
3022    cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_cv_prog_cc_g=yes
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         CFLAGS=""
3077       cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   :
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         ac_c_werror_flag=$ac_save_c_werror_flag
3132          CFLAGS="-g"
3133          cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_compile") 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_cv_prog_cc_g=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197    ac_c_werror_flag=$ac_save_c_werror_flag
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201 if test "$ac_test_CFLAGS" = set; then
3202   CFLAGS=$ac_save_CFLAGS
3203 elif test $ac_cv_prog_cc_g = yes; then
3204   if test "$GCC" = yes; then
3205     CFLAGS="-g -O2"
3206   else
3207     CFLAGS="-g"
3208   fi
3209 else
3210   if test "$GCC" = yes; then
3211     CFLAGS="-O2"
3212   else
3213     CFLAGS=
3214   fi
3215 fi
3216 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_cc_c89+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   ac_cv_prog_cc_c89=no
3222 ac_save_CC=$CC
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #include <stdarg.h>
3230 #include <stdio.h>
3231 #include <sys/types.h>
3232 #include <sys/stat.h>
3233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3234 struct buf { int x; };
3235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236 static char *e (p, i)
3237      char **p;
3238      int i;
3239 {
3240   return p[i];
3241 }
3242 static char *f (char * (*g) (char **, int), char **p, ...)
3243 {
3244   char *s;
3245   va_list v;
3246   va_start (v,p);
3247   s = g (p, va_arg (v,int));
3248   va_end (v);
3249   return s;
3250 }
3251
3252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3253    function prototypes and stuff, but not '\xHH' hex character constants.
3254    These don't provoke an error unfortunately, instead are silently treated
3255    as 'x'.  The following induces an error, until -std is added to get
3256    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3257    array size at least.  It's necessary to write '\x00'==0 to get something
3258    that's true only with -std.  */
3259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262    inside strings and character constants.  */
3263 #define FOO(x) 'x'
3264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266 int test (int i, double x);
3267 struct s1 {int (*f) (int a);};
3268 struct s2 {int (*f) (double a);};
3269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270 int argc;
3271 char **argv;
3272 int
3273 main ()
3274 {
3275 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 do
3283   CC="$ac_save_CC $ac_arg"
3284   rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_compile") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299   { (case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_try") 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; } &&
3308          { ac_try='test -s conftest.$ac_objext'
3309   { (case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_try") 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); }; }; then
3318   ac_cv_prog_cc_c89=$ac_arg
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext
3327   test "x$ac_cv_prog_cc_c89" != "xno" && break
3328 done
3329 rm -f conftest.$ac_ext
3330 CC=$ac_save_CC
3331
3332 fi
3333 # AC_CACHE_VAL
3334 case "x$ac_cv_prog_cc_c89" in
3335   x)
3336     { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3338   xno)
3339     { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3341   *)
3342     CC="$CC $ac_cv_prog_cc_c89"
3343     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3345 esac
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3362 # On Suns, sometimes $CPP names a directory.
3363 if test -n "$CPP" && test -d "$CPP"; then
3364   CPP=
3365 fi
3366 if test -z "$CPP"; then
3367   if test "${ac_cv_prog_CPP+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370       # Double quotes because CPP needs to be expanded
3371     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372     do
3373       ac_preproc_ok=false
3374 for ac_c_preproc_warn_flag in '' yes
3375 do
3376   # Use a header file that comes with gcc, so configuring glibc
3377   # with a fresh cross-compiler works.
3378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379   # <limits.h> exists even on freestanding compilers.
3380   # On the NeXT, cc -E runs the code through the compiler's parser,
3381   # not just through cpp. "Syntax error" is here to catch this case.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393                      Syntax error
3394 _ACEOF
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether nonexistent headers
3430   # can be detected and how.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   # Broken: success on invalid input.
3463 continue
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Passes both tests.
3469 ac_preproc_ok=:
3470 break
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479   break
3480 fi
3481
3482     done
3483     ac_cv_prog_CPP=$CPP
3484
3485 fi
3486   CPP=$ac_cv_prog_CPP
3487 else
3488   ac_cv_prog_CPP=$CPP
3489 fi
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3492 ac_preproc_ok=false
3493 for ac_c_preproc_warn_flag in '' yes
3494 do
3495   # Use a header file that comes with gcc, so configuring glibc
3496   # with a fresh cross-compiler works.
3497   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498   # <limits.h> exists even on freestanding compilers.
3499   # On the NeXT, cc -E runs the code through the compiler's parser,
3500   # not just through cpp. "Syntax error" is here to catch this case.
3501   cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h.  */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h.  */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512                      Syntax error
3513 _ACEOF
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } >/dev/null; then
3527   if test -s conftest.err; then
3528     ac_cpp_err=$ac_c_preproc_warn_flag
3529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530   else
3531     ac_cpp_err=
3532   fi
3533 else
3534   ac_cpp_err=yes
3535 fi
3536 if test -z "$ac_cpp_err"; then
3537   :
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542   # Broken: fails on valid input.
3543 continue
3544 fi
3545
3546 rm -f conftest.err conftest.$ac_ext
3547
3548   # OK, works on sane cases.  Now check whether nonexistent headers
3549   # can be detected and how.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #include <ac_nonexistent.h>
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   # Broken: success on invalid input.
3582 continue
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587   # Passes both tests.
3588 ac_preproc_ok=:
3589 break
3590 fi
3591
3592 rm -f conftest.err conftest.$ac_ext
3593
3594 done
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then
3598   :
3599 else
3600   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&2;}
3604    { (exit 1); exit 1; }; }
3605 fi
3606
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_GREP+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   # Extract the first word of "grep ggrep" to use in msg output
3620 if test -z "$GREP"; then
3621 set dummy grep ggrep; ac_prog_name=$2
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   ac_path_GREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_prog in grep ggrep; do
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636     # Check for GNU ac_path_GREP and select it if it is found.
3637   # Check for GNU $ac_path_GREP
3638 case `"$ac_path_GREP" --version 2>&1` in
3639 *GNU*)
3640   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 *)
3642   ac_count=0
3643   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644   while :
3645   do
3646     cat "conftest.in" "conftest.in" >"conftest.tmp"
3647     mv "conftest.tmp" "conftest.in"
3648     cp "conftest.in" "conftest.nl"
3649     echo 'GREP' >> "conftest.nl"
3650     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652     ac_count=`expr $ac_count + 1`
3653     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654       # Best one so far, save it but keep looking for a better one
3655       ac_cv_path_GREP="$ac_path_GREP"
3656       ac_path_GREP_max=$ac_count
3657     fi
3658     # 10*(2^10) chars as input seems more than enough
3659     test $ac_count -gt 10 && break
3660   done
3661   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 esac
3663
3664
3665     $ac_path_GREP_found && break 3
3666   done
3667 done
3668
3669 done
3670 IFS=$as_save_IFS
3671
3672
3673 fi
3674
3675 GREP="$ac_cv_path_GREP"
3676 if test -z "$GREP"; then
3677   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679    { (exit 1); exit 1; }; }
3680 fi
3681
3682 else
3683   ac_cv_path_GREP=$GREP
3684 fi
3685
3686
3687 fi
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3690  GREP="$ac_cv_path_GREP"
3691
3692
3693 { echo "$as_me:$LINENO: checking for egrep" >&5
3694 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699    then ac_cv_path_EGREP="$GREP -E"
3700    else
3701      # Extract the first word of "egrep" to use in msg output
3702 if test -z "$EGREP"; then
3703 set dummy egrep; ac_prog_name=$2
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   ac_path_EGREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714   for ac_prog in egrep; do
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718     # Check for GNU ac_path_EGREP and select it if it is found.
3719   # Check for GNU $ac_path_EGREP
3720 case `"$ac_path_EGREP" --version 2>&1` in
3721 *GNU*)
3722   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723 *)
3724   ac_count=0
3725   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726   while :
3727   do
3728     cat "conftest.in" "conftest.in" >"conftest.tmp"
3729     mv "conftest.tmp" "conftest.in"
3730     cp "conftest.in" "conftest.nl"
3731     echo 'EGREP' >> "conftest.nl"
3732     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734     ac_count=`expr $ac_count + 1`
3735     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736       # Best one so far, save it but keep looking for a better one
3737       ac_cv_path_EGREP="$ac_path_EGREP"
3738       ac_path_EGREP_max=$ac_count
3739     fi
3740     # 10*(2^10) chars as input seems more than enough
3741     test $ac_count -gt 10 && break
3742   done
3743   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 esac
3745
3746
3747     $ac_path_EGREP_found && break 3
3748   done
3749 done
3750
3751 done
3752 IFS=$as_save_IFS
3753
3754
3755 fi
3756
3757 EGREP="$ac_cv_path_EGREP"
3758 if test -z "$EGREP"; then
3759   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763
3764 else
3765   ac_cv_path_EGREP=$EGREP
3766 fi
3767
3768
3769    fi
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3773  EGREP="$ac_cv_path_EGREP"
3774
3775
3776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3778 if test "${ac_cv_header_stdc+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <stdlib.h>
3788 #include <stdarg.h>
3789 #include <string.h>
3790 #include <float.h>
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815   { (case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_try") 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; } &&
3824          { ac_try='test -s conftest.$ac_objext'
3825   { (case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830   (eval "$ac_try") 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; }; then
3834   ac_cv_header_stdc=yes
3835 else
3836   echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839         ac_cv_header_stdc=no
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843
3844 if test $ac_cv_header_stdc = yes; then
3845   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #include <string.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856   $EGREP "memchr" >/dev/null 2>&1; then
3857   :
3858 else
3859   ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 #include <stdlib.h>
3874
3875 _ACEOF
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877   $EGREP "free" >/dev/null 2>&1; then
3878   :
3879 else
3880   ac_cv_header_stdc=no
3881 fi
3882 rm -f conftest*
3883
3884 fi
3885
3886 if test $ac_cv_header_stdc = yes; then
3887   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3888   if test "$cross_compiling" = yes; then
3889   :
3890 else
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #include <ctype.h>
3898 #include <stdlib.h>
3899 #if ((' ' & 0x0FF) == 0x020)
3900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902 #else
3903 # define ISLOWER(c) \
3904                    (('a' <= (c) && (c) <= 'i') \
3905                      || ('j' <= (c) && (c) <= 'r') \
3906                      || ('s' <= (c) && (c) <= 'z'))
3907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908 #endif
3909
3910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911 int
3912 main ()
3913 {
3914   int i;
3915   for (i = 0; i < 256; i++)
3916     if (XOR (islower (i), ISLOWER (i))
3917         || toupper (i) != TOUPPER (i))
3918       return 2;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest$ac_exeext
3923 if { (ac_try="$ac_link"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_link") 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933   { (case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938   (eval "$ac_try") 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }; }; then
3942   :
3943 else
3944   echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ( exit $ac_status )
3949 ac_cv_header_stdc=no
3950 fi
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952 fi
3953
3954
3955 fi
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define STDC_HEADERS 1
3963 _ACEOF
3964
3965 fi
3966
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978                   inttypes.h stdint.h unistd.h
3979 do
3980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 $ac_includes_default
3993
3994 #include <$ac_header>
3995 _ACEOF
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_compile") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } &&
4010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011   { (case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_try") 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; } &&
4020          { ac_try='test -s conftest.$ac_objext'
4021   { (case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026   (eval "$ac_try") 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; }; then
4030   eval "$as_ac_Header=yes"
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035         eval "$as_ac_Header=no"
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041                { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044   cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 _ACEOF
4047
4048 fi
4049
4050 done
4051
4052
4053 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_bigendian+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   # See if sys/param.h defines the BYTE_ORDER macro.
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sys/types.h>
4066 #include <sys/param.h>
4067
4068 int
4069 main ()
4070 {
4071 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4072  bogus endian macros
4073 #endif
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094   { (case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_try") 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; } &&
4103          { ac_try='test -s conftest.$ac_objext'
4104   { (case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_try") 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; }; then
4113   # It does; now see whether it defined to BIG_ENDIAN or not.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4122
4123 int
4124 main ()
4125 {
4126 #if BYTE_ORDER != BIG_ENDIAN
4127  not big endian
4128 #endif
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } &&
4148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149   { (case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_try") 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   ac_cv_c_bigendian=yes
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         ac_cv_c_bigendian=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181         # It does not; compile a test program.
4182 if test "$cross_compiling" = yes; then
4183   # try to guess the endianness by grepping values into an object file
4184   ac_cv_c_bigendian=unknown
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4197 int
4198 main ()
4199 {
4200  _ascii (); _ebcdic ();
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_compile") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } &&
4219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220   { (case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_try") 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_try") 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4240   ac_cv_c_bigendian=yes
4241 fi
4242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243   if test "$ac_cv_c_bigendian" = unknown; then
4244     ac_cv_c_bigendian=no
4245   else
4246     # finding both strings is unlikely to happen, but who knows?
4247     ac_cv_c_bigendian=unknown
4248   fi
4249 fi
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254
4255 fi
4256
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 else
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 $ac_includes_default
4266 int
4267 main ()
4268 {
4269
4270   /* Are we little or big endian?  From Harbison&Steele.  */
4271   union
4272   {
4273     long int l;
4274     char c[sizeof (long int)];
4275   } u;
4276   u.l = 1;
4277   return u.c[sizeof (long int) - 1] == 1;
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest$ac_exeext
4284 if { (ac_try="$ac_link"
4285 case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_link") 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294   { (case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_try") 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; }; then
4303   ac_cv_c_bigendian=no
4304 else
4305   echo "$as_me: program exited with status $ac_status" >&5
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ( exit $ac_status )
4310 ac_cv_c_bigendian=yes
4311 fi
4312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 fi
4314
4315
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322 case $ac_cv_c_bigendian in
4323   yes)
4324     ENDIAN=big
4325  ;;
4326   no)
4327     ENDIAN=little
4328  ;;
4329   *)
4330     { { echo "$as_me:$LINENO: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332 echo "$as_me: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334    { (exit 1); exit 1; }; } ;;
4335 esac
4336
4337
4338 if test "$cross_compiling" = yes; then
4339   LLVM_CROSS_COMPILING=1
4340
4341
4342 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344 if test "${ac_cv_build_exeext+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348   ac_cv_build_exeext=.exe
4349 else
4350   ac_build_prefix=${build_alias}-
4351
4352   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353 set dummy ${ac_build_prefix}gcc; ac_word=$2
4354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   if test -n "$BUILD_CC"; then
4360   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 BUILD_CC=$ac_cv_prog_BUILD_CC
4380 if test -n "$BUILD_CC"; then
4381   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382 echo "${ECHO_T}$BUILD_CC" >&6; }
4383 else
4384   { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4386 fi
4387
4388
4389   if test -z "$BUILD_CC"; then
4390      # Extract the first word of "gcc", so it can be a program name with args.
4391 set dummy gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CC"; then
4398   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CC="gcc"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427      if test -z "$BUILD_CC"; then
4428        # Extract the first word of "cc", so it can be a program name with args.
4429 set dummy cc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438   ac_prog_rejected=no
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447        ac_prog_rejected=yes
4448        continue
4449      fi
4450     ac_cv_prog_BUILD_CC="cc"
4451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 if test $ac_prog_rejected = yes; then
4459   # We found a bogon in the path, so make sure we never use it.
4460   set dummy $ac_cv_prog_BUILD_CC
4461   shift
4462   if test $# != 0; then
4463     # We chose a different compiler from the bogus one.
4464     # However, it has the same basename, so the bogon will be chosen
4465     # first if we set BUILD_CC to just the basename; use the full file name.
4466     shift
4467     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4468   fi
4469 fi
4470 fi
4471 fi
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4476 else
4477   { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4479 fi
4480
4481
4482      fi
4483   fi
4484   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486    { (exit 1); exit 1; }; }
4487   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488   rm -f conftest*
4489   echo 'int main () { return 0; }' > conftest.$ac_ext
4490   ac_cv_build_exeext=
4491   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4492   (eval $ac_build_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; then
4496     for file in conftest.*; do
4497       case $file in
4498       *.c | *.o | *.obj) ;;
4499       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4500       esac
4501     done
4502   else
4503     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505    { (exit 1); exit 1; }; }
4506   fi
4507   rm -f conftest*
4508   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4509 fi
4510 fi
4511
4512 BUILD_EXEEXT=""
4513 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4514 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4516 ac_build_exeext=$BUILD_EXEEXT
4517
4518 else
4519   LLVM_CROSS_COMPILING=0
4520
4521 fi
4522
4523 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4524   cvsbuild="yes"
4525   optimize="no"
4526   CVSBUILD=CVSBUILD=1
4527
4528 else
4529   cvsbuild="no"
4530   optimize="yes"
4531 fi
4532
4533
4534 # Check whether --enable-optimized was given.
4535 if test "${enable_optimized+set}" = set; then
4536   enableval=$enable_optimized;
4537 else
4538   enableval=$optimize
4539 fi
4540
4541 if test ${enableval} = "no" ; then
4542   ENABLE_OPTIMIZED=
4543
4544 else
4545   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4546
4547 fi
4548
4549 # Check whether --enable-assertions was given.
4550 if test "${enable_assertions+set}" = set; then
4551   enableval=$enable_assertions;
4552 else
4553   enableval="yes"
4554 fi
4555
4556 if test ${enableval} = "yes" ; then
4557   DISABLE_ASSERTIONS=
4558
4559 else
4560   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4561
4562 fi
4563
4564 # Check whether --enable-jit was given.
4565 if test "${enable_jit+set}" = set; then
4566   enableval=$enable_jit;
4567 else
4568   enableval=default
4569 fi
4570
4571 if test ${enableval} = "no"
4572 then
4573   JIT=
4574
4575 else
4576   case "$llvm_cv_target_arch" in
4577     x86)     TARGET_HAS_JIT=1
4578  ;;
4579     Sparc)   TARGET_HAS_JIT=1
4580  ;;
4581     PowerPC) TARGET_HAS_JIT=1
4582  ;;
4583     x86_64)  TARGET_HAS_JIT=0
4584  ;;
4585     Alpha)   TARGET_HAS_JIT=1
4586  ;;
4587     IA64)    TARGET_HAS_JIT=0
4588  ;;
4589     *)       TARGET_HAS_JIT=0
4590  ;;
4591   esac
4592 fi
4593
4594 # Check whether --enable-doxygen was given.
4595 if test "${enable_doxygen+set}" = set; then
4596   enableval=$enable_doxygen;
4597 else
4598   enableval=default
4599 fi
4600
4601 case "$enableval" in
4602   yes) ENABLE_DOXYGEN=1
4603  ;;
4604   no)  ENABLE_DOXYGEN=0
4605  ;;
4606   default) ENABLE_DOXYGEN=0
4607  ;;
4608   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4609 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4610    { (exit 1); exit 1; }; } ;;
4611 esac
4612
4613 # Check whether --enable-threads was given.
4614 if test "${enable_threads+set}" = set; then
4615   enableval=$enable_threads;
4616 else
4617   enableval=default
4618 fi
4619
4620 case "$enableval" in
4621   yes) ENABLE_THREADS=1
4622  ;;
4623   no)  ENABLE_THREADS=0
4624  ;;
4625   default) ENABLE_THREADS=1
4626  ;;
4627   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4628 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4629    { (exit 1); exit 1; }; } ;;
4630 esac
4631
4632 cat >>confdefs.h <<_ACEOF
4633 #define ENABLE_THREADS $ENABLE_THREADS
4634 _ACEOF
4635
4636
4637 TARGETS_TO_BUILD=""
4638 # Check whether --enable-targets was given.
4639 if test "${enable_targets+set}" = set; then
4640   enableval=$enable_targets;
4641 else
4642   enableval=all
4643 fi
4644
4645 case "$enableval" in
4646   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4647   host-only)
4648     case "$llvm_cv_target_arch" in
4649       x86)     TARGETS_TO_BUILD="X86" ;;
4650       x86_64)  TARGETS_TO_BUILD="X86" ;;
4651       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4652       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4653       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4654       IA64)    TARGETS_TO_BUILD="IA64" ;;
4655       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4656 echo "$as_me: error: Can not set target to build" >&2;}
4657    { (exit 1); exit 1; }; } ;;
4658     esac
4659     ;;
4660   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4661       case "$a_target" in
4662         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4663         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4664         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4665         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4666         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4667         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4668         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4669 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4670    { (exit 1); exit 1; }; } ;;
4671       esac
4672   done
4673   ;;
4674 esac
4675 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4676 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4677
4678
4679 # Check whether --enable-cbe-printf-a was given.
4680 if test "${enable_cbe_printf_a+set}" = set; then
4681   enableval=$enable_cbe_printf_a;
4682 else
4683   enableval=default
4684 fi
4685
4686 case "$enableval" in
4687   yes) ENABLE_CBE_PRINTF_A=1
4688  ;;
4689   no)  ENABLE_CBE_PRINTF_A=0
4690  ;;
4691   default)  ENABLE_CBE_PRINTF_A=1
4692  ;;
4693   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4694 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4695    { (exit 1); exit 1; }; } ;;
4696 esac
4697
4698 cat >>confdefs.h <<_ACEOF
4699 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4700 _ACEOF
4701
4702
4703
4704 # Check whether --with-llvmgccdir was given.
4705 if test "${with_llvmgccdir+set}" = set; then
4706   withval=$with_llvmgccdir;
4707 else
4708   withval=default
4709 fi
4710
4711 case "$withval" in
4712   default) WITH_LLVMGCCDIR=default ;;
4713   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4714   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4715 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4716    { (exit 1); exit 1; }; } ;;
4717 esac
4718
4719
4720 # Check whether --with-extra-options was given.
4721 if test "${with_extra_options+set}" = set; then
4722   withval=$with_extra_options;
4723 else
4724   withval=default
4725 fi
4726
4727 case "$withval" in
4728   default) EXTRA_OPTIONS= ;;
4729   *) EXTRA_OPTIONS=$withval ;;
4730 esac
4731 EXTRA_OPTIONS=$EXTRA_OPTIONS
4732
4733
4734
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4742 # On Suns, sometimes $CPP names a directory.
4743 if test -n "$CPP" && test -d "$CPP"; then
4744   CPP=
4745 fi
4746 if test -z "$CPP"; then
4747   if test "${ac_cv_prog_CPP+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750       # Double quotes because CPP needs to be expanded
4751     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4752     do
4753       ac_preproc_ok=false
4754 for ac_c_preproc_warn_flag in '' yes
4755 do
4756   # Use a header file that comes with gcc, so configuring glibc
4757   # with a fresh cross-compiler works.
4758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759   # <limits.h> exists even on freestanding compilers.
4760   # On the NeXT, cc -E runs the code through the compiler's parser,
4761   # not just through cpp. "Syntax error" is here to catch this case.
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4773                      Syntax error
4774 _ACEOF
4775 if { (ac_try="$ac_cpp conftest.$ac_ext"
4776 case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } >/dev/null; then
4788   if test -s conftest.err; then
4789     ac_cpp_err=$ac_c_preproc_warn_flag
4790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4791   else
4792     ac_cpp_err=
4793   fi
4794 else
4795   ac_cpp_err=yes
4796 fi
4797 if test -z "$ac_cpp_err"; then
4798   :
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803   # Broken: fails on valid input.
4804 continue
4805 fi
4806
4807 rm -f conftest.err conftest.$ac_ext
4808
4809   # OK, works on sane cases.  Now check whether nonexistent headers
4810   # can be detected and how.
4811   cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 #include <ac_nonexistent.h>
4818 _ACEOF
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } >/dev/null; then
4832   if test -s conftest.err; then
4833     ac_cpp_err=$ac_c_preproc_warn_flag
4834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835   else
4836     ac_cpp_err=
4837   fi
4838 else
4839   ac_cpp_err=yes
4840 fi
4841 if test -z "$ac_cpp_err"; then
4842   # Broken: success on invalid input.
4843 continue
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848   # Passes both tests.
4849 ac_preproc_ok=:
4850 break
4851 fi
4852
4853 rm -f conftest.err conftest.$ac_ext
4854
4855 done
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then
4859   break
4860 fi
4861
4862     done
4863     ac_cv_prog_CPP=$CPP
4864
4865 fi
4866   CPP=$ac_cv_prog_CPP
4867 else
4868   ac_cv_prog_CPP=$CPP
4869 fi
4870 { echo "$as_me:$LINENO: result: $CPP" >&5
4871 echo "${ECHO_T}$CPP" >&6; }
4872 ac_preproc_ok=false
4873 for ac_c_preproc_warn_flag in '' yes
4874 do
4875   # Use a header file that comes with gcc, so configuring glibc
4876   # with a fresh cross-compiler works.
4877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878   # <limits.h> exists even on freestanding compilers.
4879   # On the NeXT, cc -E runs the code through the compiler's parser,
4880   # not just through cpp. "Syntax error" is here to catch this case.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887 #ifdef __STDC__
4888 # include <limits.h>
4889 #else
4890 # include <assert.h>
4891 #endif
4892                      Syntax error
4893 _ACEOF
4894 if { (ac_try="$ac_cpp conftest.$ac_ext"
4895 case "(($ac_try" in
4896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897   *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4901   ac_status=$?
4902   grep -v '^ *+' conftest.er1 >conftest.err
4903   rm -f conftest.er1
4904   cat conftest.err >&5
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); } >/dev/null; then
4907   if test -s conftest.err; then
4908     ac_cpp_err=$ac_c_preproc_warn_flag
4909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910   else
4911     ac_cpp_err=
4912   fi
4913 else
4914   ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917   :
4918 else
4919   echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922   # Broken: fails on valid input.
4923 continue
4924 fi
4925
4926 rm -f conftest.err conftest.$ac_ext
4927
4928   # OK, works on sane cases.  Now check whether nonexistent headers
4929   # can be detected and how.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #include <ac_nonexistent.h>
4937 _ACEOF
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4939 case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } >/dev/null; then
4951   if test -s conftest.err; then
4952     ac_cpp_err=$ac_c_preproc_warn_flag
4953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4954   else
4955     ac_cpp_err=
4956   fi
4957 else
4958   ac_cpp_err=yes
4959 fi
4960 if test -z "$ac_cpp_err"; then
4961   # Broken: success on invalid input.
4962 continue
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967   # Passes both tests.
4968 ac_preproc_ok=:
4969 break
4970 fi
4971
4972 rm -f conftest.err conftest.$ac_ext
4973
4974 done
4975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976 rm -f conftest.err conftest.$ac_ext
4977 if $ac_preproc_ok; then
4978   :
4979 else
4980   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4981 See \`config.log' for more details." >&5
4982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&2;}
4984    { (exit 1); exit 1; }; }
4985 fi
4986
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 if test -n "$ac_tool_prefix"; then
4999   for ac_prog in gcc
5000   do
5001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_CC+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   if test -n "$CC"; then
5009   ac_cv_prog_CC="$CC" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016   for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 CC=$ac_cv_prog_CC
5029 if test -n "$CC"; then
5030   { echo "$as_me:$LINENO: result: $CC" >&5
5031 echo "${ECHO_T}$CC" >&6; }
5032 else
5033   { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 fi
5036
5037
5038     test -n "$CC" && break
5039   done
5040 fi
5041 if test -z "$CC"; then
5042   ac_ct_CC=$CC
5043   for ac_prog in gcc
5044 do
5045   # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   if test -n "$ac_ct_CC"; then
5053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_prog_ac_ct_CC="$ac_prog"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073 if test -n "$ac_ct_CC"; then
5074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5075 echo "${ECHO_T}$ac_ct_CC" >&6; }
5076 else
5077   { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5079 fi
5080
5081
5082   test -n "$ac_ct_CC" && break
5083 done
5084
5085   if test "x$ac_ct_CC" = x; then
5086     CC=""
5087   else
5088     case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet.  If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&5
5093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet.  If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098     CC=$ac_ct_CC
5099   fi
5100 fi
5101
5102
5103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5104 See \`config.log' for more details." >&5
5105 echo "$as_me: error: no acceptable C compiler found in \$PATH
5106 See \`config.log' for more details." >&2;}
5107    { (exit 1); exit 1; }; }
5108
5109 # Provide some information about the compiler.
5110 echo "$as_me:$LINENO: checking for C compiler version" >&5
5111 ac_compiler=`set X $ac_compile; echo $2`
5112 { (ac_try="$ac_compiler --version >&5"
5113 case "(($ac_try" in
5114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115   *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118   (eval "$ac_compiler --version >&5") 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }
5122 { (ac_try="$ac_compiler -v >&5"
5123 case "(($ac_try" in
5124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125   *) ac_try_echo=$ac_try;;
5126 esac
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128   (eval "$ac_compiler -v >&5") 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }
5132 { (ac_try="$ac_compiler -V >&5"
5133 case "(($ac_try" in
5134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135   *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138   (eval "$ac_compiler -V >&5") 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }
5142
5143 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154
5155 int
5156 main ()
5157 {
5158 #ifndef __GNUC__
5159        choke me
5160 #endif
5161
5162   ;
5163   return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext
5167 if { (ac_try="$ac_compile"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_compile") 2>conftest.er1
5174   ac_status=$?
5175   grep -v '^ *+' conftest.er1 >conftest.err
5176   rm -f conftest.er1
5177   cat conftest.err >&5
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } &&
5180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5181   { (case "(($ac_try" in
5182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183   *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186   (eval "$ac_try") 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; } &&
5190          { ac_try='test -s conftest.$ac_objext'
5191   { (case "(($ac_try" in
5192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193   *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196   (eval "$ac_try") 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); }; }; then
5200   ac_compiler_gnu=yes
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205         ac_compiler_gnu=no
5206 fi
5207
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210
5211 fi
5212 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5214 GCC=`test $ac_compiler_gnu = yes && echo yes`
5215 ac_test_CFLAGS=${CFLAGS+set}
5216 ac_save_CFLAGS=$CFLAGS
5217 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_cc_g+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   ac_save_c_werror_flag=$ac_c_werror_flag
5223    ac_c_werror_flag=yes
5224    ac_cv_prog_cc_g=no
5225    CFLAGS="-g"
5226    cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232
5233 int
5234 main ()
5235 {
5236
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 rm -f conftest.$ac_objext
5242 if { (ac_try="$ac_compile"
5243 case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_compile") 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } &&
5255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5256   { (case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261   (eval "$ac_try") 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; } &&
5265          { ac_try='test -s conftest.$ac_objext'
5266   { (case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271   (eval "$ac_try") 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_cv_prog_cc_g=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280         CFLAGS=""
5281       cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287
5288 int
5289 main ()
5290 {
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compile") 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5311   { (case "(($ac_try" in
5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313   *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316   (eval "$ac_try") 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (case "(($ac_try" in
5322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323   *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326   (eval "$ac_try") 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; }; then
5330   :
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335         ac_c_werror_flag=$ac_save_c_werror_flag
5336          CFLAGS="-g"
5337          cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343
5344 int
5345 main ()
5346 {
5347
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (ac_try="$ac_compile"
5354 case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_compile") 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367   { (case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_try") 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; } &&
5376          { ac_try='test -s conftest.$ac_objext'
5377   { (case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_try") 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); }; }; then
5386   ac_cv_prog_cc_g=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391
5392 fi
5393
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 fi
5396
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401    ac_c_werror_flag=$ac_save_c_werror_flag
5402 fi
5403 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5404 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5405 if test "$ac_test_CFLAGS" = set; then
5406   CFLAGS=$ac_save_CFLAGS
5407 elif test $ac_cv_prog_cc_g = yes; then
5408   if test "$GCC" = yes; then
5409     CFLAGS="-g -O2"
5410   else
5411     CFLAGS="-g"
5412   fi
5413 else
5414   if test "$GCC" = yes; then
5415     CFLAGS="-O2"
5416   else
5417     CFLAGS=
5418   fi
5419 fi
5420 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5421 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_cc_c89+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   ac_cv_prog_cc_c89=no
5426 ac_save_CC=$CC
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433 #include <stdarg.h>
5434 #include <stdio.h>
5435 #include <sys/types.h>
5436 #include <sys/stat.h>
5437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5438 struct buf { int x; };
5439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5440 static char *e (p, i)
5441      char **p;
5442      int i;
5443 {
5444   return p[i];
5445 }
5446 static char *f (char * (*g) (char **, int), char **p, ...)
5447 {
5448   char *s;
5449   va_list v;
5450   va_start (v,p);
5451   s = g (p, va_arg (v,int));
5452   va_end (v);
5453   return s;
5454 }
5455
5456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5457    function prototypes and stuff, but not '\xHH' hex character constants.
5458    These don't provoke an error unfortunately, instead are silently treated
5459    as 'x'.  The following induces an error, until -std is added to get
5460    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5461    array size at least.  It's necessary to write '\x00'==0 to get something
5462    that's true only with -std.  */
5463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5464
5465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5466    inside strings and character constants.  */
5467 #define FOO(x) 'x'
5468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5469
5470 int test (int i, double x);
5471 struct s1 {int (*f) (int a);};
5472 struct s2 {int (*f) (double a);};
5473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5474 int argc;
5475 char **argv;
5476 int
5477 main ()
5478 {
5479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5485         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486 do
5487   CC="$ac_save_CC $ac_arg"
5488   rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5490 case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495   (eval "$ac_compile") 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5503   { (case "(($ac_try" in
5504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505   *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508   (eval "$ac_try") 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest.$ac_objext'
5513   { (case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_try") 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; }; then
5522   ac_cv_prog_cc_c89=$ac_arg
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527
5528 fi
5529
5530 rm -f core conftest.err conftest.$ac_objext
5531   test "x$ac_cv_prog_cc_c89" != "xno" && break
5532 done
5533 rm -f conftest.$ac_ext
5534 CC=$ac_save_CC
5535
5536 fi
5537 # AC_CACHE_VAL
5538 case "x$ac_cv_prog_cc_c89" in
5539   x)
5540     { echo "$as_me:$LINENO: result: none needed" >&5
5541 echo "${ECHO_T}none needed" >&6; } ;;
5542   xno)
5543     { echo "$as_me:$LINENO: result: unsupported" >&5
5544 echo "${ECHO_T}unsupported" >&6; } ;;
5545   *)
5546     CC="$CC $ac_cv_prog_cc_c89"
5547     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5548 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5549 esac
5550
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558 ac_ext=cpp
5559 ac_cpp='$CXXCPP $CPPFLAGS'
5560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5563 if test -z "$CXX"; then
5564   if test -n "$CCC"; then
5565     CXX=$CCC
5566   else
5567     if test -n "$ac_tool_prefix"; then
5568   for ac_prog in g++
5569   do
5570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574 if test "${ac_cv_prog_CXX+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   if test -n "$CXX"; then
5578   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585   for ac_exec_ext in '' $ac_executable_extensions; do
5586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5587     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 CXX=$ac_cv_prog_CXX
5598 if test -n "$CXX"; then
5599   { echo "$as_me:$LINENO: result: $CXX" >&5
5600 echo "${ECHO_T}$CXX" >&6; }
5601 else
5602   { echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6; }
5604 fi
5605
5606
5607     test -n "$CXX" && break
5608   done
5609 fi
5610 if test -z "$CXX"; then
5611   ac_ct_CXX=$CXX
5612   for ac_prog in g++
5613 do
5614   # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   if test -n "$ac_ct_CXX"; then
5622   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629   for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_prog_ac_ct_CXX="$ac_prog"
5632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636 done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5642 if test -n "$ac_ct_CXX"; then
5643   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5644 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5645 else
5646   { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5648 fi
5649
5650
5651   test -n "$ac_ct_CXX" && break
5652 done
5653
5654   if test "x$ac_ct_CXX" = x; then
5655     CXX="g++"
5656   else
5657     case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet.  If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&5
5662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663 whose name does not start with the host triplet.  If you think this
5664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667     CXX=$ac_ct_CXX
5668   fi
5669 fi
5670
5671   fi
5672 fi
5673 # Provide some information about the compiler.
5674 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5675 ac_compiler=`set X $ac_compile; echo $2`
5676 { (ac_try="$ac_compiler --version >&5"
5677 case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682   (eval "$ac_compiler --version >&5") 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }
5686 { (ac_try="$ac_compiler -v >&5"
5687 case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692   (eval "$ac_compiler -v >&5") 2>&5
5693   ac_status=$?
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); }
5696 { (ac_try="$ac_compiler -V >&5"
5697 case "(($ac_try" in
5698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699   *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702   (eval "$ac_compiler -V >&5") 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); }
5706
5707 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718
5719 int
5720 main ()
5721 {
5722 #ifndef __GNUC__
5723        choke me
5724 #endif
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737   (eval "$ac_compile") 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5745   { (case "(($ac_try" in
5746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747   *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750   (eval "$ac_try") 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; } &&
5754          { ac_try='test -s conftest.$ac_objext'
5755   { (case "(($ac_try" in
5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757   *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760   (eval "$ac_try") 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_compiler_gnu=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769         ac_compiler_gnu=no
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5774
5775 fi
5776 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5777 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5778 GXX=`test $ac_compiler_gnu = yes && echo yes`
5779 ac_test_CXXFLAGS=${CXXFLAGS+set}
5780 ac_save_CXXFLAGS=$CXXFLAGS
5781 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5782 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_cxx_g+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5787    ac_cxx_werror_flag=yes
5788    ac_cv_prog_cxx_g=no
5789    CXXFLAGS="-g"
5790    cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796
5797 int
5798 main ()
5799 {
5800
5801   ;
5802   return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809   *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812   (eval "$ac_compile") 2>conftest.er1
5813   ac_status=$?
5814   grep -v '^ *+' conftest.er1 >conftest.err
5815   rm -f conftest.er1
5816   cat conftest.err >&5
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); } &&
5819          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5820   { (case "(($ac_try" in
5821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822   *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825   (eval "$ac_try") 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; } &&
5829          { ac_try='test -s conftest.$ac_objext'
5830   { (case "(($ac_try" in
5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832   *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835   (eval "$ac_try") 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_prog_cxx_g=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844         CXXFLAGS=""
5845       cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851
5852 int
5853 main ()
5854 {
5855
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867   (eval "$ac_compile") 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5875   { (case "(($ac_try" in
5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877   *) ac_try_echo=$ac_try;;
5878 esac
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880   (eval "$ac_try") 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; } &&
5884          { ac_try='test -s conftest.$ac_objext'
5885   { (case "(($ac_try" in
5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887   *) ac_try_echo=$ac_try;;
5888 esac
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890   (eval "$ac_try") 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   :
5895 else
5896   echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5900          CXXFLAGS="-g"
5901          cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907
5908 int
5909 main ()
5910 {
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_compile") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5931   { (case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936   (eval "$ac_try") 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; } &&
5940          { ac_try='test -s conftest.$ac_objext'
5941   { (case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946   (eval "$ac_try") 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; }; then
5950   ac_cv_prog_cxx_g=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5966 fi
5967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969 if test "$ac_test_CXXFLAGS" = set; then
5970   CXXFLAGS=$ac_save_CXXFLAGS
5971 elif test $ac_cv_prog_cxx_g = yes; then
5972   if test "$GXX" = yes; then
5973     CXXFLAGS="-g -O2"
5974   else
5975     CXXFLAGS="-g"
5976   fi
5977 else
5978   if test "$GXX" = yes; then
5979     CXXFLAGS="-O2"
5980   else
5981     CXXFLAGS=
5982   fi
5983 fi
5984 ac_ext=c
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990 { echo "$as_me:$LINENO: checking " >&5
5991 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5992 if test "${ac_cv_has_flex+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   for ac_prog in flex lex
5996 do
5997   # Extract the first word of "$ac_prog", so it can be a program name with args.
5998 set dummy $ac_prog; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_LEX+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   if test -n "$LEX"; then
6005   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012   for ac_exec_ext in '' $ac_executable_extensions; do
6013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6014     ac_cv_prog_LEX="$ac_prog"
6015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 LEX=$ac_cv_prog_LEX
6025 if test -n "$LEX"; then
6026   { echo "$as_me:$LINENO: result: $LEX" >&5
6027 echo "${ECHO_T}$LEX" >&6; }
6028 else
6029   { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6031 fi
6032
6033
6034   test -n "$LEX" && break
6035 done
6036 test -n "$LEX" || LEX=":"
6037
6038 if test -z "$LEXLIB"
6039 then
6040   { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6041 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6042 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   ac_check_lib_save_LIBS=$LIBS
6046 LIBS="-lfl  $LIBS"
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053
6054 /* Override any GCC internal prototype to avoid an error.
6055    Use char because int might match the return type of a GCC
6056    builtin and then its argument prototype would still apply.  */
6057 #ifdef __cplusplus
6058 extern "C"
6059 #endif
6060 char yywrap ();
6061 int
6062 main ()
6063 {
6064 return yywrap ();
6065   ;
6066   return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6071 case "(($ac_try" in
6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073   *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076   (eval "$ac_link") 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } &&
6083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084   { (case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_try") 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (case "(($ac_try" in
6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096   *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099   (eval "$ac_try") 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }; }; then
6103   ac_cv_lib_fl_yywrap=yes
6104 else
6105   echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108         ac_cv_lib_fl_yywrap=no
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext \
6112       conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6114 fi
6115 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6116 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6117 if test $ac_cv_lib_fl_yywrap = yes; then
6118   LEXLIB="-lfl"
6119 else
6120   { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6121 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6122 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   ac_check_lib_save_LIBS=$LIBS
6126 LIBS="-ll  $LIBS"
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134 /* Override any GCC internal prototype to avoid an error.
6135    Use char because int might match the return type of a GCC
6136    builtin and then its argument prototype would still apply.  */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 char yywrap ();
6141 int
6142 main ()
6143 {
6144 return yywrap ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (ac_try="$ac_link"
6151 case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_link") 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } &&
6163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164   { (case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169   (eval "$ac_try") 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; } &&
6173          { ac_try='test -s conftest$ac_exeext'
6174   { (case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179   (eval "$ac_try") 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; }; then
6183   ac_cv_lib_l_yywrap=yes
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188         ac_cv_lib_l_yywrap=no
6189 fi
6190
6191 rm -f core conftest.err conftest.$ac_objext \
6192       conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6194 fi
6195 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6196 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6197 if test $ac_cv_lib_l_yywrap = yes; then
6198   LEXLIB="-ll"
6199 fi
6200
6201 fi
6202
6203 fi
6204
6205 if test "x$LEX" != "x:"; then
6206   { echo "$as_me:$LINENO: checking lex output file root" >&5
6207 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_lex_root+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   # The minimal lex program is just a single line: %%.  But some broken lexes
6212 # (Solaris, I think it was) want two %% lines, so accommodate them.
6213 cat >conftest.l <<_ACEOF
6214 %%
6215 %%
6216 _ACEOF
6217 { (ac_try="$LEX conftest.l"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223   (eval "$LEX conftest.l") 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }
6227 if test -f lex.yy.c; then
6228   ac_cv_prog_lex_root=lex.yy
6229 elif test -f lexyy.c; then
6230   ac_cv_prog_lex_root=lexyy
6231 else
6232   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6233 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6234    { (exit 1); exit 1; }; }
6235 fi
6236 fi
6237 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6238 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6239 rm -f conftest.l
6240 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6241
6242 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6243 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   # POSIX says lex can declare yytext either as a pointer or an array; the
6248 # default is implementation-dependent. Figure out which it is, since
6249 # not all implementations provide the %pointer and %array declarations.
6250 ac_cv_prog_lex_yytext_pointer=no
6251 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6252 ac_save_LIBS=$LIBS
6253 LIBS="$LIBS $LEXLIB"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 `cat $LEX_OUTPUT_ROOT.c`
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_link") 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6272   { (case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_try") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; } &&
6281          { ac_try='test -s conftest$ac_exeext'
6282   { (case "(($ac_try" in
6283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284   *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287   (eval "$ac_try") 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   ac_cv_prog_lex_yytext_pointer=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext \
6300       conftest$ac_exeext conftest.$ac_ext
6301 LIBS=$ac_save_LIBS
6302 rm -f "${LEX_OUTPUT_ROOT}.c"
6303
6304 fi
6305 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6306 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6307 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6308
6309 cat >>confdefs.h <<\_ACEOF
6310 #define YYTEXT_POINTER 1
6311 _ACEOF
6312
6313 fi
6314
6315 fi
6316
6317 fi
6318 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6319 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6320 if test "$LEX" != "flex"; then
6321   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6322 echo "$as_me: error: flex not found but required" >&2;}
6323    { (exit 1); exit 1; }; }
6324 else
6325   FLEX=flex
6326
6327 fi
6328
6329 { echo "$as_me:$LINENO: checking " >&5
6330 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6331 if test "${llvm_cv_has_bison+set}" = set; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   for ac_prog in 'bison -y' byacc
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_prog_YACC+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   if test -n "$YACC"; then
6344   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351   for ac_exec_ext in '' $ac_executable_extensions; do
6352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6353     ac_cv_prog_YACC="$ac_prog"
6354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 YACC=$ac_cv_prog_YACC
6364 if test -n "$YACC"; then
6365   { echo "$as_me:$LINENO: result: $YACC" >&5
6366 echo "${ECHO_T}$YACC" >&6; }
6367 else
6368   { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6370 fi
6371
6372
6373   test -n "$YACC" && break
6374 done
6375 test -n "$YACC" || YACC="yacc"
6376
6377 fi
6378 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6379 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6380 if test "$YACC" != "bison -y"; then
6381
6382   { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6383 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6384 else
6385   BISON=bison
6386
6387 fi
6388
6389 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6391 if test "${lt_cv_path_NM+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   if test -n "$NM"; then
6395   # Let the user override the test.
6396   lt_cv_path_NM="$NM"
6397 else
6398   lt_nm_to_check="${ac_tool_prefix}nm"
6399   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6400     lt_nm_to_check="$lt_nm_to_check nm"
6401   fi
6402   for lt_tmp_nm in $lt_nm_to_check; do
6403     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6405       IFS="$lt_save_ifs"
6406       test -z "$ac_dir" && ac_dir=.
6407       tmp_nm="$ac_dir/$lt_tmp_nm"
6408       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6409         # Check to see if the nm accepts a BSD-compat flag.
6410         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6411         #   nm: unknown option "B" ignored
6412         # Tru64's nm complains that /dev/null is an invalid object file
6413         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6414         */dev/null* | *'Invalid file or object type'*)
6415           lt_cv_path_NM="$tmp_nm -B"
6416           break
6417           ;;
6418         *)
6419           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6420           */dev/null*)
6421             lt_cv_path_NM="$tmp_nm -p"
6422             break
6423             ;;
6424           *)
6425             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6426             continue # so that we can try to find one that supports BSD flags
6427             ;;
6428           esac
6429           ;;
6430         esac
6431       fi
6432     done
6433     IFS="$lt_save_ifs"
6434   done
6435   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6436 fi
6437 fi
6438 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6439 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6440 NM="$lt_cv_path_NM"
6441
6442
6443
6444 { echo "$as_me:$LINENO: checking for GNU make" >&5
6445 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6446 if test "${llvm_cv_gnu_make_command+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   llvm_cv_gnu_make_command=''
6450  for a in "$MAKE" make gmake gnumake ; do
6451   if test -z "$a" ; then continue ; fi ;
6452   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6453   then
6454    llvm_cv_gnu_make_command=$a ;
6455    break;
6456   fi
6457  done
6458 fi
6459 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6460 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6461  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6462    ifGNUmake='' ;
6463  else
6464    ifGNUmake='#' ;
6465    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6466 echo "${ECHO_T}\"Not found\"" >&6; };
6467  fi
6468
6469
6470 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6471 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6472 LN_S=$as_ln_s
6473 if test "$LN_S" = "ln -s"; then
6474   { echo "$as_me:$LINENO: result: yes" >&5
6475 echo "${ECHO_T}yes" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6478 echo "${ECHO_T}no, using $LN_S" >&6; }
6479 fi
6480
6481 # Extract the first word of "cmp", so it can be a program name with args.
6482 set dummy cmp; ac_word=$2
6483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485 if test "${ac_cv_path_CMP+set}" = set; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   case $CMP in
6489   [\\/]* | ?:[\\/]*)
6490   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6491   ;;
6492   *)
6493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498   for ac_exec_ext in '' $ac_executable_extensions; do
6499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6500     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6509   ;;
6510 esac
6511 fi
6512 CMP=$ac_cv_path_CMP
6513 if test -n "$CMP"; then
6514   { echo "$as_me:$LINENO: result: $CMP" >&5
6515 echo "${ECHO_T}$CMP" >&6; }
6516 else
6517   { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6519 fi
6520
6521
6522 # Extract the first word of "cp", so it can be a program name with args.
6523 set dummy cp; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_CP+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   case $CP in
6530   [\\/]* | ?:[\\/]*)
6531   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6532   ;;
6533   *)
6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6550   ;;
6551 esac
6552 fi
6553 CP=$ac_cv_path_CP
6554 if test -n "$CP"; then
6555   { echo "$as_me:$LINENO: result: $CP" >&5
6556 echo "${ECHO_T}$CP" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 # Extract the first word of "date", so it can be a program name with args.
6564 set dummy date; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_DATE+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   case $DATE in
6571   [\\/]* | ?:[\\/]*)
6572   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6573   ;;
6574   *)
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6591   ;;
6592 esac
6593 fi
6594 DATE=$ac_cv_path_DATE
6595 if test -n "$DATE"; then
6596   { echo "$as_me:$LINENO: result: $DATE" >&5
6597 echo "${ECHO_T}$DATE" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 # Extract the first word of "find", so it can be a program name with args.
6605 set dummy find; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_FIND+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $FIND in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6632   ;;
6633 esac
6634 fi
6635 FIND=$ac_cv_path_FIND
6636 if test -n "$FIND"; then
6637   { echo "$as_me:$LINENO: result: $FIND" >&5
6638 echo "${ECHO_T}$FIND" >&6; }
6639 else
6640   { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6642 fi
6643
6644
6645 # Extract the first word of "grep", so it can be a program name with args.
6646 set dummy grep; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_GREP+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   case $GREP in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6673   ;;
6674 esac
6675 fi
6676 GREP=$ac_cv_path_GREP
6677 if test -n "$GREP"; then
6678   { echo "$as_me:$LINENO: result: $GREP" >&5
6679 echo "${ECHO_T}$GREP" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 # Extract the first word of "mkdir", so it can be a program name with args.
6687 set dummy mkdir; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_MKDIR+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   case $MKDIR in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6714   ;;
6715 esac
6716 fi
6717 MKDIR=$ac_cv_path_MKDIR
6718 if test -n "$MKDIR"; then
6719   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6720 echo "${ECHO_T}$MKDIR" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 # Extract the first word of "mv", so it can be a program name with args.
6728 set dummy mv; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_MV+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $MV in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6755   ;;
6756 esac
6757 fi
6758 MV=$ac_cv_path_MV
6759 if test -n "$MV"; then
6760   { echo "$as_me:$LINENO: result: $MV" >&5
6761 echo "${ECHO_T}$MV" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768 if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_RANLIB+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$RANLIB"; then
6777   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 RANLIB=$ac_cv_prog_RANLIB
6797 if test -n "$RANLIB"; then
6798   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6799 echo "${ECHO_T}$RANLIB" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_RANLIB"; then
6808   ac_ct_RANLIB=$RANLIB
6809   # Extract the first word of "ranlib", so it can be a program name with args.
6810 set dummy ranlib; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$ac_ct_RANLIB"; then
6817   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_RANLIB="ranlib"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837 if test -n "$ac_ct_RANLIB"; then
6838   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845   if test "x$ac_ct_RANLIB" = x; then
6846     RANLIB=":"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet.  If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet.  If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858     RANLIB=$ac_ct_RANLIB
6859   fi
6860 else
6861   RANLIB="$ac_cv_prog_RANLIB"
6862 fi
6863
6864 # Extract the first word of "rm", so it can be a program name with args.
6865 set dummy rm; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_RM+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $RM in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6892   ;;
6893 esac
6894 fi
6895 RM=$ac_cv_path_RM
6896 if test -n "$RM"; then
6897   { echo "$as_me:$LINENO: result: $RM" >&5
6898 echo "${ECHO_T}$RM" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905 # Extract the first word of "sed", so it can be a program name with args.
6906 set dummy sed; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_SED+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $SED in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6933   ;;
6934 esac
6935 fi
6936 SED=$ac_cv_path_SED
6937 if test -n "$SED"; then
6938   { echo "$as_me:$LINENO: result: $SED" >&5
6939 echo "${ECHO_T}$SED" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945
6946 # Extract the first word of "tar", so it can be a program name with args.
6947 set dummy tar; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_TAR+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $TAR in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6974   ;;
6975 esac
6976 fi
6977 TAR=$ac_cv_path_TAR
6978 if test -n "$TAR"; then
6979   { echo "$as_me:$LINENO: result: $TAR" >&5
6980 echo "${ECHO_T}$TAR" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 # Extract the first word of "pwd", so it can be a program name with args.
6988 set dummy pwd; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_BINPWD+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   case $BINPWD in
6995   [\\/]* | ?:[\\/]*)
6996   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6997   ;;
6998   *)
6999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7015   ;;
7016 esac
7017 fi
7018 BINPWD=$ac_cv_path_BINPWD
7019 if test -n "$BINPWD"; then
7020   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7021 echo "${ECHO_T}$BINPWD" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027
7028
7029 # Extract the first word of "Graphviz", so it can be a program name with args.
7030 set dummy Graphviz; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   case $GRAPHVIZ in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7057   ;;
7058 esac
7059 fi
7060 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7061 if test -n "$GRAPHVIZ"; then
7062   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7063 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7064 else
7065   { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7067 fi
7068
7069
7070 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7071
7072 cat >>confdefs.h <<\_ACEOF
7073 #define HAVE_GRAPHVIZ 1
7074 _ACEOF
7075
7076     if test "$llvm_cv_os_type" == "MingW" ; then
7077     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7078   fi
7079
7080 cat >>confdefs.h <<_ACEOF
7081 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7082 _ACEOF
7083
7084 fi
7085 # Extract the first word of "dot", so it can be a program name with args.
7086 set dummy dot; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_DOT+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $DOT in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7113   ;;
7114 esac
7115 fi
7116 DOT=$ac_cv_path_DOT
7117 if test -n "$DOT"; then
7118   { echo "$as_me:$LINENO: result: $DOT" >&5
7119 echo "${ECHO_T}$DOT" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7124
7125
7126 if test "$DOT" != "echo dot" ; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_DOT 1
7130 _ACEOF
7131
7132     if test "$llvm_cv_os_type" == "MingW" ; then
7133     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7134   fi
7135
7136 cat >>confdefs.h <<_ACEOF
7137 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7138 _ACEOF
7139
7140 fi
7141 for ac_prog in gv gsview32
7142 do
7143   # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_GV+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   case $GV in
7151   [\\/]* | ?:[\\/]*)
7152   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7153   ;;
7154   *)
7155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170   ;;
7171 esac
7172 fi
7173 GV=$ac_cv_path_GV
7174 if test -n "$GV"; then
7175   { echo "$as_me:$LINENO: result: $GV" >&5
7176 echo "${ECHO_T}$GV" >&6; }
7177 else
7178   { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7180 fi
7181
7182
7183   test -n "$GV" && break
7184 done
7185 test -n "$GV" || GV="echo gv"
7186
7187 if test "$GV" != "echo gv" ; then
7188
7189 cat >>confdefs.h <<\_ACEOF
7190 #define HAVE_GV 1
7191 _ACEOF
7192
7193     if test "$llvm_cv_os_type" == "MingW" ; then
7194     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195   fi
7196
7197 cat >>confdefs.h <<_ACEOF
7198 #define LLVM_PATH_GV "$GV${EXEEXT}"
7199 _ACEOF
7200
7201 fi
7202 # Extract the first word of "dotty", so it can be a program name with args.
7203 set dummy dotty; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOTTY+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $DOTTY in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7230   ;;
7231 esac
7232 fi
7233 DOTTY=$ac_cv_path_DOTTY
7234 if test -n "$DOTTY"; then
7235   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7236 echo "${ECHO_T}$DOTTY" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 if test "$DOTTY" != "echo dotty" ; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_DOTTY 1
7247 _ACEOF
7248
7249     if test "$llvm_cv_os_type" == "MingW" ; then
7250     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251   fi
7252
7253 cat >>confdefs.h <<_ACEOF
7254 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7255 _ACEOF
7256
7257 fi
7258
7259
7260 # Extract the first word of "perl", so it can be a program name with args.
7261 set dummy perl; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_PERL+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $PERL in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7288   ;;
7289 esac
7290 fi
7291 PERL=$ac_cv_path_PERL
7292 if test -n "$PERL"; then
7293   { echo "$as_me:$LINENO: result: $PERL" >&5
7294 echo "${ECHO_T}$PERL" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 if test "$PERL" != "none"; then
7302   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7303 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7304   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7305     { echo "$as_me:$LINENO: result: yes" >&5
7306 echo "${ECHO_T}yes" >&6; }
7307   else
7308     PERL=none
7309     { echo "$as_me:$LINENO: result: not found" >&5
7310 echo "${ECHO_T}not found" >&6; }
7311   fi
7312 fi
7313
7314
7315 if test x"$PERL" = xnone; then
7316    HAVE_PERL=0
7317
7318 else
7319    HAVE_PERL=1
7320
7321 fi
7322
7323 # Find a good install program.  We prefer a C program (faster),
7324 # so one script is as good as another.  But avoid the broken or
7325 # incompatible versions:
7326 # SysV /etc/install, /usr/sbin/install
7327 # SunOS /usr/etc/install
7328 # IRIX /sbin/install
7329 # AIX /bin/install
7330 # AmigaOS /C/install, which installs bootblocks on floppy discs
7331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7334 # OS/2's system install, which has a completely different semantic
7335 # ./install, which can be erroneously created by make from ./install.sh.
7336 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7338 if test -z "$INSTALL"; then
7339 if test "${ac_cv_path_install+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   # Account for people who put trailing slashes in PATH elements.
7348 case $as_dir/ in
7349   ./ | .// | /cC/* | \
7350   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7351   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7352   /usr/ucb/* ) ;;
7353   *)
7354     # OSF1 and SCO ODT 3.0 have their own names for install.
7355     # Don't use installbsd from OSF since it installs stuff as root
7356     # by default.
7357     for ac_prog in ginstall scoinst install; do
7358       for ac_exec_ext in '' $ac_executable_extensions; do
7359         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7360           if test $ac_prog = install &&
7361             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7362             # AIX install.  It has an incompatible calling convention.
7363             :
7364           elif test $ac_prog = install &&
7365             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366             # program-specific install script used by HP pwplus--don't use.
7367             :
7368           else
7369             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7370             break 3
7371           fi
7372         fi
7373       done
7374     done
7375     ;;
7376 esac
7377 done
7378 IFS=$as_save_IFS
7379
7380
7381 fi
7382   if test "${ac_cv_path_install+set}" = set; then
7383     INSTALL=$ac_cv_path_install
7384   else
7385     # As a last resort, use the slow shell script.  Don't cache a
7386     # value for INSTALL within a source directory, because that will
7387     # break other packages using the cache if that directory is
7388     # removed, or if the value is a relative name.
7389     INSTALL=$ac_install_sh
7390   fi
7391 fi
7392 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7393 echo "${ECHO_T}$INSTALL" >&6; }
7394
7395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7396 # It thinks the first close brace ends the variable substitution.
7397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7398
7399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7400
7401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7402
7403
7404 # Extract the first word of "bzip2", so it can be a program name with args.
7405 set dummy bzip2; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_BZIP2+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   case $BZIP2 in
7412   [\\/]* | ?:[\\/]*)
7413   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7414   ;;
7415   *)
7416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7432   ;;
7433 esac
7434 fi
7435 BZIP2=$ac_cv_path_BZIP2
7436 if test -n "$BZIP2"; then
7437   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7438 echo "${ECHO_T}$BZIP2" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445 # Extract the first word of "doxygen", so it can be a program name with args.
7446 set dummy doxygen; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   case $DOXYGEN in
7453   [\\/]* | ?:[\\/]*)
7454   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7455   ;;
7456   *)
7457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7473   ;;
7474 esac
7475 fi
7476 DOXYGEN=$ac_cv_path_DOXYGEN
7477 if test -n "$DOXYGEN"; then
7478   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7479 echo "${ECHO_T}$DOXYGEN" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486 # Extract the first word of "groff", so it can be a program name with args.
7487 set dummy groff; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_GROFF+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $GROFF in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7514   ;;
7515 esac
7516 fi
7517 GROFF=$ac_cv_path_GROFF
7518 if test -n "$GROFF"; then
7519   { echo "$as_me:$LINENO: result: $GROFF" >&5
7520 echo "${ECHO_T}$GROFF" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527 # Extract the first word of "gzip", so it can be a program name with args.
7528 set dummy gzip; ac_word=$2
7529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531 if test "${ac_cv_path_GZIP+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $GZIP in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7537   ;;
7538   *)
7539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544   for ac_exec_ext in '' $ac_executable_extensions; do
7545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7555   ;;
7556 esac
7557 fi
7558 GZIP=$ac_cv_path_GZIP
7559 if test -n "$GZIP"; then
7560   { echo "$as_me:$LINENO: result: $GZIP" >&5
7561 echo "${ECHO_T}$GZIP" >&6; }
7562 else
7563   { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7565 fi
7566
7567
7568 # Extract the first word of "pod2html", so it can be a program name with args.
7569 set dummy pod2html; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_POD2HTML+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   case $POD2HTML in
7576   [\\/]* | ?:[\\/]*)
7577   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7578   ;;
7579   *)
7580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7596   ;;
7597 esac
7598 fi
7599 POD2HTML=$ac_cv_path_POD2HTML
7600 if test -n "$POD2HTML"; then
7601   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7602 echo "${ECHO_T}$POD2HTML" >&6; }
7603 else
7604   { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7606 fi
7607
7608
7609 # Extract the first word of "pod2man", so it can be a program name with args.
7610 set dummy pod2man; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_POD2MAN+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $POD2MAN in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7637   ;;
7638 esac
7639 fi
7640 POD2MAN=$ac_cv_path_POD2MAN
7641 if test -n "$POD2MAN"; then
7642   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7643 echo "${ECHO_T}$POD2MAN" >&6; }
7644 else
7645   { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7648
7649
7650 # Extract the first word of "runtest", so it can be a program name with args.
7651 set dummy runtest; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_path_RUNTEST+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   case $RUNTEST in
7658   [\\/]* | ?:[\\/]*)
7659   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7660   ;;
7661   *)
7662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667   for ac_exec_ext in '' $ac_executable_extensions; do
7668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7678   ;;
7679 esac
7680 fi
7681 RUNTEST=$ac_cv_path_RUNTEST
7682 if test -n "$RUNTEST"; then
7683   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7684 echo "${ECHO_T}$RUNTEST" >&6; }
7685 else
7686   { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7688 fi
7689
7690
7691
7692 no_itcl=true
7693 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7694 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7695
7696 # Check whether --with-tclinclude was given.
7697 if test "${with_tclinclude+set}" = set; then
7698   withval=$with_tclinclude; with_tclinclude=${withval}
7699 else
7700   with_tclinclude=''
7701 fi
7702
7703 if test "${ac_cv_path_tclsh+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706
7707 if test x"${with_tclinclude}" != x ; then
7708   if test -f ${with_tclinclude}/tclsh ; then
7709     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7710   elif test -f ${with_tclinclude}/src/tclsh ; then
7711     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7712   else
7713     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7714 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7715    { (exit 1); exit 1; }; }
7716   fi
7717 fi
7718
7719 if test x"${ac_cv_path_tclsh}" = x ; then
7720   { echo "$as_me:$LINENO: result: none" >&5
7721 echo "${ECHO_T}none" >&6; }
7722   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7723 do
7724   # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_path_TCLSH+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   case $TCLSH in
7732   [\\/]* | ?:[\\/]*)
7733   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7734   ;;
7735   *)
7736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751   ;;
7752 esac
7753 fi
7754 TCLSH=$ac_cv_path_TCLSH
7755 if test -n "$TCLSH"; then
7756   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7757 echo "${ECHO_T}$TCLSH" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764   test -n "$TCLSH" && break
7765 done
7766
7767   if test x"${TCLSH}" = x ; then
7768     ac_cv_path_tclsh='';
7769   else
7770     ac_cv_path_tclsh="${TCLSH}";
7771   fi
7772 else
7773   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7774 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7775   TCLSH="${ac_cv_path_tclsh}"
7776
7777 fi
7778
7779 fi
7780
7781 # Extract the first word of "zip", so it can be a program name with args.
7782 set dummy zip; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_ZIP+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   case $ZIP in
7789   [\\/]* | ?:[\\/]*)
7790   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7791   ;;
7792   *)
7793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798   for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7809   ;;
7810 esac
7811 fi
7812 ZIP=$ac_cv_path_ZIP
7813 if test -n "$ZIP"; then
7814   { echo "$as_me:$LINENO: result: $ZIP" >&5
7815 echo "${ECHO_T}$ZIP" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822
7823 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7824 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7825 if test "${llvm_cv_link_use_r+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828    ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834   oldcflags="$CFLAGS"
7835   CFLAGS="$CFLAGS -Wl,-R."
7836   cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842
7843 int
7844 main ()
7845 {
7846 int main() { return 0; }
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_link") 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866   { (case "(($ac_try" in
7867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868   *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871   (eval "$ac_try") 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest$ac_exeext'
7876   { (case "(($ac_try" in
7877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878   *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881   (eval "$ac_try") 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   llvm_cv_link_use_r=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890         llvm_cv_link_use_r=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext \
7894       conftest$ac_exeext conftest.$ac_ext
7895   CFLAGS="$oldcflags"
7896   ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903 fi
7904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7905 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7906 if test "$llvm_cv_link_use_r" = yes ; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_LINK_R 1
7910 _ACEOF
7911
7912   fi
7913
7914
7915
7916
7917 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7919 if test "${ac_cv_c_const+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928
7929 int
7930 main ()
7931 {
7932 /* FIXME: Include the comments suggested by Paul. */
7933 #ifndef __cplusplus
7934   /* Ultrix mips cc rejects this.  */
7935   typedef int charset[2];
7936   const charset x;
7937   /* SunOS 4.1.1 cc rejects this.  */
7938   char const *const *ccp;
7939   char **p;
7940   /* NEC SVR4.0.2 mips cc rejects this.  */
7941   struct point {int x, y;};
7942   static struct point const zero = {0,0};
7943   /* AIX XL C 1.02.0.0 rejects this.
7944      It does not let you subtract one const X* pointer from another in
7945      an arm of an if-expression whose if-part is not a constant
7946      expression */
7947   const char *g = "string";
7948   ccp = &g + (g ? g-g : 0);
7949   /* HPUX 7.0 cc rejects these. */
7950   ++ccp;
7951   p = (char**) ccp;
7952   ccp = (char const *const *) p;
7953   { /* SCO 3.2v4 cc rejects this.  */
7954     char *t;
7955     char const *s = 0 ? (char *) 0 : (char const *) 0;
7956
7957     *t++ = 0;
7958     if (s) return 0;
7959   }
7960   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7961     int x[] = {25, 17};
7962     const int *foo = &x[0];
7963     ++foo;
7964   }
7965   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7966     typedef const int *iptr;
7967     iptr p = 0;
7968     ++p;
7969   }
7970   { /* AIX XL C 1.02.0.0 rejects this saying
7971        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7972     struct s { int j; const int *ap[3]; };
7973     struct s *b; b->j = 5;
7974   }
7975   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7976     const int foo = 10;
7977     if (!foo) return 0;
7978   }
7979   return !x[0] && !zero.x;
7980 #endif
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_compile") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001   { (case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_try") 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest.$ac_objext'
8011   { (case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016   (eval "$ac_try") 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_c_const=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         ac_cv_c_const=no
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8031 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8032 if test $ac_cv_c_const = no; then
8033
8034 cat >>confdefs.h <<\_ACEOF
8035 #define const
8036 _ACEOF
8037
8038 fi
8039
8040
8041
8042
8043
8044
8045 ac_header_dirent=no
8046 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8047   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8048 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8049 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059 #include <sys/types.h>
8060 #include <$ac_hdr>
8061
8062 int
8063 main ()
8064 {
8065 if ((DIR *) 0)
8066 return 0;
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8073 case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_compile") 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086   { (case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091   (eval "$ac_try") 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; } &&
8095          { ac_try='test -s conftest.$ac_objext'
8096   { (case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_try") 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   eval "$as_ac_Header=yes"
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110         eval "$as_ac_Header=no"
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116                { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119   cat >>confdefs.h <<_ACEOF
8120 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8121 _ACEOF
8122
8123 ac_header_dirent=$ac_hdr; break
8124 fi
8125
8126 done
8127 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8128 if test $ac_header_dirent = dirent.h; then
8129   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8131 if test "${ac_cv_search_opendir+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   ac_func_search_save_LIBS=$LIBS
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141
8142 /* Override any GCC internal prototype to avoid an error.
8143    Use char because int might match the return type of a GCC
8144    builtin and then its argument prototype would still apply.  */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 char opendir ();
8149 int
8150 main ()
8151 {
8152 return opendir ();
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 for ac_lib in '' dir; do
8158   if test -z "$ac_lib"; then
8159     ac_res="none required"
8160   else
8161     ac_res=-l$ac_lib
8162     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8163   fi
8164   rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } &&
8178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179   { (case "(($ac_try" in
8180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181   *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184   (eval "$ac_try") 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); }; } &&
8188          { ac_try='test -s conftest$ac_exeext'
8189   { (case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_try") 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   ac_cv_search_opendir=$ac_res
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext \
8207       conftest$ac_exeext
8208   if test "${ac_cv_search_opendir+set}" = set; then
8209   break
8210 fi
8211 done
8212 if test "${ac_cv_search_opendir+set}" = set; then
8213   :
8214 else
8215   ac_cv_search_opendir=no
8216 fi
8217 rm conftest.$ac_ext
8218 LIBS=$ac_func_search_save_LIBS
8219 fi
8220 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8221 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8222 ac_res=$ac_cv_search_opendir
8223 if test "$ac_res" != no; then
8224   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8225
8226 fi
8227
8228 else
8229   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8231 if test "${ac_cv_search_opendir+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   ac_func_search_save_LIBS=$LIBS
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241
8242 /* Override any GCC internal prototype to avoid an error.
8243    Use char because int might match the return type of a GCC
8244    builtin and then its argument prototype would still apply.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 char opendir ();
8249 int
8250 main ()
8251 {
8252 return opendir ();
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 for ac_lib in '' x; do
8258   if test -z "$ac_lib"; then
8259     ac_res="none required"
8260   else
8261     ac_res=-l$ac_lib
8262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8263   fi
8264   rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (ac_try="$ac_link"
8266 case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_link") 2>conftest.er1
8272   ac_status=$?
8273   grep -v '^ *+' conftest.er1 >conftest.err
8274   rm -f conftest.er1
8275   cat conftest.err >&5
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279   { (case "(($ac_try" in
8280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281   *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284   (eval "$ac_try") 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; } &&
8288          { ac_try='test -s conftest$ac_exeext'
8289   { (case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_try") 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; }; then
8298   ac_cv_search_opendir=$ac_res
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext \
8307       conftest$ac_exeext
8308   if test "${ac_cv_search_opendir+set}" = set; then
8309   break
8310 fi
8311 done
8312 if test "${ac_cv_search_opendir+set}" = set; then
8313   :
8314 else
8315   ac_cv_search_opendir=no
8316 fi
8317 rm conftest.$ac_ext
8318 LIBS=$ac_func_search_save_LIBS
8319 fi
8320 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8321 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8322 ac_res=$ac_cv_search_opendir
8323 if test "$ac_res" != no; then
8324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8325
8326 fi
8327
8328 fi
8329
8330
8331 for ac_header in dlfcn.h
8332 do
8333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 fi
8340 ac_res=`eval echo '${'$as_ac_Header'}'`
8341                { echo "$as_me:$LINENO: result: $ac_res" >&5
8342 echo "${ECHO_T}$ac_res" >&6; }
8343 else
8344   # Is the header compilable?
8345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 $ac_includes_default
8354 #include <$ac_header>
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_compile") 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } &&
8370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8371   { (case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_try") 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; } &&
8380          { ac_try='test -s conftest.$ac_objext'
8381   { (case "(($ac_try" in
8382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383   *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386   (eval "$ac_try") 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_header_compiler=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395         ac_header_compiler=no
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400 echo "${ECHO_T}$ac_header_compiler" >&6; }
8401
8402 # Is the header present?
8403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 #include <$ac_header>
8412 _ACEOF
8413 if { (ac_try="$ac_cpp conftest.$ac_ext"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8420   ac_status=$?
8421   grep -v '^ *+' conftest.er1 >conftest.err
8422   rm -f conftest.er1
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); } >/dev/null; then
8426   if test -s conftest.err; then
8427     ac_cpp_err=$ac_c_preproc_warn_flag
8428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8429   else
8430     ac_cpp_err=
8431   fi
8432 else
8433   ac_cpp_err=yes
8434 fi
8435 if test -z "$ac_cpp_err"; then
8436   ac_header_preproc=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441   ac_header_preproc=no
8442 fi
8443
8444 rm -f conftest.err conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6; }
8447
8448 # So?  What about this header?
8449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8450   yes:no: )
8451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8455     ac_header_preproc=yes
8456     ;;
8457   no:yes:* )
8458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8470     ( cat <<\_ASBOX
8471 ## ----------------------------------- ##
8472 ## Report this to llvmbugs@cs.uiuc.edu ##
8473 ## ----------------------------------- ##
8474 _ASBOX
8475      ) | sed "s/^/$as_me: WARNING:     /" >&2
8476     ;;
8477 esac
8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   eval "$as_ac_Header=\$ac_header_preproc"
8484 fi
8485 ac_res=`eval echo '${'$as_ac_Header'}'`
8486                { echo "$as_me:$LINENO: result: $ac_res" >&5
8487 echo "${ECHO_T}$ac_res" >&6; }
8488
8489 fi
8490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8491   cat >>confdefs.h <<_ACEOF
8492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8493 _ACEOF
8494
8495 fi
8496
8497 done
8498
8499 # Check whether --enable-ltdl-install was given.
8500 if test "${enable_ltdl_install+set}" = set; then
8501   enableval=$enable_ltdl_install;
8502 fi
8503
8504
8505
8506
8507 if test x"${enable_ltdl_install-no}" != xno; then
8508   INSTALL_LTDL_TRUE=
8509   INSTALL_LTDL_FALSE='#'
8510 else
8511   INSTALL_LTDL_TRUE='#'
8512   INSTALL_LTDL_FALSE=
8513 fi
8514
8515
8516
8517 if test x"${enable_ltdl_convenience-no}" != xno; then
8518   CONVENIENCE_LTDL_TRUE=
8519   CONVENIENCE_LTDL_FALSE='#'
8520 else
8521   CONVENIENCE_LTDL_TRUE='#'
8522   CONVENIENCE_LTDL_FALSE=
8523 fi
8524
8525
8526 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8527 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8528 library_names_spec=
8529 libname_spec='lib$name'
8530 soname_spec=
8531 shrext_cmds=".so"
8532 postinstall_cmds=
8533 postuninstall_cmds=
8534 finish_cmds=
8535 finish_eval=
8536 shlibpath_var=
8537 shlibpath_overrides_runpath=unknown
8538 version_type=none
8539 dynamic_linker="$host_os ld.so"
8540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8541 if test "$GCC" = yes; then
8542   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8543   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8544     # if the path contains ";" then we assume it to be the separator
8545     # otherwise default to the standard path separator (i.e. ":") - it is
8546     # assumed that no part of a normal pathname contains ";" but that should
8547     # okay in the real world where ";" in dirpaths is itself problematic.
8548     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8549   else
8550     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8551   fi
8552 else
8553   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8554 fi
8555 need_lib_prefix=unknown
8556 hardcode_into_libs=no
8557
8558 # when you set need_version to no, make sure it does not cause -set_version
8559 # flags to be left without arguments
8560 need_version=unknown
8561
8562 case $host_os in
8563 aix3*)
8564   version_type=linux
8565   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8566   shlibpath_var=LIBPATH
8567
8568   # AIX 3 has no versioning support, so we append a major version to the name.
8569   soname_spec='${libname}${release}${shared_ext}$major'
8570   ;;
8571
8572 aix4* | aix5*)
8573   version_type=linux
8574   need_lib_prefix=no
8575   need_version=no
8576   hardcode_into_libs=yes
8577   if test "$host_cpu" = ia64; then
8578     # AIX 5 supports IA64
8579     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8580     shlibpath_var=LD_LIBRARY_PATH
8581   else
8582     # With GCC up to 2.95.x, collect2 would create an import file
8583     # for dependence libraries.  The import file would start with
8584     # the line `#! .'.  This would cause the generated library to
8585     # depend on `.', always an invalid library.  This was fixed in
8586     # development snapshots of GCC prior to 3.0.
8587     case $host_os in
8588       aix4 | aix4.[01] | aix4.[01].*)
8589       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8590            echo ' yes '
8591            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8592         :
8593       else
8594         can_build_shared=no
8595       fi
8596       ;;
8597     esac
8598     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8599     # soname into executable. Probably we can add versioning support to
8600     # collect2, so additional links can be useful in future.
8601     if test "$aix_use_runtimelinking" = yes; then
8602       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8603       # instead of lib<name>.a to let people know that these are not
8604       # typical AIX shared libraries.
8605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606     else
8607       # We preserve .a as extension for shared libraries through AIX4.2
8608       # and later when we are not doing run time linking.
8609       library_names_spec='${libname}${release}.a $libname.a'
8610       soname_spec='${libname}${release}${shared_ext}$major'
8611     fi
8612     shlibpath_var=LIBPATH
8613   fi
8614   ;;
8615
8616 amigaos*)
8617   library_names_spec='$libname.ixlibrary $libname.a'
8618   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8619   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'
8620   ;;
8621
8622 beos*)
8623   library_names_spec='${libname}${shared_ext}'
8624   dynamic_linker="$host_os ld.so"
8625   shlibpath_var=LIBRARY_PATH
8626   ;;
8627
8628 bsdi[45]*)
8629   version_type=linux
8630   need_version=no
8631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632   soname_spec='${libname}${release}${shared_ext}$major'
8633   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8634   shlibpath_var=LD_LIBRARY_PATH
8635   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8636   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8637   # the default ld.so.conf also contains /usr/contrib/lib and
8638   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8639   # libtool to hard-code these into programs
8640   ;;
8641
8642 cygwin* | mingw* | pw32*)
8643   version_type=windows
8644   shrext_cmds=".dll"
8645   need_version=no
8646   need_lib_prefix=no
8647
8648   case $GCC,$host_os in
8649   yes,cygwin* | yes,mingw* | yes,pw32*)
8650     library_names_spec='$libname.dll.a'
8651     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8652     postinstall_cmds='base_file=`basename \${file}`~
8653       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8654       dldir=$destdir/`dirname \$dlpath`~
8655       test -d \$dldir || mkdir -p \$dldir~
8656       $install_prog $dir/$dlname \$dldir/$dlname~
8657       chmod a+x \$dldir/$dlname'
8658     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8659       dlpath=$dir/\$dldll~
8660        $rm \$dlpath'
8661     shlibpath_overrides_runpath=yes
8662
8663     case $host_os in
8664     cygwin*)
8665       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8666       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8667       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8668       ;;
8669     mingw*)
8670       # MinGW DLLs use traditional 'lib' prefix
8671       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8672       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8673       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8674         # It is most probably a Windows format PATH printed by
8675         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8676         # path with ; separators, and with drive letters. We can handle the
8677         # drive letters (cygwin fileutils understands them), so leave them,
8678         # especially as we might pass files found there to a mingw objdump,
8679         # which wouldn't understand a cygwinified path. Ahh.
8680         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8681       else
8682         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8683       fi
8684       ;;
8685     pw32*)
8686       # pw32 DLLs use 'pw' prefix rather than 'lib'
8687       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8688       ;;
8689     esac
8690     ;;
8691
8692   *)
8693     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8694     ;;
8695   esac
8696   dynamic_linker='Win32 ld.exe'
8697   # FIXME: first we should search . and the directory the executable is in
8698   shlibpath_var=PATH
8699   ;;
8700
8701 darwin* | rhapsody*)
8702   dynamic_linker="$host_os dyld"
8703   version_type=darwin
8704   need_lib_prefix=no
8705   need_version=no
8706   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8707   soname_spec='${libname}${release}${major}$shared_ext'
8708   shlibpath_overrides_runpath=yes
8709   shlibpath_var=DYLD_LIBRARY_PATH
8710   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8711   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8712   if test "$GCC" = yes; then
8713     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8714   else
8715     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8716   fi
8717   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8718   ;;
8719
8720 dgux*)
8721   version_type=linux
8722   need_lib_prefix=no
8723   need_version=no
8724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8725   soname_spec='${libname}${release}${shared_ext}$major'
8726   shlibpath_var=LD_LIBRARY_PATH
8727   ;;
8728
8729 freebsd1*)
8730   dynamic_linker=no
8731   ;;
8732
8733 kfreebsd*-gnu)
8734   version_type=linux
8735   need_lib_prefix=no
8736   need_version=no
8737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8738   soname_spec='${libname}${release}${shared_ext}$major'
8739   shlibpath_var=LD_LIBRARY_PATH
8740   shlibpath_overrides_runpath=no
8741   hardcode_into_libs=yes
8742   dynamic_linker='GNU ld.so'
8743   ;;
8744
8745 freebsd* | dragonfly*)
8746   # DragonFly does not have aout.  When/if they implement a new
8747   # versioning mechanism, adjust this.
8748   if test -x /usr/bin/objformat; then
8749     objformat=`/usr/bin/objformat`
8750   else
8751     case $host_os in
8752     freebsd[123]*) objformat=aout ;;
8753     *) objformat=elf ;;
8754     esac
8755   fi
8756   version_type=freebsd-$objformat
8757   case $version_type in
8758     freebsd-elf*)
8759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8760       need_version=no
8761       need_lib_prefix=no
8762       ;;
8763     freebsd-*)
8764       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8765       need_version=yes
8766       ;;
8767   esac
8768   shlibpath_var=LD_LIBRARY_PATH
8769   case $host_os in
8770   freebsd2*)
8771     shlibpath_overrides_runpath=yes
8772     ;;
8773   freebsd3.[01]* | freebsdelf3.[01]*)
8774     shlibpath_overrides_runpath=yes
8775     hardcode_into_libs=yes
8776     ;;
8777   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8778   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8779     shlibpath_overrides_runpath=no
8780     hardcode_into_libs=yes
8781     ;;
8782   freebsd*) # from 4.6 on
8783     shlibpath_overrides_runpath=yes
8784     hardcode_into_libs=yes
8785     ;;
8786   esac
8787   ;;
8788
8789 gnu*)
8790   version_type=linux
8791   need_lib_prefix=no
8792   need_version=no
8793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8794   soname_spec='${libname}${release}${shared_ext}$major'
8795   shlibpath_var=LD_LIBRARY_PATH
8796   hardcode_into_libs=yes
8797   ;;
8798
8799 hpux9* | hpux10* | hpux11*)
8800   # Give a soname corresponding to the major version so that dld.sl refuses to
8801   # link against other versions.
8802   version_type=sunos
8803   need_lib_prefix=no
8804   need_version=no
8805   case $host_cpu in
8806   ia64*)
8807     shrext_cmds='.so'
8808     hardcode_into_libs=yes
8809     dynamic_linker="$host_os dld.so"
8810     shlibpath_var=LD_LIBRARY_PATH
8811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813     soname_spec='${libname}${release}${shared_ext}$major'
8814     if test "X$HPUX_IA64_MODE" = X32; then
8815       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8816     else
8817       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8818     fi
8819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8820     ;;
8821    hppa*64*)
8822      shrext_cmds='.sl'
8823      hardcode_into_libs=yes
8824      dynamic_linker="$host_os dld.sl"
8825      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8826      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828      soname_spec='${libname}${release}${shared_ext}$major'
8829      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8830      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831      ;;
8832    *)
8833     shrext_cmds='.sl'
8834     dynamic_linker="$host_os dld.sl"
8835     shlibpath_var=SHLIB_PATH
8836     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838     soname_spec='${libname}${release}${shared_ext}$major'
8839     ;;
8840   esac
8841   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8842   postinstall_cmds='chmod 555 $lib'
8843   ;;
8844
8845 interix3*)
8846   version_type=linux
8847   need_lib_prefix=no
8848   need_version=no
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8850   soname_spec='${libname}${release}${shared_ext}$major'
8851   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8852   shlibpath_var=LD_LIBRARY_PATH
8853   shlibpath_overrides_runpath=no
8854   hardcode_into_libs=yes
8855   ;;
8856
8857 irix5* | irix6* | nonstopux*)
8858   case $host_os in
8859     nonstopux*) version_type=nonstopux ;;
8860     *)
8861         if test "$lt_cv_prog_gnu_ld" = yes; then
8862                 version_type=linux
8863         else
8864                 version_type=irix
8865         fi ;;
8866   esac
8867   need_lib_prefix=no
8868   need_version=no
8869   soname_spec='${libname}${release}${shared_ext}$major'
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8871   case $host_os in
8872   irix5* | nonstopux*)
8873     libsuff= shlibsuff=
8874     ;;
8875   *)
8876     case $LD in # libtool.m4 will add one of these switches to LD
8877     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8878       libsuff= shlibsuff= libmagic=32-bit;;
8879     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8880       libsuff=32 shlibsuff=N32 libmagic=N32;;
8881     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8882       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8883     *) libsuff= shlibsuff= libmagic=never-match;;
8884     esac
8885     ;;
8886   esac
8887   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8888   shlibpath_overrides_runpath=no
8889   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8890   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8891   hardcode_into_libs=yes
8892   ;;
8893
8894 # No shared lib support for Linux oldld, aout, or coff.
8895 linux*oldld* | linux*aout* | linux*coff*)
8896   dynamic_linker=no
8897   ;;
8898
8899 # This must be Linux ELF.
8900 linux*)
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8907   shlibpath_var=LD_LIBRARY_PATH
8908   shlibpath_overrides_runpath=no
8909   # This implies no fast_install, which is unacceptable.
8910   # Some rework will be needed to allow for fast_install
8911   # before this can be enabled.
8912   hardcode_into_libs=yes
8913
8914   # Append ld.so.conf contents to the search path
8915   if test -f /etc/ld.so.conf; then
8916     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8917     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8918   fi
8919
8920   # We used to test for /lib/ld.so.1 and disable shared libraries on
8921   # powerpc, because MkLinux only supported shared libraries with the
8922   # GNU dynamic linker.  Since this was broken with cross compilers,
8923   # most powerpc-linux boxes support dynamic linking these days and
8924   # people can always --disable-shared, the test was removed, and we
8925   # assume the GNU/Linux dynamic linker is in use.
8926   dynamic_linker='GNU/Linux ld.so'
8927   ;;
8928
8929 knetbsd*-gnu)
8930   version_type=linux
8931   need_lib_prefix=no
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   shlibpath_var=LD_LIBRARY_PATH
8936   shlibpath_overrides_runpath=no
8937   hardcode_into_libs=yes
8938   dynamic_linker='GNU ld.so'
8939   ;;
8940
8941 netbsd*)
8942   version_type=sunos
8943   need_lib_prefix=no
8944   need_version=no
8945   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8947     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8948     dynamic_linker='NetBSD (a.out) ld.so'
8949   else
8950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951     soname_spec='${libname}${release}${shared_ext}$major'
8952     dynamic_linker='NetBSD ld.elf_so'
8953   fi
8954   shlibpath_var=LD_LIBRARY_PATH
8955   shlibpath_overrides_runpath=yes
8956   hardcode_into_libs=yes
8957   ;;
8958
8959 newsos6)
8960   version_type=linux
8961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962   shlibpath_var=LD_LIBRARY_PATH
8963   shlibpath_overrides_runpath=yes
8964   ;;
8965
8966 nto-qnx*)
8967   version_type=linux
8968   need_lib_prefix=no
8969   need_version=no
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=yes
8974   ;;
8975
8976 openbsd*)
8977   version_type=sunos
8978   sys_lib_dlsearch_path_spec="/usr/lib"
8979   need_lib_prefix=no
8980   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8981   case $host_os in
8982     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8983     *)                         need_version=no  ;;
8984   esac
8985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8987   shlibpath_var=LD_LIBRARY_PATH
8988   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8989     case $host_os in
8990       openbsd2.[89] | openbsd2.[89].*)
8991         shlibpath_overrides_runpath=no
8992         ;;
8993       *)
8994         shlibpath_overrides_runpath=yes
8995         ;;
8996       esac
8997   else
8998     shlibpath_overrides_runpath=yes
8999   fi
9000   ;;
9001
9002 os2*)
9003   libname_spec='$name'
9004   shrext_cmds=".dll"
9005   need_lib_prefix=no
9006   library_names_spec='$libname${shared_ext} $libname.a'
9007   dynamic_linker='OS/2 ld.exe'
9008   shlibpath_var=LIBPATH
9009   ;;
9010
9011 osf3* | osf4* | osf5*)
9012   version_type=osf
9013   need_lib_prefix=no
9014   need_version=no
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017   shlibpath_var=LD_LIBRARY_PATH
9018   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9019   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9020   ;;
9021
9022 solaris*)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027   soname_spec='${libname}${release}${shared_ext}$major'
9028   shlibpath_var=LD_LIBRARY_PATH
9029   shlibpath_overrides_runpath=yes
9030   hardcode_into_libs=yes
9031   # ldd complains unless libraries are executable
9032   postinstall_cmds='chmod +x $lib'
9033   ;;
9034
9035 sunos4*)
9036   version_type=sunos
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9038   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   shlibpath_overrides_runpath=yes
9041   if test "$with_gnu_ld" = yes; then
9042     need_lib_prefix=no
9043   fi
9044   need_version=yes
9045   ;;
9046
9047 sysv4 | sysv4.3*)
9048   version_type=linux
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050   soname_spec='${libname}${release}${shared_ext}$major'
9051   shlibpath_var=LD_LIBRARY_PATH
9052   case $host_vendor in
9053     sni)
9054       shlibpath_overrides_runpath=no
9055       need_lib_prefix=no
9056       export_dynamic_flag_spec='${wl}-Blargedynsym'
9057       runpath_var=LD_RUN_PATH
9058       ;;
9059     siemens)
9060       need_lib_prefix=no
9061       ;;
9062     motorola)
9063       need_lib_prefix=no
9064       need_version=no
9065       shlibpath_overrides_runpath=no
9066       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9067       ;;
9068   esac
9069   ;;
9070
9071 sysv4*MP*)
9072   if test -d /usr/nec ;then
9073     version_type=linux
9074     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9075     soname_spec='$libname${shared_ext}.$major'
9076     shlibpath_var=LD_LIBRARY_PATH
9077   fi
9078   ;;
9079
9080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9081   version_type=freebsd-elf
9082   need_lib_prefix=no
9083   need_version=no
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   hardcode_into_libs=yes
9088   if test "$with_gnu_ld" = yes; then
9089     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9090     shlibpath_overrides_runpath=no
9091   else
9092     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9093     shlibpath_overrides_runpath=yes
9094     case $host_os in
9095       sco3.2v5*)
9096         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9097         ;;
9098     esac
9099   fi
9100   sys_lib_dlsearch_path_spec='/usr/lib'
9101   ;;
9102
9103 uts4*)
9104   version_type=linux
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106   soname_spec='${libname}${release}${shared_ext}$major'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   ;;
9109
9110 *)
9111   dynamic_linker=no
9112   ;;
9113 esac
9114 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9115 echo "${ECHO_T}$dynamic_linker" >&6; }
9116 test "$dynamic_linker" = no && can_build_shared=no
9117
9118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9119 if test "$GCC" = yes; then
9120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9121 fi
9122
9123
9124 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9125 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9126 if test "${libltdl_cv_shlibext+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129
9130 module=yes
9131 eval libltdl_cv_shlibext=$shrext_cmds
9132
9133 fi
9134 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9135 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9136 if test -n "$libltdl_cv_shlibext"; then
9137
9138 cat >>confdefs.h <<_ACEOF
9139 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9140 _ACEOF
9141
9142 fi
9143
9144
9145 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9146 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9147 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   libltdl_cv_shlibpath_var="$shlibpath_var"
9151 fi
9152 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9153 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9154 if test -n "$libltdl_cv_shlibpath_var"; then
9155
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9158 _ACEOF
9159
9160 fi
9161
9162
9163 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9164 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9165 if test "${libltdl_cv_sys_search_path+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9169 fi
9170 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9171 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9172 if test -n "$libltdl_cv_sys_search_path"; then
9173   sys_search_path=
9174   for dir in $libltdl_cv_sys_search_path; do
9175     if test -z "$sys_search_path"; then
9176       sys_search_path="$dir"
9177     else
9178       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9179     fi
9180   done
9181
9182 cat >>confdefs.h <<_ACEOF
9183 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9184 _ACEOF
9185
9186 fi
9187
9188 { echo "$as_me:$LINENO: checking for objdir" >&5
9189 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9190 if test "${libltdl_cv_objdir+set}" = set; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   libltdl_cv_objdir="$objdir"
9194   if test -n "$objdir"; then
9195     :
9196   else
9197     rm -f .libs 2>/dev/null
9198     mkdir .libs 2>/dev/null
9199     if test -d .libs; then
9200       libltdl_cv_objdir=.libs
9201     else
9202       # MS-DOS does not allow filenames that begin with a dot.
9203       libltdl_cv_objdir=_libs
9204     fi
9205   rmdir .libs 2>/dev/null
9206   fi
9207
9208 fi
9209 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9210 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9211
9212 cat >>confdefs.h <<_ACEOF
9213 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9214 _ACEOF
9215
9216
9217
9218
9219
9220
9221 # Check for command to grab the raw symbol name followed by C symbol from nm.
9222 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9223 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227
9228 # These are sane defaults that work on at least a few old systems.
9229 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9230
9231 # Character class describing NM global symbol codes.
9232 symcode='[BCDEGRST]'
9233
9234 # Regexp to match symbols that can be accessed directly from C.
9235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9236
9237 # Transform an extracted symbol line into a proper C declaration
9238 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9239
9240 # Transform an extracted symbol line into symbol name and symbol address
9241 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'"
9242
9243 # Define system-specific variables.
9244 case $host_os in
9245 aix*)
9246   symcode='[BCDT]'
9247   ;;
9248 cygwin* | mingw* | pw32*)
9249   symcode='[ABCDGISTW]'
9250   ;;
9251 hpux*) # Its linker distinguishes data from code symbols
9252   if test "$host_cpu" = ia64; then
9253     symcode='[ABCDEGRST]'
9254   fi
9255   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256   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'"
9257   ;;
9258 linux*)
9259   if test "$host_cpu" = ia64; then
9260     symcode='[ABCDGIRSTW]'
9261     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9262     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'"
9263   fi
9264   ;;
9265 irix* | nonstopux*)
9266   symcode='[BCDEGRST]'
9267   ;;
9268 osf*)
9269   symcode='[BCDEGQRST]'
9270   ;;
9271 solaris*)
9272   symcode='[BDRT]'
9273   ;;
9274 sco3.2v5*)
9275   symcode='[DT]'
9276   ;;
9277 sysv4.2uw2*)
9278   symcode='[DT]'
9279   ;;
9280 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9281   symcode='[ABDT]'
9282   ;;
9283 sysv4)
9284   symcode='[DFNSTU]'
9285   ;;
9286 esac
9287
9288 # Handle CRLF in mingw tool chain
9289 opt_cr=
9290 case $build_os in
9291 mingw*)
9292   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9293   ;;
9294 esac
9295
9296 # If we're using GNU nm, then use its standard symbol codes.
9297 case `$NM -V 2>&1` in
9298 *GNU* | *'with BFD'*)
9299   symcode='[ABCDGIRSTW]' ;;
9300 esac
9301
9302 # Try without a prefix undercore, then with it.
9303 for ac_symprfx in "" "_"; do
9304
9305   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9306   symxfrm="\\1 $ac_symprfx\\2 \\2"
9307
9308   # Write the raw and C identifiers.
9309   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9310
9311   # Check to see that the pipe works correctly.
9312   pipe_works=no
9313
9314   rm -f conftest*
9315   cat > conftest.$ac_ext <<EOF
9316 #ifdef __cplusplus
9317 extern "C" {
9318 #endif
9319 char nm_test_var;
9320 void nm_test_func(){}
9321 #ifdef __cplusplus
9322 }
9323 #endif
9324 int main(){nm_test_var='a';nm_test_func();return(0);}
9325 EOF
9326
9327   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328   (eval $ac_compile) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; then
9332     # Now try to grab the symbols.
9333     nlist=conftest.nm
9334     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9335   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } && test -s "$nlist"; then
9339       # Try sorting and uniquifying the output.
9340       if sort "$nlist" | uniq > "$nlist"T; then
9341         mv -f "$nlist"T "$nlist"
9342       else
9343         rm -f "$nlist"T
9344       fi
9345
9346       # Make sure that we snagged all the symbols we need.
9347       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9348         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9349           cat <<EOF > conftest.$ac_ext
9350 #ifdef __cplusplus
9351 extern "C" {
9352 #endif
9353
9354 EOF
9355           # Now generate the symbol file.
9356           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9357
9358           cat <<EOF >> conftest.$ac_ext
9359 #if defined (__STDC__) && __STDC__
9360 # define lt_ptr_t void *
9361 #else
9362 # define lt_ptr_t char *
9363 # define const
9364 #endif
9365
9366 /* The mapping between symbol names and symbols. */
9367 const struct {
9368   const char *name;
9369   lt_ptr_t address;
9370 }
9371 lt_preloaded_symbols[] =
9372 {
9373 EOF
9374           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9375           cat <<\EOF >> conftest.$ac_ext
9376   {0, (lt_ptr_t) 0}
9377 };
9378
9379 #ifdef __cplusplus
9380 }
9381 #endif
9382 EOF
9383           # Now try linking the two files.
9384           mv conftest.$ac_objext conftstm.$ac_objext
9385           lt_save_LIBS="$LIBS"
9386           lt_save_CFLAGS="$CFLAGS"
9387           LIBS="conftstm.$ac_objext"
9388           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9389           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390   (eval $ac_link) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9394             pipe_works=yes
9395           fi
9396           LIBS="$lt_save_LIBS"
9397           CFLAGS="$lt_save_CFLAGS"
9398         else
9399           echo "cannot find nm_test_func in $nlist" >&5
9400         fi
9401       else
9402         echo "cannot find nm_test_var in $nlist" >&5
9403       fi
9404     else
9405       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9406     fi
9407   else
9408     echo "$progname: failed program was:" >&5
9409     cat conftest.$ac_ext >&5
9410   fi
9411   rm -f conftest* conftst*
9412
9413   # Do not use the global_symbol_pipe unless it works.
9414   if test "$pipe_works" = yes; then
9415     break
9416   else
9417     lt_cv_sys_global_symbol_pipe=
9418   fi
9419 done
9420
9421 fi
9422
9423 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9424   lt_cv_sys_global_symbol_to_cdecl=
9425 fi
9426 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9427   { echo "$as_me:$LINENO: result: failed" >&5
9428 echo "${ECHO_T}failed" >&6; }
9429 else
9430   { echo "$as_me:$LINENO: result: ok" >&5
9431 echo "${ECHO_T}ok" >&6; }
9432 fi
9433
9434
9435 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9436 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9437 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9441     libltdl_cv_preloaded_symbols=yes
9442   else
9443     libltdl_cv_preloaded_symbols=no
9444   fi
9445
9446 fi
9447 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9448 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9449 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9450
9451 cat >>confdefs.h <<\_ACEOF
9452 #define HAVE_PRELOADED_SYMBOLS 1
9453 _ACEOF
9454
9455 fi
9456
9457 LIBADD_DL=
9458
9459 ac_ext=c
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9464
9465
9466 { echo "$as_me:$LINENO: checking for shl_load" >&5
9467 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_shl_load+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9479 #define shl_load innocuous_shl_load
9480
9481 /* System header to define __stub macros and hopefully few prototypes,
9482     which can conflict with char shl_load (); below.
9483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9484     <limits.h> exists even on freestanding compilers.  */
9485
9486 #ifdef __STDC__
9487 # include <limits.h>
9488 #else
9489 # include <assert.h>
9490 #endif
9491
9492 #undef shl_load
9493
9494 /* Override any GCC internal prototype to avoid an error.
9495    Use char because int might match the return type of a GCC
9496    builtin and then its argument prototype would still apply.  */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 char shl_load ();
9501 /* The GNU C library defines this for functions which it implements
9502     to always fail with ENOSYS.  Some functions are actually named
9503     something starting with __ and the normal name is an alias.  */
9504 #if defined __stub_shl_load || defined __stub___shl_load
9505 choke me
9506 #endif
9507
9508 int
9509 main ()
9510 {
9511 return shl_load ();
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (ac_try="$ac_link"
9518 case "(($ac_try" in
9519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520   *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523   (eval "$ac_link") 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } &&
9530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9531   { (case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_try") 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; } &&
9540          { ac_try='test -s conftest$ac_exeext'
9541   { (case "(($ac_try" in
9542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543   *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546   (eval "$ac_try") 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   ac_cv_func_shl_load=yes
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555         ac_cv_func_shl_load=no
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext \
9559       conftest$ac_exeext conftest.$ac_ext
9560 fi
9561 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9563 if test $ac_cv_func_shl_load = yes; then
9564
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_SHL_LOAD 1
9567 _ACEOF
9568
9569 else
9570   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9571 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   ac_check_lib_save_LIBS=$LIBS
9576 LIBS="-ldld  $LIBS"
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583
9584 /* Override any GCC internal prototype to avoid an error.
9585    Use char because int might match the return type of a GCC
9586    builtin and then its argument prototype would still apply.  */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 char shl_load ();
9591 int
9592 main ()
9593 {
9594 return shl_load ();
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9601 case "(($ac_try" in
9602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603   *) ac_try_echo=$ac_try;;
9604 esac
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606   (eval "$ac_link") 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614   { (case "(($ac_try" in
9615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616   *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619   (eval "$ac_try") 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; } &&
9623          { ac_try='test -s conftest$ac_exeext'
9624   { (case "(($ac_try" in
9625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626   *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629   (eval "$ac_try") 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_lib_dld_shl_load=yes
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638         ac_cv_lib_dld_shl_load=no
9639 fi
9640
9641 rm -f core conftest.err conftest.$ac_objext \
9642       conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9644 fi
9645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9646 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9647 if test $ac_cv_lib_dld_shl_load = yes; then
9648
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_SHL_LOAD 1
9651 _ACEOF
9652
9653         LIBADD_DL="$LIBADD_DL -ldld"
9654 else
9655   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldl  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668
9669 /* Override any GCC internal prototype to avoid an error.
9670    Use char because int might match the return type of a GCC
9671    builtin and then its argument prototype would still apply.  */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char dlopen ();
9676 int
9677 main ()
9678 {
9679 return dlopen ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_link") 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699   { (case "(($ac_try" in
9700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701   *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704   (eval "$ac_try") 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714   (eval "$ac_try") 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_lib_dl_dlopen=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723         ac_cv_lib_dl_dlopen=no
9724 fi
9725
9726 rm -f core conftest.err conftest.$ac_objext \
9727       conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9729 fi
9730 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9732 if test $ac_cv_lib_dl_dlopen = yes; then
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_LIBDL 1
9736 _ACEOF
9737
9738                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9739 else
9740   cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746 #if HAVE_DLFCN_H
9747 #  include <dlfcn.h>
9748 #endif
9749
9750 int
9751 main ()
9752 {
9753 dlopen(0, 0);
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (ac_try="$ac_link"
9760 case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_link") 2>conftest.er1
9766   ac_status=$?
9767   grep -v '^ *+' conftest.er1 >conftest.err
9768   rm -f conftest.er1
9769   cat conftest.err >&5
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773   { (case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_try") 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_try") 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_LIBDL 1
9795 _ACEOF
9796  libltdl_cv_func_dlopen="yes"
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9802 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9803 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   ac_check_lib_save_LIBS=$LIBS
9807 LIBS="-lsvld  $LIBS"
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814
9815 /* Override any GCC internal prototype to avoid an error.
9816    Use char because int might match the return type of a GCC
9817    builtin and then its argument prototype would still apply.  */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char dlopen ();
9822 int
9823 main ()
9824 {
9825 return dlopen ();
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_link") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_cv_lib_svld_dlopen=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869         ac_cv_lib_svld_dlopen=no
9870 fi
9871
9872 rm -f core conftest.err conftest.$ac_objext \
9873       conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9875 fi
9876 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9878 if test $ac_cv_lib_svld_dlopen = yes; then
9879
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_LIBDL 1
9882 _ACEOF
9883
9884                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9885 else
9886   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9887 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-ldld  $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901    Use char because int might match the return type of a GCC
9902    builtin and then its argument prototype would still apply.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char dld_link ();
9907 int
9908 main ()
9909 {
9910 return dld_link ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930   { (case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_try") 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; } &&
9939          { ac_try='test -s conftest$ac_exeext'
9940   { (case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_try") 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_lib_dld_dld_link=yes
9950 else
9951   echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         ac_cv_lib_dld_dld_link=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext \
9958       conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9960 fi
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9962 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9963 if test $ac_cv_lib_dld_dld_link = yes; then
9964
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_DLD 1
9967 _ACEOF
9968
9969                 LIBADD_DL="$LIBADD_DL -ldld"
9970 else
9971   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9972 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9973 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9984 #define _dyld_func_lookup innocuous__dyld_func_lookup
9985
9986 /* System header to define __stub macros and hopefully few prototypes,
9987     which can conflict with char _dyld_func_lookup (); below.
9988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989     <limits.h> exists even on freestanding compilers.  */
9990
9991 #ifdef __STDC__
9992 # include <limits.h>
9993 #else
9994 # include <assert.h>
9995 #endif
9996
9997 #undef _dyld_func_lookup
9998
9999 /* Override any GCC internal prototype to avoid an error.
10000    Use char because int might match the return type of a GCC
10001    builtin and then its argument prototype would still apply.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char _dyld_func_lookup ();
10006 /* The GNU C library defines this for functions which it implements
10007     to always fail with ENOSYS.  Some functions are actually named
10008     something starting with __ and the normal name is an alias.  */
10009 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10010 choke me
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return _dyld_func_lookup ();
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028   (eval "$ac_link") 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } &&
10035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036   { (case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_try") 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; } &&
10045          { ac_try='test -s conftest$ac_exeext'
10046   { (case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_try") 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; }; then
10055   ac_cv_func__dyld_func_lookup=yes
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060         ac_cv_func__dyld_func_lookup=no
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext \
10064       conftest$ac_exeext conftest.$ac_ext
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10067 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10068 if test $ac_cv_func__dyld_func_lookup = yes; then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_DYLD 1
10072 _ACEOF
10073
10074 fi
10075
10076
10077 fi
10078
10079
10080 fi
10081
10082
10083 fi
10084
10085 rm -f core conftest.err conftest.$ac_objext \
10086       conftest$ac_exeext conftest.$ac_ext
10087
10088 fi
10089
10090
10091 fi
10092
10093
10094 fi
10095
10096
10097 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10098 then
10099   lt_save_LIBS="$LIBS"
10100   LIBS="$LIBS $LIBADD_DL"
10101
10102 for ac_func in dlerror
10103 do
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10118 #define $ac_func innocuous_$ac_func
10119
10120 /* System header to define __stub macros and hopefully few prototypes,
10121     which can conflict with char $ac_func (); below.
10122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123     <limits.h> exists even on freestanding compilers.  */
10124
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10130
10131 #undef $ac_func
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134    Use char because int might match the return type of a GCC
10135    builtin and then its argument prototype would still apply.  */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char $ac_func ();
10140 /* The GNU C library defines this for functions which it implements
10141     to always fail with ENOSYS.  Some functions are actually named
10142     something starting with __ and the normal name is an alias.  */
10143 #if defined __stub_$ac_func || defined __stub___$ac_func
10144 choke me
10145 #endif
10146
10147 int
10148 main ()
10149 {
10150 return $ac_func ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   eval "$as_ac_var=yes"
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         eval "$as_ac_var=no"
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 fi
10200 ac_res=`eval echo '${'$as_ac_var'}'`
10201                { echo "$as_me:$LINENO: result: $ac_res" >&5
10202 echo "${ECHO_T}$ac_res" >&6; }
10203 if test `eval echo '${'$as_ac_var'}'` = yes; then
10204   cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10206 _ACEOF
10207
10208 fi
10209 done
10210
10211   LIBS="$lt_save_LIBS"
10212 fi
10213 ac_ext=c
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219
10220
10221 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10222 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10223 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   ac_cv_sys_symbol_underscore=no
10227   cat > conftest.$ac_ext <<EOF
10228 void nm_test_func(){}
10229 int main(){nm_test_func;return 0;}
10230 EOF
10231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232   (eval $ac_compile) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; then
10236     # Now try to grab the symbols.
10237     ac_nlist=conftest.nm
10238     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10239   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } && test -s "$ac_nlist"; then
10243       # See whether the symbols have a leading underscore.
10244       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10245         ac_cv_sys_symbol_underscore=yes
10246       else
10247         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10248           :
10249         else
10250           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10251         fi
10252       fi
10253     else
10254       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10255     fi
10256   else
10257     echo "configure: failed program was:" >&5
10258     cat conftest.c >&5
10259   fi
10260   rm -rf conftest*
10261
10262 fi
10263 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10264 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10265
10266
10267 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10268   if test x"$libltdl_cv_func_dlopen" = xyes ||
10269      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10270         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10271 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10272 if test "${libltdl_cv_need_uscore+set}" = set; then
10273   echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275   libltdl_cv_need_uscore=unknown
10276           save_LIBS="$LIBS"
10277           LIBS="$LIBS $LIBADD_DL"
10278           if test "$cross_compiling" = yes; then :
10279   libltdl_cv_need_uscore=cross
10280 else
10281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282   lt_status=$lt_dlunknown
10283   cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286
10287 #if HAVE_DLFCN_H
10288 #include <dlfcn.h>
10289 #endif
10290
10291 #include <stdio.h>
10292
10293 #ifdef RTLD_GLOBAL
10294 #  define LT_DLGLOBAL           RTLD_GLOBAL
10295 #else
10296 #  ifdef DL_GLOBAL
10297 #    define LT_DLGLOBAL         DL_GLOBAL
10298 #  else
10299 #    define LT_DLGLOBAL         0
10300 #  endif
10301 #endif
10302
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304    find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10306 #  ifdef RTLD_LAZY
10307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10308 #  else
10309 #    ifdef DL_LAZY
10310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10311 #    else
10312 #      ifdef RTLD_NOW
10313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10314 #      else
10315 #        ifdef DL_NOW
10316 #          define LT_DLLAZY_OR_NOW      DL_NOW
10317 #        else
10318 #          define LT_DLLAZY_OR_NOW      0
10319 #        endif
10320 #      endif
10321 #    endif
10322 #  endif
10323 #endif
10324
10325 #ifdef __cplusplus
10326 extern "C" void exit (int);
10327 #endif
10328
10329 void fnord() { int i=42;}
10330 int main ()
10331 {
10332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333   int status = $lt_dlunknown;
10334
10335   if (self)
10336     {
10337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339       /* dlclose (self); */
10340     }
10341   else
10342     puts (dlerror ());
10343
10344     exit (status);
10345 }
10346 EOF
10347   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348   (eval $ac_link) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10352     (./conftest; exit; ) >&5 2>/dev/null
10353     lt_status=$?
10354     case x$lt_status in
10355       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10356       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10357       x$lt_dlunknown|x*)  ;;
10358     esac
10359   else :
10360     # compilation failed
10361
10362   fi
10363 fi
10364 rm -fr conftest*
10365
10366           LIBS="$save_LIBS"
10367
10368 fi
10369 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10370 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10371   fi
10372 fi
10373
10374 if test x"$libltdl_cv_need_uscore" = xyes; then
10375
10376 cat >>confdefs.h <<\_ACEOF
10377 #define NEED_USCORE 1
10378 _ACEOF
10379
10380 fi
10381
10382
10383 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10384 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10385 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   # PORTME does your system automatically load deplibs for dlopen?
10389   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10390   # For now, we just catch OSes we know something about -- in the
10391   # future, we'll try test this programmatically.
10392   libltdl_cv_sys_dlopen_deplibs=unknown
10393   case "$host_os" in
10394   aix3*|aix4.1.*|aix4.2.*)
10395     # Unknown whether this is true for these versions of AIX, but
10396     # we want this `case' here to explicitly catch those versions.
10397     libltdl_cv_sys_dlopen_deplibs=unknown
10398     ;;
10399   aix[45]*)
10400     libltdl_cv_sys_dlopen_deplibs=yes
10401     ;;
10402   darwin*)
10403     # Assuming the user has installed a libdl from somewhere, this is true
10404     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10405     libltdl_cv_sys_dlopen_deplibs=yes
10406     ;;
10407   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10408     # GNU and its variants, using gnu ld.so (Glibc)
10409     libltdl_cv_sys_dlopen_deplibs=yes
10410     ;;
10411   hpux10*|hpux11*)
10412     libltdl_cv_sys_dlopen_deplibs=yes
10413     ;;
10414   interix*)
10415     libltdl_cv_sys_dlopen_deplibs=yes
10416     ;;
10417   irix[12345]*|irix6.[01]*)
10418     # Catch all versions of IRIX before 6.2, and indicate that we don't
10419     # know how it worked for any of those versions.
10420     libltdl_cv_sys_dlopen_deplibs=unknown
10421     ;;
10422   irix*)
10423     # The case above catches anything before 6.2, and it's known that
10424     # at 6.2 and later dlopen does load deplibs.
10425     libltdl_cv_sys_dlopen_deplibs=yes
10426     ;;
10427   netbsd*)
10428     libltdl_cv_sys_dlopen_deplibs=yes
10429     ;;
10430   openbsd*)
10431     libltdl_cv_sys_dlopen_deplibs=yes
10432     ;;
10433   osf[1234]*)
10434     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10435     # it did *not* use an RPATH in a shared library to find objects the
10436     # library depends on, so we explictly say `no'.
10437     libltdl_cv_sys_dlopen_deplibs=no
10438     ;;
10439   osf5.0|osf5.0a|osf5.1)
10440     # dlopen *does* load deplibs and with the right loader patch applied
10441     # it even uses RPATH in a shared library to search for shared objects
10442     # that the library depends on, but there's no easy way to know if that
10443     # patch is installed.  Since this is the case, all we can really
10444     # say is unknown -- it depends on the patch being installed.  If
10445     # it is, this changes to `yes'.  Without it, it would be `no'.
10446     libltdl_cv_sys_dlopen_deplibs=unknown
10447     ;;
10448   osf*)
10449     # the two cases above should catch all versions of osf <= 5.1.  Read
10450     # the comments above for what we know about them.
10451     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10452     # is used to find them so we can finally say `yes'.
10453     libltdl_cv_sys_dlopen_deplibs=yes
10454     ;;
10455   solaris*)
10456     libltdl_cv_sys_dlopen_deplibs=yes
10457     ;;
10458   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10459     libltdl_cv_sys_dlopen_deplibs=yes
10460     ;;
10461   esac
10462
10463 fi
10464 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10465 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10466 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10467
10468 cat >>confdefs.h <<\_ACEOF
10469 #define LTDL_DLOPEN_DEPLIBS 1
10470 _ACEOF
10471
10472 fi
10473
10474
10475 for ac_header in argz.h
10476 do
10477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 fi
10484 ac_res=`eval echo '${'$as_ac_Header'}'`
10485                { echo "$as_me:$LINENO: result: $ac_res" >&5
10486 echo "${ECHO_T}$ac_res" >&6; }
10487 else
10488   # Is the header compilable?
10489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 $ac_includes_default
10498 #include <$ac_header>
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (ac_try="$ac_compile"
10502 case "(($ac_try" in
10503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504   *) ac_try_echo=$ac_try;;
10505 esac
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507   (eval "$ac_compile") 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } &&
10514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10515   { (case "(($ac_try" in
10516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517   *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520   (eval "$ac_try") 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; } &&
10524          { ac_try='test -s conftest.$ac_objext'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534   ac_header_compiler=yes
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539         ac_header_compiler=no
10540 fi
10541
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6; }
10545
10546 # Is the header present?
10547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555 #include <$ac_header>
10556 _ACEOF
10557 if { (ac_try="$ac_cpp conftest.$ac_ext"
10558 case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10564   ac_status=$?
10565   grep -v '^ *+' conftest.er1 >conftest.err
10566   rm -f conftest.er1
10567   cat conftest.err >&5
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } >/dev/null; then
10570   if test -s conftest.err; then
10571     ac_cpp_err=$ac_c_preproc_warn_flag
10572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10573   else
10574     ac_cpp_err=
10575   fi
10576 else
10577   ac_cpp_err=yes
10578 fi
10579 if test -z "$ac_cpp_err"; then
10580   ac_header_preproc=yes
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585   ac_header_preproc=no
10586 fi
10587
10588 rm -f conftest.err conftest.$ac_ext
10589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10590 echo "${ECHO_T}$ac_header_preproc" >&6; }
10591
10592 # So?  What about this header?
10593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10594   yes:no: )
10595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10599     ac_header_preproc=yes
10600     ;;
10601   no:yes:* )
10602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10614     ( cat <<\_ASBOX
10615 ## ----------------------------------- ##
10616 ## Report this to llvmbugs@cs.uiuc.edu ##
10617 ## ----------------------------------- ##
10618 _ASBOX
10619      ) | sed "s/^/$as_me: WARNING:     /" >&2
10620     ;;
10621 esac
10622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10625   echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627   eval "$as_ac_Header=\$ac_header_preproc"
10628 fi
10629 ac_res=`eval echo '${'$as_ac_Header'}'`
10630                { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632
10633 fi
10634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10635   cat >>confdefs.h <<_ACEOF
10636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10637 _ACEOF
10638
10639 fi
10640
10641 done
10642
10643
10644 { echo "$as_me:$LINENO: checking for error_t" >&5
10645 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10646 if test "${ac_cv_type_error_t+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655 #if HAVE_ARGZ_H
10656 #  include <argz.h>
10657 #endif
10658
10659 typedef error_t ac__type_new_;
10660 int
10661 main ()
10662 {
10663 if ((ac__type_new_ *) 0)
10664   return 0;
10665 if (sizeof (ac__type_new_))
10666   return 0;
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (ac_try="$ac_compile"
10673 case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_compile") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686   { (case "(($ac_try" in
10687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688   *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691   (eval "$ac_try") 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }; } &&
10695          { ac_try='test -s conftest.$ac_objext'
10696   { (case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_try") 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ac_cv_type_error_t=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710         ac_cv_type_error_t=no
10711 fi
10712
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10714 fi
10715 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10716 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10717 if test $ac_cv_type_error_t = yes; then
10718
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_ERROR_T 1
10721 _ACEOF
10722
10723
10724 else
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define error_t int
10728 _ACEOF
10729
10730 fi
10731
10732
10733
10734
10735
10736
10737
10738 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10739 do
10740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10754 #define $ac_func innocuous_$ac_func
10755
10756 /* System header to define __stub macros and hopefully few prototypes,
10757     which can conflict with char $ac_func (); below.
10758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759     <limits.h> exists even on freestanding compilers.  */
10760
10761 #ifdef __STDC__
10762 # include <limits.h>
10763 #else
10764 # include <assert.h>
10765 #endif
10766
10767 #undef $ac_func
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770    Use char because int might match the return type of a GCC
10771    builtin and then its argument prototype would still apply.  */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char $ac_func ();
10776 /* The GNU C library defines this for functions which it implements
10777     to always fail with ENOSYS.  Some functions are actually named
10778     something starting with __ and the normal name is an alias.  */
10779 #if defined __stub_$ac_func || defined __stub___$ac_func
10780 choke me
10781 #endif
10782
10783 int
10784 main ()
10785 {
10786 return $ac_func ();
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_link") 2>conftest.er1
10799   ac_status=$?
10800   grep -v '^ *+' conftest.er1 >conftest.err
10801   rm -f conftest.er1
10802   cat conftest.err >&5
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); } &&
10805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806   { (case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811   (eval "$ac_try") 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; } &&
10815          { ac_try='test -s conftest$ac_exeext'
10816   { (case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_try") 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   eval "$as_ac_var=yes"
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830         eval "$as_ac_var=no"
10831 fi
10832
10833 rm -f core conftest.err conftest.$ac_objext \
10834       conftest$ac_exeext conftest.$ac_ext
10835 fi
10836 ac_res=`eval echo '${'$as_ac_var'}'`
10837                { echo "$as_me:$LINENO: result: $ac_res" >&5
10838 echo "${ECHO_T}$ac_res" >&6; }
10839 if test `eval echo '${'$as_ac_var'}'` = yes; then
10840   cat >>confdefs.h <<_ACEOF
10841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10842 _ACEOF
10843
10844 fi
10845 done
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10875                   stdio.h unistd.h
10876 do
10877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 fi
10884 ac_res=`eval echo '${'$as_ac_Header'}'`
10885                { echo "$as_me:$LINENO: result: $ac_res" >&5
10886 echo "${ECHO_T}$ac_res" >&6; }
10887 else
10888   # Is the header compilable?
10889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h.  */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h.  */
10897 $ac_includes_default
10898 #include <$ac_header>
10899 _ACEOF
10900 rm -f conftest.$ac_objext
10901 if { (ac_try="$ac_compile"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_compile") 2>conftest.er1
10908   ac_status=$?
10909   grep -v '^ *+' conftest.er1 >conftest.err
10910   rm -f conftest.er1
10911   cat conftest.err >&5
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); } &&
10914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10915   { (case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_try") 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; } &&
10924          { ac_try='test -s conftest.$ac_objext'
10925   { (case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_try") 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; }; then
10934   ac_header_compiler=yes
10935 else
10936   echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939         ac_header_compiler=no
10940 fi
10941
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10944 echo "${ECHO_T}$ac_header_compiler" >&6; }
10945
10946 # Is the header present?
10947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h.  */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h.  */
10955 #include <$ac_header>
10956 _ACEOF
10957 if { (ac_try="$ac_cpp conftest.$ac_ext"
10958 case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10964   ac_status=$?
10965   grep -v '^ *+' conftest.er1 >conftest.err
10966   rm -f conftest.er1
10967   cat conftest.err >&5
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } >/dev/null; then
10970   if test -s conftest.err; then
10971     ac_cpp_err=$ac_c_preproc_warn_flag
10972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10973   else
10974     ac_cpp_err=
10975   fi
10976 else
10977   ac_cpp_err=yes
10978 fi
10979 if test -z "$ac_cpp_err"; then
10980   ac_header_preproc=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985   ac_header_preproc=no
10986 fi
10987
10988 rm -f conftest.err conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990 echo "${ECHO_T}$ac_header_preproc" >&6; }
10991
10992 # So?  What about this header?
10993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10994   yes:no: )
10995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10999     ac_header_preproc=yes
11000     ;;
11001   no:yes:* )
11002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11004     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11005 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11006     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11008     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11009 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11014     ( cat <<\_ASBOX
11015 ## ----------------------------------- ##
11016 ## Report this to llvmbugs@cs.uiuc.edu ##
11017 ## ----------------------------------- ##
11018 _ASBOX
11019      ) | sed "s/^/$as_me: WARNING:     /" >&2
11020     ;;
11021 esac
11022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   eval "$as_ac_Header=\$ac_header_preproc"
11028 fi
11029 ac_res=`eval echo '${'$as_ac_Header'}'`
11030                { echo "$as_me:$LINENO: result: $ac_res" >&5
11031 echo "${ECHO_T}$ac_res" >&6; }
11032
11033 fi
11034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11035   cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11037 _ACEOF
11038
11039 fi
11040
11041 done
11042
11043
11044
11045
11046
11047 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11048 do
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 fi
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057                { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11059 else
11060   # Is the header compilable?
11061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069 $ac_includes_default
11070 #include <$ac_header>
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_compile") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } &&
11086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087   { (case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_try") 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; } &&
11096          { ac_try='test -s conftest.$ac_objext'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_try") 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; }; then
11106   ac_header_compiler=yes
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111         ac_header_compiler=no
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116 echo "${ECHO_T}$ac_header_compiler" >&6; }
11117
11118 # Is the header present?
11119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 #include <$ac_header>
11128 _ACEOF
11129 if { (ac_try="$ac_cpp conftest.$ac_ext"
11130 case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11136   ac_status=$?
11137   grep -v '^ *+' conftest.er1 >conftest.err
11138   rm -f conftest.er1
11139   cat conftest.err >&5
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); } >/dev/null; then
11142   if test -s conftest.err; then
11143     ac_cpp_err=$ac_c_preproc_warn_flag
11144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11145   else
11146     ac_cpp_err=
11147   fi
11148 else
11149   ac_cpp_err=yes
11150 fi
11151 if test -z "$ac_cpp_err"; then
11152   ac_header_preproc=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157   ac_header_preproc=no
11158 fi
11159
11160 rm -f conftest.err conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162 echo "${ECHO_T}$ac_header_preproc" >&6; }
11163
11164 # So?  What about this header?
11165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166   yes:no: )
11167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171     ac_header_preproc=yes
11172     ;;
11173   no:yes:* )
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11186     ( cat <<\_ASBOX
11187 ## ----------------------------------- ##
11188 ## Report this to llvmbugs@cs.uiuc.edu ##
11189 ## ----------------------------------- ##
11190 _ASBOX
11191      ) | sed "s/^/$as_me: WARNING:     /" >&2
11192     ;;
11193 esac
11194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   eval "$as_ac_Header=\$ac_header_preproc"
11200 fi
11201 ac_res=`eval echo '${'$as_ac_Header'}'`
11202                { echo "$as_me:$LINENO: result: $ac_res" >&5
11203 echo "${ECHO_T}$ac_res" >&6; }
11204
11205 fi
11206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207   cat >>confdefs.h <<_ACEOF
11208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209 _ACEOF
11210
11211 fi
11212
11213 done
11214
11215
11216
11217 for ac_header in string.h strings.h
11218 do
11219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 fi
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227                { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 else
11230   # Is the header compilable?
11231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 $ac_includes_default
11240 #include <$ac_header>
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_compile") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257   { (case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_try") 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   ac_header_compiler=yes
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281         ac_header_compiler=no
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6; }
11287
11288 # Is the header present?
11289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 #include <$ac_header>
11298 _ACEOF
11299 if { (ac_try="$ac_cpp conftest.$ac_ext"
11300 case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } >/dev/null; then
11312   if test -s conftest.err; then
11313     ac_cpp_err=$ac_c_preproc_warn_flag
11314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11315   else
11316     ac_cpp_err=
11317   fi
11318 else
11319   ac_cpp_err=yes
11320 fi
11321 if test -z "$ac_cpp_err"; then
11322   ac_header_preproc=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327   ac_header_preproc=no
11328 fi
11329
11330 rm -f conftest.err conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332 echo "${ECHO_T}$ac_header_preproc" >&6; }
11333
11334 # So?  What about this header?
11335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336   yes:no: )
11337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341     ac_header_preproc=yes
11342     ;;
11343   no:yes:* )
11344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11356     ( cat <<\_ASBOX
11357 ## ----------------------------------- ##
11358 ## Report this to llvmbugs@cs.uiuc.edu ##
11359 ## ----------------------------------- ##
11360 _ASBOX
11361      ) | sed "s/^/$as_me: WARNING:     /" >&2
11362     ;;
11363 esac
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   eval "$as_ac_Header=\$ac_header_preproc"
11370 fi
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372                { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374
11375 fi
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377   cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379 _ACEOF
11380  break
11381 fi
11382
11383 done
11384
11385
11386
11387
11388 for ac_func in strchr index
11389 do
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11404 #define $ac_func innocuous_$ac_func
11405
11406 /* System header to define __stub macros and hopefully few prototypes,
11407     which can conflict with char $ac_func (); below.
11408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409     <limits.h> exists even on freestanding compilers.  */
11410
11411 #ifdef __STDC__
11412 # include <limits.h>
11413 #else
11414 # include <assert.h>
11415 #endif
11416
11417 #undef $ac_func
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char $ac_func ();
11426 /* The GNU C library defines this for functions which it implements
11427     to always fail with ENOSYS.  Some functions are actually named
11428     something starting with __ and the normal name is an alias.  */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 choke me
11431 #endif
11432
11433 int
11434 main ()
11435 {
11436 return $ac_func ();
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_link") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456   { (case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_try") 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (case "(($ac_try" in
11467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468   *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471   (eval "$ac_try") 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   eval "$as_ac_var=yes"
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480         eval "$as_ac_var=no"
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext \
11484       conftest$ac_exeext conftest.$ac_ext
11485 fi
11486 ac_res=`eval echo '${'$as_ac_var'}'`
11487                { echo "$as_me:$LINENO: result: $ac_res" >&5
11488 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_var'}'` = yes; then
11490   cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492 _ACEOF
11493  break
11494 fi
11495 done
11496
11497
11498
11499 for ac_func in strrchr rindex
11500 do
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11515 #define $ac_func innocuous_$ac_func
11516
11517 /* System header to define __stub macros and hopefully few prototypes,
11518     which can conflict with char $ac_func (); below.
11519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520     <limits.h> exists even on freestanding compilers.  */
11521
11522 #ifdef __STDC__
11523 # include <limits.h>
11524 #else
11525 # include <assert.h>
11526 #endif
11527
11528 #undef $ac_func
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531    Use char because int might match the return type of a GCC
11532    builtin and then its argument prototype would still apply.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char $ac_func ();
11537 /* The GNU C library defines this for functions which it implements
11538     to always fail with ENOSYS.  Some functions are actually named
11539     something starting with __ and the normal name is an alias.  */
11540 #if defined __stub_$ac_func || defined __stub___$ac_func
11541 choke me
11542 #endif
11543
11544 int
11545 main ()
11546 {
11547 return $ac_func ();
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_link") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11567   { (case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_try") 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; } &&
11576          { ac_try='test -s conftest$ac_exeext'
11577   { (case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_try") 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   eval "$as_ac_var=yes"
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591         eval "$as_ac_var=no"
11592 fi
11593
11594 rm -f core conftest.err conftest.$ac_objext \
11595       conftest$ac_exeext conftest.$ac_ext
11596 fi
11597 ac_res=`eval echo '${'$as_ac_var'}'`
11598                { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600 if test `eval echo '${'$as_ac_var'}'` = yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11603 _ACEOF
11604  break
11605 fi
11606 done
11607
11608
11609
11610 for ac_func in memcpy bcopy
11611 do
11612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11626 #define $ac_func innocuous_$ac_func
11627
11628 /* System header to define __stub macros and hopefully few prototypes,
11629     which can conflict with char $ac_func (); below.
11630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631     <limits.h> exists even on freestanding compilers.  */
11632
11633 #ifdef __STDC__
11634 # include <limits.h>
11635 #else
11636 # include <assert.h>
11637 #endif
11638
11639 #undef $ac_func
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642    Use char because int might match the return type of a GCC
11643    builtin and then its argument prototype would still apply.  */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char $ac_func ();
11648 /* The GNU C library defines this for functions which it implements
11649     to always fail with ENOSYS.  Some functions are actually named
11650     something starting with __ and the normal name is an alias.  */
11651 #if defined __stub_$ac_func || defined __stub___$ac_func
11652 choke me
11653 #endif
11654
11655 int
11656 main ()
11657 {
11658 return $ac_func ();
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_link") 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; } &&
11687          { ac_try='test -s conftest$ac_exeext'
11688   { (case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_try") 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; }; then
11697   eval "$as_ac_var=yes"
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702         eval "$as_ac_var=no"
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext \
11706       conftest$ac_exeext conftest.$ac_ext
11707 fi
11708 ac_res=`eval echo '${'$as_ac_var'}'`
11709                { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11711 if test `eval echo '${'$as_ac_var'}'` = yes; then
11712   cat >>confdefs.h <<_ACEOF
11713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714 _ACEOF
11715  break
11716 fi
11717 done
11718
11719
11720
11721 for ac_func in memmove strcmp
11722 do
11723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11737 #define $ac_func innocuous_$ac_func
11738
11739 /* System header to define __stub macros and hopefully few prototypes,
11740     which can conflict with char $ac_func (); below.
11741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742     <limits.h> exists even on freestanding compilers.  */
11743
11744 #ifdef __STDC__
11745 # include <limits.h>
11746 #else
11747 # include <assert.h>
11748 #endif
11749
11750 #undef $ac_func
11751
11752 /* Override any GCC internal prototype to avoid an error.
11753    Use char because int might match the return type of a GCC
11754    builtin and then its argument prototype would still apply.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char $ac_func ();
11759 /* The GNU C library defines this for functions which it implements
11760     to always fail with ENOSYS.  Some functions are actually named
11761     something starting with __ and the normal name is an alias.  */
11762 #if defined __stub_$ac_func || defined __stub___$ac_func
11763 choke me
11764 #endif
11765
11766 int
11767 main ()
11768 {
11769 return $ac_func ();
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_link") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } &&
11788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11789   { (case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_try") 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; } &&
11798          { ac_try='test -s conftest$ac_exeext'
11799   { (case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_try") 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }; then
11808   eval "$as_ac_var=yes"
11809 else
11810   echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813         eval "$as_ac_var=no"
11814 fi
11815
11816 rm -f core conftest.err conftest.$ac_objext \
11817       conftest$ac_exeext conftest.$ac_ext
11818 fi
11819 ac_res=`eval echo '${'$as_ac_var'}'`
11820                { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 if test `eval echo '${'$as_ac_var'}'` = yes; then
11823   cat >>confdefs.h <<_ACEOF
11824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11825 _ACEOF
11826
11827 fi
11828 done
11829
11830
11831
11832
11833 for ac_func in closedir opendir readdir
11834 do
11835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841   cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h.  */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h.  */
11847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11849 #define $ac_func innocuous_$ac_func
11850
11851 /* System header to define __stub macros and hopefully few prototypes,
11852     which can conflict with char $ac_func (); below.
11853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854     <limits.h> exists even on freestanding compilers.  */
11855
11856 #ifdef __STDC__
11857 # include <limits.h>
11858 #else
11859 # include <assert.h>
11860 #endif
11861
11862 #undef $ac_func
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865    Use char because int might match the return type of a GCC
11866    builtin and then its argument prototype would still apply.  */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char $ac_func ();
11871 /* The GNU C library defines this for functions which it implements
11872     to always fail with ENOSYS.  Some functions are actually named
11873     something starting with __ and the normal name is an alias.  */
11874 #if defined __stub_$ac_func || defined __stub___$ac_func
11875 choke me
11876 #endif
11877
11878 int
11879 main ()
11880 {
11881 return $ac_func ();
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 rm -f conftest.$ac_objext conftest$ac_exeext
11887 if { (ac_try="$ac_link"
11888 case "(($ac_try" in
11889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890   *) ac_try_echo=$ac_try;;
11891 esac
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893   (eval "$ac_link") 2>conftest.er1
11894   ac_status=$?
11895   grep -v '^ *+' conftest.er1 >conftest.err
11896   rm -f conftest.er1
11897   cat conftest.err >&5
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } &&
11900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901   { (case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_try") 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest$ac_exeext'
11911   { (case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_try") 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; }; then
11920   eval "$as_ac_var=yes"
11921 else
11922   echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925         eval "$as_ac_var=no"
11926 fi
11927
11928 rm -f core conftest.err conftest.$ac_objext \
11929       conftest$ac_exeext conftest.$ac_ext
11930 fi
11931 ac_res=`eval echo '${'$as_ac_var'}'`
11932                { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11934 if test `eval echo '${'$as_ac_var'}'` = yes; then
11935   cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 _ACEOF
11938
11939 fi
11940 done
11941
11942
11943 # Check whether --enable-shared was given.
11944 if test "${enable_shared+set}" = set; then
11945   enableval=$enable_shared; p=${PACKAGE-default}
11946     case $enableval in
11947     yes) enable_shared=yes ;;
11948     no) enable_shared=no ;;
11949     *)
11950       enable_shared=no
11951       # Look at the argument we got.  We use all the common list separators.
11952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11953       for pkg in $enableval; do
11954         IFS="$lt_save_ifs"
11955         if test "X$pkg" = "X$p"; then
11956           enable_shared=yes
11957         fi
11958       done
11959       IFS="$lt_save_ifs"
11960       ;;
11961     esac
11962 else
11963   enable_shared=yes
11964 fi
11965
11966
11967 # Check whether --enable-static was given.
11968 if test "${enable_static+set}" = set; then
11969   enableval=$enable_static; p=${PACKAGE-default}
11970     case $enableval in
11971     yes) enable_static=yes ;;
11972     no) enable_static=no ;;
11973     *)
11974      enable_static=no
11975       # Look at the argument we got.  We use all the common list separators.
11976       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11977       for pkg in $enableval; do
11978         IFS="$lt_save_ifs"
11979         if test "X$pkg" = "X$p"; then
11980           enable_static=yes
11981         fi
11982       done
11983       IFS="$lt_save_ifs"
11984       ;;
11985     esac
11986 else
11987   enable_static=yes
11988 fi
11989
11990
11991 # Check whether --enable-fast-install was given.
11992 if test "${enable_fast_install+set}" = set; then
11993   enableval=$enable_fast_install; p=${PACKAGE-default}
11994     case $enableval in
11995     yes) enable_fast_install=yes ;;
11996     no) enable_fast_install=no ;;
11997     *)
11998       enable_fast_install=no
11999       # Look at the argument we got.  We use all the common list separators.
12000       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001       for pkg in $enableval; do
12002         IFS="$lt_save_ifs"
12003         if test "X$pkg" = "X$p"; then
12004           enable_fast_install=yes
12005         fi
12006       done
12007       IFS="$lt_save_ifs"
12008       ;;
12009     esac
12010 else
12011   enable_fast_install=yes
12012 fi
12013
12014
12015 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12016 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12017 if test "${lt_cv_path_SED+set}" = set; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   # Loop through the user's path and test for sed and gsed.
12021 # Then use that list of sed's as ones to test for truncation.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027   for lt_ac_prog in sed gsed; do
12028     for ac_exec_ext in '' $ac_executable_extensions; do
12029       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12030         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12031       fi
12032     done
12033   done
12034 done
12035 lt_ac_max=0
12036 lt_ac_count=0
12037 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12038 # along with /bin/sed that truncates output.
12039 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12040   test ! -f $lt_ac_sed && continue
12041   cat /dev/null > conftest.in
12042   lt_ac_count=0
12043   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12044   # Check for GNU sed and select it if it is found.
12045   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12046     lt_cv_path_SED=$lt_ac_sed
12047     break
12048   fi
12049   while true; do
12050     cat conftest.in conftest.in >conftest.tmp
12051     mv conftest.tmp conftest.in
12052     cp conftest.in conftest.nl
12053     echo >>conftest.nl
12054     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12055     cmp -s conftest.out conftest.nl || break
12056     # 10000 chars as input seems more than enough
12057     test $lt_ac_count -gt 10 && break
12058     lt_ac_count=`expr $lt_ac_count + 1`
12059     if test $lt_ac_count -gt $lt_ac_max; then
12060       lt_ac_max=$lt_ac_count
12061       lt_cv_path_SED=$lt_ac_sed
12062     fi
12063   done
12064 done
12065
12066 fi
12067
12068 SED=$lt_cv_path_SED
12069 { echo "$as_me:$LINENO: result: $SED" >&5
12070 echo "${ECHO_T}$SED" >&6; }
12071
12072
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then
12075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12076 else
12077   with_gnu_ld=no
12078 fi
12079
12080 ac_prog=ld
12081 if test "$GCC" = yes; then
12082   # Check if gcc -print-prog-name=ld gives a path.
12083   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12084 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12085   case $host in
12086   *-*-mingw*)
12087     # gcc leaves a trailing carriage return which upsets mingw
12088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12089   *)
12090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12091   esac
12092   case $ac_prog in
12093     # Accept absolute paths.
12094     [\\/]* | ?:[\\/]*)
12095       re_direlt='/[^/][^/]*/\.\./'
12096       # Canonicalize the pathname of ld
12097       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12098       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12099         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12100       done
12101       test -z "$LD" && LD="$ac_prog"
12102       ;;
12103   "")
12104     # If it fails, then pretend we aren't using GCC.
12105     ac_prog=ld
12106     ;;
12107   *)
12108     # If it is relative, then search for the first ld in PATH.
12109     with_gnu_ld=unknown
12110     ;;
12111   esac
12112 elif test "$with_gnu_ld" = yes; then
12113   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12115 else
12116   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12118 fi
12119 if test "${lt_cv_path_LD+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   if test -z "$LD"; then
12123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124   for ac_dir in $PATH; do
12125     IFS="$lt_save_ifs"
12126     test -z "$ac_dir" && ac_dir=.
12127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128       lt_cv_path_LD="$ac_dir/$ac_prog"
12129       # Check to see if the program is GNU ld.  I'd rather use --version,
12130       # but apparently some variants of GNU ld only accept -v.
12131       # Break only if it was the GNU/non-GNU ld that we prefer.
12132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133       *GNU* | *'with BFD'*)
12134         test "$with_gnu_ld" != no && break
12135         ;;
12136       *)
12137         test "$with_gnu_ld" != yes && break
12138         ;;
12139       esac
12140     fi
12141   done
12142   IFS="$lt_save_ifs"
12143 else
12144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12145 fi
12146 fi
12147
12148 LD="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150   { echo "$as_me:$LINENO: result: $LD" >&5
12151 echo "${ECHO_T}$LD" >&6; }
12152 else
12153   { echo "$as_me:$LINENO: result: no" >&5
12154 echo "${ECHO_T}no" >&6; }
12155 fi
12156 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12157 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12158    { (exit 1); exit 1; }; }
12159 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12160 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12161 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12165 case `$LD -v 2>&1 </dev/null` in
12166 *GNU* | *'with BFD'*)
12167   lt_cv_prog_gnu_ld=yes
12168   ;;
12169 *)
12170   lt_cv_prog_gnu_ld=no
12171   ;;
12172 esac
12173 fi
12174 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12175 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12176 with_gnu_ld=$lt_cv_prog_gnu_ld
12177
12178
12179 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12180 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12181 if test "${lt_cv_ld_reload_flag+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   lt_cv_ld_reload_flag='-r'
12185 fi
12186 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12187 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12188 reload_flag=$lt_cv_ld_reload_flag
12189 case $reload_flag in
12190 "" | " "*) ;;
12191 *) reload_flag=" $reload_flag" ;;
12192 esac
12193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12194 case $host_os in
12195   darwin*)
12196     if test "$GCC" = yes; then
12197       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12198     else
12199       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12200     fi
12201     ;;
12202 esac
12203
12204 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12205 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12206 if test "${lt_cv_deplibs_check_method+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   lt_cv_file_magic_cmd='$MAGIC_CMD'
12210 lt_cv_file_magic_test_file=
12211 lt_cv_deplibs_check_method='unknown'
12212 # Need to set the preceding variable on all platforms that support
12213 # interlibrary dependencies.
12214 # 'none' -- dependencies not supported.
12215 # `unknown' -- same as none, but documents that we really don't know.
12216 # 'pass_all' -- all dependencies passed with no checks.
12217 # 'test_compile' -- check by making test program.
12218 # 'file_magic [[regex]]' -- check by looking for files in library path
12219 # which responds to the $file_magic_cmd with a given extended regex.
12220 # If you have `file' or equivalent on your system and you're not sure
12221 # whether `pass_all' will *always* work, you probably want this one.
12222
12223 case $host_os in
12224 aix4* | aix5*)
12225   lt_cv_deplibs_check_method=pass_all
12226   ;;
12227
12228 beos*)
12229   lt_cv_deplibs_check_method=pass_all
12230   ;;
12231
12232 bsdi[45]*)
12233   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12234   lt_cv_file_magic_cmd='/usr/bin/file -L'
12235   lt_cv_file_magic_test_file=/shlib/libc.so
12236   ;;
12237
12238 cygwin*)
12239   # func_win32_libid is a shell function defined in ltmain.sh
12240   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12241   lt_cv_file_magic_cmd='func_win32_libid'
12242   ;;
12243
12244 mingw* | pw32*)
12245   # Base MSYS/MinGW do not provide the 'file' command needed by
12246   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12247   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12248   lt_cv_file_magic_cmd='$OBJDUMP -f'
12249   ;;
12250
12251 darwin* | rhapsody*)
12252   lt_cv_deplibs_check_method=pass_all
12253   ;;
12254
12255 freebsd* | kfreebsd*-gnu | dragonfly*)
12256   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12257     case $host_cpu in
12258     i*86 )
12259       # Not sure whether the presence of OpenBSD here was a mistake.
12260       # Let's accept both of them until this is cleared up.
12261       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12262       lt_cv_file_magic_cmd=/usr/bin/file
12263       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12264       ;;
12265     esac
12266   else
12267     lt_cv_deplibs_check_method=pass_all
12268   fi
12269   ;;
12270
12271 gnu*)
12272   lt_cv_deplibs_check_method=pass_all
12273   ;;
12274
12275 hpux10.20* | hpux11*)
12276   lt_cv_file_magic_cmd=/usr/bin/file
12277   case $host_cpu in
12278   ia64*)
12279     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12280     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12281     ;;
12282   hppa*64*)
12283     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]'
12284     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12285     ;;
12286   *)
12287     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12288     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12289     ;;
12290   esac
12291   ;;
12292
12293 interix3*)
12294   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12295   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12296   ;;
12297
12298 irix5* | irix6* | nonstopux*)
12299   case $LD in
12300   *-32|*"-32 ") libmagic=32-bit;;
12301   *-n32|*"-n32 ") libmagic=N32;;
12302   *-64|*"-64 ") libmagic=64-bit;;
12303   *) libmagic=never-match;;
12304   esac
12305   lt_cv_deplibs_check_method=pass_all
12306   ;;
12307
12308 # This must be Linux ELF.
12309 linux*)
12310   lt_cv_deplibs_check_method=pass_all
12311   ;;
12312
12313 netbsd*)
12314   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12315     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12316   else
12317     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12318   fi
12319   ;;
12320
12321 newos6*)
12322   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12323   lt_cv_file_magic_cmd=/usr/bin/file
12324   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12325   ;;
12326
12327 nto-qnx*)
12328   lt_cv_deplibs_check_method=unknown
12329   ;;
12330
12331 openbsd*)
12332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12333     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12334   else
12335     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12336   fi
12337   ;;
12338
12339 osf3* | osf4* | osf5*)
12340   lt_cv_deplibs_check_method=pass_all
12341   ;;
12342
12343 solaris*)
12344   lt_cv_deplibs_check_method=pass_all
12345   ;;
12346
12347 sysv4 | sysv4.3*)
12348   case $host_vendor in
12349   motorola)
12350     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]'
12351     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12352     ;;
12353   ncr)
12354     lt_cv_deplibs_check_method=pass_all
12355     ;;
12356   sequent)
12357     lt_cv_file_magic_cmd='/bin/file'
12358     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12359     ;;
12360   sni)
12361     lt_cv_file_magic_cmd='/bin/file'
12362     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12363     lt_cv_file_magic_test_file=/lib/libc.so
12364     ;;
12365   siemens)
12366     lt_cv_deplibs_check_method=pass_all
12367     ;;
12368   pc)
12369     lt_cv_deplibs_check_method=pass_all
12370     ;;
12371   esac
12372   ;;
12373
12374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375   lt_cv_deplibs_check_method=pass_all
12376   ;;
12377 esac
12378
12379 fi
12380 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12381 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12382 file_magic_cmd=$lt_cv_file_magic_cmd
12383 deplibs_check_method=$lt_cv_deplibs_check_method
12384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12385
12386
12387
12388 # If no C compiler was specified, use CC.
12389 LTCC=${LTCC-"$CC"}
12390
12391 # If no C compiler flags were specified, use CFLAGS.
12392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12393
12394 # Allow CC to be a program name with arguments.
12395 compiler=$CC
12396
12397 # Check whether --enable-libtool-lock was given.
12398 if test "${enable_libtool_lock+set}" = set; then
12399   enableval=$enable_libtool_lock;
12400 fi
12401
12402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12403
12404 # Some flags need to be propagated to the compiler or linker for good
12405 # libtool support.
12406 case $host in
12407 ia64-*-hpux*)
12408   # Find out which ABI we are using.
12409   echo 'int i;' > conftest.$ac_ext
12410   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411   (eval $ac_compile) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; then
12415     case `/usr/bin/file conftest.$ac_objext` in
12416     *ELF-32*)
12417       HPUX_IA64_MODE="32"
12418       ;;
12419     *ELF-64*)
12420       HPUX_IA64_MODE="64"
12421       ;;
12422     esac
12423   fi
12424   rm -rf conftest*
12425   ;;
12426 *-*-irix6*)
12427   # Find out which ABI we are using.
12428   echo '#line 12428 "configure"' > conftest.$ac_ext
12429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430   (eval $ac_compile) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; then
12434    if test "$lt_cv_prog_gnu_ld" = yes; then
12435     case `/usr/bin/file conftest.$ac_objext` in
12436     *32-bit*)
12437       LD="${LD-ld} -melf32bsmip"
12438       ;;
12439     *N32*)
12440       LD="${LD-ld} -melf32bmipn32"
12441       ;;
12442     *64-bit*)
12443       LD="${LD-ld} -melf64bmip"
12444       ;;
12445     esac
12446    else
12447     case `/usr/bin/file conftest.$ac_objext` in
12448     *32-bit*)
12449       LD="${LD-ld} -32"
12450       ;;
12451     *N32*)
12452       LD="${LD-ld} -n32"
12453       ;;
12454     *64-bit*)
12455       LD="${LD-ld} -64"
12456       ;;
12457     esac
12458    fi
12459   fi
12460   rm -rf conftest*
12461   ;;
12462
12463 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12464   # Find out which ABI we are using.
12465   echo 'int i;' > conftest.$ac_ext
12466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; then
12471     case `/usr/bin/file conftest.o` in
12472     *32-bit*)
12473       case $host in
12474         x86_64-*linux*)
12475           LD="${LD-ld} -m elf_i386"
12476           ;;
12477         ppc64-*linux*|powerpc64-*linux*)
12478           LD="${LD-ld} -m elf32ppclinux"
12479           ;;
12480         s390x-*linux*)
12481           LD="${LD-ld} -m elf_s390"
12482           ;;
12483         sparc64-*linux*)
12484           LD="${LD-ld} -m elf32_sparc"
12485           ;;
12486       esac
12487       ;;
12488     *64-bit*)
12489       case $host in
12490         x86_64-*linux*)
12491           LD="${LD-ld} -m elf_x86_64"
12492           ;;
12493         ppc*-*linux*|powerpc*-*linux*)
12494           LD="${LD-ld} -m elf64ppc"
12495           ;;
12496         s390*-*linux*)
12497           LD="${LD-ld} -m elf64_s390"
12498           ;;
12499         sparc*-*linux*)
12500           LD="${LD-ld} -m elf64_sparc"
12501           ;;
12502       esac
12503       ;;
12504     esac
12505   fi
12506   rm -rf conftest*
12507   ;;
12508
12509 *-*-sco3.2v5*)
12510   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12511   SAVE_CFLAGS="$CFLAGS"
12512   CFLAGS="$CFLAGS -belf"
12513   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12514 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12515 if test "${lt_cv_cc_needs_belf+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_ext=c
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523
12524      cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530
12531 int
12532 main ()
12533 {
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_link") 2>conftest.er1
12547   ac_status=$?
12548   grep -v '^ *+' conftest.er1 >conftest.err
12549   rm -f conftest.er1
12550   cat conftest.err >&5
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } &&
12553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12554   { (case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_try") 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; } &&
12563          { ac_try='test -s conftest$ac_exeext'
12564   { (case "(($ac_try" in
12565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566   *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569   (eval "$ac_try") 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   lt_cv_cc_needs_belf=yes
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578         lt_cv_cc_needs_belf=no
12579 fi
12580
12581 rm -f core conftest.err conftest.$ac_objext \
12582       conftest$ac_exeext conftest.$ac_ext
12583      ac_ext=c
12584 ac_cpp='$CPP $CPPFLAGS'
12585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589 fi
12590 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12591 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12592   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12593     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12594     CFLAGS="$SAVE_CFLAGS"
12595   fi
12596   ;;
12597 sparc*-*solaris*)
12598   # Find out which ABI we are using.
12599   echo 'int i;' > conftest.$ac_ext
12600   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601   (eval $ac_compile) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; then
12605     case `/usr/bin/file conftest.o` in
12606     *64-bit*)
12607       case $lt_cv_prog_gnu_ld in
12608       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12609       *)    LD="${LD-ld} -64" ;;
12610       esac
12611       ;;
12612     esac
12613   fi
12614   rm -rf conftest*
12615   ;;
12616
12617
12618 esac
12619
12620 need_locks="$enable_libtool_lock"
12621
12622
12623
12624
12625 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12626     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12627     (test "X$CXX" != "Xg++"))) ; then
12628   ac_ext=cpp
12629 ac_cpp='$CXXCPP $CPPFLAGS'
12630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12633 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12634 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12635 if test -z "$CXXCPP"; then
12636   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12637   echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639       # Double quotes because CXXCPP needs to be expanded
12640     for CXXCPP in "$CXX -E" "/lib/cpp"
12641     do
12642       ac_preproc_ok=false
12643 for ac_cxx_preproc_warn_flag in '' yes
12644 do
12645   # Use a header file that comes with gcc, so configuring glibc
12646   # with a fresh cross-compiler works.
12647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12648   # <limits.h> exists even on freestanding compilers.
12649   # On the NeXT, cc -E runs the code through the compiler's parser,
12650   # not just through cpp. "Syntax error" is here to catch this case.
12651   cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657 #ifdef __STDC__
12658 # include <limits.h>
12659 #else
12660 # include <assert.h>
12661 #endif
12662                      Syntax error
12663 _ACEOF
12664 if { (ac_try="$ac_cpp conftest.$ac_ext"
12665 case "(($ac_try" in
12666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667   *) ac_try_echo=$ac_try;;
12668 esac
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12671   ac_status=$?
12672   grep -v '^ *+' conftest.er1 >conftest.err
12673   rm -f conftest.er1
12674   cat conftest.err >&5
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } >/dev/null; then
12677   if test -s conftest.err; then
12678     ac_cpp_err=$ac_cxx_preproc_warn_flag
12679     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12680   else
12681     ac_cpp_err=
12682   fi
12683 else
12684   ac_cpp_err=yes
12685 fi
12686 if test -z "$ac_cpp_err"; then
12687   :
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692   # Broken: fails on valid input.
12693 continue
12694 fi
12695
12696 rm -f conftest.err conftest.$ac_ext
12697
12698   # OK, works on sane cases.  Now check whether nonexistent headers
12699   # can be detected and how.
12700   cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706 #include <ac_nonexistent.h>
12707 _ACEOF
12708 if { (ac_try="$ac_cpp conftest.$ac_ext"
12709 case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } >/dev/null; then
12721   if test -s conftest.err; then
12722     ac_cpp_err=$ac_cxx_preproc_warn_flag
12723     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12724   else
12725     ac_cpp_err=
12726   fi
12727 else
12728   ac_cpp_err=yes
12729 fi
12730 if test -z "$ac_cpp_err"; then
12731   # Broken: success on invalid input.
12732 continue
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737   # Passes both tests.
12738 ac_preproc_ok=:
12739 break
12740 fi
12741
12742 rm -f conftest.err conftest.$ac_ext
12743
12744 done
12745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12746 rm -f conftest.err conftest.$ac_ext
12747 if $ac_preproc_ok; then
12748   break
12749 fi
12750
12751     done
12752     ac_cv_prog_CXXCPP=$CXXCPP
12753
12754 fi
12755   CXXCPP=$ac_cv_prog_CXXCPP
12756 else
12757   ac_cv_prog_CXXCPP=$CXXCPP
12758 fi
12759 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12760 echo "${ECHO_T}$CXXCPP" >&6; }
12761 ac_preproc_ok=false
12762 for ac_cxx_preproc_warn_flag in '' yes
12763 do
12764   # Use a header file that comes with gcc, so configuring glibc
12765   # with a fresh cross-compiler works.
12766   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12767   # <limits.h> exists even on freestanding compilers.
12768   # On the NeXT, cc -E runs the code through the compiler's parser,
12769   # not just through cpp. "Syntax error" is here to catch this case.
12770   cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #ifdef __STDC__
12777 # include <limits.h>
12778 #else
12779 # include <assert.h>
12780 #endif
12781                      Syntax error
12782 _ACEOF
12783 if { (ac_try="$ac_cpp conftest.$ac_ext"
12784 case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12790   ac_status=$?
12791   grep -v '^ *+' conftest.er1 >conftest.err
12792   rm -f conftest.er1
12793   cat conftest.err >&5
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } >/dev/null; then
12796   if test -s conftest.err; then
12797     ac_cpp_err=$ac_cxx_preproc_warn_flag
12798     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12799   else
12800     ac_cpp_err=
12801   fi
12802 else
12803   ac_cpp_err=yes
12804 fi
12805 if test -z "$ac_cpp_err"; then
12806   :
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811   # Broken: fails on valid input.
12812 continue
12813 fi
12814
12815 rm -f conftest.err conftest.$ac_ext
12816
12817   # OK, works on sane cases.  Now check whether nonexistent headers
12818   # can be detected and how.
12819   cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 #include <ac_nonexistent.h>
12826 _ACEOF
12827 if { (ac_try="$ac_cpp conftest.$ac_ext"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } >/dev/null; then
12840   if test -s conftest.err; then
12841     ac_cpp_err=$ac_cxx_preproc_warn_flag
12842     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12843   else
12844     ac_cpp_err=
12845   fi
12846 else
12847   ac_cpp_err=yes
12848 fi
12849 if test -z "$ac_cpp_err"; then
12850   # Broken: success on invalid input.
12851 continue
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856   # Passes both tests.
12857 ac_preproc_ok=:
12858 break
12859 fi
12860
12861 rm -f conftest.err conftest.$ac_ext
12862
12863 done
12864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12865 rm -f conftest.err conftest.$ac_ext
12866 if $ac_preproc_ok; then
12867   :
12868 else
12869   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12870 See \`config.log' for more details." >&5
12871 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12872 See \`config.log' for more details." >&2;}
12873    { (exit 1); exit 1; }; }
12874 fi
12875
12876 ac_ext=cpp
12877 ac_cpp='$CXXCPP $CPPFLAGS'
12878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881
12882 fi
12883
12884
12885 ac_ext=f
12886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12889 if test -n "$ac_tool_prefix"; then
12890   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12891   do
12892     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12896 if test "${ac_cv_prog_F77+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   if test -n "$F77"; then
12900   ac_cv_prog_F77="$F77" # Let the user override the test.
12901 else
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12904 do
12905   IFS=$as_save_IFS
12906   test -z "$as_dir" && as_dir=.
12907   for ac_exec_ext in '' $ac_executable_extensions; do
12908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12909     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12911     break 2
12912   fi
12913 done
12914 done
12915 IFS=$as_save_IFS
12916
12917 fi
12918 fi
12919 F77=$ac_cv_prog_F77
12920 if test -n "$F77"; then
12921   { echo "$as_me:$LINENO: result: $F77" >&5
12922 echo "${ECHO_T}$F77" >&6; }
12923 else
12924   { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12926 fi
12927
12928
12929     test -n "$F77" && break
12930   done
12931 fi
12932 if test -z "$F77"; then
12933   ac_ct_F77=$F77
12934   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12935 do
12936   # Extract the first word of "$ac_prog", so it can be a program name with args.
12937 set dummy $ac_prog; ac_word=$2
12938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12940 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   if test -n "$ac_ct_F77"; then
12944   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12948 do
12949   IFS=$as_save_IFS
12950   test -z "$as_dir" && as_dir=.
12951   for ac_exec_ext in '' $ac_executable_extensions; do
12952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12953     ac_cv_prog_ac_ct_F77="$ac_prog"
12954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12955     break 2
12956   fi
12957 done
12958 done
12959 IFS=$as_save_IFS
12960
12961 fi
12962 fi
12963 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12964 if test -n "$ac_ct_F77"; then
12965   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12966 echo "${ECHO_T}$ac_ct_F77" >&6; }
12967 else
12968   { echo "$as_me:$LINENO: result: no" >&5
12969 echo "${ECHO_T}no" >&6; }
12970 fi
12971
12972
12973   test -n "$ac_ct_F77" && break
12974 done
12975
12976   if test "x$ac_ct_F77" = x; then
12977     F77=""
12978   else
12979     case $cross_compiling:$ac_tool_warned in
12980 yes:)
12981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12982 whose name does not start with the host triplet.  If you think this
12983 configuration is useful to you, please write to autoconf@gnu.org." >&5
12984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12985 whose name does not start with the host triplet.  If you think this
12986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12987 ac_tool_warned=yes ;;
12988 esac
12989     F77=$ac_ct_F77
12990   fi
12991 fi
12992
12993
12994 # Provide some information about the compiler.
12995 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12996 ac_compiler=`set X $ac_compile; echo $2`
12997 { (ac_try="$ac_compiler --version >&5"
12998 case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_compiler --version >&5") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }
13007 { (ac_try="$ac_compiler -v >&5"
13008 case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_compiler -v >&5") 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }
13017 { (ac_try="$ac_compiler -V >&5"
13018 case "(($ac_try" in
13019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020   *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023   (eval "$ac_compiler -V >&5") 2>&5
13024   ac_status=$?
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); }
13027 rm -f a.out
13028
13029 # If we don't use `.F' as extension, the preprocessor is not run on the
13030 # input file.  (Note that this only needs to work for GNU compilers.)
13031 ac_save_ext=$ac_ext
13032 ac_ext=F
13033 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13034 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13035 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038   cat >conftest.$ac_ext <<_ACEOF
13039       program main
13040 #ifndef __GNUC__
13041        choke me
13042 #endif
13043
13044       end
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_compile") 2>conftest.er1
13054   ac_status=$?
13055   grep -v '^ *+' conftest.er1 >conftest.err
13056   rm -f conftest.er1
13057   cat conftest.err >&5
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13061   { (case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_try") 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; } &&
13070          { ac_try='test -s conftest.$ac_objext'
13071   { (case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_try") 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080   ac_compiler_gnu=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085         ac_compiler_gnu=no
13086 fi
13087
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13090
13091 fi
13092 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13093 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13094 ac_ext=$ac_save_ext
13095 ac_test_FFLAGS=${FFLAGS+set}
13096 ac_save_FFLAGS=$FFLAGS
13097 FFLAGS=
13098 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13099 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13100 if test "${ac_cv_prog_f77_g+set}" = set; then
13101   echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103   FFLAGS=-g
13104 cat >conftest.$ac_ext <<_ACEOF
13105       program main
13106
13107       end
13108 _ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
13111 case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_compile") 2>conftest.er1
13117   ac_status=$?
13118   grep -v '^ *+' conftest.er1 >conftest.err
13119   rm -f conftest.er1
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13124   { (case "(($ac_try" in
13125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126   *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129   (eval "$ac_try") 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; } &&
13133          { ac_try='test -s conftest.$ac_objext'
13134   { (case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_try") 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); }; }; then
13143   ac_cv_prog_f77_g=yes
13144 else
13145   echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148         ac_cv_prog_f77_g=no
13149 fi
13150
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152
13153 fi
13154 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13155 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13156 if test "$ac_test_FFLAGS" = set; then
13157   FFLAGS=$ac_save_FFLAGS
13158 elif test $ac_cv_prog_f77_g = yes; then
13159   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13160     FFLAGS="-g -O2"
13161   else
13162     FFLAGS="-g"
13163   fi
13164 else
13165   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13166     FFLAGS="-O2"
13167   else
13168     FFLAGS=
13169   fi
13170 fi
13171
13172 G77=`test $ac_compiler_gnu = yes && echo yes`
13173 ac_ext=c
13174 ac_cpp='$CPP $CPPFLAGS'
13175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
13179
13180
13181 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13182
13183 # find the maximum length of command line arguments
13184 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13185 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189     i=0
13190   teststring="ABCD"
13191
13192   case $build_os in
13193   msdosdjgpp*)
13194     # On DJGPP, this test can blow up pretty badly due to problems in libc
13195     # (any single argument exceeding 2000 bytes causes a buffer overrun
13196     # during glob expansion).  Even if it were fixed, the result of this
13197     # check would be larger than it should be.
13198     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13199     ;;
13200
13201   gnu*)
13202     # Under GNU Hurd, this test is not required because there is
13203     # no limit to the length of command line arguments.
13204     # Libtool will interpret -1 as no limit whatsoever
13205     lt_cv_sys_max_cmd_len=-1;
13206     ;;
13207
13208   cygwin* | mingw*)
13209     # On Win9x/ME, this test blows up -- it succeeds, but takes
13210     # about 5 minutes as the teststring grows exponentially.
13211     # Worse, since 9x/ME are not pre-emptively multitasking,
13212     # you end up with a "frozen" computer, even though with patience
13213     # the test eventually succeeds (with a max line length of 256k).
13214     # Instead, let's just punt: use the minimum linelength reported by
13215     # all of the supported platforms: 8192 (on NT/2K/XP).
13216     lt_cv_sys_max_cmd_len=8192;
13217     ;;
13218
13219   amigaos*)
13220     # On AmigaOS with pdksh, this test takes hours, literally.
13221     # So we just punt and use a minimum line length of 8192.
13222     lt_cv_sys_max_cmd_len=8192;
13223     ;;
13224
13225   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13226     # This has been around since 386BSD, at least.  Likely further.
13227     if test -x /sbin/sysctl; then
13228       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13229     elif test -x /usr/sbin/sysctl; then
13230       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13231     else
13232       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13233     fi
13234     # And add a safety zone
13235     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13236     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13237     ;;
13238
13239   interix*)
13240     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13241     lt_cv_sys_max_cmd_len=196608
13242     ;;
13243
13244   osf*)
13245     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13246     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13247     # nice to cause kernel panics so lets avoid the loop below.
13248     # First set a reasonable default.
13249     lt_cv_sys_max_cmd_len=16384
13250     #
13251     if test -x /sbin/sysconfig; then
13252       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13253         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13254       esac
13255     fi
13256     ;;
13257   sco3.2v5*)
13258     lt_cv_sys_max_cmd_len=102400
13259     ;;
13260   sysv5* | sco5v6* | sysv4.2uw2*)
13261     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13262     if test -n "$kargmax"; then
13263       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13264     else
13265       lt_cv_sys_max_cmd_len=32768
13266     fi
13267     ;;
13268   *)
13269     # If test is not a shell built-in, we'll probably end up computing a
13270     # maximum length that is only half of the actual maximum length, but
13271     # we can't tell.
13272     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13273     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13274                = "XX$teststring") >/dev/null 2>&1 &&
13275             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13276             lt_cv_sys_max_cmd_len=$new_result &&
13277             test $i != 17 # 1/2 MB should be enough
13278     do
13279       i=`expr $i + 1`
13280       teststring=$teststring$teststring
13281     done
13282     teststring=
13283     # Add a significant safety factor because C++ compilers can tack on massive
13284     # amounts of additional arguments before passing them to the linker.
13285     # It appears as though 1/2 is a usable value.
13286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13287     ;;
13288   esac
13289
13290 fi
13291
13292 if test -n $lt_cv_sys_max_cmd_len ; then
13293   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13295 else
13296   { echo "$as_me:$LINENO: result: none" >&5
13297 echo "${ECHO_T}none" >&6; }
13298 fi
13299
13300
13301
13302
13303 # Check for command to grab the raw symbol name followed by C symbol from nm.
13304 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13305 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309
13310 # These are sane defaults that work on at least a few old systems.
13311 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13312
13313 # Character class describing NM global symbol codes.
13314 symcode='[BCDEGRST]'
13315
13316 # Regexp to match symbols that can be accessed directly from C.
13317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13318
13319 # Transform an extracted symbol line into a proper C declaration
13320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13321
13322 # Transform an extracted symbol line into symbol name and symbol address
13323 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'"
13324
13325 # Define system-specific variables.
13326 case $host_os in
13327 aix*)
13328   symcode='[BCDT]'
13329   ;;
13330 cygwin* | mingw* | pw32*)
13331   symcode='[ABCDGISTW]'
13332   ;;
13333 hpux*) # Its linker distinguishes data from code symbols
13334   if test "$host_cpu" = ia64; then
13335     symcode='[ABCDEGRST]'
13336   fi
13337   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13338   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'"
13339   ;;
13340 linux*)
13341   if test "$host_cpu" = ia64; then
13342     symcode='[ABCDGIRSTW]'
13343     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13344     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'"
13345   fi
13346   ;;
13347 irix* | nonstopux*)
13348   symcode='[BCDEGRST]'
13349   ;;
13350 osf*)
13351   symcode='[BCDEGQRST]'
13352   ;;
13353 solaris*)
13354   symcode='[BDRT]'
13355   ;;
13356 sco3.2v5*)
13357   symcode='[DT]'
13358   ;;
13359 sysv4.2uw2*)
13360   symcode='[DT]'
13361   ;;
13362 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13363   symcode='[ABDT]'
13364   ;;
13365 sysv4)
13366   symcode='[DFNSTU]'
13367   ;;
13368 esac
13369
13370 # Handle CRLF in mingw tool chain
13371 opt_cr=
13372 case $build_os in
13373 mingw*)
13374   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13375   ;;
13376 esac
13377
13378 # If we're using GNU nm, then use its standard symbol codes.
13379 case `$NM -V 2>&1` in
13380 *GNU* | *'with BFD'*)
13381   symcode='[ABCDGIRSTW]' ;;
13382 esac
13383
13384 # Try without a prefix undercore, then with it.
13385 for ac_symprfx in "" "_"; do
13386
13387   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13388   symxfrm="\\1 $ac_symprfx\\2 \\2"
13389
13390   # Write the raw and C identifiers.
13391   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13392
13393   # Check to see that the pipe works correctly.
13394   pipe_works=no
13395
13396   rm -f conftest*
13397   cat > conftest.$ac_ext <<EOF
13398 #ifdef __cplusplus
13399 extern "C" {
13400 #endif
13401 char nm_test_var;
13402 void nm_test_func(){}
13403 #ifdef __cplusplus
13404 }
13405 #endif
13406 int main(){nm_test_var='a';nm_test_func();return(0);}
13407 EOF
13408
13409   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410   (eval $ac_compile) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; then
13414     # Now try to grab the symbols.
13415     nlist=conftest.nm
13416     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13417   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } && test -s "$nlist"; then
13421       # Try sorting and uniquifying the output.
13422       if sort "$nlist" | uniq > "$nlist"T; then
13423         mv -f "$nlist"T "$nlist"
13424       else
13425         rm -f "$nlist"T
13426       fi
13427
13428       # Make sure that we snagged all the symbols we need.
13429       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13430         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13431           cat <<EOF > conftest.$ac_ext
13432 #ifdef __cplusplus
13433 extern "C" {
13434 #endif
13435
13436 EOF
13437           # Now generate the symbol file.
13438           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13439
13440           cat <<EOF >> conftest.$ac_ext
13441 #if defined (__STDC__) && __STDC__
13442 # define lt_ptr_t void *
13443 #else
13444 # define lt_ptr_t char *
13445 # define const
13446 #endif
13447
13448 /* The mapping between symbol names and symbols. */
13449 const struct {
13450   const char *name;
13451   lt_ptr_t address;
13452 }
13453 lt_preloaded_symbols[] =
13454 {
13455 EOF
13456           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13457           cat <<\EOF >> conftest.$ac_ext
13458   {0, (lt_ptr_t) 0}
13459 };
13460
13461 #ifdef __cplusplus
13462 }
13463 #endif
13464 EOF
13465           # Now try linking the two files.
13466           mv conftest.$ac_objext conftstm.$ac_objext
13467           lt_save_LIBS="$LIBS"
13468           lt_save_CFLAGS="$CFLAGS"
13469           LIBS="conftstm.$ac_objext"
13470           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13471           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472   (eval $ac_link) 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13476             pipe_works=yes
13477           fi
13478           LIBS="$lt_save_LIBS"
13479           CFLAGS="$lt_save_CFLAGS"
13480         else
13481           echo "cannot find nm_test_func in $nlist" >&5
13482         fi
13483       else
13484         echo "cannot find nm_test_var in $nlist" >&5
13485       fi
13486     else
13487       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13488     fi
13489   else
13490     echo "$progname: failed program was:" >&5
13491     cat conftest.$ac_ext >&5
13492   fi
13493   rm -f conftest* conftst*
13494
13495   # Do not use the global_symbol_pipe unless it works.
13496   if test "$pipe_works" = yes; then
13497     break
13498   else
13499     lt_cv_sys_global_symbol_pipe=
13500   fi
13501 done
13502
13503 fi
13504
13505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13506   lt_cv_sys_global_symbol_to_cdecl=
13507 fi
13508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13509   { echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6; }
13511 else
13512   { echo "$as_me:$LINENO: result: ok" >&5
13513 echo "${ECHO_T}ok" >&6; }
13514 fi
13515
13516 { echo "$as_me:$LINENO: checking for objdir" >&5
13517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13518 if test "${lt_cv_objdir+set}" = set; then
13519   echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521   rm -f .libs 2>/dev/null
13522 mkdir .libs 2>/dev/null
13523 if test -d .libs; then
13524   lt_cv_objdir=.libs
13525 else
13526   # MS-DOS does not allow filenames that begin with a dot.
13527   lt_cv_objdir=_libs
13528 fi
13529 rmdir .libs 2>/dev/null
13530 fi
13531 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13532 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13533 objdir=$lt_cv_objdir
13534
13535
13536
13537
13538
13539 case $host_os in
13540 aix3*)
13541   # AIX sometimes has problems with the GCC collect2 program.  For some
13542   # reason, if we set the COLLECT_NAMES environment variable, the problems
13543   # vanish in a puff of smoke.
13544   if test "X${COLLECT_NAMES+set}" != Xset; then
13545     COLLECT_NAMES=
13546     export COLLECT_NAMES
13547   fi
13548   ;;
13549 esac
13550
13551 # Sed substitution that helps us do robust quoting.  It backslashifies
13552 # metacharacters that are still active within double-quoted strings.
13553 Xsed='sed -e 1s/^X//'
13554 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13555
13556 # Same as above, but do not quote variable references.
13557 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13558
13559 # Sed substitution to delay expansion of an escaped shell variable in a
13560 # double_quote_subst'ed string.
13561 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13562
13563 # Sed substitution to avoid accidental globbing in evaled expressions
13564 no_glob_subst='s/\*/\\\*/g'
13565
13566 # Constants:
13567 rm="rm -f"
13568
13569 # Global variables:
13570 default_ofile=mklib
13571 can_build_shared=yes
13572
13573 # All known linkers require a `.a' archive for static linking (except MSVC,
13574 # which needs '.lib').
13575 libext=a
13576 ltmain="$ac_aux_dir/ltmain.sh"
13577 ofile="$default_ofile"
13578 with_gnu_ld="$lt_cv_prog_gnu_ld"
13579
13580 if test -n "$ac_tool_prefix"; then
13581   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13582 set dummy ${ac_tool_prefix}ar; ac_word=$2
13583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13585 if test "${ac_cv_prog_AR+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   if test -n "$AR"; then
13589   ac_cv_prog_AR="$AR" # Let the user override the test.
13590 else
13591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592 for as_dir in $PATH
13593 do
13594   IFS=$as_save_IFS
13595   test -z "$as_dir" && as_dir=.
13596   for ac_exec_ext in '' $ac_executable_extensions; do
13597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13598     ac_cv_prog_AR="${ac_tool_prefix}ar"
13599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600     break 2
13601   fi
13602 done
13603 done
13604 IFS=$as_save_IFS
13605
13606 fi
13607 fi
13608 AR=$ac_cv_prog_AR
13609 if test -n "$AR"; then
13610   { echo "$as_me:$LINENO: result: $AR" >&5
13611 echo "${ECHO_T}$AR" >&6; }
13612 else
13613   { echo "$as_me:$LINENO: result: no" >&5
13614 echo "${ECHO_T}no" >&6; }
13615 fi
13616
13617
13618 fi
13619 if test -z "$ac_cv_prog_AR"; then
13620   ac_ct_AR=$AR
13621   # Extract the first word of "ar", so it can be a program name with args.
13622 set dummy ar; ac_word=$2
13623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   if test -n "$ac_ct_AR"; then
13629   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13630 else
13631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632 for as_dir in $PATH
13633 do
13634   IFS=$as_save_IFS
13635   test -z "$as_dir" && as_dir=.
13636   for ac_exec_ext in '' $ac_executable_extensions; do
13637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13638     ac_cv_prog_ac_ct_AR="ar"
13639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640     break 2
13641   fi
13642 done
13643 done
13644 IFS=$as_save_IFS
13645
13646 fi
13647 fi
13648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13649 if test -n "$ac_ct_AR"; then
13650   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13651 echo "${ECHO_T}$ac_ct_AR" >&6; }
13652 else
13653   { echo "$as_me:$LINENO: result: no" >&5
13654 echo "${ECHO_T}no" >&6; }
13655 fi
13656
13657   if test "x$ac_ct_AR" = x; then
13658     AR="false"
13659   else
13660     case $cross_compiling:$ac_tool_warned in
13661 yes:)
13662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13663 whose name does not start with the host triplet.  If you think this
13664 configuration is useful to you, please write to autoconf@gnu.org." >&5
13665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13666 whose name does not start with the host triplet.  If you think this
13667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13668 ac_tool_warned=yes ;;
13669 esac
13670     AR=$ac_ct_AR
13671   fi
13672 else
13673   AR="$ac_cv_prog_AR"
13674 fi
13675
13676 if test -n "$ac_tool_prefix"; then
13677   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13681 if test "${ac_cv_prog_RANLIB+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   if test -n "$RANLIB"; then
13685   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13686 else
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13689 do
13690   IFS=$as_save_IFS
13691   test -z "$as_dir" && as_dir=.
13692   for ac_exec_ext in '' $ac_executable_extensions; do
13693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13694     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13696     break 2
13697   fi
13698 done
13699 done
13700 IFS=$as_save_IFS
13701
13702 fi
13703 fi
13704 RANLIB=$ac_cv_prog_RANLIB
13705 if test -n "$RANLIB"; then
13706   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13707 echo "${ECHO_T}$RANLIB" >&6; }
13708 else
13709   { echo "$as_me:$LINENO: result: no" >&5
13710 echo "${ECHO_T}no" >&6; }
13711 fi
13712
13713
13714 fi
13715 if test -z "$ac_cv_prog_RANLIB"; then
13716   ac_ct_RANLIB=$RANLIB
13717   # Extract the first word of "ranlib", so it can be a program name with args.
13718 set dummy ranlib; ac_word=$2
13719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   if test -n "$ac_ct_RANLIB"; then
13725   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13726 else
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13729 do
13730   IFS=$as_save_IFS
13731   test -z "$as_dir" && as_dir=.
13732   for ac_exec_ext in '' $ac_executable_extensions; do
13733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13734     ac_cv_prog_ac_ct_RANLIB="ranlib"
13735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13736     break 2
13737   fi
13738 done
13739 done
13740 IFS=$as_save_IFS
13741
13742 fi
13743 fi
13744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13745 if test -n "$ac_ct_RANLIB"; then
13746   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13747 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13748 else
13749   { echo "$as_me:$LINENO: result: no" >&5
13750 echo "${ECHO_T}no" >&6; }
13751 fi
13752
13753   if test "x$ac_ct_RANLIB" = x; then
13754     RANLIB=":"
13755   else
13756     case $cross_compiling:$ac_tool_warned in
13757 yes:)
13758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13759 whose name does not start with the host triplet.  If you think this
13760 configuration is useful to you, please write to autoconf@gnu.org." >&5
13761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13762 whose name does not start with the host triplet.  If you think this
13763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13764 ac_tool_warned=yes ;;
13765 esac
13766     RANLIB=$ac_ct_RANLIB
13767   fi
13768 else
13769   RANLIB="$ac_cv_prog_RANLIB"
13770 fi
13771
13772 if test -n "$ac_tool_prefix"; then
13773   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13774 set dummy ${ac_tool_prefix}strip; ac_word=$2
13775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13777 if test "${ac_cv_prog_STRIP+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   if test -n "$STRIP"; then
13781   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13785 do
13786   IFS=$as_save_IFS
13787   test -z "$as_dir" && as_dir=.
13788   for ac_exec_ext in '' $ac_executable_extensions; do
13789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13790     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13792     break 2
13793   fi
13794 done
13795 done
13796 IFS=$as_save_IFS
13797
13798 fi
13799 fi
13800 STRIP=$ac_cv_prog_STRIP
13801 if test -n "$STRIP"; then
13802   { echo "$as_me:$LINENO: result: $STRIP" >&5
13803 echo "${ECHO_T}$STRIP" >&6; }
13804 else
13805   { echo "$as_me:$LINENO: result: no" >&5
13806 echo "${ECHO_T}no" >&6; }
13807 fi
13808
13809
13810 fi
13811 if test -z "$ac_cv_prog_STRIP"; then
13812   ac_ct_STRIP=$STRIP
13813   # Extract the first word of "strip", so it can be a program name with args.
13814 set dummy strip; ac_word=$2
13815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   if test -n "$ac_ct_STRIP"; then
13821   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
13827   test -z "$as_dir" && as_dir=.
13828   for ac_exec_ext in '' $ac_executable_extensions; do
13829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13830     ac_cv_prog_ac_ct_STRIP="strip"
13831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832     break 2
13833   fi
13834 done
13835 done
13836 IFS=$as_save_IFS
13837
13838 fi
13839 fi
13840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13841 if test -n "$ac_ct_STRIP"; then
13842   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13843 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13844 else
13845   { echo "$as_me:$LINENO: result: no" >&5
13846 echo "${ECHO_T}no" >&6; }
13847 fi
13848
13849   if test "x$ac_ct_STRIP" = x; then
13850     STRIP=":"
13851   else
13852     case $cross_compiling:$ac_tool_warned in
13853 yes:)
13854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13855 whose name does not start with the host triplet.  If you think this
13856 configuration is useful to you, please write to autoconf@gnu.org." >&5
13857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13858 whose name does not start with the host triplet.  If you think this
13859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13860 ac_tool_warned=yes ;;
13861 esac
13862     STRIP=$ac_ct_STRIP
13863   fi
13864 else
13865   STRIP="$ac_cv_prog_STRIP"
13866 fi
13867
13868
13869 old_CC="$CC"
13870 old_CFLAGS="$CFLAGS"
13871
13872 # Set sane defaults for various variables
13873 test -z "$AR" && AR=ar
13874 test -z "$AR_FLAGS" && AR_FLAGS=cru
13875 test -z "$AS" && AS=as
13876 test -z "$CC" && CC=cc
13877 test -z "$LTCC" && LTCC=$CC
13878 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13879 test -z "$DLLTOOL" && DLLTOOL=dlltool
13880 test -z "$LD" && LD=ld
13881 test -z "$LN_S" && LN_S="ln -s"
13882 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13883 test -z "$NM" && NM=nm
13884 test -z "$SED" && SED=sed
13885 test -z "$OBJDUMP" && OBJDUMP=objdump
13886 test -z "$RANLIB" && RANLIB=:
13887 test -z "$STRIP" && STRIP=:
13888 test -z "$ac_objext" && ac_objext=o
13889
13890 # Determine commands to create old-style static archives.
13891 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13892 old_postinstall_cmds='chmod 644 $oldlib'
13893 old_postuninstall_cmds=
13894
13895 if test -n "$RANLIB"; then
13896   case $host_os in
13897   openbsd*)
13898     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13899     ;;
13900   *)
13901     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13902     ;;
13903   esac
13904   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13905 fi
13906
13907 for cc_temp in $compiler""; do
13908   case $cc_temp in
13909     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13910     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13911     \-*) ;;
13912     *) break;;
13913   esac
13914 done
13915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13916
13917
13918 # Only perform the check for file, if the check method requires it
13919 case $deplibs_check_method in
13920 file_magic*)
13921   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13922     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13923 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13924 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927   case $MAGIC_CMD in
13928 [\\/*] |  ?:[\\/]*)
13929   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13930   ;;
13931 *)
13932   lt_save_MAGIC_CMD="$MAGIC_CMD"
13933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13934   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13935   for ac_dir in $ac_dummy; do
13936     IFS="$lt_save_ifs"
13937     test -z "$ac_dir" && ac_dir=.
13938     if test -f $ac_dir/${ac_tool_prefix}file; then
13939       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13940       if test -n "$file_magic_test_file"; then
13941         case $deplibs_check_method in
13942         "file_magic "*)
13943           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13944           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13945           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13946             $EGREP "$file_magic_regex" > /dev/null; then
13947             :
13948           else
13949             cat <<EOF 1>&2
13950
13951 *** Warning: the command libtool uses to detect shared libraries,
13952 *** $file_magic_cmd, produces output that libtool cannot recognize.
13953 *** The result is that libtool may fail to recognize shared libraries
13954 *** as such.  This will affect the creation of libtool libraries that
13955 *** depend on shared libraries, but programs linked with such libtool
13956 *** libraries will work regardless of this problem.  Nevertheless, you
13957 *** may want to report the problem to your system manager and/or to
13958 *** bug-libtool@gnu.org
13959
13960 EOF
13961           fi ;;
13962         esac
13963       fi
13964       break
13965     fi
13966   done
13967   IFS="$lt_save_ifs"
13968   MAGIC_CMD="$lt_save_MAGIC_CMD"
13969   ;;
13970 esac
13971 fi
13972
13973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13974 if test -n "$MAGIC_CMD"; then
13975   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13976 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13977 else
13978   { echo "$as_me:$LINENO: result: no" >&5
13979 echo "${ECHO_T}no" >&6; }
13980 fi
13981
13982 if test -z "$lt_cv_path_MAGIC_CMD"; then
13983   if test -n "$ac_tool_prefix"; then
13984     { echo "$as_me:$LINENO: checking for file" >&5
13985 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   case $MAGIC_CMD in
13990 [\\/*] |  ?:[\\/]*)
13991   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13992   ;;
13993 *)
13994   lt_save_MAGIC_CMD="$MAGIC_CMD"
13995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13997   for ac_dir in $ac_dummy; do
13998     IFS="$lt_save_ifs"
13999     test -z "$ac_dir" && ac_dir=.
14000     if test -f $ac_dir/file; then
14001       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14002       if test -n "$file_magic_test_file"; then
14003         case $deplibs_check_method in
14004         "file_magic "*)
14005           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14006           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14007           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14008             $EGREP "$file_magic_regex" > /dev/null; then
14009             :
14010           else
14011             cat <<EOF 1>&2
14012
14013 *** Warning: the command libtool uses to detect shared libraries,
14014 *** $file_magic_cmd, produces output that libtool cannot recognize.
14015 *** The result is that libtool may fail to recognize shared libraries
14016 *** as such.  This will affect the creation of libtool libraries that
14017 *** depend on shared libraries, but programs linked with such libtool
14018 *** libraries will work regardless of this problem.  Nevertheless, you
14019 *** may want to report the problem to your system manager and/or to
14020 *** bug-libtool@gnu.org
14021
14022 EOF
14023           fi ;;
14024         esac
14025       fi
14026       break
14027     fi
14028   done
14029   IFS="$lt_save_ifs"
14030   MAGIC_CMD="$lt_save_MAGIC_CMD"
14031   ;;
14032 esac
14033 fi
14034
14035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14036 if test -n "$MAGIC_CMD"; then
14037   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14038 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14039 else
14040   { echo "$as_me:$LINENO: result: no" >&5
14041 echo "${ECHO_T}no" >&6; }
14042 fi
14043
14044   else
14045     MAGIC_CMD=:
14046   fi
14047 fi
14048
14049   fi
14050   ;;
14051 esac
14052
14053 enable_dlopen=yes
14054 enable_win32_dll=no
14055
14056 # Check whether --enable-libtool-lock was given.
14057 if test "${enable_libtool_lock+set}" = set; then
14058   enableval=$enable_libtool_lock;
14059 fi
14060
14061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14062
14063
14064 # Check whether --with-pic was given.
14065 if test "${with_pic+set}" = set; then
14066   withval=$with_pic; pic_mode="$withval"
14067 else
14068   pic_mode=default
14069 fi
14070
14071 test -z "$pic_mode" && pic_mode=default
14072
14073 # Use C for the default configuration in the libtool script
14074 tagname=
14075 lt_save_CC="$CC"
14076 ac_ext=c
14077 ac_cpp='$CPP $CPPFLAGS'
14078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081
14082
14083 # Source file extension for C test sources.
14084 ac_ext=c
14085
14086 # Object file extension for compiled C test sources.
14087 objext=o
14088 objext=$objext
14089
14090 # Code to be used in simple compile tests
14091 lt_simple_compile_test_code="int some_variable = 0;\n"
14092
14093 # Code to be used in simple link tests
14094 lt_simple_link_test_code='int main(){return(0);}\n'
14095
14096
14097 # If no C compiler was specified, use CC.
14098 LTCC=${LTCC-"$CC"}
14099
14100 # If no C compiler flags were specified, use CFLAGS.
14101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14102
14103 # Allow CC to be a program name with arguments.
14104 compiler=$CC
14105
14106
14107 # save warnings/boilerplate of simple test code
14108 ac_outfile=conftest.$ac_objext
14109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111 _lt_compiler_boilerplate=`cat conftest.err`
14112 $rm conftest*
14113
14114 ac_outfile=conftest.$ac_objext
14115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14117 _lt_linker_boilerplate=`cat conftest.err`
14118 $rm conftest*
14119
14120
14121
14122 lt_prog_compiler_no_builtin_flag=
14123
14124 if test "$GCC" = yes; then
14125   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14126
14127
14128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   lt_cv_prog_compiler_rtti_exceptions=no
14134   ac_outfile=conftest.$ac_objext
14135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14136    lt_compiler_flag="-fno-rtti -fno-exceptions"
14137    # Insert the option either (1) after the last *FLAGS variable, or
14138    # (2) before a word containing "conftest.", or (3) at the end.
14139    # Note that $ac_compile itself does not contain backslashes and begins
14140    # with a dollar sign (not a hyphen), so the echo should work correctly.
14141    # The option is referenced via a variable to avoid confusing sed.
14142    lt_compile=`echo "$ac_compile" | $SED \
14143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145    -e 's:$: $lt_compiler_flag:'`
14146    (eval echo "\"\$as_me:14146: $lt_compile\"" >&5)
14147    (eval "$lt_compile" 2>conftest.err)
14148    ac_status=$?
14149    cat conftest.err >&5
14150    echo "$as_me:14150: \$? = $ac_status" >&5
14151    if (exit $ac_status) && test -s "$ac_outfile"; then
14152      # The compiler can only warn and ignore the option if not recognized
14153      # So say no if there are warnings other than the usual output.
14154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14155      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14156      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14157        lt_cv_prog_compiler_rtti_exceptions=yes
14158      fi
14159    fi
14160    $rm conftest*
14161
14162 fi
14163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14165
14166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14167     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14168 else
14169     :
14170 fi
14171
14172 fi
14173
14174 lt_prog_compiler_wl=
14175 lt_prog_compiler_pic=
14176 lt_prog_compiler_static=
14177
14178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14180
14181   if test "$GCC" = yes; then
14182     lt_prog_compiler_wl='-Wl,'
14183     lt_prog_compiler_static='-static'
14184
14185     case $host_os in
14186       aix*)
14187       # All AIX code is PIC.
14188       if test "$host_cpu" = ia64; then
14189         # AIX 5 now supports IA64 processor
14190         lt_prog_compiler_static='-Bstatic'
14191       fi
14192       ;;
14193
14194     amigaos*)
14195       # FIXME: we need at least 68020 code to build shared libraries, but
14196       # adding the `-m68020' flag to GCC prevents building anything better,
14197       # like `-m68040'.
14198       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14199       ;;
14200
14201     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14202       # PIC is the default for these OSes.
14203       ;;
14204
14205     mingw* | pw32* | os2*)
14206       # This hack is so that the source file can tell whether it is being
14207       # built for inclusion in a dll (and should export symbols for example).
14208       lt_prog_compiler_pic='-DDLL_EXPORT'
14209       ;;
14210
14211     darwin* | rhapsody*)
14212       # PIC is the default on this platform
14213       # Common symbols not allowed in MH_DYLIB files
14214       lt_prog_compiler_pic='-fno-common'
14215       ;;
14216
14217     interix3*)
14218       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14219       # Instead, we relocate shared libraries at runtime.
14220       ;;
14221
14222     msdosdjgpp*)
14223       # Just because we use GCC doesn't mean we suddenly get shared libraries
14224       # on systems that don't support them.
14225       lt_prog_compiler_can_build_shared=no
14226       enable_shared=no
14227       ;;
14228
14229     sysv4*MP*)
14230       if test -d /usr/nec; then
14231         lt_prog_compiler_pic=-Kconform_pic
14232       fi
14233       ;;
14234
14235     hpux*)
14236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14237       # not for PA HP-UX.
14238       case $host_cpu in
14239       hppa*64*|ia64*)
14240         # +Z the default
14241         ;;
14242       *)
14243         lt_prog_compiler_pic='-fPIC'
14244         ;;
14245       esac
14246       ;;
14247
14248     *)
14249       lt_prog_compiler_pic='-fPIC'
14250       ;;
14251     esac
14252   else
14253     # PORTME Check for flag to pass linker flags through the system compiler.
14254     case $host_os in
14255     aix*)
14256       lt_prog_compiler_wl='-Wl,'
14257       if test "$host_cpu" = ia64; then
14258         # AIX 5 now supports IA64 processor
14259         lt_prog_compiler_static='-Bstatic'
14260       else
14261         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14262       fi
14263       ;;
14264       darwin*)
14265         # PIC is the default on this platform
14266         # Common symbols not allowed in MH_DYLIB files
14267        case $cc_basename in
14268          xlc*)
14269          lt_prog_compiler_pic='-qnocommon'
14270          lt_prog_compiler_wl='-Wl,'
14271          ;;
14272        esac
14273        ;;
14274
14275     mingw* | pw32* | os2*)
14276       # This hack is so that the source file can tell whether it is being
14277       # built for inclusion in a dll (and should export symbols for example).
14278       lt_prog_compiler_pic='-DDLL_EXPORT'
14279       ;;
14280
14281     hpux9* | hpux10* | hpux11*)
14282       lt_prog_compiler_wl='-Wl,'
14283       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14284       # not for PA HP-UX.
14285       case $host_cpu in
14286       hppa*64*|ia64*)
14287         # +Z the default
14288         ;;
14289       *)
14290         lt_prog_compiler_pic='+Z'
14291         ;;
14292       esac
14293       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14294       lt_prog_compiler_static='${wl}-a ${wl}archive'
14295       ;;
14296
14297     irix5* | irix6* | nonstopux*)
14298       lt_prog_compiler_wl='-Wl,'
14299       # PIC (with -KPIC) is the default.
14300       lt_prog_compiler_static='-non_shared'
14301       ;;
14302
14303     newsos6)
14304       lt_prog_compiler_pic='-KPIC'
14305       lt_prog_compiler_static='-Bstatic'
14306       ;;
14307
14308     linux*)
14309       case $cc_basename in
14310       icc* | ecc*)
14311         lt_prog_compiler_wl='-Wl,'
14312         lt_prog_compiler_pic='-KPIC'
14313         lt_prog_compiler_static='-static'
14314         ;;
14315       pgcc* | pgf77* | pgf90* | pgf95*)
14316         # Portland Group compilers (*not* the Pentium gcc compiler,
14317         # which looks to be a dead project)
14318         lt_prog_compiler_wl='-Wl,'
14319         lt_prog_compiler_pic='-fpic'
14320         lt_prog_compiler_static='-Bstatic'
14321         ;;
14322       ccc*)
14323         lt_prog_compiler_wl='-Wl,'
14324         # All Alpha code is PIC.
14325         lt_prog_compiler_static='-non_shared'
14326         ;;
14327       esac
14328       ;;
14329
14330     osf3* | osf4* | osf5*)
14331       lt_prog_compiler_wl='-Wl,'
14332       # All OSF/1 code is PIC.
14333       lt_prog_compiler_static='-non_shared'
14334       ;;
14335
14336     solaris*)
14337       lt_prog_compiler_pic='-KPIC'
14338       lt_prog_compiler_static='-Bstatic'
14339       case $cc_basename in
14340       f77* | f90* | f95*)
14341         lt_prog_compiler_wl='-Qoption ld ';;
14342       *)
14343         lt_prog_compiler_wl='-Wl,';;
14344       esac
14345       ;;
14346
14347     sunos4*)
14348       lt_prog_compiler_wl='-Qoption ld '
14349       lt_prog_compiler_pic='-PIC'
14350       lt_prog_compiler_static='-Bstatic'
14351       ;;
14352
14353     sysv4 | sysv4.2uw2* | sysv4.3*)
14354       lt_prog_compiler_wl='-Wl,'
14355       lt_prog_compiler_pic='-KPIC'
14356       lt_prog_compiler_static='-Bstatic'
14357       ;;
14358
14359     sysv4*MP*)
14360       if test -d /usr/nec ;then
14361         lt_prog_compiler_pic='-Kconform_pic'
14362         lt_prog_compiler_static='-Bstatic'
14363       fi
14364       ;;
14365
14366     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14367       lt_prog_compiler_wl='-Wl,'
14368       lt_prog_compiler_pic='-KPIC'
14369       lt_prog_compiler_static='-Bstatic'
14370       ;;
14371
14372     unicos*)
14373       lt_prog_compiler_wl='-Wl,'
14374       lt_prog_compiler_can_build_shared=no
14375       ;;
14376
14377     uts4*)
14378       lt_prog_compiler_pic='-pic'
14379       lt_prog_compiler_static='-Bstatic'
14380       ;;
14381
14382     *)
14383       lt_prog_compiler_can_build_shared=no
14384       ;;
14385     esac
14386   fi
14387
14388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14389 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14390
14391 #
14392 # Check to make sure the PIC flag actually works.
14393 #
14394 if test -n "$lt_prog_compiler_pic"; then
14395
14396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14398 if test "${lt_prog_compiler_pic_works+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   lt_prog_compiler_pic_works=no
14402   ac_outfile=conftest.$ac_objext
14403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14404    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14405    # Insert the option either (1) after the last *FLAGS variable, or
14406    # (2) before a word containing "conftest.", or (3) at the end.
14407    # Note that $ac_compile itself does not contain backslashes and begins
14408    # with a dollar sign (not a hyphen), so the echo should work correctly.
14409    # The option is referenced via a variable to avoid confusing sed.
14410    lt_compile=`echo "$ac_compile" | $SED \
14411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413    -e 's:$: $lt_compiler_flag:'`
14414    (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415    (eval "$lt_compile" 2>conftest.err)
14416    ac_status=$?
14417    cat conftest.err >&5
14418    echo "$as_me:14418: \$? = $ac_status" >&5
14419    if (exit $ac_status) && test -s "$ac_outfile"; then
14420      # The compiler can only warn and ignore the option if not recognized
14421      # So say no if there are warnings other than the usual output.
14422      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14423      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14425        lt_prog_compiler_pic_works=yes
14426      fi
14427    fi
14428    $rm conftest*
14429
14430 fi
14431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14432 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14433
14434 if test x"$lt_prog_compiler_pic_works" = xyes; then
14435     case $lt_prog_compiler_pic in
14436      "" | " "*) ;;
14437      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14438      esac
14439 else
14440     lt_prog_compiler_pic=
14441      lt_prog_compiler_can_build_shared=no
14442 fi
14443
14444 fi
14445 case $host_os in
14446   # For platforms which do not support PIC, -DPIC is meaningless:
14447   *djgpp*)
14448     lt_prog_compiler_pic=
14449     ;;
14450   *)
14451     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14452     ;;
14453 esac
14454
14455 #
14456 # Check to make sure the static flag actually works.
14457 #
14458 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14459 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14460 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14461 if test "${lt_prog_compiler_static_works+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   lt_prog_compiler_static_works=no
14465    save_LDFLAGS="$LDFLAGS"
14466    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14467    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14468    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14469      # The linker can only warn and ignore the option if not recognized
14470      # So say no if there are warnings
14471      if test -s conftest.err; then
14472        # Append any errors to the config.log.
14473        cat conftest.err 1>&5
14474        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14475        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476        if diff conftest.exp conftest.er2 >/dev/null; then
14477          lt_prog_compiler_static_works=yes
14478        fi
14479      else
14480        lt_prog_compiler_static_works=yes
14481      fi
14482    fi
14483    $rm conftest*
14484    LDFLAGS="$save_LDFLAGS"
14485
14486 fi
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14489
14490 if test x"$lt_prog_compiler_static_works" = xyes; then
14491     :
14492 else
14493     lt_prog_compiler_static=
14494 fi
14495
14496
14497 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14498 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14499 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502   lt_cv_prog_compiler_c_o=no
14503    $rm -r conftest 2>/dev/null
14504    mkdir conftest
14505    cd conftest
14506    mkdir out
14507    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14508
14509    lt_compiler_flag="-o out/conftest2.$ac_objext"
14510    # Insert the option either (1) after the last *FLAGS variable, or
14511    # (2) before a word containing "conftest.", or (3) at the end.
14512    # Note that $ac_compile itself does not contain backslashes and begins
14513    # with a dollar sign (not a hyphen), so the echo should work correctly.
14514    lt_compile=`echo "$ac_compile" | $SED \
14515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517    -e 's:$: $lt_compiler_flag:'`
14518    (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519    (eval "$lt_compile" 2>out/conftest.err)
14520    ac_status=$?
14521    cat out/conftest.err >&5
14522    echo "$as_me:14522: \$? = $ac_status" >&5
14523    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14524    then
14525      # The compiler can only warn and ignore the option if not recognized
14526      # So say no if there are warnings
14527      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14528      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14529      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14530        lt_cv_prog_compiler_c_o=yes
14531      fi
14532    fi
14533    chmod u+w . 2>&5
14534    $rm conftest*
14535    # SGI C++ compiler will create directory out/ii_files/ for
14536    # template instantiation
14537    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14538    $rm out/* && rmdir out
14539    cd ..
14540    rmdir conftest
14541    $rm conftest*
14542
14543 fi
14544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14545 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14546
14547
14548 hard_links="nottested"
14549 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14550   # do not overwrite the value of need_locks provided by the user
14551   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14552 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14553   hard_links=yes
14554   $rm conftest*
14555   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556   touch conftest.a
14557   ln conftest.a conftest.b 2>&5 || hard_links=no
14558   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559   { echo "$as_me:$LINENO: result: $hard_links" >&5
14560 echo "${ECHO_T}$hard_links" >&6; }
14561   if test "$hard_links" = no; then
14562     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14563 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14564     need_locks=warn
14565   fi
14566 else
14567   need_locks=no
14568 fi
14569
14570 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14571 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14572
14573   runpath_var=
14574   allow_undefined_flag=
14575   enable_shared_with_static_runtimes=no
14576   archive_cmds=
14577   archive_expsym_cmds=
14578   old_archive_From_new_cmds=
14579   old_archive_from_expsyms_cmds=
14580   export_dynamic_flag_spec=
14581   whole_archive_flag_spec=
14582   thread_safe_flag_spec=
14583   hardcode_libdir_flag_spec=
14584   hardcode_libdir_flag_spec_ld=
14585   hardcode_libdir_separator=
14586   hardcode_direct=no
14587   hardcode_minus_L=no
14588   hardcode_shlibpath_var=unsupported
14589   link_all_deplibs=unknown
14590   hardcode_automatic=no
14591   module_cmds=
14592   module_expsym_cmds=
14593   always_export_symbols=no
14594   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595   # include_expsyms should be a list of space-separated symbols to be *always*
14596   # included in the symbol list
14597   include_expsyms=
14598   # exclude_expsyms can be an extended regexp of symbols to exclude
14599   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14600   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14601   # as well as any symbol that contains `d'.
14602   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14603   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14604   # platforms (ab)use it in PIC code, but their linkers get confused if
14605   # the symbol is explicitly referenced.  Since portable code cannot
14606   # rely on this symbol name, it's probably fine to never include it in
14607   # preloaded symbol tables.
14608   extract_expsyms_cmds=
14609   # Just being paranoid about ensuring that cc_basename is set.
14610   for cc_temp in $compiler""; do
14611   case $cc_temp in
14612     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614     \-*) ;;
14615     *) break;;
14616   esac
14617 done
14618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14619
14620   case $host_os in
14621   cygwin* | mingw* | pw32*)
14622     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623     # When not using gcc, we currently assume that we are using
14624     # Microsoft Visual C++.
14625     if test "$GCC" != yes; then
14626       with_gnu_ld=no
14627     fi
14628     ;;
14629   interix*)
14630     # we just hope/assume this is gcc and not c89 (= MSVC++)
14631     with_gnu_ld=yes
14632     ;;
14633   openbsd*)
14634     with_gnu_ld=no
14635     ;;
14636   esac
14637
14638   ld_shlibs=yes
14639   if test "$with_gnu_ld" = yes; then
14640     # If archive_cmds runs LD, not CC, wlarc should be empty
14641     wlarc='${wl}'
14642
14643     # Set some defaults for GNU ld with shared library support. These
14644     # are reset later if shared libraries are not supported. Putting them
14645     # here allows them to be overridden if necessary.
14646     runpath_var=LD_RUN_PATH
14647     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14648     export_dynamic_flag_spec='${wl}--export-dynamic'
14649     # ancient GNU ld didn't support --whole-archive et. al.
14650     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14652       else
14653         whole_archive_flag_spec=
14654     fi
14655     supports_anon_versioning=no
14656     case `$LD -v 2>/dev/null` in
14657       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660       *\ 2.11.*) ;; # other 2.11 versions
14661       *) supports_anon_versioning=yes ;;
14662     esac
14663
14664     # See if GNU ld supports shared libraries.
14665     case $host_os in
14666     aix3* | aix4* | aix5*)
14667       # On AIX/PPC, the GNU linker is very broken
14668       if test "$host_cpu" != ia64; then
14669         ld_shlibs=no
14670         cat <<EOF 1>&2
14671
14672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673 *** to be unable to reliably create shared libraries on AIX.
14674 *** Therefore, libtool is disabling shared libraries support.  If you
14675 *** really care for shared libraries, you may want to modify your PATH
14676 *** so that a non-GNU linker is found, and then restart.
14677
14678 EOF
14679       fi
14680       ;;
14681
14682     amigaos*)
14683       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)'
14684       hardcode_libdir_flag_spec='-L$libdir'
14685       hardcode_minus_L=yes
14686
14687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688       # that the semantics of dynamic libraries on AmigaOS, at least up
14689       # to version 4, is to share data among multiple programs linked
14690       # with the same dynamic library.  Since this doesn't match the
14691       # behavior of shared libraries on other platforms, we can't use
14692       # them.
14693       ld_shlibs=no
14694       ;;
14695
14696     beos*)
14697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698         allow_undefined_flag=unsupported
14699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700         # support --undefined.  This deserves some investigation.  FIXME
14701         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702       else
14703         ld_shlibs=no
14704       fi
14705       ;;
14706
14707     cygwin* | mingw* | pw32*)
14708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14709       # as there is no search path for DLLs.
14710       hardcode_libdir_flag_spec='-L$libdir'
14711       allow_undefined_flag=unsupported
14712       always_export_symbols=no
14713       enable_shared_with_static_runtimes=yes
14714       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14715
14716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718         # If the export-symbols file already is a .def file (1st line
14719         # is EXPORTS), use it as is; otherwise, prepend...
14720         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721           cp $export_symbols $output_objdir/$soname.def;
14722         else
14723           echo EXPORTS > $output_objdir/$soname.def;
14724           cat $export_symbols >> $output_objdir/$soname.def;
14725         fi~
14726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14727       else
14728         ld_shlibs=no
14729       fi
14730       ;;
14731
14732     interix3*)
14733       hardcode_direct=no
14734       hardcode_shlibpath_var=no
14735       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14736       export_dynamic_flag_spec='${wl}-E'
14737       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738       # Instead, shared libraries are loaded at an image base (0x10000000 by
14739       # default) and relocated if they conflict, which is a slow very memory
14740       # consuming and fragmenting process.  To avoid this, we pick a random,
14741       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14743       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744       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'
14745       ;;
14746
14747     linux*)
14748       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14749         tmp_addflag=
14750         case $cc_basename,$host_cpu in
14751         pgcc*)                          # Portland Group C compiler
14752           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'
14753           tmp_addflag=' $pic_flag'
14754           ;;
14755         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14756           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'
14757           tmp_addflag=' $pic_flag -Mnomain' ;;
14758         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14759           tmp_addflag=' -i_dynamic' ;;
14760         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14761           tmp_addflag=' -i_dynamic -nofor_main' ;;
14762         ifc* | ifort*)                  # Intel Fortran compiler
14763           tmp_addflag=' -nofor_main' ;;
14764         esac
14765         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14766
14767         if test $supports_anon_versioning = yes; then
14768           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14769   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14770   $echo "local: *; };" >> $output_objdir/$libname.ver~
14771           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14772         fi
14773       else
14774         ld_shlibs=no
14775       fi
14776       ;;
14777
14778     netbsd*)
14779       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14781         wlarc=
14782       else
14783         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14785       fi
14786       ;;
14787
14788     solaris*)
14789       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14790         ld_shlibs=no
14791         cat <<EOF 1>&2
14792
14793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14794 *** create shared libraries on Solaris systems.  Therefore, libtool
14795 *** is disabling shared libraries support.  We urge you to upgrade GNU
14796 *** binutils to release 2.9.1 or newer.  Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14799
14800 EOF
14801       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14804       else
14805         ld_shlibs=no
14806       fi
14807       ;;
14808
14809     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14810       case `$LD -v 2>&1` in
14811         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14812         ld_shlibs=no
14813         cat <<_LT_EOF 1>&2
14814
14815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14816 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14817 *** is disabling shared libraries support.  We urge you to upgrade GNU
14818 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14819 *** your PATH or compiler configuration so that the native linker is
14820 *** used, and then restart.
14821
14822 _LT_EOF
14823         ;;
14824         *)
14825           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14827             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14828             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14829           else
14830             ld_shlibs=no
14831           fi
14832         ;;
14833       esac
14834       ;;
14835
14836     sunos4*)
14837       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838       wlarc=
14839       hardcode_direct=yes
14840       hardcode_shlibpath_var=no
14841       ;;
14842
14843     *)
14844       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847       else
14848         ld_shlibs=no
14849       fi
14850       ;;
14851     esac
14852
14853     if test "$ld_shlibs" = no; then
14854       runpath_var=
14855       hardcode_libdir_flag_spec=
14856       export_dynamic_flag_spec=
14857       whole_archive_flag_spec=
14858     fi
14859   else
14860     # PORTME fill in a description of your system's linker (not GNU ld)
14861     case $host_os in
14862     aix3*)
14863       allow_undefined_flag=unsupported
14864       always_export_symbols=yes
14865       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'
14866       # Note: this linker hardcodes the directories in LIBPATH if there
14867       # are no directories specified by -L.
14868       hardcode_minus_L=yes
14869       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14870         # Neither direct hardcoding nor static linking is supported with a
14871         # broken collect2.
14872         hardcode_direct=unsupported
14873       fi
14874       ;;
14875
14876     aix4* | aix5*)
14877       if test "$host_cpu" = ia64; then
14878         # On IA64, the linker does run time linking by default, so we don't
14879         # have to do anything special.
14880         aix_use_runtimelinking=no
14881         exp_sym_flag='-Bexport'
14882         no_entry_flag=""
14883       else
14884         # If we're using GNU nm, then we don't want the "-C" option.
14885         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14886         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14887           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'
14888         else
14889           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'
14890         fi
14891         aix_use_runtimelinking=no
14892
14893         # Test if we are trying to use run time linking or normal
14894         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14895         # need to do runtime linking.
14896         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14897           for ld_flag in $LDFLAGS; do
14898           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14899             aix_use_runtimelinking=yes
14900             break
14901           fi
14902           done
14903           ;;
14904         esac
14905
14906         exp_sym_flag='-bexport'
14907         no_entry_flag='-bnoentry'
14908       fi
14909
14910       # When large executables or shared objects are built, AIX ld can
14911       # have problems creating the table of contents.  If linking a library
14912       # or program results in "error TOC overflow" add -mminimal-toc to
14913       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14914       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14915
14916       archive_cmds=''
14917       hardcode_direct=yes
14918       hardcode_libdir_separator=':'
14919       link_all_deplibs=yes
14920
14921       if test "$GCC" = yes; then
14922         case $host_os in aix4.[012]|aix4.[012].*)
14923         # We only want to do this on AIX 4.2 and lower, the check
14924         # below for broken collect2 doesn't work under 4.3+
14925           collect2name=`${CC} -print-prog-name=collect2`
14926           if test -f "$collect2name" && \
14927            strings "$collect2name" | grep resolve_lib_name >/dev/null
14928           then
14929           # We have reworked collect2
14930           hardcode_direct=yes
14931           else
14932           # We have old collect2
14933           hardcode_direct=unsupported
14934           # It fails to find uninstalled libraries when the uninstalled
14935           # path is not listed in the libpath.  Setting hardcode_minus_L
14936           # to unsupported forces relinking
14937           hardcode_minus_L=yes
14938           hardcode_libdir_flag_spec='-L$libdir'
14939           hardcode_libdir_separator=
14940           fi
14941           ;;
14942         esac
14943         shared_flag='-shared'
14944         if test "$aix_use_runtimelinking" = yes; then
14945           shared_flag="$shared_flag "'${wl}-G'
14946         fi
14947       else
14948         # not using gcc
14949         if test "$host_cpu" = ia64; then
14950         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14951         # chokes on -Wl,-G. The following line is correct:
14952           shared_flag='-G'
14953         else
14954           if test "$aix_use_runtimelinking" = yes; then
14955             shared_flag='${wl}-G'
14956           else
14957             shared_flag='${wl}-bM:SRE'
14958           fi
14959         fi
14960       fi
14961
14962       # It seems that -bexpall does not export symbols beginning with
14963       # underscore (_), so it is better to generate a list of symbols to export.
14964       always_export_symbols=yes
14965       if test "$aix_use_runtimelinking" = yes; then
14966         # Warning - without using the other runtime loading flags (-brtl),
14967         # -berok will link without error, but may produce a broken library.
14968         allow_undefined_flag='-berok'
14969        # Determine the default libpath from the value encoded in an empty executable.
14970        cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976
14977 int
14978 main ()
14979 {
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_link") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000   { (case "(($ac_try" in
15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002   *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005   (eval "$ac_try") 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); }; } &&
15009          { ac_try='test -s conftest$ac_exeext'
15010   { (case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_try") 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019
15020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15021 }'`
15022 # Check for a 64-bit object if we didn't find anything.
15023 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15024 }'`; fi
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029
15030 fi
15031
15032 rm -f core conftest.err conftest.$ac_objext \
15033       conftest$ac_exeext conftest.$ac_ext
15034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15035
15036        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15037         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"
15038        else
15039         if test "$host_cpu" = ia64; then
15040           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15041           allow_undefined_flag="-z nodefs"
15042           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"
15043         else
15044          # Determine the default libpath from the value encoded in an empty executable.
15045          cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051
15052 int
15053 main ()
15054 {
15055
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 rm -f conftest.$ac_objext conftest$ac_exeext
15061 if { (ac_try="$ac_link"
15062 case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_link") 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } &&
15074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075   { (case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_try") 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; } &&
15084          { ac_try='test -s conftest$ac_exeext'
15085   { (case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_try") 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; }; then
15094
15095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15096 }'`
15097 # Check for a 64-bit object if we didn't find anything.
15098 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15099 }'`; fi
15100 else
15101   echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104
15105 fi
15106
15107 rm -f core conftest.err conftest.$ac_objext \
15108       conftest$ac_exeext conftest.$ac_ext
15109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15110
15111          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15112           # Warning - without using the other run time loading flags,
15113           # -berok will link without error, but may produce a broken library.
15114           no_undefined_flag=' ${wl}-bernotok'
15115           allow_undefined_flag=' ${wl}-berok'
15116           # Exported symbols can be pulled into shared objects from archives
15117           whole_archive_flag_spec='$convenience'
15118           archive_cmds_need_lc=yes
15119           # This is similar to how AIX traditionally builds its shared libraries.
15120           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'
15121         fi
15122       fi
15123       ;;
15124
15125     amigaos*)
15126       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)'
15127       hardcode_libdir_flag_spec='-L$libdir'
15128       hardcode_minus_L=yes
15129       # see comment about different semantics on the GNU ld section
15130       ld_shlibs=no
15131       ;;
15132
15133     bsdi[45]*)
15134       export_dynamic_flag_spec=-rdynamic
15135       ;;
15136
15137     cygwin* | mingw* | pw32*)
15138       # When not using gcc, we currently assume that we are using
15139       # Microsoft Visual C++.
15140       # hardcode_libdir_flag_spec is actually meaningless, as there is
15141       # no search path for DLLs.
15142       hardcode_libdir_flag_spec=' '
15143       allow_undefined_flag=unsupported
15144       # Tell ltmain to make .lib files, not .a files.
15145       libext=lib
15146       # Tell ltmain to make .dll files, not .so files.
15147       shrext_cmds=".dll"
15148       # FIXME: Setting linknames here is a bad hack.
15149       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15150       # The linker will automatically build a .lib file if we build a DLL.
15151       old_archive_From_new_cmds='true'
15152       # FIXME: Should let the user specify the lib program.
15153       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15154       fix_srcfile_path='`cygpath -w "$srcfile"`'
15155       enable_shared_with_static_runtimes=yes
15156       ;;
15157
15158     darwin* | rhapsody*)
15159       case $host_os in
15160         rhapsody* | darwin1.[012])
15161          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15162          ;;
15163        *) # Darwin 1.3 on
15164          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15165            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15166          else
15167            case ${MACOSX_DEPLOYMENT_TARGET} in
15168              10.[012])
15169                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15170                ;;
15171              10.*)
15172                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15173                ;;
15174            esac
15175          fi
15176          ;;
15177       esac
15178       archive_cmds_need_lc=no
15179       hardcode_direct=no
15180       hardcode_automatic=yes
15181       hardcode_shlibpath_var=unsupported
15182       whole_archive_flag_spec=''
15183       link_all_deplibs=yes
15184     if test "$GCC" = yes ; then
15185         output_verbose_link_cmd='echo'
15186         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15187       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15188       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15189       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}'
15190       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}'
15191     else
15192       case $cc_basename in
15193         xlc*)
15194          output_verbose_link_cmd='echo'
15195          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15196          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15197           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15198          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15199           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}'
15200           ;;
15201        *)
15202          ld_shlibs=no
15203           ;;
15204       esac
15205     fi
15206       ;;
15207
15208     dgux*)
15209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15210       hardcode_libdir_flag_spec='-L$libdir'
15211       hardcode_shlibpath_var=no
15212       ;;
15213
15214     freebsd1*)
15215       ld_shlibs=no
15216       ;;
15217
15218     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15219     # support.  Future versions do this automatically, but an explicit c++rt0.o
15220     # does not break anything, and helps significantly (at the cost of a little
15221     # extra space).
15222     freebsd2.2*)
15223       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15224       hardcode_libdir_flag_spec='-R$libdir'
15225       hardcode_direct=yes
15226       hardcode_shlibpath_var=no
15227       ;;
15228
15229     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15230     freebsd2*)
15231       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15232       hardcode_direct=yes
15233       hardcode_minus_L=yes
15234       hardcode_shlibpath_var=no
15235       ;;
15236
15237     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15238     freebsd* | kfreebsd*-gnu | dragonfly*)
15239       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15240       hardcode_libdir_flag_spec='-R$libdir'
15241       hardcode_direct=yes
15242       hardcode_shlibpath_var=no
15243       ;;
15244
15245     hpux9*)
15246       if test "$GCC" = yes; then
15247         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'
15248       else
15249         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'
15250       fi
15251       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15252       hardcode_libdir_separator=:
15253       hardcode_direct=yes
15254
15255       # hardcode_minus_L: Not really in the search PATH,
15256       # but as the default location of the library.
15257       hardcode_minus_L=yes
15258       export_dynamic_flag_spec='${wl}-E'
15259       ;;
15260
15261     hpux10*)
15262       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15263         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15264       else
15265         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15266       fi
15267       if test "$with_gnu_ld" = no; then
15268         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269         hardcode_libdir_separator=:
15270
15271         hardcode_direct=yes
15272         export_dynamic_flag_spec='${wl}-E'
15273
15274         # hardcode_minus_L: Not really in the search PATH,
15275         # but as the default location of the library.
15276         hardcode_minus_L=yes
15277       fi
15278       ;;
15279
15280     hpux11*)
15281       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15282         case $host_cpu in
15283         hppa*64*)
15284           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285           ;;
15286         ia64*)
15287           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15288           ;;
15289         *)
15290           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15291           ;;
15292         esac
15293       else
15294         case $host_cpu in
15295         hppa*64*)
15296           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15297           ;;
15298         ia64*)
15299           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15300           ;;
15301         *)
15302           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15303           ;;
15304         esac
15305       fi
15306       if test "$with_gnu_ld" = no; then
15307         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15308         hardcode_libdir_separator=:
15309
15310         case $host_cpu in
15311         hppa*64*|ia64*)
15312           hardcode_libdir_flag_spec_ld='+b $libdir'
15313           hardcode_direct=no
15314           hardcode_shlibpath_var=no
15315           ;;
15316         *)
15317           hardcode_direct=yes
15318           export_dynamic_flag_spec='${wl}-E'
15319
15320           # hardcode_minus_L: Not really in the search PATH,
15321           # but as the default location of the library.
15322           hardcode_minus_L=yes
15323           ;;
15324         esac
15325       fi
15326       ;;
15327
15328     irix5* | irix6* | nonstopux*)
15329       if test "$GCC" = yes; then
15330         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'
15331       else
15332         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'
15333         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15334       fi
15335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15336       hardcode_libdir_separator=:
15337       link_all_deplibs=yes
15338       ;;
15339
15340     netbsd*)
15341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15342         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15343       else
15344         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15345       fi
15346       hardcode_libdir_flag_spec='-R$libdir'
15347       hardcode_direct=yes
15348       hardcode_shlibpath_var=no
15349       ;;
15350
15351     newsos6)
15352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353       hardcode_direct=yes
15354       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15355       hardcode_libdir_separator=:
15356       hardcode_shlibpath_var=no
15357       ;;
15358
15359     openbsd*)
15360       hardcode_direct=yes
15361       hardcode_shlibpath_var=no
15362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15363         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15364         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15365         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15366         export_dynamic_flag_spec='${wl}-E'
15367       else
15368        case $host_os in
15369          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15370            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15371            hardcode_libdir_flag_spec='-R$libdir'
15372            ;;
15373          *)
15374            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15376            ;;
15377        esac
15378       fi
15379       ;;
15380
15381     os2*)
15382       hardcode_libdir_flag_spec='-L$libdir'
15383       hardcode_minus_L=yes
15384       allow_undefined_flag=unsupported
15385       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'
15386       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15387       ;;
15388
15389     osf3*)
15390       if test "$GCC" = yes; then
15391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15392         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'
15393       else
15394         allow_undefined_flag=' -expect_unresolved \*'
15395         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'
15396       fi
15397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15398       hardcode_libdir_separator=:
15399       ;;
15400
15401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15402       if test "$GCC" = yes; then
15403         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15404         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'
15405         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15406       else
15407         allow_undefined_flag=' -expect_unresolved \*'
15408         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'
15409         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15410         $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'
15411
15412         # Both c and cxx compiler support -rpath directly
15413         hardcode_libdir_flag_spec='-rpath $libdir'
15414       fi
15415       hardcode_libdir_separator=:
15416       ;;
15417
15418     solaris*)
15419       no_undefined_flag=' -z text'
15420       if test "$GCC" = yes; then
15421         wlarc='${wl}'
15422         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15423         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15424           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15425       else
15426         wlarc=''
15427         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15429         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15430       fi
15431       hardcode_libdir_flag_spec='-R$libdir'
15432       hardcode_shlibpath_var=no
15433       case $host_os in
15434       solaris2.[0-5] | solaris2.[0-5].*) ;;
15435       *)
15436         # The compiler driver will combine linker options so we
15437         # cannot just pass the convience library names through
15438         # without $wl, iff we do not link with $LD.
15439         # Luckily, gcc supports the same syntax we need for Sun Studio.
15440         # Supported since Solaris 2.6 (maybe 2.5.1?)
15441         case $wlarc in
15442         '')
15443           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15444         *)
15445           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15446         esac ;;
15447       esac
15448       link_all_deplibs=yes
15449       ;;
15450
15451     sunos4*)
15452       if test "x$host_vendor" = xsequent; then
15453         # Use $CC to link under sequent, because it throws in some extra .o
15454         # files that make .init and .fini sections work.
15455         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15456       else
15457         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15458       fi
15459       hardcode_libdir_flag_spec='-L$libdir'
15460       hardcode_direct=yes
15461       hardcode_minus_L=yes
15462       hardcode_shlibpath_var=no
15463       ;;
15464
15465     sysv4)
15466       case $host_vendor in
15467         sni)
15468           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469           hardcode_direct=yes # is this really true???
15470         ;;
15471         siemens)
15472           ## LD is ld it makes a PLAMLIB
15473           ## CC just makes a GrossModule.
15474           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15475           reload_cmds='$CC -r -o $output$reload_objs'
15476           hardcode_direct=no
15477         ;;
15478         motorola)
15479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15481         ;;
15482       esac
15483       runpath_var='LD_RUN_PATH'
15484       hardcode_shlibpath_var=no
15485       ;;
15486
15487     sysv4.3*)
15488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489       hardcode_shlibpath_var=no
15490       export_dynamic_flag_spec='-Bexport'
15491       ;;
15492
15493     sysv4*MP*)
15494       if test -d /usr/nec; then
15495         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15496         hardcode_shlibpath_var=no
15497         runpath_var=LD_RUN_PATH
15498         hardcode_runpath_var=yes
15499         ld_shlibs=yes
15500       fi
15501       ;;
15502
15503     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15504       no_undefined_flag='${wl}-z,text'
15505       archive_cmds_need_lc=no
15506       hardcode_shlibpath_var=no
15507       runpath_var='LD_RUN_PATH'
15508
15509       if test "$GCC" = yes; then
15510         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15512       else
15513         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15514         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15515       fi
15516       ;;
15517
15518     sysv5* | sco3.2v5* | sco5v6*)
15519       # Note: We can NOT use -z defs as we might desire, because we do not
15520       # link with -lc, and that would cause any symbols used from libc to
15521       # always be unresolved, which means just about no library would
15522       # ever link correctly.  If we're not using GNU ld we use -z text
15523       # though, which does catch some bad symbols but isn't as heavy-handed
15524       # as -z defs.
15525       no_undefined_flag='${wl}-z,text'
15526       allow_undefined_flag='${wl}-z,nodefs'
15527       archive_cmds_need_lc=no
15528       hardcode_shlibpath_var=no
15529       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15530       hardcode_libdir_separator=':'
15531       link_all_deplibs=yes
15532       export_dynamic_flag_spec='${wl}-Bexport'
15533       runpath_var='LD_RUN_PATH'
15534
15535       if test "$GCC" = yes; then
15536         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538       else
15539         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15540         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541       fi
15542       ;;
15543
15544     uts4*)
15545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546       hardcode_libdir_flag_spec='-L$libdir'
15547       hardcode_shlibpath_var=no
15548       ;;
15549
15550     *)
15551       ld_shlibs=no
15552       ;;
15553     esac
15554   fi
15555
15556 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15557 echo "${ECHO_T}$ld_shlibs" >&6; }
15558 test "$ld_shlibs" = no && can_build_shared=no
15559
15560 #
15561 # Do we need to explicitly link libc?
15562 #
15563 case "x$archive_cmds_need_lc" in
15564 x|xyes)
15565   # Assume -lc should be added
15566   archive_cmds_need_lc=yes
15567
15568   if test "$enable_shared" = yes && test "$GCC" = yes; then
15569     case $archive_cmds in
15570     *'~'*)
15571       # FIXME: we may have to deal with multi-command sequences.
15572       ;;
15573     '$CC '*)
15574       # Test whether the compiler implicitly links with -lc since on some
15575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15576       # to ld, don't add -lc before -lgcc.
15577       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15579       $rm conftest*
15580       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583   (eval $ac_compile) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } 2>conftest.err; then
15587         soname=conftest
15588         lib=conftest
15589         libobjs=conftest.$ac_objext
15590         deplibs=
15591         wl=$lt_prog_compiler_wl
15592         pic_flag=$lt_prog_compiler_pic
15593         compiler_flags=-v
15594         linker_flags=-v
15595         verstring=
15596         output_objdir=.
15597         libname=conftest
15598         lt_save_allow_undefined_flag=$allow_undefined_flag
15599         allow_undefined_flag=
15600         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15601   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }
15605         then
15606           archive_cmds_need_lc=no
15607         else
15608           archive_cmds_need_lc=yes
15609         fi
15610         allow_undefined_flag=$lt_save_allow_undefined_flag
15611       else
15612         cat conftest.err 1>&5
15613       fi
15614       $rm conftest*
15615       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15616 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15617       ;;
15618     esac
15619   fi
15620   ;;
15621 esac
15622
15623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15625 library_names_spec=
15626 libname_spec='lib$name'
15627 soname_spec=
15628 shrext_cmds=".so"
15629 postinstall_cmds=
15630 postuninstall_cmds=
15631 finish_cmds=
15632 finish_eval=
15633 shlibpath_var=
15634 shlibpath_overrides_runpath=unknown
15635 version_type=none
15636 dynamic_linker="$host_os ld.so"
15637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15638 if test "$GCC" = yes; then
15639   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15640   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15641     # if the path contains ";" then we assume it to be the separator
15642     # otherwise default to the standard path separator (i.e. ":") - it is
15643     # assumed that no part of a normal pathname contains ";" but that should
15644     # okay in the real world where ";" in dirpaths is itself problematic.
15645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15646   else
15647     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15648   fi
15649 else
15650   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15651 fi
15652 need_lib_prefix=unknown
15653 hardcode_into_libs=no
15654
15655 # when you set need_version to no, make sure it does not cause -set_version
15656 # flags to be left without arguments
15657 need_version=unknown
15658
15659 case $host_os in
15660 aix3*)
15661   version_type=linux
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15663   shlibpath_var=LIBPATH
15664
15665   # AIX 3 has no versioning support, so we append a major version to the name.
15666   soname_spec='${libname}${release}${shared_ext}$major'
15667   ;;
15668
15669 aix4* | aix5*)
15670   version_type=linux
15671   need_lib_prefix=no
15672   need_version=no
15673   hardcode_into_libs=yes
15674   if test "$host_cpu" = ia64; then
15675     # AIX 5 supports IA64
15676     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15677     shlibpath_var=LD_LIBRARY_PATH
15678   else
15679     # With GCC up to 2.95.x, collect2 would create an import file
15680     # for dependence libraries.  The import file would start with
15681     # the line `#! .'.  This would cause the generated library to
15682     # depend on `.', always an invalid library.  This was fixed in
15683     # development snapshots of GCC prior to 3.0.
15684     case $host_os in
15685       aix4 | aix4.[01] | aix4.[01].*)
15686       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687            echo ' yes '
15688            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15689         :
15690       else
15691         can_build_shared=no
15692       fi
15693       ;;
15694     esac
15695     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15696     # soname into executable. Probably we can add versioning support to
15697     # collect2, so additional links can be useful in future.
15698     if test "$aix_use_runtimelinking" = yes; then
15699       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15700       # instead of lib<name>.a to let people know that these are not
15701       # typical AIX shared libraries.
15702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703     else
15704       # We preserve .a as extension for shared libraries through AIX4.2
15705       # and later when we are not doing run time linking.
15706       library_names_spec='${libname}${release}.a $libname.a'
15707       soname_spec='${libname}${release}${shared_ext}$major'
15708     fi
15709     shlibpath_var=LIBPATH
15710   fi
15711   ;;
15712
15713 amigaos*)
15714   library_names_spec='$libname.ixlibrary $libname.a'
15715   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15716   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'
15717   ;;
15718
15719 beos*)
15720   library_names_spec='${libname}${shared_ext}'
15721   dynamic_linker="$host_os ld.so"
15722   shlibpath_var=LIBRARY_PATH
15723   ;;
15724
15725 bsdi[45]*)
15726   version_type=linux
15727   need_version=no
15728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729   soname_spec='${libname}${release}${shared_ext}$major'
15730   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15733   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15734   # the default ld.so.conf also contains /usr/contrib/lib and
15735   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15736   # libtool to hard-code these into programs
15737   ;;
15738
15739 cygwin* | mingw* | pw32*)
15740   version_type=windows
15741   shrext_cmds=".dll"
15742   need_version=no
15743   need_lib_prefix=no
15744
15745   case $GCC,$host_os in
15746   yes,cygwin* | yes,mingw* | yes,pw32*)
15747     library_names_spec='$libname.dll.a'
15748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15749     postinstall_cmds='base_file=`basename \${file}`~
15750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15751       dldir=$destdir/`dirname \$dlpath`~
15752       test -d \$dldir || mkdir -p \$dldir~
15753       $install_prog $dir/$dlname \$dldir/$dlname~
15754       chmod a+x \$dldir/$dlname'
15755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756       dlpath=$dir/\$dldll~
15757        $rm \$dlpath'
15758     shlibpath_overrides_runpath=yes
15759
15760     case $host_os in
15761     cygwin*)
15762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15765       ;;
15766     mingw*)
15767       # MinGW DLLs use traditional 'lib' prefix
15768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15771         # It is most probably a Windows format PATH printed by
15772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15773         # path with ; separators, and with drive letters. We can handle the
15774         # drive letters (cygwin fileutils understands them), so leave them,
15775         # especially as we might pass files found there to a mingw objdump,
15776         # which wouldn't understand a cygwinified path. Ahh.
15777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15778       else
15779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15780       fi
15781       ;;
15782     pw32*)
15783       # pw32 DLLs use 'pw' prefix rather than 'lib'
15784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15785       ;;
15786     esac
15787     ;;
15788
15789   *)
15790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15791     ;;
15792   esac
15793   dynamic_linker='Win32 ld.exe'
15794   # FIXME: first we should search . and the directory the executable is in
15795   shlibpath_var=PATH
15796   ;;
15797
15798 darwin* | rhapsody*)
15799   dynamic_linker="$host_os dyld"
15800   version_type=darwin
15801   need_lib_prefix=no
15802   need_version=no
15803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15804   soname_spec='${libname}${release}${major}$shared_ext'
15805   shlibpath_overrides_runpath=yes
15806   shlibpath_var=DYLD_LIBRARY_PATH
15807   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15809   if test "$GCC" = yes; then
15810     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15811   else
15812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15813   fi
15814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15815   ;;
15816
15817 dgux*)
15818   version_type=linux
15819   need_lib_prefix=no
15820   need_version=no
15821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15822   soname_spec='${libname}${release}${shared_ext}$major'
15823   shlibpath_var=LD_LIBRARY_PATH
15824   ;;
15825
15826 freebsd1*)
15827   dynamic_linker=no
15828   ;;
15829
15830 kfreebsd*-gnu)
15831   version_type=linux
15832   need_lib_prefix=no
15833   need_version=no
15834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   shlibpath_overrides_runpath=no
15838   hardcode_into_libs=yes
15839   dynamic_linker='GNU ld.so'
15840   ;;
15841
15842 freebsd* | dragonfly*)
15843   # DragonFly does not have aout.  When/if they implement a new
15844   # versioning mechanism, adjust this.
15845   if test -x /usr/bin/objformat; then
15846     objformat=`/usr/bin/objformat`
15847   else
15848     case $host_os in
15849     freebsd[123]*) objformat=aout ;;
15850     *) objformat=elf ;;
15851     esac
15852   fi
15853   version_type=freebsd-$objformat
15854   case $version_type in
15855     freebsd-elf*)
15856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15857       need_version=no
15858       need_lib_prefix=no
15859       ;;
15860     freebsd-*)
15861       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15862       need_version=yes
15863       ;;
15864   esac
15865   shlibpath_var=LD_LIBRARY_PATH
15866   case $host_os in
15867   freebsd2*)
15868     shlibpath_overrides_runpath=yes
15869     ;;
15870   freebsd3.[01]* | freebsdelf3.[01]*)
15871     shlibpath_overrides_runpath=yes
15872     hardcode_into_libs=yes
15873     ;;
15874   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15875   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15876     shlibpath_overrides_runpath=no
15877     hardcode_into_libs=yes
15878     ;;
15879   freebsd*) # from 4.6 on
15880     shlibpath_overrides_runpath=yes
15881     hardcode_into_libs=yes
15882     ;;
15883   esac
15884   ;;
15885
15886 gnu*)
15887   version_type=linux
15888   need_lib_prefix=no
15889   need_version=no
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   shlibpath_var=LD_LIBRARY_PATH
15893   hardcode_into_libs=yes
15894   ;;
15895
15896 hpux9* | hpux10* | hpux11*)
15897   # Give a soname corresponding to the major version so that dld.sl refuses to
15898   # link against other versions.
15899   version_type=sunos
15900   need_lib_prefix=no
15901   need_version=no
15902   case $host_cpu in
15903   ia64*)
15904     shrext_cmds='.so'
15905     hardcode_into_libs=yes
15906     dynamic_linker="$host_os dld.so"
15907     shlibpath_var=LD_LIBRARY_PATH
15908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910     soname_spec='${libname}${release}${shared_ext}$major'
15911     if test "X$HPUX_IA64_MODE" = X32; then
15912       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15913     else
15914       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15915     fi
15916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15917     ;;
15918    hppa*64*)
15919      shrext_cmds='.sl'
15920      hardcode_into_libs=yes
15921      dynamic_linker="$host_os dld.sl"
15922      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925      soname_spec='${libname}${release}${shared_ext}$major'
15926      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15928      ;;
15929    *)
15930     shrext_cmds='.sl'
15931     dynamic_linker="$host_os dld.sl"
15932     shlibpath_var=SHLIB_PATH
15933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935     soname_spec='${libname}${release}${shared_ext}$major'
15936     ;;
15937   esac
15938   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15939   postinstall_cmds='chmod 555 $lib'
15940   ;;
15941
15942 interix3*)
15943   version_type=linux
15944   need_lib_prefix=no
15945   need_version=no
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   shlibpath_overrides_runpath=no
15951   hardcode_into_libs=yes
15952   ;;
15953
15954 irix5* | irix6* | nonstopux*)
15955   case $host_os in
15956     nonstopux*) version_type=nonstopux ;;
15957     *)
15958         if test "$lt_cv_prog_gnu_ld" = yes; then
15959                 version_type=linux
15960         else
15961                 version_type=irix
15962         fi ;;
15963   esac
15964   need_lib_prefix=no
15965   need_version=no
15966   soname_spec='${libname}${release}${shared_ext}$major'
15967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15968   case $host_os in
15969   irix5* | nonstopux*)
15970     libsuff= shlibsuff=
15971     ;;
15972   *)
15973     case $LD in # libtool.m4 will add one of these switches to LD
15974     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975       libsuff= shlibsuff= libmagic=32-bit;;
15976     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977       libsuff=32 shlibsuff=N32 libmagic=N32;;
15978     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15980     *) libsuff= shlibsuff= libmagic=never-match;;
15981     esac
15982     ;;
15983   esac
15984   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985   shlibpath_overrides_runpath=no
15986   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15987   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15988   hardcode_into_libs=yes
15989   ;;
15990
15991 # No shared lib support for Linux oldld, aout, or coff.
15992 linux*oldld* | linux*aout* | linux*coff*)
15993   dynamic_linker=no
15994   ;;
15995
15996 # This must be Linux ELF.
15997 linux*)
15998   version_type=linux
15999   need_lib_prefix=no
16000   need_version=no
16001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002   soname_spec='${libname}${release}${shared_ext}$major'
16003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16004   shlibpath_var=LD_LIBRARY_PATH
16005   shlibpath_overrides_runpath=no
16006   # This implies no fast_install, which is unacceptable.
16007   # Some rework will be needed to allow for fast_install
16008   # before this can be enabled.
16009   hardcode_into_libs=yes
16010
16011   # Append ld.so.conf contents to the search path
16012   if test -f /etc/ld.so.conf; then
16013     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16014     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16015   fi
16016
16017   # We used to test for /lib/ld.so.1 and disable shared libraries on
16018   # powerpc, because MkLinux only supported shared libraries with the
16019   # GNU dynamic linker.  Since this was broken with cross compilers,
16020   # most powerpc-linux boxes support dynamic linking these days and
16021   # people can always --disable-shared, the test was removed, and we
16022   # assume the GNU/Linux dynamic linker is in use.
16023   dynamic_linker='GNU/Linux ld.so'
16024   ;;
16025
16026 knetbsd*-gnu)
16027   version_type=linux
16028   need_lib_prefix=no
16029   need_version=no
16030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031   soname_spec='${libname}${release}${shared_ext}$major'
16032   shlibpath_var=LD_LIBRARY_PATH
16033   shlibpath_overrides_runpath=no
16034   hardcode_into_libs=yes
16035   dynamic_linker='GNU ld.so'
16036   ;;
16037
16038 netbsd*)
16039   version_type=sunos
16040   need_lib_prefix=no
16041   need_version=no
16042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16045     dynamic_linker='NetBSD (a.out) ld.so'
16046   else
16047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048     soname_spec='${libname}${release}${shared_ext}$major'
16049     dynamic_linker='NetBSD ld.elf_so'
16050   fi
16051   shlibpath_var=LD_LIBRARY_PATH
16052   shlibpath_overrides_runpath=yes
16053   hardcode_into_libs=yes
16054   ;;
16055
16056 newsos6)
16057   version_type=linux
16058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059   shlibpath_var=LD_LIBRARY_PATH
16060   shlibpath_overrides_runpath=yes
16061   ;;
16062
16063 nto-qnx*)
16064   version_type=linux
16065   need_lib_prefix=no
16066   need_version=no
16067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068   soname_spec='${libname}${release}${shared_ext}$major'
16069   shlibpath_var=LD_LIBRARY_PATH
16070   shlibpath_overrides_runpath=yes
16071   ;;
16072
16073 openbsd*)
16074   version_type=sunos
16075   sys_lib_dlsearch_path_spec="/usr/lib"
16076   need_lib_prefix=no
16077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16078   case $host_os in
16079     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16080     *)                         need_version=no  ;;
16081   esac
16082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16084   shlibpath_var=LD_LIBRARY_PATH
16085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16086     case $host_os in
16087       openbsd2.[89] | openbsd2.[89].*)
16088         shlibpath_overrides_runpath=no
16089         ;;
16090       *)
16091         shlibpath_overrides_runpath=yes
16092         ;;
16093       esac
16094   else
16095     shlibpath_overrides_runpath=yes
16096   fi
16097   ;;
16098
16099 os2*)
16100   libname_spec='$name'
16101   shrext_cmds=".dll"
16102   need_lib_prefix=no
16103   library_names_spec='$libname${shared_ext} $libname.a'
16104   dynamic_linker='OS/2 ld.exe'
16105   shlibpath_var=LIBPATH
16106   ;;
16107
16108 osf3* | osf4* | osf5*)
16109   version_type=osf
16110   need_lib_prefix=no
16111   need_version=no
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16117   ;;
16118
16119 solaris*)
16120   version_type=linux
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124   soname_spec='${libname}${release}${shared_ext}$major'
16125   shlibpath_var=LD_LIBRARY_PATH
16126   shlibpath_overrides_runpath=yes
16127   hardcode_into_libs=yes
16128   # ldd complains unless libraries are executable
16129   postinstall_cmds='chmod +x $lib'
16130   ;;
16131
16132 sunos4*)
16133   version_type=sunos
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16135   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16136   shlibpath_var=LD_LIBRARY_PATH
16137   shlibpath_overrides_runpath=yes
16138   if test "$with_gnu_ld" = yes; then
16139     need_lib_prefix=no
16140   fi
16141   need_version=yes
16142   ;;
16143
16144 sysv4 | sysv4.3*)
16145   version_type=linux
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147   soname_spec='${libname}${release}${shared_ext}$major'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   case $host_vendor in
16150     sni)
16151       shlibpath_overrides_runpath=no
16152       need_lib_prefix=no
16153       export_dynamic_flag_spec='${wl}-Blargedynsym'
16154       runpath_var=LD_RUN_PATH
16155       ;;
16156     siemens)
16157       need_lib_prefix=no
16158       ;;
16159     motorola)
16160       need_lib_prefix=no
16161       need_version=no
16162       shlibpath_overrides_runpath=no
16163       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16164       ;;
16165   esac
16166   ;;
16167
16168 sysv4*MP*)
16169   if test -d /usr/nec ;then
16170     version_type=linux
16171     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16172     soname_spec='$libname${shared_ext}.$major'
16173     shlibpath_var=LD_LIBRARY_PATH
16174   fi
16175   ;;
16176
16177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16178   version_type=freebsd-elf
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   hardcode_into_libs=yes
16185   if test "$with_gnu_ld" = yes; then
16186     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16187     shlibpath_overrides_runpath=no
16188   else
16189     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16190     shlibpath_overrides_runpath=yes
16191     case $host_os in
16192       sco3.2v5*)
16193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16194         ;;
16195     esac
16196   fi
16197   sys_lib_dlsearch_path_spec='/usr/lib'
16198   ;;
16199
16200 uts4*)
16201   version_type=linux
16202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203   soname_spec='${libname}${release}${shared_ext}$major'
16204   shlibpath_var=LD_LIBRARY_PATH
16205   ;;
16206
16207 *)
16208   dynamic_linker=no
16209   ;;
16210 esac
16211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16212 echo "${ECHO_T}$dynamic_linker" >&6; }
16213 test "$dynamic_linker" = no && can_build_shared=no
16214
16215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16216 if test "$GCC" = yes; then
16217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16218 fi
16219
16220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16222 hardcode_action=
16223 if test -n "$hardcode_libdir_flag_spec" || \
16224    test -n "$runpath_var" || \
16225    test "X$hardcode_automatic" = "Xyes" ; then
16226
16227   # We can hardcode non-existant directories.
16228   if test "$hardcode_direct" != no &&
16229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16230      # have to relink, otherwise we might link with an installed library
16231      # when we should be linking with a yet-to-be-installed one
16232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16233      test "$hardcode_minus_L" != no; then
16234     # Linking always hardcodes the temporary library directory.
16235     hardcode_action=relink
16236   else
16237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16238     hardcode_action=immediate
16239   fi
16240 else
16241   # We cannot hardcode anything, or else we can only hardcode existing
16242   # directories.
16243   hardcode_action=unsupported
16244 fi
16245 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16246 echo "${ECHO_T}$hardcode_action" >&6; }
16247
16248 if test "$hardcode_action" = relink; then
16249   # Fast installation is not supported
16250   enable_fast_install=no
16251 elif test "$shlibpath_overrides_runpath" = yes ||
16252      test "$enable_shared" = no; then
16253   # Fast installation is not necessary
16254   enable_fast_install=needless
16255 fi
16256
16257 striplib=
16258 old_striplib=
16259 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16262   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16263   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16264   { echo "$as_me:$LINENO: result: yes" >&5
16265 echo "${ECHO_T}yes" >&6; }
16266 else
16267 # FIXME - insert some real tests, host_os isn't really good enough
16268   case $host_os in
16269    darwin*)
16270        if test -n "$STRIP" ; then
16271          striplib="$STRIP -x"
16272          { echo "$as_me:$LINENO: result: yes" >&5
16273 echo "${ECHO_T}yes" >&6; }
16274        else
16275   { echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6; }
16277 fi
16278        ;;
16279    *)
16280   { echo "$as_me:$LINENO: result: no" >&5
16281 echo "${ECHO_T}no" >&6; }
16282     ;;
16283   esac
16284 fi
16285
16286 if test "x$enable_dlopen" != xyes; then
16287   enable_dlopen=unknown
16288   enable_dlopen_self=unknown
16289   enable_dlopen_self_static=unknown
16290 else
16291   lt_cv_dlopen=no
16292   lt_cv_dlopen_libs=
16293
16294   case $host_os in
16295   beos*)
16296     lt_cv_dlopen="load_add_on"
16297     lt_cv_dlopen_libs=
16298     lt_cv_dlopen_self=yes
16299     ;;
16300
16301   mingw* | pw32*)
16302     lt_cv_dlopen="LoadLibrary"
16303     lt_cv_dlopen_libs=
16304    ;;
16305
16306   cygwin*)
16307     lt_cv_dlopen="dlopen"
16308     lt_cv_dlopen_libs=
16309    ;;
16310
16311   darwin*)
16312   # if libdl is installed we need to link against it
16313     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   ac_check_lib_save_LIBS=$LIBS
16319 LIBS="-ldl  $LIBS"
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326
16327 /* Override any GCC internal prototype to avoid an error.
16328    Use char because int might match the return type of a GCC
16329    builtin and then its argument prototype would still apply.  */
16330 #ifdef __cplusplus
16331 extern "C"
16332 #endif
16333 char dlopen ();
16334 int
16335 main ()
16336 {
16337 return dlopen ();
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (ac_try="$ac_link"
16344 case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349   (eval "$ac_link") 2>conftest.er1
16350   ac_status=$?
16351   grep -v '^ *+' conftest.er1 >conftest.err
16352   rm -f conftest.er1
16353   cat conftest.err >&5
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16357   { (case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_try") 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; } &&
16366          { ac_try='test -s conftest$ac_exeext'
16367   { (case "(($ac_try" in
16368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369   *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372   (eval "$ac_try") 2>&5
16373   ac_status=$?
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); }; }; then
16376   ac_cv_lib_dl_dlopen=yes
16377 else
16378   echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16380
16381         ac_cv_lib_dl_dlopen=no
16382 fi
16383
16384 rm -f core conftest.err conftest.$ac_objext \
16385       conftest$ac_exeext conftest.$ac_ext
16386 LIBS=$ac_check_lib_save_LIBS
16387 fi
16388 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16389 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16390 if test $ac_cv_lib_dl_dlopen = yes; then
16391   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16392 else
16393
16394     lt_cv_dlopen="dyld"
16395     lt_cv_dlopen_libs=
16396     lt_cv_dlopen_self=yes
16397
16398 fi
16399
16400    ;;
16401
16402   *)
16403     { echo "$as_me:$LINENO: checking for shl_load" >&5
16404 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16405 if test "${ac_cv_func_shl_load+set}" = set; then
16406   echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408   cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16416 #define shl_load innocuous_shl_load
16417
16418 /* System header to define __stub macros and hopefully few prototypes,
16419     which can conflict with char shl_load (); below.
16420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421     <limits.h> exists even on freestanding compilers.  */
16422
16423 #ifdef __STDC__
16424 # include <limits.h>
16425 #else
16426 # include <assert.h>
16427 #endif
16428
16429 #undef shl_load
16430
16431 /* Override any GCC internal prototype to avoid an error.
16432    Use char because int might match the return type of a GCC
16433    builtin and then its argument prototype would still apply.  */
16434 #ifdef __cplusplus
16435 extern "C"
16436 #endif
16437 char shl_load ();
16438 /* The GNU C library defines this for functions which it implements
16439     to always fail with ENOSYS.  Some functions are actually named
16440     something starting with __ and the normal name is an alias.  */
16441 #if defined __stub_shl_load || defined __stub___shl_load
16442 choke me
16443 #endif
16444
16445 int
16446 main ()
16447 {
16448 return shl_load ();
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_link") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; } &&
16477          { ac_try='test -s conftest$ac_exeext'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_func_shl_load=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492         ac_cv_func_shl_load=no
16493 fi
16494
16495 rm -f core conftest.err conftest.$ac_objext \
16496       conftest$ac_exeext conftest.$ac_ext
16497 fi
16498 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16499 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16500 if test $ac_cv_func_shl_load = yes; then
16501   lt_cv_dlopen="shl_load"
16502 else
16503   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16504 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16505 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-ldld  $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517 /* Override any GCC internal prototype to avoid an error.
16518    Use char because int might match the return type of a GCC
16519    builtin and then its argument prototype would still apply.  */
16520 #ifdef __cplusplus
16521 extern "C"
16522 #endif
16523 char shl_load ();
16524 int
16525 main ()
16526 {
16527 return shl_load ();
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (ac_try="$ac_link"
16534 case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_link") 2>conftest.er1
16540   ac_status=$?
16541   grep -v '^ *+' conftest.er1 >conftest.err
16542   rm -f conftest.er1
16543   cat conftest.err >&5
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } &&
16546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547   { (case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_try") 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; } &&
16556          { ac_try='test -s conftest$ac_exeext'
16557   { (case "(($ac_try" in
16558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559   *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562   (eval "$ac_try") 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_lib_dld_shl_load=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571         ac_cv_lib_dld_shl_load=no
16572 fi
16573
16574 rm -f core conftest.err conftest.$ac_objext \
16575       conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16577 fi
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16579 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16580 if test $ac_cv_lib_dld_shl_load = yes; then
16581   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16582 else
16583   { echo "$as_me:$LINENO: checking for dlopen" >&5
16584 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16585 if test "${ac_cv_func_dlopen+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16596 #define dlopen innocuous_dlopen
16597
16598 /* System header to define __stub macros and hopefully few prototypes,
16599     which can conflict with char dlopen (); below.
16600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601     <limits.h> exists even on freestanding compilers.  */
16602
16603 #ifdef __STDC__
16604 # include <limits.h>
16605 #else
16606 # include <assert.h>
16607 #endif
16608
16609 #undef dlopen
16610
16611 /* Override any GCC internal prototype to avoid an error.
16612    Use char because int might match the return type of a GCC
16613    builtin and then its argument prototype would still apply.  */
16614 #ifdef __cplusplus
16615 extern "C"
16616 #endif
16617 char dlopen ();
16618 /* The GNU C library defines this for functions which it implements
16619     to always fail with ENOSYS.  Some functions are actually named
16620     something starting with __ and the normal name is an alias.  */
16621 #if defined __stub_dlopen || defined __stub___dlopen
16622 choke me
16623 #endif
16624
16625 int
16626 main ()
16627 {
16628 return dlopen ();
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_link") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; } &&
16657          { ac_try='test -s conftest$ac_exeext'
16658   { (case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_try") 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; }; then
16667   ac_cv_func_dlopen=yes
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_func_dlopen=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext \
16676       conftest$ac_exeext conftest.$ac_ext
16677 fi
16678 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16679 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16680 if test $ac_cv_func_dlopen = yes; then
16681   lt_cv_dlopen="dlopen"
16682 else
16683   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688   ac_check_lib_save_LIBS=$LIBS
16689 LIBS="-ldl  $LIBS"
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696
16697 /* Override any GCC internal prototype to avoid an error.
16698    Use char because int might match the return type of a GCC
16699    builtin and then its argument prototype would still apply.  */
16700 #ifdef __cplusplus
16701 extern "C"
16702 #endif
16703 char dlopen ();
16704 int
16705 main ()
16706 {
16707 return dlopen ();
16708   ;
16709   return 0;
16710 }
16711 _ACEOF
16712 rm -f conftest.$ac_objext conftest$ac_exeext
16713 if { (ac_try="$ac_link"
16714 case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_link") 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; } &&
16736          { ac_try='test -s conftest$ac_exeext'
16737   { (case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_try") 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_lib_dl_dlopen=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751         ac_cv_lib_dl_dlopen=no
16752 fi
16753
16754 rm -f core conftest.err conftest.$ac_objext \
16755       conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16757 fi
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16759 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16760 if test $ac_cv_lib_dl_dlopen = yes; then
16761   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16762 else
16763   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16764 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16765 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   ac_check_lib_save_LIBS=$LIBS
16769 LIBS="-lsvld  $LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777 /* Override any GCC internal prototype to avoid an error.
16778    Use char because int might match the return type of a GCC
16779    builtin and then its argument prototype would still apply.  */
16780 #ifdef __cplusplus
16781 extern "C"
16782 #endif
16783 char dlopen ();
16784 int
16785 main ()
16786 {
16787 return dlopen ();
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (ac_try="$ac_link"
16794 case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_link") 2>conftest.er1
16800   ac_status=$?
16801   grep -v '^ *+' conftest.er1 >conftest.err
16802   rm -f conftest.er1
16803   cat conftest.err >&5
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); } &&
16806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807   { (case "(($ac_try" in
16808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809   *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812   (eval "$ac_try") 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); }; } &&
16816          { ac_try='test -s conftest$ac_exeext'
16817   { (case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_try") 2>&5
16823   ac_status=$?
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); }; }; then
16826   ac_cv_lib_svld_dlopen=yes
16827 else
16828   echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831         ac_cv_lib_svld_dlopen=no
16832 fi
16833
16834 rm -f core conftest.err conftest.$ac_objext \
16835       conftest$ac_exeext conftest.$ac_ext
16836 LIBS=$ac_check_lib_save_LIBS
16837 fi
16838 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16840 if test $ac_cv_lib_svld_dlopen = yes; then
16841   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16842 else
16843   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   ac_check_lib_save_LIBS=$LIBS
16849 LIBS="-ldld  $LIBS"
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856
16857 /* Override any GCC internal prototype to avoid an error.
16858    Use char because int might match the return type of a GCC
16859    builtin and then its argument prototype would still apply.  */
16860 #ifdef __cplusplus
16861 extern "C"
16862 #endif
16863 char dld_link ();
16864 int
16865 main ()
16866 {
16867 return dld_link ();
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_link") 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887   { (case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_try") 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest$ac_exeext'
16897   { (case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; }; then
16906   ac_cv_lib_dld_dld_link=yes
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911         ac_cv_lib_dld_dld_link=no
16912 fi
16913
16914 rm -f core conftest.err conftest.$ac_objext \
16915       conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16917 fi
16918 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16919 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16920 if test $ac_cv_lib_dld_dld_link = yes; then
16921   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16922 fi
16923
16924
16925 fi
16926
16927
16928 fi
16929
16930
16931 fi
16932
16933
16934 fi
16935
16936
16937 fi
16938
16939     ;;
16940   esac
16941
16942   if test "x$lt_cv_dlopen" != xno; then
16943     enable_dlopen=yes
16944   else
16945     enable_dlopen=no
16946   fi
16947
16948   case $lt_cv_dlopen in
16949   dlopen)
16950     save_CPPFLAGS="$CPPFLAGS"
16951     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16952
16953     save_LDFLAGS="$LDFLAGS"
16954     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16955
16956     save_LIBS="$LIBS"
16957     LIBS="$lt_cv_dlopen_libs $LIBS"
16958
16959     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16960 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16961 if test "${lt_cv_dlopen_self+set}" = set; then
16962   echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964           if test "$cross_compiling" = yes; then :
16965   lt_cv_dlopen_self=cross
16966 else
16967   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16968   lt_status=$lt_dlunknown
16969   cat > conftest.$ac_ext <<EOF
16970 #line 16970 "configure"
16971 #include "confdefs.h"
16972
16973 #if HAVE_DLFCN_H
16974 #include <dlfcn.h>
16975 #endif
16976
16977 #include <stdio.h>
16978
16979 #ifdef RTLD_GLOBAL
16980 #  define LT_DLGLOBAL           RTLD_GLOBAL
16981 #else
16982 #  ifdef DL_GLOBAL
16983 #    define LT_DLGLOBAL         DL_GLOBAL
16984 #  else
16985 #    define LT_DLGLOBAL         0
16986 #  endif
16987 #endif
16988
16989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16990    find out it does not work in some platform. */
16991 #ifndef LT_DLLAZY_OR_NOW
16992 #  ifdef RTLD_LAZY
16993 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16994 #  else
16995 #    ifdef DL_LAZY
16996 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16997 #    else
16998 #      ifdef RTLD_NOW
16999 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17000 #      else
17001 #        ifdef DL_NOW
17002 #          define LT_DLLAZY_OR_NOW      DL_NOW
17003 #        else
17004 #          define LT_DLLAZY_OR_NOW      0
17005 #        endif
17006 #      endif
17007 #    endif
17008 #  endif
17009 #endif
17010
17011 #ifdef __cplusplus
17012 extern "C" void exit (int);
17013 #endif
17014
17015 void fnord() { int i=42;}
17016 int main ()
17017 {
17018   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17019   int status = $lt_dlunknown;
17020
17021   if (self)
17022     {
17023       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17024       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17025       /* dlclose (self); */
17026     }
17027   else
17028     puts (dlerror ());
17029
17030     exit (status);
17031 }
17032 EOF
17033   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17034   (eval $ac_link) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17038     (./conftest; exit; ) >&5 2>/dev/null
17039     lt_status=$?
17040     case x$lt_status in
17041       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17042       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17043       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17044     esac
17045   else :
17046     # compilation failed
17047     lt_cv_dlopen_self=no
17048   fi
17049 fi
17050 rm -fr conftest*
17051
17052
17053 fi
17054 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17055 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17056
17057     if test "x$lt_cv_dlopen_self" = xyes; then
17058       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17059       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17060 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17061 if test "${lt_cv_dlopen_self_static+set}" = set; then
17062   echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064           if test "$cross_compiling" = yes; then :
17065   lt_cv_dlopen_self_static=cross
17066 else
17067   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17068   lt_status=$lt_dlunknown
17069   cat > conftest.$ac_ext <<EOF
17070 #line 17070 "configure"
17071 #include "confdefs.h"
17072
17073 #if HAVE_DLFCN_H
17074 #include <dlfcn.h>
17075 #endif
17076
17077 #include <stdio.h>
17078
17079 #ifdef RTLD_GLOBAL
17080 #  define LT_DLGLOBAL           RTLD_GLOBAL
17081 #else
17082 #  ifdef DL_GLOBAL
17083 #    define LT_DLGLOBAL         DL_GLOBAL
17084 #  else
17085 #    define LT_DLGLOBAL         0
17086 #  endif
17087 #endif
17088
17089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17090    find out it does not work in some platform. */
17091 #ifndef LT_DLLAZY_OR_NOW
17092 #  ifdef RTLD_LAZY
17093 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17094 #  else
17095 #    ifdef DL_LAZY
17096 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17097 #    else
17098 #      ifdef RTLD_NOW
17099 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17100 #      else
17101 #        ifdef DL_NOW
17102 #          define LT_DLLAZY_OR_NOW      DL_NOW
17103 #        else
17104 #          define LT_DLLAZY_OR_NOW      0
17105 #        endif
17106 #      endif
17107 #    endif
17108 #  endif
17109 #endif
17110
17111 #ifdef __cplusplus
17112 extern "C" void exit (int);
17113 #endif
17114
17115 void fnord() { int i=42;}
17116 int main ()
17117 {
17118   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17119   int status = $lt_dlunknown;
17120
17121   if (self)
17122     {
17123       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17124       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17125       /* dlclose (self); */
17126     }
17127   else
17128     puts (dlerror ());
17129
17130     exit (status);
17131 }
17132 EOF
17133   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134   (eval $ac_link) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17138     (./conftest; exit; ) >&5 2>/dev/null
17139     lt_status=$?
17140     case x$lt_status in
17141       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17143       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17144     esac
17145   else :
17146     # compilation failed
17147     lt_cv_dlopen_self_static=no
17148   fi
17149 fi
17150 rm -fr conftest*
17151
17152
17153 fi
17154 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17156     fi
17157
17158     CPPFLAGS="$save_CPPFLAGS"
17159     LDFLAGS="$save_LDFLAGS"
17160     LIBS="$save_LIBS"
17161     ;;
17162   esac
17163
17164   case $lt_cv_dlopen_self in
17165   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166   *) enable_dlopen_self=unknown ;;
17167   esac
17168
17169   case $lt_cv_dlopen_self_static in
17170   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171   *) enable_dlopen_self_static=unknown ;;
17172   esac
17173 fi
17174
17175
17176 # Report which library types will actually be built
17177 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17178 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17179 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17180 echo "${ECHO_T}$can_build_shared" >&6; }
17181
17182 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17183 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17184 test "$can_build_shared" = "no" && enable_shared=no
17185
17186 # On AIX, shared libraries and static libraries use the same namespace, and
17187 # are all built from PIC.
17188 case $host_os in
17189 aix3*)
17190   test "$enable_shared" = yes && enable_static=no
17191   if test -n "$RANLIB"; then
17192     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17193     postinstall_cmds='$RANLIB $lib'
17194   fi
17195   ;;
17196
17197 aix4* | aix5*)
17198   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17199     test "$enable_shared" = yes && enable_static=no
17200   fi
17201     ;;
17202 esac
17203 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17204 echo "${ECHO_T}$enable_shared" >&6; }
17205
17206 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17207 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17208 # Make sure either enable_shared or enable_static is yes.
17209 test "$enable_shared" = yes || enable_static=yes
17210 { echo "$as_me:$LINENO: result: $enable_static" >&5
17211 echo "${ECHO_T}$enable_static" >&6; }
17212
17213 # The else clause should only fire when bootstrapping the
17214 # libtool distribution, otherwise you forgot to ship ltmain.sh
17215 # with your package, and you will get complaints that there are
17216 # no rules to generate ltmain.sh.
17217 if test -f "$ltmain"; then
17218   # See if we are running on zsh, and set the options which allow our commands through
17219   # without removal of \ escapes.
17220   if test -n "${ZSH_VERSION+set}" ; then
17221     setopt NO_GLOB_SUBST
17222   fi
17223   # Now quote all the things that may contain metacharacters while being
17224   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17225   # variables and quote the copies for generation of the libtool script.
17226   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17227     SED SHELL STRIP \
17228     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17229     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17230     deplibs_check_method reload_flag reload_cmds need_locks \
17231     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17232     lt_cv_sys_global_symbol_to_c_name_address \
17233     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17234     old_postinstall_cmds old_postuninstall_cmds \
17235     compiler \
17236     CC \
17237     LD \
17238     lt_prog_compiler_wl \
17239     lt_prog_compiler_pic \
17240     lt_prog_compiler_static \
17241     lt_prog_compiler_no_builtin_flag \
17242     export_dynamic_flag_spec \
17243     thread_safe_flag_spec \
17244     whole_archive_flag_spec \
17245     enable_shared_with_static_runtimes \
17246     old_archive_cmds \
17247     old_archive_from_new_cmds \
17248     predep_objects \
17249     postdep_objects \
17250     predeps \
17251     postdeps \
17252     compiler_lib_search_path \
17253     archive_cmds \
17254     archive_expsym_cmds \
17255     postinstall_cmds \
17256     postuninstall_cmds \
17257     old_archive_from_expsyms_cmds \
17258     allow_undefined_flag \
17259     no_undefined_flag \
17260     export_symbols_cmds \
17261     hardcode_libdir_flag_spec \
17262     hardcode_libdir_flag_spec_ld \
17263     hardcode_libdir_separator \
17264     hardcode_automatic \
17265     module_cmds \
17266     module_expsym_cmds \
17267     lt_cv_prog_compiler_c_o \
17268     exclude_expsyms \
17269     include_expsyms; do
17270
17271     case $var in
17272     old_archive_cmds | \
17273     old_archive_from_new_cmds | \
17274     archive_cmds | \
17275     archive_expsym_cmds | \
17276     module_cmds | \
17277     module_expsym_cmds | \
17278     old_archive_from_expsyms_cmds | \
17279     export_symbols_cmds | \
17280     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17281     postinstall_cmds | postuninstall_cmds | \
17282     old_postinstall_cmds | old_postuninstall_cmds | \
17283     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17284       # Double-quote double-evaled strings.
17285       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17286       ;;
17287     *)
17288       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17289       ;;
17290     esac
17291   done
17292
17293   case $lt_echo in
17294   *'\$0 --fallback-echo"')
17295     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17296     ;;
17297   esac
17298
17299 cfgfile="${ofile}T"
17300   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17301   $rm -f "$cfgfile"
17302   { echo "$as_me:$LINENO: creating $ofile" >&5
17303 echo "$as_me: creating $ofile" >&6;}
17304
17305   cat <<__EOF__ >> "$cfgfile"
17306 #! $SHELL
17307
17308 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17309 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17311 #
17312 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17313 # Free Software Foundation, Inc.
17314 #
17315 # This file is part of GNU Libtool:
17316 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17317 #
17318 # This program is free software; you can redistribute it and/or modify
17319 # it under the terms of the GNU General Public License as published by
17320 # the Free Software Foundation; either version 2 of the License, or
17321 # (at your option) any later version.
17322 #
17323 # This program is distributed in the hope that it will be useful, but
17324 # WITHOUT ANY WARRANTY; without even the implied warranty of
17325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17326 # General Public License for more details.
17327 #
17328 # You should have received a copy of the GNU General Public License
17329 # along with this program; if not, write to the Free Software
17330 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17331 #
17332 # As a special exception to the GNU General Public License, if you
17333 # distribute this file as part of a program that contains a
17334 # configuration script generated by Autoconf, you may include it under
17335 # the same distribution terms that you use for the rest of that program.
17336
17337 # A sed program that does not truncate output.
17338 SED=$lt_SED
17339
17340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17341 Xsed="$SED -e 1s/^X//"
17342
17343 # The HP-UX ksh and POSIX shell print the target directory to stdout
17344 # if CDPATH is set.
17345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17346
17347 # The names of the tagged configurations supported by this script.
17348 available_tags=
17349
17350 # ### BEGIN LIBTOOL CONFIG
17351
17352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17353
17354 # Shell to use when invoking shell scripts.
17355 SHELL=$lt_SHELL
17356
17357 # Whether or not to build shared libraries.
17358 build_libtool_libs=$enable_shared
17359
17360 # Whether or not to build static libraries.
17361 build_old_libs=$enable_static
17362
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17365
17366 # Whether or not to disallow shared libs when runtime libs are static
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17368
17369 # Whether or not to optimize for fast installation.
17370 fast_install=$enable_fast_install
17371
17372 # The host system.
17373 host_alias=$host_alias
17374 host=$host
17375 host_os=$host_os
17376
17377 # The build system.
17378 build_alias=$build_alias
17379 build=$build
17380 build_os=$build_os
17381
17382 # An echo program that does not interpret backslashes.
17383 echo=$lt_echo
17384
17385 # The archiver.
17386 AR=$lt_AR
17387 AR_FLAGS=$lt_AR_FLAGS
17388
17389 # A C compiler.
17390 LTCC=$lt_LTCC
17391
17392 # LTCC compiler flags.
17393 LTCFLAGS=$lt_LTCFLAGS
17394
17395 # A language-specific compiler.
17396 CC=$lt_compiler
17397
17398 # Is the compiler the GNU C compiler?
17399 with_gcc=$GCC
17400
17401 # An ERE matcher.
17402 EGREP=$lt_EGREP
17403
17404 # The linker used to build libraries.
17405 LD=$lt_LD
17406
17407 # Whether we need hard or soft links.
17408 LN_S=$lt_LN_S
17409
17410 # A BSD-compatible nm program.
17411 NM=$lt_NM
17412
17413 # A symbol stripping program
17414 STRIP=$lt_STRIP
17415
17416 # Used to examine libraries when file_magic_cmd begins "file"
17417 MAGIC_CMD=$MAGIC_CMD
17418
17419 # Used on cygwin: DLL creation program.
17420 DLLTOOL="$DLLTOOL"
17421
17422 # Used on cygwin: object dumper.
17423 OBJDUMP="$OBJDUMP"
17424
17425 # Used on cygwin: assembler.
17426 AS="$AS"
17427
17428 # The name of the directory that contains temporary libtool files.
17429 objdir=$objdir
17430
17431 # How to create reloadable object files.
17432 reload_flag=$lt_reload_flag
17433 reload_cmds=$lt_reload_cmds
17434
17435 # How to pass a linker flag through the compiler.
17436 wl=$lt_lt_prog_compiler_wl
17437
17438 # Object file suffix (normally "o").
17439 objext="$ac_objext"
17440
17441 # Old archive suffix (normally "a").
17442 libext="$libext"
17443
17444 # Shared library suffix (normally ".so").
17445 shrext_cmds='$shrext_cmds'
17446
17447 # Executable file suffix (normally "").
17448 exeext="$exeext"
17449
17450 # Additional compiler flags for building library objects.
17451 pic_flag=$lt_lt_prog_compiler_pic
17452 pic_mode=$pic_mode
17453
17454 # What is the maximum length of a command?
17455 max_cmd_len=$lt_cv_sys_max_cmd_len
17456
17457 # Does compiler simultaneously support -c and -o options?
17458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17459
17460 # Must we lock files when doing compilation?
17461 need_locks=$lt_need_locks
17462
17463 # Do we need the lib prefix for modules?
17464 need_lib_prefix=$need_lib_prefix
17465
17466 # Do we need a version for libraries?
17467 need_version=$need_version
17468
17469 # Whether dlopen is supported.
17470 dlopen_support=$enable_dlopen
17471
17472 # Whether dlopen of programs is supported.
17473 dlopen_self=$enable_dlopen_self
17474
17475 # Whether dlopen of statically linked programs is supported.
17476 dlopen_self_static=$enable_dlopen_self_static
17477
17478 # Compiler flag to prevent dynamic linking.
17479 link_static_flag=$lt_lt_prog_compiler_static
17480
17481 # Compiler flag to turn off builtin functions.
17482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17483
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17486
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17489
17490 # Compiler flag to generate thread-safe objects.
17491 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17492
17493 # Library versioning type.
17494 version_type=$version_type
17495
17496 # Format of library name prefix.
17497 libname_spec=$lt_libname_spec
17498
17499 # List of archive names.  First name is the real one, the rest are links.
17500 # The last name is the one that the linker finds with -lNAME.
17501 library_names_spec=$lt_library_names_spec
17502
17503 # The coded name of the library, if different from the real name.
17504 soname_spec=$lt_soname_spec
17505
17506 # Commands used to build and install an old-style archive.
17507 RANLIB=$lt_RANLIB
17508 old_archive_cmds=$lt_old_archive_cmds
17509 old_postinstall_cmds=$lt_old_postinstall_cmds
17510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17511
17512 # Create an old-style archive from a shared archive.
17513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17514
17515 # Create a temporary old-style archive to link instead of a shared archive.
17516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17517
17518 # Commands used to build and install a shared archive.
17519 archive_cmds=$lt_archive_cmds
17520 archive_expsym_cmds=$lt_archive_expsym_cmds
17521 postinstall_cmds=$lt_postinstall_cmds
17522 postuninstall_cmds=$lt_postuninstall_cmds
17523
17524 # Commands used to build a loadable module (assumed same as above if empty)
17525 module_cmds=$lt_module_cmds
17526 module_expsym_cmds=$lt_module_expsym_cmds
17527
17528 # Commands to strip libraries.
17529 old_striplib=$lt_old_striplib
17530 striplib=$lt_striplib
17531
17532 # Dependencies to place before the objects being linked to create a
17533 # shared library.
17534 predep_objects=$lt_predep_objects
17535
17536 # Dependencies to place after the objects being linked to create a
17537 # shared library.
17538 postdep_objects=$lt_postdep_objects
17539
17540 # Dependencies to place before the objects being linked to create a
17541 # shared library.
17542 predeps=$lt_predeps
17543
17544 # Dependencies to place after the objects being linked to create a
17545 # shared library.
17546 postdeps=$lt_postdeps
17547
17548 # The library search path used internally by the compiler when linking
17549 # a shared library.
17550 compiler_lib_search_path=$lt_compiler_lib_search_path
17551
17552 # Method to check whether dependent libraries are shared objects.
17553 deplibs_check_method=$lt_deplibs_check_method
17554
17555 # Command to use when deplibs_check_method == file_magic.
17556 file_magic_cmd=$lt_file_magic_cmd
17557
17558 # Flag that allows shared libraries with undefined symbols to be built.
17559 allow_undefined_flag=$lt_allow_undefined_flag
17560
17561 # Flag that forces no undefined symbols.
17562 no_undefined_flag=$lt_no_undefined_flag
17563
17564 # Commands used to finish a libtool library installation in a directory.
17565 finish_cmds=$lt_finish_cmds
17566
17567 # Same as above, but a single script fragment to be evaled but not shown.
17568 finish_eval=$lt_finish_eval
17569
17570 # Take the output of nm and produce a listing of raw symbols and C names.
17571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17572
17573 # Transform the output of nm in a proper C declaration
17574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17575
17576 # Transform the output of nm in a C name address pair
17577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17578
17579 # This is the shared library runtime path variable.
17580 runpath_var=$runpath_var
17581
17582 # This is the shared library path variable.
17583 shlibpath_var=$shlibpath_var
17584
17585 # Is shlibpath searched before the hard-coded library search path?
17586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17587
17588 # How to hardcode a shared library path into an executable.
17589 hardcode_action=$hardcode_action
17590
17591 # Whether we should hardcode library paths into libraries.
17592 hardcode_into_libs=$hardcode_into_libs
17593
17594 # Flag to hardcode \$libdir into a binary during linking.
17595 # This must work even if \$libdir does not exist.
17596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17597
17598 # If ld is used when linking, flag to hardcode \$libdir into
17599 # a binary during linking. This must work even if \$libdir does
17600 # not exist.
17601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17602
17603 # Whether we need a single -rpath flag with a separated argument.
17604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17605
17606 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17607 # resulting binary.
17608 hardcode_direct=$hardcode_direct
17609
17610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17611 # resulting binary.
17612 hardcode_minus_L=$hardcode_minus_L
17613
17614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17615 # the resulting binary.
17616 hardcode_shlibpath_var=$hardcode_shlibpath_var
17617
17618 # Set to yes if building a shared library automatically hardcodes DIR into the library
17619 # and all subsequent libraries and executables linked against it.
17620 hardcode_automatic=$hardcode_automatic
17621
17622 # Variables whose values should be saved in libtool wrapper scripts and
17623 # restored at relink time.
17624 variables_saved_for_relink="$variables_saved_for_relink"
17625
17626 # Whether libtool must link a program against all its dependency libraries.
17627 link_all_deplibs=$link_all_deplibs
17628
17629 # Compile-time system search path for libraries
17630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17631
17632 # Run-time system search path for libraries
17633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17634
17635 # Fix the shell variable \$srcfile for the compiler.
17636 fix_srcfile_path="$fix_srcfile_path"
17637
17638 # Set to yes if exported symbols are required.
17639 always_export_symbols=$always_export_symbols
17640
17641 # The commands to list exported symbols.
17642 export_symbols_cmds=$lt_export_symbols_cmds
17643
17644 # The commands to extract the exported symbol list from a shared archive.
17645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17646
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17649
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17652
17653 # ### END LIBTOOL CONFIG
17654
17655 __EOF__
17656
17657
17658   case $host_os in
17659   aix3*)
17660     cat <<\EOF >> "$cfgfile"
17661
17662 # AIX sometimes has problems with the GCC collect2 program.  For some
17663 # reason, if we set the COLLECT_NAMES environment variable, the problems
17664 # vanish in a puff of smoke.
17665 if test "X${COLLECT_NAMES+set}" != Xset; then
17666   COLLECT_NAMES=
17667   export COLLECT_NAMES
17668 fi
17669 EOF
17670     ;;
17671   esac
17672
17673   # We use sed instead of cat because bash on DJGPP gets confused if
17674   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17675   # text mode, it properly converts lines to CR/LF.  This bash problem
17676   # is reportedly fixed, but why not run on old versions too?
17677   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17678
17679   mv -f "$cfgfile" "$ofile" || \
17680     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17681   chmod +x "$ofile"
17682
17683 else
17684   # If there is no Makefile yet, we rely on a make rule to execute
17685   # `config.status --recheck' to rerun these tests and create the
17686   # libtool script then.
17687   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17688   if test -f "$ltmain_in"; then
17689     test -f Makefile && make "$ltmain"
17690   fi
17691 fi
17692
17693
17694 ac_ext=c
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700 CC="$lt_save_CC"
17701
17702
17703 # Check whether --with-tags was given.
17704 if test "${with_tags+set}" = set; then
17705   withval=$with_tags; tagnames="$withval"
17706 fi
17707
17708
17709 if test -f "$ltmain" && test -n "$tagnames"; then
17710   if test ! -f "${ofile}"; then
17711     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17712 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17713   fi
17714
17715   if test -z "$LTCC"; then
17716     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17717     if test -z "$LTCC"; then
17718       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17719 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17720     else
17721       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17722 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17723     fi
17724   fi
17725   if test -z "$LTCFLAGS"; then
17726     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17727   fi
17728
17729   # Extract list of available tagged configurations in $ofile.
17730   # Note that this assumes the entire list is on one line.
17731   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17732
17733   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17734   for tagname in $tagnames; do
17735     IFS="$lt_save_ifs"
17736     # Check whether tagname contains only valid characters
17737     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17738     "") ;;
17739     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17740 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17741    { (exit 1); exit 1; }; }
17742         ;;
17743     esac
17744
17745     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17746     then
17747       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17748 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17749    { (exit 1); exit 1; }; }
17750     fi
17751
17752     # Update the list of available tags.
17753     if test -n "$tagname"; then
17754       echo appending configuration tag \"$tagname\" to $ofile
17755
17756       case $tagname in
17757       CXX)
17758         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17759             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17760             (test "X$CXX" != "Xg++"))) ; then
17761           ac_ext=cpp
17762 ac_cpp='$CXXCPP $CPPFLAGS'
17763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17766
17767
17768
17769
17770 archive_cmds_need_lc_CXX=no
17771 allow_undefined_flag_CXX=
17772 always_export_symbols_CXX=no
17773 archive_expsym_cmds_CXX=
17774 export_dynamic_flag_spec_CXX=
17775 hardcode_direct_CXX=no
17776 hardcode_libdir_flag_spec_CXX=
17777 hardcode_libdir_flag_spec_ld_CXX=
17778 hardcode_libdir_separator_CXX=
17779 hardcode_minus_L_CXX=no
17780 hardcode_shlibpath_var_CXX=unsupported
17781 hardcode_automatic_CXX=no
17782 module_cmds_CXX=
17783 module_expsym_cmds_CXX=
17784 link_all_deplibs_CXX=unknown
17785 old_archive_cmds_CXX=$old_archive_cmds
17786 no_undefined_flag_CXX=
17787 whole_archive_flag_spec_CXX=
17788 enable_shared_with_static_runtimes_CXX=no
17789
17790 # Dependencies to place before and after the object being linked:
17791 predep_objects_CXX=
17792 postdep_objects_CXX=
17793 predeps_CXX=
17794 postdeps_CXX=
17795 compiler_lib_search_path_CXX=
17796
17797 # Source file extension for C++ test sources.
17798 ac_ext=cpp
17799
17800 # Object file extension for compiled C++ test sources.
17801 objext=o
17802 objext_CXX=$objext
17803
17804 # Code to be used in simple compile tests
17805 lt_simple_compile_test_code="int some_variable = 0;\n"
17806
17807 # Code to be used in simple link tests
17808 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17809
17810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17811
17812 # If no C compiler was specified, use CC.
17813 LTCC=${LTCC-"$CC"}
17814
17815 # If no C compiler flags were specified, use CFLAGS.
17816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17817
17818 # Allow CC to be a program name with arguments.
17819 compiler=$CC
17820
17821
17822 # save warnings/boilerplate of simple test code
17823 ac_outfile=conftest.$ac_objext
17824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17826 _lt_compiler_boilerplate=`cat conftest.err`
17827 $rm conftest*
17828
17829 ac_outfile=conftest.$ac_objext
17830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17832 _lt_linker_boilerplate=`cat conftest.err`
17833 $rm conftest*
17834
17835
17836 # Allow CC to be a program name with arguments.
17837 lt_save_CC=$CC
17838 lt_save_LD=$LD
17839 lt_save_GCC=$GCC
17840 GCC=$GXX
17841 lt_save_with_gnu_ld=$with_gnu_ld
17842 lt_save_path_LD=$lt_cv_path_LD
17843 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17844   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17845 else
17846   $as_unset lt_cv_prog_gnu_ld
17847 fi
17848 if test -n "${lt_cv_path_LDCXX+set}"; then
17849   lt_cv_path_LD=$lt_cv_path_LDCXX
17850 else
17851   $as_unset lt_cv_path_LD
17852 fi
17853 test -z "${LDCXX+set}" || LD=$LDCXX
17854 CC=${CXX-"c++"}
17855 compiler=$CC
17856 compiler_CXX=$CC
17857 for cc_temp in $compiler""; do
17858   case $cc_temp in
17859     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17860     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17861     \-*) ;;
17862     *) break;;
17863   esac
17864 done
17865 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17866
17867
17868 # We don't want -fno-exception wen compiling C++ code, so set the
17869 # no_builtin_flag separately
17870 if test "$GXX" = yes; then
17871   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17872 else
17873   lt_prog_compiler_no_builtin_flag_CXX=
17874 fi
17875
17876 if test "$GXX" = yes; then
17877   # Set up default GNU C++ configuration
17878
17879
17880 # Check whether --with-gnu-ld was given.
17881 if test "${with_gnu_ld+set}" = set; then
17882   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17883 else
17884   with_gnu_ld=no
17885 fi
17886
17887 ac_prog=ld
17888 if test "$GCC" = yes; then
17889   # Check if gcc -print-prog-name=ld gives a path.
17890   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17891 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17892   case $host in
17893   *-*-mingw*)
17894     # gcc leaves a trailing carriage return which upsets mingw
17895     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17896   *)
17897     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17898   esac
17899   case $ac_prog in
17900     # Accept absolute paths.
17901     [\\/]* | ?:[\\/]*)
17902       re_direlt='/[^/][^/]*/\.\./'
17903       # Canonicalize the pathname of ld
17904       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17905       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17906         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17907       done
17908       test -z "$LD" && LD="$ac_prog"
17909       ;;
17910   "")
17911     # If it fails, then pretend we aren't using GCC.
17912     ac_prog=ld
17913     ;;
17914   *)
17915     # If it is relative, then search for the first ld in PATH.
17916     with_gnu_ld=unknown
17917     ;;
17918   esac
17919 elif test "$with_gnu_ld" = yes; then
17920   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17921 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17922 else
17923   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17924 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17925 fi
17926 if test "${lt_cv_path_LD+set}" = set; then
17927   echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929   if test -z "$LD"; then
17930   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17931   for ac_dir in $PATH; do
17932     IFS="$lt_save_ifs"
17933     test -z "$ac_dir" && ac_dir=.
17934     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17935       lt_cv_path_LD="$ac_dir/$ac_prog"
17936       # Check to see if the program is GNU ld.  I'd rather use --version,
17937       # but apparently some variants of GNU ld only accept -v.
17938       # Break only if it was the GNU/non-GNU ld that we prefer.
17939       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17940       *GNU* | *'with BFD'*)
17941         test "$with_gnu_ld" != no && break
17942         ;;
17943       *)
17944         test "$with_gnu_ld" != yes && break
17945         ;;
17946       esac
17947     fi
17948   done
17949   IFS="$lt_save_ifs"
17950 else
17951   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17952 fi
17953 fi
17954
17955 LD="$lt_cv_path_LD"
17956 if test -n "$LD"; then
17957   { echo "$as_me:$LINENO: result: $LD" >&5
17958 echo "${ECHO_T}$LD" >&6; }
17959 else
17960   { echo "$as_me:$LINENO: result: no" >&5
17961 echo "${ECHO_T}no" >&6; }
17962 fi
17963 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17964 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17965    { (exit 1); exit 1; }; }
17966 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17967 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17968 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17972 case `$LD -v 2>&1 </dev/null` in
17973 *GNU* | *'with BFD'*)
17974   lt_cv_prog_gnu_ld=yes
17975   ;;
17976 *)
17977   lt_cv_prog_gnu_ld=no
17978   ;;
17979 esac
17980 fi
17981 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17982 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17983 with_gnu_ld=$lt_cv_prog_gnu_ld
17984
17985
17986
17987   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17988   # archiving commands below assume that GNU ld is being used.
17989   if test "$with_gnu_ld" = yes; then
17990     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991     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'
17992
17993     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17994     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17995
17996     # If archive_cmds runs LD, not CC, wlarc should be empty
17997     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17998     #     investigate it a little bit more. (MM)
17999     wlarc='${wl}'
18000
18001     # ancient GNU ld didn't support --whole-archive et. al.
18002     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18003         grep 'no-whole-archive' > /dev/null; then
18004       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18005     else
18006       whole_archive_flag_spec_CXX=
18007     fi
18008   else
18009     with_gnu_ld=no
18010     wlarc=
18011
18012     # A generic and very simple default shared library creation
18013     # command for GNU C++ for the case where it uses the native
18014     # linker, instead of GNU ld.  If possible, this setting should
18015     # overridden to take advantage of the native linker features on
18016     # the platform it is being used on.
18017     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18018   fi
18019
18020   # Commands to make compiler produce verbose output that lists
18021   # what "hidden" libraries, object files and flags are used when
18022   # linking a shared library.
18023   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18024
18025 else
18026   GXX=no
18027   with_gnu_ld=no
18028   wlarc=
18029 fi
18030
18031 # PORTME: fill in a description of your system's C++ link characteristics
18032 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18033 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18034 ld_shlibs_CXX=yes
18035 case $host_os in
18036   aix3*)
18037     # FIXME: insert proper C++ library support
18038     ld_shlibs_CXX=no
18039     ;;
18040   aix4* | aix5*)
18041     if test "$host_cpu" = ia64; then
18042       # On IA64, the linker does run time linking by default, so we don't
18043       # have to do anything special.
18044       aix_use_runtimelinking=no
18045       exp_sym_flag='-Bexport'
18046       no_entry_flag=""
18047     else
18048       aix_use_runtimelinking=no
18049
18050       # Test if we are trying to use run time linking or normal
18051       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18052       # need to do runtime linking.
18053       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18054         for ld_flag in $LDFLAGS; do
18055           case $ld_flag in
18056           *-brtl*)
18057             aix_use_runtimelinking=yes
18058             break
18059             ;;
18060           esac
18061         done
18062         ;;
18063       esac
18064
18065       exp_sym_flag='-bexport'
18066       no_entry_flag='-bnoentry'
18067     fi
18068
18069     # When large executables or shared objects are built, AIX ld can
18070     # have problems creating the table of contents.  If linking a library
18071     # or program results in "error TOC overflow" add -mminimal-toc to
18072     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18073     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18074
18075     archive_cmds_CXX=''
18076     hardcode_direct_CXX=yes
18077     hardcode_libdir_separator_CXX=':'
18078     link_all_deplibs_CXX=yes
18079
18080     if test "$GXX" = yes; then
18081       case $host_os in aix4.[012]|aix4.[012].*)
18082       # We only want to do this on AIX 4.2 and lower, the check
18083       # below for broken collect2 doesn't work under 4.3+
18084         collect2name=`${CC} -print-prog-name=collect2`
18085         if test -f "$collect2name" && \
18086            strings "$collect2name" | grep resolve_lib_name >/dev/null
18087         then
18088           # We have reworked collect2
18089           hardcode_direct_CXX=yes
18090         else
18091           # We have old collect2
18092           hardcode_direct_CXX=unsupported
18093           # It fails to find uninstalled libraries when the uninstalled
18094           # path is not listed in the libpath.  Setting hardcode_minus_L
18095           # to unsupported forces relinking
18096           hardcode_minus_L_CXX=yes
18097           hardcode_libdir_flag_spec_CXX='-L$libdir'
18098           hardcode_libdir_separator_CXX=
18099         fi
18100         ;;
18101       esac
18102       shared_flag='-shared'
18103       if test "$aix_use_runtimelinking" = yes; then
18104         shared_flag="$shared_flag "'${wl}-G'
18105       fi
18106     else
18107       # not using gcc
18108       if test "$host_cpu" = ia64; then
18109         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18110         # chokes on -Wl,-G. The following line is correct:
18111         shared_flag='-G'
18112       else
18113         if test "$aix_use_runtimelinking" = yes; then
18114           shared_flag='${wl}-G'
18115         else
18116           shared_flag='${wl}-bM:SRE'
18117         fi
18118       fi
18119     fi
18120
18121     # It seems that -bexpall does not export symbols beginning with
18122     # underscore (_), so it is better to generate a list of symbols to export.
18123     always_export_symbols_CXX=yes
18124     if test "$aix_use_runtimelinking" = yes; then
18125       # Warning - without using the other runtime loading flags (-brtl),
18126       # -berok will link without error, but may produce a broken library.
18127       allow_undefined_flag_CXX='-berok'
18128       # Determine the default libpath from the value encoded in an empty executable.
18129       cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 int
18137 main ()
18138 {
18139
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_link") 2>conftest.er1
18152   ac_status=$?
18153   grep -v '^ *+' conftest.er1 >conftest.err
18154   rm -f conftest.er1
18155   cat conftest.err >&5
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); } &&
18158          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18159   { (case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164   (eval "$ac_try") 2>&5
18165   ac_status=$?
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); }; } &&
18168          { ac_try='test -s conftest$ac_exeext'
18169   { (case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_try") 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; }; then
18178
18179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18180 }'`
18181 # Check for a 64-bit object if we didn't find anything.
18182 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18183 }'`; fi
18184 else
18185   echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188
18189 fi
18190
18191 rm -f core conftest.err conftest.$ac_objext \
18192       conftest$ac_exeext conftest.$ac_ext
18193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18194
18195       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18196
18197       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"
18198      else
18199       if test "$host_cpu" = ia64; then
18200         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18201         allow_undefined_flag_CXX="-z nodefs"
18202         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"
18203       else
18204         # Determine the default libpath from the value encoded in an empty executable.
18205         cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h.  */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h.  */
18211
18212 int
18213 main ()
18214 {
18215
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_link") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18235   { (case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_try") 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; } &&
18244          { ac_try='test -s conftest$ac_exeext'
18245   { (case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_try") 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); }; }; then
18254
18255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18256 }'`
18257 # Check for a 64-bit object if we didn't find anything.
18258 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18259 }'`; fi
18260 else
18261   echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18263
18264
18265 fi
18266
18267 rm -f core conftest.err conftest.$ac_objext \
18268       conftest$ac_exeext conftest.$ac_ext
18269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18270
18271         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18272         # Warning - without using the other run time loading flags,
18273         # -berok will link without error, but may produce a broken library.
18274         no_undefined_flag_CXX=' ${wl}-bernotok'
18275         allow_undefined_flag_CXX=' ${wl}-berok'
18276         # Exported symbols can be pulled into shared objects from archives
18277         whole_archive_flag_spec_CXX='$convenience'
18278         archive_cmds_need_lc_CXX=yes
18279         # This is similar to how AIX traditionally builds its shared libraries.
18280         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'
18281       fi
18282     fi
18283     ;;
18284
18285   beos*)
18286     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18287       allow_undefined_flag_CXX=unsupported
18288       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18289       # support --undefined.  This deserves some investigation.  FIXME
18290       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18291     else
18292       ld_shlibs_CXX=no
18293     fi
18294     ;;
18295
18296   chorus*)
18297     case $cc_basename in
18298       *)
18299         # FIXME: insert proper C++ library support
18300         ld_shlibs_CXX=no
18301         ;;
18302     esac
18303     ;;
18304
18305   cygwin* | mingw* | pw32*)
18306     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18307     # as there is no search path for DLLs.
18308     hardcode_libdir_flag_spec_CXX='-L$libdir'
18309     allow_undefined_flag_CXX=unsupported
18310     always_export_symbols_CXX=no
18311     enable_shared_with_static_runtimes_CXX=yes
18312
18313     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18314       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'
18315       # If the export-symbols file already is a .def file (1st line
18316       # is EXPORTS), use it as is; otherwise, prepend...
18317       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18318         cp $export_symbols $output_objdir/$soname.def;
18319       else
18320         echo EXPORTS > $output_objdir/$soname.def;
18321         cat $export_symbols >> $output_objdir/$soname.def;
18322       fi~
18323       $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'
18324     else
18325       ld_shlibs_CXX=no
18326     fi
18327   ;;
18328       darwin* | rhapsody*)
18329         case $host_os in
18330         rhapsody* | darwin1.[012])
18331          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18332          ;;
18333        *) # Darwin 1.3 on
18334          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18335            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18336          else
18337            case ${MACOSX_DEPLOYMENT_TARGET} in
18338              10.[012])
18339                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18340                ;;
18341              10.*)
18342                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18343                ;;
18344            esac
18345          fi
18346          ;;
18347         esac
18348       archive_cmds_need_lc_CXX=no
18349       hardcode_direct_CXX=no
18350       hardcode_automatic_CXX=yes
18351       hardcode_shlibpath_var_CXX=unsupported
18352       whole_archive_flag_spec_CXX=''
18353       link_all_deplibs_CXX=yes
18354
18355     if test "$GXX" = yes ; then
18356       lt_int_apple_cc_single_mod=no
18357       output_verbose_link_cmd='echo'
18358       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18359        lt_int_apple_cc_single_mod=yes
18360       fi
18361       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18362        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18363       else
18364           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'
18365         fi
18366         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18367         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18368           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18369             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}'
18370           else
18371             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}'
18372           fi
18373             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}'
18374       else
18375       case $cc_basename in
18376         xlc*)
18377          output_verbose_link_cmd='echo'
18378           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18379           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18380           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18381           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18382           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}'
18383           ;;
18384        *)
18385          ld_shlibs_CXX=no
18386           ;;
18387       esac
18388       fi
18389         ;;
18390
18391   dgux*)
18392     case $cc_basename in
18393       ec++*)
18394         # FIXME: insert proper C++ library support
18395         ld_shlibs_CXX=no
18396         ;;
18397       ghcx*)
18398         # Green Hills C++ Compiler
18399         # FIXME: insert proper C++ library support
18400         ld_shlibs_CXX=no
18401         ;;
18402       *)
18403         # FIXME: insert proper C++ library support
18404         ld_shlibs_CXX=no
18405         ;;
18406     esac
18407     ;;
18408   freebsd[12]*)
18409     # C++ shared libraries reported to be fairly broken before switch to ELF
18410     ld_shlibs_CXX=no
18411     ;;
18412   freebsd-elf*)
18413     archive_cmds_need_lc_CXX=no
18414     ;;
18415   freebsd* | kfreebsd*-gnu | dragonfly*)
18416     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18417     # conventions
18418     ld_shlibs_CXX=yes
18419     ;;
18420   gnu*)
18421     ;;
18422   hpux9*)
18423     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18424     hardcode_libdir_separator_CXX=:
18425     export_dynamic_flag_spec_CXX='${wl}-E'
18426     hardcode_direct_CXX=yes
18427     hardcode_minus_L_CXX=yes # Not in the search PATH,
18428                                 # but as the default
18429                                 # location of the library.
18430
18431     case $cc_basename in
18432     CC*)
18433       # FIXME: insert proper C++ library support
18434       ld_shlibs_CXX=no
18435       ;;
18436     aCC*)
18437       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'
18438       # Commands to make compiler produce verbose output that lists
18439       # what "hidden" libraries, object files and flags are used when
18440       # linking a shared library.
18441       #
18442       # There doesn't appear to be a way to prevent this compiler from
18443       # explicitly linking system object files so we need to strip them
18444       # from the output so that they don't get included in the library
18445       # dependencies.
18446       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'
18447       ;;
18448     *)
18449       if test "$GXX" = yes; then
18450         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'
18451       else
18452         # FIXME: insert proper C++ library support
18453         ld_shlibs_CXX=no
18454       fi
18455       ;;
18456     esac
18457     ;;
18458   hpux10*|hpux11*)
18459     if test $with_gnu_ld = no; then
18460       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18461       hardcode_libdir_separator_CXX=:
18462
18463       case $host_cpu in
18464       hppa*64*|ia64*)
18465         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18466         ;;
18467       *)
18468         export_dynamic_flag_spec_CXX='${wl}-E'
18469         ;;
18470       esac
18471     fi
18472     case $host_cpu in
18473     hppa*64*|ia64*)
18474       hardcode_direct_CXX=no
18475       hardcode_shlibpath_var_CXX=no
18476       ;;
18477     *)
18478       hardcode_direct_CXX=yes
18479       hardcode_minus_L_CXX=yes # Not in the search PATH,
18480                                               # but as the default
18481                                               # location of the library.
18482       ;;
18483     esac
18484
18485     case $cc_basename in
18486       CC*)
18487         # FIXME: insert proper C++ library support
18488         ld_shlibs_CXX=no
18489         ;;
18490       aCC*)
18491         case $host_cpu in
18492         hppa*64*)
18493           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18494           ;;
18495         ia64*)
18496           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18497           ;;
18498         *)
18499           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18500           ;;
18501         esac
18502         # Commands to make compiler produce verbose output that lists
18503         # what "hidden" libraries, object files and flags are used when
18504         # linking a shared library.
18505         #
18506         # There doesn't appear to be a way to prevent this compiler from
18507         # explicitly linking system object files so we need to strip them
18508         # from the output so that they don't get included in the library
18509         # dependencies.
18510         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'
18511         ;;
18512       *)
18513         if test "$GXX" = yes; then
18514           if test $with_gnu_ld = no; then
18515             case $host_cpu in
18516             hppa*64*)
18517               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518               ;;
18519             ia64*)
18520               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18521               ;;
18522             *)
18523               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'
18524               ;;
18525             esac
18526           fi
18527         else
18528           # FIXME: insert proper C++ library support
18529           ld_shlibs_CXX=no
18530         fi
18531         ;;
18532     esac
18533     ;;
18534   interix3*)
18535     hardcode_direct_CXX=no
18536     hardcode_shlibpath_var_CXX=no
18537     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18538     export_dynamic_flag_spec_CXX='${wl}-E'
18539     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18540     # Instead, shared libraries are loaded at an image base (0x10000000 by
18541     # default) and relocated if they conflict, which is a slow very memory
18542     # consuming and fragmenting process.  To avoid this, we pick a random,
18543     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18544     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18545     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'
18546     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'
18547     ;;
18548   irix5* | irix6*)
18549     case $cc_basename in
18550       CC*)
18551         # SGI C++
18552         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'
18553
18554         # Archives containing C++ object files must be created using
18555         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18556         # necessary to make sure instantiated templates are included
18557         # in the archive.
18558         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18559         ;;
18560       *)
18561         if test "$GXX" = yes; then
18562           if test "$with_gnu_ld" = no; then
18563             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'
18564           else
18565             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'
18566           fi
18567         fi
18568         link_all_deplibs_CXX=yes
18569         ;;
18570     esac
18571     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18572     hardcode_libdir_separator_CXX=:
18573     ;;
18574   linux*)
18575     case $cc_basename in
18576       KCC*)
18577         # Kuck and Associates, Inc. (KAI) C++ Compiler
18578
18579         # KCC will only create a shared library if the output file
18580         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18581         # to its proper name (with version) after linking.
18582         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'
18583         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'
18584         # Commands to make compiler produce verbose output that lists
18585         # what "hidden" libraries, object files and flags are used when
18586         # linking a shared library.
18587         #
18588         # There doesn't appear to be a way to prevent this compiler from
18589         # explicitly linking system object files so we need to strip them
18590         # from the output so that they don't get included in the library
18591         # dependencies.
18592         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'
18593
18594         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18595         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18596
18597         # Archives containing C++ object files must be created using
18598         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18599         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18600         ;;
18601       icpc*)
18602         # Intel C++
18603         with_gnu_ld=yes
18604         # version 8.0 and above of icpc choke on multiply defined symbols
18605         # if we add $predep_objects and $postdep_objects, however 7.1 and
18606         # earlier do not add the objects themselves.
18607         case `$CC -V 2>&1` in
18608         *"Version 7."*)
18609           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610           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'
18611           ;;
18612         *)  # Version 8.0 or newer
18613           tmp_idyn=
18614           case $host_cpu in
18615             ia64*) tmp_idyn=' -i_dynamic';;
18616           esac
18617           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618           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'
18619           ;;
18620         esac
18621         archive_cmds_need_lc_CXX=no
18622         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18624         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18625         ;;
18626       pgCC*)
18627         # Portland Group C++ compiler
18628         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18629         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'
18630
18631         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18632         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18633         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'
18634         ;;
18635       cxx*)
18636         # Compaq C++
18637         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638         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'
18639
18640         runpath_var=LD_RUN_PATH
18641         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18642         hardcode_libdir_separator_CXX=:
18643
18644         # Commands to make compiler produce verbose output that lists
18645         # what "hidden" libraries, object files and flags are used when
18646         # linking a shared library.
18647         #
18648         # There doesn't appear to be a way to prevent this compiler from
18649         # explicitly linking system object files so we need to strip them
18650         # from the output so that they don't get included in the library
18651         # dependencies.
18652         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'
18653         ;;
18654     esac
18655     ;;
18656   lynxos*)
18657     # FIXME: insert proper C++ library support
18658     ld_shlibs_CXX=no
18659     ;;
18660   m88k*)
18661     # FIXME: insert proper C++ library support
18662     ld_shlibs_CXX=no
18663     ;;
18664   mvs*)
18665     case $cc_basename in
18666       cxx*)
18667         # FIXME: insert proper C++ library support
18668         ld_shlibs_CXX=no
18669         ;;
18670       *)
18671         # FIXME: insert proper C++ library support
18672         ld_shlibs_CXX=no
18673         ;;
18674     esac
18675     ;;
18676   netbsd*)
18677     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18678       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18679       wlarc=
18680       hardcode_libdir_flag_spec_CXX='-R$libdir'
18681       hardcode_direct_CXX=yes
18682       hardcode_shlibpath_var_CXX=no
18683     fi
18684     # Workaround some broken pre-1.5 toolchains
18685     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18686     ;;
18687   openbsd2*)
18688     # C++ shared libraries are fairly broken
18689     ld_shlibs_CXX=no
18690     ;;
18691   openbsd*)
18692     hardcode_direct_CXX=yes
18693     hardcode_shlibpath_var_CXX=no
18694     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18695     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18696     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18697       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18698       export_dynamic_flag_spec_CXX='${wl}-E'
18699       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18700     fi
18701     output_verbose_link_cmd='echo'
18702     ;;
18703   osf3*)
18704     case $cc_basename in
18705       KCC*)
18706         # Kuck and Associates, Inc. (KAI) C++ Compiler
18707
18708         # KCC will only create a shared library if the output file
18709         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18710         # to its proper name (with version) after linking.
18711         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'
18712
18713         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714         hardcode_libdir_separator_CXX=:
18715
18716         # Archives containing C++ object files must be created using
18717         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18718         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18719
18720         ;;
18721       RCC*)
18722         # Rational C++ 2.4.1
18723         # FIXME: insert proper C++ library support
18724         ld_shlibs_CXX=no
18725         ;;
18726       cxx*)
18727         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18728         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'
18729
18730         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18731         hardcode_libdir_separator_CXX=:
18732
18733         # Commands to make compiler produce verbose output that lists
18734         # what "hidden" libraries, object files and flags are used when
18735         # linking a shared library.
18736         #
18737         # There doesn't appear to be a way to prevent this compiler from
18738         # explicitly linking system object files so we need to strip them
18739         # from the output so that they don't get included in the library
18740         # dependencies.
18741         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'
18742         ;;
18743       *)
18744         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18745           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18746           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'
18747
18748           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749           hardcode_libdir_separator_CXX=:
18750
18751           # Commands to make compiler produce verbose output that lists
18752           # what "hidden" libraries, object files and flags are used when
18753           # linking a shared library.
18754           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18755
18756         else
18757           # FIXME: insert proper C++ library support
18758           ld_shlibs_CXX=no
18759         fi
18760         ;;
18761     esac
18762     ;;
18763   osf4* | osf5*)
18764     case $cc_basename in
18765       KCC*)
18766         # Kuck and Associates, Inc. (KAI) C++ Compiler
18767
18768         # KCC will only create a shared library if the output file
18769         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18770         # to its proper name (with version) after linking.
18771         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'
18772
18773         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18774         hardcode_libdir_separator_CXX=:
18775
18776         # Archives containing C++ object files must be created using
18777         # the KAI C++ compiler.
18778         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18779         ;;
18780       RCC*)
18781         # Rational C++ 2.4.1
18782         # FIXME: insert proper C++ library support
18783         ld_shlibs_CXX=no
18784         ;;
18785       cxx*)
18786         allow_undefined_flag_CXX=' -expect_unresolved \*'
18787         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'
18788         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18789           echo "-hidden">> $lib.exp~
18790           $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~
18791           $rm $lib.exp'
18792
18793         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18794         hardcode_libdir_separator_CXX=:
18795
18796         # Commands to make compiler produce verbose output that lists
18797         # what "hidden" libraries, object files and flags are used when
18798         # linking a shared library.
18799         #
18800         # There doesn't appear to be a way to prevent this compiler from
18801         # explicitly linking system object files so we need to strip them
18802         # from the output so that they don't get included in the library
18803         # dependencies.
18804         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'
18805         ;;
18806       *)
18807         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18808           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18809          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'
18810
18811           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18812           hardcode_libdir_separator_CXX=:
18813
18814           # Commands to make compiler produce verbose output that lists
18815           # what "hidden" libraries, object files and flags are used when
18816           # linking a shared library.
18817           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18818
18819         else
18820           # FIXME: insert proper C++ library support
18821           ld_shlibs_CXX=no
18822         fi
18823         ;;
18824     esac
18825     ;;
18826   psos*)
18827     # FIXME: insert proper C++ library support
18828     ld_shlibs_CXX=no
18829     ;;
18830   sunos4*)
18831     case $cc_basename in
18832       CC*)
18833         # Sun C++ 4.x
18834         # FIXME: insert proper C++ library support
18835         ld_shlibs_CXX=no
18836         ;;
18837       lcc*)
18838         # Lucid
18839         # FIXME: insert proper C++ library support
18840         ld_shlibs_CXX=no
18841         ;;
18842       *)
18843         # FIXME: insert proper C++ library support
18844         ld_shlibs_CXX=no
18845         ;;
18846     esac
18847     ;;
18848   solaris*)
18849     case $cc_basename in
18850       CC*)
18851         # Sun C++ 4.2, 5.x and Centerline C++
18852         archive_cmds_need_lc_CXX=yes
18853         no_undefined_flag_CXX=' -zdefs'
18854         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18855         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18856         $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'
18857
18858         hardcode_libdir_flag_spec_CXX='-R$libdir'
18859         hardcode_shlibpath_var_CXX=no
18860         case $host_os in
18861           solaris2.[0-5] | solaris2.[0-5].*) ;;
18862           *)
18863             # The C++ compiler is used as linker so we must use $wl
18864             # flag to pass the commands to the underlying system
18865             # linker. We must also pass each convience library through
18866             # to the system linker between allextract/defaultextract.
18867             # The C++ compiler will combine linker options so we
18868             # cannot just pass the convience library names through
18869             # without $wl.
18870             # Supported since Solaris 2.6 (maybe 2.5.1?)
18871             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
18872             ;;
18873         esac
18874         link_all_deplibs_CXX=yes
18875
18876         output_verbose_link_cmd='echo'
18877
18878         # Archives containing C++ object files must be created using
18879         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18880         # necessary to make sure instantiated templates are included
18881         # in the archive.
18882         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18883         ;;
18884       gcx*)
18885         # Green Hills C++ Compiler
18886         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18887
18888         # The C++ compiler must be used to create the archive.
18889         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18890         ;;
18891       *)
18892         # GNU C++ compiler with Solaris linker
18893         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18894           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18895           if $CC --version | grep -v '^2\.7' > /dev/null; then
18896             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18897             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18898                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18899
18900             # Commands to make compiler produce verbose output that lists
18901             # what "hidden" libraries, object files and flags are used when
18902             # linking a shared library.
18903             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18904           else
18905             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18906             # platform.
18907             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18908             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18909                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18910
18911             # Commands to make compiler produce verbose output that lists
18912             # what "hidden" libraries, object files and flags are used when
18913             # linking a shared library.
18914             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18915           fi
18916
18917           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18918         fi
18919         ;;
18920     esac
18921     ;;
18922   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18923     no_undefined_flag_CXX='${wl}-z,text'
18924     archive_cmds_need_lc_CXX=no
18925     hardcode_shlibpath_var_CXX=no
18926     runpath_var='LD_RUN_PATH'
18927
18928     case $cc_basename in
18929       CC*)
18930         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18932         ;;
18933       *)
18934         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18935         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18936         ;;
18937     esac
18938     ;;
18939   sysv5* | sco3.2v5* | sco5v6*)
18940     # Note: We can NOT use -z defs as we might desire, because we do not
18941     # link with -lc, and that would cause any symbols used from libc to
18942     # always be unresolved, which means just about no library would
18943     # ever link correctly.  If we're not using GNU ld we use -z text
18944     # though, which does catch some bad symbols but isn't as heavy-handed
18945     # as -z defs.
18946     # For security reasons, it is highly recommended that you always
18947     # use absolute paths for naming shared libraries, and exclude the
18948     # DT_RUNPATH tag from executables and libraries.  But doing so
18949     # requires that you compile everything twice, which is a pain.
18950     # So that behaviour is only enabled if SCOABSPATH is set to a
18951     # non-empty value in the environment.  Most likely only useful for
18952     # creating official distributions of packages.
18953     # This is a hack until libtool officially supports absolute path
18954     # names for shared libraries.
18955     no_undefined_flag_CXX='${wl}-z,text'
18956     allow_undefined_flag_CXX='${wl}-z,nodefs'
18957     archive_cmds_need_lc_CXX=no
18958     hardcode_shlibpath_var_CXX=no
18959     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18960     hardcode_libdir_separator_CXX=':'
18961     link_all_deplibs_CXX=yes
18962     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18963     runpath_var='LD_RUN_PATH'
18964
18965     case $cc_basename in
18966       CC*)
18967         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18968         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18969         ;;
18970       *)
18971         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18972         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18973         ;;
18974     esac
18975     ;;
18976   tandem*)
18977     case $cc_basename in
18978       NCC*)
18979         # NonStop-UX NCC 3.20
18980         # FIXME: insert proper C++ library support
18981         ld_shlibs_CXX=no
18982         ;;
18983       *)
18984         # FIXME: insert proper C++ library support
18985         ld_shlibs_CXX=no
18986         ;;
18987     esac
18988     ;;
18989   vxworks*)
18990     # FIXME: insert proper C++ library support
18991     ld_shlibs_CXX=no
18992     ;;
18993   *)
18994     # FIXME: insert proper C++ library support
18995     ld_shlibs_CXX=no
18996     ;;
18997 esac
18998 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19000 test "$ld_shlibs_CXX" = no && can_build_shared=no
19001
19002 GCC_CXX="$GXX"
19003 LD_CXX="$LD"
19004
19005
19006 cat > conftest.$ac_ext <<EOF
19007 class Foo
19008 {
19009 public:
19010   Foo (void) { a = 0; }
19011 private:
19012   int a;
19013 };
19014 EOF
19015
19016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017   (eval $ac_compile) 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; then
19021   # Parse the compiler output and extract the necessary
19022   # objects, libraries and library flags.
19023
19024   # Sentinel used to keep track of whether or not we are before
19025   # the conftest object file.
19026   pre_test_object_deps_done=no
19027
19028   # The `*' in the case matches for architectures that use `case' in
19029   # $output_verbose_cmd can trigger glob expansion during the loop
19030   # eval without this substitution.
19031   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19032
19033   for p in `eval $output_verbose_link_cmd`; do
19034     case $p in
19035
19036     -L* | -R* | -l*)
19037        # Some compilers place space between "-{L,R}" and the path.
19038        # Remove the space.
19039        if test $p = "-L" \
19040           || test $p = "-R"; then
19041          prev=$p
19042          continue
19043        else
19044          prev=
19045        fi
19046
19047        if test "$pre_test_object_deps_done" = no; then
19048          case $p in
19049          -L* | -R*)
19050            # Internal compiler library paths should come after those
19051            # provided the user.  The postdeps already come after the
19052            # user supplied libs so there is no need to process them.
19053            if test -z "$compiler_lib_search_path_CXX"; then
19054              compiler_lib_search_path_CXX="${prev}${p}"
19055            else
19056              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19057            fi
19058            ;;
19059          # The "-l" case would never come before the object being
19060          # linked, so don't bother handling this case.
19061          esac
19062        else
19063          if test -z "$postdeps_CXX"; then
19064            postdeps_CXX="${prev}${p}"
19065          else
19066            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19067          fi
19068        fi
19069        ;;
19070
19071     *.$objext)
19072        # This assumes that the test object file only shows up
19073        # once in the compiler output.
19074        if test "$p" = "conftest.$objext"; then
19075          pre_test_object_deps_done=yes
19076          continue
19077        fi
19078
19079        if test "$pre_test_object_deps_done" = no; then
19080          if test -z "$predep_objects_CXX"; then
19081            predep_objects_CXX="$p"
19082          else
19083            predep_objects_CXX="$predep_objects_CXX $p"
19084          fi
19085        else
19086          if test -z "$postdep_objects_CXX"; then
19087            postdep_objects_CXX="$p"
19088          else
19089            postdep_objects_CXX="$postdep_objects_CXX $p"
19090          fi
19091        fi
19092        ;;
19093
19094     *) ;; # Ignore the rest.
19095
19096     esac
19097   done
19098
19099   # Clean up.
19100   rm -f a.out a.exe
19101 else
19102   echo "libtool.m4: error: problem compiling CXX test program"
19103 fi
19104
19105 $rm -f confest.$objext
19106
19107 # PORTME: override above test on systems where it is broken
19108 case $host_os in
19109 interix3*)
19110   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19111   # hack all around it, let's just trust "g++" to DTRT.
19112   predep_objects_CXX=
19113   postdep_objects_CXX=
19114   postdeps_CXX=
19115   ;;
19116
19117 solaris*)
19118   case $cc_basename in
19119   CC*)
19120     # Adding this requires a known-good setup of shared libraries for
19121     # Sun compiler versions before 5.6, else PIC objects from an old
19122     # archive will be linked into the output, leading to subtle bugs.
19123     postdeps_CXX='-lCstd -lCrun'
19124     ;;
19125   esac
19126   ;;
19127 esac
19128
19129
19130 case " $postdeps_CXX " in
19131 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19132 esac
19133
19134 lt_prog_compiler_wl_CXX=
19135 lt_prog_compiler_pic_CXX=
19136 lt_prog_compiler_static_CXX=
19137
19138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19140
19141   # C++ specific cases for pic, static, wl, etc.
19142   if test "$GXX" = yes; then
19143     lt_prog_compiler_wl_CXX='-Wl,'
19144     lt_prog_compiler_static_CXX='-static'
19145
19146     case $host_os in
19147     aix*)
19148       # All AIX code is PIC.
19149       if test "$host_cpu" = ia64; then
19150         # AIX 5 now supports IA64 processor
19151         lt_prog_compiler_static_CXX='-Bstatic'
19152       fi
19153       ;;
19154     amigaos*)
19155       # FIXME: we need at least 68020 code to build shared libraries, but
19156       # adding the `-m68020' flag to GCC prevents building anything better,
19157       # like `-m68040'.
19158       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19159       ;;
19160     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19161       # PIC is the default for these OSes.
19162       ;;
19163     mingw* | os2* | pw32*)
19164       # This hack is so that the source file can tell whether it is being
19165       # built for inclusion in a dll (and should export symbols for example).
19166       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19167       ;;
19168     darwin* | rhapsody*)
19169       # PIC is the default on this platform
19170       # Common symbols not allowed in MH_DYLIB files
19171       lt_prog_compiler_pic_CXX='-fno-common'
19172       ;;
19173     *djgpp*)
19174       # DJGPP does not support shared libraries at all
19175       lt_prog_compiler_pic_CXX=
19176       ;;
19177     interix3*)
19178       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19179       # Instead, we relocate shared libraries at runtime.
19180       ;;
19181     sysv4*MP*)
19182       if test -d /usr/nec; then
19183         lt_prog_compiler_pic_CXX=-Kconform_pic
19184       fi
19185       ;;
19186     hpux*)
19187       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19188       # not for PA HP-UX.
19189       case $host_cpu in
19190       hppa*64*|ia64*)
19191         ;;
19192       *)
19193         lt_prog_compiler_pic_CXX='-fPIC'
19194         ;;
19195       esac
19196       ;;
19197     *)
19198       lt_prog_compiler_pic_CXX='-fPIC'
19199       ;;
19200     esac
19201   else
19202     case $host_os in
19203       aix4* | aix5*)
19204         # All AIX code is PIC.
19205         if test "$host_cpu" = ia64; then
19206           # AIX 5 now supports IA64 processor
19207           lt_prog_compiler_static_CXX='-Bstatic'
19208         else
19209           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19210         fi
19211         ;;
19212       chorus*)
19213         case $cc_basename in
19214         cxch68*)
19215           # Green Hills C++ Compiler
19216           # _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"
19217           ;;
19218         esac
19219         ;;
19220        darwin*)
19221          # PIC is the default on this platform
19222          # Common symbols not allowed in MH_DYLIB files
19223          case $cc_basename in
19224            xlc*)
19225            lt_prog_compiler_pic_CXX='-qnocommon'
19226            lt_prog_compiler_wl_CXX='-Wl,'
19227            ;;
19228          esac
19229        ;;
19230       dgux*)
19231         case $cc_basename in
19232           ec++*)
19233             lt_prog_compiler_pic_CXX='-KPIC'
19234             ;;
19235           ghcx*)
19236             # Green Hills C++ Compiler
19237             lt_prog_compiler_pic_CXX='-pic'
19238             ;;
19239           *)
19240             ;;
19241         esac
19242         ;;
19243       freebsd* | kfreebsd*-gnu | dragonfly*)
19244         # FreeBSD uses GNU C++
19245         ;;
19246       hpux9* | hpux10* | hpux11*)
19247         case $cc_basename in
19248           CC*)
19249             lt_prog_compiler_wl_CXX='-Wl,'
19250             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19251             if test "$host_cpu" != ia64; then
19252               lt_prog_compiler_pic_CXX='+Z'
19253             fi
19254             ;;
19255           aCC*)
19256             lt_prog_compiler_wl_CXX='-Wl,'
19257             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19258             case $host_cpu in
19259             hppa*64*|ia64*)
19260               # +Z the default
19261               ;;
19262             *)
19263               lt_prog_compiler_pic_CXX='+Z'
19264               ;;
19265             esac
19266             ;;
19267           *)
19268             ;;
19269         esac
19270         ;;
19271       interix*)
19272         # This is c89, which is MS Visual C++ (no shared libs)
19273         # Anyone wants to do a port?
19274         ;;
19275       irix5* | irix6* | nonstopux*)
19276         case $cc_basename in
19277           CC*)
19278             lt_prog_compiler_wl_CXX='-Wl,'
19279             lt_prog_compiler_static_CXX='-non_shared'
19280             # CC pic flag -KPIC is the default.
19281             ;;
19282           *)
19283             ;;
19284         esac
19285         ;;
19286       linux*)
19287         case $cc_basename in
19288           KCC*)
19289             # KAI C++ Compiler
19290             lt_prog_compiler_wl_CXX='--backend -Wl,'
19291             lt_prog_compiler_pic_CXX='-fPIC'
19292             ;;
19293           icpc* | ecpc*)
19294             # Intel C++
19295             lt_prog_compiler_wl_CXX='-Wl,'
19296             lt_prog_compiler_pic_CXX='-KPIC'
19297             lt_prog_compiler_static_CXX='-static'
19298             ;;
19299           pgCC*)
19300             # Portland Group C++ compiler.
19301             lt_prog_compiler_wl_CXX='-Wl,'
19302             lt_prog_compiler_pic_CXX='-fpic'
19303             lt_prog_compiler_static_CXX='-Bstatic'
19304             ;;
19305           cxx*)
19306             # Compaq C++
19307             # Make sure the PIC flag is empty.  It appears that all Alpha
19308             # Linux and Compaq Tru64 Unix objects are PIC.
19309             lt_prog_compiler_pic_CXX=
19310             lt_prog_compiler_static_CXX='-non_shared'
19311             ;;
19312           *)
19313             ;;
19314         esac
19315         ;;
19316       lynxos*)
19317         ;;
19318       m88k*)
19319         ;;
19320       mvs*)
19321         case $cc_basename in
19322           cxx*)
19323             lt_prog_compiler_pic_CXX='-W c,exportall'
19324             ;;
19325           *)
19326             ;;
19327         esac
19328         ;;
19329       netbsd*)
19330         ;;
19331       osf3* | osf4* | osf5*)
19332         case $cc_basename in
19333           KCC*)
19334             lt_prog_compiler_wl_CXX='--backend -Wl,'
19335             ;;
19336           RCC*)
19337             # Rational C++ 2.4.1
19338             lt_prog_compiler_pic_CXX='-pic'
19339             ;;
19340           cxx*)
19341             # Digital/Compaq C++
19342             lt_prog_compiler_wl_CXX='-Wl,'
19343             # Make sure the PIC flag is empty.  It appears that all Alpha
19344             # Linux and Compaq Tru64 Unix objects are PIC.
19345             lt_prog_compiler_pic_CXX=
19346             lt_prog_compiler_static_CXX='-non_shared'
19347             ;;
19348           *)
19349             ;;
19350         esac
19351         ;;
19352       psos*)
19353         ;;
19354       solaris*)
19355         case $cc_basename in
19356           CC*)
19357             # Sun C++ 4.2, 5.x and Centerline C++
19358             lt_prog_compiler_pic_CXX='-KPIC'
19359             lt_prog_compiler_static_CXX='-Bstatic'
19360             lt_prog_compiler_wl_CXX='-Qoption ld '
19361             ;;
19362           gcx*)
19363             # Green Hills C++ Compiler
19364             lt_prog_compiler_pic_CXX='-PIC'
19365             ;;
19366           *)
19367             ;;
19368         esac
19369         ;;
19370       sunos4*)
19371         case $cc_basename in
19372           CC*)
19373             # Sun C++ 4.x
19374             lt_prog_compiler_pic_CXX='-pic'
19375             lt_prog_compiler_static_CXX='-Bstatic'
19376             ;;
19377           lcc*)
19378             # Lucid
19379             lt_prog_compiler_pic_CXX='-pic'
19380             ;;
19381           *)
19382             ;;
19383         esac
19384         ;;
19385       tandem*)
19386         case $cc_basename in
19387           NCC*)
19388             # NonStop-UX NCC 3.20
19389             lt_prog_compiler_pic_CXX='-KPIC'
19390             ;;
19391           *)
19392             ;;
19393         esac
19394         ;;
19395       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19396         case $cc_basename in
19397           CC*)
19398             lt_prog_compiler_wl_CXX='-Wl,'
19399             lt_prog_compiler_pic_CXX='-KPIC'
19400             lt_prog_compiler_static_CXX='-Bstatic'
19401             ;;
19402         esac
19403         ;;
19404       vxworks*)
19405         ;;
19406       *)
19407         lt_prog_compiler_can_build_shared_CXX=no
19408         ;;
19409     esac
19410   fi
19411
19412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19413 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19414
19415 #
19416 # Check to make sure the PIC flag actually works.
19417 #
19418 if test -n "$lt_prog_compiler_pic_CXX"; then
19419
19420 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19422 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425   lt_prog_compiler_pic_works_CXX=no
19426   ac_outfile=conftest.$ac_objext
19427    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19428    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19429    # Insert the option either (1) after the last *FLAGS variable, or
19430    # (2) before a word containing "conftest.", or (3) at the end.
19431    # Note that $ac_compile itself does not contain backslashes and begins
19432    # with a dollar sign (not a hyphen), so the echo should work correctly.
19433    # The option is referenced via a variable to avoid confusing sed.
19434    lt_compile=`echo "$ac_compile" | $SED \
19435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19437    -e 's:$: $lt_compiler_flag:'`
19438    (eval echo "\"\$as_me:19438: $lt_compile\"" >&5)
19439    (eval "$lt_compile" 2>conftest.err)
19440    ac_status=$?
19441    cat conftest.err >&5
19442    echo "$as_me:19442: \$? = $ac_status" >&5
19443    if (exit $ac_status) && test -s "$ac_outfile"; then
19444      # The compiler can only warn and ignore the option if not recognized
19445      # So say no if there are warnings other than the usual output.
19446      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19447      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19448      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19449        lt_prog_compiler_pic_works_CXX=yes
19450      fi
19451    fi
19452    $rm conftest*
19453
19454 fi
19455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19456 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19457
19458 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19459     case $lt_prog_compiler_pic_CXX in
19460      "" | " "*) ;;
19461      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19462      esac
19463 else
19464     lt_prog_compiler_pic_CXX=
19465      lt_prog_compiler_can_build_shared_CXX=no
19466 fi
19467
19468 fi
19469 case $host_os in
19470   # For platforms which do not support PIC, -DPIC is meaningless:
19471   *djgpp*)
19472     lt_prog_compiler_pic_CXX=
19473     ;;
19474   *)
19475     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19476     ;;
19477 esac
19478
19479 #
19480 # Check to make sure the static flag actually works.
19481 #
19482 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19483 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19484 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19485 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   lt_prog_compiler_static_works_CXX=no
19489    save_LDFLAGS="$LDFLAGS"
19490    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19491    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19492    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19493      # The linker can only warn and ignore the option if not recognized
19494      # So say no if there are warnings
19495      if test -s conftest.err; then
19496        # Append any errors to the config.log.
19497        cat conftest.err 1>&5
19498        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19499        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19500        if diff conftest.exp conftest.er2 >/dev/null; then
19501          lt_prog_compiler_static_works_CXX=yes
19502        fi
19503      else
19504        lt_prog_compiler_static_works_CXX=yes
19505      fi
19506    fi
19507    $rm conftest*
19508    LDFLAGS="$save_LDFLAGS"
19509
19510 fi
19511 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19512 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19513
19514 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19515     :
19516 else
19517     lt_prog_compiler_static_CXX=
19518 fi
19519
19520
19521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   lt_cv_prog_compiler_c_o_CXX=no
19527    $rm -r conftest 2>/dev/null
19528    mkdir conftest
19529    cd conftest
19530    mkdir out
19531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19532
19533    lt_compiler_flag="-o out/conftest2.$ac_objext"
19534    # Insert the option either (1) after the last *FLAGS variable, or
19535    # (2) before a word containing "conftest.", or (3) at the end.
19536    # Note that $ac_compile itself does not contain backslashes and begins
19537    # with a dollar sign (not a hyphen), so the echo should work correctly.
19538    lt_compile=`echo "$ac_compile" | $SED \
19539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19541    -e 's:$: $lt_compiler_flag:'`
19542    (eval echo "\"\$as_me:19542: $lt_compile\"" >&5)
19543    (eval "$lt_compile" 2>out/conftest.err)
19544    ac_status=$?
19545    cat out/conftest.err >&5
19546    echo "$as_me:19546: \$? = $ac_status" >&5
19547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19548    then
19549      # The compiler can only warn and ignore the option if not recognized
19550      # So say no if there are warnings
19551      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19552      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19553      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19554        lt_cv_prog_compiler_c_o_CXX=yes
19555      fi
19556    fi
19557    chmod u+w . 2>&5
19558    $rm conftest*
19559    # SGI C++ compiler will create directory out/ii_files/ for
19560    # template instantiation
19561    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19562    $rm out/* && rmdir out
19563    cd ..
19564    rmdir conftest
19565    $rm conftest*
19566
19567 fi
19568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19570
19571
19572 hard_links="nottested"
19573 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19574   # do not overwrite the value of need_locks provided by the user
19575   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19577   hard_links=yes
19578   $rm conftest*
19579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19580   touch conftest.a
19581   ln conftest.a conftest.b 2>&5 || hard_links=no
19582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19583   { echo "$as_me:$LINENO: result: $hard_links" >&5
19584 echo "${ECHO_T}$hard_links" >&6; }
19585   if test "$hard_links" = no; then
19586     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19588     need_locks=warn
19589   fi
19590 else
19591   need_locks=no
19592 fi
19593
19594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19596
19597   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19598   case $host_os in
19599   aix4* | aix5*)
19600     # If we're using GNU nm, then we don't want the "-C" option.
19601     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19602     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19603       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'
19604     else
19605       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'
19606     fi
19607     ;;
19608   pw32*)
19609     export_symbols_cmds_CXX="$ltdll_cmds"
19610   ;;
19611   cygwin* | mingw*)
19612     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'
19613   ;;
19614   *)
19615     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19616   ;;
19617   esac
19618
19619 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621 test "$ld_shlibs_CXX" = no && can_build_shared=no
19622
19623 #
19624 # Do we need to explicitly link libc?
19625 #
19626 case "x$archive_cmds_need_lc_CXX" in
19627 x|xyes)
19628   # Assume -lc should be added
19629   archive_cmds_need_lc_CXX=yes
19630
19631   if test "$enable_shared" = yes && test "$GCC" = yes; then
19632     case $archive_cmds_CXX in
19633     *'~'*)
19634       # FIXME: we may have to deal with multi-command sequences.
19635       ;;
19636     '$CC '*)
19637       # Test whether the compiler implicitly links with -lc since on some
19638       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639       # to ld, don't add -lc before -lgcc.
19640       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19642       $rm conftest*
19643       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19644
19645       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646   (eval $ac_compile) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } 2>conftest.err; then
19650         soname=conftest
19651         lib=conftest
19652         libobjs=conftest.$ac_objext
19653         deplibs=
19654         wl=$lt_prog_compiler_wl_CXX
19655         pic_flag=$lt_prog_compiler_pic_CXX
19656         compiler_flags=-v
19657         linker_flags=-v
19658         verstring=
19659         output_objdir=.
19660         libname=conftest
19661         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19662         allow_undefined_flag_CXX=
19663         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19664   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19665   ac_status=$?
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); }
19668         then
19669           archive_cmds_need_lc_CXX=no
19670         else
19671           archive_cmds_need_lc_CXX=yes
19672         fi
19673         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19674       else
19675         cat conftest.err 1>&5
19676       fi
19677       $rm conftest*
19678       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19679 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19680       ;;
19681     esac
19682   fi
19683   ;;
19684 esac
19685
19686 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19688 library_names_spec=
19689 libname_spec='lib$name'
19690 soname_spec=
19691 shrext_cmds=".so"
19692 postinstall_cmds=
19693 postuninstall_cmds=
19694 finish_cmds=
19695 finish_eval=
19696 shlibpath_var=
19697 shlibpath_overrides_runpath=unknown
19698 version_type=none
19699 dynamic_linker="$host_os ld.so"
19700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19701 if test "$GCC" = yes; then
19702   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19703   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19704     # if the path contains ";" then we assume it to be the separator
19705     # otherwise default to the standard path separator (i.e. ":") - it is
19706     # assumed that no part of a normal pathname contains ";" but that should
19707     # okay in the real world where ";" in dirpaths is itself problematic.
19708     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19709   else
19710     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19711   fi
19712 else
19713   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19714 fi
19715 need_lib_prefix=unknown
19716 hardcode_into_libs=no
19717
19718 # when you set need_version to no, make sure it does not cause -set_version
19719 # flags to be left without arguments
19720 need_version=unknown
19721
19722 case $host_os in
19723 aix3*)
19724   version_type=linux
19725   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19726   shlibpath_var=LIBPATH
19727
19728   # AIX 3 has no versioning support, so we append a major version to the name.
19729   soname_spec='${libname}${release}${shared_ext}$major'
19730   ;;
19731
19732 aix4* | aix5*)
19733   version_type=linux
19734   need_lib_prefix=no
19735   need_version=no
19736   hardcode_into_libs=yes
19737   if test "$host_cpu" = ia64; then
19738     # AIX 5 supports IA64
19739     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19740     shlibpath_var=LD_LIBRARY_PATH
19741   else
19742     # With GCC up to 2.95.x, collect2 would create an import file
19743     # for dependence libraries.  The import file would start with
19744     # the line `#! .'.  This would cause the generated library to
19745     # depend on `.', always an invalid library.  This was fixed in
19746     # development snapshots of GCC prior to 3.0.
19747     case $host_os in
19748       aix4 | aix4.[01] | aix4.[01].*)
19749       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19750            echo ' yes '
19751            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19752         :
19753       else
19754         can_build_shared=no
19755       fi
19756       ;;
19757     esac
19758     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19759     # soname into executable. Probably we can add versioning support to
19760     # collect2, so additional links can be useful in future.
19761     if test "$aix_use_runtimelinking" = yes; then
19762       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19763       # instead of lib<name>.a to let people know that these are not
19764       # typical AIX shared libraries.
19765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766     else
19767       # We preserve .a as extension for shared libraries through AIX4.2
19768       # and later when we are not doing run time linking.
19769       library_names_spec='${libname}${release}.a $libname.a'
19770       soname_spec='${libname}${release}${shared_ext}$major'
19771     fi
19772     shlibpath_var=LIBPATH
19773   fi
19774   ;;
19775
19776 amigaos*)
19777   library_names_spec='$libname.ixlibrary $libname.a'
19778   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19779   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'
19780   ;;
19781
19782 beos*)
19783   library_names_spec='${libname}${shared_ext}'
19784   dynamic_linker="$host_os ld.so"
19785   shlibpath_var=LIBRARY_PATH
19786   ;;
19787
19788 bsdi[45]*)
19789   version_type=linux
19790   need_version=no
19791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792   soname_spec='${libname}${release}${shared_ext}$major'
19793   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19794   shlibpath_var=LD_LIBRARY_PATH
19795   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19796   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19797   # the default ld.so.conf also contains /usr/contrib/lib and
19798   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19799   # libtool to hard-code these into programs
19800   ;;
19801
19802 cygwin* | mingw* | pw32*)
19803   version_type=windows
19804   shrext_cmds=".dll"
19805   need_version=no
19806   need_lib_prefix=no
19807
19808   case $GCC,$host_os in
19809   yes,cygwin* | yes,mingw* | yes,pw32*)
19810     library_names_spec='$libname.dll.a'
19811     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19812     postinstall_cmds='base_file=`basename \${file}`~
19813       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19814       dldir=$destdir/`dirname \$dlpath`~
19815       test -d \$dldir || mkdir -p \$dldir~
19816       $install_prog $dir/$dlname \$dldir/$dlname~
19817       chmod a+x \$dldir/$dlname'
19818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19819       dlpath=$dir/\$dldll~
19820        $rm \$dlpath'
19821     shlibpath_overrides_runpath=yes
19822
19823     case $host_os in
19824     cygwin*)
19825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19827       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19828       ;;
19829     mingw*)
19830       # MinGW DLLs use traditional 'lib' prefix
19831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19834         # It is most probably a Windows format PATH printed by
19835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19836         # path with ; separators, and with drive letters. We can handle the
19837         # drive letters (cygwin fileutils understands them), so leave them,
19838         # especially as we might pass files found there to a mingw objdump,
19839         # which wouldn't understand a cygwinified path. Ahh.
19840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19841       else
19842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19843       fi
19844       ;;
19845     pw32*)
19846       # pw32 DLLs use 'pw' prefix rather than 'lib'
19847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19848       ;;
19849     esac
19850     ;;
19851
19852   *)
19853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19854     ;;
19855   esac
19856   dynamic_linker='Win32 ld.exe'
19857   # FIXME: first we should search . and the directory the executable is in
19858   shlibpath_var=PATH
19859   ;;
19860
19861 darwin* | rhapsody*)
19862   dynamic_linker="$host_os dyld"
19863   version_type=darwin
19864   need_lib_prefix=no
19865   need_version=no
19866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19867   soname_spec='${libname}${release}${major}$shared_ext'
19868   shlibpath_overrides_runpath=yes
19869   shlibpath_var=DYLD_LIBRARY_PATH
19870   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19872   if test "$GCC" = yes; then
19873     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19874   else
19875     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19876   fi
19877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19878   ;;
19879
19880 dgux*)
19881   version_type=linux
19882   need_lib_prefix=no
19883   need_version=no
19884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19885   soname_spec='${libname}${release}${shared_ext}$major'
19886   shlibpath_var=LD_LIBRARY_PATH
19887   ;;
19888
19889 freebsd1*)
19890   dynamic_linker=no
19891   ;;
19892
19893 kfreebsd*-gnu)
19894   version_type=linux
19895   need_lib_prefix=no
19896   need_version=no
19897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19898   soname_spec='${libname}${release}${shared_ext}$major'
19899   shlibpath_var=LD_LIBRARY_PATH
19900   shlibpath_overrides_runpath=no
19901   hardcode_into_libs=yes
19902   dynamic_linker='GNU ld.so'
19903   ;;
19904
19905 freebsd* | dragonfly*)
19906   # DragonFly does not have aout.  When/if they implement a new
19907   # versioning mechanism, adjust this.
19908   if test -x /usr/bin/objformat; then
19909     objformat=`/usr/bin/objformat`
19910   else
19911     case $host_os in
19912     freebsd[123]*) objformat=aout ;;
19913     *) objformat=elf ;;
19914     esac
19915   fi
19916   version_type=freebsd-$objformat
19917   case $version_type in
19918     freebsd-elf*)
19919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19920       need_version=no
19921       need_lib_prefix=no
19922       ;;
19923     freebsd-*)
19924       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19925       need_version=yes
19926       ;;
19927   esac
19928   shlibpath_var=LD_LIBRARY_PATH
19929   case $host_os in
19930   freebsd2*)
19931     shlibpath_overrides_runpath=yes
19932     ;;
19933   freebsd3.[01]* | freebsdelf3.[01]*)
19934     shlibpath_overrides_runpath=yes
19935     hardcode_into_libs=yes
19936     ;;
19937   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19938   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19939     shlibpath_overrides_runpath=no
19940     hardcode_into_libs=yes
19941     ;;
19942   freebsd*) # from 4.6 on
19943     shlibpath_overrides_runpath=yes
19944     hardcode_into_libs=yes
19945     ;;
19946   esac
19947   ;;
19948
19949 gnu*)
19950   version_type=linux
19951   need_lib_prefix=no
19952   need_version=no
19953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19954   soname_spec='${libname}${release}${shared_ext}$major'
19955   shlibpath_var=LD_LIBRARY_PATH
19956   hardcode_into_libs=yes
19957   ;;
19958
19959 hpux9* | hpux10* | hpux11*)
19960   # Give a soname corresponding to the major version so that dld.sl refuses to
19961   # link against other versions.
19962   version_type=sunos
19963   need_lib_prefix=no
19964   need_version=no
19965   case $host_cpu in
19966   ia64*)
19967     shrext_cmds='.so'
19968     hardcode_into_libs=yes
19969     dynamic_linker="$host_os dld.so"
19970     shlibpath_var=LD_LIBRARY_PATH
19971     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973     soname_spec='${libname}${release}${shared_ext}$major'
19974     if test "X$HPUX_IA64_MODE" = X32; then
19975       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19976     else
19977       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19978     fi
19979     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19980     ;;
19981    hppa*64*)
19982      shrext_cmds='.sl'
19983      hardcode_into_libs=yes
19984      dynamic_linker="$host_os dld.sl"
19985      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19986      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19987      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988      soname_spec='${libname}${release}${shared_ext}$major'
19989      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19990      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19991      ;;
19992    *)
19993     shrext_cmds='.sl'
19994     dynamic_linker="$host_os dld.sl"
19995     shlibpath_var=SHLIB_PATH
19996     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998     soname_spec='${libname}${release}${shared_ext}$major'
19999     ;;
20000   esac
20001   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20002   postinstall_cmds='chmod 555 $lib'
20003   ;;
20004
20005 interix3*)
20006   version_type=linux
20007   need_lib_prefix=no
20008   need_version=no
20009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20010   soname_spec='${libname}${release}${shared_ext}$major'
20011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20012   shlibpath_var=LD_LIBRARY_PATH
20013   shlibpath_overrides_runpath=no
20014   hardcode_into_libs=yes
20015   ;;
20016
20017 irix5* | irix6* | nonstopux*)
20018   case $host_os in
20019     nonstopux*) version_type=nonstopux ;;
20020     *)
20021         if test "$lt_cv_prog_gnu_ld" = yes; then
20022                 version_type=linux
20023         else
20024                 version_type=irix
20025         fi ;;
20026   esac
20027   need_lib_prefix=no
20028   need_version=no
20029   soname_spec='${libname}${release}${shared_ext}$major'
20030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20031   case $host_os in
20032   irix5* | nonstopux*)
20033     libsuff= shlibsuff=
20034     ;;
20035   *)
20036     case $LD in # libtool.m4 will add one of these switches to LD
20037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20038       libsuff= shlibsuff= libmagic=32-bit;;
20039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20040       libsuff=32 shlibsuff=N32 libmagic=N32;;
20041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20043     *) libsuff= shlibsuff= libmagic=never-match;;
20044     esac
20045     ;;
20046   esac
20047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20048   shlibpath_overrides_runpath=no
20049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20051   hardcode_into_libs=yes
20052   ;;
20053
20054 # No shared lib support for Linux oldld, aout, or coff.
20055 linux*oldld* | linux*aout* | linux*coff*)
20056   dynamic_linker=no
20057   ;;
20058
20059 # This must be Linux ELF.
20060 linux*)
20061   version_type=linux
20062   need_lib_prefix=no
20063   need_version=no
20064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20065   soname_spec='${libname}${release}${shared_ext}$major'
20066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20067   shlibpath_var=LD_LIBRARY_PATH
20068   shlibpath_overrides_runpath=no
20069   # This implies no fast_install, which is unacceptable.
20070   # Some rework will be needed to allow for fast_install
20071   # before this can be enabled.
20072   hardcode_into_libs=yes
20073
20074   # Append ld.so.conf contents to the search path
20075   if test -f /etc/ld.so.conf; then
20076     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20077     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20078   fi
20079
20080   # We used to test for /lib/ld.so.1 and disable shared libraries on
20081   # powerpc, because MkLinux only supported shared libraries with the
20082   # GNU dynamic linker.  Since this was broken with cross compilers,
20083   # most powerpc-linux boxes support dynamic linking these days and
20084   # people can always --disable-shared, the test was removed, and we
20085   # assume the GNU/Linux dynamic linker is in use.
20086   dynamic_linker='GNU/Linux ld.so'
20087   ;;
20088
20089 knetbsd*-gnu)
20090   version_type=linux
20091   need_lib_prefix=no
20092   need_version=no
20093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20094   soname_spec='${libname}${release}${shared_ext}$major'
20095   shlibpath_var=LD_LIBRARY_PATH
20096   shlibpath_overrides_runpath=no
20097   hardcode_into_libs=yes
20098   dynamic_linker='GNU ld.so'
20099   ;;
20100
20101 netbsd*)
20102   version_type=sunos
20103   need_lib_prefix=no
20104   need_version=no
20105   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20107     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20108     dynamic_linker='NetBSD (a.out) ld.so'
20109   else
20110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111     soname_spec='${libname}${release}${shared_ext}$major'
20112     dynamic_linker='NetBSD ld.elf_so'
20113   fi
20114   shlibpath_var=LD_LIBRARY_PATH
20115   shlibpath_overrides_runpath=yes
20116   hardcode_into_libs=yes
20117   ;;
20118
20119 newsos6)
20120   version_type=linux
20121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   shlibpath_overrides_runpath=yes
20124   ;;
20125
20126 nto-qnx*)
20127   version_type=linux
20128   need_lib_prefix=no
20129   need_version=no
20130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20131   soname_spec='${libname}${release}${shared_ext}$major'
20132   shlibpath_var=LD_LIBRARY_PATH
20133   shlibpath_overrides_runpath=yes
20134   ;;
20135
20136 openbsd*)
20137   version_type=sunos
20138   sys_lib_dlsearch_path_spec="/usr/lib"
20139   need_lib_prefix=no
20140   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20141   case $host_os in
20142     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20143     *)                         need_version=no  ;;
20144   esac
20145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20146   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20147   shlibpath_var=LD_LIBRARY_PATH
20148   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20149     case $host_os in
20150       openbsd2.[89] | openbsd2.[89].*)
20151         shlibpath_overrides_runpath=no
20152         ;;
20153       *)
20154         shlibpath_overrides_runpath=yes
20155         ;;
20156       esac
20157   else
20158     shlibpath_overrides_runpath=yes
20159   fi
20160   ;;
20161
20162 os2*)
20163   libname_spec='$name'
20164   shrext_cmds=".dll"
20165   need_lib_prefix=no
20166   library_names_spec='$libname${shared_ext} $libname.a'
20167   dynamic_linker='OS/2 ld.exe'
20168   shlibpath_var=LIBPATH
20169   ;;
20170
20171 osf3* | osf4* | osf5*)
20172   version_type=osf
20173   need_lib_prefix=no
20174   need_version=no
20175   soname_spec='${libname}${release}${shared_ext}$major'
20176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177   shlibpath_var=LD_LIBRARY_PATH
20178   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20179   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20180   ;;
20181
20182 solaris*)
20183   version_type=linux
20184   need_lib_prefix=no
20185   need_version=no
20186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20187   soname_spec='${libname}${release}${shared_ext}$major'
20188   shlibpath_var=LD_LIBRARY_PATH
20189   shlibpath_overrides_runpath=yes
20190   hardcode_into_libs=yes
20191   # ldd complains unless libraries are executable
20192   postinstall_cmds='chmod +x $lib'
20193   ;;
20194
20195 sunos4*)
20196   version_type=sunos
20197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20198   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20199   shlibpath_var=LD_LIBRARY_PATH
20200   shlibpath_overrides_runpath=yes
20201   if test "$with_gnu_ld" = yes; then
20202     need_lib_prefix=no
20203   fi
20204   need_version=yes
20205   ;;
20206
20207 sysv4 | sysv4.3*)
20208   version_type=linux
20209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210   soname_spec='${libname}${release}${shared_ext}$major'
20211   shlibpath_var=LD_LIBRARY_PATH
20212   case $host_vendor in
20213     sni)
20214       shlibpath_overrides_runpath=no
20215       need_lib_prefix=no
20216       export_dynamic_flag_spec='${wl}-Blargedynsym'
20217       runpath_var=LD_RUN_PATH
20218       ;;
20219     siemens)
20220       need_lib_prefix=no
20221       ;;
20222     motorola)
20223       need_lib_prefix=no
20224       need_version=no
20225       shlibpath_overrides_runpath=no
20226       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20227       ;;
20228   esac
20229   ;;
20230
20231 sysv4*MP*)
20232   if test -d /usr/nec ;then
20233     version_type=linux
20234     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20235     soname_spec='$libname${shared_ext}.$major'
20236     shlibpath_var=LD_LIBRARY_PATH
20237   fi
20238   ;;
20239
20240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20241   version_type=freebsd-elf
20242   need_lib_prefix=no
20243   need_version=no
20244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20245   soname_spec='${libname}${release}${shared_ext}$major'
20246   shlibpath_var=LD_LIBRARY_PATH
20247   hardcode_into_libs=yes
20248   if test "$with_gnu_ld" = yes; then
20249     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20250     shlibpath_overrides_runpath=no
20251   else
20252     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20253     shlibpath_overrides_runpath=yes
20254     case $host_os in
20255       sco3.2v5*)
20256         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20257         ;;
20258     esac
20259   fi
20260   sys_lib_dlsearch_path_spec='/usr/lib'
20261   ;;
20262
20263 uts4*)
20264   version_type=linux
20265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266   soname_spec='${libname}${release}${shared_ext}$major'
20267   shlibpath_var=LD_LIBRARY_PATH
20268   ;;
20269
20270 *)
20271   dynamic_linker=no
20272   ;;
20273 esac
20274 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20275 echo "${ECHO_T}$dynamic_linker" >&6; }
20276 test "$dynamic_linker" = no && can_build_shared=no
20277
20278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20279 if test "$GCC" = yes; then
20280   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20281 fi
20282
20283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20285 hardcode_action_CXX=
20286 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20287    test -n "$runpath_var_CXX" || \
20288    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20289
20290   # We can hardcode non-existant directories.
20291   if test "$hardcode_direct_CXX" != no &&
20292      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20293      # have to relink, otherwise we might link with an installed library
20294      # when we should be linking with a yet-to-be-installed one
20295      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20296      test "$hardcode_minus_L_CXX" != no; then
20297     # Linking always hardcodes the temporary library directory.
20298     hardcode_action_CXX=relink
20299   else
20300     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20301     hardcode_action_CXX=immediate
20302   fi
20303 else
20304   # We cannot hardcode anything, or else we can only hardcode existing
20305   # directories.
20306   hardcode_action_CXX=unsupported
20307 fi
20308 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20309 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20310
20311 if test "$hardcode_action_CXX" = relink; then
20312   # Fast installation is not supported
20313   enable_fast_install=no
20314 elif test "$shlibpath_overrides_runpath" = yes ||
20315      test "$enable_shared" = no; then
20316   # Fast installation is not necessary
20317   enable_fast_install=needless
20318 fi
20319
20320
20321 # The else clause should only fire when bootstrapping the
20322 # libtool distribution, otherwise you forgot to ship ltmain.sh
20323 # with your package, and you will get complaints that there are
20324 # no rules to generate ltmain.sh.
20325 if test -f "$ltmain"; then
20326   # See if we are running on zsh, and set the options which allow our commands through
20327   # without removal of \ escapes.
20328   if test -n "${ZSH_VERSION+set}" ; then
20329     setopt NO_GLOB_SUBST
20330   fi
20331   # Now quote all the things that may contain metacharacters while being
20332   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20333   # variables and quote the copies for generation of the libtool script.
20334   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20335     SED SHELL STRIP \
20336     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20337     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20338     deplibs_check_method reload_flag reload_cmds need_locks \
20339     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20340     lt_cv_sys_global_symbol_to_c_name_address \
20341     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20342     old_postinstall_cmds old_postuninstall_cmds \
20343     compiler_CXX \
20344     CC_CXX \
20345     LD_CXX \
20346     lt_prog_compiler_wl_CXX \
20347     lt_prog_compiler_pic_CXX \
20348     lt_prog_compiler_static_CXX \
20349     lt_prog_compiler_no_builtin_flag_CXX \
20350     export_dynamic_flag_spec_CXX \
20351     thread_safe_flag_spec_CXX \
20352     whole_archive_flag_spec_CXX \
20353     enable_shared_with_static_runtimes_CXX \
20354     old_archive_cmds_CXX \
20355     old_archive_from_new_cmds_CXX \
20356     predep_objects_CXX \
20357     postdep_objects_CXX \
20358     predeps_CXX \
20359     postdeps_CXX \
20360     compiler_lib_search_path_CXX \
20361     archive_cmds_CXX \
20362     archive_expsym_cmds_CXX \
20363     postinstall_cmds_CXX \
20364     postuninstall_cmds_CXX \
20365     old_archive_from_expsyms_cmds_CXX \
20366     allow_undefined_flag_CXX \
20367     no_undefined_flag_CXX \
20368     export_symbols_cmds_CXX \
20369     hardcode_libdir_flag_spec_CXX \
20370     hardcode_libdir_flag_spec_ld_CXX \
20371     hardcode_libdir_separator_CXX \
20372     hardcode_automatic_CXX \
20373     module_cmds_CXX \
20374     module_expsym_cmds_CXX \
20375     lt_cv_prog_compiler_c_o_CXX \
20376     exclude_expsyms_CXX \
20377     include_expsyms_CXX; do
20378
20379     case $var in
20380     old_archive_cmds_CXX | \
20381     old_archive_from_new_cmds_CXX | \
20382     archive_cmds_CXX | \
20383     archive_expsym_cmds_CXX | \
20384     module_cmds_CXX | \
20385     module_expsym_cmds_CXX | \
20386     old_archive_from_expsyms_cmds_CXX | \
20387     export_symbols_cmds_CXX | \
20388     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20389     postinstall_cmds | postuninstall_cmds | \
20390     old_postinstall_cmds | old_postuninstall_cmds | \
20391     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20392       # Double-quote double-evaled strings.
20393       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20394       ;;
20395     *)
20396       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20397       ;;
20398     esac
20399   done
20400
20401   case $lt_echo in
20402   *'\$0 --fallback-echo"')
20403     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20404     ;;
20405   esac
20406
20407 cfgfile="$ofile"
20408
20409   cat <<__EOF__ >> "$cfgfile"
20410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20411
20412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20413
20414 # Shell to use when invoking shell scripts.
20415 SHELL=$lt_SHELL
20416
20417 # Whether or not to build shared libraries.
20418 build_libtool_libs=$enable_shared
20419
20420 # Whether or not to build static libraries.
20421 build_old_libs=$enable_static
20422
20423 # Whether or not to add -lc for building shared libraries.
20424 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20425
20426 # Whether or not to disallow shared libs when runtime libs are static
20427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20428
20429 # Whether or not to optimize for fast installation.
20430 fast_install=$enable_fast_install
20431
20432 # The host system.
20433 host_alias=$host_alias
20434 host=$host
20435 host_os=$host_os
20436
20437 # The build system.
20438 build_alias=$build_alias
20439 build=$build
20440 build_os=$build_os
20441
20442 # An echo program that does not interpret backslashes.
20443 echo=$lt_echo
20444
20445 # The archiver.
20446 AR=$lt_AR
20447 AR_FLAGS=$lt_AR_FLAGS
20448
20449 # A C compiler.
20450 LTCC=$lt_LTCC
20451
20452 # LTCC compiler flags.
20453 LTCFLAGS=$lt_LTCFLAGS
20454
20455 # A language-specific compiler.
20456 CC=$lt_compiler_CXX
20457
20458 # Is the compiler the GNU C compiler?
20459 with_gcc=$GCC_CXX
20460
20461 # An ERE matcher.
20462 EGREP=$lt_EGREP
20463
20464 # The linker used to build libraries.
20465 LD=$lt_LD_CXX
20466
20467 # Whether we need hard or soft links.
20468 LN_S=$lt_LN_S
20469
20470 # A BSD-compatible nm program.
20471 NM=$lt_NM
20472
20473 # A symbol stripping program
20474 STRIP=$lt_STRIP
20475
20476 # Used to examine libraries when file_magic_cmd begins "file"
20477 MAGIC_CMD=$MAGIC_CMD
20478
20479 # Used on cygwin: DLL creation program.
20480 DLLTOOL="$DLLTOOL"
20481
20482 # Used on cygwin: object dumper.
20483 OBJDUMP="$OBJDUMP"
20484
20485 # Used on cygwin: assembler.
20486 AS="$AS"
20487
20488 # The name of the directory that contains temporary libtool files.
20489 objdir=$objdir
20490
20491 # How to create reloadable object files.
20492 reload_flag=$lt_reload_flag
20493 reload_cmds=$lt_reload_cmds
20494
20495 # How to pass a linker flag through the compiler.
20496 wl=$lt_lt_prog_compiler_wl_CXX
20497
20498 # Object file suffix (normally "o").
20499 objext="$ac_objext"
20500
20501 # Old archive suffix (normally "a").
20502 libext="$libext"
20503
20504 # Shared library suffix (normally ".so").
20505 shrext_cmds='$shrext_cmds'
20506
20507 # Executable file suffix (normally "").
20508 exeext="$exeext"
20509
20510 # Additional compiler flags for building library objects.
20511 pic_flag=$lt_lt_prog_compiler_pic_CXX
20512 pic_mode=$pic_mode
20513
20514 # What is the maximum length of a command?
20515 max_cmd_len=$lt_cv_sys_max_cmd_len
20516
20517 # Does compiler simultaneously support -c and -o options?
20518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20519
20520 # Must we lock files when doing compilation?
20521 need_locks=$lt_need_locks
20522
20523 # Do we need the lib prefix for modules?
20524 need_lib_prefix=$need_lib_prefix
20525
20526 # Do we need a version for libraries?
20527 need_version=$need_version
20528
20529 # Whether dlopen is supported.
20530 dlopen_support=$enable_dlopen
20531
20532 # Whether dlopen of programs is supported.
20533 dlopen_self=$enable_dlopen_self
20534
20535 # Whether dlopen of statically linked programs is supported.
20536 dlopen_self_static=$enable_dlopen_self_static
20537
20538 # Compiler flag to prevent dynamic linking.
20539 link_static_flag=$lt_lt_prog_compiler_static_CXX
20540
20541 # Compiler flag to turn off builtin functions.
20542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20543
20544 # Compiler flag to allow reflexive dlopens.
20545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20546
20547 # Compiler flag to generate shared objects directly from archives.
20548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20549
20550 # Compiler flag to generate thread-safe objects.
20551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20552
20553 # Library versioning type.
20554 version_type=$version_type
20555
20556 # Format of library name prefix.
20557 libname_spec=$lt_libname_spec
20558
20559 # List of archive names.  First name is the real one, the rest are links.
20560 # The last name is the one that the linker finds with -lNAME.
20561 library_names_spec=$lt_library_names_spec
20562
20563 # The coded name of the library, if different from the real name.
20564 soname_spec=$lt_soname_spec
20565
20566 # Commands used to build and install an old-style archive.
20567 RANLIB=$lt_RANLIB
20568 old_archive_cmds=$lt_old_archive_cmds_CXX
20569 old_postinstall_cmds=$lt_old_postinstall_cmds
20570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20571
20572 # Create an old-style archive from a shared archive.
20573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20574
20575 # Create a temporary old-style archive to link instead of a shared archive.
20576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20577
20578 # Commands used to build and install a shared archive.
20579 archive_cmds=$lt_archive_cmds_CXX
20580 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20581 postinstall_cmds=$lt_postinstall_cmds
20582 postuninstall_cmds=$lt_postuninstall_cmds
20583
20584 # Commands used to build a loadable module (assumed same as above if empty)
20585 module_cmds=$lt_module_cmds_CXX
20586 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20587
20588 # Commands to strip libraries.
20589 old_striplib=$lt_old_striplib
20590 striplib=$lt_striplib
20591
20592 # Dependencies to place before the objects being linked to create a
20593 # shared library.
20594 predep_objects=$lt_predep_objects_CXX
20595
20596 # Dependencies to place after the objects being linked to create a
20597 # shared library.
20598 postdep_objects=$lt_postdep_objects_CXX
20599
20600 # Dependencies to place before the objects being linked to create a
20601 # shared library.
20602 predeps=$lt_predeps_CXX
20603
20604 # Dependencies to place after the objects being linked to create a
20605 # shared library.
20606 postdeps=$lt_postdeps_CXX
20607
20608 # The library search path used internally by the compiler when linking
20609 # a shared library.
20610 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20611
20612 # Method to check whether dependent libraries are shared objects.
20613 deplibs_check_method=$lt_deplibs_check_method
20614
20615 # Command to use when deplibs_check_method == file_magic.
20616 file_magic_cmd=$lt_file_magic_cmd
20617
20618 # Flag that allows shared libraries with undefined symbols to be built.
20619 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20620
20621 # Flag that forces no undefined symbols.
20622 no_undefined_flag=$lt_no_undefined_flag_CXX
20623
20624 # Commands used to finish a libtool library installation in a directory.
20625 finish_cmds=$lt_finish_cmds
20626
20627 # Same as above, but a single script fragment to be evaled but not shown.
20628 finish_eval=$lt_finish_eval
20629
20630 # Take the output of nm and produce a listing of raw symbols and C names.
20631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20632
20633 # Transform the output of nm in a proper C declaration
20634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20635
20636 # Transform the output of nm in a C name address pair
20637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20638
20639 # This is the shared library runtime path variable.
20640 runpath_var=$runpath_var
20641
20642 # This is the shared library path variable.
20643 shlibpath_var=$shlibpath_var
20644
20645 # Is shlibpath searched before the hard-coded library search path?
20646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20647
20648 # How to hardcode a shared library path into an executable.
20649 hardcode_action=$hardcode_action_CXX
20650
20651 # Whether we should hardcode library paths into libraries.
20652 hardcode_into_libs=$hardcode_into_libs
20653
20654 # Flag to hardcode \$libdir into a binary during linking.
20655 # This must work even if \$libdir does not exist.
20656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20657
20658 # If ld is used when linking, flag to hardcode \$libdir into
20659 # a binary during linking. This must work even if \$libdir does
20660 # not exist.
20661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20662
20663 # Whether we need a single -rpath flag with a separated argument.
20664 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20665
20666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20667 # resulting binary.
20668 hardcode_direct=$hardcode_direct_CXX
20669
20670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20671 # resulting binary.
20672 hardcode_minus_L=$hardcode_minus_L_CXX
20673
20674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20675 # the resulting binary.
20676 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20677
20678 # Set to yes if building a shared library automatically hardcodes DIR into the library
20679 # and all subsequent libraries and executables linked against it.
20680 hardcode_automatic=$hardcode_automatic_CXX
20681
20682 # Variables whose values should be saved in libtool wrapper scripts and
20683 # restored at relink time.
20684 variables_saved_for_relink="$variables_saved_for_relink"
20685
20686 # Whether libtool must link a program against all its dependency libraries.
20687 link_all_deplibs=$link_all_deplibs_CXX
20688
20689 # Compile-time system search path for libraries
20690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20691
20692 # Run-time system search path for libraries
20693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20694
20695 # Fix the shell variable \$srcfile for the compiler.
20696 fix_srcfile_path="$fix_srcfile_path_CXX"
20697
20698 # Set to yes if exported symbols are required.
20699 always_export_symbols=$always_export_symbols_CXX
20700
20701 # The commands to list exported symbols.
20702 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20703
20704 # The commands to extract the exported symbol list from a shared archive.
20705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20706
20707 # Symbols that should not be listed in the preloaded symbols.
20708 exclude_expsyms=$lt_exclude_expsyms_CXX
20709
20710 # Symbols that must always be exported.
20711 include_expsyms=$lt_include_expsyms_CXX
20712
20713 # ### END LIBTOOL TAG CONFIG: $tagname
20714
20715 __EOF__
20716
20717
20718 else
20719   # If there is no Makefile yet, we rely on a make rule to execute
20720   # `config.status --recheck' to rerun these tests and create the
20721   # libtool script then.
20722   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20723   if test -f "$ltmain_in"; then
20724     test -f Makefile && make "$ltmain"
20725   fi
20726 fi
20727
20728
20729 ac_ext=c
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735 CC=$lt_save_CC
20736 LDCXX=$LD
20737 LD=$lt_save_LD
20738 GCC=$lt_save_GCC
20739 with_gnu_ldcxx=$with_gnu_ld
20740 with_gnu_ld=$lt_save_with_gnu_ld
20741 lt_cv_path_LDCXX=$lt_cv_path_LD
20742 lt_cv_path_LD=$lt_save_path_LD
20743 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20744 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20745
20746         else
20747           tagname=""
20748         fi
20749         ;;
20750
20751       F77)
20752         if test -n "$F77" && test "X$F77" != "Xno"; then
20753
20754 ac_ext=f
20755 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20756 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20758
20759
20760 archive_cmds_need_lc_F77=no
20761 allow_undefined_flag_F77=
20762 always_export_symbols_F77=no
20763 archive_expsym_cmds_F77=
20764 export_dynamic_flag_spec_F77=
20765 hardcode_direct_F77=no
20766 hardcode_libdir_flag_spec_F77=
20767 hardcode_libdir_flag_spec_ld_F77=
20768 hardcode_libdir_separator_F77=
20769 hardcode_minus_L_F77=no
20770 hardcode_automatic_F77=no
20771 module_cmds_F77=
20772 module_expsym_cmds_F77=
20773 link_all_deplibs_F77=unknown
20774 old_archive_cmds_F77=$old_archive_cmds
20775 no_undefined_flag_F77=
20776 whole_archive_flag_spec_F77=
20777 enable_shared_with_static_runtimes_F77=no
20778
20779 # Source file extension for f77 test sources.
20780 ac_ext=f
20781
20782 # Object file extension for compiled f77 test sources.
20783 objext=o
20784 objext_F77=$objext
20785
20786 # Code to be used in simple compile tests
20787 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20788
20789 # Code to be used in simple link tests
20790 lt_simple_link_test_code="      program t\n      end\n"
20791
20792 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20793
20794 # If no C compiler was specified, use CC.
20795 LTCC=${LTCC-"$CC"}
20796
20797 # If no C compiler flags were specified, use CFLAGS.
20798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20799
20800 # Allow CC to be a program name with arguments.
20801 compiler=$CC
20802
20803
20804 # save warnings/boilerplate of simple test code
20805 ac_outfile=conftest.$ac_objext
20806 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20808 _lt_compiler_boilerplate=`cat conftest.err`
20809 $rm conftest*
20810
20811 ac_outfile=conftest.$ac_objext
20812 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20814 _lt_linker_boilerplate=`cat conftest.err`
20815 $rm conftest*
20816
20817
20818 # Allow CC to be a program name with arguments.
20819 lt_save_CC="$CC"
20820 CC=${F77-"f77"}
20821 compiler=$CC
20822 compiler_F77=$CC
20823 for cc_temp in $compiler""; do
20824   case $cc_temp in
20825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20827     \-*) ;;
20828     *) break;;
20829   esac
20830 done
20831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20832
20833
20834 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20835 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20836 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20837 echo "${ECHO_T}$can_build_shared" >&6; }
20838
20839 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20840 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20841 test "$can_build_shared" = "no" && enable_shared=no
20842
20843 # On AIX, shared libraries and static libraries use the same namespace, and
20844 # are all built from PIC.
20845 case $host_os in
20846 aix3*)
20847   test "$enable_shared" = yes && enable_static=no
20848   if test -n "$RANLIB"; then
20849     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20850     postinstall_cmds='$RANLIB $lib'
20851   fi
20852   ;;
20853 aix4* | aix5*)
20854   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20855     test "$enable_shared" = yes && enable_static=no
20856   fi
20857   ;;
20858 esac
20859 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20860 echo "${ECHO_T}$enable_shared" >&6; }
20861
20862 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20863 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20864 # Make sure either enable_shared or enable_static is yes.
20865 test "$enable_shared" = yes || enable_static=yes
20866 { echo "$as_me:$LINENO: result: $enable_static" >&5
20867 echo "${ECHO_T}$enable_static" >&6; }
20868
20869 GCC_F77="$G77"
20870 LD_F77="$LD"
20871
20872 lt_prog_compiler_wl_F77=
20873 lt_prog_compiler_pic_F77=
20874 lt_prog_compiler_static_F77=
20875
20876 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20878
20879   if test "$GCC" = yes; then
20880     lt_prog_compiler_wl_F77='-Wl,'
20881     lt_prog_compiler_static_F77='-static'
20882
20883     case $host_os in
20884       aix*)
20885       # All AIX code is PIC.
20886       if test "$host_cpu" = ia64; then
20887         # AIX 5 now supports IA64 processor
20888         lt_prog_compiler_static_F77='-Bstatic'
20889       fi
20890       ;;
20891
20892     amigaos*)
20893       # FIXME: we need at least 68020 code to build shared libraries, but
20894       # adding the `-m68020' flag to GCC prevents building anything better,
20895       # like `-m68040'.
20896       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20897       ;;
20898
20899     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20900       # PIC is the default for these OSes.
20901       ;;
20902
20903     mingw* | pw32* | os2*)
20904       # This hack is so that the source file can tell whether it is being
20905       # built for inclusion in a dll (and should export symbols for example).
20906       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20907       ;;
20908
20909     darwin* | rhapsody*)
20910       # PIC is the default on this platform
20911       # Common symbols not allowed in MH_DYLIB files
20912       lt_prog_compiler_pic_F77='-fno-common'
20913       ;;
20914
20915     interix3*)
20916       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20917       # Instead, we relocate shared libraries at runtime.
20918       ;;
20919
20920     msdosdjgpp*)
20921       # Just because we use GCC doesn't mean we suddenly get shared libraries
20922       # on systems that don't support them.
20923       lt_prog_compiler_can_build_shared_F77=no
20924       enable_shared=no
20925       ;;
20926
20927     sysv4*MP*)
20928       if test -d /usr/nec; then
20929         lt_prog_compiler_pic_F77=-Kconform_pic
20930       fi
20931       ;;
20932
20933     hpux*)
20934       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20935       # not for PA HP-UX.
20936       case $host_cpu in
20937       hppa*64*|ia64*)
20938         # +Z the default
20939         ;;
20940       *)
20941         lt_prog_compiler_pic_F77='-fPIC'
20942         ;;
20943       esac
20944       ;;
20945
20946     *)
20947       lt_prog_compiler_pic_F77='-fPIC'
20948       ;;
20949     esac
20950   else
20951     # PORTME Check for flag to pass linker flags through the system compiler.
20952     case $host_os in
20953     aix*)
20954       lt_prog_compiler_wl_F77='-Wl,'
20955       if test "$host_cpu" = ia64; then
20956         # AIX 5 now supports IA64 processor
20957         lt_prog_compiler_static_F77='-Bstatic'
20958       else
20959         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20960       fi
20961       ;;
20962       darwin*)
20963         # PIC is the default on this platform
20964         # Common symbols not allowed in MH_DYLIB files
20965        case $cc_basename in
20966          xlc*)
20967          lt_prog_compiler_pic_F77='-qnocommon'
20968          lt_prog_compiler_wl_F77='-Wl,'
20969          ;;
20970        esac
20971        ;;
20972
20973     mingw* | pw32* | os2*)
20974       # This hack is so that the source file can tell whether it is being
20975       # built for inclusion in a dll (and should export symbols for example).
20976       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20977       ;;
20978
20979     hpux9* | hpux10* | hpux11*)
20980       lt_prog_compiler_wl_F77='-Wl,'
20981       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20982       # not for PA HP-UX.
20983       case $host_cpu in
20984       hppa*64*|ia64*)
20985         # +Z the default
20986         ;;
20987       *)
20988         lt_prog_compiler_pic_F77='+Z'
20989         ;;
20990       esac
20991       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20992       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20993       ;;
20994
20995     irix5* | irix6* | nonstopux*)
20996       lt_prog_compiler_wl_F77='-Wl,'
20997       # PIC (with -KPIC) is the default.
20998       lt_prog_compiler_static_F77='-non_shared'
20999       ;;
21000
21001     newsos6)
21002       lt_prog_compiler_pic_F77='-KPIC'
21003       lt_prog_compiler_static_F77='-Bstatic'
21004       ;;
21005
21006     linux*)
21007       case $cc_basename in
21008       icc* | ecc*)
21009         lt_prog_compiler_wl_F77='-Wl,'
21010         lt_prog_compiler_pic_F77='-KPIC'
21011         lt_prog_compiler_static_F77='-static'
21012         ;;
21013       pgcc* | pgf77* | pgf90* | pgf95*)
21014         # Portland Group compilers (*not* the Pentium gcc compiler,
21015         # which looks to be a dead project)
21016         lt_prog_compiler_wl_F77='-Wl,'
21017         lt_prog_compiler_pic_F77='-fpic'
21018         lt_prog_compiler_static_F77='-Bstatic'
21019         ;;
21020       ccc*)
21021         lt_prog_compiler_wl_F77='-Wl,'
21022         # All Alpha code is PIC.
21023         lt_prog_compiler_static_F77='-non_shared'
21024         ;;
21025       esac
21026       ;;
21027
21028     osf3* | osf4* | osf5*)
21029       lt_prog_compiler_wl_F77='-Wl,'
21030       # All OSF/1 code is PIC.
21031       lt_prog_compiler_static_F77='-non_shared'
21032       ;;
21033
21034     solaris*)
21035       lt_prog_compiler_pic_F77='-KPIC'
21036       lt_prog_compiler_static_F77='-Bstatic'
21037       case $cc_basename in
21038       f77* | f90* | f95*)
21039         lt_prog_compiler_wl_F77='-Qoption ld ';;
21040       *)
21041         lt_prog_compiler_wl_F77='-Wl,';;
21042       esac
21043       ;;
21044
21045     sunos4*)
21046       lt_prog_compiler_wl_F77='-Qoption ld '
21047       lt_prog_compiler_pic_F77='-PIC'
21048       lt_prog_compiler_static_F77='-Bstatic'
21049       ;;
21050
21051     sysv4 | sysv4.2uw2* | sysv4.3*)
21052       lt_prog_compiler_wl_F77='-Wl,'
21053       lt_prog_compiler_pic_F77='-KPIC'
21054       lt_prog_compiler_static_F77='-Bstatic'
21055       ;;
21056
21057     sysv4*MP*)
21058       if test -d /usr/nec ;then
21059         lt_prog_compiler_pic_F77='-Kconform_pic'
21060         lt_prog_compiler_static_F77='-Bstatic'
21061       fi
21062       ;;
21063
21064     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21065       lt_prog_compiler_wl_F77='-Wl,'
21066       lt_prog_compiler_pic_F77='-KPIC'
21067       lt_prog_compiler_static_F77='-Bstatic'
21068       ;;
21069
21070     unicos*)
21071       lt_prog_compiler_wl_F77='-Wl,'
21072       lt_prog_compiler_can_build_shared_F77=no
21073       ;;
21074
21075     uts4*)
21076       lt_prog_compiler_pic_F77='-pic'
21077       lt_prog_compiler_static_F77='-Bstatic'
21078       ;;
21079
21080     *)
21081       lt_prog_compiler_can_build_shared_F77=no
21082       ;;
21083     esac
21084   fi
21085
21086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21087 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21088
21089 #
21090 # Check to make sure the PIC flag actually works.
21091 #
21092 if test -n "$lt_prog_compiler_pic_F77"; then
21093
21094 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21095 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21096 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   lt_prog_compiler_pic_works_F77=no
21100   ac_outfile=conftest.$ac_objext
21101    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21102    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21103    # Insert the option either (1) after the last *FLAGS variable, or
21104    # (2) before a word containing "conftest.", or (3) at the end.
21105    # Note that $ac_compile itself does not contain backslashes and begins
21106    # with a dollar sign (not a hyphen), so the echo should work correctly.
21107    # The option is referenced via a variable to avoid confusing sed.
21108    lt_compile=`echo "$ac_compile" | $SED \
21109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21111    -e 's:$: $lt_compiler_flag:'`
21112    (eval echo "\"\$as_me:21112: $lt_compile\"" >&5)
21113    (eval "$lt_compile" 2>conftest.err)
21114    ac_status=$?
21115    cat conftest.err >&5
21116    echo "$as_me:21116: \$? = $ac_status" >&5
21117    if (exit $ac_status) && test -s "$ac_outfile"; then
21118      # The compiler can only warn and ignore the option if not recognized
21119      # So say no if there are warnings other than the usual output.
21120      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21121      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21122      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21123        lt_prog_compiler_pic_works_F77=yes
21124      fi
21125    fi
21126    $rm conftest*
21127
21128 fi
21129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21130 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21131
21132 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21133     case $lt_prog_compiler_pic_F77 in
21134      "" | " "*) ;;
21135      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21136      esac
21137 else
21138     lt_prog_compiler_pic_F77=
21139      lt_prog_compiler_can_build_shared_F77=no
21140 fi
21141
21142 fi
21143 case $host_os in
21144   # For platforms which do not support PIC, -DPIC is meaningless:
21145   *djgpp*)
21146     lt_prog_compiler_pic_F77=
21147     ;;
21148   *)
21149     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21150     ;;
21151 esac
21152
21153 #
21154 # Check to make sure the static flag actually works.
21155 #
21156 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21157 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21158 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21159 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21160   echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162   lt_prog_compiler_static_works_F77=no
21163    save_LDFLAGS="$LDFLAGS"
21164    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21165    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21166    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21167      # The linker can only warn and ignore the option if not recognized
21168      # So say no if there are warnings
21169      if test -s conftest.err; then
21170        # Append any errors to the config.log.
21171        cat conftest.err 1>&5
21172        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21173        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21174        if diff conftest.exp conftest.er2 >/dev/null; then
21175          lt_prog_compiler_static_works_F77=yes
21176        fi
21177      else
21178        lt_prog_compiler_static_works_F77=yes
21179      fi
21180    fi
21181    $rm conftest*
21182    LDFLAGS="$save_LDFLAGS"
21183
21184 fi
21185 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21186 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21187
21188 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21189     :
21190 else
21191     lt_prog_compiler_static_F77=
21192 fi
21193
21194
21195 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21197 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 else
21200   lt_cv_prog_compiler_c_o_F77=no
21201    $rm -r conftest 2>/dev/null
21202    mkdir conftest
21203    cd conftest
21204    mkdir out
21205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21206
21207    lt_compiler_flag="-o out/conftest2.$ac_objext"
21208    # Insert the option either (1) after the last *FLAGS variable, or
21209    # (2) before a word containing "conftest.", or (3) at the end.
21210    # Note that $ac_compile itself does not contain backslashes and begins
21211    # with a dollar sign (not a hyphen), so the echo should work correctly.
21212    lt_compile=`echo "$ac_compile" | $SED \
21213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21215    -e 's:$: $lt_compiler_flag:'`
21216    (eval echo "\"\$as_me:21216: $lt_compile\"" >&5)
21217    (eval "$lt_compile" 2>out/conftest.err)
21218    ac_status=$?
21219    cat out/conftest.err >&5
21220    echo "$as_me:21220: \$? = $ac_status" >&5
21221    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21222    then
21223      # The compiler can only warn and ignore the option if not recognized
21224      # So say no if there are warnings
21225      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21226      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21227      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21228        lt_cv_prog_compiler_c_o_F77=yes
21229      fi
21230    fi
21231    chmod u+w . 2>&5
21232    $rm conftest*
21233    # SGI C++ compiler will create directory out/ii_files/ for
21234    # template instantiation
21235    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21236    $rm out/* && rmdir out
21237    cd ..
21238    rmdir conftest
21239    $rm conftest*
21240
21241 fi
21242 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21243 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21244
21245
21246 hard_links="nottested"
21247 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21248   # do not overwrite the value of need_locks provided by the user
21249   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21250 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21251   hard_links=yes
21252   $rm conftest*
21253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21254   touch conftest.a
21255   ln conftest.a conftest.b 2>&5 || hard_links=no
21256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21257   { echo "$as_me:$LINENO: result: $hard_links" >&5
21258 echo "${ECHO_T}$hard_links" >&6; }
21259   if test "$hard_links" = no; then
21260     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21261 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21262     need_locks=warn
21263   fi
21264 else
21265   need_locks=no
21266 fi
21267
21268 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21269 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21270
21271   runpath_var=
21272   allow_undefined_flag_F77=
21273   enable_shared_with_static_runtimes_F77=no
21274   archive_cmds_F77=
21275   archive_expsym_cmds_F77=
21276   old_archive_From_new_cmds_F77=
21277   old_archive_from_expsyms_cmds_F77=
21278   export_dynamic_flag_spec_F77=
21279   whole_archive_flag_spec_F77=
21280   thread_safe_flag_spec_F77=
21281   hardcode_libdir_flag_spec_F77=
21282   hardcode_libdir_flag_spec_ld_F77=
21283   hardcode_libdir_separator_F77=
21284   hardcode_direct_F77=no
21285   hardcode_minus_L_F77=no
21286   hardcode_shlibpath_var_F77=unsupported
21287   link_all_deplibs_F77=unknown
21288   hardcode_automatic_F77=no
21289   module_cmds_F77=
21290   module_expsym_cmds_F77=
21291   always_export_symbols_F77=no
21292   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21293   # include_expsyms should be a list of space-separated symbols to be *always*
21294   # included in the symbol list
21295   include_expsyms_F77=
21296   # exclude_expsyms can be an extended regexp of symbols to exclude
21297   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21298   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21299   # as well as any symbol that contains `d'.
21300   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21301   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21302   # platforms (ab)use it in PIC code, but their linkers get confused if
21303   # the symbol is explicitly referenced.  Since portable code cannot
21304   # rely on this symbol name, it's probably fine to never include it in
21305   # preloaded symbol tables.
21306   extract_expsyms_cmds=
21307   # Just being paranoid about ensuring that cc_basename is set.
21308   for cc_temp in $compiler""; do
21309   case $cc_temp in
21310     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21311     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21312     \-*) ;;
21313     *) break;;
21314   esac
21315 done
21316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21317
21318   case $host_os in
21319   cygwin* | mingw* | pw32*)
21320     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21321     # When not using gcc, we currently assume that we are using
21322     # Microsoft Visual C++.
21323     if test "$GCC" != yes; then
21324       with_gnu_ld=no
21325     fi
21326     ;;
21327   interix*)
21328     # we just hope/assume this is gcc and not c89 (= MSVC++)
21329     with_gnu_ld=yes
21330     ;;
21331   openbsd*)
21332     with_gnu_ld=no
21333     ;;
21334   esac
21335
21336   ld_shlibs_F77=yes
21337   if test "$with_gnu_ld" = yes; then
21338     # If archive_cmds runs LD, not CC, wlarc should be empty
21339     wlarc='${wl}'
21340
21341     # Set some defaults for GNU ld with shared library support. These
21342     # are reset later if shared libraries are not supported. Putting them
21343     # here allows them to be overridden if necessary.
21344     runpath_var=LD_RUN_PATH
21345     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21346     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21347     # ancient GNU ld didn't support --whole-archive et. al.
21348     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21349         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21350       else
21351         whole_archive_flag_spec_F77=
21352     fi
21353     supports_anon_versioning=no
21354     case `$LD -v 2>/dev/null` in
21355       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21356       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21357       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21358       *\ 2.11.*) ;; # other 2.11 versions
21359       *) supports_anon_versioning=yes ;;
21360     esac
21361
21362     # See if GNU ld supports shared libraries.
21363     case $host_os in
21364     aix3* | aix4* | aix5*)
21365       # On AIX/PPC, the GNU linker is very broken
21366       if test "$host_cpu" != ia64; then
21367         ld_shlibs_F77=no
21368         cat <<EOF 1>&2
21369
21370 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21371 *** to be unable to reliably create shared libraries on AIX.
21372 *** Therefore, libtool is disabling shared libraries support.  If you
21373 *** really care for shared libraries, you may want to modify your PATH
21374 *** so that a non-GNU linker is found, and then restart.
21375
21376 EOF
21377       fi
21378       ;;
21379
21380     amigaos*)
21381       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)'
21382       hardcode_libdir_flag_spec_F77='-L$libdir'
21383       hardcode_minus_L_F77=yes
21384
21385       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21386       # that the semantics of dynamic libraries on AmigaOS, at least up
21387       # to version 4, is to share data among multiple programs linked
21388       # with the same dynamic library.  Since this doesn't match the
21389       # behavior of shared libraries on other platforms, we can't use
21390       # them.
21391       ld_shlibs_F77=no
21392       ;;
21393
21394     beos*)
21395       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21396         allow_undefined_flag_F77=unsupported
21397         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21398         # support --undefined.  This deserves some investigation.  FIXME
21399         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21400       else
21401         ld_shlibs_F77=no
21402       fi
21403       ;;
21404
21405     cygwin* | mingw* | pw32*)
21406       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21407       # as there is no search path for DLLs.
21408       hardcode_libdir_flag_spec_F77='-L$libdir'
21409       allow_undefined_flag_F77=unsupported
21410       always_export_symbols_F77=no
21411       enable_shared_with_static_runtimes_F77=yes
21412       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21413
21414       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21415         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21416         # If the export-symbols file already is a .def file (1st line
21417         # is EXPORTS), use it as is; otherwise, prepend...
21418         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21419           cp $export_symbols $output_objdir/$soname.def;
21420         else
21421           echo EXPORTS > $output_objdir/$soname.def;
21422           cat $export_symbols >> $output_objdir/$soname.def;
21423         fi~
21424         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21425       else
21426         ld_shlibs_F77=no
21427       fi
21428       ;;
21429
21430     interix3*)
21431       hardcode_direct_F77=no
21432       hardcode_shlibpath_var_F77=no
21433       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21434       export_dynamic_flag_spec_F77='${wl}-E'
21435       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21436       # Instead, shared libraries are loaded at an image base (0x10000000 by
21437       # default) and relocated if they conflict, which is a slow very memory
21438       # consuming and fragmenting process.  To avoid this, we pick a random,
21439       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21440       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21441       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'
21442       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'
21443       ;;
21444
21445     linux*)
21446       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21447         tmp_addflag=
21448         case $cc_basename,$host_cpu in
21449         pgcc*)                          # Portland Group C compiler
21450           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'
21451           tmp_addflag=' $pic_flag'
21452           ;;
21453         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21454           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'
21455           tmp_addflag=' $pic_flag -Mnomain' ;;
21456         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21457           tmp_addflag=' -i_dynamic' ;;
21458         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21459           tmp_addflag=' -i_dynamic -nofor_main' ;;
21460         ifc* | ifort*)                  # Intel Fortran compiler
21461           tmp_addflag=' -nofor_main' ;;
21462         esac
21463         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464
21465         if test $supports_anon_versioning = yes; then
21466           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21467   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21468   $echo "local: *; };" >> $output_objdir/$libname.ver~
21469           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21470         fi
21471       else
21472         ld_shlibs_F77=no
21473       fi
21474       ;;
21475
21476     netbsd*)
21477       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21479         wlarc=
21480       else
21481         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21483       fi
21484       ;;
21485
21486     solaris*)
21487       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21488         ld_shlibs_F77=no
21489         cat <<EOF 1>&2
21490
21491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492 *** create shared libraries on Solaris systems.  Therefore, libtool
21493 *** is disabling shared libraries support.  We urge you to upgrade GNU
21494 *** binutils to release 2.9.1 or newer.  Another option is to modify
21495 *** your PATH or compiler configuration so that the native linker is
21496 *** used, and then restart.
21497
21498 EOF
21499       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502       else
21503         ld_shlibs_F77=no
21504       fi
21505       ;;
21506
21507     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21508       case `$LD -v 2>&1` in
21509         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21510         ld_shlibs_F77=no
21511         cat <<_LT_EOF 1>&2
21512
21513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21514 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21515 *** is disabling shared libraries support.  We urge you to upgrade GNU
21516 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21517 *** your PATH or compiler configuration so that the native linker is
21518 *** used, and then restart.
21519
21520 _LT_EOF
21521         ;;
21522         *)
21523           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21524             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21525             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21526             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21527           else
21528             ld_shlibs_F77=no
21529           fi
21530         ;;
21531       esac
21532       ;;
21533
21534     sunos4*)
21535       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21536       wlarc=
21537       hardcode_direct_F77=yes
21538       hardcode_shlibpath_var_F77=no
21539       ;;
21540
21541     *)
21542       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21543         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21544         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545       else
21546         ld_shlibs_F77=no
21547       fi
21548       ;;
21549     esac
21550
21551     if test "$ld_shlibs_F77" = no; then
21552       runpath_var=
21553       hardcode_libdir_flag_spec_F77=
21554       export_dynamic_flag_spec_F77=
21555       whole_archive_flag_spec_F77=
21556     fi
21557   else
21558     # PORTME fill in a description of your system's linker (not GNU ld)
21559     case $host_os in
21560     aix3*)
21561       allow_undefined_flag_F77=unsupported
21562       always_export_symbols_F77=yes
21563       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'
21564       # Note: this linker hardcodes the directories in LIBPATH if there
21565       # are no directories specified by -L.
21566       hardcode_minus_L_F77=yes
21567       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21568         # Neither direct hardcoding nor static linking is supported with a
21569         # broken collect2.
21570         hardcode_direct_F77=unsupported
21571       fi
21572       ;;
21573
21574     aix4* | aix5*)
21575       if test "$host_cpu" = ia64; then
21576         # On IA64, the linker does run time linking by default, so we don't
21577         # have to do anything special.
21578         aix_use_runtimelinking=no
21579         exp_sym_flag='-Bexport'
21580         no_entry_flag=""
21581       else
21582         # If we're using GNU nm, then we don't want the "-C" option.
21583         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21584         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21585           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'
21586         else
21587           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'
21588         fi
21589         aix_use_runtimelinking=no
21590
21591         # Test if we are trying to use run time linking or normal
21592         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21593         # need to do runtime linking.
21594         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21595           for ld_flag in $LDFLAGS; do
21596           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21597             aix_use_runtimelinking=yes
21598             break
21599           fi
21600           done
21601           ;;
21602         esac
21603
21604         exp_sym_flag='-bexport'
21605         no_entry_flag='-bnoentry'
21606       fi
21607
21608       # When large executables or shared objects are built, AIX ld can
21609       # have problems creating the table of contents.  If linking a library
21610       # or program results in "error TOC overflow" add -mminimal-toc to
21611       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21612       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21613
21614       archive_cmds_F77=''
21615       hardcode_direct_F77=yes
21616       hardcode_libdir_separator_F77=':'
21617       link_all_deplibs_F77=yes
21618
21619       if test "$GCC" = yes; then
21620         case $host_os in aix4.[012]|aix4.[012].*)
21621         # We only want to do this on AIX 4.2 and lower, the check
21622         # below for broken collect2 doesn't work under 4.3+
21623           collect2name=`${CC} -print-prog-name=collect2`
21624           if test -f "$collect2name" && \
21625            strings "$collect2name" | grep resolve_lib_name >/dev/null
21626           then
21627           # We have reworked collect2
21628           hardcode_direct_F77=yes
21629           else
21630           # We have old collect2
21631           hardcode_direct_F77=unsupported
21632           # It fails to find uninstalled libraries when the uninstalled
21633           # path is not listed in the libpath.  Setting hardcode_minus_L
21634           # to unsupported forces relinking
21635           hardcode_minus_L_F77=yes
21636           hardcode_libdir_flag_spec_F77='-L$libdir'
21637           hardcode_libdir_separator_F77=
21638           fi
21639           ;;
21640         esac
21641         shared_flag='-shared'
21642         if test "$aix_use_runtimelinking" = yes; then
21643           shared_flag="$shared_flag "'${wl}-G'
21644         fi
21645       else
21646         # not using gcc
21647         if test "$host_cpu" = ia64; then
21648         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21649         # chokes on -Wl,-G. The following line is correct:
21650           shared_flag='-G'
21651         else
21652           if test "$aix_use_runtimelinking" = yes; then
21653             shared_flag='${wl}-G'
21654           else
21655             shared_flag='${wl}-bM:SRE'
21656           fi
21657         fi
21658       fi
21659
21660       # It seems that -bexpall does not export symbols beginning with
21661       # underscore (_), so it is better to generate a list of symbols to export.
21662       always_export_symbols_F77=yes
21663       if test "$aix_use_runtimelinking" = yes; then
21664         # Warning - without using the other runtime loading flags (-brtl),
21665         # -berok will link without error, but may produce a broken library.
21666         allow_undefined_flag_F77='-berok'
21667        # Determine the default libpath from the value encoded in an empty executable.
21668        cat >conftest.$ac_ext <<_ACEOF
21669       program main
21670
21671       end
21672 _ACEOF
21673 rm -f conftest.$ac_objext conftest$ac_exeext
21674 if { (ac_try="$ac_link"
21675 case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680   (eval "$ac_link") 2>conftest.er1
21681   ac_status=$?
21682   grep -v '^ *+' conftest.er1 >conftest.err
21683   rm -f conftest.er1
21684   cat conftest.err >&5
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); } &&
21687          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21688   { (case "(($ac_try" in
21689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690   *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693   (eval "$ac_try") 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; } &&
21697          { ac_try='test -s conftest$ac_exeext'
21698   { (case "(($ac_try" in
21699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700   *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703   (eval "$ac_try") 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; }; then
21707
21708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21709 }'`
21710 # Check for a 64-bit object if we didn't find anything.
21711 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21712 }'`; fi
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717
21718 fi
21719
21720 rm -f core conftest.err conftest.$ac_objext \
21721       conftest$ac_exeext conftest.$ac_ext
21722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21723
21724        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21725         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"
21726        else
21727         if test "$host_cpu" = ia64; then
21728           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21729           allow_undefined_flag_F77="-z nodefs"
21730           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"
21731         else
21732          # Determine the default libpath from the value encoded in an empty executable.
21733          cat >conftest.$ac_ext <<_ACEOF
21734       program main
21735
21736       end
21737 _ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_link") 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } &&
21752          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21753   { (case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_try") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; } &&
21762          { ac_try='test -s conftest$ac_exeext'
21763   { (case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_try") 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772
21773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21774 }'`
21775 # Check for a 64-bit object if we didn't find anything.
21776 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21777 }'`; fi
21778 else
21779   echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext \
21786       conftest$ac_exeext conftest.$ac_ext
21787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21788
21789          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21790           # Warning - without using the other run time loading flags,
21791           # -berok will link without error, but may produce a broken library.
21792           no_undefined_flag_F77=' ${wl}-bernotok'
21793           allow_undefined_flag_F77=' ${wl}-berok'
21794           # Exported symbols can be pulled into shared objects from archives
21795           whole_archive_flag_spec_F77='$convenience'
21796           archive_cmds_need_lc_F77=yes
21797           # This is similar to how AIX traditionally builds its shared libraries.
21798           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'
21799         fi
21800       fi
21801       ;;
21802
21803     amigaos*)
21804       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)'
21805       hardcode_libdir_flag_spec_F77='-L$libdir'
21806       hardcode_minus_L_F77=yes
21807       # see comment about different semantics on the GNU ld section
21808       ld_shlibs_F77=no
21809       ;;
21810
21811     bsdi[45]*)
21812       export_dynamic_flag_spec_F77=-rdynamic
21813       ;;
21814
21815     cygwin* | mingw* | pw32*)
21816       # When not using gcc, we currently assume that we are using
21817       # Microsoft Visual C++.
21818       # hardcode_libdir_flag_spec is actually meaningless, as there is
21819       # no search path for DLLs.
21820       hardcode_libdir_flag_spec_F77=' '
21821       allow_undefined_flag_F77=unsupported
21822       # Tell ltmain to make .lib files, not .a files.
21823       libext=lib
21824       # Tell ltmain to make .dll files, not .so files.
21825       shrext_cmds=".dll"
21826       # FIXME: Setting linknames here is a bad hack.
21827       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21828       # The linker will automatically build a .lib file if we build a DLL.
21829       old_archive_From_new_cmds_F77='true'
21830       # FIXME: Should let the user specify the lib program.
21831       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21832       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21833       enable_shared_with_static_runtimes_F77=yes
21834       ;;
21835
21836     darwin* | rhapsody*)
21837       case $host_os in
21838         rhapsody* | darwin1.[012])
21839          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21840          ;;
21841        *) # Darwin 1.3 on
21842          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21843            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21844          else
21845            case ${MACOSX_DEPLOYMENT_TARGET} in
21846              10.[012])
21847                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21848                ;;
21849              10.*)
21850                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21851                ;;
21852            esac
21853          fi
21854          ;;
21855       esac
21856       archive_cmds_need_lc_F77=no
21857       hardcode_direct_F77=no
21858       hardcode_automatic_F77=yes
21859       hardcode_shlibpath_var_F77=unsupported
21860       whole_archive_flag_spec_F77=''
21861       link_all_deplibs_F77=yes
21862     if test "$GCC" = yes ; then
21863         output_verbose_link_cmd='echo'
21864         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21865       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21866       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21867       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}'
21868       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}'
21869     else
21870       case $cc_basename in
21871         xlc*)
21872          output_verbose_link_cmd='echo'
21873          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21874          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21875           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21876          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21877           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}'
21878           ;;
21879        *)
21880          ld_shlibs_F77=no
21881           ;;
21882       esac
21883     fi
21884       ;;
21885
21886     dgux*)
21887       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21888       hardcode_libdir_flag_spec_F77='-L$libdir'
21889       hardcode_shlibpath_var_F77=no
21890       ;;
21891
21892     freebsd1*)
21893       ld_shlibs_F77=no
21894       ;;
21895
21896     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21897     # support.  Future versions do this automatically, but an explicit c++rt0.o
21898     # does not break anything, and helps significantly (at the cost of a little
21899     # extra space).
21900     freebsd2.2*)
21901       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21902       hardcode_libdir_flag_spec_F77='-R$libdir'
21903       hardcode_direct_F77=yes
21904       hardcode_shlibpath_var_F77=no
21905       ;;
21906
21907     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21908     freebsd2*)
21909       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910       hardcode_direct_F77=yes
21911       hardcode_minus_L_F77=yes
21912       hardcode_shlibpath_var_F77=no
21913       ;;
21914
21915     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21916     freebsd* | kfreebsd*-gnu | dragonfly*)
21917       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21918       hardcode_libdir_flag_spec_F77='-R$libdir'
21919       hardcode_direct_F77=yes
21920       hardcode_shlibpath_var_F77=no
21921       ;;
21922
21923     hpux9*)
21924       if test "$GCC" = yes; then
21925         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'
21926       else
21927         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'
21928       fi
21929       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21930       hardcode_libdir_separator_F77=:
21931       hardcode_direct_F77=yes
21932
21933       # hardcode_minus_L: Not really in the search PATH,
21934       # but as the default location of the library.
21935       hardcode_minus_L_F77=yes
21936       export_dynamic_flag_spec_F77='${wl}-E'
21937       ;;
21938
21939     hpux10*)
21940       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21941         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21942       else
21943         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21944       fi
21945       if test "$with_gnu_ld" = no; then
21946         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947         hardcode_libdir_separator_F77=:
21948
21949         hardcode_direct_F77=yes
21950         export_dynamic_flag_spec_F77='${wl}-E'
21951
21952         # hardcode_minus_L: Not really in the search PATH,
21953         # but as the default location of the library.
21954         hardcode_minus_L_F77=yes
21955       fi
21956       ;;
21957
21958     hpux11*)
21959       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21960         case $host_cpu in
21961         hppa*64*)
21962           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21963           ;;
21964         ia64*)
21965           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21966           ;;
21967         *)
21968           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21969           ;;
21970         esac
21971       else
21972         case $host_cpu in
21973         hppa*64*)
21974           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21975           ;;
21976         ia64*)
21977           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21978           ;;
21979         *)
21980           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21981           ;;
21982         esac
21983       fi
21984       if test "$with_gnu_ld" = no; then
21985         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21986         hardcode_libdir_separator_F77=:
21987
21988         case $host_cpu in
21989         hppa*64*|ia64*)
21990           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21991           hardcode_direct_F77=no
21992           hardcode_shlibpath_var_F77=no
21993           ;;
21994         *)
21995           hardcode_direct_F77=yes
21996           export_dynamic_flag_spec_F77='${wl}-E'
21997
21998           # hardcode_minus_L: Not really in the search PATH,
21999           # but as the default location of the library.
22000           hardcode_minus_L_F77=yes
22001           ;;
22002         esac
22003       fi
22004       ;;
22005
22006     irix5* | irix6* | nonstopux*)
22007       if test "$GCC" = yes; then
22008         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'
22009       else
22010         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'
22011         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22012       fi
22013       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22014       hardcode_libdir_separator_F77=:
22015       link_all_deplibs_F77=yes
22016       ;;
22017
22018     netbsd*)
22019       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22020         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22021       else
22022         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22023       fi
22024       hardcode_libdir_flag_spec_F77='-R$libdir'
22025       hardcode_direct_F77=yes
22026       hardcode_shlibpath_var_F77=no
22027       ;;
22028
22029     newsos6)
22030       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031       hardcode_direct_F77=yes
22032       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22033       hardcode_libdir_separator_F77=:
22034       hardcode_shlibpath_var_F77=no
22035       ;;
22036
22037     openbsd*)
22038       hardcode_direct_F77=yes
22039       hardcode_shlibpath_var_F77=no
22040       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22041         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22042         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22043         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22044         export_dynamic_flag_spec_F77='${wl}-E'
22045       else
22046        case $host_os in
22047          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22048            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22049            hardcode_libdir_flag_spec_F77='-R$libdir'
22050            ;;
22051          *)
22052            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22053            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22054            ;;
22055        esac
22056       fi
22057       ;;
22058
22059     os2*)
22060       hardcode_libdir_flag_spec_F77='-L$libdir'
22061       hardcode_minus_L_F77=yes
22062       allow_undefined_flag_F77=unsupported
22063       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'
22064       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22065       ;;
22066
22067     osf3*)
22068       if test "$GCC" = yes; then
22069         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22070         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'
22071       else
22072         allow_undefined_flag_F77=' -expect_unresolved \*'
22073         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'
22074       fi
22075       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22076       hardcode_libdir_separator_F77=:
22077       ;;
22078
22079     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22080       if test "$GCC" = yes; then
22081         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22082         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'
22083         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22084       else
22085         allow_undefined_flag_F77=' -expect_unresolved \*'
22086         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'
22087         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~
22088         $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'
22089
22090         # Both c and cxx compiler support -rpath directly
22091         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22092       fi
22093       hardcode_libdir_separator_F77=:
22094       ;;
22095
22096     solaris*)
22097       no_undefined_flag_F77=' -z text'
22098       if test "$GCC" = yes; then
22099         wlarc='${wl}'
22100         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22101         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22103       else
22104         wlarc=''
22105         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22106         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22107         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22108       fi
22109       hardcode_libdir_flag_spec_F77='-R$libdir'
22110       hardcode_shlibpath_var_F77=no
22111       case $host_os in
22112       solaris2.[0-5] | solaris2.[0-5].*) ;;
22113       *)
22114         # The compiler driver will combine linker options so we
22115         # cannot just pass the convience library names through
22116         # without $wl, iff we do not link with $LD.
22117         # Luckily, gcc supports the same syntax we need for Sun Studio.
22118         # Supported since Solaris 2.6 (maybe 2.5.1?)
22119         case $wlarc in
22120         '')
22121           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22122         *)
22123           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22124         esac ;;
22125       esac
22126       link_all_deplibs_F77=yes
22127       ;;
22128
22129     sunos4*)
22130       if test "x$host_vendor" = xsequent; then
22131         # Use $CC to link under sequent, because it throws in some extra .o
22132         # files that make .init and .fini sections work.
22133         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22134       else
22135         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22136       fi
22137       hardcode_libdir_flag_spec_F77='-L$libdir'
22138       hardcode_direct_F77=yes
22139       hardcode_minus_L_F77=yes
22140       hardcode_shlibpath_var_F77=no
22141       ;;
22142
22143     sysv4)
22144       case $host_vendor in
22145         sni)
22146           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147           hardcode_direct_F77=yes # is this really true???
22148         ;;
22149         siemens)
22150           ## LD is ld it makes a PLAMLIB
22151           ## CC just makes a GrossModule.
22152           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22153           reload_cmds_F77='$CC -r -o $output$reload_objs'
22154           hardcode_direct_F77=no
22155         ;;
22156         motorola)
22157           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22159         ;;
22160       esac
22161       runpath_var='LD_RUN_PATH'
22162       hardcode_shlibpath_var_F77=no
22163       ;;
22164
22165     sysv4.3*)
22166       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167       hardcode_shlibpath_var_F77=no
22168       export_dynamic_flag_spec_F77='-Bexport'
22169       ;;
22170
22171     sysv4*MP*)
22172       if test -d /usr/nec; then
22173         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22174         hardcode_shlibpath_var_F77=no
22175         runpath_var=LD_RUN_PATH
22176         hardcode_runpath_var=yes
22177         ld_shlibs_F77=yes
22178       fi
22179       ;;
22180
22181     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22182       no_undefined_flag_F77='${wl}-z,text'
22183       archive_cmds_need_lc_F77=no
22184       hardcode_shlibpath_var_F77=no
22185       runpath_var='LD_RUN_PATH'
22186
22187       if test "$GCC" = yes; then
22188         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22189         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22190       else
22191         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22192         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22193       fi
22194       ;;
22195
22196     sysv5* | sco3.2v5* | sco5v6*)
22197       # Note: We can NOT use -z defs as we might desire, because we do not
22198       # link with -lc, and that would cause any symbols used from libc to
22199       # always be unresolved, which means just about no library would
22200       # ever link correctly.  If we're not using GNU ld we use -z text
22201       # though, which does catch some bad symbols but isn't as heavy-handed
22202       # as -z defs.
22203       no_undefined_flag_F77='${wl}-z,text'
22204       allow_undefined_flag_F77='${wl}-z,nodefs'
22205       archive_cmds_need_lc_F77=no
22206       hardcode_shlibpath_var_F77=no
22207       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22208       hardcode_libdir_separator_F77=':'
22209       link_all_deplibs_F77=yes
22210       export_dynamic_flag_spec_F77='${wl}-Bexport'
22211       runpath_var='LD_RUN_PATH'
22212
22213       if test "$GCC" = yes; then
22214         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22216       else
22217         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22218         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22219       fi
22220       ;;
22221
22222     uts4*)
22223       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22224       hardcode_libdir_flag_spec_F77='-L$libdir'
22225       hardcode_shlibpath_var_F77=no
22226       ;;
22227
22228     *)
22229       ld_shlibs_F77=no
22230       ;;
22231     esac
22232   fi
22233
22234 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22235 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22236 test "$ld_shlibs_F77" = no && can_build_shared=no
22237
22238 #
22239 # Do we need to explicitly link libc?
22240 #
22241 case "x$archive_cmds_need_lc_F77" in
22242 x|xyes)
22243   # Assume -lc should be added
22244   archive_cmds_need_lc_F77=yes
22245
22246   if test "$enable_shared" = yes && test "$GCC" = yes; then
22247     case $archive_cmds_F77 in
22248     *'~'*)
22249       # FIXME: we may have to deal with multi-command sequences.
22250       ;;
22251     '$CC '*)
22252       # Test whether the compiler implicitly links with -lc since on some
22253       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22254       # to ld, don't add -lc before -lgcc.
22255       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22256 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22257       $rm conftest*
22258       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22259
22260       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22261   (eval $ac_compile) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } 2>conftest.err; then
22265         soname=conftest
22266         lib=conftest
22267         libobjs=conftest.$ac_objext
22268         deplibs=
22269         wl=$lt_prog_compiler_wl_F77
22270         pic_flag=$lt_prog_compiler_pic_F77
22271         compiler_flags=-v
22272         linker_flags=-v
22273         verstring=
22274         output_objdir=.
22275         libname=conftest
22276         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22277         allow_undefined_flag_F77=
22278         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22279   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }
22283         then
22284           archive_cmds_need_lc_F77=no
22285         else
22286           archive_cmds_need_lc_F77=yes
22287         fi
22288         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22289       else
22290         cat conftest.err 1>&5
22291       fi
22292       $rm conftest*
22293       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22294 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22295       ;;
22296     esac
22297   fi
22298   ;;
22299 esac
22300
22301 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22302 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22303 library_names_spec=
22304 libname_spec='lib$name'
22305 soname_spec=
22306 shrext_cmds=".so"
22307 postinstall_cmds=
22308 postuninstall_cmds=
22309 finish_cmds=
22310 finish_eval=
22311 shlibpath_var=
22312 shlibpath_overrides_runpath=unknown
22313 version_type=none
22314 dynamic_linker="$host_os ld.so"
22315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22316 if test "$GCC" = yes; then
22317   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22318   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22319     # if the path contains ";" then we assume it to be the separator
22320     # otherwise default to the standard path separator (i.e. ":") - it is
22321     # assumed that no part of a normal pathname contains ";" but that should
22322     # okay in the real world where ";" in dirpaths is itself problematic.
22323     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22324   else
22325     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22326   fi
22327 else
22328   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22329 fi
22330 need_lib_prefix=unknown
22331 hardcode_into_libs=no
22332
22333 # when you set need_version to no, make sure it does not cause -set_version
22334 # flags to be left without arguments
22335 need_version=unknown
22336
22337 case $host_os in
22338 aix3*)
22339   version_type=linux
22340   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22341   shlibpath_var=LIBPATH
22342
22343   # AIX 3 has no versioning support, so we append a major version to the name.
22344   soname_spec='${libname}${release}${shared_ext}$major'
22345   ;;
22346
22347 aix4* | aix5*)
22348   version_type=linux
22349   need_lib_prefix=no
22350   need_version=no
22351   hardcode_into_libs=yes
22352   if test "$host_cpu" = ia64; then
22353     # AIX 5 supports IA64
22354     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22355     shlibpath_var=LD_LIBRARY_PATH
22356   else
22357     # With GCC up to 2.95.x, collect2 would create an import file
22358     # for dependence libraries.  The import file would start with
22359     # the line `#! .'.  This would cause the generated library to
22360     # depend on `.', always an invalid library.  This was fixed in
22361     # development snapshots of GCC prior to 3.0.
22362     case $host_os in
22363       aix4 | aix4.[01] | aix4.[01].*)
22364       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22365            echo ' yes '
22366            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22367         :
22368       else
22369         can_build_shared=no
22370       fi
22371       ;;
22372     esac
22373     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22374     # soname into executable. Probably we can add versioning support to
22375     # collect2, so additional links can be useful in future.
22376     if test "$aix_use_runtimelinking" = yes; then
22377       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22378       # instead of lib<name>.a to let people know that these are not
22379       # typical AIX shared libraries.
22380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22381     else
22382       # We preserve .a as extension for shared libraries through AIX4.2
22383       # and later when we are not doing run time linking.
22384       library_names_spec='${libname}${release}.a $libname.a'
22385       soname_spec='${libname}${release}${shared_ext}$major'
22386     fi
22387     shlibpath_var=LIBPATH
22388   fi
22389   ;;
22390
22391 amigaos*)
22392   library_names_spec='$libname.ixlibrary $libname.a'
22393   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22394   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'
22395   ;;
22396
22397 beos*)
22398   library_names_spec='${libname}${shared_ext}'
22399   dynamic_linker="$host_os ld.so"
22400   shlibpath_var=LIBRARY_PATH
22401   ;;
22402
22403 bsdi[45]*)
22404   version_type=linux
22405   need_version=no
22406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407   soname_spec='${libname}${release}${shared_ext}$major'
22408   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22409   shlibpath_var=LD_LIBRARY_PATH
22410   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22411   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22412   # the default ld.so.conf also contains /usr/contrib/lib and
22413   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22414   # libtool to hard-code these into programs
22415   ;;
22416
22417 cygwin* | mingw* | pw32*)
22418   version_type=windows
22419   shrext_cmds=".dll"
22420   need_version=no
22421   need_lib_prefix=no
22422
22423   case $GCC,$host_os in
22424   yes,cygwin* | yes,mingw* | yes,pw32*)
22425     library_names_spec='$libname.dll.a'
22426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22427     postinstall_cmds='base_file=`basename \${file}`~
22428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22429       dldir=$destdir/`dirname \$dlpath`~
22430       test -d \$dldir || mkdir -p \$dldir~
22431       $install_prog $dir/$dlname \$dldir/$dlname~
22432       chmod a+x \$dldir/$dlname'
22433     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22434       dlpath=$dir/\$dldll~
22435        $rm \$dlpath'
22436     shlibpath_overrides_runpath=yes
22437
22438     case $host_os in
22439     cygwin*)
22440       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22441       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22442       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22443       ;;
22444     mingw*)
22445       # MinGW DLLs use traditional 'lib' prefix
22446       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22447       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22448       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22449         # It is most probably a Windows format PATH printed by
22450         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22451         # path with ; separators, and with drive letters. We can handle the
22452         # drive letters (cygwin fileutils understands them), so leave them,
22453         # especially as we might pass files found there to a mingw objdump,
22454         # which wouldn't understand a cygwinified path. Ahh.
22455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22456       else
22457         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22458       fi
22459       ;;
22460     pw32*)
22461       # pw32 DLLs use 'pw' prefix rather than 'lib'
22462       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22463       ;;
22464     esac
22465     ;;
22466
22467   *)
22468     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22469     ;;
22470   esac
22471   dynamic_linker='Win32 ld.exe'
22472   # FIXME: first we should search . and the directory the executable is in
22473   shlibpath_var=PATH
22474   ;;
22475
22476 darwin* | rhapsody*)
22477   dynamic_linker="$host_os dyld"
22478   version_type=darwin
22479   need_lib_prefix=no
22480   need_version=no
22481   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22482   soname_spec='${libname}${release}${major}$shared_ext'
22483   shlibpath_overrides_runpath=yes
22484   shlibpath_var=DYLD_LIBRARY_PATH
22485   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22486   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22487   if test "$GCC" = yes; then
22488     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22489   else
22490     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22491   fi
22492   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22493   ;;
22494
22495 dgux*)
22496   version_type=linux
22497   need_lib_prefix=no
22498   need_version=no
22499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22500   soname_spec='${libname}${release}${shared_ext}$major'
22501   shlibpath_var=LD_LIBRARY_PATH
22502   ;;
22503
22504 freebsd1*)
22505   dynamic_linker=no
22506   ;;
22507
22508 kfreebsd*-gnu)
22509   version_type=linux
22510   need_lib_prefix=no
22511   need_version=no
22512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22513   soname_spec='${libname}${release}${shared_ext}$major'
22514   shlibpath_var=LD_LIBRARY_PATH
22515   shlibpath_overrides_runpath=no
22516   hardcode_into_libs=yes
22517   dynamic_linker='GNU ld.so'
22518   ;;
22519
22520 freebsd* | dragonfly*)
22521   # DragonFly does not have aout.  When/if they implement a new
22522   # versioning mechanism, adjust this.
22523   if test -x /usr/bin/objformat; then
22524     objformat=`/usr/bin/objformat`
22525   else
22526     case $host_os in
22527     freebsd[123]*) objformat=aout ;;
22528     *) objformat=elf ;;
22529     esac
22530   fi
22531   version_type=freebsd-$objformat
22532   case $version_type in
22533     freebsd-elf*)
22534       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22535       need_version=no
22536       need_lib_prefix=no
22537       ;;
22538     freebsd-*)
22539       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22540       need_version=yes
22541       ;;
22542   esac
22543   shlibpath_var=LD_LIBRARY_PATH
22544   case $host_os in
22545   freebsd2*)
22546     shlibpath_overrides_runpath=yes
22547     ;;
22548   freebsd3.[01]* | freebsdelf3.[01]*)
22549     shlibpath_overrides_runpath=yes
22550     hardcode_into_libs=yes
22551     ;;
22552   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22553   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22554     shlibpath_overrides_runpath=no
22555     hardcode_into_libs=yes
22556     ;;
22557   freebsd*) # from 4.6 on
22558     shlibpath_overrides_runpath=yes
22559     hardcode_into_libs=yes
22560     ;;
22561   esac
22562   ;;
22563
22564 gnu*)
22565   version_type=linux
22566   need_lib_prefix=no
22567   need_version=no
22568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22569   soname_spec='${libname}${release}${shared_ext}$major'
22570   shlibpath_var=LD_LIBRARY_PATH
22571   hardcode_into_libs=yes
22572   ;;
22573
22574 hpux9* | hpux10* | hpux11*)
22575   # Give a soname corresponding to the major version so that dld.sl refuses to
22576   # link against other versions.
22577   version_type=sunos
22578   need_lib_prefix=no
22579   need_version=no
22580   case $host_cpu in
22581   ia64*)
22582     shrext_cmds='.so'
22583     hardcode_into_libs=yes
22584     dynamic_linker="$host_os dld.so"
22585     shlibpath_var=LD_LIBRARY_PATH
22586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588     soname_spec='${libname}${release}${shared_ext}$major'
22589     if test "X$HPUX_IA64_MODE" = X32; then
22590       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22591     else
22592       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22593     fi
22594     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22595     ;;
22596    hppa*64*)
22597      shrext_cmds='.sl'
22598      hardcode_into_libs=yes
22599      dynamic_linker="$host_os dld.sl"
22600      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22601      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603      soname_spec='${libname}${release}${shared_ext}$major'
22604      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22605      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22606      ;;
22607    *)
22608     shrext_cmds='.sl'
22609     dynamic_linker="$host_os dld.sl"
22610     shlibpath_var=SHLIB_PATH
22611     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613     soname_spec='${libname}${release}${shared_ext}$major'
22614     ;;
22615   esac
22616   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22617   postinstall_cmds='chmod 555 $lib'
22618   ;;
22619
22620 interix3*)
22621   version_type=linux
22622   need_lib_prefix=no
22623   need_version=no
22624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22625   soname_spec='${libname}${release}${shared_ext}$major'
22626   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22627   shlibpath_var=LD_LIBRARY_PATH
22628   shlibpath_overrides_runpath=no
22629   hardcode_into_libs=yes
22630   ;;
22631
22632 irix5* | irix6* | nonstopux*)
22633   case $host_os in
22634     nonstopux*) version_type=nonstopux ;;
22635     *)
22636         if test "$lt_cv_prog_gnu_ld" = yes; then
22637                 version_type=linux
22638         else
22639                 version_type=irix
22640         fi ;;
22641   esac
22642   need_lib_prefix=no
22643   need_version=no
22644   soname_spec='${libname}${release}${shared_ext}$major'
22645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22646   case $host_os in
22647   irix5* | nonstopux*)
22648     libsuff= shlibsuff=
22649     ;;
22650   *)
22651     case $LD in # libtool.m4 will add one of these switches to LD
22652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22653       libsuff= shlibsuff= libmagic=32-bit;;
22654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22655       libsuff=32 shlibsuff=N32 libmagic=N32;;
22656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22658     *) libsuff= shlibsuff= libmagic=never-match;;
22659     esac
22660     ;;
22661   esac
22662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22663   shlibpath_overrides_runpath=no
22664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22666   hardcode_into_libs=yes
22667   ;;
22668
22669 # No shared lib support for Linux oldld, aout, or coff.
22670 linux*oldld* | linux*aout* | linux*coff*)
22671   dynamic_linker=no
22672   ;;
22673
22674 # This must be Linux ELF.
22675 linux*)
22676   version_type=linux
22677   need_lib_prefix=no
22678   need_version=no
22679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22680   soname_spec='${libname}${release}${shared_ext}$major'
22681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22682   shlibpath_var=LD_LIBRARY_PATH
22683   shlibpath_overrides_runpath=no
22684   # This implies no fast_install, which is unacceptable.
22685   # Some rework will be needed to allow for fast_install
22686   # before this can be enabled.
22687   hardcode_into_libs=yes
22688
22689   # Append ld.so.conf contents to the search path
22690   if test -f /etc/ld.so.conf; then
22691     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22693   fi
22694
22695   # We used to test for /lib/ld.so.1 and disable shared libraries on
22696   # powerpc, because MkLinux only supported shared libraries with the
22697   # GNU dynamic linker.  Since this was broken with cross compilers,
22698   # most powerpc-linux boxes support dynamic linking these days and
22699   # people can always --disable-shared, the test was removed, and we
22700   # assume the GNU/Linux dynamic linker is in use.
22701   dynamic_linker='GNU/Linux ld.so'
22702   ;;
22703
22704 knetbsd*-gnu)
22705   version_type=linux
22706   need_lib_prefix=no
22707   need_version=no
22708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22709   soname_spec='${libname}${release}${shared_ext}$major'
22710   shlibpath_var=LD_LIBRARY_PATH
22711   shlibpath_overrides_runpath=no
22712   hardcode_into_libs=yes
22713   dynamic_linker='GNU ld.so'
22714   ;;
22715
22716 netbsd*)
22717   version_type=sunos
22718   need_lib_prefix=no
22719   need_version=no
22720   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22723     dynamic_linker='NetBSD (a.out) ld.so'
22724   else
22725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22726     soname_spec='${libname}${release}${shared_ext}$major'
22727     dynamic_linker='NetBSD ld.elf_so'
22728   fi
22729   shlibpath_var=LD_LIBRARY_PATH
22730   shlibpath_overrides_runpath=yes
22731   hardcode_into_libs=yes
22732   ;;
22733
22734 newsos6)
22735   version_type=linux
22736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737   shlibpath_var=LD_LIBRARY_PATH
22738   shlibpath_overrides_runpath=yes
22739   ;;
22740
22741 nto-qnx*)
22742   version_type=linux
22743   need_lib_prefix=no
22744   need_version=no
22745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746   soname_spec='${libname}${release}${shared_ext}$major'
22747   shlibpath_var=LD_LIBRARY_PATH
22748   shlibpath_overrides_runpath=yes
22749   ;;
22750
22751 openbsd*)
22752   version_type=sunos
22753   sys_lib_dlsearch_path_spec="/usr/lib"
22754   need_lib_prefix=no
22755   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22756   case $host_os in
22757     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22758     *)                         need_version=no  ;;
22759   esac
22760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22762   shlibpath_var=LD_LIBRARY_PATH
22763   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22764     case $host_os in
22765       openbsd2.[89] | openbsd2.[89].*)
22766         shlibpath_overrides_runpath=no
22767         ;;
22768       *)
22769         shlibpath_overrides_runpath=yes
22770         ;;
22771       esac
22772   else
22773     shlibpath_overrides_runpath=yes
22774   fi
22775   ;;
22776
22777 os2*)
22778   libname_spec='$name'
22779   shrext_cmds=".dll"
22780   need_lib_prefix=no
22781   library_names_spec='$libname${shared_ext} $libname.a'
22782   dynamic_linker='OS/2 ld.exe'
22783   shlibpath_var=LIBPATH
22784   ;;
22785
22786 osf3* | osf4* | osf5*)
22787   version_type=osf
22788   need_lib_prefix=no
22789   need_version=no
22790   soname_spec='${libname}${release}${shared_ext}$major'
22791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792   shlibpath_var=LD_LIBRARY_PATH
22793   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22794   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22795   ;;
22796
22797 solaris*)
22798   version_type=linux
22799   need_lib_prefix=no
22800   need_version=no
22801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802   soname_spec='${libname}${release}${shared_ext}$major'
22803   shlibpath_var=LD_LIBRARY_PATH
22804   shlibpath_overrides_runpath=yes
22805   hardcode_into_libs=yes
22806   # ldd complains unless libraries are executable
22807   postinstall_cmds='chmod +x $lib'
22808   ;;
22809
22810 sunos4*)
22811   version_type=sunos
22812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814   shlibpath_var=LD_LIBRARY_PATH
22815   shlibpath_overrides_runpath=yes
22816   if test "$with_gnu_ld" = yes; then
22817     need_lib_prefix=no
22818   fi
22819   need_version=yes
22820   ;;
22821
22822 sysv4 | sysv4.3*)
22823   version_type=linux
22824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825   soname_spec='${libname}${release}${shared_ext}$major'
22826   shlibpath_var=LD_LIBRARY_PATH
22827   case $host_vendor in
22828     sni)
22829       shlibpath_overrides_runpath=no
22830       need_lib_prefix=no
22831       export_dynamic_flag_spec='${wl}-Blargedynsym'
22832       runpath_var=LD_RUN_PATH
22833       ;;
22834     siemens)
22835       need_lib_prefix=no
22836       ;;
22837     motorola)
22838       need_lib_prefix=no
22839       need_version=no
22840       shlibpath_overrides_runpath=no
22841       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22842       ;;
22843   esac
22844   ;;
22845
22846 sysv4*MP*)
22847   if test -d /usr/nec ;then
22848     version_type=linux
22849     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850     soname_spec='$libname${shared_ext}.$major'
22851     shlibpath_var=LD_LIBRARY_PATH
22852   fi
22853   ;;
22854
22855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22856   version_type=freebsd-elf
22857   need_lib_prefix=no
22858   need_version=no
22859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22860   soname_spec='${libname}${release}${shared_ext}$major'
22861   shlibpath_var=LD_LIBRARY_PATH
22862   hardcode_into_libs=yes
22863   if test "$with_gnu_ld" = yes; then
22864     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22865     shlibpath_overrides_runpath=no
22866   else
22867     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22868     shlibpath_overrides_runpath=yes
22869     case $host_os in
22870       sco3.2v5*)
22871         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22872         ;;
22873     esac
22874   fi
22875   sys_lib_dlsearch_path_spec='/usr/lib'
22876   ;;
22877
22878 uts4*)
22879   version_type=linux
22880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881   soname_spec='${libname}${release}${shared_ext}$major'
22882   shlibpath_var=LD_LIBRARY_PATH
22883   ;;
22884
22885 *)
22886   dynamic_linker=no
22887   ;;
22888 esac
22889 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22890 echo "${ECHO_T}$dynamic_linker" >&6; }
22891 test "$dynamic_linker" = no && can_build_shared=no
22892
22893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22894 if test "$GCC" = yes; then
22895   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22896 fi
22897
22898 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22899 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22900 hardcode_action_F77=
22901 if test -n "$hardcode_libdir_flag_spec_F77" || \
22902    test -n "$runpath_var_F77" || \
22903    test "X$hardcode_automatic_F77" = "Xyes" ; then
22904
22905   # We can hardcode non-existant directories.
22906   if test "$hardcode_direct_F77" != no &&
22907      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22908      # have to relink, otherwise we might link with an installed library
22909      # when we should be linking with a yet-to-be-installed one
22910      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22911      test "$hardcode_minus_L_F77" != no; then
22912     # Linking always hardcodes the temporary library directory.
22913     hardcode_action_F77=relink
22914   else
22915     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22916     hardcode_action_F77=immediate
22917   fi
22918 else
22919   # We cannot hardcode anything, or else we can only hardcode existing
22920   # directories.
22921   hardcode_action_F77=unsupported
22922 fi
22923 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22924 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22925
22926 if test "$hardcode_action_F77" = relink; then
22927   # Fast installation is not supported
22928   enable_fast_install=no
22929 elif test "$shlibpath_overrides_runpath" = yes ||
22930      test "$enable_shared" = no; then
22931   # Fast installation is not necessary
22932   enable_fast_install=needless
22933 fi
22934
22935
22936 # The else clause should only fire when bootstrapping the
22937 # libtool distribution, otherwise you forgot to ship ltmain.sh
22938 # with your package, and you will get complaints that there are
22939 # no rules to generate ltmain.sh.
22940 if test -f "$ltmain"; then
22941   # See if we are running on zsh, and set the options which allow our commands through
22942   # without removal of \ escapes.
22943   if test -n "${ZSH_VERSION+set}" ; then
22944     setopt NO_GLOB_SUBST
22945   fi
22946   # Now quote all the things that may contain metacharacters while being
22947   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22948   # variables and quote the copies for generation of the libtool script.
22949   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22950     SED SHELL STRIP \
22951     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22952     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22953     deplibs_check_method reload_flag reload_cmds need_locks \
22954     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22955     lt_cv_sys_global_symbol_to_c_name_address \
22956     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22957     old_postinstall_cmds old_postuninstall_cmds \
22958     compiler_F77 \
22959     CC_F77 \
22960     LD_F77 \
22961     lt_prog_compiler_wl_F77 \
22962     lt_prog_compiler_pic_F77 \
22963     lt_prog_compiler_static_F77 \
22964     lt_prog_compiler_no_builtin_flag_F77 \
22965     export_dynamic_flag_spec_F77 \
22966     thread_safe_flag_spec_F77 \
22967     whole_archive_flag_spec_F77 \
22968     enable_shared_with_static_runtimes_F77 \
22969     old_archive_cmds_F77 \
22970     old_archive_from_new_cmds_F77 \
22971     predep_objects_F77 \
22972     postdep_objects_F77 \
22973     predeps_F77 \
22974     postdeps_F77 \
22975     compiler_lib_search_path_F77 \
22976     archive_cmds_F77 \
22977     archive_expsym_cmds_F77 \
22978     postinstall_cmds_F77 \
22979     postuninstall_cmds_F77 \
22980     old_archive_from_expsyms_cmds_F77 \
22981     allow_undefined_flag_F77 \
22982     no_undefined_flag_F77 \
22983     export_symbols_cmds_F77 \
22984     hardcode_libdir_flag_spec_F77 \
22985     hardcode_libdir_flag_spec_ld_F77 \
22986     hardcode_libdir_separator_F77 \
22987     hardcode_automatic_F77 \
22988     module_cmds_F77 \
22989     module_expsym_cmds_F77 \
22990     lt_cv_prog_compiler_c_o_F77 \
22991     exclude_expsyms_F77 \
22992     include_expsyms_F77; do
22993
22994     case $var in
22995     old_archive_cmds_F77 | \
22996     old_archive_from_new_cmds_F77 | \
22997     archive_cmds_F77 | \
22998     archive_expsym_cmds_F77 | \
22999     module_cmds_F77 | \
23000     module_expsym_cmds_F77 | \
23001     old_archive_from_expsyms_cmds_F77 | \
23002     export_symbols_cmds_F77 | \
23003     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23004     postinstall_cmds | postuninstall_cmds | \
23005     old_postinstall_cmds | old_postuninstall_cmds | \
23006     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23007       # Double-quote double-evaled strings.
23008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23009       ;;
23010     *)
23011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23012       ;;
23013     esac
23014   done
23015
23016   case $lt_echo in
23017   *'\$0 --fallback-echo"')
23018     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23019     ;;
23020   esac
23021
23022 cfgfile="$ofile"
23023
23024   cat <<__EOF__ >> "$cfgfile"
23025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23026
23027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23028
23029 # Shell to use when invoking shell scripts.
23030 SHELL=$lt_SHELL
23031
23032 # Whether or not to build shared libraries.
23033 build_libtool_libs=$enable_shared
23034
23035 # Whether or not to build static libraries.
23036 build_old_libs=$enable_static
23037
23038 # Whether or not to add -lc for building shared libraries.
23039 build_libtool_need_lc=$archive_cmds_need_lc_F77
23040
23041 # Whether or not to disallow shared libs when runtime libs are static
23042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23043
23044 # Whether or not to optimize for fast installation.
23045 fast_install=$enable_fast_install
23046
23047 # The host system.
23048 host_alias=$host_alias
23049 host=$host
23050 host_os=$host_os
23051
23052 # The build system.
23053 build_alias=$build_alias
23054 build=$build
23055 build_os=$build_os
23056
23057 # An echo program that does not interpret backslashes.
23058 echo=$lt_echo
23059
23060 # The archiver.
23061 AR=$lt_AR
23062 AR_FLAGS=$lt_AR_FLAGS
23063
23064 # A C compiler.
23065 LTCC=$lt_LTCC
23066
23067 # LTCC compiler flags.
23068 LTCFLAGS=$lt_LTCFLAGS
23069
23070 # A language-specific compiler.
23071 CC=$lt_compiler_F77
23072
23073 # Is the compiler the GNU C compiler?
23074 with_gcc=$GCC_F77
23075
23076 # An ERE matcher.
23077 EGREP=$lt_EGREP
23078
23079 # The linker used to build libraries.
23080 LD=$lt_LD_F77
23081
23082 # Whether we need hard or soft links.
23083 LN_S=$lt_LN_S
23084
23085 # A BSD-compatible nm program.
23086 NM=$lt_NM
23087
23088 # A symbol stripping program
23089 STRIP=$lt_STRIP
23090
23091 # Used to examine libraries when file_magic_cmd begins "file"
23092 MAGIC_CMD=$MAGIC_CMD
23093
23094 # Used on cygwin: DLL creation program.
23095 DLLTOOL="$DLLTOOL"
23096
23097 # Used on cygwin: object dumper.
23098 OBJDUMP="$OBJDUMP"
23099
23100 # Used on cygwin: assembler.
23101 AS="$AS"
23102
23103 # The name of the directory that contains temporary libtool files.
23104 objdir=$objdir
23105
23106 # How to create reloadable object files.
23107 reload_flag=$lt_reload_flag
23108 reload_cmds=$lt_reload_cmds
23109
23110 # How to pass a linker flag through the compiler.
23111 wl=$lt_lt_prog_compiler_wl_F77
23112
23113 # Object file suffix (normally "o").
23114 objext="$ac_objext"
23115
23116 # Old archive suffix (normally "a").
23117 libext="$libext"
23118
23119 # Shared library suffix (normally ".so").
23120 shrext_cmds='$shrext_cmds'
23121
23122 # Executable file suffix (normally "").
23123 exeext="$exeext"
23124
23125 # Additional compiler flags for building library objects.
23126 pic_flag=$lt_lt_prog_compiler_pic_F77
23127 pic_mode=$pic_mode
23128
23129 # What is the maximum length of a command?
23130 max_cmd_len=$lt_cv_sys_max_cmd_len
23131
23132 # Does compiler simultaneously support -c and -o options?
23133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23134
23135 # Must we lock files when doing compilation?
23136 need_locks=$lt_need_locks
23137
23138 # Do we need the lib prefix for modules?
23139 need_lib_prefix=$need_lib_prefix
23140
23141 # Do we need a version for libraries?
23142 need_version=$need_version
23143
23144 # Whether dlopen is supported.
23145 dlopen_support=$enable_dlopen
23146
23147 # Whether dlopen of programs is supported.
23148 dlopen_self=$enable_dlopen_self
23149
23150 # Whether dlopen of statically linked programs is supported.
23151 dlopen_self_static=$enable_dlopen_self_static
23152
23153 # Compiler flag to prevent dynamic linking.
23154 link_static_flag=$lt_lt_prog_compiler_static_F77
23155
23156 # Compiler flag to turn off builtin functions.
23157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23158
23159 # Compiler flag to allow reflexive dlopens.
23160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23161
23162 # Compiler flag to generate shared objects directly from archives.
23163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23164
23165 # Compiler flag to generate thread-safe objects.
23166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23167
23168 # Library versioning type.
23169 version_type=$version_type
23170
23171 # Format of library name prefix.
23172 libname_spec=$lt_libname_spec
23173
23174 # List of archive names.  First name is the real one, the rest are links.
23175 # The last name is the one that the linker finds with -lNAME.
23176 library_names_spec=$lt_library_names_spec
23177
23178 # The coded name of the library, if different from the real name.
23179 soname_spec=$lt_soname_spec
23180
23181 # Commands used to build and install an old-style archive.
23182 RANLIB=$lt_RANLIB
23183 old_archive_cmds=$lt_old_archive_cmds_F77
23184 old_postinstall_cmds=$lt_old_postinstall_cmds
23185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23186
23187 # Create an old-style archive from a shared archive.
23188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23189
23190 # Create a temporary old-style archive to link instead of a shared archive.
23191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23192
23193 # Commands used to build and install a shared archive.
23194 archive_cmds=$lt_archive_cmds_F77
23195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23196 postinstall_cmds=$lt_postinstall_cmds
23197 postuninstall_cmds=$lt_postuninstall_cmds
23198
23199 # Commands used to build a loadable module (assumed same as above if empty)
23200 module_cmds=$lt_module_cmds_F77
23201 module_expsym_cmds=$lt_module_expsym_cmds_F77
23202
23203 # Commands to strip libraries.
23204 old_striplib=$lt_old_striplib
23205 striplib=$lt_striplib
23206
23207 # Dependencies to place before the objects being linked to create a
23208 # shared library.
23209 predep_objects=$lt_predep_objects_F77
23210
23211 # Dependencies to place after the objects being linked to create a
23212 # shared library.
23213 postdep_objects=$lt_postdep_objects_F77
23214
23215 # Dependencies to place before the objects being linked to create a
23216 # shared library.
23217 predeps=$lt_predeps_F77
23218
23219 # Dependencies to place after the objects being linked to create a
23220 # shared library.
23221 postdeps=$lt_postdeps_F77
23222
23223 # The library search path used internally by the compiler when linking
23224 # a shared library.
23225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23226
23227 # Method to check whether dependent libraries are shared objects.
23228 deplibs_check_method=$lt_deplibs_check_method
23229
23230 # Command to use when deplibs_check_method == file_magic.
23231 file_magic_cmd=$lt_file_magic_cmd
23232
23233 # Flag that allows shared libraries with undefined symbols to be built.
23234 allow_undefined_flag=$lt_allow_undefined_flag_F77
23235
23236 # Flag that forces no undefined symbols.
23237 no_undefined_flag=$lt_no_undefined_flag_F77
23238
23239 # Commands used to finish a libtool library installation in a directory.
23240 finish_cmds=$lt_finish_cmds
23241
23242 # Same as above, but a single script fragment to be evaled but not shown.
23243 finish_eval=$lt_finish_eval
23244
23245 # Take the output of nm and produce a listing of raw symbols and C names.
23246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23247
23248 # Transform the output of nm in a proper C declaration
23249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23250
23251 # Transform the output of nm in a C name address pair
23252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23253
23254 # This is the shared library runtime path variable.
23255 runpath_var=$runpath_var
23256
23257 # This is the shared library path variable.
23258 shlibpath_var=$shlibpath_var
23259
23260 # Is shlibpath searched before the hard-coded library search path?
23261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23262
23263 # How to hardcode a shared library path into an executable.
23264 hardcode_action=$hardcode_action_F77
23265
23266 # Whether we should hardcode library paths into libraries.
23267 hardcode_into_libs=$hardcode_into_libs
23268
23269 # Flag to hardcode \$libdir into a binary during linking.
23270 # This must work even if \$libdir does not exist.
23271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23272
23273 # If ld is used when linking, flag to hardcode \$libdir into
23274 # a binary during linking. This must work even if \$libdir does
23275 # not exist.
23276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23277
23278 # Whether we need a single -rpath flag with a separated argument.
23279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23280
23281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23282 # resulting binary.
23283 hardcode_direct=$hardcode_direct_F77
23284
23285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23286 # resulting binary.
23287 hardcode_minus_L=$hardcode_minus_L_F77
23288
23289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23290 # the resulting binary.
23291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23292
23293 # Set to yes if building a shared library automatically hardcodes DIR into the library
23294 # and all subsequent libraries and executables linked against it.
23295 hardcode_automatic=$hardcode_automatic_F77
23296
23297 # Variables whose values should be saved in libtool wrapper scripts and
23298 # restored at relink time.
23299 variables_saved_for_relink="$variables_saved_for_relink"
23300
23301 # Whether libtool must link a program against all its dependency libraries.
23302 link_all_deplibs=$link_all_deplibs_F77
23303
23304 # Compile-time system search path for libraries
23305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23306
23307 # Run-time system search path for libraries
23308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23309
23310 # Fix the shell variable \$srcfile for the compiler.
23311 fix_srcfile_path="$fix_srcfile_path_F77"
23312
23313 # Set to yes if exported symbols are required.
23314 always_export_symbols=$always_export_symbols_F77
23315
23316 # The commands to list exported symbols.
23317 export_symbols_cmds=$lt_export_symbols_cmds_F77
23318
23319 # The commands to extract the exported symbol list from a shared archive.
23320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23321
23322 # Symbols that should not be listed in the preloaded symbols.
23323 exclude_expsyms=$lt_exclude_expsyms_F77
23324
23325 # Symbols that must always be exported.
23326 include_expsyms=$lt_include_expsyms_F77
23327
23328 # ### END LIBTOOL TAG CONFIG: $tagname
23329
23330 __EOF__
23331
23332
23333 else
23334   # If there is no Makefile yet, we rely on a make rule to execute
23335   # `config.status --recheck' to rerun these tests and create the
23336   # libtool script then.
23337   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23338   if test -f "$ltmain_in"; then
23339     test -f Makefile && make "$ltmain"
23340   fi
23341 fi
23342
23343
23344 ac_ext=c
23345 ac_cpp='$CPP $CPPFLAGS'
23346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23349
23350 CC="$lt_save_CC"
23351
23352         else
23353           tagname=""
23354         fi
23355         ;;
23356
23357       GCJ)
23358         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23359           ac_ext=c
23360 ac_cpp='$CPP $CPPFLAGS'
23361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23364
23365
23366 # Source file extension for Java test sources.
23367 ac_ext=java
23368
23369 # Object file extension for compiled Java test sources.
23370 objext=o
23371 objext_GCJ=$objext
23372
23373 # Code to be used in simple compile tests
23374 lt_simple_compile_test_code="class foo {}\n"
23375
23376 # Code to be used in simple link tests
23377 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23378
23379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23380
23381 # If no C compiler was specified, use CC.
23382 LTCC=${LTCC-"$CC"}
23383
23384 # If no C compiler flags were specified, use CFLAGS.
23385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23386
23387 # Allow CC to be a program name with arguments.
23388 compiler=$CC
23389
23390
23391 # save warnings/boilerplate of simple test code
23392 ac_outfile=conftest.$ac_objext
23393 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23395 _lt_compiler_boilerplate=`cat conftest.err`
23396 $rm conftest*
23397
23398 ac_outfile=conftest.$ac_objext
23399 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23401 _lt_linker_boilerplate=`cat conftest.err`
23402 $rm conftest*
23403
23404
23405 # Allow CC to be a program name with arguments.
23406 lt_save_CC="$CC"
23407 CC=${GCJ-"gcj"}
23408 compiler=$CC
23409 compiler_GCJ=$CC
23410 for cc_temp in $compiler""; do
23411   case $cc_temp in
23412     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23413     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23414     \-*) ;;
23415     *) break;;
23416   esac
23417 done
23418 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23419
23420
23421 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23422 archive_cmds_need_lc_GCJ=no
23423
23424 old_archive_cmds_GCJ=$old_archive_cmds
23425
23426
23427 lt_prog_compiler_no_builtin_flag_GCJ=
23428
23429 if test "$GCC" = yes; then
23430   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23431
23432
23433 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23434 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23435 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   lt_cv_prog_compiler_rtti_exceptions=no
23439   ac_outfile=conftest.$ac_objext
23440    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23441    lt_compiler_flag="-fno-rtti -fno-exceptions"
23442    # Insert the option either (1) after the last *FLAGS variable, or
23443    # (2) before a word containing "conftest.", or (3) at the end.
23444    # Note that $ac_compile itself does not contain backslashes and begins
23445    # with a dollar sign (not a hyphen), so the echo should work correctly.
23446    # The option is referenced via a variable to avoid confusing sed.
23447    lt_compile=`echo "$ac_compile" | $SED \
23448    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23449    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23450    -e 's:$: $lt_compiler_flag:'`
23451    (eval echo "\"\$as_me:23451: $lt_compile\"" >&5)
23452    (eval "$lt_compile" 2>conftest.err)
23453    ac_status=$?
23454    cat conftest.err >&5
23455    echo "$as_me:23455: \$? = $ac_status" >&5
23456    if (exit $ac_status) && test -s "$ac_outfile"; then
23457      # The compiler can only warn and ignore the option if not recognized
23458      # So say no if there are warnings other than the usual output.
23459      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23460      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23461      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23462        lt_cv_prog_compiler_rtti_exceptions=yes
23463      fi
23464    fi
23465    $rm conftest*
23466
23467 fi
23468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23469 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23470
23471 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23472     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23473 else
23474     :
23475 fi
23476
23477 fi
23478
23479 lt_prog_compiler_wl_GCJ=
23480 lt_prog_compiler_pic_GCJ=
23481 lt_prog_compiler_static_GCJ=
23482
23483 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23484 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23485
23486   if test "$GCC" = yes; then
23487     lt_prog_compiler_wl_GCJ='-Wl,'
23488     lt_prog_compiler_static_GCJ='-static'
23489
23490     case $host_os in
23491       aix*)
23492       # All AIX code is PIC.
23493       if test "$host_cpu" = ia64; then
23494         # AIX 5 now supports IA64 processor
23495         lt_prog_compiler_static_GCJ='-Bstatic'
23496       fi
23497       ;;
23498
23499     amigaos*)
23500       # FIXME: we need at least 68020 code to build shared libraries, but
23501       # adding the `-m68020' flag to GCC prevents building anything better,
23502       # like `-m68040'.
23503       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23504       ;;
23505
23506     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23507       # PIC is the default for these OSes.
23508       ;;
23509
23510     mingw* | pw32* | os2*)
23511       # This hack is so that the source file can tell whether it is being
23512       # built for inclusion in a dll (and should export symbols for example).
23513       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23514       ;;
23515
23516     darwin* | rhapsody*)
23517       # PIC is the default on this platform
23518       # Common symbols not allowed in MH_DYLIB files
23519       lt_prog_compiler_pic_GCJ='-fno-common'
23520       ;;
23521
23522     interix3*)
23523       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23524       # Instead, we relocate shared libraries at runtime.
23525       ;;
23526
23527     msdosdjgpp*)
23528       # Just because we use GCC doesn't mean we suddenly get shared libraries
23529       # on systems that don't support them.
23530       lt_prog_compiler_can_build_shared_GCJ=no
23531       enable_shared=no
23532       ;;
23533
23534     sysv4*MP*)
23535       if test -d /usr/nec; then
23536         lt_prog_compiler_pic_GCJ=-Kconform_pic
23537       fi
23538       ;;
23539
23540     hpux*)
23541       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23542       # not for PA HP-UX.
23543       case $host_cpu in
23544       hppa*64*|ia64*)
23545         # +Z the default
23546         ;;
23547       *)
23548         lt_prog_compiler_pic_GCJ='-fPIC'
23549         ;;
23550       esac
23551       ;;
23552
23553     *)
23554       lt_prog_compiler_pic_GCJ='-fPIC'
23555       ;;
23556     esac
23557   else
23558     # PORTME Check for flag to pass linker flags through the system compiler.
23559     case $host_os in
23560     aix*)
23561       lt_prog_compiler_wl_GCJ='-Wl,'
23562       if test "$host_cpu" = ia64; then
23563         # AIX 5 now supports IA64 processor
23564         lt_prog_compiler_static_GCJ='-Bstatic'
23565       else
23566         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23567       fi
23568       ;;
23569       darwin*)
23570         # PIC is the default on this platform
23571         # Common symbols not allowed in MH_DYLIB files
23572        case $cc_basename in
23573          xlc*)
23574          lt_prog_compiler_pic_GCJ='-qnocommon'
23575          lt_prog_compiler_wl_GCJ='-Wl,'
23576          ;;
23577        esac
23578        ;;
23579
23580     mingw* | pw32* | os2*)
23581       # This hack is so that the source file can tell whether it is being
23582       # built for inclusion in a dll (and should export symbols for example).
23583       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23584       ;;
23585
23586     hpux9* | hpux10* | hpux11*)
23587       lt_prog_compiler_wl_GCJ='-Wl,'
23588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23589       # not for PA HP-UX.
23590       case $host_cpu in
23591       hppa*64*|ia64*)
23592         # +Z the default
23593         ;;
23594       *)
23595         lt_prog_compiler_pic_GCJ='+Z'
23596         ;;
23597       esac
23598       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23599       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23600       ;;
23601
23602     irix5* | irix6* | nonstopux*)
23603       lt_prog_compiler_wl_GCJ='-Wl,'
23604       # PIC (with -KPIC) is the default.
23605       lt_prog_compiler_static_GCJ='-non_shared'
23606       ;;
23607
23608     newsos6)
23609       lt_prog_compiler_pic_GCJ='-KPIC'
23610       lt_prog_compiler_static_GCJ='-Bstatic'
23611       ;;
23612
23613     linux*)
23614       case $cc_basename in
23615       icc* | ecc*)
23616         lt_prog_compiler_wl_GCJ='-Wl,'
23617         lt_prog_compiler_pic_GCJ='-KPIC'
23618         lt_prog_compiler_static_GCJ='-static'
23619         ;;
23620       pgcc* | pgf77* | pgf90* | pgf95*)
23621         # Portland Group compilers (*not* the Pentium gcc compiler,
23622         # which looks to be a dead project)
23623         lt_prog_compiler_wl_GCJ='-Wl,'
23624         lt_prog_compiler_pic_GCJ='-fpic'
23625         lt_prog_compiler_static_GCJ='-Bstatic'
23626         ;;
23627       ccc*)
23628         lt_prog_compiler_wl_GCJ='-Wl,'
23629         # All Alpha code is PIC.
23630         lt_prog_compiler_static_GCJ='-non_shared'
23631         ;;
23632       esac
23633       ;;
23634
23635     osf3* | osf4* | osf5*)
23636       lt_prog_compiler_wl_GCJ='-Wl,'
23637       # All OSF/1 code is PIC.
23638       lt_prog_compiler_static_GCJ='-non_shared'
23639       ;;
23640
23641     solaris*)
23642       lt_prog_compiler_pic_GCJ='-KPIC'
23643       lt_prog_compiler_static_GCJ='-Bstatic'
23644       case $cc_basename in
23645       f77* | f90* | f95*)
23646         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23647       *)
23648         lt_prog_compiler_wl_GCJ='-Wl,';;
23649       esac
23650       ;;
23651
23652     sunos4*)
23653       lt_prog_compiler_wl_GCJ='-Qoption ld '
23654       lt_prog_compiler_pic_GCJ='-PIC'
23655       lt_prog_compiler_static_GCJ='-Bstatic'
23656       ;;
23657
23658     sysv4 | sysv4.2uw2* | sysv4.3*)
23659       lt_prog_compiler_wl_GCJ='-Wl,'
23660       lt_prog_compiler_pic_GCJ='-KPIC'
23661       lt_prog_compiler_static_GCJ='-Bstatic'
23662       ;;
23663
23664     sysv4*MP*)
23665       if test -d /usr/nec ;then
23666         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23667         lt_prog_compiler_static_GCJ='-Bstatic'
23668       fi
23669       ;;
23670
23671     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23672       lt_prog_compiler_wl_GCJ='-Wl,'
23673       lt_prog_compiler_pic_GCJ='-KPIC'
23674       lt_prog_compiler_static_GCJ='-Bstatic'
23675       ;;
23676
23677     unicos*)
23678       lt_prog_compiler_wl_GCJ='-Wl,'
23679       lt_prog_compiler_can_build_shared_GCJ=no
23680       ;;
23681
23682     uts4*)
23683       lt_prog_compiler_pic_GCJ='-pic'
23684       lt_prog_compiler_static_GCJ='-Bstatic'
23685       ;;
23686
23687     *)
23688       lt_prog_compiler_can_build_shared_GCJ=no
23689       ;;
23690     esac
23691   fi
23692
23693 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23694 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23695
23696 #
23697 # Check to make sure the PIC flag actually works.
23698 #
23699 if test -n "$lt_prog_compiler_pic_GCJ"; then
23700
23701 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23703 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23704   echo $ECHO_N "(cached) $ECHO_C" >&6
23705 else
23706   lt_prog_compiler_pic_works_GCJ=no
23707   ac_outfile=conftest.$ac_objext
23708    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23709    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23710    # Insert the option either (1) after the last *FLAGS variable, or
23711    # (2) before a word containing "conftest.", or (3) at the end.
23712    # Note that $ac_compile itself does not contain backslashes and begins
23713    # with a dollar sign (not a hyphen), so the echo should work correctly.
23714    # The option is referenced via a variable to avoid confusing sed.
23715    lt_compile=`echo "$ac_compile" | $SED \
23716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23718    -e 's:$: $lt_compiler_flag:'`
23719    (eval echo "\"\$as_me:23719: $lt_compile\"" >&5)
23720    (eval "$lt_compile" 2>conftest.err)
23721    ac_status=$?
23722    cat conftest.err >&5
23723    echo "$as_me:23723: \$? = $ac_status" >&5
23724    if (exit $ac_status) && test -s "$ac_outfile"; then
23725      # The compiler can only warn and ignore the option if not recognized
23726      # So say no if there are warnings other than the usual output.
23727      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23730        lt_prog_compiler_pic_works_GCJ=yes
23731      fi
23732    fi
23733    $rm conftest*
23734
23735 fi
23736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23737 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23738
23739 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23740     case $lt_prog_compiler_pic_GCJ in
23741      "" | " "*) ;;
23742      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23743      esac
23744 else
23745     lt_prog_compiler_pic_GCJ=
23746      lt_prog_compiler_can_build_shared_GCJ=no
23747 fi
23748
23749 fi
23750 case $host_os in
23751   # For platforms which do not support PIC, -DPIC is meaningless:
23752   *djgpp*)
23753     lt_prog_compiler_pic_GCJ=
23754     ;;
23755   *)
23756     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23757     ;;
23758 esac
23759
23760 #
23761 # Check to make sure the static flag actually works.
23762 #
23763 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23764 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23765 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23766 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23767   echo $ECHO_N "(cached) $ECHO_C" >&6
23768 else
23769   lt_prog_compiler_static_works_GCJ=no
23770    save_LDFLAGS="$LDFLAGS"
23771    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23772    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23773    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23774      # The linker can only warn and ignore the option if not recognized
23775      # So say no if there are warnings
23776      if test -s conftest.err; then
23777        # Append any errors to the config.log.
23778        cat conftest.err 1>&5
23779        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23780        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23781        if diff conftest.exp conftest.er2 >/dev/null; then
23782          lt_prog_compiler_static_works_GCJ=yes
23783        fi
23784      else
23785        lt_prog_compiler_static_works_GCJ=yes
23786      fi
23787    fi
23788    $rm conftest*
23789    LDFLAGS="$save_LDFLAGS"
23790
23791 fi
23792 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23793 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23794
23795 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23796     :
23797 else
23798     lt_prog_compiler_static_GCJ=
23799 fi
23800
23801
23802 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23803 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23804 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807   lt_cv_prog_compiler_c_o_GCJ=no
23808    $rm -r conftest 2>/dev/null
23809    mkdir conftest
23810    cd conftest
23811    mkdir out
23812    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23813
23814    lt_compiler_flag="-o out/conftest2.$ac_objext"
23815    # Insert the option either (1) after the last *FLAGS variable, or
23816    # (2) before a word containing "conftest.", or (3) at the end.
23817    # Note that $ac_compile itself does not contain backslashes and begins
23818    # with a dollar sign (not a hyphen), so the echo should work correctly.
23819    lt_compile=`echo "$ac_compile" | $SED \
23820    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23822    -e 's:$: $lt_compiler_flag:'`
23823    (eval echo "\"\$as_me:23823: $lt_compile\"" >&5)
23824    (eval "$lt_compile" 2>out/conftest.err)
23825    ac_status=$?
23826    cat out/conftest.err >&5
23827    echo "$as_me:23827: \$? = $ac_status" >&5
23828    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23829    then
23830      # The compiler can only warn and ignore the option if not recognized
23831      # So say no if there are warnings
23832      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23833      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23834      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23835        lt_cv_prog_compiler_c_o_GCJ=yes
23836      fi
23837    fi
23838    chmod u+w . 2>&5
23839    $rm conftest*
23840    # SGI C++ compiler will create directory out/ii_files/ for
23841    # template instantiation
23842    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23843    $rm out/* && rmdir out
23844    cd ..
23845    rmdir conftest
23846    $rm conftest*
23847
23848 fi
23849 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23850 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23851
23852
23853 hard_links="nottested"
23854 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23855   # do not overwrite the value of need_locks provided by the user
23856   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23857 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23858   hard_links=yes
23859   $rm conftest*
23860   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23861   touch conftest.a
23862   ln conftest.a conftest.b 2>&5 || hard_links=no
23863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23864   { echo "$as_me:$LINENO: result: $hard_links" >&5
23865 echo "${ECHO_T}$hard_links" >&6; }
23866   if test "$hard_links" = no; then
23867     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23868 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23869     need_locks=warn
23870   fi
23871 else
23872   need_locks=no
23873 fi
23874
23875 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23876 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23877
23878   runpath_var=
23879   allow_undefined_flag_GCJ=
23880   enable_shared_with_static_runtimes_GCJ=no
23881   archive_cmds_GCJ=
23882   archive_expsym_cmds_GCJ=
23883   old_archive_From_new_cmds_GCJ=
23884   old_archive_from_expsyms_cmds_GCJ=
23885   export_dynamic_flag_spec_GCJ=
23886   whole_archive_flag_spec_GCJ=
23887   thread_safe_flag_spec_GCJ=
23888   hardcode_libdir_flag_spec_GCJ=
23889   hardcode_libdir_flag_spec_ld_GCJ=
23890   hardcode_libdir_separator_GCJ=
23891   hardcode_direct_GCJ=no
23892   hardcode_minus_L_GCJ=no
23893   hardcode_shlibpath_var_GCJ=unsupported
23894   link_all_deplibs_GCJ=unknown
23895   hardcode_automatic_GCJ=no
23896   module_cmds_GCJ=
23897   module_expsym_cmds_GCJ=
23898   always_export_symbols_GCJ=no
23899   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23900   # include_expsyms should be a list of space-separated symbols to be *always*
23901   # included in the symbol list
23902   include_expsyms_GCJ=
23903   # exclude_expsyms can be an extended regexp of symbols to exclude
23904   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23905   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23906   # as well as any symbol that contains `d'.
23907   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23908   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23909   # platforms (ab)use it in PIC code, but their linkers get confused if
23910   # the symbol is explicitly referenced.  Since portable code cannot
23911   # rely on this symbol name, it's probably fine to never include it in
23912   # preloaded symbol tables.
23913   extract_expsyms_cmds=
23914   # Just being paranoid about ensuring that cc_basename is set.
23915   for cc_temp in $compiler""; do
23916   case $cc_temp in
23917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23919     \-*) ;;
23920     *) break;;
23921   esac
23922 done
23923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23924
23925   case $host_os in
23926   cygwin* | mingw* | pw32*)
23927     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23928     # When not using gcc, we currently assume that we are using
23929     # Microsoft Visual C++.
23930     if test "$GCC" != yes; then
23931       with_gnu_ld=no
23932     fi
23933     ;;
23934   interix*)
23935     # we just hope/assume this is gcc and not c89 (= MSVC++)
23936     with_gnu_ld=yes
23937     ;;
23938   openbsd*)
23939     with_gnu_ld=no
23940     ;;
23941   esac
23942
23943   ld_shlibs_GCJ=yes
23944   if test "$with_gnu_ld" = yes; then
23945     # If archive_cmds runs LD, not CC, wlarc should be empty
23946     wlarc='${wl}'
23947
23948     # Set some defaults for GNU ld with shared library support. These
23949     # are reset later if shared libraries are not supported. Putting them
23950     # here allows them to be overridden if necessary.
23951     runpath_var=LD_RUN_PATH
23952     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23953     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23954     # ancient GNU ld didn't support --whole-archive et. al.
23955     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23956         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23957       else
23958         whole_archive_flag_spec_GCJ=
23959     fi
23960     supports_anon_versioning=no
23961     case `$LD -v 2>/dev/null` in
23962       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23963       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23964       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23965       *\ 2.11.*) ;; # other 2.11 versions
23966       *) supports_anon_versioning=yes ;;
23967     esac
23968
23969     # See if GNU ld supports shared libraries.
23970     case $host_os in
23971     aix3* | aix4* | aix5*)
23972       # On AIX/PPC, the GNU linker is very broken
23973       if test "$host_cpu" != ia64; then
23974         ld_shlibs_GCJ=no
23975         cat <<EOF 1>&2
23976
23977 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23978 *** to be unable to reliably create shared libraries on AIX.
23979 *** Therefore, libtool is disabling shared libraries support.  If you
23980 *** really care for shared libraries, you may want to modify your PATH
23981 *** so that a non-GNU linker is found, and then restart.
23982
23983 EOF
23984       fi
23985       ;;
23986
23987     amigaos*)
23988       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)'
23989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23990       hardcode_minus_L_GCJ=yes
23991
23992       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23993       # that the semantics of dynamic libraries on AmigaOS, at least up
23994       # to version 4, is to share data among multiple programs linked
23995       # with the same dynamic library.  Since this doesn't match the
23996       # behavior of shared libraries on other platforms, we can't use
23997       # them.
23998       ld_shlibs_GCJ=no
23999       ;;
24000
24001     beos*)
24002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24003         allow_undefined_flag_GCJ=unsupported
24004         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24005         # support --undefined.  This deserves some investigation.  FIXME
24006         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24007       else
24008         ld_shlibs_GCJ=no
24009       fi
24010       ;;
24011
24012     cygwin* | mingw* | pw32*)
24013       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24014       # as there is no search path for DLLs.
24015       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24016       allow_undefined_flag_GCJ=unsupported
24017       always_export_symbols_GCJ=no
24018       enable_shared_with_static_runtimes_GCJ=yes
24019       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24020
24021       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24023         # If the export-symbols file already is a .def file (1st line
24024         # is EXPORTS), use it as is; otherwise, prepend...
24025         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24026           cp $export_symbols $output_objdir/$soname.def;
24027         else
24028           echo EXPORTS > $output_objdir/$soname.def;
24029           cat $export_symbols >> $output_objdir/$soname.def;
24030         fi~
24031         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24032       else
24033         ld_shlibs_GCJ=no
24034       fi
24035       ;;
24036
24037     interix3*)
24038       hardcode_direct_GCJ=no
24039       hardcode_shlibpath_var_GCJ=no
24040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24041       export_dynamic_flag_spec_GCJ='${wl}-E'
24042       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24043       # Instead, shared libraries are loaded at an image base (0x10000000 by
24044       # default) and relocated if they conflict, which is a slow very memory
24045       # consuming and fragmenting process.  To avoid this, we pick a random,
24046       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24047       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24048       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'
24049       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'
24050       ;;
24051
24052     linux*)
24053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24054         tmp_addflag=
24055         case $cc_basename,$host_cpu in
24056         pgcc*)                          # Portland Group C compiler
24057           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'
24058           tmp_addflag=' $pic_flag'
24059           ;;
24060         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24061           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'
24062           tmp_addflag=' $pic_flag -Mnomain' ;;
24063         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24064           tmp_addflag=' -i_dynamic' ;;
24065         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24066           tmp_addflag=' -i_dynamic -nofor_main' ;;
24067         ifc* | ifort*)                  # Intel Fortran compiler
24068           tmp_addflag=' -nofor_main' ;;
24069         esac
24070         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24071
24072         if test $supports_anon_versioning = yes; then
24073           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24074   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24075   $echo "local: *; };" >> $output_objdir/$libname.ver~
24076           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24077         fi
24078       else
24079         ld_shlibs_GCJ=no
24080       fi
24081       ;;
24082
24083     netbsd*)
24084       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24085         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24086         wlarc=
24087       else
24088         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24090       fi
24091       ;;
24092
24093     solaris*)
24094       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24095         ld_shlibs_GCJ=no
24096         cat <<EOF 1>&2
24097
24098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24099 *** create shared libraries on Solaris systems.  Therefore, libtool
24100 *** is disabling shared libraries support.  We urge you to upgrade GNU
24101 *** binutils to release 2.9.1 or newer.  Another option is to modify
24102 *** your PATH or compiler configuration so that the native linker is
24103 *** used, and then restart.
24104
24105 EOF
24106       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24107         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24108         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24109       else
24110         ld_shlibs_GCJ=no
24111       fi
24112       ;;
24113
24114     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24115       case `$LD -v 2>&1` in
24116         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24117         ld_shlibs_GCJ=no
24118         cat <<_LT_EOF 1>&2
24119
24120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24121 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24122 *** is disabling shared libraries support.  We urge you to upgrade GNU
24123 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24124 *** your PATH or compiler configuration so that the native linker is
24125 *** used, and then restart.
24126
24127 _LT_EOF
24128         ;;
24129         *)
24130           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24131             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24132             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24133             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24134           else
24135             ld_shlibs_GCJ=no
24136           fi
24137         ;;
24138       esac
24139       ;;
24140
24141     sunos4*)
24142       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24143       wlarc=
24144       hardcode_direct_GCJ=yes
24145       hardcode_shlibpath_var_GCJ=no
24146       ;;
24147
24148     *)
24149       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24150         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24151         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152       else
24153         ld_shlibs_GCJ=no
24154       fi
24155       ;;
24156     esac
24157
24158     if test "$ld_shlibs_GCJ" = no; then
24159       runpath_var=
24160       hardcode_libdir_flag_spec_GCJ=
24161       export_dynamic_flag_spec_GCJ=
24162       whole_archive_flag_spec_GCJ=
24163     fi
24164   else
24165     # PORTME fill in a description of your system's linker (not GNU ld)
24166     case $host_os in
24167     aix3*)
24168       allow_undefined_flag_GCJ=unsupported
24169       always_export_symbols_GCJ=yes
24170       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'
24171       # Note: this linker hardcodes the directories in LIBPATH if there
24172       # are no directories specified by -L.
24173       hardcode_minus_L_GCJ=yes
24174       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24175         # Neither direct hardcoding nor static linking is supported with a
24176         # broken collect2.
24177         hardcode_direct_GCJ=unsupported
24178       fi
24179       ;;
24180
24181     aix4* | aix5*)
24182       if test "$host_cpu" = ia64; then
24183         # On IA64, the linker does run time linking by default, so we don't
24184         # have to do anything special.
24185         aix_use_runtimelinking=no
24186         exp_sym_flag='-Bexport'
24187         no_entry_flag=""
24188       else
24189         # If we're using GNU nm, then we don't want the "-C" option.
24190         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24191         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24192           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'
24193         else
24194           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'
24195         fi
24196         aix_use_runtimelinking=no
24197
24198         # Test if we are trying to use run time linking or normal
24199         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24200         # need to do runtime linking.
24201         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24202           for ld_flag in $LDFLAGS; do
24203           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24204             aix_use_runtimelinking=yes
24205             break
24206           fi
24207           done
24208           ;;
24209         esac
24210
24211         exp_sym_flag='-bexport'
24212         no_entry_flag='-bnoentry'
24213       fi
24214
24215       # When large executables or shared objects are built, AIX ld can
24216       # have problems creating the table of contents.  If linking a library
24217       # or program results in "error TOC overflow" add -mminimal-toc to
24218       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24219       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24220
24221       archive_cmds_GCJ=''
24222       hardcode_direct_GCJ=yes
24223       hardcode_libdir_separator_GCJ=':'
24224       link_all_deplibs_GCJ=yes
24225
24226       if test "$GCC" = yes; then
24227         case $host_os in aix4.[012]|aix4.[012].*)
24228         # We only want to do this on AIX 4.2 and lower, the check
24229         # below for broken collect2 doesn't work under 4.3+
24230           collect2name=`${CC} -print-prog-name=collect2`
24231           if test -f "$collect2name" && \
24232            strings "$collect2name" | grep resolve_lib_name >/dev/null
24233           then
24234           # We have reworked collect2
24235           hardcode_direct_GCJ=yes
24236           else
24237           # We have old collect2
24238           hardcode_direct_GCJ=unsupported
24239           # It fails to find uninstalled libraries when the uninstalled
24240           # path is not listed in the libpath.  Setting hardcode_minus_L
24241           # to unsupported forces relinking
24242           hardcode_minus_L_GCJ=yes
24243           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24244           hardcode_libdir_separator_GCJ=
24245           fi
24246           ;;
24247         esac
24248         shared_flag='-shared'
24249         if test "$aix_use_runtimelinking" = yes; then
24250           shared_flag="$shared_flag "'${wl}-G'
24251         fi
24252       else
24253         # not using gcc
24254         if test "$host_cpu" = ia64; then
24255         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24256         # chokes on -Wl,-G. The following line is correct:
24257           shared_flag='-G'
24258         else
24259           if test "$aix_use_runtimelinking" = yes; then
24260             shared_flag='${wl}-G'
24261           else
24262             shared_flag='${wl}-bM:SRE'
24263           fi
24264         fi
24265       fi
24266
24267       # It seems that -bexpall does not export symbols beginning with
24268       # underscore (_), so it is better to generate a list of symbols to export.
24269       always_export_symbols_GCJ=yes
24270       if test "$aix_use_runtimelinking" = yes; then
24271         # Warning - without using the other runtime loading flags (-brtl),
24272         # -berok will link without error, but may produce a broken library.
24273         allow_undefined_flag_GCJ='-berok'
24274        # Determine the default libpath from the value encoded in an empty executable.
24275        cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h.  */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h.  */
24281
24282 int
24283 main ()
24284 {
24285
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_link") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } &&
24304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305   { (case "(($ac_try" in
24306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307   *) ac_try_echo=$ac_try;;
24308 esac
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310   (eval "$ac_try") 2>&5
24311   ac_status=$?
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); }; } &&
24314          { ac_try='test -s conftest$ac_exeext'
24315   { (case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_try") 2>&5
24321   ac_status=$?
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); }; }; then
24324
24325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24326 }'`
24327 # Check for a 64-bit object if we didn't find anything.
24328 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24329 }'`; fi
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334
24335 fi
24336
24337 rm -f core conftest.err conftest.$ac_objext \
24338       conftest$ac_exeext conftest.$ac_ext
24339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24340
24341        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24342         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"
24343        else
24344         if test "$host_cpu" = ia64; then
24345           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24346           allow_undefined_flag_GCJ="-z nodefs"
24347           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"
24348         else
24349          # Determine the default libpath from the value encoded in an empty executable.
24350          cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356
24357 int
24358 main ()
24359 {
24360
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (ac_try="$ac_link"
24367 case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372   (eval "$ac_link") 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380   { (case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_try") 2>&5
24386   ac_status=$?
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; } &&
24389          { ac_try='test -s conftest$ac_exeext'
24390   { (case "(($ac_try" in
24391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392   *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395   (eval "$ac_try") 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; }; then
24399
24400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24401 }'`
24402 # Check for a 64-bit object if we didn't find anything.
24403 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24404 }'`; fi
24405 else
24406   echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24408
24409
24410 fi
24411
24412 rm -f core conftest.err conftest.$ac_objext \
24413       conftest$ac_exeext conftest.$ac_ext
24414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24415
24416          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24417           # Warning - without using the other run time loading flags,
24418           # -berok will link without error, but may produce a broken library.
24419           no_undefined_flag_GCJ=' ${wl}-bernotok'
24420           allow_undefined_flag_GCJ=' ${wl}-berok'
24421           # Exported symbols can be pulled into shared objects from archives
24422           whole_archive_flag_spec_GCJ='$convenience'
24423           archive_cmds_need_lc_GCJ=yes
24424           # This is similar to how AIX traditionally builds its shared libraries.
24425           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'
24426         fi
24427       fi
24428       ;;
24429
24430     amigaos*)
24431       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)'
24432       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24433       hardcode_minus_L_GCJ=yes
24434       # see comment about different semantics on the GNU ld section
24435       ld_shlibs_GCJ=no
24436       ;;
24437
24438     bsdi[45]*)
24439       export_dynamic_flag_spec_GCJ=-rdynamic
24440       ;;
24441
24442     cygwin* | mingw* | pw32*)
24443       # When not using gcc, we currently assume that we are using
24444       # Microsoft Visual C++.
24445       # hardcode_libdir_flag_spec is actually meaningless, as there is
24446       # no search path for DLLs.
24447       hardcode_libdir_flag_spec_GCJ=' '
24448       allow_undefined_flag_GCJ=unsupported
24449       # Tell ltmain to make .lib files, not .a files.
24450       libext=lib
24451       # Tell ltmain to make .dll files, not .so files.
24452       shrext_cmds=".dll"
24453       # FIXME: Setting linknames here is a bad hack.
24454       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24455       # The linker will automatically build a .lib file if we build a DLL.
24456       old_archive_From_new_cmds_GCJ='true'
24457       # FIXME: Should let the user specify the lib program.
24458       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24459       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24460       enable_shared_with_static_runtimes_GCJ=yes
24461       ;;
24462
24463     darwin* | rhapsody*)
24464       case $host_os in
24465         rhapsody* | darwin1.[012])
24466          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24467          ;;
24468        *) # Darwin 1.3 on
24469          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24470            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24471          else
24472            case ${MACOSX_DEPLOYMENT_TARGET} in
24473              10.[012])
24474                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24475                ;;
24476              10.*)
24477                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24478                ;;
24479            esac
24480          fi
24481          ;;
24482       esac
24483       archive_cmds_need_lc_GCJ=no
24484       hardcode_direct_GCJ=no
24485       hardcode_automatic_GCJ=yes
24486       hardcode_shlibpath_var_GCJ=unsupported
24487       whole_archive_flag_spec_GCJ=''
24488       link_all_deplibs_GCJ=yes
24489     if test "$GCC" = yes ; then
24490         output_verbose_link_cmd='echo'
24491         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24492       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24493       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24494       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}'
24495       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}'
24496     else
24497       case $cc_basename in
24498         xlc*)
24499          output_verbose_link_cmd='echo'
24500          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24501          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24502           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24503          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24504           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}'
24505           ;;
24506        *)
24507          ld_shlibs_GCJ=no
24508           ;;
24509       esac
24510     fi
24511       ;;
24512
24513     dgux*)
24514       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24515       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516       hardcode_shlibpath_var_GCJ=no
24517       ;;
24518
24519     freebsd1*)
24520       ld_shlibs_GCJ=no
24521       ;;
24522
24523     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24524     # support.  Future versions do this automatically, but an explicit c++rt0.o
24525     # does not break anything, and helps significantly (at the cost of a little
24526     # extra space).
24527     freebsd2.2*)
24528       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24529       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24530       hardcode_direct_GCJ=yes
24531       hardcode_shlibpath_var_GCJ=no
24532       ;;
24533
24534     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24535     freebsd2*)
24536       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24537       hardcode_direct_GCJ=yes
24538       hardcode_minus_L_GCJ=yes
24539       hardcode_shlibpath_var_GCJ=no
24540       ;;
24541
24542     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24543     freebsd* | kfreebsd*-gnu | dragonfly*)
24544       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24545       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24546       hardcode_direct_GCJ=yes
24547       hardcode_shlibpath_var_GCJ=no
24548       ;;
24549
24550     hpux9*)
24551       if test "$GCC" = yes; then
24552         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'
24553       else
24554         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'
24555       fi
24556       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24557       hardcode_libdir_separator_GCJ=:
24558       hardcode_direct_GCJ=yes
24559
24560       # hardcode_minus_L: Not really in the search PATH,
24561       # but as the default location of the library.
24562       hardcode_minus_L_GCJ=yes
24563       export_dynamic_flag_spec_GCJ='${wl}-E'
24564       ;;
24565
24566     hpux10*)
24567       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24568         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24569       else
24570         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24571       fi
24572       if test "$with_gnu_ld" = no; then
24573         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574         hardcode_libdir_separator_GCJ=:
24575
24576         hardcode_direct_GCJ=yes
24577         export_dynamic_flag_spec_GCJ='${wl}-E'
24578
24579         # hardcode_minus_L: Not really in the search PATH,
24580         # but as the default location of the library.
24581         hardcode_minus_L_GCJ=yes
24582       fi
24583       ;;
24584
24585     hpux11*)
24586       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24587         case $host_cpu in
24588         hppa*64*)
24589           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24590           ;;
24591         ia64*)
24592           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24593           ;;
24594         *)
24595           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24596           ;;
24597         esac
24598       else
24599         case $host_cpu in
24600         hppa*64*)
24601           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24602           ;;
24603         ia64*)
24604           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24605           ;;
24606         *)
24607           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24608           ;;
24609         esac
24610       fi
24611       if test "$with_gnu_ld" = no; then
24612         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24613         hardcode_libdir_separator_GCJ=:
24614
24615         case $host_cpu in
24616         hppa*64*|ia64*)
24617           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24618           hardcode_direct_GCJ=no
24619           hardcode_shlibpath_var_GCJ=no
24620           ;;
24621         *)
24622           hardcode_direct_GCJ=yes
24623           export_dynamic_flag_spec_GCJ='${wl}-E'
24624
24625           # hardcode_minus_L: Not really in the search PATH,
24626           # but as the default location of the library.
24627           hardcode_minus_L_GCJ=yes
24628           ;;
24629         esac
24630       fi
24631       ;;
24632
24633     irix5* | irix6* | nonstopux*)
24634       if test "$GCC" = yes; then
24635         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'
24636       else
24637         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'
24638         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24639       fi
24640       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24641       hardcode_libdir_separator_GCJ=:
24642       link_all_deplibs_GCJ=yes
24643       ;;
24644
24645     netbsd*)
24646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24647         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24648       else
24649         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24650       fi
24651       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24652       hardcode_direct_GCJ=yes
24653       hardcode_shlibpath_var_GCJ=no
24654       ;;
24655
24656     newsos6)
24657       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24658       hardcode_direct_GCJ=yes
24659       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24660       hardcode_libdir_separator_GCJ=:
24661       hardcode_shlibpath_var_GCJ=no
24662       ;;
24663
24664     openbsd*)
24665       hardcode_direct_GCJ=yes
24666       hardcode_shlibpath_var_GCJ=no
24667       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24668         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24669         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24670         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24671         export_dynamic_flag_spec_GCJ='${wl}-E'
24672       else
24673        case $host_os in
24674          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24675            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24676            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24677            ;;
24678          *)
24679            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24680            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24681            ;;
24682        esac
24683       fi
24684       ;;
24685
24686     os2*)
24687       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24688       hardcode_minus_L_GCJ=yes
24689       allow_undefined_flag_GCJ=unsupported
24690       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'
24691       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24692       ;;
24693
24694     osf3*)
24695       if test "$GCC" = yes; then
24696         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24697         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'
24698       else
24699         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700         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'
24701       fi
24702       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24703       hardcode_libdir_separator_GCJ=:
24704       ;;
24705
24706     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24707       if test "$GCC" = yes; then
24708         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24709         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'
24710         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24711       else
24712         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24713         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'
24714         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~
24715         $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'
24716
24717         # Both c and cxx compiler support -rpath directly
24718         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24719       fi
24720       hardcode_libdir_separator_GCJ=:
24721       ;;
24722
24723     solaris*)
24724       no_undefined_flag_GCJ=' -z text'
24725       if test "$GCC" = yes; then
24726         wlarc='${wl}'
24727         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24728         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24729           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24730       else
24731         wlarc=''
24732         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24733         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24734         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24735       fi
24736       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737       hardcode_shlibpath_var_GCJ=no
24738       case $host_os in
24739       solaris2.[0-5] | solaris2.[0-5].*) ;;
24740       *)
24741         # The compiler driver will combine linker options so we
24742         # cannot just pass the convience library names through
24743         # without $wl, iff we do not link with $LD.
24744         # Luckily, gcc supports the same syntax we need for Sun Studio.
24745         # Supported since Solaris 2.6 (maybe 2.5.1?)
24746         case $wlarc in
24747         '')
24748           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24749         *)
24750           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
24751         esac ;;
24752       esac
24753       link_all_deplibs_GCJ=yes
24754       ;;
24755
24756     sunos4*)
24757       if test "x$host_vendor" = xsequent; then
24758         # Use $CC to link under sequent, because it throws in some extra .o
24759         # files that make .init and .fini sections work.
24760         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24761       else
24762         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24763       fi
24764       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24765       hardcode_direct_GCJ=yes
24766       hardcode_minus_L_GCJ=yes
24767       hardcode_shlibpath_var_GCJ=no
24768       ;;
24769
24770     sysv4)
24771       case $host_vendor in
24772         sni)
24773           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24774           hardcode_direct_GCJ=yes # is this really true???
24775         ;;
24776         siemens)
24777           ## LD is ld it makes a PLAMLIB
24778           ## CC just makes a GrossModule.
24779           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24780           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24781           hardcode_direct_GCJ=no
24782         ;;
24783         motorola)
24784           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24785           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24786         ;;
24787       esac
24788       runpath_var='LD_RUN_PATH'
24789       hardcode_shlibpath_var_GCJ=no
24790       ;;
24791
24792     sysv4.3*)
24793       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794       hardcode_shlibpath_var_GCJ=no
24795       export_dynamic_flag_spec_GCJ='-Bexport'
24796       ;;
24797
24798     sysv4*MP*)
24799       if test -d /usr/nec; then
24800         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24801         hardcode_shlibpath_var_GCJ=no
24802         runpath_var=LD_RUN_PATH
24803         hardcode_runpath_var=yes
24804         ld_shlibs_GCJ=yes
24805       fi
24806       ;;
24807
24808     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24809       no_undefined_flag_GCJ='${wl}-z,text'
24810       archive_cmds_need_lc_GCJ=no
24811       hardcode_shlibpath_var_GCJ=no
24812       runpath_var='LD_RUN_PATH'
24813
24814       if test "$GCC" = yes; then
24815         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24816         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24817       else
24818         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24819         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24820       fi
24821       ;;
24822
24823     sysv5* | sco3.2v5* | sco5v6*)
24824       # Note: We can NOT use -z defs as we might desire, because we do not
24825       # link with -lc, and that would cause any symbols used from libc to
24826       # always be unresolved, which means just about no library would
24827       # ever link correctly.  If we're not using GNU ld we use -z text
24828       # though, which does catch some bad symbols but isn't as heavy-handed
24829       # as -z defs.
24830       no_undefined_flag_GCJ='${wl}-z,text'
24831       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24832       archive_cmds_need_lc_GCJ=no
24833       hardcode_shlibpath_var_GCJ=no
24834       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24835       hardcode_libdir_separator_GCJ=':'
24836       link_all_deplibs_GCJ=yes
24837       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24838       runpath_var='LD_RUN_PATH'
24839
24840       if test "$GCC" = yes; then
24841         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24842         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24843       else
24844         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24845         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24846       fi
24847       ;;
24848
24849     uts4*)
24850       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24851       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24852       hardcode_shlibpath_var_GCJ=no
24853       ;;
24854
24855     *)
24856       ld_shlibs_GCJ=no
24857       ;;
24858     esac
24859   fi
24860
24861 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24862 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24863 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24864
24865 #
24866 # Do we need to explicitly link libc?
24867 #
24868 case "x$archive_cmds_need_lc_GCJ" in
24869 x|xyes)
24870   # Assume -lc should be added
24871   archive_cmds_need_lc_GCJ=yes
24872
24873   if test "$enable_shared" = yes && test "$GCC" = yes; then
24874     case $archive_cmds_GCJ in
24875     *'~'*)
24876       # FIXME: we may have to deal with multi-command sequences.
24877       ;;
24878     '$CC '*)
24879       # Test whether the compiler implicitly links with -lc since on some
24880       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24881       # to ld, don't add -lc before -lgcc.
24882       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24884       $rm conftest*
24885       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24886
24887       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24888   (eval $ac_compile) 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); } 2>conftest.err; then
24892         soname=conftest
24893         lib=conftest
24894         libobjs=conftest.$ac_objext
24895         deplibs=
24896         wl=$lt_prog_compiler_wl_GCJ
24897         pic_flag=$lt_prog_compiler_pic_GCJ
24898         compiler_flags=-v
24899         linker_flags=-v
24900         verstring=
24901         output_objdir=.
24902         libname=conftest
24903         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24904         allow_undefined_flag_GCJ=
24905         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24906   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); }
24910         then
24911           archive_cmds_need_lc_GCJ=no
24912         else
24913           archive_cmds_need_lc_GCJ=yes
24914         fi
24915         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24916       else
24917         cat conftest.err 1>&5
24918       fi
24919       $rm conftest*
24920       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24921 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24922       ;;
24923     esac
24924   fi
24925   ;;
24926 esac
24927
24928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24930 library_names_spec=
24931 libname_spec='lib$name'
24932 soname_spec=
24933 shrext_cmds=".so"
24934 postinstall_cmds=
24935 postuninstall_cmds=
24936 finish_cmds=
24937 finish_eval=
24938 shlibpath_var=
24939 shlibpath_overrides_runpath=unknown
24940 version_type=none
24941 dynamic_linker="$host_os ld.so"
24942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24943 if test "$GCC" = yes; then
24944   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24945   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24946     # if the path contains ";" then we assume it to be the separator
24947     # otherwise default to the standard path separator (i.e. ":") - it is
24948     # assumed that no part of a normal pathname contains ";" but that should
24949     # okay in the real world where ";" in dirpaths is itself problematic.
24950     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24951   else
24952     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24953   fi
24954 else
24955   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24956 fi
24957 need_lib_prefix=unknown
24958 hardcode_into_libs=no
24959
24960 # when you set need_version to no, make sure it does not cause -set_version
24961 # flags to be left without arguments
24962 need_version=unknown
24963
24964 case $host_os in
24965 aix3*)
24966   version_type=linux
24967   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24968   shlibpath_var=LIBPATH
24969
24970   # AIX 3 has no versioning support, so we append a major version to the name.
24971   soname_spec='${libname}${release}${shared_ext}$major'
24972   ;;
24973
24974 aix4* | aix5*)
24975   version_type=linux
24976   need_lib_prefix=no
24977   need_version=no
24978   hardcode_into_libs=yes
24979   if test "$host_cpu" = ia64; then
24980     # AIX 5 supports IA64
24981     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24982     shlibpath_var=LD_LIBRARY_PATH
24983   else
24984     # With GCC up to 2.95.x, collect2 would create an import file
24985     # for dependence libraries.  The import file would start with
24986     # the line `#! .'.  This would cause the generated library to
24987     # depend on `.', always an invalid library.  This was fixed in
24988     # development snapshots of GCC prior to 3.0.
24989     case $host_os in
24990       aix4 | aix4.[01] | aix4.[01].*)
24991       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24992            echo ' yes '
24993            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24994         :
24995       else
24996         can_build_shared=no
24997       fi
24998       ;;
24999     esac
25000     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25001     # soname into executable. Probably we can add versioning support to
25002     # collect2, so additional links can be useful in future.
25003     if test "$aix_use_runtimelinking" = yes; then
25004       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25005       # instead of lib<name>.a to let people know that these are not
25006       # typical AIX shared libraries.
25007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25008     else
25009       # We preserve .a as extension for shared libraries through AIX4.2
25010       # and later when we are not doing run time linking.
25011       library_names_spec='${libname}${release}.a $libname.a'
25012       soname_spec='${libname}${release}${shared_ext}$major'
25013     fi
25014     shlibpath_var=LIBPATH
25015   fi
25016   ;;
25017
25018 amigaos*)
25019   library_names_spec='$libname.ixlibrary $libname.a'
25020   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25021   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'
25022   ;;
25023
25024 beos*)
25025   library_names_spec='${libname}${shared_ext}'
25026   dynamic_linker="$host_os ld.so"
25027   shlibpath_var=LIBRARY_PATH
25028   ;;
25029
25030 bsdi[45]*)
25031   version_type=linux
25032   need_version=no
25033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25034   soname_spec='${libname}${release}${shared_ext}$major'
25035   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25036   shlibpath_var=LD_LIBRARY_PATH
25037   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25038   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25039   # the default ld.so.conf also contains /usr/contrib/lib and
25040   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25041   # libtool to hard-code these into programs
25042   ;;
25043
25044 cygwin* | mingw* | pw32*)
25045   version_type=windows
25046   shrext_cmds=".dll"
25047   need_version=no
25048   need_lib_prefix=no
25049
25050   case $GCC,$host_os in
25051   yes,cygwin* | yes,mingw* | yes,pw32*)
25052     library_names_spec='$libname.dll.a'
25053     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25054     postinstall_cmds='base_file=`basename \${file}`~
25055       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25056       dldir=$destdir/`dirname \$dlpath`~
25057       test -d \$dldir || mkdir -p \$dldir~
25058       $install_prog $dir/$dlname \$dldir/$dlname~
25059       chmod a+x \$dldir/$dlname'
25060     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25061       dlpath=$dir/\$dldll~
25062        $rm \$dlpath'
25063     shlibpath_overrides_runpath=yes
25064
25065     case $host_os in
25066     cygwin*)
25067       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25068       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25069       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25070       ;;
25071     mingw*)
25072       # MinGW DLLs use traditional 'lib' prefix
25073       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25074       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25075       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25076         # It is most probably a Windows format PATH printed by
25077         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25078         # path with ; separators, and with drive letters. We can handle the
25079         # drive letters (cygwin fileutils understands them), so leave them,
25080         # especially as we might pass files found there to a mingw objdump,
25081         # which wouldn't understand a cygwinified path. Ahh.
25082         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25083       else
25084         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25085       fi
25086       ;;
25087     pw32*)
25088       # pw32 DLLs use 'pw' prefix rather than 'lib'
25089       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25090       ;;
25091     esac
25092     ;;
25093
25094   *)
25095     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25096     ;;
25097   esac
25098   dynamic_linker='Win32 ld.exe'
25099   # FIXME: first we should search . and the directory the executable is in
25100   shlibpath_var=PATH
25101   ;;
25102
25103 darwin* | rhapsody*)
25104   dynamic_linker="$host_os dyld"
25105   version_type=darwin
25106   need_lib_prefix=no
25107   need_version=no
25108   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25109   soname_spec='${libname}${release}${major}$shared_ext'
25110   shlibpath_overrides_runpath=yes
25111   shlibpath_var=DYLD_LIBRARY_PATH
25112   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25113   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25114   if test "$GCC" = yes; then
25115     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25116   else
25117     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25118   fi
25119   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25120   ;;
25121
25122 dgux*)
25123   version_type=linux
25124   need_lib_prefix=no
25125   need_version=no
25126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25127   soname_spec='${libname}${release}${shared_ext}$major'
25128   shlibpath_var=LD_LIBRARY_PATH
25129   ;;
25130
25131 freebsd1*)
25132   dynamic_linker=no
25133   ;;
25134
25135 kfreebsd*-gnu)
25136   version_type=linux
25137   need_lib_prefix=no
25138   need_version=no
25139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25140   soname_spec='${libname}${release}${shared_ext}$major'
25141   shlibpath_var=LD_LIBRARY_PATH
25142   shlibpath_overrides_runpath=no
25143   hardcode_into_libs=yes
25144   dynamic_linker='GNU ld.so'
25145   ;;
25146
25147 freebsd* | dragonfly*)
25148   # DragonFly does not have aout.  When/if they implement a new
25149   # versioning mechanism, adjust this.
25150   if test -x /usr/bin/objformat; then
25151     objformat=`/usr/bin/objformat`
25152   else
25153     case $host_os in
25154     freebsd[123]*) objformat=aout ;;
25155     *) objformat=elf ;;
25156     esac
25157   fi
25158   version_type=freebsd-$objformat
25159   case $version_type in
25160     freebsd-elf*)
25161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25162       need_version=no
25163       need_lib_prefix=no
25164       ;;
25165     freebsd-*)
25166       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25167       need_version=yes
25168       ;;
25169   esac
25170   shlibpath_var=LD_LIBRARY_PATH
25171   case $host_os in
25172   freebsd2*)
25173     shlibpath_overrides_runpath=yes
25174     ;;
25175   freebsd3.[01]* | freebsdelf3.[01]*)
25176     shlibpath_overrides_runpath=yes
25177     hardcode_into_libs=yes
25178     ;;
25179   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25180   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25181     shlibpath_overrides_runpath=no
25182     hardcode_into_libs=yes
25183     ;;
25184   freebsd*) # from 4.6 on
25185     shlibpath_overrides_runpath=yes
25186     hardcode_into_libs=yes
25187     ;;
25188   esac
25189   ;;
25190
25191 gnu*)
25192   version_type=linux
25193   need_lib_prefix=no
25194   need_version=no
25195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25196   soname_spec='${libname}${release}${shared_ext}$major'
25197   shlibpath_var=LD_LIBRARY_PATH
25198   hardcode_into_libs=yes
25199   ;;
25200
25201 hpux9* | hpux10* | hpux11*)
25202   # Give a soname corresponding to the major version so that dld.sl refuses to
25203   # link against other versions.
25204   version_type=sunos
25205   need_lib_prefix=no
25206   need_version=no
25207   case $host_cpu in
25208   ia64*)
25209     shrext_cmds='.so'
25210     hardcode_into_libs=yes
25211     dynamic_linker="$host_os dld.so"
25212     shlibpath_var=LD_LIBRARY_PATH
25213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25215     soname_spec='${libname}${release}${shared_ext}$major'
25216     if test "X$HPUX_IA64_MODE" = X32; then
25217       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25218     else
25219       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25220     fi
25221     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25222     ;;
25223    hppa*64*)
25224      shrext_cmds='.sl'
25225      hardcode_into_libs=yes
25226      dynamic_linker="$host_os dld.sl"
25227      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25228      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25229      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25230      soname_spec='${libname}${release}${shared_ext}$major'
25231      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25232      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25233      ;;
25234    *)
25235     shrext_cmds='.sl'
25236     dynamic_linker="$host_os dld.sl"
25237     shlibpath_var=SHLIB_PATH
25238     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25240     soname_spec='${libname}${release}${shared_ext}$major'
25241     ;;
25242   esac
25243   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25244   postinstall_cmds='chmod 555 $lib'
25245   ;;
25246
25247 interix3*)
25248   version_type=linux
25249   need_lib_prefix=no
25250   need_version=no
25251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25252   soname_spec='${libname}${release}${shared_ext}$major'
25253   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25254   shlibpath_var=LD_LIBRARY_PATH
25255   shlibpath_overrides_runpath=no
25256   hardcode_into_libs=yes
25257   ;;
25258
25259 irix5* | irix6* | nonstopux*)
25260   case $host_os in
25261     nonstopux*) version_type=nonstopux ;;
25262     *)
25263         if test "$lt_cv_prog_gnu_ld" = yes; then
25264                 version_type=linux
25265         else
25266                 version_type=irix
25267         fi ;;
25268   esac
25269   need_lib_prefix=no
25270   need_version=no
25271   soname_spec='${libname}${release}${shared_ext}$major'
25272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25273   case $host_os in
25274   irix5* | nonstopux*)
25275     libsuff= shlibsuff=
25276     ;;
25277   *)
25278     case $LD in # libtool.m4 will add one of these switches to LD
25279     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25280       libsuff= shlibsuff= libmagic=32-bit;;
25281     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25282       libsuff=32 shlibsuff=N32 libmagic=N32;;
25283     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25284       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25285     *) libsuff= shlibsuff= libmagic=never-match;;
25286     esac
25287     ;;
25288   esac
25289   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25290   shlibpath_overrides_runpath=no
25291   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25292   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25293   hardcode_into_libs=yes
25294   ;;
25295
25296 # No shared lib support for Linux oldld, aout, or coff.
25297 linux*oldld* | linux*aout* | linux*coff*)
25298   dynamic_linker=no
25299   ;;
25300
25301 # This must be Linux ELF.
25302 linux*)
25303   version_type=linux
25304   need_lib_prefix=no
25305   need_version=no
25306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25307   soname_spec='${libname}${release}${shared_ext}$major'
25308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25309   shlibpath_var=LD_LIBRARY_PATH
25310   shlibpath_overrides_runpath=no
25311   # This implies no fast_install, which is unacceptable.
25312   # Some rework will be needed to allow for fast_install
25313   # before this can be enabled.
25314   hardcode_into_libs=yes
25315
25316   # Append ld.so.conf contents to the search path
25317   if test -f /etc/ld.so.conf; then
25318     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25319     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25320   fi
25321
25322   # We used to test for /lib/ld.so.1 and disable shared libraries on
25323   # powerpc, because MkLinux only supported shared libraries with the
25324   # GNU dynamic linker.  Since this was broken with cross compilers,
25325   # most powerpc-linux boxes support dynamic linking these days and
25326   # people can always --disable-shared, the test was removed, and we
25327   # assume the GNU/Linux dynamic linker is in use.
25328   dynamic_linker='GNU/Linux ld.so'
25329   ;;
25330
25331 knetbsd*-gnu)
25332   version_type=linux
25333   need_lib_prefix=no
25334   need_version=no
25335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25336   soname_spec='${libname}${release}${shared_ext}$major'
25337   shlibpath_var=LD_LIBRARY_PATH
25338   shlibpath_overrides_runpath=no
25339   hardcode_into_libs=yes
25340   dynamic_linker='GNU ld.so'
25341   ;;
25342
25343 netbsd*)
25344   version_type=sunos
25345   need_lib_prefix=no
25346   need_version=no
25347   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25349     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25350     dynamic_linker='NetBSD (a.out) ld.so'
25351   else
25352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25353     soname_spec='${libname}${release}${shared_ext}$major'
25354     dynamic_linker='NetBSD ld.elf_so'
25355   fi
25356   shlibpath_var=LD_LIBRARY_PATH
25357   shlibpath_overrides_runpath=yes
25358   hardcode_into_libs=yes
25359   ;;
25360
25361 newsos6)
25362   version_type=linux
25363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25364   shlibpath_var=LD_LIBRARY_PATH
25365   shlibpath_overrides_runpath=yes
25366   ;;
25367
25368 nto-qnx*)
25369   version_type=linux
25370   need_lib_prefix=no
25371   need_version=no
25372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25373   soname_spec='${libname}${release}${shared_ext}$major'
25374   shlibpath_var=LD_LIBRARY_PATH
25375   shlibpath_overrides_runpath=yes
25376   ;;
25377
25378 openbsd*)
25379   version_type=sunos
25380   sys_lib_dlsearch_path_spec="/usr/lib"
25381   need_lib_prefix=no
25382   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25383   case $host_os in
25384     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25385     *)                         need_version=no  ;;
25386   esac
25387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25389   shlibpath_var=LD_LIBRARY_PATH
25390   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25391     case $host_os in
25392       openbsd2.[89] | openbsd2.[89].*)
25393         shlibpath_overrides_runpath=no
25394         ;;
25395       *)
25396         shlibpath_overrides_runpath=yes
25397         ;;
25398       esac
25399   else
25400     shlibpath_overrides_runpath=yes
25401   fi
25402   ;;
25403
25404 os2*)
25405   libname_spec='$name'
25406   shrext_cmds=".dll"
25407   need_lib_prefix=no
25408   library_names_spec='$libname${shared_ext} $libname.a'
25409   dynamic_linker='OS/2 ld.exe'
25410   shlibpath_var=LIBPATH
25411   ;;
25412
25413 osf3* | osf4* | osf5*)
25414   version_type=osf
25415   need_lib_prefix=no
25416   need_version=no
25417   soname_spec='${libname}${release}${shared_ext}$major'
25418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419   shlibpath_var=LD_LIBRARY_PATH
25420   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25421   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25422   ;;
25423
25424 solaris*)
25425   version_type=linux
25426   need_lib_prefix=no
25427   need_version=no
25428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25429   soname_spec='${libname}${release}${shared_ext}$major'
25430   shlibpath_var=LD_LIBRARY_PATH
25431   shlibpath_overrides_runpath=yes
25432   hardcode_into_libs=yes
25433   # ldd complains unless libraries are executable
25434   postinstall_cmds='chmod +x $lib'
25435   ;;
25436
25437 sunos4*)
25438   version_type=sunos
25439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25440   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25441   shlibpath_var=LD_LIBRARY_PATH
25442   shlibpath_overrides_runpath=yes
25443   if test "$with_gnu_ld" = yes; then
25444     need_lib_prefix=no
25445   fi
25446   need_version=yes
25447   ;;
25448
25449 sysv4 | sysv4.3*)
25450   version_type=linux
25451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25452   soname_spec='${libname}${release}${shared_ext}$major'
25453   shlibpath_var=LD_LIBRARY_PATH
25454   case $host_vendor in
25455     sni)
25456       shlibpath_overrides_runpath=no
25457       need_lib_prefix=no
25458       export_dynamic_flag_spec='${wl}-Blargedynsym'
25459       runpath_var=LD_RUN_PATH
25460       ;;
25461     siemens)
25462       need_lib_prefix=no
25463       ;;
25464     motorola)
25465       need_lib_prefix=no
25466       need_version=no
25467       shlibpath_overrides_runpath=no
25468       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25469       ;;
25470   esac
25471   ;;
25472
25473 sysv4*MP*)
25474   if test -d /usr/nec ;then
25475     version_type=linux
25476     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25477     soname_spec='$libname${shared_ext}.$major'
25478     shlibpath_var=LD_LIBRARY_PATH
25479   fi
25480   ;;
25481
25482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25483   version_type=freebsd-elf
25484   need_lib_prefix=no
25485   need_version=no
25486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25487   soname_spec='${libname}${release}${shared_ext}$major'
25488   shlibpath_var=LD_LIBRARY_PATH
25489   hardcode_into_libs=yes
25490   if test "$with_gnu_ld" = yes; then
25491     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25492     shlibpath_overrides_runpath=no
25493   else
25494     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25495     shlibpath_overrides_runpath=yes
25496     case $host_os in
25497       sco3.2v5*)
25498         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25499         ;;
25500     esac
25501   fi
25502   sys_lib_dlsearch_path_spec='/usr/lib'
25503   ;;
25504
25505 uts4*)
25506   version_type=linux
25507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508   soname_spec='${libname}${release}${shared_ext}$major'
25509   shlibpath_var=LD_LIBRARY_PATH
25510   ;;
25511
25512 *)
25513   dynamic_linker=no
25514   ;;
25515 esac
25516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25517 echo "${ECHO_T}$dynamic_linker" >&6; }
25518 test "$dynamic_linker" = no && can_build_shared=no
25519
25520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25521 if test "$GCC" = yes; then
25522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25523 fi
25524
25525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25527 hardcode_action_GCJ=
25528 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25529    test -n "$runpath_var_GCJ" || \
25530    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25531
25532   # We can hardcode non-existant directories.
25533   if test "$hardcode_direct_GCJ" != no &&
25534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25535      # have to relink, otherwise we might link with an installed library
25536      # when we should be linking with a yet-to-be-installed one
25537      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25538      test "$hardcode_minus_L_GCJ" != no; then
25539     # Linking always hardcodes the temporary library directory.
25540     hardcode_action_GCJ=relink
25541   else
25542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25543     hardcode_action_GCJ=immediate
25544   fi
25545 else
25546   # We cannot hardcode anything, or else we can only hardcode existing
25547   # directories.
25548   hardcode_action_GCJ=unsupported
25549 fi
25550 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25551 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25552
25553 if test "$hardcode_action_GCJ" = relink; then
25554   # Fast installation is not supported
25555   enable_fast_install=no
25556 elif test "$shlibpath_overrides_runpath" = yes ||
25557      test "$enable_shared" = no; then
25558   # Fast installation is not necessary
25559   enable_fast_install=needless
25560 fi
25561
25562
25563 # The else clause should only fire when bootstrapping the
25564 # libtool distribution, otherwise you forgot to ship ltmain.sh
25565 # with your package, and you will get complaints that there are
25566 # no rules to generate ltmain.sh.
25567 if test -f "$ltmain"; then
25568   # See if we are running on zsh, and set the options which allow our commands through
25569   # without removal of \ escapes.
25570   if test -n "${ZSH_VERSION+set}" ; then
25571     setopt NO_GLOB_SUBST
25572   fi
25573   # Now quote all the things that may contain metacharacters while being
25574   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25575   # variables and quote the copies for generation of the libtool script.
25576   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25577     SED SHELL STRIP \
25578     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25579     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25580     deplibs_check_method reload_flag reload_cmds need_locks \
25581     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25582     lt_cv_sys_global_symbol_to_c_name_address \
25583     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25584     old_postinstall_cmds old_postuninstall_cmds \
25585     compiler_GCJ \
25586     CC_GCJ \
25587     LD_GCJ \
25588     lt_prog_compiler_wl_GCJ \
25589     lt_prog_compiler_pic_GCJ \
25590     lt_prog_compiler_static_GCJ \
25591     lt_prog_compiler_no_builtin_flag_GCJ \
25592     export_dynamic_flag_spec_GCJ \
25593     thread_safe_flag_spec_GCJ \
25594     whole_archive_flag_spec_GCJ \
25595     enable_shared_with_static_runtimes_GCJ \
25596     old_archive_cmds_GCJ \
25597     old_archive_from_new_cmds_GCJ \
25598     predep_objects_GCJ \
25599     postdep_objects_GCJ \
25600     predeps_GCJ \
25601     postdeps_GCJ \
25602     compiler_lib_search_path_GCJ \
25603     archive_cmds_GCJ \
25604     archive_expsym_cmds_GCJ \
25605     postinstall_cmds_GCJ \
25606     postuninstall_cmds_GCJ \
25607     old_archive_from_expsyms_cmds_GCJ \
25608     allow_undefined_flag_GCJ \
25609     no_undefined_flag_GCJ \
25610     export_symbols_cmds_GCJ \
25611     hardcode_libdir_flag_spec_GCJ \
25612     hardcode_libdir_flag_spec_ld_GCJ \
25613     hardcode_libdir_separator_GCJ \
25614     hardcode_automatic_GCJ \
25615     module_cmds_GCJ \
25616     module_expsym_cmds_GCJ \
25617     lt_cv_prog_compiler_c_o_GCJ \
25618     exclude_expsyms_GCJ \
25619     include_expsyms_GCJ; do
25620
25621     case $var in
25622     old_archive_cmds_GCJ | \
25623     old_archive_from_new_cmds_GCJ | \
25624     archive_cmds_GCJ | \
25625     archive_expsym_cmds_GCJ | \
25626     module_cmds_GCJ | \
25627     module_expsym_cmds_GCJ | \
25628     old_archive_from_expsyms_cmds_GCJ | \
25629     export_symbols_cmds_GCJ | \
25630     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25631     postinstall_cmds | postuninstall_cmds | \
25632     old_postinstall_cmds | old_postuninstall_cmds | \
25633     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25634       # Double-quote double-evaled strings.
25635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25636       ;;
25637     *)
25638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25639       ;;
25640     esac
25641   done
25642
25643   case $lt_echo in
25644   *'\$0 --fallback-echo"')
25645     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25646     ;;
25647   esac
25648
25649 cfgfile="$ofile"
25650
25651   cat <<__EOF__ >> "$cfgfile"
25652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25653
25654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25655
25656 # Shell to use when invoking shell scripts.
25657 SHELL=$lt_SHELL
25658
25659 # Whether or not to build shared libraries.
25660 build_libtool_libs=$enable_shared
25661
25662 # Whether or not to build static libraries.
25663 build_old_libs=$enable_static
25664
25665 # Whether or not to add -lc for building shared libraries.
25666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25667
25668 # Whether or not to disallow shared libs when runtime libs are static
25669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25670
25671 # Whether or not to optimize for fast installation.
25672 fast_install=$enable_fast_install
25673
25674 # The host system.
25675 host_alias=$host_alias
25676 host=$host
25677 host_os=$host_os
25678
25679 # The build system.
25680 build_alias=$build_alias
25681 build=$build
25682 build_os=$build_os
25683
25684 # An echo program that does not interpret backslashes.
25685 echo=$lt_echo
25686
25687 # The archiver.
25688 AR=$lt_AR
25689 AR_FLAGS=$lt_AR_FLAGS
25690
25691 # A C compiler.
25692 LTCC=$lt_LTCC
25693
25694 # LTCC compiler flags.
25695 LTCFLAGS=$lt_LTCFLAGS
25696
25697 # A language-specific compiler.
25698 CC=$lt_compiler_GCJ
25699
25700 # Is the compiler the GNU C compiler?
25701 with_gcc=$GCC_GCJ
25702
25703 # An ERE matcher.
25704 EGREP=$lt_EGREP
25705
25706 # The linker used to build libraries.
25707 LD=$lt_LD_GCJ
25708
25709 # Whether we need hard or soft links.
25710 LN_S=$lt_LN_S
25711
25712 # A BSD-compatible nm program.
25713 NM=$lt_NM
25714
25715 # A symbol stripping program
25716 STRIP=$lt_STRIP
25717
25718 # Used to examine libraries when file_magic_cmd begins "file"
25719 MAGIC_CMD=$MAGIC_CMD
25720
25721 # Used on cygwin: DLL creation program.
25722 DLLTOOL="$DLLTOOL"
25723
25724 # Used on cygwin: object dumper.
25725 OBJDUMP="$OBJDUMP"
25726
25727 # Used on cygwin: assembler.
25728 AS="$AS"
25729
25730 # The name of the directory that contains temporary libtool files.
25731 objdir=$objdir
25732
25733 # How to create reloadable object files.
25734 reload_flag=$lt_reload_flag
25735 reload_cmds=$lt_reload_cmds
25736
25737 # How to pass a linker flag through the compiler.
25738 wl=$lt_lt_prog_compiler_wl_GCJ
25739
25740 # Object file suffix (normally "o").
25741 objext="$ac_objext"
25742
25743 # Old archive suffix (normally "a").
25744 libext="$libext"
25745
25746 # Shared library suffix (normally ".so").
25747 shrext_cmds='$shrext_cmds'
25748
25749 # Executable file suffix (normally "").
25750 exeext="$exeext"
25751
25752 # Additional compiler flags for building library objects.
25753 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25754 pic_mode=$pic_mode
25755
25756 # What is the maximum length of a command?
25757 max_cmd_len=$lt_cv_sys_max_cmd_len
25758
25759 # Does compiler simultaneously support -c and -o options?
25760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25761
25762 # Must we lock files when doing compilation?
25763 need_locks=$lt_need_locks
25764
25765 # Do we need the lib prefix for modules?
25766 need_lib_prefix=$need_lib_prefix
25767
25768 # Do we need a version for libraries?
25769 need_version=$need_version
25770
25771 # Whether dlopen is supported.
25772 dlopen_support=$enable_dlopen
25773
25774 # Whether dlopen of programs is supported.
25775 dlopen_self=$enable_dlopen_self
25776
25777 # Whether dlopen of statically linked programs is supported.
25778 dlopen_self_static=$enable_dlopen_self_static
25779
25780 # Compiler flag to prevent dynamic linking.
25781 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25782
25783 # Compiler flag to turn off builtin functions.
25784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25785
25786 # Compiler flag to allow reflexive dlopens.
25787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25788
25789 # Compiler flag to generate shared objects directly from archives.
25790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25791
25792 # Compiler flag to generate thread-safe objects.
25793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25794
25795 # Library versioning type.
25796 version_type=$version_type
25797
25798 # Format of library name prefix.
25799 libname_spec=$lt_libname_spec
25800
25801 # List of archive names.  First name is the real one, the rest are links.
25802 # The last name is the one that the linker finds with -lNAME.
25803 library_names_spec=$lt_library_names_spec
25804
25805 # The coded name of the library, if different from the real name.
25806 soname_spec=$lt_soname_spec
25807
25808 # Commands used to build and install an old-style archive.
25809 RANLIB=$lt_RANLIB
25810 old_archive_cmds=$lt_old_archive_cmds_GCJ
25811 old_postinstall_cmds=$lt_old_postinstall_cmds
25812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25813
25814 # Create an old-style archive from a shared archive.
25815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25816
25817 # Create a temporary old-style archive to link instead of a shared archive.
25818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25819
25820 # Commands used to build and install a shared archive.
25821 archive_cmds=$lt_archive_cmds_GCJ
25822 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25823 postinstall_cmds=$lt_postinstall_cmds
25824 postuninstall_cmds=$lt_postuninstall_cmds
25825
25826 # Commands used to build a loadable module (assumed same as above if empty)
25827 module_cmds=$lt_module_cmds_GCJ
25828 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25829
25830 # Commands to strip libraries.
25831 old_striplib=$lt_old_striplib
25832 striplib=$lt_striplib
25833
25834 # Dependencies to place before the objects being linked to create a
25835 # shared library.
25836 predep_objects=$lt_predep_objects_GCJ
25837
25838 # Dependencies to place after the objects being linked to create a
25839 # shared library.
25840 postdep_objects=$lt_postdep_objects_GCJ
25841
25842 # Dependencies to place before the objects being linked to create a
25843 # shared library.
25844 predeps=$lt_predeps_GCJ
25845
25846 # Dependencies to place after the objects being linked to create a
25847 # shared library.
25848 postdeps=$lt_postdeps_GCJ
25849
25850 # The library search path used internally by the compiler when linking
25851 # a shared library.
25852 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25853
25854 # Method to check whether dependent libraries are shared objects.
25855 deplibs_check_method=$lt_deplibs_check_method
25856
25857 # Command to use when deplibs_check_method == file_magic.
25858 file_magic_cmd=$lt_file_magic_cmd
25859
25860 # Flag that allows shared libraries with undefined symbols to be built.
25861 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25862
25863 # Flag that forces no undefined symbols.
25864 no_undefined_flag=$lt_no_undefined_flag_GCJ
25865
25866 # Commands used to finish a libtool library installation in a directory.
25867 finish_cmds=$lt_finish_cmds
25868
25869 # Same as above, but a single script fragment to be evaled but not shown.
25870 finish_eval=$lt_finish_eval
25871
25872 # Take the output of nm and produce a listing of raw symbols and C names.
25873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25874
25875 # Transform the output of nm in a proper C declaration
25876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25877
25878 # Transform the output of nm in a C name address pair
25879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25880
25881 # This is the shared library runtime path variable.
25882 runpath_var=$runpath_var
25883
25884 # This is the shared library path variable.
25885 shlibpath_var=$shlibpath_var
25886
25887 # Is shlibpath searched before the hard-coded library search path?
25888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25889
25890 # How to hardcode a shared library path into an executable.
25891 hardcode_action=$hardcode_action_GCJ
25892
25893 # Whether we should hardcode library paths into libraries.
25894 hardcode_into_libs=$hardcode_into_libs
25895
25896 # Flag to hardcode \$libdir into a binary during linking.
25897 # This must work even if \$libdir does not exist.
25898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25899
25900 # If ld is used when linking, flag to hardcode \$libdir into
25901 # a binary during linking. This must work even if \$libdir does
25902 # not exist.
25903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25904
25905 # Whether we need a single -rpath flag with a separated argument.
25906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25907
25908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25909 # resulting binary.
25910 hardcode_direct=$hardcode_direct_GCJ
25911
25912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25913 # resulting binary.
25914 hardcode_minus_L=$hardcode_minus_L_GCJ
25915
25916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25917 # the resulting binary.
25918 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25919
25920 # Set to yes if building a shared library automatically hardcodes DIR into the library
25921 # and all subsequent libraries and executables linked against it.
25922 hardcode_automatic=$hardcode_automatic_GCJ
25923
25924 # Variables whose values should be saved in libtool wrapper scripts and
25925 # restored at relink time.
25926 variables_saved_for_relink="$variables_saved_for_relink"
25927
25928 # Whether libtool must link a program against all its dependency libraries.
25929 link_all_deplibs=$link_all_deplibs_GCJ
25930
25931 # Compile-time system search path for libraries
25932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25933
25934 # Run-time system search path for libraries
25935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25936
25937 # Fix the shell variable \$srcfile for the compiler.
25938 fix_srcfile_path="$fix_srcfile_path_GCJ"
25939
25940 # Set to yes if exported symbols are required.
25941 always_export_symbols=$always_export_symbols_GCJ
25942
25943 # The commands to list exported symbols.
25944 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25945
25946 # The commands to extract the exported symbol list from a shared archive.
25947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25948
25949 # Symbols that should not be listed in the preloaded symbols.
25950 exclude_expsyms=$lt_exclude_expsyms_GCJ
25951
25952 # Symbols that must always be exported.
25953 include_expsyms=$lt_include_expsyms_GCJ
25954
25955 # ### END LIBTOOL TAG CONFIG: $tagname
25956
25957 __EOF__
25958
25959
25960 else
25961   # If there is no Makefile yet, we rely on a make rule to execute
25962   # `config.status --recheck' to rerun these tests and create the
25963   # libtool script then.
25964   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25965   if test -f "$ltmain_in"; then
25966     test -f Makefile && make "$ltmain"
25967   fi
25968 fi
25969
25970
25971 ac_ext=c
25972 ac_cpp='$CPP $CPPFLAGS'
25973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25976
25977 CC="$lt_save_CC"
25978
25979         else
25980           tagname=""
25981         fi
25982         ;;
25983
25984       RC)
25985         ac_ext=c
25986 ac_cpp='$CPP $CPPFLAGS'
25987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25990
25991
25992 # Source file extension for RC test sources.
25993 ac_ext=rc
25994
25995 # Object file extension for compiled RC test sources.
25996 objext=o
25997 objext_RC=$objext
25998
25999 # Code to be used in simple compile tests
26000 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26001
26002 # Code to be used in simple link tests
26003 lt_simple_link_test_code="$lt_simple_compile_test_code"
26004
26005 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26006
26007 # If no C compiler was specified, use CC.
26008 LTCC=${LTCC-"$CC"}
26009
26010 # If no C compiler flags were specified, use CFLAGS.
26011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26012
26013 # Allow CC to be a program name with arguments.
26014 compiler=$CC
26015
26016
26017 # save warnings/boilerplate of simple test code
26018 ac_outfile=conftest.$ac_objext
26019 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26021 _lt_compiler_boilerplate=`cat conftest.err`
26022 $rm conftest*
26023
26024 ac_outfile=conftest.$ac_objext
26025 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26027 _lt_linker_boilerplate=`cat conftest.err`
26028 $rm conftest*
26029
26030
26031 # Allow CC to be a program name with arguments.
26032 lt_save_CC="$CC"
26033 CC=${RC-"windres"}
26034 compiler=$CC
26035 compiler_RC=$CC
26036 for cc_temp in $compiler""; do
26037   case $cc_temp in
26038     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26039     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26040     \-*) ;;
26041     *) break;;
26042   esac
26043 done
26044 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26045
26046 lt_cv_prog_compiler_c_o_RC=yes
26047
26048 # The else clause should only fire when bootstrapping the
26049 # libtool distribution, otherwise you forgot to ship ltmain.sh
26050 # with your package, and you will get complaints that there are
26051 # no rules to generate ltmain.sh.
26052 if test -f "$ltmain"; then
26053   # See if we are running on zsh, and set the options which allow our commands through
26054   # without removal of \ escapes.
26055   if test -n "${ZSH_VERSION+set}" ; then
26056     setopt NO_GLOB_SUBST
26057   fi
26058   # Now quote all the things that may contain metacharacters while being
26059   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26060   # variables and quote the copies for generation of the libtool script.
26061   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26062     SED SHELL STRIP \
26063     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26064     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26065     deplibs_check_method reload_flag reload_cmds need_locks \
26066     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26067     lt_cv_sys_global_symbol_to_c_name_address \
26068     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26069     old_postinstall_cmds old_postuninstall_cmds \
26070     compiler_RC \
26071     CC_RC \
26072     LD_RC \
26073     lt_prog_compiler_wl_RC \
26074     lt_prog_compiler_pic_RC \
26075     lt_prog_compiler_static_RC \
26076     lt_prog_compiler_no_builtin_flag_RC \
26077     export_dynamic_flag_spec_RC \
26078     thread_safe_flag_spec_RC \
26079     whole_archive_flag_spec_RC \
26080     enable_shared_with_static_runtimes_RC \
26081     old_archive_cmds_RC \
26082     old_archive_from_new_cmds_RC \
26083     predep_objects_RC \
26084     postdep_objects_RC \
26085     predeps_RC \
26086     postdeps_RC \
26087     compiler_lib_search_path_RC \
26088     archive_cmds_RC \
26089     archive_expsym_cmds_RC \
26090     postinstall_cmds_RC \
26091     postuninstall_cmds_RC \
26092     old_archive_from_expsyms_cmds_RC \
26093     allow_undefined_flag_RC \
26094     no_undefined_flag_RC \
26095     export_symbols_cmds_RC \
26096     hardcode_libdir_flag_spec_RC \
26097     hardcode_libdir_flag_spec_ld_RC \
26098     hardcode_libdir_separator_RC \
26099     hardcode_automatic_RC \
26100     module_cmds_RC \
26101     module_expsym_cmds_RC \
26102     lt_cv_prog_compiler_c_o_RC \
26103     exclude_expsyms_RC \
26104     include_expsyms_RC; do
26105
26106     case $var in
26107     old_archive_cmds_RC | \
26108     old_archive_from_new_cmds_RC | \
26109     archive_cmds_RC | \
26110     archive_expsym_cmds_RC | \
26111     module_cmds_RC | \
26112     module_expsym_cmds_RC | \
26113     old_archive_from_expsyms_cmds_RC | \
26114     export_symbols_cmds_RC | \
26115     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26116     postinstall_cmds | postuninstall_cmds | \
26117     old_postinstall_cmds | old_postuninstall_cmds | \
26118     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26119       # Double-quote double-evaled strings.
26120       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26121       ;;
26122     *)
26123       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26124       ;;
26125     esac
26126   done
26127
26128   case $lt_echo in
26129   *'\$0 --fallback-echo"')
26130     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26131     ;;
26132   esac
26133
26134 cfgfile="$ofile"
26135
26136   cat <<__EOF__ >> "$cfgfile"
26137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26138
26139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26140
26141 # Shell to use when invoking shell scripts.
26142 SHELL=$lt_SHELL
26143
26144 # Whether or not to build shared libraries.
26145 build_libtool_libs=$enable_shared
26146
26147 # Whether or not to build static libraries.
26148 build_old_libs=$enable_static
26149
26150 # Whether or not to add -lc for building shared libraries.
26151 build_libtool_need_lc=$archive_cmds_need_lc_RC
26152
26153 # Whether or not to disallow shared libs when runtime libs are static
26154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26155
26156 # Whether or not to optimize for fast installation.
26157 fast_install=$enable_fast_install
26158
26159 # The host system.
26160 host_alias=$host_alias
26161 host=$host
26162 host_os=$host_os
26163
26164 # The build system.
26165 build_alias=$build_alias
26166 build=$build
26167 build_os=$build_os
26168
26169 # An echo program that does not interpret backslashes.
26170 echo=$lt_echo
26171
26172 # The archiver.
26173 AR=$lt_AR
26174 AR_FLAGS=$lt_AR_FLAGS
26175
26176 # A C compiler.
26177 LTCC=$lt_LTCC
26178
26179 # LTCC compiler flags.
26180 LTCFLAGS=$lt_LTCFLAGS
26181
26182 # A language-specific compiler.
26183 CC=$lt_compiler_RC
26184
26185 # Is the compiler the GNU C compiler?
26186 with_gcc=$GCC_RC
26187
26188 # An ERE matcher.
26189 EGREP=$lt_EGREP
26190
26191 # The linker used to build libraries.
26192 LD=$lt_LD_RC
26193
26194 # Whether we need hard or soft links.
26195 LN_S=$lt_LN_S
26196
26197 # A BSD-compatible nm program.
26198 NM=$lt_NM
26199
26200 # A symbol stripping program
26201 STRIP=$lt_STRIP
26202
26203 # Used to examine libraries when file_magic_cmd begins "file"
26204 MAGIC_CMD=$MAGIC_CMD
26205
26206 # Used on cygwin: DLL creation program.
26207 DLLTOOL="$DLLTOOL"
26208
26209 # Used on cygwin: object dumper.
26210 OBJDUMP="$OBJDUMP"
26211
26212 # Used on cygwin: assembler.
26213 AS="$AS"
26214
26215 # The name of the directory that contains temporary libtool files.
26216 objdir=$objdir
26217
26218 # How to create reloadable object files.
26219 reload_flag=$lt_reload_flag
26220 reload_cmds=$lt_reload_cmds
26221
26222 # How to pass a linker flag through the compiler.
26223 wl=$lt_lt_prog_compiler_wl_RC
26224
26225 # Object file suffix (normally "o").
26226 objext="$ac_objext"
26227
26228 # Old archive suffix (normally "a").
26229 libext="$libext"
26230
26231 # Shared library suffix (normally ".so").
26232 shrext_cmds='$shrext_cmds'
26233
26234 # Executable file suffix (normally "").
26235 exeext="$exeext"
26236
26237 # Additional compiler flags for building library objects.
26238 pic_flag=$lt_lt_prog_compiler_pic_RC
26239 pic_mode=$pic_mode
26240
26241 # What is the maximum length of a command?
26242 max_cmd_len=$lt_cv_sys_max_cmd_len
26243
26244 # Does compiler simultaneously support -c and -o options?
26245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26246
26247 # Must we lock files when doing compilation?
26248 need_locks=$lt_need_locks
26249
26250 # Do we need the lib prefix for modules?
26251 need_lib_prefix=$need_lib_prefix
26252
26253 # Do we need a version for libraries?
26254 need_version=$need_version
26255
26256 # Whether dlopen is supported.
26257 dlopen_support=$enable_dlopen
26258
26259 # Whether dlopen of programs is supported.
26260 dlopen_self=$enable_dlopen_self
26261
26262 # Whether dlopen of statically linked programs is supported.
26263 dlopen_self_static=$enable_dlopen_self_static
26264
26265 # Compiler flag to prevent dynamic linking.
26266 link_static_flag=$lt_lt_prog_compiler_static_RC
26267
26268 # Compiler flag to turn off builtin functions.
26269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26270
26271 # Compiler flag to allow reflexive dlopens.
26272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26273
26274 # Compiler flag to generate shared objects directly from archives.
26275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26276
26277 # Compiler flag to generate thread-safe objects.
26278 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26279
26280 # Library versioning type.
26281 version_type=$version_type
26282
26283 # Format of library name prefix.
26284 libname_spec=$lt_libname_spec
26285
26286 # List of archive names.  First name is the real one, the rest are links.
26287 # The last name is the one that the linker finds with -lNAME.
26288 library_names_spec=$lt_library_names_spec
26289
26290 # The coded name of the library, if different from the real name.
26291 soname_spec=$lt_soname_spec
26292
26293 # Commands used to build and install an old-style archive.
26294 RANLIB=$lt_RANLIB
26295 old_archive_cmds=$lt_old_archive_cmds_RC
26296 old_postinstall_cmds=$lt_old_postinstall_cmds
26297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26298
26299 # Create an old-style archive from a shared archive.
26300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26301
26302 # Create a temporary old-style archive to link instead of a shared archive.
26303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26304
26305 # Commands used to build and install a shared archive.
26306 archive_cmds=$lt_archive_cmds_RC
26307 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26308 postinstall_cmds=$lt_postinstall_cmds
26309 postuninstall_cmds=$lt_postuninstall_cmds
26310
26311 # Commands used to build a loadable module (assumed same as above if empty)
26312 module_cmds=$lt_module_cmds_RC
26313 module_expsym_cmds=$lt_module_expsym_cmds_RC
26314
26315 # Commands to strip libraries.
26316 old_striplib=$lt_old_striplib
26317 striplib=$lt_striplib
26318
26319 # Dependencies to place before the objects being linked to create a
26320 # shared library.
26321 predep_objects=$lt_predep_objects_RC
26322
26323 # Dependencies to place after the objects being linked to create a
26324 # shared library.
26325 postdep_objects=$lt_postdep_objects_RC
26326
26327 # Dependencies to place before the objects being linked to create a
26328 # shared library.
26329 predeps=$lt_predeps_RC
26330
26331 # Dependencies to place after the objects being linked to create a
26332 # shared library.
26333 postdeps=$lt_postdeps_RC
26334
26335 # The library search path used internally by the compiler when linking
26336 # a shared library.
26337 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26338
26339 # Method to check whether dependent libraries are shared objects.
26340 deplibs_check_method=$lt_deplibs_check_method
26341
26342 # Command to use when deplibs_check_method == file_magic.
26343 file_magic_cmd=$lt_file_magic_cmd
26344
26345 # Flag that allows shared libraries with undefined symbols to be built.
26346 allow_undefined_flag=$lt_allow_undefined_flag_RC
26347
26348 # Flag that forces no undefined symbols.
26349 no_undefined_flag=$lt_no_undefined_flag_RC
26350
26351 # Commands used to finish a libtool library installation in a directory.
26352 finish_cmds=$lt_finish_cmds
26353
26354 # Same as above, but a single script fragment to be evaled but not shown.
26355 finish_eval=$lt_finish_eval
26356
26357 # Take the output of nm and produce a listing of raw symbols and C names.
26358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26359
26360 # Transform the output of nm in a proper C declaration
26361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26362
26363 # Transform the output of nm in a C name address pair
26364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26365
26366 # This is the shared library runtime path variable.
26367 runpath_var=$runpath_var
26368
26369 # This is the shared library path variable.
26370 shlibpath_var=$shlibpath_var
26371
26372 # Is shlibpath searched before the hard-coded library search path?
26373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26374
26375 # How to hardcode a shared library path into an executable.
26376 hardcode_action=$hardcode_action_RC
26377
26378 # Whether we should hardcode library paths into libraries.
26379 hardcode_into_libs=$hardcode_into_libs
26380
26381 # Flag to hardcode \$libdir into a binary during linking.
26382 # This must work even if \$libdir does not exist.
26383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26384
26385 # If ld is used when linking, flag to hardcode \$libdir into
26386 # a binary during linking. This must work even if \$libdir does
26387 # not exist.
26388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26389
26390 # Whether we need a single -rpath flag with a separated argument.
26391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26392
26393 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26394 # resulting binary.
26395 hardcode_direct=$hardcode_direct_RC
26396
26397 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26398 # resulting binary.
26399 hardcode_minus_L=$hardcode_minus_L_RC
26400
26401 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26402 # the resulting binary.
26403 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26404
26405 # Set to yes if building a shared library automatically hardcodes DIR into the library
26406 # and all subsequent libraries and executables linked against it.
26407 hardcode_automatic=$hardcode_automatic_RC
26408
26409 # Variables whose values should be saved in libtool wrapper scripts and
26410 # restored at relink time.
26411 variables_saved_for_relink="$variables_saved_for_relink"
26412
26413 # Whether libtool must link a program against all its dependency libraries.
26414 link_all_deplibs=$link_all_deplibs_RC
26415
26416 # Compile-time system search path for libraries
26417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26418
26419 # Run-time system search path for libraries
26420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26421
26422 # Fix the shell variable \$srcfile for the compiler.
26423 fix_srcfile_path="$fix_srcfile_path_RC"
26424
26425 # Set to yes if exported symbols are required.
26426 always_export_symbols=$always_export_symbols_RC
26427
26428 # The commands to list exported symbols.
26429 export_symbols_cmds=$lt_export_symbols_cmds_RC
26430
26431 # The commands to extract the exported symbol list from a shared archive.
26432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26433
26434 # Symbols that should not be listed in the preloaded symbols.
26435 exclude_expsyms=$lt_exclude_expsyms_RC
26436
26437 # Symbols that must always be exported.
26438 include_expsyms=$lt_include_expsyms_RC
26439
26440 # ### END LIBTOOL TAG CONFIG: $tagname
26441
26442 __EOF__
26443
26444
26445 else
26446   # If there is no Makefile yet, we rely on a make rule to execute
26447   # `config.status --recheck' to rerun these tests and create the
26448   # libtool script then.
26449   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26450   if test -f "$ltmain_in"; then
26451     test -f Makefile && make "$ltmain"
26452   fi
26453 fi
26454
26455
26456 ac_ext=c
26457 ac_cpp='$CPP $CPPFLAGS'
26458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26461
26462 CC="$lt_save_CC"
26463
26464         ;;
26465
26466       *)
26467         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26468 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26469    { (exit 1); exit 1; }; }
26470         ;;
26471       esac
26472
26473       # Append the new tag name to the list of available tags.
26474       if test -n "$tagname" ; then
26475       available_tags="$available_tags $tagname"
26476     fi
26477     fi
26478   done
26479   IFS="$lt_save_ifs"
26480
26481   # Now substitute the updated list of available tags.
26482   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26483     mv "${ofile}T" "$ofile"
26484     chmod +x "$ofile"
26485   else
26486     rm -f "${ofile}T"
26487     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26488 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26489    { (exit 1); exit 1; }; }
26490   fi
26491 fi
26492
26493
26494
26495 # This can be used to rebuild libtool when needed
26496 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26497
26498 # Always use our own libtool.
26499 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26500
26501 # Prevent multiple expansion
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523 if test "$lt_cv_dlopen_self" = "yes" ; then
26524
26525 cat >>confdefs.h <<\_ACEOF
26526 #define CAN_DLOPEN_SELF 1
26527 _ACEOF
26528
26529 fi
26530
26531 etags_version=`$ETAGS --version 2>&1`
26532 case "$etags_version" in
26533         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26534         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26535         *) ETAGSFLAGS="" ;;
26536 esac
26537 ETAGSFLAGS=$ETAGSFLAGS
26538
26539
26540 if test "$WITH_LLVMGCCDIR" = "default" ; then
26541   LLVMGCC="llvm-gcc${EXEEXT}"
26542   LLVMGXX="llvm-g++${EXEEXT}"
26543   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26544 set dummy $LLVMGCC; ac_word=$2
26545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26547 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26548   echo $ECHO_N "(cached) $ECHO_C" >&6
26549 else
26550   case $LLVMGCC in
26551   [\\/]* | ?:[\\/]*)
26552   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26553   ;;
26554   *)
26555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26556 for as_dir in $PATH
26557 do
26558   IFS=$as_save_IFS
26559   test -z "$as_dir" && as_dir=.
26560   for ac_exec_ext in '' $ac_executable_extensions; do
26561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26562     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26564     break 2
26565   fi
26566 done
26567 done
26568 IFS=$as_save_IFS
26569
26570   ;;
26571 esac
26572 fi
26573 LLVMGCC=$ac_cv_path_LLVMGCC
26574 if test -n "$LLVMGCC"; then
26575   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26576 echo "${ECHO_T}$LLVMGCC" >&6; }
26577 else
26578   { echo "$as_me:$LINENO: result: no" >&5
26579 echo "${ECHO_T}no" >&6; }
26580 fi
26581
26582
26583   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26584 set dummy $LLVMGXX; ac_word=$2
26585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26587 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590   case $LLVMGXX in
26591   [\\/]* | ?:[\\/]*)
26592   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26593   ;;
26594   *)
26595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $PATH
26597 do
26598   IFS=$as_save_IFS
26599   test -z "$as_dir" && as_dir=.
26600   for ac_exec_ext in '' $ac_executable_extensions; do
26601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26602     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604     break 2
26605   fi
26606 done
26607 done
26608 IFS=$as_save_IFS
26609
26610   ;;
26611 esac
26612 fi
26613 LLVMGXX=$ac_cv_path_LLVMGXX
26614 if test -n "$LLVMGXX"; then
26615   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26616 echo "${ECHO_T}$LLVMGXX" >&6; }
26617 else
26618   { echo "$as_me:$LINENO: result: no" >&5
26619 echo "${ECHO_T}no" >&6; }
26620 fi
26621
26622
26623 else
26624   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26625   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26626   LLVMGCC=$LLVMGCC
26627
26628   LLVMGXX=$LLVMGXX
26629
26630 fi
26631
26632 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26633 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26634
26635 ICC=no
26636 IXX=no
26637 case $CC in
26638   icc*|icpc*)
26639     ICC=yes
26640     IXX=yes
26641     ;;
26642    *)
26643     ;;
26644 esac
26645
26646 if test "$GCC" != "yes" && test "$ICC" != "yes"
26647 then
26648   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26649 echo "$as_me: error: gcc|icc required but not found" >&2;}
26650    { (exit 1); exit 1; }; }
26651 fi
26652
26653 if test "$GXX" != "yes" && test "$IXX" != "yes"
26654 then
26655   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26656 echo "$as_me: error: g++|icc required but not found" >&2;}
26657    { (exit 1); exit 1; }; }
26658 fi
26659
26660 if test "$GCC" = "yes"
26661 then
26662   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26663   if test "$gccmajor" -lt "3"
26664   then
26665     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26666 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26667    { (exit 1); exit 1; }; }
26668   fi
26669 fi
26670
26671 if test -z "$llvm_cv_gnu_make_command"
26672 then
26673   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26674 echo "$as_me: error: GNU Make required but not found" >&2;}
26675    { (exit 1); exit 1; }; }
26676 fi
26677
26678 { echo "$as_me:$LINENO: result: ok" >&5
26679 echo "${ECHO_T}ok" >&6; }
26680
26681
26682
26683 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26684 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26685 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26686   echo $ECHO_N "(cached) $ECHO_C" >&6
26687 else
26688   ac_check_lib_save_LIBS=$LIBS
26689 LIBS="-lelf  $LIBS"
26690 cat >conftest.$ac_ext <<_ACEOF
26691 /* confdefs.h.  */
26692 _ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h.  */
26696
26697 /* Override any GCC internal prototype to avoid an error.
26698    Use char because int might match the return type of a GCC
26699    builtin and then its argument prototype would still apply.  */
26700 #ifdef __cplusplus
26701 extern "C"
26702 #endif
26703 char elf_begin ();
26704 int
26705 main ()
26706 {
26707 return elf_begin ();
26708   ;
26709   return 0;
26710 }
26711 _ACEOF
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_link") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } &&
26726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727   { (case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732   (eval "$ac_try") 2>&5
26733   ac_status=$?
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); }; } &&
26736          { ac_try='test -s conftest$ac_exeext'
26737   { (case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_try") 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; }; then
26746   ac_cv_lib_elf_elf_begin=yes
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751         ac_cv_lib_elf_elf_begin=no
26752 fi
26753
26754 rm -f core conftest.err conftest.$ac_objext \
26755       conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26757 fi
26758 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26759 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26760 if test $ac_cv_lib_elf_elf_begin = yes; then
26761   cat >>confdefs.h <<_ACEOF
26762 #define HAVE_LIBELF 1
26763 _ACEOF
26764
26765   LIBS="-lelf $LIBS"
26766
26767 fi
26768
26769
26770 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26771 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26772 if test "${ac_cv_lib_m_sin+set}" = set; then
26773   echo $ECHO_N "(cached) $ECHO_C" >&6
26774 else
26775   ac_check_lib_save_LIBS=$LIBS
26776 LIBS="-lm  $LIBS"
26777 cat >conftest.$ac_ext <<_ACEOF
26778 /* confdefs.h.  */
26779 _ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h.  */
26783
26784 /* Override any GCC internal prototype to avoid an error.
26785    Use char because int might match the return type of a GCC
26786    builtin and then its argument prototype would still apply.  */
26787 #ifdef __cplusplus
26788 extern "C"
26789 #endif
26790 char sin ();
26791 int
26792 main ()
26793 {
26794 return sin ();
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 rm -f conftest.$ac_objext conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803   *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806   (eval "$ac_link") 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } &&
26813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26814   { (case "(($ac_try" in
26815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816   *) ac_try_echo=$ac_try;;
26817 esac
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819   (eval "$ac_try") 2>&5
26820   ac_status=$?
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); }; } &&
26823          { ac_try='test -s conftest$ac_exeext'
26824   { (case "(($ac_try" in
26825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26826   *) ac_try_echo=$ac_try;;
26827 esac
26828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829   (eval "$ac_try") 2>&5
26830   ac_status=$?
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); }; }; then
26833   ac_cv_lib_m_sin=yes
26834 else
26835   echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26837
26838         ac_cv_lib_m_sin=no
26839 fi
26840
26841 rm -f core conftest.err conftest.$ac_objext \
26842       conftest$ac_exeext conftest.$ac_ext
26843 LIBS=$ac_check_lib_save_LIBS
26844 fi
26845 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26846 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26847 if test $ac_cv_lib_m_sin = yes; then
26848   cat >>confdefs.h <<_ACEOF
26849 #define HAVE_LIBM 1
26850 _ACEOF
26851
26852   LIBS="-lm $LIBS"
26853
26854 fi
26855
26856 if test "$llvm_cv_os_type" == "MingW" ; then
26857
26858 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26859 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26860 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26861   echo $ECHO_N "(cached) $ECHO_C" >&6
26862 else
26863   ac_check_lib_save_LIBS=$LIBS
26864 LIBS="-limagehlp  $LIBS"
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871
26872
26873 int
26874 main ()
26875 {
26876 return main ();
26877   ;
26878   return 0;
26879 }
26880 _ACEOF
26881 rm -f conftest.$ac_objext conftest$ac_exeext
26882 if { (ac_try="$ac_link"
26883 case "(($ac_try" in
26884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885   *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888   (eval "$ac_link") 2>conftest.er1
26889   ac_status=$?
26890   grep -v '^ *+' conftest.er1 >conftest.err
26891   rm -f conftest.er1
26892   cat conftest.err >&5
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); } &&
26895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26896   { (case "(($ac_try" in
26897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898   *) ac_try_echo=$ac_try;;
26899 esac
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901   (eval "$ac_try") 2>&5
26902   ac_status=$?
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); }; } &&
26905          { ac_try='test -s conftest$ac_exeext'
26906   { (case "(($ac_try" in
26907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908   *) ac_try_echo=$ac_try;;
26909 esac
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911   (eval "$ac_try") 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); }; }; then
26915   ac_cv_lib_imagehlp_main=yes
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920         ac_cv_lib_imagehlp_main=no
26921 fi
26922
26923 rm -f core conftest.err conftest.$ac_objext \
26924       conftest$ac_exeext conftest.$ac_ext
26925 LIBS=$ac_check_lib_save_LIBS
26926 fi
26927 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26928 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26929 if test $ac_cv_lib_imagehlp_main = yes; then
26930   cat >>confdefs.h <<_ACEOF
26931 #define HAVE_LIBIMAGEHLP 1
26932 _ACEOF
26933
26934   LIBS="-limagehlp $LIBS"
26935
26936 fi
26937
26938
26939 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26940 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26941 if test "${ac_cv_lib_psapi_main+set}" = set; then
26942   echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944   ac_check_lib_save_LIBS=$LIBS
26945 LIBS="-lpsapi  $LIBS"
26946 cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952
26953
26954 int
26955 main ()
26956 {
26957 return main ();
26958   ;
26959   return 0;
26960 }
26961 _ACEOF
26962 rm -f conftest.$ac_objext conftest$ac_exeext
26963 if { (ac_try="$ac_link"
26964 case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_link") 2>conftest.er1
26970   ac_status=$?
26971   grep -v '^ *+' conftest.er1 >conftest.err
26972   rm -f conftest.er1
26973   cat conftest.err >&5
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } &&
26976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26977   { (case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_try") 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); }; } &&
26986          { ac_try='test -s conftest$ac_exeext'
26987   { (case "(($ac_try" in
26988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989   *) ac_try_echo=$ac_try;;
26990 esac
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992   (eval "$ac_try") 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; }; then
26996   ac_cv_lib_psapi_main=yes
26997 else
26998   echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27000
27001         ac_cv_lib_psapi_main=no
27002 fi
27003
27004 rm -f core conftest.err conftest.$ac_objext \
27005       conftest$ac_exeext conftest.$ac_ext
27006 LIBS=$ac_check_lib_save_LIBS
27007 fi
27008 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27009 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27010 if test $ac_cv_lib_psapi_main = yes; then
27011   cat >>confdefs.h <<_ACEOF
27012 #define HAVE_LIBPSAPI 1
27013 _ACEOF
27014
27015   LIBS="-lpsapi $LIBS"
27016
27017 fi
27018
27019 fi
27020
27021 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27022 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27023 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27024   echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026   ac_func_search_save_LIBS=$LIBS
27027 cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h.  */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h.  */
27033
27034 /* Override any GCC internal prototype to avoid an error.
27035    Use char because int might match the return type of a GCC
27036    builtin and then its argument prototype would still apply.  */
27037 #ifdef __cplusplus
27038 extern "C"
27039 #endif
27040 char lt_dlopen ();
27041 int
27042 main ()
27043 {
27044 return lt_dlopen ();
27045   ;
27046   return 0;
27047 }
27048 _ACEOF
27049 for ac_lib in '' ltdl; do
27050   if test -z "$ac_lib"; then
27051     ac_res="none required"
27052   else
27053     ac_res=-l$ac_lib
27054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27055   fi
27056   rm -f conftest.$ac_objext conftest$ac_exeext
27057 if { (ac_try="$ac_link"
27058 case "(($ac_try" in
27059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060   *) ac_try_echo=$ac_try;;
27061 esac
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063   (eval "$ac_link") 2>conftest.er1
27064   ac_status=$?
27065   grep -v '^ *+' conftest.er1 >conftest.err
27066   rm -f conftest.er1
27067   cat conftest.err >&5
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } &&
27070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27071   { (case "(($ac_try" in
27072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27073   *) ac_try_echo=$ac_try;;
27074 esac
27075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27076   (eval "$ac_try") 2>&5
27077   ac_status=$?
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); }; } &&
27080          { ac_try='test -s conftest$ac_exeext'
27081   { (case "(($ac_try" in
27082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083   *) ac_try_echo=$ac_try;;
27084 esac
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086   (eval "$ac_try") 2>&5
27087   ac_status=$?
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); }; }; then
27090   ac_cv_search_lt_dlopen=$ac_res
27091 else
27092   echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27094
27095
27096 fi
27097
27098 rm -f core conftest.err conftest.$ac_objext \
27099       conftest$ac_exeext
27100   if test "${ac_cv_search_lt_dlopen+set}" = set; then
27101   break
27102 fi
27103 done
27104 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27105   :
27106 else
27107   ac_cv_search_lt_dlopen=no
27108 fi
27109 rm conftest.$ac_ext
27110 LIBS=$ac_func_search_save_LIBS
27111 fi
27112 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27113 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27114 ac_res=$ac_cv_search_lt_dlopen
27115 if test "$ac_res" != no; then
27116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27117
27118 cat >>confdefs.h <<\_ACEOF
27119 #define HAVE_LT_DLOPEN 1
27120 _ACEOF
27121
27122 else
27123   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27124                            not be available" >&5
27125 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27126                            not be available" >&2;}
27127 fi
27128
27129
27130 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27131 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27132 if test "${ac_cv_search_dlopen+set}" = set; then
27133   echo $ECHO_N "(cached) $ECHO_C" >&6
27134 else
27135   ac_func_search_save_LIBS=$LIBS
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142
27143 /* Override any GCC internal prototype to avoid an error.
27144    Use char because int might match the return type of a GCC
27145    builtin and then its argument prototype would still apply.  */
27146 #ifdef __cplusplus
27147 extern "C"
27148 #endif
27149 char dlopen ();
27150 int
27151 main ()
27152 {
27153 return dlopen ();
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 for ac_lib in '' dl; do
27159   if test -z "$ac_lib"; then
27160     ac_res="none required"
27161   else
27162     ac_res=-l$ac_lib
27163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27164   fi
27165   rm -f conftest.$ac_objext conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172   (eval "$ac_link") 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } &&
27179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27180   { (case "(($ac_try" in
27181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182   *) ac_try_echo=$ac_try;;
27183 esac
27184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27185   (eval "$ac_try") 2>&5
27186   ac_status=$?
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); }; } &&
27189          { ac_try='test -s conftest$ac_exeext'
27190   { (case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_try") 2>&5
27196   ac_status=$?
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); }; }; then
27199   ac_cv_search_dlopen=$ac_res
27200 else
27201   echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27203
27204
27205 fi
27206
27207 rm -f core conftest.err conftest.$ac_objext \
27208       conftest$ac_exeext
27209   if test "${ac_cv_search_dlopen+set}" = set; then
27210   break
27211 fi
27212 done
27213 if test "${ac_cv_search_dlopen+set}" = set; then
27214   :
27215 else
27216   ac_cv_search_dlopen=no
27217 fi
27218 rm conftest.$ac_ext
27219 LIBS=$ac_func_search_save_LIBS
27220 fi
27221 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27222 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27223 ac_res=$ac_cv_search_dlopen
27224 if test "$ac_res" != no; then
27225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27226
27227 cat >>confdefs.h <<\_ACEOF
27228 #define HAVE_DLOPEN 1
27229 _ACEOF
27230
27231 else
27232   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27233 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27234 fi
27235
27236
27237 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27238 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27239 if test "${ac_cv_search_mallinfo+set}" = set; then
27240   echo $ECHO_N "(cached) $ECHO_C" >&6
27241 else
27242   ac_func_search_save_LIBS=$LIBS
27243 cat >conftest.$ac_ext <<_ACEOF
27244 /* confdefs.h.  */
27245 _ACEOF
27246 cat confdefs.h >>conftest.$ac_ext
27247 cat >>conftest.$ac_ext <<_ACEOF
27248 /* end confdefs.h.  */
27249
27250 /* Override any GCC internal prototype to avoid an error.
27251    Use char because int might match the return type of a GCC
27252    builtin and then its argument prototype would still apply.  */
27253 #ifdef __cplusplus
27254 extern "C"
27255 #endif
27256 char mallinfo ();
27257 int
27258 main ()
27259 {
27260 return mallinfo ();
27261   ;
27262   return 0;
27263 }
27264 _ACEOF
27265 for ac_lib in '' malloc; do
27266   if test -z "$ac_lib"; then
27267     ac_res="none required"
27268   else
27269     ac_res=-l$ac_lib
27270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27271   fi
27272   rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (ac_try="$ac_link"
27274 case "(($ac_try" in
27275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276   *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279   (eval "$ac_link") 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } &&
27286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287   { (case "(($ac_try" in
27288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289   *) ac_try_echo=$ac_try;;
27290 esac
27291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292   (eval "$ac_try") 2>&5
27293   ac_status=$?
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); }; } &&
27296          { ac_try='test -s conftest$ac_exeext'
27297   { (case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_try") 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; }; then
27306   ac_cv_search_mallinfo=$ac_res
27307 else
27308   echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311
27312 fi
27313
27314 rm -f core conftest.err conftest.$ac_objext \
27315       conftest$ac_exeext
27316   if test "${ac_cv_search_mallinfo+set}" = set; then
27317   break
27318 fi
27319 done
27320 if test "${ac_cv_search_mallinfo+set}" = set; then
27321   :
27322 else
27323   ac_cv_search_mallinfo=no
27324 fi
27325 rm conftest.$ac_ext
27326 LIBS=$ac_func_search_save_LIBS
27327 fi
27328 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27329 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27330 ac_res=$ac_cv_search_mallinfo
27331 if test "$ac_res" != no; then
27332   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27333
27334 cat >>confdefs.h <<\_ACEOF
27335 #define HAVE_MALLINFO 1
27336 _ACEOF
27337
27338 fi
27339
27340
27341 if test "$ENABLE_THREADS" -eq 1 ; then
27342
27343 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27344 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27345 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27346   echo $ECHO_N "(cached) $ECHO_C" >&6
27347 else
27348   ac_check_lib_save_LIBS=$LIBS
27349 LIBS="-lpthread  $LIBS"
27350 cat >conftest.$ac_ext <<_ACEOF
27351 /* confdefs.h.  */
27352 _ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h.  */
27356
27357 /* Override any GCC internal prototype to avoid an error.
27358    Use char because int might match the return type of a GCC
27359    builtin and then its argument prototype would still apply.  */
27360 #ifdef __cplusplus
27361 extern "C"
27362 #endif
27363 char pthread_mutex_init ();
27364 int
27365 main ()
27366 {
27367 return pthread_mutex_init ();
27368   ;
27369   return 0;
27370 }
27371 _ACEOF
27372 rm -f conftest.$ac_objext conftest$ac_exeext
27373 if { (ac_try="$ac_link"
27374 case "(($ac_try" in
27375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376   *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379   (eval "$ac_link") 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } &&
27386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27387   { (case "(($ac_try" in
27388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389   *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392   (eval "$ac_try") 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; } &&
27396          { ac_try='test -s conftest$ac_exeext'
27397   { (case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402   (eval "$ac_try") 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; }; then
27406   ac_cv_lib_pthread_pthread_mutex_init=yes
27407 else
27408   echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411         ac_cv_lib_pthread_pthread_mutex_init=no
27412 fi
27413
27414 rm -f core conftest.err conftest.$ac_objext \
27415       conftest$ac_exeext conftest.$ac_ext
27416 LIBS=$ac_check_lib_save_LIBS
27417 fi
27418 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27419 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27420 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27421   cat >>confdefs.h <<_ACEOF
27422 #define HAVE_LIBPTHREAD 1
27423 _ACEOF
27424
27425   LIBS="-lpthread $LIBS"
27426
27427 fi
27428
27429   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27430 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27431 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27432   echo $ECHO_N "(cached) $ECHO_C" >&6
27433 else
27434   ac_func_search_save_LIBS=$LIBS
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441
27442 /* Override any GCC internal prototype to avoid an error.
27443    Use char because int might match the return type of a GCC
27444    builtin and then its argument prototype would still apply.  */
27445 #ifdef __cplusplus
27446 extern "C"
27447 #endif
27448 char pthread_mutex_lock ();
27449 int
27450 main ()
27451 {
27452 return pthread_mutex_lock ();
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 for ac_lib in '' pthread; do
27458   if test -z "$ac_lib"; then
27459     ac_res="none required"
27460   else
27461     ac_res=-l$ac_lib
27462     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27463   fi
27464   rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (ac_try="$ac_link"
27466 case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471   (eval "$ac_link") 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } &&
27478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479   { (case "(($ac_try" in
27480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481   *) ac_try_echo=$ac_try;;
27482 esac
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484   (eval "$ac_try") 2>&5
27485   ac_status=$?
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); }; } &&
27488          { ac_try='test -s conftest$ac_exeext'
27489   { (case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_try") 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; }; then
27498   ac_cv_search_pthread_mutex_lock=$ac_res
27499 else
27500   echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27502
27503
27504 fi
27505
27506 rm -f core conftest.err conftest.$ac_objext \
27507       conftest$ac_exeext
27508   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27509   break
27510 fi
27511 done
27512 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27513   :
27514 else
27515   ac_cv_search_pthread_mutex_lock=no
27516 fi
27517 rm conftest.$ac_ext
27518 LIBS=$ac_func_search_save_LIBS
27519 fi
27520 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27521 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27522 ac_res=$ac_cv_search_pthread_mutex_lock
27523 if test "$ac_res" != no; then
27524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27525
27526 cat >>confdefs.h <<\_ACEOF
27527 #define HAVE_PTHREAD_MUTEX_LOCK 1
27528 _ACEOF
27529
27530 fi
27531
27532 fi
27533
27534
27535
27536
27537
27538
27539
27540 ac_header_dirent=no
27541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27542   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27543 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27546   echo $ECHO_N "(cached) $ECHO_C" >&6
27547 else
27548   cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h.  */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h.  */
27554 #include <sys/types.h>
27555 #include <$ac_hdr>
27556
27557 int
27558 main ()
27559 {
27560 if ((DIR *) 0)
27561 return 0;
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_compile") 2>conftest.er1
27574   ac_status=$?
27575   grep -v '^ *+' conftest.er1 >conftest.err
27576   rm -f conftest.er1
27577   cat conftest.err >&5
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } &&
27580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581   { (case "(($ac_try" in
27582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583   *) ac_try_echo=$ac_try;;
27584 esac
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586   (eval "$ac_try") 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; } &&
27590          { ac_try='test -s conftest.$ac_objext'
27591   { (case "(($ac_try" in
27592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593   *) ac_try_echo=$ac_try;;
27594 esac
27595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596   (eval "$ac_try") 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; }; then
27600   eval "$as_ac_Header=yes"
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         eval "$as_ac_Header=no"
27606 fi
27607
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27609 fi
27610 ac_res=`eval echo '${'$as_ac_Header'}'`
27611                { echo "$as_me:$LINENO: result: $ac_res" >&5
27612 echo "${ECHO_T}$ac_res" >&6; }
27613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27614   cat >>confdefs.h <<_ACEOF
27615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27616 _ACEOF
27617
27618 ac_header_dirent=$ac_hdr; break
27619 fi
27620
27621 done
27622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27623 if test $ac_header_dirent = dirent.h; then
27624   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27626 if test "${ac_cv_search_opendir+set}" = set; then
27627   echo $ECHO_N "(cached) $ECHO_C" >&6
27628 else
27629   ac_func_search_save_LIBS=$LIBS
27630 cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636
27637 /* Override any GCC internal prototype to avoid an error.
27638    Use char because int might match the return type of a GCC
27639    builtin and then its argument prototype would still apply.  */
27640 #ifdef __cplusplus
27641 extern "C"
27642 #endif
27643 char opendir ();
27644 int
27645 main ()
27646 {
27647 return opendir ();
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 for ac_lib in '' dir; do
27653   if test -z "$ac_lib"; then
27654     ac_res="none required"
27655   else
27656     ac_res=-l$ac_lib
27657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27658   fi
27659   rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (ac_try="$ac_link"
27661 case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_link") 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } &&
27673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674   { (case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_try") 2>&5
27680   ac_status=$?
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); }; } &&
27683          { ac_try='test -s conftest$ac_exeext'
27684   { (case "(($ac_try" in
27685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686   *) ac_try_echo=$ac_try;;
27687 esac
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689   (eval "$ac_try") 2>&5
27690   ac_status=$?
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); }; }; then
27693   ac_cv_search_opendir=$ac_res
27694 else
27695   echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698
27699 fi
27700
27701 rm -f core conftest.err conftest.$ac_objext \
27702       conftest$ac_exeext
27703   if test "${ac_cv_search_opendir+set}" = set; then
27704   break
27705 fi
27706 done
27707 if test "${ac_cv_search_opendir+set}" = set; then
27708   :
27709 else
27710   ac_cv_search_opendir=no
27711 fi
27712 rm conftest.$ac_ext
27713 LIBS=$ac_func_search_save_LIBS
27714 fi
27715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27717 ac_res=$ac_cv_search_opendir
27718 if test "$ac_res" != no; then
27719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27720
27721 fi
27722
27723 else
27724   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27726 if test "${ac_cv_search_opendir+set}" = set; then
27727   echo $ECHO_N "(cached) $ECHO_C" >&6
27728 else
27729   ac_func_search_save_LIBS=$LIBS
27730 cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736
27737 /* Override any GCC internal prototype to avoid an error.
27738    Use char because int might match the return type of a GCC
27739    builtin and then its argument prototype would still apply.  */
27740 #ifdef __cplusplus
27741 extern "C"
27742 #endif
27743 char opendir ();
27744 int
27745 main ()
27746 {
27747 return opendir ();
27748   ;
27749   return 0;
27750 }
27751 _ACEOF
27752 for ac_lib in '' x; do
27753   if test -z "$ac_lib"; then
27754     ac_res="none required"
27755   else
27756     ac_res=-l$ac_lib
27757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27758   fi
27759   rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (ac_try="$ac_link"
27761 case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_link") 2>conftest.er1
27767   ac_status=$?
27768   grep -v '^ *+' conftest.er1 >conftest.err
27769   rm -f conftest.er1
27770   cat conftest.err >&5
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } &&
27773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774   { (case "(($ac_try" in
27775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776   *) ac_try_echo=$ac_try;;
27777 esac
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779   (eval "$ac_try") 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; } &&
27783          { ac_try='test -s conftest$ac_exeext'
27784   { (case "(($ac_try" in
27785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786   *) ac_try_echo=$ac_try;;
27787 esac
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789   (eval "$ac_try") 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   ac_cv_search_opendir=$ac_res
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798
27799 fi
27800
27801 rm -f core conftest.err conftest.$ac_objext \
27802       conftest$ac_exeext
27803   if test "${ac_cv_search_opendir+set}" = set; then
27804   break
27805 fi
27806 done
27807 if test "${ac_cv_search_opendir+set}" = set; then
27808   :
27809 else
27810   ac_cv_search_opendir=no
27811 fi
27812 rm conftest.$ac_ext
27813 LIBS=$ac_func_search_save_LIBS
27814 fi
27815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27817 ac_res=$ac_cv_search_opendir
27818 if test "$ac_res" != no; then
27819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27820
27821 fi
27822
27823 fi
27824
27825 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27826 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27827 if test "${ac_cv_header_mmap_anon+set}" = set; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830    ac_ext=c
27831 ac_cpp='$CPP $CPPFLAGS'
27832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835
27836   cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842 #include <sys/mman.h>
27843 #include <unistd.h>
27844 #include <fcntl.h>
27845 int
27846 main ()
27847 {
27848 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext
27854 if { (ac_try="$ac_compile"
27855 case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860   (eval "$ac_compile") 2>conftest.er1
27861   ac_status=$?
27862   grep -v '^ *+' conftest.er1 >conftest.err
27863   rm -f conftest.er1
27864   cat conftest.err >&5
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); } &&
27867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868   { (case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; } &&
27877          { ac_try='test -s conftest.$ac_objext'
27878   { (case "(($ac_try" in
27879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880   *) ac_try_echo=$ac_try;;
27881 esac
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883   (eval "$ac_try") 2>&5
27884   ac_status=$?
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); }; }; then
27887   ac_cv_header_mmap_anon=yes
27888 else
27889   echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27891
27892         ac_cv_header_mmap_anon=no
27893 fi
27894
27895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896   ac_ext=c
27897 ac_cpp='$CPP $CPPFLAGS'
27898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27901
27902
27903 fi
27904 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27905 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27906 if test "$ac_cv_header_mmap_anon" = yes; then
27907
27908 cat >>confdefs.h <<\_ACEOF
27909 #define HAVE_MMAP_ANONYMOUS 1
27910 _ACEOF
27911
27912 fi
27913
27914 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27915 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27916 if test "${ac_cv_header_stat_broken+set}" = set; then
27917   echo $ECHO_N "(cached) $ECHO_C" >&6
27918 else
27919   cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925 #include <sys/types.h>
27926 #include <sys/stat.h>
27927
27928 #if defined S_ISBLK && defined S_IFDIR
27929 # if S_ISBLK (S_IFDIR)
27930 You lose.
27931 # endif
27932 #endif
27933
27934 #if defined S_ISBLK && defined S_IFCHR
27935 # if S_ISBLK (S_IFCHR)
27936 You lose.
27937 # endif
27938 #endif
27939
27940 #if defined S_ISLNK && defined S_IFREG
27941 # if S_ISLNK (S_IFREG)
27942 You lose.
27943 # endif
27944 #endif
27945
27946 #if defined S_ISSOCK && defined S_IFREG
27947 # if S_ISSOCK (S_IFREG)
27948 You lose.
27949 # endif
27950 #endif
27951
27952 _ACEOF
27953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27954   $EGREP "You lose" >/dev/null 2>&1; then
27955   ac_cv_header_stat_broken=yes
27956 else
27957   ac_cv_header_stat_broken=no
27958 fi
27959 rm -f conftest*
27960
27961 fi
27962 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27963 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27964 if test $ac_cv_header_stat_broken = yes; then
27965
27966 cat >>confdefs.h <<\_ACEOF
27967 #define STAT_MACROS_BROKEN 1
27968 _ACEOF
27969
27970 fi
27971
27972 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27974 if test "${ac_cv_header_stdc+set}" = set; then
27975   echo $ECHO_N "(cached) $ECHO_C" >&6
27976 else
27977   cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983 #include <stdlib.h>
27984 #include <stdarg.h>
27985 #include <string.h>
27986 #include <float.h>
27987
27988 int
27989 main ()
27990 {
27991
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 rm -f conftest.$ac_objext
27997 if { (ac_try="$ac_compile"
27998 case "(($ac_try" in
27999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000   *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003   (eval "$ac_compile") 2>conftest.er1
28004   ac_status=$?
28005   grep -v '^ *+' conftest.er1 >conftest.err
28006   rm -f conftest.er1
28007   cat conftest.err >&5
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } &&
28010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011   { (case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_try") 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); }; } &&
28020          { ac_try='test -s conftest.$ac_objext'
28021   { (case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026   (eval "$ac_try") 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; }; then
28030   ac_cv_header_stdc=yes
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035         ac_cv_header_stdc=no
28036 fi
28037
28038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039
28040 if test $ac_cv_header_stdc = yes; then
28041   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28042   cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048 #include <string.h>
28049
28050 _ACEOF
28051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28052   $EGREP "memchr" >/dev/null 2>&1; then
28053   :
28054 else
28055   ac_cv_header_stdc=no
28056 fi
28057 rm -f conftest*
28058
28059 fi
28060
28061 if test $ac_cv_header_stdc = yes; then
28062   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28063   cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069 #include <stdlib.h>
28070
28071 _ACEOF
28072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28073   $EGREP "free" >/dev/null 2>&1; then
28074   :
28075 else
28076   ac_cv_header_stdc=no
28077 fi
28078 rm -f conftest*
28079
28080 fi
28081
28082 if test $ac_cv_header_stdc = yes; then
28083   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28084   if test "$cross_compiling" = yes; then
28085   :
28086 else
28087   cat >conftest.$ac_ext <<_ACEOF
28088 /* confdefs.h.  */
28089 _ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h.  */
28093 #include <ctype.h>
28094 #include <stdlib.h>
28095 #if ((' ' & 0x0FF) == 0x020)
28096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28098 #else
28099 # define ISLOWER(c) \
28100                    (('a' <= (c) && (c) <= 'i') \
28101                      || ('j' <= (c) && (c) <= 'r') \
28102                      || ('s' <= (c) && (c) <= 'z'))
28103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28104 #endif
28105
28106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28107 int
28108 main ()
28109 {
28110   int i;
28111   for (i = 0; i < 256; i++)
28112     if (XOR (islower (i), ISLOWER (i))
28113         || toupper (i) != TOUPPER (i))
28114       return 2;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122   *) ac_try_echo=$ac_try;;
28123 esac
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125   (eval "$ac_link") 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129   { (case "(($ac_try" in
28130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131   *) ac_try_echo=$ac_try;;
28132 esac
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134   (eval "$ac_try") 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; }; then
28138   :
28139 else
28140   echo "$as_me: program exited with status $ac_status" >&5
28141 echo "$as_me: failed program was:" >&5
28142 sed 's/^/| /' conftest.$ac_ext >&5
28143
28144 ( exit $ac_status )
28145 ac_cv_header_stdc=no
28146 fi
28147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28148 fi
28149
28150
28151 fi
28152 fi
28153 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28154 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28155 if test $ac_cv_header_stdc = yes; then
28156
28157 cat >>confdefs.h <<\_ACEOF
28158 #define STDC_HEADERS 1
28159 _ACEOF
28160
28161 fi
28162
28163 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168   cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174 #include <sys/types.h>
28175 #include <sys/wait.h>
28176 #ifndef WEXITSTATUS
28177 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28178 #endif
28179 #ifndef WIFEXITED
28180 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28181 #endif
28182
28183 int
28184 main ()
28185 {
28186   int s;
28187   wait (&s);
28188   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28189   ;
28190   return 0;
28191 }
28192 _ACEOF
28193 rm -f conftest.$ac_objext
28194 if { (ac_try="$ac_compile"
28195 case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_compile") 2>conftest.er1
28201   ac_status=$?
28202   grep -v '^ *+' conftest.er1 >conftest.err
28203   rm -f conftest.er1
28204   cat conftest.err >&5
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); } &&
28207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28208   { (case "(($ac_try" in
28209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210   *) ac_try_echo=$ac_try;;
28211 esac
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213   (eval "$ac_try") 2>&5
28214   ac_status=$?
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); }; } &&
28217          { ac_try='test -s conftest.$ac_objext'
28218   { (case "(($ac_try" in
28219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220   *) ac_try_echo=$ac_try;;
28221 esac
28222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223   (eval "$ac_try") 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; }; then
28227   ac_cv_header_sys_wait_h=yes
28228 else
28229   echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28231
28232         ac_cv_header_sys_wait_h=no
28233 fi
28234
28235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28236 fi
28237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28239 if test $ac_cv_header_sys_wait_h = yes; then
28240
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_SYS_WAIT_H 1
28243 _ACEOF
28244
28245 fi
28246
28247 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28249 if test "${ac_cv_header_time+set}" = set; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258 #include <sys/types.h>
28259 #include <sys/time.h>
28260 #include <time.h>
28261
28262 int
28263 main ()
28264 {
28265 if ((struct tm *) 0)
28266 return 0;
28267   ;
28268   return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext
28272 if { (ac_try="$ac_compile"
28273 case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_compile") 2>conftest.er1
28279   ac_status=$?
28280   grep -v '^ *+' conftest.er1 >conftest.err
28281   rm -f conftest.er1
28282   cat conftest.err >&5
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); } &&
28285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28286   { (case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_try") 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); }; } &&
28295          { ac_try='test -s conftest.$ac_objext'
28296   { (case "(($ac_try" in
28297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298   *) ac_try_echo=$ac_try;;
28299 esac
28300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301   (eval "$ac_try") 2>&5
28302   ac_status=$?
28303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304   (exit $ac_status); }; }; then
28305   ac_cv_header_time=yes
28306 else
28307   echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310         ac_cv_header_time=no
28311 fi
28312
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 fi
28315 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28316 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28317 if test $ac_cv_header_time = yes; then
28318
28319 cat >>confdefs.h <<\_ACEOF
28320 #define TIME_WITH_SYS_TIME 1
28321 _ACEOF
28322
28323 fi
28324
28325
28326
28327
28328
28329
28330
28331
28332 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28333 do
28334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339   echo $ECHO_N "(cached) $ECHO_C" >&6
28340 fi
28341 ac_res=`eval echo '${'$as_ac_Header'}'`
28342                { echo "$as_me:$LINENO: result: $ac_res" >&5
28343 echo "${ECHO_T}$ac_res" >&6; }
28344 else
28345   # Is the header compilable?
28346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354 $ac_includes_default
28355 #include <$ac_header>
28356 _ACEOF
28357 rm -f conftest.$ac_objext
28358 if { (ac_try="$ac_compile"
28359 case "(($ac_try" in
28360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361   *) ac_try_echo=$ac_try;;
28362 esac
28363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364   (eval "$ac_compile") 2>conftest.er1
28365   ac_status=$?
28366   grep -v '^ *+' conftest.er1 >conftest.err
28367   rm -f conftest.er1
28368   cat conftest.err >&5
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); } &&
28371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28372   { (case "(($ac_try" in
28373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374   *) ac_try_echo=$ac_try;;
28375 esac
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377   (eval "$ac_try") 2>&5
28378   ac_status=$?
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); }; } &&
28381          { ac_try='test -s conftest.$ac_objext'
28382   { (case "(($ac_try" in
28383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384   *) ac_try_echo=$ac_try;;
28385 esac
28386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387   (eval "$ac_try") 2>&5
28388   ac_status=$?
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); }; }; then
28391   ac_header_compiler=yes
28392 else
28393   echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.$ac_ext >&5
28395
28396         ac_header_compiler=no
28397 fi
28398
28399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28401 echo "${ECHO_T}$ac_header_compiler" >&6; }
28402
28403 # Is the header present?
28404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28406 cat >conftest.$ac_ext <<_ACEOF
28407 /* confdefs.h.  */
28408 _ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h.  */
28412 #include <$ac_header>
28413 _ACEOF
28414 if { (ac_try="$ac_cpp conftest.$ac_ext"
28415 case "(($ac_try" in
28416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417   *) ac_try_echo=$ac_try;;
28418 esac
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28421   ac_status=$?
28422   grep -v '^ *+' conftest.er1 >conftest.err
28423   rm -f conftest.er1
28424   cat conftest.err >&5
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); } >/dev/null; then
28427   if test -s conftest.err; then
28428     ac_cpp_err=$ac_c_preproc_warn_flag
28429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28430   else
28431     ac_cpp_err=
28432   fi
28433 else
28434   ac_cpp_err=yes
28435 fi
28436 if test -z "$ac_cpp_err"; then
28437   ac_header_preproc=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442   ac_header_preproc=no
28443 fi
28444
28445 rm -f conftest.err conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447 echo "${ECHO_T}$ac_header_preproc" >&6; }
28448
28449 # So?  What about this header?
28450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28451   yes:no: )
28452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28456     ac_header_preproc=yes
28457     ;;
28458   no:yes:* )
28459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28471     ( cat <<\_ASBOX
28472 ## ----------------------------------- ##
28473 ## Report this to llvmbugs@cs.uiuc.edu ##
28474 ## ----------------------------------- ##
28475 _ASBOX
28476      ) | sed "s/^/$as_me: WARNING:     /" >&2
28477     ;;
28478 esac
28479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28482   echo $ECHO_N "(cached) $ECHO_C" >&6
28483 else
28484   eval "$as_ac_Header=\$ac_header_preproc"
28485 fi
28486 ac_res=`eval echo '${'$as_ac_Header'}'`
28487                { echo "$as_me:$LINENO: result: $ac_res" >&5
28488 echo "${ECHO_T}$ac_res" >&6; }
28489
28490 fi
28491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28492   cat >>confdefs.h <<_ACEOF
28493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28494 _ACEOF
28495
28496 fi
28497
28498 done
28499
28500
28501
28502
28503
28504
28505
28506 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28507 do
28508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28513   echo $ECHO_N "(cached) $ECHO_C" >&6
28514 fi
28515 ac_res=`eval echo '${'$as_ac_Header'}'`
28516                { echo "$as_me:$LINENO: result: $ac_res" >&5
28517 echo "${ECHO_T}$ac_res" >&6; }
28518 else
28519   # Is the header compilable?
28520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28522 cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528 $ac_includes_default
28529 #include <$ac_header>
28530 _ACEOF
28531 rm -f conftest.$ac_objext
28532 if { (ac_try="$ac_compile"
28533 case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_compile") 2>conftest.er1
28539   ac_status=$?
28540   grep -v '^ *+' conftest.er1 >conftest.err
28541   rm -f conftest.er1
28542   cat conftest.err >&5
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); } &&
28545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28546   { (case "(($ac_try" in
28547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28548   *) ac_try_echo=$ac_try;;
28549 esac
28550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28551   (eval "$ac_try") 2>&5
28552   ac_status=$?
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); }; } &&
28555          { ac_try='test -s conftest.$ac_objext'
28556   { (case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561   (eval "$ac_try") 2>&5
28562   ac_status=$?
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); }; }; then
28565   ac_header_compiler=yes
28566 else
28567   echo "$as_me: failed program was:" >&5
28568 sed 's/^/| /' conftest.$ac_ext >&5
28569
28570         ac_header_compiler=no
28571 fi
28572
28573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28575 echo "${ECHO_T}$ac_header_compiler" >&6; }
28576
28577 # Is the header present?
28578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28580 cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586 #include <$ac_header>
28587 _ACEOF
28588 if { (ac_try="$ac_cpp conftest.$ac_ext"
28589 case "(($ac_try" in
28590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591   *) ac_try_echo=$ac_try;;
28592 esac
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28595   ac_status=$?
28596   grep -v '^ *+' conftest.er1 >conftest.err
28597   rm -f conftest.er1
28598   cat conftest.err >&5
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); } >/dev/null; then
28601   if test -s conftest.err; then
28602     ac_cpp_err=$ac_c_preproc_warn_flag
28603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28604   else
28605     ac_cpp_err=
28606   fi
28607 else
28608   ac_cpp_err=yes
28609 fi
28610 if test -z "$ac_cpp_err"; then
28611   ac_header_preproc=yes
28612 else
28613   echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.$ac_ext >&5
28615
28616   ac_header_preproc=no
28617 fi
28618
28619 rm -f conftest.err conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28621 echo "${ECHO_T}$ac_header_preproc" >&6; }
28622
28623 # So?  What about this header?
28624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28625   yes:no: )
28626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28630     ac_header_preproc=yes
28631     ;;
28632   no:yes:* )
28633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28645     ( cat <<\_ASBOX
28646 ## ----------------------------------- ##
28647 ## Report this to llvmbugs@cs.uiuc.edu ##
28648 ## ----------------------------------- ##
28649 _ASBOX
28650      ) | sed "s/^/$as_me: WARNING:     /" >&2
28651     ;;
28652 esac
28653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28656   echo $ECHO_N "(cached) $ECHO_C" >&6
28657 else
28658   eval "$as_ac_Header=\$ac_header_preproc"
28659 fi
28660 ac_res=`eval echo '${'$as_ac_Header'}'`
28661                { echo "$as_me:$LINENO: result: $ac_res" >&5
28662 echo "${ECHO_T}$ac_res" >&6; }
28663
28664 fi
28665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28666   cat >>confdefs.h <<_ACEOF
28667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28668 _ACEOF
28669
28670 fi
28671
28672 done
28673
28674
28675
28676
28677
28678
28679 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28680 do
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686   echo $ECHO_N "(cached) $ECHO_C" >&6
28687 fi
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689                { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28691 else
28692   # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701 $ac_includes_default
28702 #include <$ac_header>
28703 _ACEOF
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_compile") 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } &&
28718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719   { (case "(($ac_try" in
28720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721   *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724   (eval "$ac_try") 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; } &&
28728          { ac_try='test -s conftest.$ac_objext'
28729   { (case "(($ac_try" in
28730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731   *) ac_try_echo=$ac_try;;
28732 esac
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734   (eval "$ac_try") 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; }; then
28738   ac_header_compiler=yes
28739 else
28740   echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743         ac_header_compiler=no
28744 fi
28745
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28749
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h.  */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h.  */
28759 #include <$ac_header>
28760 _ACEOF
28761 if { (ac_try="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764   *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768   ac_status=$?
28769   grep -v '^ *+' conftest.er1 >conftest.err
28770   rm -f conftest.er1
28771   cat conftest.err >&5
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } >/dev/null; then
28774   if test -s conftest.err; then
28775     ac_cpp_err=$ac_c_preproc_warn_flag
28776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777   else
28778     ac_cpp_err=
28779   fi
28780 else
28781   ac_cpp_err=yes
28782 fi
28783 if test -z "$ac_cpp_err"; then
28784   ac_header_preproc=yes
28785 else
28786   echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789   ac_header_preproc=no
28790 fi
28791
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28795
28796 # So?  What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798   yes:no: )
28799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803     ac_header_preproc=yes
28804     ;;
28805   no:yes:* )
28806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28818     ( cat <<\_ASBOX
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28822 _ASBOX
28823      ) | sed "s/^/$as_me: WARNING:     /" >&2
28824     ;;
28825 esac
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829   echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831   eval "$as_ac_Header=\$ac_header_preproc"
28832 fi
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834                { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28836
28837 fi
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839   cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841 _ACEOF
28842
28843 fi
28844
28845 done
28846
28847
28848
28849
28850 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28851 do
28852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857   echo $ECHO_N "(cached) $ECHO_C" >&6
28858 fi
28859 ac_res=`eval echo '${'$as_ac_Header'}'`
28860                { echo "$as_me:$LINENO: result: $ac_res" >&5
28861 echo "${ECHO_T}$ac_res" >&6; }
28862 else
28863   # Is the header compilable?
28864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28866 cat >conftest.$ac_ext <<_ACEOF
28867 /* confdefs.h.  */
28868 _ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h.  */
28872 $ac_includes_default
28873 #include <$ac_header>
28874 _ACEOF
28875 rm -f conftest.$ac_objext
28876 if { (ac_try="$ac_compile"
28877 case "(($ac_try" in
28878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879   *) ac_try_echo=$ac_try;;
28880 esac
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882   (eval "$ac_compile") 2>conftest.er1
28883   ac_status=$?
28884   grep -v '^ *+' conftest.er1 >conftest.err
28885   rm -f conftest.er1
28886   cat conftest.err >&5
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); } &&
28889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28890   { (case "(($ac_try" in
28891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892   *) ac_try_echo=$ac_try;;
28893 esac
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895   (eval "$ac_try") 2>&5
28896   ac_status=$?
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); }; } &&
28899          { ac_try='test -s conftest.$ac_objext'
28900   { (case "(($ac_try" in
28901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902   *) ac_try_echo=$ac_try;;
28903 esac
28904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905   (eval "$ac_try") 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; }; then
28909   ac_header_compiler=yes
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914         ac_header_compiler=no
28915 fi
28916
28917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28919 echo "${ECHO_T}$ac_header_compiler" >&6; }
28920
28921 # Is the header present?
28922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28924 cat >conftest.$ac_ext <<_ACEOF
28925 /* confdefs.h.  */
28926 _ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h.  */
28930 #include <$ac_header>
28931 _ACEOF
28932 if { (ac_try="$ac_cpp conftest.$ac_ext"
28933 case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } >/dev/null; then
28945   if test -s conftest.err; then
28946     ac_cpp_err=$ac_c_preproc_warn_flag
28947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28948   else
28949     ac_cpp_err=
28950   fi
28951 else
28952   ac_cpp_err=yes
28953 fi
28954 if test -z "$ac_cpp_err"; then
28955   ac_header_preproc=yes
28956 else
28957   echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28959
28960   ac_header_preproc=no
28961 fi
28962
28963 rm -f conftest.err conftest.$ac_ext
28964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28965 echo "${ECHO_T}$ac_header_preproc" >&6; }
28966
28967 # So?  What about this header?
28968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28969   yes:no: )
28970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28974     ac_header_preproc=yes
28975     ;;
28976   no:yes:* )
28977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28989     ( cat <<\_ASBOX
28990 ## ----------------------------------- ##
28991 ## Report this to llvmbugs@cs.uiuc.edu ##
28992 ## ----------------------------------- ##
28993 _ASBOX
28994      ) | sed "s/^/$as_me: WARNING:     /" >&2
28995     ;;
28996 esac
28997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29000   echo $ECHO_N "(cached) $ECHO_C" >&6
29001 else
29002   eval "$as_ac_Header=\$ac_header_preproc"
29003 fi
29004 ac_res=`eval echo '${'$as_ac_Header'}'`
29005                { echo "$as_me:$LINENO: result: $ac_res" >&5
29006 echo "${ECHO_T}$ac_res" >&6; }
29007
29008 fi
29009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29010   cat >>confdefs.h <<_ACEOF
29011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29012 _ACEOF
29013
29014 fi
29015
29016 done
29017
29018 if test "$ENABLE_THREADS" -eq 1 ; then
29019
29020 for ac_header in pthread.h
29021 do
29022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027   echo $ECHO_N "(cached) $ECHO_C" >&6
29028 fi
29029 ac_res=`eval echo '${'$as_ac_Header'}'`
29030                { echo "$as_me:$LINENO: result: $ac_res" >&5
29031 echo "${ECHO_T}$ac_res" >&6; }
29032 else
29033   # Is the header compilable?
29034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29036 cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042 $ac_includes_default
29043 #include <$ac_header>
29044 _ACEOF
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_compile") 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } &&
29059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29060   { (case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_try") 2>&5
29066   ac_status=$?
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); }; } &&
29069          { ac_try='test -s conftest.$ac_objext'
29070   { (case "(($ac_try" in
29071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072   *) ac_try_echo=$ac_try;;
29073 esac
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075   (eval "$ac_try") 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; }; then
29079   ac_header_compiler=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084         ac_header_compiler=no
29085 fi
29086
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29089 echo "${ECHO_T}$ac_header_compiler" >&6; }
29090
29091 # Is the header present?
29092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29094 cat >conftest.$ac_ext <<_ACEOF
29095 /* confdefs.h.  */
29096 _ACEOF
29097 cat confdefs.h >>conftest.$ac_ext
29098 cat >>conftest.$ac_ext <<_ACEOF
29099 /* end confdefs.h.  */
29100 #include <$ac_header>
29101 _ACEOF
29102 if { (ac_try="$ac_cpp conftest.$ac_ext"
29103 case "(($ac_try" in
29104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29105   *) ac_try_echo=$ac_try;;
29106 esac
29107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29109   ac_status=$?
29110   grep -v '^ *+' conftest.er1 >conftest.err
29111   rm -f conftest.er1
29112   cat conftest.err >&5
29113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114   (exit $ac_status); } >/dev/null; then
29115   if test -s conftest.err; then
29116     ac_cpp_err=$ac_c_preproc_warn_flag
29117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29118   else
29119     ac_cpp_err=
29120   fi
29121 else
29122   ac_cpp_err=yes
29123 fi
29124 if test -z "$ac_cpp_err"; then
29125   ac_header_preproc=yes
29126 else
29127   echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130   ac_header_preproc=no
29131 fi
29132
29133 rm -f conftest.err conftest.$ac_ext
29134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29135 echo "${ECHO_T}$ac_header_preproc" >&6; }
29136
29137 # So?  What about this header?
29138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29139   yes:no: )
29140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29144     ac_header_preproc=yes
29145     ;;
29146   no:yes:* )
29147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29159     ( cat <<\_ASBOX
29160 ## ----------------------------------- ##
29161 ## Report this to llvmbugs@cs.uiuc.edu ##
29162 ## ----------------------------------- ##
29163 _ASBOX
29164      ) | sed "s/^/$as_me: WARNING:     /" >&2
29165     ;;
29166 esac
29167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29170   echo $ECHO_N "(cached) $ECHO_C" >&6
29171 else
29172   eval "$as_ac_Header=\$ac_header_preproc"
29173 fi
29174 ac_res=`eval echo '${'$as_ac_Header'}'`
29175                { echo "$as_me:$LINENO: result: $ac_res" >&5
29176 echo "${ECHO_T}$ac_res" >&6; }
29177
29178 fi
29179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29180   cat >>confdefs.h <<_ACEOF
29181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29182 _ACEOF
29183
29184 fi
29185
29186 done
29187
29188 fi
29189
29190
29191
29192   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29193 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29194 if test "${ac_cv_huge_val_sanity+set}" = set; then
29195   echo $ECHO_N "(cached) $ECHO_C" >&6
29196 else
29197
29198     ac_ext=cpp
29199 ac_cpp='$CXXCPP $CPPFLAGS'
29200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29203
29204     CXXFLAGS=-pedantic
29205     if test "$cross_compiling" = yes; then
29206   ac_cv_huge_val_sanity=yes
29207 else
29208   cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214 #include <math.h>
29215 int
29216 main ()
29217 {
29218 double x = HUGE_VAL; return x != x;
29219   ;
29220   return 0;
29221 }
29222 _ACEOF
29223 rm -f conftest$ac_exeext
29224 if { (ac_try="$ac_link"
29225 case "(($ac_try" in
29226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227   *) ac_try_echo=$ac_try;;
29228 esac
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230   (eval "$ac_link") 2>&5
29231   ac_status=$?
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29234   { (case "(($ac_try" in
29235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236   *) ac_try_echo=$ac_try;;
29237 esac
29238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239   (eval "$ac_try") 2>&5
29240   ac_status=$?
29241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242   (exit $ac_status); }; }; then
29243   ac_cv_huge_val_sanity=yes
29244 else
29245   echo "$as_me: program exited with status $ac_status" >&5
29246 echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29248
29249 ( exit $ac_status )
29250 ac_cv_huge_val_sanity=no
29251 fi
29252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29253 fi
29254
29255
29256     ac_ext=c
29257 ac_cpp='$CPP $CPPFLAGS'
29258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261
29262
29263 fi
29264 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29265 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29266   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29267
29268
29269 { echo "$as_me:$LINENO: checking for pid_t" >&5
29270 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29271 if test "${ac_cv_type_pid_t+set}" = set; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   cat >conftest.$ac_ext <<_ACEOF
29275 /* confdefs.h.  */
29276 _ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h.  */
29280 $ac_includes_default
29281 typedef pid_t ac__type_new_;
29282 int
29283 main ()
29284 {
29285 if ((ac__type_new_ *) 0)
29286   return 0;
29287 if (sizeof (ac__type_new_))
29288   return 0;
29289   ;
29290   return 0;
29291 }
29292 _ACEOF
29293 rm -f conftest.$ac_objext
29294 if { (ac_try="$ac_compile"
29295 case "(($ac_try" in
29296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29297   *) ac_try_echo=$ac_try;;
29298 esac
29299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29300   (eval "$ac_compile") 2>conftest.er1
29301   ac_status=$?
29302   grep -v '^ *+' conftest.er1 >conftest.err
29303   rm -f conftest.er1
29304   cat conftest.err >&5
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); } &&
29307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29308   { (case "(($ac_try" in
29309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310   *) ac_try_echo=$ac_try;;
29311 esac
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313   (eval "$ac_try") 2>&5
29314   ac_status=$?
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); }; } &&
29317          { ac_try='test -s conftest.$ac_objext'
29318   { (case "(($ac_try" in
29319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320   *) ac_try_echo=$ac_try;;
29321 esac
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323   (eval "$ac_try") 2>&5
29324   ac_status=$?
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); }; }; then
29327   ac_cv_type_pid_t=yes
29328 else
29329   echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29331
29332         ac_cv_type_pid_t=no
29333 fi
29334
29335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29336 fi
29337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29339 if test $ac_cv_type_pid_t = yes; then
29340   :
29341 else
29342
29343 cat >>confdefs.h <<_ACEOF
29344 #define pid_t int
29345 _ACEOF
29346
29347 fi
29348
29349 { echo "$as_me:$LINENO: checking for size_t" >&5
29350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29351 if test "${ac_cv_type_size_t+set}" = set; then
29352   echo $ECHO_N "(cached) $ECHO_C" >&6
29353 else
29354   cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360 $ac_includes_default
29361 typedef size_t ac__type_new_;
29362 int
29363 main ()
29364 {
29365 if ((ac__type_new_ *) 0)
29366   return 0;
29367 if (sizeof (ac__type_new_))
29368   return 0;
29369   ;
29370   return 0;
29371 }
29372 _ACEOF
29373 rm -f conftest.$ac_objext
29374 if { (ac_try="$ac_compile"
29375 case "(($ac_try" in
29376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377   *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380   (eval "$ac_compile") 2>conftest.er1
29381   ac_status=$?
29382   grep -v '^ *+' conftest.er1 >conftest.err
29383   rm -f conftest.er1
29384   cat conftest.err >&5
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); } &&
29387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29388   { (case "(($ac_try" in
29389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390   *) ac_try_echo=$ac_try;;
29391 esac
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393   (eval "$ac_try") 2>&5
29394   ac_status=$?
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); }; } &&
29397          { ac_try='test -s conftest.$ac_objext'
29398   { (case "(($ac_try" in
29399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400   *) ac_try_echo=$ac_try;;
29401 esac
29402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403   (eval "$ac_try") 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; }; then
29407   ac_cv_type_size_t=yes
29408 else
29409   echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29411
29412         ac_cv_type_size_t=no
29413 fi
29414
29415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29416 fi
29417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29419 if test $ac_cv_type_size_t = yes; then
29420   :
29421 else
29422
29423 cat >>confdefs.h <<_ACEOF
29424 #define size_t unsigned int
29425 _ACEOF
29426
29427 fi
29428
29429 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29430 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29431 if test "${ac_cv_type_signal+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434   cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440 #include <sys/types.h>
29441 #include <signal.h>
29442
29443 int
29444 main ()
29445 {
29446 return *(signal (0, 0)) (0) == 1;
29447   ;
29448   return 0;
29449 }
29450 _ACEOF
29451 rm -f conftest.$ac_objext
29452 if { (ac_try="$ac_compile"
29453 case "(($ac_try" in
29454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455   *) ac_try_echo=$ac_try;;
29456 esac
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458   (eval "$ac_compile") 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } &&
29465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29466   { (case "(($ac_try" in
29467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29468   *) ac_try_echo=$ac_try;;
29469 esac
29470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29471   (eval "$ac_try") 2>&5
29472   ac_status=$?
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); }; } &&
29475          { ac_try='test -s conftest.$ac_objext'
29476   { (case "(($ac_try" in
29477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478   *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481   (eval "$ac_try") 2>&5
29482   ac_status=$?
29483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484   (exit $ac_status); }; }; then
29485   ac_cv_type_signal=int
29486 else
29487   echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29489
29490         ac_cv_type_signal=void
29491 fi
29492
29493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29494 fi
29495 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29496 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29497
29498 cat >>confdefs.h <<_ACEOF
29499 #define RETSIGTYPE $ac_cv_type_signal
29500 _ACEOF
29501
29502
29503 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29504 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29505 if test "${ac_cv_struct_tm+set}" = set; then
29506   echo $ECHO_N "(cached) $ECHO_C" >&6
29507 else
29508   cat >conftest.$ac_ext <<_ACEOF
29509 /* confdefs.h.  */
29510 _ACEOF
29511 cat confdefs.h >>conftest.$ac_ext
29512 cat >>conftest.$ac_ext <<_ACEOF
29513 /* end confdefs.h.  */
29514 #include <sys/types.h>
29515 #include <time.h>
29516
29517 int
29518 main ()
29519 {
29520 struct tm *tp; tp->tm_sec;
29521   ;
29522   return 0;
29523 }
29524 _ACEOF
29525 rm -f conftest.$ac_objext
29526 if { (ac_try="$ac_compile"
29527 case "(($ac_try" in
29528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529   *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532   (eval "$ac_compile") 2>conftest.er1
29533   ac_status=$?
29534   grep -v '^ *+' conftest.er1 >conftest.err
29535   rm -f conftest.er1
29536   cat conftest.err >&5
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); } &&
29539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29540   { (case "(($ac_try" in
29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542   *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545   (eval "$ac_try") 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; } &&
29549          { ac_try='test -s conftest.$ac_objext'
29550   { (case "(($ac_try" in
29551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552   *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555   (eval "$ac_try") 2>&5
29556   ac_status=$?
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); }; }; then
29559   ac_cv_struct_tm=time.h
29560 else
29561   echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564         ac_cv_struct_tm=sys/time.h
29565 fi
29566
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568 fi
29569 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29570 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29571 if test $ac_cv_struct_tm = sys/time.h; then
29572
29573 cat >>confdefs.h <<\_ACEOF
29574 #define TM_IN_SYS_TIME 1
29575 _ACEOF
29576
29577 fi
29578
29579 { echo "$as_me:$LINENO: checking for int64_t" >&5
29580 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29581 if test "${ac_cv_type_int64_t+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584   cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 $ac_includes_default
29591 typedef int64_t ac__type_new_;
29592 int
29593 main ()
29594 {
29595 if ((ac__type_new_ *) 0)
29596   return 0;
29597 if (sizeof (ac__type_new_))
29598   return 0;
29599   ;
29600   return 0;
29601 }
29602 _ACEOF
29603 rm -f conftest.$ac_objext
29604 if { (ac_try="$ac_compile"
29605 case "(($ac_try" in
29606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29607   *) ac_try_echo=$ac_try;;
29608 esac
29609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29610   (eval "$ac_compile") 2>conftest.er1
29611   ac_status=$?
29612   grep -v '^ *+' conftest.er1 >conftest.err
29613   rm -f conftest.er1
29614   cat conftest.err >&5
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } &&
29617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29618   { (case "(($ac_try" in
29619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620   *) ac_try_echo=$ac_try;;
29621 esac
29622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623   (eval "$ac_try") 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; } &&
29627          { ac_try='test -s conftest.$ac_objext'
29628   { (case "(($ac_try" in
29629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630   *) ac_try_echo=$ac_try;;
29631 esac
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633   (eval "$ac_try") 2>&5
29634   ac_status=$?
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); }; }; then
29637   ac_cv_type_int64_t=yes
29638 else
29639   echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29641
29642         ac_cv_type_int64_t=no
29643 fi
29644
29645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29646 fi
29647 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29648 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29649 if test $ac_cv_type_int64_t = yes; then
29650
29651 cat >>confdefs.h <<_ACEOF
29652 #define HAVE_INT64_T 1
29653 _ACEOF
29654
29655
29656 else
29657   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29658 echo "$as_me: error: Type int64_t required but not found" >&2;}
29659    { (exit 1); exit 1; }; }
29660 fi
29661
29662 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29663 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29664 if test "${ac_cv_type_uint64_t+set}" = set; then
29665   echo $ECHO_N "(cached) $ECHO_C" >&6
29666 else
29667   cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 $ac_includes_default
29674 typedef uint64_t ac__type_new_;
29675 int
29676 main ()
29677 {
29678 if ((ac__type_new_ *) 0)
29679   return 0;
29680 if (sizeof (ac__type_new_))
29681   return 0;
29682   ;
29683   return 0;
29684 }
29685 _ACEOF
29686 rm -f conftest.$ac_objext
29687 if { (ac_try="$ac_compile"
29688 case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693   (eval "$ac_compile") 2>conftest.er1
29694   ac_status=$?
29695   grep -v '^ *+' conftest.er1 >conftest.err
29696   rm -f conftest.er1
29697   cat conftest.err >&5
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); } &&
29700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29701   { (case "(($ac_try" in
29702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703   *) ac_try_echo=$ac_try;;
29704 esac
29705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706   (eval "$ac_try") 2>&5
29707   ac_status=$?
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); }; } &&
29710          { ac_try='test -s conftest.$ac_objext'
29711   { (case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716   (eval "$ac_try") 2>&5
29717   ac_status=$?
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; }; then
29720   ac_cv_type_uint64_t=yes
29721 else
29722   echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29724
29725         ac_cv_type_uint64_t=no
29726 fi
29727
29728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29729 fi
29730 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29731 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29732 if test $ac_cv_type_uint64_t = yes; then
29733
29734 cat >>confdefs.h <<_ACEOF
29735 #define HAVE_UINT64_T 1
29736 _ACEOF
29737
29738
29739 else
29740   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29741 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29742 if test "${ac_cv_type_u_int64_t+set}" = set; then
29743   echo $ECHO_N "(cached) $ECHO_C" >&6
29744 else
29745   cat >conftest.$ac_ext <<_ACEOF
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751 $ac_includes_default
29752 typedef u_int64_t ac__type_new_;
29753 int
29754 main ()
29755 {
29756 if ((ac__type_new_ *) 0)
29757   return 0;
29758 if (sizeof (ac__type_new_))
29759   return 0;
29760   ;
29761   return 0;
29762 }
29763 _ACEOF
29764 rm -f conftest.$ac_objext
29765 if { (ac_try="$ac_compile"
29766 case "(($ac_try" in
29767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768   *) ac_try_echo=$ac_try;;
29769 esac
29770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771   (eval "$ac_compile") 2>conftest.er1
29772   ac_status=$?
29773   grep -v '^ *+' conftest.er1 >conftest.err
29774   rm -f conftest.er1
29775   cat conftest.err >&5
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); } &&
29778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29779   { (case "(($ac_try" in
29780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781   *) ac_try_echo=$ac_try;;
29782 esac
29783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784   (eval "$ac_try") 2>&5
29785   ac_status=$?
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); }; } &&
29788          { ac_try='test -s conftest.$ac_objext'
29789   { (case "(($ac_try" in
29790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791   *) ac_try_echo=$ac_try;;
29792 esac
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794   (eval "$ac_try") 2>&5
29795   ac_status=$?
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); }; }; then
29798   ac_cv_type_u_int64_t=yes
29799 else
29800   echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29802
29803         ac_cv_type_u_int64_t=no
29804 fi
29805
29806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29807 fi
29808 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29809 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29810 if test $ac_cv_type_u_int64_t = yes; then
29811
29812 cat >>confdefs.h <<_ACEOF
29813 #define HAVE_U_INT64_T 1
29814 _ACEOF
29815
29816
29817 else
29818   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29819 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29820    { (exit 1); exit 1; }; }
29821 fi
29822
29823 fi
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29835 do
29836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29840   echo $ECHO_N "(cached) $ECHO_C" >&6
29841 else
29842   cat >conftest.$ac_ext <<_ACEOF
29843 /* confdefs.h.  */
29844 _ACEOF
29845 cat confdefs.h >>conftest.$ac_ext
29846 cat >>conftest.$ac_ext <<_ACEOF
29847 /* end confdefs.h.  */
29848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29850 #define $ac_func innocuous_$ac_func
29851
29852 /* System header to define __stub macros and hopefully few prototypes,
29853     which can conflict with char $ac_func (); below.
29854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29855     <limits.h> exists even on freestanding compilers.  */
29856
29857 #ifdef __STDC__
29858 # include <limits.h>
29859 #else
29860 # include <assert.h>
29861 #endif
29862
29863 #undef $ac_func
29864
29865 /* Override any GCC internal prototype to avoid an error.
29866    Use char because int might match the return type of a GCC
29867    builtin and then its argument prototype would still apply.  */
29868 #ifdef __cplusplus
29869 extern "C"
29870 #endif
29871 char $ac_func ();
29872 /* The GNU C library defines this for functions which it implements
29873     to always fail with ENOSYS.  Some functions are actually named
29874     something starting with __ and the normal name is an alias.  */
29875 #if defined __stub_$ac_func || defined __stub___$ac_func
29876 choke me
29877 #endif
29878
29879 int
29880 main ()
29881 {
29882 return $ac_func ();
29883   ;
29884   return 0;
29885 }
29886 _ACEOF
29887 rm -f conftest.$ac_objext conftest$ac_exeext
29888 if { (ac_try="$ac_link"
29889 case "(($ac_try" in
29890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891   *) ac_try_echo=$ac_try;;
29892 esac
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894   (eval "$ac_link") 2>conftest.er1
29895   ac_status=$?
29896   grep -v '^ *+' conftest.er1 >conftest.err
29897   rm -f conftest.er1
29898   cat conftest.err >&5
29899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); } &&
29901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29902   { (case "(($ac_try" in
29903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904   *) ac_try_echo=$ac_try;;
29905 esac
29906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907   (eval "$ac_try") 2>&5
29908   ac_status=$?
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); }; } &&
29911          { ac_try='test -s conftest$ac_exeext'
29912   { (case "(($ac_try" in
29913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914   *) ac_try_echo=$ac_try;;
29915 esac
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917   (eval "$ac_try") 2>&5
29918   ac_status=$?
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); }; }; then
29921   eval "$as_ac_var=yes"
29922 else
29923   echo "$as_me: failed program was:" >&5
29924 sed 's/^/| /' conftest.$ac_ext >&5
29925
29926         eval "$as_ac_var=no"
29927 fi
29928
29929 rm -f core conftest.err conftest.$ac_objext \
29930       conftest$ac_exeext conftest.$ac_ext
29931 fi
29932 ac_res=`eval echo '${'$as_ac_var'}'`
29933                { echo "$as_me:$LINENO: result: $ac_res" >&5
29934 echo "${ECHO_T}$ac_res" >&6; }
29935 if test `eval echo '${'$as_ac_var'}'` = yes; then
29936   cat >>confdefs.h <<_ACEOF
29937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29938 _ACEOF
29939
29940 fi
29941 done
29942
29943
29944
29945
29946
29947
29948
29949 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29950 do
29951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   cat >conftest.$ac_ext <<_ACEOF
29958 /* confdefs.h.  */
29959 _ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h.  */
29963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29965 #define $ac_func innocuous_$ac_func
29966
29967 /* System header to define __stub macros and hopefully few prototypes,
29968     which can conflict with char $ac_func (); below.
29969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29970     <limits.h> exists even on freestanding compilers.  */
29971
29972 #ifdef __STDC__
29973 # include <limits.h>
29974 #else
29975 # include <assert.h>
29976 #endif
29977
29978 #undef $ac_func
29979
29980 /* Override any GCC internal prototype to avoid an error.
29981    Use char because int might match the return type of a GCC
29982    builtin and then its argument prototype would still apply.  */
29983 #ifdef __cplusplus
29984 extern "C"
29985 #endif
29986 char $ac_func ();
29987 /* The GNU C library defines this for functions which it implements
29988     to always fail with ENOSYS.  Some functions are actually named
29989     something starting with __ and the normal name is an alias.  */
29990 #if defined __stub_$ac_func || defined __stub___$ac_func
29991 choke me
29992 #endif
29993
29994 int
29995 main ()
29996 {
29997 return $ac_func ();
29998   ;
29999   return 0;
30000 }
30001 _ACEOF
30002 rm -f conftest.$ac_objext conftest$ac_exeext
30003 if { (ac_try="$ac_link"
30004 case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009   (eval "$ac_link") 2>conftest.er1
30010   ac_status=$?
30011   grep -v '^ *+' conftest.er1 >conftest.err
30012   rm -f conftest.er1
30013   cat conftest.err >&5
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); } &&
30016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30017   { (case "(($ac_try" in
30018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30019   *) ac_try_echo=$ac_try;;
30020 esac
30021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30022   (eval "$ac_try") 2>&5
30023   ac_status=$?
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); }; } &&
30026          { ac_try='test -s conftest$ac_exeext'
30027   { (case "(($ac_try" in
30028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029   *) ac_try_echo=$ac_try;;
30030 esac
30031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032   (eval "$ac_try") 2>&5
30033   ac_status=$?
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); }; }; then
30036   eval "$as_ac_var=yes"
30037 else
30038   echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30040
30041         eval "$as_ac_var=no"
30042 fi
30043
30044 rm -f core conftest.err conftest.$ac_objext \
30045       conftest$ac_exeext conftest.$ac_ext
30046 fi
30047 ac_res=`eval echo '${'$as_ac_var'}'`
30048                { echo "$as_me:$LINENO: result: $ac_res" >&5
30049 echo "${ECHO_T}$ac_res" >&6; }
30050 if test `eval echo '${'$as_ac_var'}'` = yes; then
30051   cat >>confdefs.h <<_ACEOF
30052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30053 _ACEOF
30054
30055 fi
30056 done
30057
30058
30059
30060
30061
30062
30063
30064
30065 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30066 do
30067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30081 #define $ac_func innocuous_$ac_func
30082
30083 /* System header to define __stub macros and hopefully few prototypes,
30084     which can conflict with char $ac_func (); below.
30085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086     <limits.h> exists even on freestanding compilers.  */
30087
30088 #ifdef __STDC__
30089 # include <limits.h>
30090 #else
30091 # include <assert.h>
30092 #endif
30093
30094 #undef $ac_func
30095
30096 /* Override any GCC internal prototype to avoid an error.
30097    Use char because int might match the return type of a GCC
30098    builtin and then its argument prototype would still apply.  */
30099 #ifdef __cplusplus
30100 extern "C"
30101 #endif
30102 char $ac_func ();
30103 /* The GNU C library defines this for functions which it implements
30104     to always fail with ENOSYS.  Some functions are actually named
30105     something starting with __ and the normal name is an alias.  */
30106 #if defined __stub_$ac_func || defined __stub___$ac_func
30107 choke me
30108 #endif
30109
30110 int
30111 main ()
30112 {
30113 return $ac_func ();
30114   ;
30115   return 0;
30116 }
30117 _ACEOF
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122   *) ac_try_echo=$ac_try;;
30123 esac
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125   (eval "$ac_link") 2>conftest.er1
30126   ac_status=$?
30127   grep -v '^ *+' conftest.er1 >conftest.err
30128   rm -f conftest.er1
30129   cat conftest.err >&5
30130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131   (exit $ac_status); } &&
30132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30133   { (case "(($ac_try" in
30134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135   *) ac_try_echo=$ac_try;;
30136 esac
30137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138   (eval "$ac_try") 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; } &&
30142          { ac_try='test -s conftest$ac_exeext'
30143   { (case "(($ac_try" in
30144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145   *) ac_try_echo=$ac_try;;
30146 esac
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148   (eval "$ac_try") 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; }; then
30152   eval "$as_ac_var=yes"
30153 else
30154   echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30156
30157         eval "$as_ac_var=no"
30158 fi
30159
30160 rm -f core conftest.err conftest.$ac_objext \
30161       conftest$ac_exeext conftest.$ac_ext
30162 fi
30163 ac_res=`eval echo '${'$as_ac_var'}'`
30164                { echo "$as_me:$LINENO: result: $ac_res" >&5
30165 echo "${ECHO_T}$ac_res" >&6; }
30166 if test `eval echo '${'$as_ac_var'}'` = yes; then
30167   cat >>confdefs.h <<_ACEOF
30168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169 _ACEOF
30170
30171 fi
30172 done
30173
30174
30175
30176
30177
30178 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30179 do
30180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30184   echo $ECHO_N "(cached) $ECHO_C" >&6
30185 else
30186   cat >conftest.$ac_ext <<_ACEOF
30187 /* confdefs.h.  */
30188 _ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h.  */
30192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30194 #define $ac_func innocuous_$ac_func
30195
30196 /* System header to define __stub macros and hopefully few prototypes,
30197     which can conflict with char $ac_func (); below.
30198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199     <limits.h> exists even on freestanding compilers.  */
30200
30201 #ifdef __STDC__
30202 # include <limits.h>
30203 #else
30204 # include <assert.h>
30205 #endif
30206
30207 #undef $ac_func
30208
30209 /* Override any GCC internal prototype to avoid an error.
30210    Use char because int might match the return type of a GCC
30211    builtin and then its argument prototype would still apply.  */
30212 #ifdef __cplusplus
30213 extern "C"
30214 #endif
30215 char $ac_func ();
30216 /* The GNU C library defines this for functions which it implements
30217     to always fail with ENOSYS.  Some functions are actually named
30218     something starting with __ and the normal name is an alias.  */
30219 #if defined __stub_$ac_func || defined __stub___$ac_func
30220 choke me
30221 #endif
30222
30223 int
30224 main ()
30225 {
30226 return $ac_func ();
30227   ;
30228   return 0;
30229 }
30230 _ACEOF
30231 rm -f conftest.$ac_objext conftest$ac_exeext
30232 if { (ac_try="$ac_link"
30233 case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_link") 2>conftest.er1
30239   ac_status=$?
30240   grep -v '^ *+' conftest.er1 >conftest.err
30241   rm -f conftest.er1
30242   cat conftest.err >&5
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); } &&
30245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30246   { (case "(($ac_try" in
30247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248   *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251   (eval "$ac_try") 2>&5
30252   ac_status=$?
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); }; } &&
30255          { ac_try='test -s conftest$ac_exeext'
30256   { (case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_try") 2>&5
30262   ac_status=$?
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); }; }; then
30265   eval "$as_ac_var=yes"
30266 else
30267   echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270         eval "$as_ac_var=no"
30271 fi
30272
30273 rm -f core conftest.err conftest.$ac_objext \
30274       conftest$ac_exeext conftest.$ac_ext
30275 fi
30276 ac_res=`eval echo '${'$as_ac_var'}'`
30277                { echo "$as_me:$LINENO: result: $ac_res" >&5
30278 echo "${ECHO_T}$ac_res" >&6; }
30279 if test `eval echo '${'$as_ac_var'}'` = yes; then
30280   cat >>confdefs.h <<_ACEOF
30281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30282 _ACEOF
30283
30284 fi
30285 done
30286
30287
30288
30289
30290
30291
30292
30293 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30294 do
30295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30299   echo $ECHO_N "(cached) $ECHO_C" >&6
30300 else
30301   cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h.  */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h.  */
30307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30309 #define $ac_func innocuous_$ac_func
30310
30311 /* System header to define __stub macros and hopefully few prototypes,
30312     which can conflict with char $ac_func (); below.
30313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30314     <limits.h> exists even on freestanding compilers.  */
30315
30316 #ifdef __STDC__
30317 # include <limits.h>
30318 #else
30319 # include <assert.h>
30320 #endif
30321
30322 #undef $ac_func
30323
30324 /* Override any GCC internal prototype to avoid an error.
30325    Use char because int might match the return type of a GCC
30326    builtin and then its argument prototype would still apply.  */
30327 #ifdef __cplusplus
30328 extern "C"
30329 #endif
30330 char $ac_func ();
30331 /* The GNU C library defines this for functions which it implements
30332     to always fail with ENOSYS.  Some functions are actually named
30333     something starting with __ and the normal name is an alias.  */
30334 #if defined __stub_$ac_func || defined __stub___$ac_func
30335 choke me
30336 #endif
30337
30338 int
30339 main ()
30340 {
30341 return $ac_func ();
30342   ;
30343   return 0;
30344 }
30345 _ACEOF
30346 rm -f conftest.$ac_objext conftest$ac_exeext
30347 if { (ac_try="$ac_link"
30348 case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_link") 2>conftest.er1
30354   ac_status=$?
30355   grep -v '^ *+' conftest.er1 >conftest.err
30356   rm -f conftest.er1
30357   cat conftest.err >&5
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); } &&
30360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30361   { (case "(($ac_try" in
30362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363   *) ac_try_echo=$ac_try;;
30364 esac
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366   (eval "$ac_try") 2>&5
30367   ac_status=$?
30368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369   (exit $ac_status); }; } &&
30370          { ac_try='test -s conftest$ac_exeext'
30371   { (case "(($ac_try" in
30372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373   *) ac_try_echo=$ac_try;;
30374 esac
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376   (eval "$ac_try") 2>&5
30377   ac_status=$?
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); }; }; then
30380   eval "$as_ac_var=yes"
30381 else
30382   echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30384
30385         eval "$as_ac_var=no"
30386 fi
30387
30388 rm -f core conftest.err conftest.$ac_objext \
30389       conftest$ac_exeext conftest.$ac_ext
30390 fi
30391 ac_res=`eval echo '${'$as_ac_var'}'`
30392                { echo "$as_me:$LINENO: result: $ac_res" >&5
30393 echo "${ECHO_T}$ac_res" >&6; }
30394 if test `eval echo '${'$as_ac_var'}'` = yes; then
30395   cat >>confdefs.h <<_ACEOF
30396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30397 _ACEOF
30398
30399 fi
30400 done
30401
30402 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30403 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30404 if test "${llvm_cv_c_printf_a+set}" = set; then
30405   echo $ECHO_N "(cached) $ECHO_C" >&6
30406 else
30407   ac_ext=c
30408 ac_cpp='$CPP $CPPFLAGS'
30409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30412
30413  if test "$cross_compiling" = yes; then
30414   llvmac_cv_c_printf_a=no
30415 else
30416   cat >conftest.$ac_ext <<_ACEOF
30417
30418   /* confdefs.h.  */
30419 _ACEOF
30420 cat confdefs.h >>conftest.$ac_ext
30421 cat >>conftest.$ac_ext <<_ACEOF
30422 /* end confdefs.h.  */
30423
30424 #include <stdio.h>
30425 #include <stdlib.h>
30426
30427 int
30428 main ()
30429 {
30430
30431 volatile double A, B;
30432 char Buffer[100];
30433 A = 1;
30434 A /= 10.0;
30435 sprintf(Buffer, "%a", A);
30436 B = atof(Buffer);
30437 if (A != B)
30438   return (1);
30439 if (A != 0x1.999999999999ap-4)
30440   return (1);
30441 return (0);
30442   ;
30443   return 0;
30444 }
30445 _ACEOF
30446 rm -f conftest$ac_exeext
30447 if { (ac_try="$ac_link"
30448 case "(($ac_try" in
30449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450   *) ac_try_echo=$ac_try;;
30451 esac
30452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453   (eval "$ac_link") 2>&5
30454   ac_status=$?
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30457   { (case "(($ac_try" in
30458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459   *) ac_try_echo=$ac_try;;
30460 esac
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462   (eval "$ac_try") 2>&5
30463   ac_status=$?
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); }; }; then
30466   llvm_cv_c_printf_a=yes
30467 else
30468   echo "$as_me: program exited with status $ac_status" >&5
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472 ( exit $ac_status )
30473 llvmac_cv_c_printf_a=no
30474 fi
30475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30476 fi
30477
30478
30479  ac_ext=c
30480 ac_cpp='$CPP $CPPFLAGS'
30481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30484
30485 fi
30486 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30487 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30488  if test "$llvm_cv_c_printf_a" = "yes"; then
30489
30490 cat >>confdefs.h <<\_ACEOF
30491 #define HAVE_PRINTF_A 1
30492 _ACEOF
30493
30494  fi
30495
30496 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30497 # for constant arguments.  Useless!
30498 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30499 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30500 if test "${ac_cv_working_alloca_h+set}" = set; then
30501   echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503   cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509 #include <alloca.h>
30510 int
30511 main ()
30512 {
30513 char *p = (char *) alloca (2 * sizeof (int));
30514                           if (p) return 0;
30515   ;
30516   return 0;
30517 }
30518 _ACEOF
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (ac_try="$ac_link"
30521 case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_link") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } &&
30533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534   { (case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_try") 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; } &&
30543          { ac_try='test -s conftest$ac_exeext'
30544   { (case "(($ac_try" in
30545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546   *) ac_try_echo=$ac_try;;
30547 esac
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549   (eval "$ac_try") 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; }; then
30553   ac_cv_working_alloca_h=yes
30554 else
30555   echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30557
30558         ac_cv_working_alloca_h=no
30559 fi
30560
30561 rm -f core conftest.err conftest.$ac_objext \
30562       conftest$ac_exeext conftest.$ac_ext
30563 fi
30564 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30565 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30566 if test $ac_cv_working_alloca_h = yes; then
30567
30568 cat >>confdefs.h <<\_ACEOF
30569 #define HAVE_ALLOCA_H 1
30570 _ACEOF
30571
30572 fi
30573
30574 { echo "$as_me:$LINENO: checking for alloca" >&5
30575 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30576 if test "${ac_cv_func_alloca_works+set}" = set; then
30577   echo $ECHO_N "(cached) $ECHO_C" >&6
30578 else
30579   cat >conftest.$ac_ext <<_ACEOF
30580 /* confdefs.h.  */
30581 _ACEOF
30582 cat confdefs.h >>conftest.$ac_ext
30583 cat >>conftest.$ac_ext <<_ACEOF
30584 /* end confdefs.h.  */
30585 #ifdef __GNUC__
30586 # define alloca __builtin_alloca
30587 #else
30588 # ifdef _MSC_VER
30589 #  include <malloc.h>
30590 #  define alloca _alloca
30591 # else
30592 #  if HAVE_ALLOCA_H
30593 #   include <alloca.h>
30594 #  else
30595 #   ifdef _AIX
30596  #pragma alloca
30597 #   else
30598 #    ifndef alloca /* predefined by HP cc +Olibcalls */
30599 char *alloca ();
30600 #    endif
30601 #   endif
30602 #  endif
30603 # endif
30604 #endif
30605
30606 int
30607 main ()
30608 {
30609 char *p = (char *) alloca (1);
30610                                     if (p) return 0;
30611   ;
30612   return 0;
30613 }
30614 _ACEOF
30615 rm -f conftest.$ac_objext conftest$ac_exeext
30616 if { (ac_try="$ac_link"
30617 case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622   (eval "$ac_link") 2>conftest.er1
30623   ac_status=$?
30624   grep -v '^ *+' conftest.er1 >conftest.err
30625   rm -f conftest.er1
30626   cat conftest.err >&5
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); } &&
30629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30630   { (case "(($ac_try" in
30631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632   *) ac_try_echo=$ac_try;;
30633 esac
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635   (eval "$ac_try") 2>&5
30636   ac_status=$?
30637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638   (exit $ac_status); }; } &&
30639          { ac_try='test -s conftest$ac_exeext'
30640   { (case "(($ac_try" in
30641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642   *) ac_try_echo=$ac_try;;
30643 esac
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645   (eval "$ac_try") 2>&5
30646   ac_status=$?
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); }; }; then
30649   ac_cv_func_alloca_works=yes
30650 else
30651   echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30653
30654         ac_cv_func_alloca_works=no
30655 fi
30656
30657 rm -f core conftest.err conftest.$ac_objext \
30658       conftest$ac_exeext conftest.$ac_ext
30659 fi
30660 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30661 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30662
30663 if test $ac_cv_func_alloca_works = yes; then
30664
30665 cat >>confdefs.h <<\_ACEOF
30666 #define HAVE_ALLOCA 1
30667 _ACEOF
30668
30669 else
30670   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30671 # that cause trouble.  Some versions do not even contain alloca or
30672 # contain a buggy version.  If you still want to use their alloca,
30673 # use ar to extract alloca.o from them instead of compiling alloca.c.
30674
30675 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30676
30677 cat >>confdefs.h <<\_ACEOF
30678 #define C_ALLOCA 1
30679 _ACEOF
30680
30681
30682 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30683 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30684 if test "${ac_cv_os_cray+set}" = set; then
30685   echo $ECHO_N "(cached) $ECHO_C" >&6
30686 else
30687   cat >conftest.$ac_ext <<_ACEOF
30688 /* confdefs.h.  */
30689 _ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h.  */
30693 #if defined CRAY && ! defined CRAY2
30694 webecray
30695 #else
30696 wenotbecray
30697 #endif
30698
30699 _ACEOF
30700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30701   $EGREP "webecray" >/dev/null 2>&1; then
30702   ac_cv_os_cray=yes
30703 else
30704   ac_cv_os_cray=no
30705 fi
30706 rm -f conftest*
30707
30708 fi
30709 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30710 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30711 if test $ac_cv_os_cray = yes; then
30712   for ac_func in _getb67 GETB67 getb67; do
30713     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30717   echo $ECHO_N "(cached) $ECHO_C" >&6
30718 else
30719   cat >conftest.$ac_ext <<_ACEOF
30720 /* confdefs.h.  */
30721 _ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h.  */
30725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30727 #define $ac_func innocuous_$ac_func
30728
30729 /* System header to define __stub macros and hopefully few prototypes,
30730     which can conflict with char $ac_func (); below.
30731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30732     <limits.h> exists even on freestanding compilers.  */
30733
30734 #ifdef __STDC__
30735 # include <limits.h>
30736 #else
30737 # include <assert.h>
30738 #endif
30739
30740 #undef $ac_func
30741
30742 /* Override any GCC internal prototype to avoid an error.
30743    Use char because int might match the return type of a GCC
30744    builtin and then its argument prototype would still apply.  */
30745 #ifdef __cplusplus
30746 extern "C"
30747 #endif
30748 char $ac_func ();
30749 /* The GNU C library defines this for functions which it implements
30750     to always fail with ENOSYS.  Some functions are actually named
30751     something starting with __ and the normal name is an alias.  */
30752 #if defined __stub_$ac_func || defined __stub___$ac_func
30753 choke me
30754 #endif
30755
30756 int
30757 main ()
30758 {
30759 return $ac_func ();
30760   ;
30761   return 0;
30762 }
30763 _ACEOF
30764 rm -f conftest.$ac_objext conftest$ac_exeext
30765 if { (ac_try="$ac_link"
30766 case "(($ac_try" in
30767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768   *) ac_try_echo=$ac_try;;
30769 esac
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771   (eval "$ac_link") 2>conftest.er1
30772   ac_status=$?
30773   grep -v '^ *+' conftest.er1 >conftest.err
30774   rm -f conftest.er1
30775   cat conftest.err >&5
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } &&
30778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30779   { (case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784   (eval "$ac_try") 2>&5
30785   ac_status=$?
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); }; } &&
30788          { ac_try='test -s conftest$ac_exeext'
30789   { (case "(($ac_try" in
30790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791   *) ac_try_echo=$ac_try;;
30792 esac
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794   (eval "$ac_try") 2>&5
30795   ac_status=$?
30796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797   (exit $ac_status); }; }; then
30798   eval "$as_ac_var=yes"
30799 else
30800   echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         eval "$as_ac_var=no"
30804 fi
30805
30806 rm -f core conftest.err conftest.$ac_objext \
30807       conftest$ac_exeext conftest.$ac_ext
30808 fi
30809 ac_res=`eval echo '${'$as_ac_var'}'`
30810                { echo "$as_me:$LINENO: result: $ac_res" >&5
30811 echo "${ECHO_T}$ac_res" >&6; }
30812 if test `eval echo '${'$as_ac_var'}'` = yes; then
30813
30814 cat >>confdefs.h <<_ACEOF
30815 #define CRAY_STACKSEG_END $ac_func
30816 _ACEOF
30817
30818     break
30819 fi
30820
30821   done
30822 fi
30823
30824 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30826 if test "${ac_cv_c_stack_direction+set}" = set; then
30827   echo $ECHO_N "(cached) $ECHO_C" >&6
30828 else
30829   if test "$cross_compiling" = yes; then
30830   ac_cv_c_stack_direction=0
30831 else
30832   cat >conftest.$ac_ext <<_ACEOF
30833 /* confdefs.h.  */
30834 _ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h.  */
30838 $ac_includes_default
30839 int
30840 find_stack_direction ()
30841 {
30842   static char *addr = 0;
30843   auto char dummy;
30844   if (addr == 0)
30845     {
30846       addr = &dummy;
30847       return find_stack_direction ();
30848     }
30849   else
30850     return (&dummy > addr) ? 1 : -1;
30851 }
30852
30853 int
30854 main ()
30855 {
30856   return find_stack_direction () < 0;
30857 }
30858 _ACEOF
30859 rm -f conftest$ac_exeext
30860 if { (ac_try="$ac_link"
30861 case "(($ac_try" in
30862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863   *) ac_try_echo=$ac_try;;
30864 esac
30865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866   (eval "$ac_link") 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30870   { (case "(($ac_try" in
30871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872   *) ac_try_echo=$ac_try;;
30873 esac
30874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875   (eval "$ac_try") 2>&5
30876   ac_status=$?
30877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878   (exit $ac_status); }; }; then
30879   ac_cv_c_stack_direction=1
30880 else
30881   echo "$as_me: program exited with status $ac_status" >&5
30882 echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.$ac_ext >&5
30884
30885 ( exit $ac_status )
30886 ac_cv_c_stack_direction=-1
30887 fi
30888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30889 fi
30890
30891
30892 fi
30893 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30895
30896 cat >>confdefs.h <<_ACEOF
30897 #define STACK_DIRECTION $ac_cv_c_stack_direction
30898 _ACEOF
30899
30900
30901 fi
30902
30903
30904 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30905 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30906 if test "${ac_cv_func_rand48+set}" = set; then
30907   echo $ECHO_N "(cached) $ECHO_C" >&6
30908 else
30909   ac_ext=cpp
30910 ac_cpp='$CXXCPP $CPPFLAGS'
30911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30914
30915    cat >conftest.$ac_ext <<_ACEOF
30916 /* confdefs.h.  */
30917 _ACEOF
30918 cat confdefs.h >>conftest.$ac_ext
30919 cat >>conftest.$ac_ext <<_ACEOF
30920 /* end confdefs.h.  */
30921 #include <stdlib.h>
30922 int
30923 main ()
30924 {
30925 srand48(0);lrand48();drand48();
30926   ;
30927   return 0;
30928 }
30929 _ACEOF
30930 rm -f conftest.$ac_objext
30931 if { (ac_try="$ac_compile"
30932 case "(($ac_try" in
30933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934   *) ac_try_echo=$ac_try;;
30935 esac
30936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937   (eval "$ac_compile") 2>conftest.er1
30938   ac_status=$?
30939   grep -v '^ *+' conftest.er1 >conftest.err
30940   rm -f conftest.er1
30941   cat conftest.err >&5
30942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943   (exit $ac_status); } &&
30944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30945   { (case "(($ac_try" in
30946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947   *) ac_try_echo=$ac_try;;
30948 esac
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950   (eval "$ac_try") 2>&5
30951   ac_status=$?
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); }; } &&
30954          { ac_try='test -s conftest.$ac_objext'
30955   { (case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_try") 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); }; }; then
30964   ac_cv_func_rand48=yes
30965 else
30966   echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30968
30969         ac_cv_func_rand48=no
30970 fi
30971
30972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30973   ac_ext=c
30974 ac_cpp='$CPP $CPPFLAGS'
30975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30978
30979 fi
30980 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30981 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30982
30983 if test "$ac_cv_func_rand48" = "yes" ; then
30984
30985 cat >>confdefs.h <<\_ACEOF
30986 #define HAVE_RAND48 1
30987 _ACEOF
30988
30989 fi
30990
30991
30992 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30993 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30994 if test "${ac_cv_cxx_namespaces+set}" = set; then
30995   echo $ECHO_N "(cached) $ECHO_C" >&6
30996 else
30997   ac_ext=cpp
30998 ac_cpp='$CXXCPP $CPPFLAGS'
30999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31002
31003  cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 namespace Outer { namespace Inner { int i = 0; }}
31010 int
31011 main ()
31012 {
31013 using namespace Outer::Inner; return i;
31014   ;
31015   return 0;
31016 }
31017 _ACEOF
31018 rm -f conftest.$ac_objext
31019 if { (ac_try="$ac_compile"
31020 case "(($ac_try" in
31021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022   *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025   (eval "$ac_compile") 2>conftest.er1
31026   ac_status=$?
31027   grep -v '^ *+' conftest.er1 >conftest.err
31028   rm -f conftest.er1
31029   cat conftest.err >&5
31030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031   (exit $ac_status); } &&
31032          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31033   { (case "(($ac_try" in
31034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035   *) ac_try_echo=$ac_try;;
31036 esac
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038   (eval "$ac_try") 2>&5
31039   ac_status=$?
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); }; } &&
31042          { ac_try='test -s conftest.$ac_objext'
31043   { (case "(($ac_try" in
31044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045   *) ac_try_echo=$ac_try;;
31046 esac
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048   (eval "$ac_try") 2>&5
31049   ac_status=$?
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); }; }; then
31052   ac_cv_cxx_namespaces=yes
31053 else
31054   echo "$as_me: failed program was:" >&5
31055 sed 's/^/| /' conftest.$ac_ext >&5
31056
31057         ac_cv_cxx_namespaces=no
31058 fi
31059
31060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31061  ac_ext=c
31062 ac_cpp='$CPP $CPPFLAGS'
31063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31066
31067
31068 fi
31069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31070 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31071 if test "$ac_cv_cxx_namespaces" = yes; then
31072
31073 cat >>confdefs.h <<\_ACEOF
31074 #define HAVE_NAMESPACES
31075 _ACEOF
31076
31077 fi
31078
31079 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31080 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31081 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31082   echo $ECHO_N "(cached) $ECHO_C" >&6
31083 else
31084
31085   ac_ext=cpp
31086 ac_cpp='$CXXCPP $CPPFLAGS'
31087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31090
31091   cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h.  */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h.  */
31097 #include <ext/hash_map>
31098 #ifdef HAVE_NAMESPACES
31099 using namespace std;
31100 #endif
31101 int
31102 main ()
31103 {
31104 hash_map<int, int> t;
31105   ;
31106   return 0;
31107 }
31108 _ACEOF
31109 rm -f conftest.$ac_objext
31110 if { (ac_try="$ac_compile"
31111 case "(($ac_try" in
31112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113   *) ac_try_echo=$ac_try;;
31114 esac
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116   (eval "$ac_compile") 2>conftest.er1
31117   ac_status=$?
31118   grep -v '^ *+' conftest.er1 >conftest.err
31119   rm -f conftest.er1
31120   cat conftest.err >&5
31121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122   (exit $ac_status); } &&
31123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31124   { (case "(($ac_try" in
31125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126   *) ac_try_echo=$ac_try;;
31127 esac
31128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129   (eval "$ac_try") 2>&5
31130   ac_status=$?
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); }; } &&
31133          { ac_try='test -s conftest.$ac_objext'
31134   { (case "(($ac_try" in
31135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136   *) ac_try_echo=$ac_try;;
31137 esac
31138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139   (eval "$ac_try") 2>&5
31140   ac_status=$?
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); }; }; then
31143   ac_cv_cxx_have_std_ext_hash_map=yes
31144 else
31145   echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31147
31148         ac_cv_cxx_have_std_ext_hash_map=no
31149 fi
31150
31151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31152   ac_ext=c
31153 ac_cpp='$CPP $CPPFLAGS'
31154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31157
31158 fi
31159 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31160 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31161  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31162  then
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_STD_EXT_HASH_MAP 1
31166 _ACEOF
31167
31168  else
31169
31170 cat >>confdefs.h <<\_ACEOF
31171 #define HAVE_STD_EXT_HASH_MAP 0
31172 _ACEOF
31173
31174  fi
31175
31176  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31177 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31178 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31179   echo $ECHO_N "(cached) $ECHO_C" >&6
31180 else
31181
31182   ac_ext=cpp
31183 ac_cpp='$CXXCPP $CPPFLAGS'
31184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31187
31188   cat >conftest.$ac_ext <<_ACEOF
31189 /* confdefs.h.  */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h.  */
31194 #include <ext/hash_map>
31195 #ifdef HAVE_NAMESPACES
31196 using namespace __gnu_cxx;
31197 #endif
31198 int
31199 main ()
31200 {
31201 hash_map<int,int> t;
31202   ;
31203   return 0;
31204 }
31205 _ACEOF
31206 rm -f conftest.$ac_objext
31207 if { (ac_try="$ac_compile"
31208 case "(($ac_try" in
31209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210   *) ac_try_echo=$ac_try;;
31211 esac
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213   (eval "$ac_compile") 2>conftest.er1
31214   ac_status=$?
31215   grep -v '^ *+' conftest.er1 >conftest.err
31216   rm -f conftest.er1
31217   cat conftest.err >&5
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); } &&
31220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31221   { (case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_try") 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; } &&
31230          { ac_try='test -s conftest.$ac_objext'
31231   { (case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_try") 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; }; then
31240   ac_cv_cxx_have_gnu_ext_hash_map=yes
31241 else
31242   echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31244
31245         ac_cv_cxx_have_gnu_ext_hash_map=no
31246 fi
31247
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249   ac_ext=c
31250 ac_cpp='$CPP $CPPFLAGS'
31251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31254
31255 fi
31256 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31257 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31258  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31259  then
31260
31261 cat >>confdefs.h <<\_ACEOF
31262 #define HAVE_GNU_EXT_HASH_MAP 1
31263 _ACEOF
31264
31265  else
31266
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_GNU_EXT_HASH_MAP 0
31269 _ACEOF
31270
31271  fi
31272
31273  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31274 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31275 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31276   echo $ECHO_N "(cached) $ECHO_C" >&6
31277 else
31278
31279   ac_ext=cpp
31280 ac_cpp='$CXXCPP $CPPFLAGS'
31281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284
31285   cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291 #include <hash_map>
31292 int
31293 main ()
31294 {
31295 hash_map<int,int> t;
31296   ;
31297   return 0;
31298 }
31299 _ACEOF
31300 rm -f conftest.$ac_objext
31301 if { (ac_try="$ac_compile"
31302 case "(($ac_try" in
31303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304   *) ac_try_echo=$ac_try;;
31305 esac
31306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307   (eval "$ac_compile") 2>conftest.er1
31308   ac_status=$?
31309   grep -v '^ *+' conftest.er1 >conftest.err
31310   rm -f conftest.er1
31311   cat conftest.err >&5
31312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313   (exit $ac_status); } &&
31314          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31315   { (case "(($ac_try" in
31316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317   *) ac_try_echo=$ac_try;;
31318 esac
31319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320   (eval "$ac_try") 2>&5
31321   ac_status=$?
31322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323   (exit $ac_status); }; } &&
31324          { ac_try='test -s conftest.$ac_objext'
31325   { (case "(($ac_try" in
31326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327   *) ac_try_echo=$ac_try;;
31328 esac
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330   (eval "$ac_try") 2>&5
31331   ac_status=$?
31332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333   (exit $ac_status); }; }; then
31334   ac_cv_cxx_have_global_hash_map=yes
31335 else
31336   echo "$as_me: failed program was:" >&5
31337 sed 's/^/| /' conftest.$ac_ext >&5
31338
31339         ac_cv_cxx_have_global_hash_map=no
31340 fi
31341
31342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31343   ac_ext=c
31344 ac_cpp='$CPP $CPPFLAGS'
31345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348
31349 fi
31350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31351 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31352  if test "$ac_cv_cxx_have_global_hash_map" = yes
31353  then
31354
31355 cat >>confdefs.h <<\_ACEOF
31356 #define HAVE_GLOBAL_HASH_MAP 1
31357 _ACEOF
31358
31359  else
31360
31361 cat >>confdefs.h <<\_ACEOF
31362 #define HAVE_GLOBAL_HASH_MAP 0
31363 _ACEOF
31364
31365  fi
31366
31367 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31368 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31369 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372
31373   ac_ext=cpp
31374 ac_cpp='$CXXCPP $CPPFLAGS'
31375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31378
31379   cat >conftest.$ac_ext <<_ACEOF
31380 /* confdefs.h.  */
31381 _ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h.  */
31385 #include <ext/hash_set>
31386 #ifdef HAVE_NAMESPACES
31387 using namespace std;
31388 #endif
31389 int
31390 main ()
31391 {
31392 hash_set<int> t;
31393   ;
31394   return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext
31398 if { (ac_try="$ac_compile"
31399 case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404   (eval "$ac_compile") 2>conftest.er1
31405   ac_status=$?
31406   grep -v '^ *+' conftest.er1 >conftest.err
31407   rm -f conftest.er1
31408   cat conftest.err >&5
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); } &&
31411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31412   { (case "(($ac_try" in
31413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414   *) ac_try_echo=$ac_try;;
31415 esac
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417   (eval "$ac_try") 2>&5
31418   ac_status=$?
31419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420   (exit $ac_status); }; } &&
31421          { ac_try='test -s conftest.$ac_objext'
31422   { (case "(($ac_try" in
31423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424   *) ac_try_echo=$ac_try;;
31425 esac
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427   (eval "$ac_try") 2>&5
31428   ac_status=$?
31429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430   (exit $ac_status); }; }; then
31431   ac_cv_cxx_have_std_ext_hash_set=yes
31432 else
31433   echo "$as_me: failed program was:" >&5
31434 sed 's/^/| /' conftest.$ac_ext >&5
31435
31436         ac_cv_cxx_have_std_ext_hash_set=no
31437 fi
31438
31439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31440   ac_ext=c
31441 ac_cpp='$CPP $CPPFLAGS'
31442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31445
31446 fi
31447 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31448 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31449  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31450  then
31451
31452 cat >>confdefs.h <<\_ACEOF
31453 #define HAVE_STD_EXT_HASH_SET 1
31454 _ACEOF
31455
31456  else
31457
31458 cat >>confdefs.h <<\_ACEOF
31459 #define HAVE_STD_EXT_HASH_SET 0
31460 _ACEOF
31461
31462  fi
31463
31464  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31465 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31466 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31467   echo $ECHO_N "(cached) $ECHO_C" >&6
31468 else
31469
31470   ac_ext=cpp
31471 ac_cpp='$CXXCPP $CPPFLAGS'
31472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31475
31476   cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h.  */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h.  */
31482 #include <ext/hash_set>
31483 #ifdef HAVE_NAMESPACES
31484 using namespace __gnu_cxx;
31485 #endif
31486 int
31487 main ()
31488 {
31489 hash_set<int> t;
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498   *) ac_try_echo=$ac_try;;
31499 esac
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501   (eval "$ac_compile") 2>conftest.er1
31502   ac_status=$?
31503   grep -v '^ *+' conftest.er1 >conftest.err
31504   rm -f conftest.er1
31505   cat conftest.err >&5
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } &&
31508          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31509   { (case "(($ac_try" in
31510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511   *) ac_try_echo=$ac_try;;
31512 esac
31513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514   (eval "$ac_try") 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; } &&
31518          { ac_try='test -s conftest.$ac_objext'
31519   { (case "(($ac_try" in
31520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521   *) ac_try_echo=$ac_try;;
31522 esac
31523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524   (eval "$ac_try") 2>&5
31525   ac_status=$?
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); }; }; then
31528   ac_cv_cxx_have_gnu_ext_hash_set=yes
31529 else
31530   echo "$as_me: failed program was:" >&5
31531 sed 's/^/| /' conftest.$ac_ext >&5
31532
31533         ac_cv_cxx_have_gnu_ext_hash_set=no
31534 fi
31535
31536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31537   ac_ext=c
31538 ac_cpp='$CPP $CPPFLAGS'
31539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31542
31543 fi
31544 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31545 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31546  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31547  then
31548
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_GNU_EXT_HASH_SET 1
31551 _ACEOF
31552
31553  else
31554
31555 cat >>confdefs.h <<\_ACEOF
31556 #define HAVE_GNU_EXT_HASH_SET 0
31557 _ACEOF
31558
31559  fi
31560
31561  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31562 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31563 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31564   echo $ECHO_N "(cached) $ECHO_C" >&6
31565 else
31566
31567   ac_ext=cpp
31568 ac_cpp='$CXXCPP $CPPFLAGS'
31569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31572
31573   cat >conftest.$ac_ext <<_ACEOF
31574 /* confdefs.h.  */
31575 _ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h.  */
31579 #include <hash_set>
31580 int
31581 main ()
31582 {
31583 hash_set<int> t; return 0;
31584   ;
31585   return 0;
31586 }
31587 _ACEOF
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592   *) ac_try_echo=$ac_try;;
31593 esac
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595   (eval "$ac_compile") 2>conftest.er1
31596   ac_status=$?
31597   grep -v '^ *+' conftest.er1 >conftest.err
31598   rm -f conftest.er1
31599   cat conftest.err >&5
31600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601   (exit $ac_status); } &&
31602          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31603   { (case "(($ac_try" in
31604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605   *) ac_try_echo=$ac_try;;
31606 esac
31607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608   (eval "$ac_try") 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; } &&
31612          { ac_try='test -s conftest.$ac_objext'
31613   { (case "(($ac_try" in
31614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615   *) ac_try_echo=$ac_try;;
31616 esac
31617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618   (eval "$ac_try") 2>&5
31619   ac_status=$?
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); }; }; then
31622   ac_cv_cxx_have_global_hash_set=yes
31623 else
31624   echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31626
31627         ac_cv_cxx_have_global_hash_set=no
31628 fi
31629
31630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631   ac_ext=c
31632 ac_cpp='$CPP $CPPFLAGS'
31633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31636
31637 fi
31638 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31639 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31640  if test "$ac_cv_cxx_have_global_hash_set" = yes
31641  then
31642
31643 cat >>confdefs.h <<\_ACEOF
31644 #define HAVE_GLOBAL_HASH_SET 1
31645 _ACEOF
31646
31647  else
31648
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_GLOBAL_HASH_SET 0
31651 _ACEOF
31652
31653  fi
31654
31655 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31656 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31657 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31658   echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660
31661   ac_ext=cpp
31662 ac_cpp='$CXXCPP $CPPFLAGS'
31663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31666
31667   cat >conftest.$ac_ext <<_ACEOF
31668 /* confdefs.h.  */
31669 _ACEOF
31670 cat confdefs.h >>conftest.$ac_ext
31671 cat >>conftest.$ac_ext <<_ACEOF
31672 /* end confdefs.h.  */
31673 #include <iterator>
31674 #ifdef HAVE_NAMESPACES
31675 using namespace std;
31676 #endif
31677 int
31678 main ()
31679 {
31680 iterator<int,int,int> t; return 0;
31681   ;
31682   return 0;
31683 }
31684 _ACEOF
31685 rm -f conftest.$ac_objext
31686 if { (ac_try="$ac_compile"
31687 case "(($ac_try" in
31688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689   *) ac_try_echo=$ac_try;;
31690 esac
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692   (eval "$ac_compile") 2>conftest.er1
31693   ac_status=$?
31694   grep -v '^ *+' conftest.er1 >conftest.err
31695   rm -f conftest.er1
31696   cat conftest.err >&5
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); } &&
31699          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31700   { (case "(($ac_try" in
31701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702   *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705   (eval "$ac_try") 2>&5
31706   ac_status=$?
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); }; } &&
31709          { ac_try='test -s conftest.$ac_objext'
31710   { (case "(($ac_try" in
31711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712   *) ac_try_echo=$ac_try;;
31713 esac
31714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31715   (eval "$ac_try") 2>&5
31716   ac_status=$?
31717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718   (exit $ac_status); }; }; then
31719   ac_cv_cxx_have_std_iterator=yes
31720 else
31721   echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31723
31724         ac_cv_cxx_have_std_iterator=no
31725 fi
31726
31727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31728   ac_ext=c
31729 ac_cpp='$CPP $CPPFLAGS'
31730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31733
31734
31735 fi
31736 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31737 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31738 if test "$ac_cv_cxx_have_std_iterator" = yes
31739 then
31740
31741 cat >>confdefs.h <<\_ACEOF
31742 #define HAVE_STD_ITERATOR 1
31743 _ACEOF
31744
31745 else
31746
31747 cat >>confdefs.h <<\_ACEOF
31748 #define HAVE_STD_ITERATOR 0
31749 _ACEOF
31750
31751 fi
31752
31753 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31754 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31755 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31756   echo $ECHO_N "(cached) $ECHO_C" >&6
31757 else
31758
31759   ac_ext=cpp
31760 ac_cpp='$CXXCPP $CPPFLAGS'
31761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31764
31765   cat >conftest.$ac_ext <<_ACEOF
31766 /* confdefs.h.  */
31767 _ACEOF
31768 cat confdefs.h >>conftest.$ac_ext
31769 cat >>conftest.$ac_ext <<_ACEOF
31770 /* end confdefs.h.  */
31771 #include <iterator>
31772 #ifdef HAVE_NAMESPACES
31773 using namespace std;
31774 #endif
31775 int
31776 main ()
31777 {
31778 bidirectional_iterator<int,int> t; return 0;
31779   ;
31780   return 0;
31781 }
31782 _ACEOF
31783 rm -f conftest.$ac_objext
31784 if { (ac_try="$ac_compile"
31785 case "(($ac_try" in
31786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787   *) ac_try_echo=$ac_try;;
31788 esac
31789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790   (eval "$ac_compile") 2>conftest.er1
31791   ac_status=$?
31792   grep -v '^ *+' conftest.er1 >conftest.err
31793   rm -f conftest.er1
31794   cat conftest.err >&5
31795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796   (exit $ac_status); } &&
31797          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31798   { (case "(($ac_try" in
31799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800   *) ac_try_echo=$ac_try;;
31801 esac
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803   (eval "$ac_try") 2>&5
31804   ac_status=$?
31805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806   (exit $ac_status); }; } &&
31807          { ac_try='test -s conftest.$ac_objext'
31808   { (case "(($ac_try" in
31809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31810   *) ac_try_echo=$ac_try;;
31811 esac
31812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31813   (eval "$ac_try") 2>&5
31814   ac_status=$?
31815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816   (exit $ac_status); }; }; then
31817   ac_cv_cxx_have_bi_iterator=yes
31818 else
31819   echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31821
31822         ac_cv_cxx_have_bi_iterator=no
31823 fi
31824
31825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31826   ac_ext=c
31827 ac_cpp='$CPP $CPPFLAGS'
31828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31831
31832
31833 fi
31834 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31835 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31836 if test "$ac_cv_cxx_have_bi_iterator" = yes
31837 then
31838
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_BI_ITERATOR 1
31841 _ACEOF
31842
31843 else
31844
31845 cat >>confdefs.h <<\_ACEOF
31846 #define HAVE_BI_ITERATOR 0
31847 _ACEOF
31848
31849 fi
31850
31851 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31852 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31853 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31854   echo $ECHO_N "(cached) $ECHO_C" >&6
31855 else
31856
31857   ac_ext=cpp
31858 ac_cpp='$CXXCPP $CPPFLAGS'
31859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31862
31863   cat >conftest.$ac_ext <<_ACEOF
31864 /* confdefs.h.  */
31865 _ACEOF
31866 cat confdefs.h >>conftest.$ac_ext
31867 cat >>conftest.$ac_ext <<_ACEOF
31868 /* end confdefs.h.  */
31869 #include <iterator>
31870 #ifdef HAVE_NAMESPACES
31871 using namespace std;
31872 #endif
31873 int
31874 main ()
31875 {
31876 forward_iterator<int,int> t; return 0;
31877   ;
31878   return 0;
31879 }
31880 _ACEOF
31881 rm -f conftest.$ac_objext
31882 if { (ac_try="$ac_compile"
31883 case "(($ac_try" in
31884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885   *) ac_try_echo=$ac_try;;
31886 esac
31887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31888   (eval "$ac_compile") 2>conftest.er1
31889   ac_status=$?
31890   grep -v '^ *+' conftest.er1 >conftest.err
31891   rm -f conftest.er1
31892   cat conftest.err >&5
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); } &&
31895          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31896   { (case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_try") 2>&5
31902   ac_status=$?
31903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904   (exit $ac_status); }; } &&
31905          { ac_try='test -s conftest.$ac_objext'
31906   { (case "(($ac_try" in
31907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908   *) ac_try_echo=$ac_try;;
31909 esac
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911   (eval "$ac_try") 2>&5
31912   ac_status=$?
31913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914   (exit $ac_status); }; }; then
31915   ac_cv_cxx_have_fwd_iterator=yes
31916 else
31917   echo "$as_me: failed program was:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31919
31920         ac_cv_cxx_have_fwd_iterator=no
31921 fi
31922
31923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31924   ac_ext=c
31925 ac_cpp='$CPP $CPPFLAGS'
31926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31929
31930
31931 fi
31932 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31933 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31934 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31935 then
31936
31937 cat >>confdefs.h <<\_ACEOF
31938 #define HAVE_FWD_ITERATOR 1
31939 _ACEOF
31940
31941 else
31942
31943 cat >>confdefs.h <<\_ACEOF
31944 #define HAVE_FWD_ITERATOR 0
31945 _ACEOF
31946
31947 fi
31948
31949
31950 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31951 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31952 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31953   echo $ECHO_N "(cached) $ECHO_C" >&6
31954 else
31955   ac_ext=cpp
31956 ac_cpp='$CXXCPP $CPPFLAGS'
31957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31960
31961    cat >conftest.$ac_ext <<_ACEOF
31962 /* confdefs.h.  */
31963 _ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h.  */
31967 #include <math.h>
31968 int
31969 main ()
31970 {
31971 float f; isnan(f);
31972   ;
31973   return 0;
31974 }
31975 _ACEOF
31976 rm -f conftest.$ac_objext
31977 if { (ac_try="$ac_compile"
31978 case "(($ac_try" in
31979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980   *) ac_try_echo=$ac_try;;
31981 esac
31982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983   (eval "$ac_compile") 2>conftest.er1
31984   ac_status=$?
31985   grep -v '^ *+' conftest.er1 >conftest.err
31986   rm -f conftest.er1
31987   cat conftest.err >&5
31988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989   (exit $ac_status); } &&
31990          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31991   { (case "(($ac_try" in
31992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993   *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996   (eval "$ac_try") 2>&5
31997   ac_status=$?
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); }; } &&
32000          { ac_try='test -s conftest.$ac_objext'
32001   { (case "(($ac_try" in
32002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003   *) ac_try_echo=$ac_try;;
32004 esac
32005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006   (eval "$ac_try") 2>&5
32007   ac_status=$?
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); }; }; then
32010   ac_cv_func_isnan_in_math_h=yes
32011 else
32012   echo "$as_me: failed program was:" >&5
32013 sed 's/^/| /' conftest.$ac_ext >&5
32014
32015         ac_cv_func_isnan_in_math_h=no
32016 fi
32017
32018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32019   ac_ext=c
32020 ac_cpp='$CPP $CPPFLAGS'
32021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32024
32025 fi
32026 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32027 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32028
32029
32030 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32031
32032 cat >>confdefs.h <<\_ACEOF
32033 #define HAVE_ISNAN_IN_MATH_H 1
32034 _ACEOF
32035
32036 fi
32037
32038 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32039 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32040 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32041   echo $ECHO_N "(cached) $ECHO_C" >&6
32042 else
32043   ac_ext=cpp
32044 ac_cpp='$CXXCPP $CPPFLAGS'
32045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32048
32049    cat >conftest.$ac_ext <<_ACEOF
32050 /* confdefs.h.  */
32051 _ACEOF
32052 cat confdefs.h >>conftest.$ac_ext
32053 cat >>conftest.$ac_ext <<_ACEOF
32054 /* end confdefs.h.  */
32055 #include <cmath>
32056 int
32057 main ()
32058 {
32059 float f; isnan(f);
32060   ;
32061   return 0;
32062 }
32063 _ACEOF
32064 rm -f conftest.$ac_objext
32065 if { (ac_try="$ac_compile"
32066 case "(($ac_try" in
32067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068   *) ac_try_echo=$ac_try;;
32069 esac
32070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071   (eval "$ac_compile") 2>conftest.er1
32072   ac_status=$?
32073   grep -v '^ *+' conftest.er1 >conftest.err
32074   rm -f conftest.er1
32075   cat conftest.err >&5
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); } &&
32078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32079   { (case "(($ac_try" in
32080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081   *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084   (eval "$ac_try") 2>&5
32085   ac_status=$?
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); }; } &&
32088          { ac_try='test -s conftest.$ac_objext'
32089   { (case "(($ac_try" in
32090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091   *) ac_try_echo=$ac_try;;
32092 esac
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094   (eval "$ac_try") 2>&5
32095   ac_status=$?
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); }; }; then
32098   ac_cv_func_isnan_in_cmath=yes
32099 else
32100   echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32102
32103         ac_cv_func_isnan_in_cmath=no
32104 fi
32105
32106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32107   ac_ext=c
32108 ac_cpp='$CPP $CPPFLAGS'
32109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32112
32113 fi
32114 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32115 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32116
32117 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32118
32119 cat >>confdefs.h <<\_ACEOF
32120 #define HAVE_ISNAN_IN_CMATH 1
32121 _ACEOF
32122
32123 fi
32124
32125 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32126 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32127 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32128   echo $ECHO_N "(cached) $ECHO_C" >&6
32129 else
32130   ac_ext=cpp
32131 ac_cpp='$CXXCPP $CPPFLAGS'
32132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32135
32136    cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h.  */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h.  */
32142 #include <cmath>
32143 int
32144 main ()
32145 {
32146 float f; std::isnan(f);
32147   ;
32148   return 0;
32149 }
32150 _ACEOF
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155   *) ac_try_echo=$ac_try;;
32156 esac
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158   (eval "$ac_compile") 2>conftest.er1
32159   ac_status=$?
32160   grep -v '^ *+' conftest.er1 >conftest.err
32161   rm -f conftest.er1
32162   cat conftest.err >&5
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); } &&
32165          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32166   { (case "(($ac_try" in
32167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168   *) ac_try_echo=$ac_try;;
32169 esac
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171   (eval "$ac_try") 2>&5
32172   ac_status=$?
32173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174   (exit $ac_status); }; } &&
32175          { ac_try='test -s conftest.$ac_objext'
32176   { (case "(($ac_try" in
32177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178   *) ac_try_echo=$ac_try;;
32179 esac
32180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181   (eval "$ac_try") 2>&5
32182   ac_status=$?
32183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184   (exit $ac_status); }; }; then
32185   ac_cv_func_std_isnan_in_cmath=yes
32186 else
32187   echo "$as_me: failed program was:" >&5
32188 sed 's/^/| /' conftest.$ac_ext >&5
32189
32190         ac_cv_func_std_isnan_in_cmath=no
32191 fi
32192
32193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194   ac_ext=c
32195 ac_cpp='$CPP $CPPFLAGS'
32196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32199
32200 fi
32201 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32202 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32203
32204 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32205
32206 cat >>confdefs.h <<\_ACEOF
32207 #define HAVE_STD_ISNAN_IN_CMATH 1
32208 _ACEOF
32209
32210 fi
32211
32212
32213 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32214 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32215 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32216   echo $ECHO_N "(cached) $ECHO_C" >&6
32217 else
32218   ac_ext=cpp
32219 ac_cpp='$CXXCPP $CPPFLAGS'
32220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32223
32224    cat >conftest.$ac_ext <<_ACEOF
32225 /* confdefs.h.  */
32226 _ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h.  */
32230 #include <math.h>
32231 int
32232 main ()
32233 {
32234 float f; isinf(f);
32235   ;
32236   return 0;
32237 }
32238 _ACEOF
32239 rm -f conftest.$ac_objext
32240 if { (ac_try="$ac_compile"
32241 case "(($ac_try" in
32242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243   *) ac_try_echo=$ac_try;;
32244 esac
32245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246   (eval "$ac_compile") 2>conftest.er1
32247   ac_status=$?
32248   grep -v '^ *+' conftest.er1 >conftest.err
32249   rm -f conftest.er1
32250   cat conftest.err >&5
32251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); } &&
32253          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32254   { (case "(($ac_try" in
32255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256   *) ac_try_echo=$ac_try;;
32257 esac
32258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259   (eval "$ac_try") 2>&5
32260   ac_status=$?
32261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262   (exit $ac_status); }; } &&
32263          { ac_try='test -s conftest.$ac_objext'
32264   { (case "(($ac_try" in
32265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32266   *) ac_try_echo=$ac_try;;
32267 esac
32268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32269   (eval "$ac_try") 2>&5
32270   ac_status=$?
32271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272   (exit $ac_status); }; }; then
32273   ac_cv_func_isinf_in_math_h=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278         ac_cv_func_isinf_in_math_h=no
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282   ac_ext=c
32283 ac_cpp='$CPP $CPPFLAGS'
32284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32287
32288 fi
32289 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32290 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32291
32292 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32293
32294 cat >>confdefs.h <<\_ACEOF
32295 #define HAVE_ISINF_IN_MATH_H 1
32296 _ACEOF
32297
32298 fi
32299
32300 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32301 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32302 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32303   echo $ECHO_N "(cached) $ECHO_C" >&6
32304 else
32305   ac_ext=cpp
32306 ac_cpp='$CXXCPP $CPPFLAGS'
32307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32310
32311    cat >conftest.$ac_ext <<_ACEOF
32312 /* confdefs.h.  */
32313 _ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h.  */
32317 #include <cmath>
32318 int
32319 main ()
32320 {
32321 float f; isinf(f);
32322   ;
32323   return 0;
32324 }
32325 _ACEOF
32326 rm -f conftest.$ac_objext
32327 if { (ac_try="$ac_compile"
32328 case "(($ac_try" in
32329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330   *) ac_try_echo=$ac_try;;
32331 esac
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333   (eval "$ac_compile") 2>conftest.er1
32334   ac_status=$?
32335   grep -v '^ *+' conftest.er1 >conftest.err
32336   rm -f conftest.er1
32337   cat conftest.err >&5
32338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339   (exit $ac_status); } &&
32340          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32341   { (case "(($ac_try" in
32342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343   *) ac_try_echo=$ac_try;;
32344 esac
32345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346   (eval "$ac_try") 2>&5
32347   ac_status=$?
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); }; } &&
32350          { ac_try='test -s conftest.$ac_objext'
32351   { (case "(($ac_try" in
32352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353   *) ac_try_echo=$ac_try;;
32354 esac
32355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356   (eval "$ac_try") 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); }; }; then
32360   ac_cv_func_isinf_in_cmath=yes
32361 else
32362   echo "$as_me: failed program was:" >&5
32363 sed 's/^/| /' conftest.$ac_ext >&5
32364
32365         ac_cv_func_isinf_in_cmath=no
32366 fi
32367
32368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32369   ac_ext=c
32370 ac_cpp='$CPP $CPPFLAGS'
32371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32374
32375 fi
32376 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32377 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32378
32379 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32380
32381 cat >>confdefs.h <<\_ACEOF
32382 #define HAVE_ISINF_IN_CMATH 1
32383 _ACEOF
32384
32385 fi
32386
32387 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32388 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32389 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392   ac_ext=cpp
32393 ac_cpp='$CXXCPP $CPPFLAGS'
32394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32397
32398    cat >conftest.$ac_ext <<_ACEOF
32399 /* confdefs.h.  */
32400 _ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h.  */
32404 #include <cmath>
32405 int
32406 main ()
32407 {
32408 float f; std::isinf(f)}
32409   ;
32410   return 0;
32411 }
32412 _ACEOF
32413 rm -f conftest.$ac_objext
32414 if { (ac_try="$ac_compile"
32415 case "(($ac_try" in
32416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417   *) ac_try_echo=$ac_try;;
32418 esac
32419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420   (eval "$ac_compile") 2>conftest.er1
32421   ac_status=$?
32422   grep -v '^ *+' conftest.er1 >conftest.err
32423   rm -f conftest.er1
32424   cat conftest.err >&5
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); } &&
32427          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32428   { (case "(($ac_try" in
32429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430   *) ac_try_echo=$ac_try;;
32431 esac
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433   (eval "$ac_try") 2>&5
32434   ac_status=$?
32435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436   (exit $ac_status); }; } &&
32437          { ac_try='test -s conftest.$ac_objext'
32438   { (case "(($ac_try" in
32439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440   *) ac_try_echo=$ac_try;;
32441 esac
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443   (eval "$ac_try") 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; }; then
32447   ac_cv_func_std_isinf_in_cmath=yes
32448 else
32449   echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32451
32452         ac_cv_func_std_isinf_in_cmath=no
32453 fi
32454
32455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32456   ac_ext=c
32457 ac_cpp='$CPP $CPPFLAGS'
32458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32461
32462 fi
32463 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32464 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32465
32466 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32467
32468 cat >>confdefs.h <<\_ACEOF
32469 #define HAVE_STD_ISINF_IN_CMATH 1
32470 _ACEOF
32471
32472 fi
32473
32474 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32475 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32476 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32477   echo $ECHO_N "(cached) $ECHO_C" >&6
32478 else
32479   ac_ext=cpp
32480 ac_cpp='$CXXCPP $CPPFLAGS'
32481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32484
32485    cat >conftest.$ac_ext <<_ACEOF
32486 /* confdefs.h.  */
32487 _ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h.  */
32491 #include <ieeefp.h>
32492 int
32493 main ()
32494 {
32495 float f; finite(f);
32496   ;
32497   return 0;
32498 }
32499 _ACEOF
32500 rm -f conftest.$ac_objext
32501 if { (ac_try="$ac_compile"
32502 case "(($ac_try" in
32503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504   *) ac_try_echo=$ac_try;;
32505 esac
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507   (eval "$ac_compile") 2>conftest.er1
32508   ac_status=$?
32509   grep -v '^ *+' conftest.er1 >conftest.err
32510   rm -f conftest.er1
32511   cat conftest.err >&5
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); } &&
32514          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32515   { (case "(($ac_try" in
32516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517   *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520   (eval "$ac_try") 2>&5
32521   ac_status=$?
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); }; } &&
32524          { ac_try='test -s conftest.$ac_objext'
32525   { (case "(($ac_try" in
32526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527   *) ac_try_echo=$ac_try;;
32528 esac
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530   (eval "$ac_try") 2>&5
32531   ac_status=$?
32532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533   (exit $ac_status); }; }; then
32534   ac_cv_func_finite_in_ieeefp_h=yes
32535 else
32536   echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32538
32539         ac_cv_func_finite_in_ieeefp_h=no
32540 fi
32541
32542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32543   ac_ext=c
32544 ac_cpp='$CPP $CPPFLAGS'
32545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32548
32549 fi
32550 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32551 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32552
32553 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32554
32555 cat >>confdefs.h <<\_ACEOF
32556 #define HAVE_FINITE_IN_IEEEFP_H 1
32557 _ACEOF
32558
32559 fi
32560
32561
32562
32563
32564
32565 for ac_header in stdlib.h unistd.h
32566 do
32567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32572   echo $ECHO_N "(cached) $ECHO_C" >&6
32573 fi
32574 ac_res=`eval echo '${'$as_ac_Header'}'`
32575                { echo "$as_me:$LINENO: result: $ac_res" >&5
32576 echo "${ECHO_T}$ac_res" >&6; }
32577 else
32578   # Is the header compilable?
32579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32581 cat >conftest.$ac_ext <<_ACEOF
32582 /* confdefs.h.  */
32583 _ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h.  */
32587 $ac_includes_default
32588 #include <$ac_header>
32589 _ACEOF
32590 rm -f conftest.$ac_objext
32591 if { (ac_try="$ac_compile"
32592 case "(($ac_try" in
32593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594   *) ac_try_echo=$ac_try;;
32595 esac
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597   (eval "$ac_compile") 2>conftest.er1
32598   ac_status=$?
32599   grep -v '^ *+' conftest.er1 >conftest.err
32600   rm -f conftest.er1
32601   cat conftest.err >&5
32602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603   (exit $ac_status); } &&
32604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32605   { (case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_try") 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; } &&
32614          { ac_try='test -s conftest.$ac_objext'
32615   { (case "(($ac_try" in
32616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617   *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620   (eval "$ac_try") 2>&5
32621   ac_status=$?
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); }; }; then
32624   ac_header_compiler=yes
32625 else
32626   echo "$as_me: failed program was:" >&5
32627 sed 's/^/| /' conftest.$ac_ext >&5
32628
32629         ac_header_compiler=no
32630 fi
32631
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32634 echo "${ECHO_T}$ac_header_compiler" >&6; }
32635
32636 # Is the header present?
32637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32639 cat >conftest.$ac_ext <<_ACEOF
32640 /* confdefs.h.  */
32641 _ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h.  */
32645 #include <$ac_header>
32646 _ACEOF
32647 if { (ac_try="$ac_cpp conftest.$ac_ext"
32648 case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } >/dev/null; then
32660   if test -s conftest.err; then
32661     ac_cpp_err=$ac_c_preproc_warn_flag
32662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32663   else
32664     ac_cpp_err=
32665   fi
32666 else
32667   ac_cpp_err=yes
32668 fi
32669 if test -z "$ac_cpp_err"; then
32670   ac_header_preproc=yes
32671 else
32672   echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32674
32675   ac_header_preproc=no
32676 fi
32677
32678 rm -f conftest.err conftest.$ac_ext
32679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32680 echo "${ECHO_T}$ac_header_preproc" >&6; }
32681
32682 # So?  What about this header?
32683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32684   yes:no: )
32685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32689     ac_header_preproc=yes
32690     ;;
32691   no:yes:* )
32692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32704     ( cat <<\_ASBOX
32705 ## ----------------------------------- ##
32706 ## Report this to llvmbugs@cs.uiuc.edu ##
32707 ## ----------------------------------- ##
32708 _ASBOX
32709      ) | sed "s/^/$as_me: WARNING:     /" >&2
32710     ;;
32711 esac
32712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32715   echo $ECHO_N "(cached) $ECHO_C" >&6
32716 else
32717   eval "$as_ac_Header=\$ac_header_preproc"
32718 fi
32719 ac_res=`eval echo '${'$as_ac_Header'}'`
32720                { echo "$as_me:$LINENO: result: $ac_res" >&5
32721 echo "${ECHO_T}$ac_res" >&6; }
32722
32723 fi
32724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32725   cat >>confdefs.h <<_ACEOF
32726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32727 _ACEOF
32728
32729 fi
32730
32731 done
32732
32733
32734 for ac_func in getpagesize
32735 do
32736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32740   echo $ECHO_N "(cached) $ECHO_C" >&6
32741 else
32742   cat >conftest.$ac_ext <<_ACEOF
32743 /* confdefs.h.  */
32744 _ACEOF
32745 cat confdefs.h >>conftest.$ac_ext
32746 cat >>conftest.$ac_ext <<_ACEOF
32747 /* end confdefs.h.  */
32748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32750 #define $ac_func innocuous_$ac_func
32751
32752 /* System header to define __stub macros and hopefully few prototypes,
32753     which can conflict with char $ac_func (); below.
32754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32755     <limits.h> exists even on freestanding compilers.  */
32756
32757 #ifdef __STDC__
32758 # include <limits.h>
32759 #else
32760 # include <assert.h>
32761 #endif
32762
32763 #undef $ac_func
32764
32765 /* Override any GCC internal prototype to avoid an error.
32766    Use char because int might match the return type of a GCC
32767    builtin and then its argument prototype would still apply.  */
32768 #ifdef __cplusplus
32769 extern "C"
32770 #endif
32771 char $ac_func ();
32772 /* The GNU C library defines this for functions which it implements
32773     to always fail with ENOSYS.  Some functions are actually named
32774     something starting with __ and the normal name is an alias.  */
32775 #if defined __stub_$ac_func || defined __stub___$ac_func
32776 choke me
32777 #endif
32778
32779 int
32780 main ()
32781 {
32782 return $ac_func ();
32783   ;
32784   return 0;
32785 }
32786 _ACEOF
32787 rm -f conftest.$ac_objext conftest$ac_exeext
32788 if { (ac_try="$ac_link"
32789 case "(($ac_try" in
32790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791   *) ac_try_echo=$ac_try;;
32792 esac
32793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794   (eval "$ac_link") 2>conftest.er1
32795   ac_status=$?
32796   grep -v '^ *+' conftest.er1 >conftest.err
32797   rm -f conftest.er1
32798   cat conftest.err >&5
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); } &&
32801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32802   { (case "(($ac_try" in
32803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804   *) ac_try_echo=$ac_try;;
32805 esac
32806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807   (eval "$ac_try") 2>&5
32808   ac_status=$?
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); }; } &&
32811          { ac_try='test -s conftest$ac_exeext'
32812   { (case "(($ac_try" in
32813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814   *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817   (eval "$ac_try") 2>&5
32818   ac_status=$?
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); }; }; then
32821   eval "$as_ac_var=yes"
32822 else
32823   echo "$as_me: failed program was:" >&5
32824 sed 's/^/| /' conftest.$ac_ext >&5
32825
32826         eval "$as_ac_var=no"
32827 fi
32828
32829 rm -f core conftest.err conftest.$ac_objext \
32830       conftest$ac_exeext conftest.$ac_ext
32831 fi
32832 ac_res=`eval echo '${'$as_ac_var'}'`
32833                { echo "$as_me:$LINENO: result: $ac_res" >&5
32834 echo "${ECHO_T}$ac_res" >&6; }
32835 if test `eval echo '${'$as_ac_var'}'` = yes; then
32836   cat >>confdefs.h <<_ACEOF
32837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32838 _ACEOF
32839
32840 fi
32841 done
32842
32843 { echo "$as_me:$LINENO: checking for working mmap" >&5
32844 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32845 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32846   echo $ECHO_N "(cached) $ECHO_C" >&6
32847 else
32848   if test "$cross_compiling" = yes; then
32849   ac_cv_func_mmap_fixed_mapped=no
32850 else
32851   cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 $ac_includes_default
32858 /* malloc might have been renamed as rpl_malloc. */
32859 #undef malloc
32860
32861 /* Thanks to Mike Haertel and Jim Avera for this test.
32862    Here is a matrix of mmap possibilities:
32863         mmap private not fixed
32864         mmap private fixed at somewhere currently unmapped
32865         mmap private fixed at somewhere already mapped
32866         mmap shared not fixed
32867         mmap shared fixed at somewhere currently unmapped
32868         mmap shared fixed at somewhere already mapped
32869    For private mappings, we should verify that changes cannot be read()
32870    back from the file, nor mmap's back from the file at a different
32871    address.  (There have been systems where private was not correctly
32872    implemented like the infamous i386 svr4.0, and systems where the
32873    VM page cache was not coherent with the file system buffer cache
32874    like early versions of FreeBSD and possibly contemporary NetBSD.)
32875    For shared mappings, we should conversely verify that changes get
32876    propagated back to all the places they're supposed to be.
32877
32878    Grep wants private fixed already mapped.
32879    The main things grep needs to know about mmap are:
32880    * does it exist and is it safe to write into the mmap'd area
32881    * how to use it (BSD variants)  */
32882
32883 #include <fcntl.h>
32884 #include <sys/mman.h>
32885
32886 #if !STDC_HEADERS && !HAVE_STDLIB_H
32887 char *malloc ();
32888 #endif
32889
32890 /* This mess was copied from the GNU getpagesize.h.  */
32891 #if !HAVE_GETPAGESIZE
32892 /* Assume that all systems that can run configure have sys/param.h.  */
32893 # if !HAVE_SYS_PARAM_H
32894 #  define HAVE_SYS_PARAM_H 1
32895 # endif
32896
32897 # ifdef _SC_PAGESIZE
32898 #  define getpagesize() sysconf(_SC_PAGESIZE)
32899 # else /* no _SC_PAGESIZE */
32900 #  if HAVE_SYS_PARAM_H
32901 #   include <sys/param.h>
32902 #   ifdef EXEC_PAGESIZE
32903 #    define getpagesize() EXEC_PAGESIZE
32904 #   else /* no EXEC_PAGESIZE */
32905 #    ifdef NBPG
32906 #     define getpagesize() NBPG * CLSIZE
32907 #     ifndef CLSIZE
32908 #      define CLSIZE 1
32909 #     endif /* no CLSIZE */
32910 #    else /* no NBPG */
32911 #     ifdef NBPC
32912 #      define getpagesize() NBPC
32913 #     else /* no NBPC */
32914 #      ifdef PAGESIZE
32915 #       define getpagesize() PAGESIZE
32916 #      endif /* PAGESIZE */
32917 #     endif /* no NBPC */
32918 #    endif /* no NBPG */
32919 #   endif /* no EXEC_PAGESIZE */
32920 #  else /* no HAVE_SYS_PARAM_H */
32921 #   define getpagesize() 8192   /* punt totally */
32922 #  endif /* no HAVE_SYS_PARAM_H */
32923 # endif /* no _SC_PAGESIZE */
32924
32925 #endif /* no HAVE_GETPAGESIZE */
32926
32927 int
32928 main ()
32929 {
32930   char *data, *data2, *data3;
32931   int i, pagesize;
32932   int fd;
32933
32934   pagesize = getpagesize ();
32935
32936   /* First, make a file with some known garbage in it. */
32937   data = (char *) malloc (pagesize);
32938   if (!data)
32939     return 1;
32940   for (i = 0; i < pagesize; ++i)
32941     *(data + i) = rand ();
32942   umask (0);
32943   fd = creat ("conftest.mmap", 0600);
32944   if (fd < 0)
32945     return 1;
32946   if (write (fd, data, pagesize) != pagesize)
32947     return 1;
32948   close (fd);
32949
32950   /* Next, try to mmap the file at a fixed address which already has
32951      something else allocated at it.  If we can, also make sure that
32952      we see the same garbage.  */
32953   fd = open ("conftest.mmap", O_RDWR);
32954   if (fd < 0)
32955     return 1;
32956   data2 = (char *) malloc (2 * pagesize);
32957   if (!data2)
32958     return 1;
32959   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32960   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32961                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
32962     return 1;
32963   for (i = 0; i < pagesize; ++i)
32964     if (*(data + i) != *(data2 + i))
32965       return 1;
32966
32967   /* Finally, make sure that changes to the mapped area do not
32968      percolate back to the file as seen by read().  (This is a bug on
32969      some variants of i386 svr4.0.)  */
32970   for (i = 0; i < pagesize; ++i)
32971     *(data2 + i) = *(data2 + i) + 1;
32972   data3 = (char *) malloc (pagesize);
32973   if (!data3)
32974     return 1;
32975   if (read (fd, data3, pagesize) != pagesize)
32976     return 1;
32977   for (i = 0; i < pagesize; ++i)
32978     if (*(data + i) != *(data3 + i))
32979       return 1;
32980   close (fd);
32981   return 0;
32982 }
32983 _ACEOF
32984 rm -f conftest$ac_exeext
32985 if { (ac_try="$ac_link"
32986 case "(($ac_try" in
32987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32988   *) ac_try_echo=$ac_try;;
32989 esac
32990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32991   (eval "$ac_link") 2>&5
32992   ac_status=$?
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32995   { (case "(($ac_try" in
32996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997   *) ac_try_echo=$ac_try;;
32998 esac
32999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000   (eval "$ac_try") 2>&5
33001   ac_status=$?
33002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003   (exit $ac_status); }; }; then
33004   ac_cv_func_mmap_fixed_mapped=yes
33005 else
33006   echo "$as_me: program exited with status $ac_status" >&5
33007 echo "$as_me: failed program was:" >&5
33008 sed 's/^/| /' conftest.$ac_ext >&5
33009
33010 ( exit $ac_status )
33011 ac_cv_func_mmap_fixed_mapped=no
33012 fi
33013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33014 fi
33015
33016
33017 fi
33018 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33019 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33020 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33021
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_MMAP 1
33024 _ACEOF
33025
33026 fi
33027 rm -f conftest.mmap
33028
33029 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33030 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33031 if test "${ac_cv_func_mmap_file+set}" = set; then
33032   echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33034    ac_ext=c
33035 ac_cpp='$CPP $CPPFLAGS'
33036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33039
33040   if test "$cross_compiling" = yes; then
33041   ac_cv_func_mmap_file=no
33042 else
33043   cat >conftest.$ac_ext <<_ACEOF
33044
33045     /* confdefs.h.  */
33046 _ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h.  */
33050
33051 #include <sys/types.h>
33052 #include <sys/mman.h>
33053 #include <fcntl.h>
33054
33055 int
33056 main ()
33057 {
33058
33059   int fd;
33060   fd = creat ("foo",0777);
33061   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33062   unlink ("foo");
33063   return (fd != (int) MAP_FAILED);
33064   ;
33065   return 0;
33066 }
33067 _ACEOF
33068 rm -f conftest$ac_exeext
33069 if { (ac_try="$ac_link"
33070 case "(($ac_try" in
33071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072   *) ac_try_echo=$ac_try;;
33073 esac
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075   (eval "$ac_link") 2>&5
33076   ac_status=$?
33077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33079   { (case "(($ac_try" in
33080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081   *) ac_try_echo=$ac_try;;
33082 esac
33083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084   (eval "$ac_try") 2>&5
33085   ac_status=$?
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); }; }; then
33088   ac_cv_func_mmap_file=yes
33089 else
33090   echo "$as_me: program exited with status $ac_status" >&5
33091 echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33093
33094 ( exit $ac_status )
33095 ac_cv_func_mmap_file=no
33096 fi
33097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33098 fi
33099
33100
33101   ac_ext=c
33102 ac_cpp='$CPP $CPPFLAGS'
33103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33106
33107
33108 fi
33109 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33110 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33111 if test "$ac_cv_func_mmap_file" = yes; then
33112
33113 cat >>confdefs.h <<\_ACEOF
33114 #define HAVE_MMAP_FILE
33115 _ACEOF
33116
33117    MMAP_FILE=yes
33118
33119 fi
33120
33121 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33122 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33123 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33124   echo $ECHO_N "(cached) $ECHO_C" >&6
33125 else
33126   if test "$llvm_cv_os_type" = "Interix" ; then
33127    ac_cv_need_dev_zero_for_mmap=yes
33128  else
33129    ac_cv_need_dev_zero_for_mmap=no
33130  fi
33131
33132 fi
33133 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33134 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33135 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33136
33137 cat >>confdefs.h <<\_ACEOF
33138 #define NEED_DEV_ZERO_FOR_MMAP 1
33139 _ACEOF
33140
33141 fi
33142 { echo "$as_me:$LINENO: checking for mprotect" >&5
33143 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33144 if test "${ac_cv_func_mprotect+set}" = set; then
33145   echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147   cat >conftest.$ac_ext <<_ACEOF
33148 /* confdefs.h.  */
33149 _ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h.  */
33153 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33155 #define mprotect innocuous_mprotect
33156
33157 /* System header to define __stub macros and hopefully few prototypes,
33158     which can conflict with char mprotect (); below.
33159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33160     <limits.h> exists even on freestanding compilers.  */
33161
33162 #ifdef __STDC__
33163 # include <limits.h>
33164 #else
33165 # include <assert.h>
33166 #endif
33167
33168 #undef mprotect
33169
33170 /* Override any GCC internal prototype to avoid an error.
33171    Use char because int might match the return type of a GCC
33172    builtin and then its argument prototype would still apply.  */
33173 #ifdef __cplusplus
33174 extern "C"
33175 #endif
33176 char mprotect ();
33177 /* The GNU C library defines this for functions which it implements
33178     to always fail with ENOSYS.  Some functions are actually named
33179     something starting with __ and the normal name is an alias.  */
33180 #if defined __stub_mprotect || defined __stub___mprotect
33181 choke me
33182 #endif
33183
33184 int
33185 main ()
33186 {
33187 return mprotect ();
33188   ;
33189   return 0;
33190 }
33191 _ACEOF
33192 rm -f conftest.$ac_objext conftest$ac_exeext
33193 if { (ac_try="$ac_link"
33194 case "(($ac_try" in
33195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196   *) ac_try_echo=$ac_try;;
33197 esac
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199   (eval "$ac_link") 2>conftest.er1
33200   ac_status=$?
33201   grep -v '^ *+' conftest.er1 >conftest.err
33202   rm -f conftest.er1
33203   cat conftest.err >&5
33204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205   (exit $ac_status); } &&
33206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33207   { (case "(($ac_try" in
33208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209   *) ac_try_echo=$ac_try;;
33210 esac
33211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212   (eval "$ac_try") 2>&5
33213   ac_status=$?
33214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215   (exit $ac_status); }; } &&
33216          { ac_try='test -s conftest$ac_exeext'
33217   { (case "(($ac_try" in
33218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219   *) ac_try_echo=$ac_try;;
33220 esac
33221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222   (eval "$ac_try") 2>&5
33223   ac_status=$?
33224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); }; }; then
33226   ac_cv_func_mprotect=yes
33227 else
33228   echo "$as_me: failed program was:" >&5
33229 sed 's/^/| /' conftest.$ac_ext >&5
33230
33231         ac_cv_func_mprotect=no
33232 fi
33233
33234 rm -f core conftest.err conftest.$ac_objext \
33235       conftest$ac_exeext conftest.$ac_ext
33236 fi
33237 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33238 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33239 if test $ac_cv_func_mprotect = yes; then
33240   :
33241 else
33242   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33243 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33244    { (exit 1); exit 1; }; }
33245 fi
33246
33247
33248 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33249 then
33250   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33251 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33252 fi
33253 if test "$ac_cv_func_mmap_file" = "no"
33254 then
33255   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33256 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33257 fi
33258
33259
33260 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33261 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33262 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33263   echo $ECHO_N "(cached) $ECHO_C" >&6
33264 else
33265   llvm_cv_llvmgcc_sanity="no"
33266 if test -x "$LLVMGCC" ; then
33267   cp /dev/null conftest.c
33268   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33269   if test $? -eq 0 ; then
33270     llvm_cv_llvmgcc_sanity="yes"
33271   fi
33272   rm conftest.c
33273 fi
33274 fi
33275 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33276 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33277
33278 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33279   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33280   LLVMCC1=$llvmcc1path
33281
33282   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33283   LLVMCC1PLUS=$llvmcc1pluspath
33284
33285   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33286   LLVMGCCDIR=$llvmgccdir
33287
33288   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33289   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33290   LLVMGCC_VERSION=$llvmgccversion
33291
33292   LLVMGCC_MAJVERS=$llvmgccmajvers
33293
33294 fi
33295
33296 SHLIBEXT=$libltdl_cv_shlibext
33297
33298
33299 # Translate the various configuration directories and other basic
33300 # information into substitutions that will end up in Makefile.config.in
33301 # that these configured values can be used by the makefiles
33302 if test "${prefix}" == "NONE" ; then
33303   prefix="/usr/local"
33304 fi
33305 eval LLVM_PREFIX="${prefix}";
33306 eval LLVM_BINDIR="${prefix}/bin";
33307 eval LLVM_LIBDIR="${prefix}/lib";
33308 eval LLVM_DATADIR="${prefix}/share/llvm";
33309 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33310 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33311 eval LLVM_INCLUDEDIR="${prefix}/include";
33312 eval LLVM_INFODIR="${prefix}/info";
33313 eval LLVM_MANDIR="${prefix}/man";
33314 LLVM_CONFIGTIME=`date`
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326 # Place the various directores into the config.h file as #defines so that we
33327 # can know about the installation paths within LLVM.
33328
33329 cat >>confdefs.h <<_ACEOF
33330 #define LLVM_PREFIX "$LLVM_PREFIX"
33331 _ACEOF
33332
33333
33334 cat >>confdefs.h <<_ACEOF
33335 #define LLVM_BINDIR "$LLVM_BINDIR"
33336 _ACEOF
33337
33338
33339 cat >>confdefs.h <<_ACEOF
33340 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33341 _ACEOF
33342
33343
33344 cat >>confdefs.h <<_ACEOF
33345 #define LLVM_DATADIR "$LLVM_DATADIR"
33346 _ACEOF
33347
33348
33349 cat >>confdefs.h <<_ACEOF
33350 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33351 _ACEOF
33352
33353
33354 cat >>confdefs.h <<_ACEOF
33355 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33356 _ACEOF
33357
33358
33359 cat >>confdefs.h <<_ACEOF
33360 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33361 _ACEOF
33362
33363
33364 cat >>confdefs.h <<_ACEOF
33365 #define LLVM_INFODIR "$LLVM_INFODIR"
33366 _ACEOF
33367
33368
33369 cat >>confdefs.h <<_ACEOF
33370 #define LLVM_MANDIR "$LLVM_MANDIR"
33371 _ACEOF
33372
33373
33374 cat >>confdefs.h <<_ACEOF
33375 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33376 _ACEOF
33377
33378
33379
33380 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33381
33382 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33383
33384 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33385
33386 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33387
33388 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33389
33390
33391 ac_config_files="$ac_config_files Makefile.config"
33392
33393
33394 ac_config_files="$ac_config_files llvm.spec"
33395
33396
33397 ac_config_files="$ac_config_files docs/doxygen.cfg"
33398
33399
33400 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33401
33402
33403 ac_config_commands="$ac_config_commands setup"
33404
33405 ac_config_commands="$ac_config_commands Makefile"
33406
33407
33408 ac_config_commands="$ac_config_commands Makefile.common"
33409
33410
33411 ac_config_commands="$ac_config_commands examples/Makefile"
33412
33413
33414 ac_config_commands="$ac_config_commands lib/Makefile"
33415
33416
33417 ac_config_commands="$ac_config_commands test/Makefile"
33418
33419
33420 ac_config_commands="$ac_config_commands test/Makefile.tests"
33421
33422
33423 ac_config_commands="$ac_config_commands tools/Makefile"
33424
33425
33426 ac_config_commands="$ac_config_commands utils/Makefile"
33427
33428
33429 ac_config_commands="$ac_config_commands projects/Makefile"
33430
33431
33432
33433 cat >confcache <<\_ACEOF
33434 # This file is a shell script that caches the results of configure
33435 # tests run on this system so they can be shared between configure
33436 # scripts and configure runs, see configure's option --config-cache.
33437 # It is not useful on other systems.  If it contains results you don't
33438 # want to keep, you may remove or edit it.
33439 #
33440 # config.status only pays attention to the cache file if you give it
33441 # the --recheck option to rerun configure.
33442 #
33443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33445 # following values.
33446
33447 _ACEOF
33448
33449 # The following way of writing the cache mishandles newlines in values,
33450 # but we know of no workaround that is simple, portable, and efficient.
33451 # So, we kill variables containing newlines.
33452 # Ultrix sh set writes to stderr and can't be redirected directly,
33453 # and sets the high bit in the cache file unless we assign to the vars.
33454 (
33455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33456     eval ac_val=\$$ac_var
33457     case $ac_val in #(
33458     *${as_nl}*)
33459       case $ac_var in #(
33460       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33462       esac
33463       case $ac_var in #(
33464       _ | IFS | as_nl) ;; #(
33465       *) $as_unset $ac_var ;;
33466       esac ;;
33467     esac
33468   done
33469
33470   (set) 2>&1 |
33471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33472     *${as_nl}ac_space=\ *)
33473       # `set' does not quote correctly, so add quotes (double-quote
33474       # substitution turns \\\\ into \\, and sed turns \\ into \).
33475       sed -n \
33476         "s/'/'\\\\''/g;
33477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33478       ;; #(
33479     *)
33480       # `set' quotes correctly as required by POSIX, so do not add quotes.
33481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33482       ;;
33483     esac |
33484     sort
33485 ) |
33486   sed '
33487      /^ac_cv_env_/b end
33488      t clear
33489      :clear
33490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33491      t end
33492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33493      :end' >>confcache
33494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33495   if test -w "$cache_file"; then
33496     test "x$cache_file" != "x/dev/null" &&
33497       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33498 echo "$as_me: updating cache $cache_file" >&6;}
33499     cat confcache >$cache_file
33500   else
33501     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33503   fi
33504 fi
33505 rm -f confcache
33506
33507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33508 # Let make expand exec_prefix.
33509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33510
33511 DEFS=-DHAVE_CONFIG_H
33512
33513 ac_libobjs=
33514 ac_ltlibobjs=
33515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33516   # 1. Remove the extension, and $U if already installed.
33517   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33518   ac_i=`echo "$ac_i" | sed "$ac_script"`
33519   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33520   #    will be set to the directory where LIBOBJS objects are built.
33521   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33522   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33523 done
33524 LIBOBJS=$ac_libobjs
33525
33526 LTLIBOBJS=$ac_ltlibobjs
33527
33528
33529 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33530   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33531 Usually this means the macro was only invoked conditionally." >&5
33532 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33533 Usually this means the macro was only invoked conditionally." >&2;}
33534    { (exit 1); exit 1; }; }
33535 fi
33536 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33537   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33538 Usually this means the macro was only invoked conditionally." >&5
33539 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33540 Usually this means the macro was only invoked conditionally." >&2;}
33541    { (exit 1); exit 1; }; }
33542 fi
33543
33544 : ${CONFIG_STATUS=./config.status}
33545 ac_clean_files_save=$ac_clean_files
33546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33549 cat >$CONFIG_STATUS <<_ACEOF
33550 #! $SHELL
33551 # Generated by $as_me.
33552 # Run this file to recreate the current configuration.
33553 # Compiler output produced by configure, useful for debugging
33554 # configure, is in config.log if it exists.
33555
33556 debug=false
33557 ac_cs_recheck=false
33558 ac_cs_silent=false
33559 SHELL=\${CONFIG_SHELL-$SHELL}
33560 _ACEOF
33561
33562 cat >>$CONFIG_STATUS <<\_ACEOF
33563 ## --------------------- ##
33564 ## M4sh Initialization.  ##
33565 ## --------------------- ##
33566
33567 # Be Bourne compatible
33568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33569   emulate sh
33570   NULLCMD=:
33571   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33572   # is contrary to our usage.  Disable this feature.
33573   alias -g '${1+"$@"}'='"$@"'
33574   setopt NO_GLOB_SUBST
33575 else
33576   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33577 fi
33578 BIN_SH=xpg4; export BIN_SH # for Tru64
33579 DUALCASE=1; export DUALCASE # for MKS sh
33580
33581
33582 # PATH needs CR
33583 # Avoid depending upon Character Ranges.
33584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33587 as_cr_digits='0123456789'
33588 as_cr_alnum=$as_cr_Letters$as_cr_digits
33589
33590 # The user is always right.
33591 if test "${PATH_SEPARATOR+set}" != set; then
33592   echo "#! /bin/sh" >conf$$.sh
33593   echo  "exit 0"   >>conf$$.sh
33594   chmod +x conf$$.sh
33595   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33596     PATH_SEPARATOR=';'
33597   else
33598     PATH_SEPARATOR=:
33599   fi
33600   rm -f conf$$.sh
33601 fi
33602
33603 # Support unset when possible.
33604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33605   as_unset=unset
33606 else
33607   as_unset=false
33608 fi
33609
33610
33611 # IFS
33612 # We need space, tab and new line, in precisely that order.  Quoting is
33613 # there to prevent editors from complaining about space-tab.
33614 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33615 # splitting by setting IFS to empty value.)
33616 as_nl='
33617 '
33618 IFS=" ""        $as_nl"
33619
33620 # Find who we are.  Look in the path if we contain no directory separator.
33621 case $0 in
33622   *[\\/]* ) as_myself=$0 ;;
33623   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624 for as_dir in $PATH
33625 do
33626   IFS=$as_save_IFS
33627   test -z "$as_dir" && as_dir=.
33628   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33629 done
33630 IFS=$as_save_IFS
33631
33632      ;;
33633 esac
33634 # We did not find ourselves, most probably we were run as `sh COMMAND'
33635 # in which case we are not to be found in the path.
33636 if test "x$as_myself" = x; then
33637   as_myself=$0
33638 fi
33639 if test ! -f "$as_myself"; then
33640   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33641   { (exit 1); exit 1; }
33642 fi
33643
33644 # Work around bugs in pre-3.0 UWIN ksh.
33645 for as_var in ENV MAIL MAILPATH
33646 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33647 done
33648 PS1='$ '
33649 PS2='> '
33650 PS4='+ '
33651
33652 # NLS nuisances.
33653 for as_var in \
33654   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33655   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33656   LC_TELEPHONE LC_TIME
33657 do
33658   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33659     eval $as_var=C; export $as_var
33660   else
33661     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33662   fi
33663 done
33664
33665 # Required to use basename.
33666 if expr a : '\(a\)' >/dev/null 2>&1 &&
33667    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33668   as_expr=expr
33669 else
33670   as_expr=false
33671 fi
33672
33673 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33674   as_basename=basename
33675 else
33676   as_basename=false
33677 fi
33678
33679
33680 # Name of the executable.
33681 as_me=`$as_basename -- "$0" ||
33682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33683          X"$0" : 'X\(//\)$' \| \
33684          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33685 echo X/"$0" |
33686     sed '/^.*\/\([^/][^/]*\)\/*$/{
33687             s//\1/
33688             q
33689           }
33690           /^X\/\(\/\/\)$/{
33691             s//\1/
33692             q
33693           }
33694           /^X\/\(\/\).*/{
33695             s//\1/
33696             q
33697           }
33698           s/.*/./; q'`
33699
33700 # CDPATH.
33701 $as_unset CDPATH
33702
33703
33704
33705   as_lineno_1=$LINENO
33706   as_lineno_2=$LINENO
33707   test "x$as_lineno_1" != "x$as_lineno_2" &&
33708   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33709
33710   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33711   # uniformly replaced by the line number.  The first 'sed' inserts a
33712   # line-number line after each line using $LINENO; the second 'sed'
33713   # does the real work.  The second script uses 'N' to pair each
33714   # line-number line with the line containing $LINENO, and appends
33715   # trailing '-' during substitution so that $LINENO is not a special
33716   # case at line end.
33717   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33718   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33719   # E. McMahon (1931-1989) for sed's syntax.  :-)
33720   sed -n '
33721     p
33722     /[$]LINENO/=
33723   ' <$as_myself |
33724     sed '
33725       s/[$]LINENO.*/&-/
33726       t lineno
33727       b
33728       :lineno
33729       N
33730       :loop
33731       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33732       t loop
33733       s/-\n.*//
33734     ' >$as_me.lineno &&
33735   chmod +x "$as_me.lineno" ||
33736     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33737    { (exit 1); exit 1; }; }
33738
33739   # Don't try to exec as it changes $[0], causing all sort of problems
33740   # (the dirname of $[0] is not the place where we might find the
33741   # original and so on.  Autoconf is especially sensitive to this).
33742   . "./$as_me.lineno"
33743   # Exit status is that of the last command.
33744   exit
33745 }
33746
33747
33748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33749   as_dirname=dirname
33750 else
33751   as_dirname=false
33752 fi
33753
33754 ECHO_C= ECHO_N= ECHO_T=
33755 case `echo -n x` in
33756 -n*)
33757   case `echo 'x\c'` in
33758   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33759   *)   ECHO_C='\c';;
33760   esac;;
33761 *)
33762   ECHO_N='-n';;
33763 esac
33764
33765 if expr a : '\(a\)' >/dev/null 2>&1 &&
33766    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33767   as_expr=expr
33768 else
33769   as_expr=false
33770 fi
33771
33772 rm -f conf$$ conf$$.exe conf$$.file
33773 if test -d conf$$.dir; then
33774   rm -f conf$$.dir/conf$$.file
33775 else
33776   rm -f conf$$.dir
33777   mkdir conf$$.dir
33778 fi
33779 echo >conf$$.file
33780 if ln -s conf$$.file conf$$ 2>/dev/null; then
33781   as_ln_s='ln -s'
33782   # ... but there are two gotchas:
33783   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33784   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33785   # In both cases, we have to default to `cp -p'.
33786   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33787     as_ln_s='cp -p'
33788 elif ln conf$$.file conf$$ 2>/dev/null; then
33789   as_ln_s=ln
33790 else
33791   as_ln_s='cp -p'
33792 fi
33793 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33794 rmdir conf$$.dir 2>/dev/null
33795
33796 if mkdir -p . 2>/dev/null; then
33797   as_mkdir_p=:
33798 else
33799   test -d ./-p && rmdir ./-p
33800   as_mkdir_p=false
33801 fi
33802
33803 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33804 # systems may use methods other than mode bits to determine executability.
33805 cat >conf$$.file <<_ASEOF
33806 #! /bin/sh
33807 exit 0
33808 _ASEOF
33809 chmod +x conf$$.file
33810 if test -x conf$$.file >/dev/null 2>&1; then
33811   as_executable_p="test -x"
33812 else
33813   as_executable_p=:
33814 fi
33815 rm -f conf$$.file
33816
33817 # Sed expression to map a string onto a valid CPP name.
33818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33819
33820 # Sed expression to map a string onto a valid variable name.
33821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33822
33823
33824 exec 6>&1
33825
33826 # Save the log message, to keep $[0] and so on meaningful, and to
33827 # report actual input values of CONFIG_FILES etc. instead of their
33828 # values after options handling.
33829 ac_log="
33830 This file was extended by llvm $as_me 2.0cvs, which was
33831 generated by GNU Autoconf 2.60.  Invocation command line was
33832
33833   CONFIG_FILES    = $CONFIG_FILES
33834   CONFIG_HEADERS  = $CONFIG_HEADERS
33835   CONFIG_LINKS    = $CONFIG_LINKS
33836   CONFIG_COMMANDS = $CONFIG_COMMANDS
33837   $ $0 $@
33838
33839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33840 "
33841
33842 _ACEOF
33843
33844 cat >>$CONFIG_STATUS <<_ACEOF
33845 # Files that config.status was made for.
33846 config_files="$ac_config_files"
33847 config_headers="$ac_config_headers"
33848 config_commands="$ac_config_commands"
33849
33850 _ACEOF
33851
33852 cat >>$CONFIG_STATUS <<\_ACEOF
33853 ac_cs_usage="\
33854 \`$as_me' instantiates files from templates according to the
33855 current configuration.
33856
33857 Usage: $0 [OPTIONS] [FILE]...
33858
33859   -h, --help       print this help, then exit
33860   -V, --version    print version number, then exit
33861   -q, --quiet      do not print progress messages
33862   -d, --debug      don't remove temporary files
33863       --recheck    update $as_me by reconfiguring in the same conditions
33864   --file=FILE[:TEMPLATE]
33865                    instantiate the configuration file FILE
33866   --header=FILE[:TEMPLATE]
33867                    instantiate the configuration header FILE
33868
33869 Configuration files:
33870 $config_files
33871
33872 Configuration headers:
33873 $config_headers
33874
33875 Configuration commands:
33876 $config_commands
33877
33878 Report bugs to <bug-autoconf@gnu.org>."
33879
33880 _ACEOF
33881 cat >>$CONFIG_STATUS <<_ACEOF
33882 ac_cs_version="\\
33883 llvm config.status 2.0cvs
33884 configured by $0, generated by GNU Autoconf 2.60,
33885   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33886
33887 Copyright (C) 2006 Free Software Foundation, Inc.
33888 This config.status script is free software; the Free Software Foundation
33889 gives unlimited permission to copy, distribute and modify it."
33890
33891 ac_pwd='$ac_pwd'
33892 srcdir='$srcdir'
33893 INSTALL='$INSTALL'
33894 _ACEOF
33895
33896 cat >>$CONFIG_STATUS <<\_ACEOF
33897 # If no file are specified by the user, then we need to provide default
33898 # value.  By we need to know if files were specified by the user.
33899 ac_need_defaults=:
33900 while test $# != 0
33901 do
33902   case $1 in
33903   --*=*)
33904     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33905     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33906     ac_shift=:
33907     ;;
33908   *)
33909     ac_option=$1
33910     ac_optarg=$2
33911     ac_shift=shift
33912     ;;
33913   esac
33914
33915   case $ac_option in
33916   # Handling of the options.
33917   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33918     ac_cs_recheck=: ;;
33919   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33920     echo "$ac_cs_version"; exit ;;
33921   --debug | --debu | --deb | --de | --d | -d )
33922     debug=: ;;
33923   --file | --fil | --fi | --f )
33924     $ac_shift
33925     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33926     ac_need_defaults=false;;
33927   --header | --heade | --head | --hea )
33928     $ac_shift
33929     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33930     ac_need_defaults=false;;
33931   --he | --h)
33932     # Conflict between --help and --header
33933     { echo "$as_me: error: ambiguous option: $1
33934 Try \`$0 --help' for more information." >&2
33935    { (exit 1); exit 1; }; };;
33936   --help | --hel | -h )
33937     echo "$ac_cs_usage"; exit ;;
33938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33940     ac_cs_silent=: ;;
33941
33942   # This is an error.
33943   -*) { echo "$as_me: error: unrecognized option: $1
33944 Try \`$0 --help' for more information." >&2
33945    { (exit 1); exit 1; }; } ;;
33946
33947   *) ac_config_targets="$ac_config_targets $1"
33948      ac_need_defaults=false ;;
33949
33950   esac
33951   shift
33952 done
33953
33954 ac_configure_extra_args=
33955
33956 if $ac_cs_silent; then
33957   exec 6>/dev/null
33958   ac_configure_extra_args="$ac_configure_extra_args --silent"
33959 fi
33960
33961 _ACEOF
33962 cat >>$CONFIG_STATUS <<_ACEOF
33963 if \$ac_cs_recheck; then
33964   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33965   CONFIG_SHELL=$SHELL
33966   export CONFIG_SHELL
33967   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33968 fi
33969
33970 _ACEOF
33971 cat >>$CONFIG_STATUS <<\_ACEOF
33972 exec 5>>config.log
33973 {
33974   echo
33975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33976 ## Running $as_me. ##
33977 _ASBOX
33978   echo "$ac_log"
33979 } >&5
33980
33981 _ACEOF
33982 cat >>$CONFIG_STATUS <<_ACEOF
33983 #
33984 # INIT-COMMANDS
33985 #
33986 llvm_src="${srcdir}"
33987
33988 _ACEOF
33989
33990 cat >>$CONFIG_STATUS <<\_ACEOF
33991
33992 # Handling of arguments.
33993 for ac_config_target in $ac_config_targets
33994 do
33995   case $ac_config_target in
33996     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33997     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33998     "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33999     "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34000     "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34001     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34002     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34003     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34004     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34005     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34006     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34007     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34008     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34009     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34010     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34011     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34012     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34013     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34014     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34015
34016   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34017 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34018    { (exit 1); exit 1; }; };;
34019   esac
34020 done
34021
34022
34023 # If the user did not use the arguments to specify the items to instantiate,
34024 # then the envvar interface is used.  Set only those that are not.
34025 # We use the long form for the default assignment because of an extremely
34026 # bizarre bug on SunOS 4.1.3.
34027 if $ac_need_defaults; then
34028   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34029   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34030   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34031 fi
34032
34033 # Have a temporary directory for convenience.  Make it in the build tree
34034 # simply because there is no reason against having it here, and in addition,
34035 # creating and moving files from /tmp can sometimes cause problems.
34036 # Hook for its removal unless debugging.
34037 # Note that there is a small window in which the directory will not be cleaned:
34038 # after its creation but before its name has been assigned to `$tmp'.
34039 $debug ||
34040 {
34041   tmp=
34042   trap 'exit_status=$?
34043   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34044 ' 0
34045   trap '{ (exit 1); exit 1; }' 1 2 13 15
34046 }
34047 # Create a (secure) tmp directory for tmp files.
34048
34049 {
34050   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34051   test -n "$tmp" && test -d "$tmp"
34052 }  ||
34053 {
34054   tmp=./conf$$-$RANDOM
34055   (umask 077 && mkdir "$tmp")
34056 } ||
34057 {
34058    echo "$me: cannot create a temporary directory in ." >&2
34059    { (exit 1); exit 1; }
34060 }
34061
34062 #
34063 # Set up the sed scripts for CONFIG_FILES section.
34064 #
34065
34066 # No need to generate the scripts if there are no CONFIG_FILES.
34067 # This happens for instance when ./config.status config.h
34068 if test -n "$CONFIG_FILES"; then
34069
34070 _ACEOF
34071
34072
34073
34074 ac_delim='%!_!# '
34075 for ac_last_try in false false false false false :; do
34076   cat >conf$$subs.sed <<_ACEOF
34077 SHELL!$SHELL$ac_delim
34078 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34079 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34080 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34081 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34082 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34083 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34084 exec_prefix!$exec_prefix$ac_delim
34085 prefix!$prefix$ac_delim
34086 program_transform_name!$program_transform_name$ac_delim
34087 bindir!$bindir$ac_delim
34088 sbindir!$sbindir$ac_delim
34089 libexecdir!$libexecdir$ac_delim
34090 datarootdir!$datarootdir$ac_delim
34091 datadir!$datadir$ac_delim
34092 sysconfdir!$sysconfdir$ac_delim
34093 sharedstatedir!$sharedstatedir$ac_delim
34094 localstatedir!$localstatedir$ac_delim
34095 includedir!$includedir$ac_delim
34096 oldincludedir!$oldincludedir$ac_delim
34097 docdir!$docdir$ac_delim
34098 infodir!$infodir$ac_delim
34099 htmldir!$htmldir$ac_delim
34100 dvidir!$dvidir$ac_delim
34101 pdfdir!$pdfdir$ac_delim
34102 psdir!$psdir$ac_delim
34103 libdir!$libdir$ac_delim
34104 localedir!$localedir$ac_delim
34105 mandir!$mandir$ac_delim
34106 DEFS!$DEFS$ac_delim
34107 ECHO_C!$ECHO_C$ac_delim
34108 ECHO_N!$ECHO_N$ac_delim
34109 ECHO_T!$ECHO_T$ac_delim
34110 LIBS!$LIBS$ac_delim
34111 build_alias!$build_alias$ac_delim
34112 host_alias!$host_alias$ac_delim
34113 target_alias!$target_alias$ac_delim
34114 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34115 subdirs!$subdirs$ac_delim
34116 build!$build$ac_delim
34117 build_cpu!$build_cpu$ac_delim
34118 build_vendor!$build_vendor$ac_delim
34119 build_os!$build_os$ac_delim
34120 host!$host$ac_delim
34121 host_cpu!$host_cpu$ac_delim
34122 host_vendor!$host_vendor$ac_delim
34123 host_os!$host_os$ac_delim
34124 target!$target$ac_delim
34125 target_cpu!$target_cpu$ac_delim
34126 target_vendor!$target_vendor$ac_delim
34127 target_os!$target_os$ac_delim
34128 OS!$OS$ac_delim
34129 LINKALL!$LINKALL$ac_delim
34130 NOLINKALL!$NOLINKALL$ac_delim
34131 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34132 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34133 ARCH!$ARCH$ac_delim
34134 ENDIAN!$ENDIAN$ac_delim
34135 CC!$CC$ac_delim
34136 CFLAGS!$CFLAGS$ac_delim
34137 LDFLAGS!$LDFLAGS$ac_delim
34138 CPPFLAGS!$CPPFLAGS$ac_delim
34139 ac_ct_CC!$ac_ct_CC$ac_delim
34140 EXEEXT!$EXEEXT$ac_delim
34141 OBJEXT!$OBJEXT$ac_delim
34142 CPP!$CPP$ac_delim
34143 GREP!$GREP$ac_delim
34144 EGREP!$EGREP$ac_delim
34145 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34146 BUILD_CC!$BUILD_CC$ac_delim
34147 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34148 CVSBUILD!$CVSBUILD$ac_delim
34149 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34150 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34151 JIT!$JIT$ac_delim
34152 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34153 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34154 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34155 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34156 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34157 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34158 CXX!$CXX$ac_delim
34159 CXXFLAGS!$CXXFLAGS$ac_delim
34160 ac_ct_CXX!$ac_ct_CXX$ac_delim
34161 LEX!$LEX$ac_delim
34162 LEXLIB!$LEXLIB$ac_delim
34163 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34164 FLEX!$FLEX$ac_delim
34165 YACC!$YACC$ac_delim
34166 YFLAGS!$YFLAGS$ac_delim
34167 BISON!$BISON$ac_delim
34168 NM!$NM$ac_delim
34169 ifGNUmake!$ifGNUmake$ac_delim
34170 LN_S!$LN_S$ac_delim
34171 CMP!$CMP$ac_delim
34172 CP!$CP$ac_delim
34173 DATE!$DATE$ac_delim
34174 _ACEOF
34175
34176   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34177     break
34178   elif $ac_last_try; then
34179     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34180 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34181    { (exit 1); exit 1; }; }
34182   else
34183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34184   fi
34185 done
34186
34187 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34188 if test -n "$ac_eof"; then
34189   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34190   ac_eof=`expr $ac_eof + 1`
34191 fi
34192
34193 cat >>$CONFIG_STATUS <<_ACEOF
34194 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34196 _ACEOF
34197 sed '
34198 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34199 s/^/s,@/; s/!/@,|#_!!_#|/
34200 :n
34201 t n
34202 s/'"$ac_delim"'$/,g/; t
34203 s/$/\\/; p
34204 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34205 ' >>$CONFIG_STATUS <conf$$subs.sed
34206 rm -f conf$$subs.sed
34207 cat >>$CONFIG_STATUS <<_ACEOF
34208 CEOF$ac_eof
34209 _ACEOF
34210
34211
34212 ac_delim='%!_!# '
34213 for ac_last_try in false false false false false :; do
34214   cat >conf$$subs.sed <<_ACEOF
34215 FIND!$FIND$ac_delim
34216 MKDIR!$MKDIR$ac_delim
34217 MV!$MV$ac_delim
34218 RANLIB!$RANLIB$ac_delim
34219 RM!$RM$ac_delim
34220 SED!$SED$ac_delim
34221 TAR!$TAR$ac_delim
34222 BINPWD!$BINPWD$ac_delim
34223 GRAPHVIZ!$GRAPHVIZ$ac_delim
34224 DOT!$DOT$ac_delim
34225 GV!$GV$ac_delim
34226 DOTTY!$DOTTY$ac_delim
34227 PERL!$PERL$ac_delim
34228 HAVE_PERL!$HAVE_PERL$ac_delim
34229 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34230 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34231 INSTALL_DATA!$INSTALL_DATA$ac_delim
34232 BZIP2!$BZIP2$ac_delim
34233 DOXYGEN!$DOXYGEN$ac_delim
34234 GROFF!$GROFF$ac_delim
34235 GZIP!$GZIP$ac_delim
34236 POD2HTML!$POD2HTML$ac_delim
34237 POD2MAN!$POD2MAN$ac_delim
34238 RUNTEST!$RUNTEST$ac_delim
34239 TCLSH!$TCLSH$ac_delim
34240 ZIP!$ZIP$ac_delim
34241 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34242 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34243 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34244 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34245 LIBADD_DL!$LIBADD_DL$ac_delim
34246 ECHO!$ECHO$ac_delim
34247 AR!$AR$ac_delim
34248 STRIP!$STRIP$ac_delim
34249 CXXCPP!$CXXCPP$ac_delim
34250 F77!$F77$ac_delim
34251 FFLAGS!$FFLAGS$ac_delim
34252 ac_ct_F77!$ac_ct_F77$ac_delim
34253 LIBTOOL!$LIBTOOL$ac_delim
34254 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34255 LLVMGCC!$LLVMGCC$ac_delim
34256 LLVMGXX!$LLVMGXX$ac_delim
34257 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34258 ALLOCA!$ALLOCA$ac_delim
34259 MMAP_FILE!$MMAP_FILE$ac_delim
34260 LLVMCC1!$LLVMCC1$ac_delim
34261 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34262 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34263 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34264 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34265 SHLIBEXT!$SHLIBEXT$ac_delim
34266 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34267 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34268 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34269 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34270 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34271 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34272 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34273 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34274 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34275 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34276 LIBOBJS!$LIBOBJS$ac_delim
34277 LTLIBOBJS!$LTLIBOBJS$ac_delim
34278 _ACEOF
34279
34280   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
34281     break
34282   elif $ac_last_try; then
34283     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34284 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34285    { (exit 1); exit 1; }; }
34286   else
34287     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34288   fi
34289 done
34290
34291 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34292 if test -n "$ac_eof"; then
34293   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34294   ac_eof=`expr $ac_eof + 1`
34295 fi
34296
34297 cat >>$CONFIG_STATUS <<_ACEOF
34298 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34300 _ACEOF
34301 sed '
34302 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34303 s/^/s,@/; s/!/@,|#_!!_#|/
34304 :n
34305 t n
34306 s/'"$ac_delim"'$/,g/; t
34307 s/$/\\/; p
34308 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34309 ' >>$CONFIG_STATUS <conf$$subs.sed
34310 rm -f conf$$subs.sed
34311 cat >>$CONFIG_STATUS <<_ACEOF
34312 :end
34313 s/|#_!!_#|//g
34314 CEOF$ac_eof
34315 _ACEOF
34316
34317
34318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34320 # trailing colons and then remove the whole line if VPATH becomes empty
34321 # (actually we leave an empty line to preserve line numbers).
34322 if test "x$srcdir" = x.; then
34323   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34324 s/:*\$(srcdir):*/:/
34325 s/:*\${srcdir}:*/:/
34326 s/:*@srcdir@:*/:/
34327 s/^\([^=]*=[     ]*\):*/\1/
34328 s/:*$//
34329 s/^[^=]*=[       ]*$//
34330 }'
34331 fi
34332
34333 cat >>$CONFIG_STATUS <<\_ACEOF
34334 fi # test -n "$CONFIG_FILES"
34335
34336
34337 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34338 do
34339   case $ac_tag in
34340   :[FHLC]) ac_mode=$ac_tag; continue;;
34341   esac
34342   case $ac_mode$ac_tag in
34343   :[FHL]*:*);;
34344   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34345 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34346    { (exit 1); exit 1; }; };;
34347   :[FH]-) ac_tag=-:-;;
34348   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34349   esac
34350   ac_save_IFS=$IFS
34351   IFS=:
34352   set x $ac_tag
34353   IFS=$ac_save_IFS
34354   shift
34355   ac_file=$1
34356   shift
34357
34358   case $ac_mode in
34359   :L) ac_source=$1;;
34360   :[FH])
34361     ac_file_inputs=
34362     for ac_f
34363     do
34364       case $ac_f in
34365       -) ac_f="$tmp/stdin";;
34366       *) # Look for the file first in the build tree, then in the source tree
34367          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34368          # because $ac_f cannot contain `:'.
34369          test -f "$ac_f" ||
34370            case $ac_f in
34371            [\\/$]*) false;;
34372            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34373            esac ||
34374            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34375 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34376    { (exit 1); exit 1; }; };;
34377       esac
34378       ac_file_inputs="$ac_file_inputs $ac_f"
34379     done
34380
34381     # Let's still pretend it is `configure' which instantiates (i.e., don't
34382     # use $as_me), people would be surprised to read:
34383     #    /* config.h.  Generated by config.status.  */
34384     configure_input="Generated from "`IFS=:
34385           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34386     if test x"$ac_file" != x-; then
34387       configure_input="$ac_file.  $configure_input"
34388       { echo "$as_me:$LINENO: creating $ac_file" >&5
34389 echo "$as_me: creating $ac_file" >&6;}
34390     fi
34391
34392     case $ac_tag in
34393     *:-:* | *:-) cat >"$tmp/stdin";;
34394     esac
34395     ;;
34396   esac
34397
34398   ac_dir=`$as_dirname -- "$ac_file" ||
34399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34400          X"$ac_file" : 'X\(//\)[^/]' \| \
34401          X"$ac_file" : 'X\(//\)$' \| \
34402          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34403 echo X"$ac_file" |
34404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34405             s//\1/
34406             q
34407           }
34408           /^X\(\/\/\)[^/].*/{
34409             s//\1/
34410             q
34411           }
34412           /^X\(\/\/\)$/{
34413             s//\1/
34414             q
34415           }
34416           /^X\(\/\).*/{
34417             s//\1/
34418             q
34419           }
34420           s/.*/./; q'`
34421   { as_dir="$ac_dir"
34422   case $as_dir in #(
34423   -*) as_dir=./$as_dir;;
34424   esac
34425   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34426     as_dirs=
34427     while :; do
34428       case $as_dir in #(
34429       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34430       *) as_qdir=$as_dir;;
34431       esac
34432       as_dirs="'$as_qdir' $as_dirs"
34433       as_dir=`$as_dirname -- "$as_dir" ||
34434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34435          X"$as_dir" : 'X\(//\)[^/]' \| \
34436          X"$as_dir" : 'X\(//\)$' \| \
34437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34438 echo X"$as_dir" |
34439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34440             s//\1/
34441             q
34442           }
34443           /^X\(\/\/\)[^/].*/{
34444             s//\1/
34445             q
34446           }
34447           /^X\(\/\/\)$/{
34448             s//\1/
34449             q
34450           }
34451           /^X\(\/\).*/{
34452             s//\1/
34453             q
34454           }
34455           s/.*/./; q'`
34456       test -d "$as_dir" && break
34457     done
34458     test -z "$as_dirs" || eval "mkdir $as_dirs"
34459   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34461    { (exit 1); exit 1; }; }; }
34462   ac_builddir=.
34463
34464 case "$ac_dir" in
34465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34466 *)
34467   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34468   # A ".." for each directory in $ac_dir_suffix.
34469   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34470   case $ac_top_builddir_sub in
34471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34473   esac ;;
34474 esac
34475 ac_abs_top_builddir=$ac_pwd
34476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34477 # for backward compatibility:
34478 ac_top_builddir=$ac_top_build_prefix
34479
34480 case $srcdir in
34481   .)  # We are building in place.
34482     ac_srcdir=.
34483     ac_top_srcdir=$ac_top_builddir_sub
34484     ac_abs_top_srcdir=$ac_pwd ;;
34485   [\\/]* | ?:[\\/]* )  # Absolute name.
34486     ac_srcdir=$srcdir$ac_dir_suffix;
34487     ac_top_srcdir=$srcdir
34488     ac_abs_top_srcdir=$srcdir ;;
34489   *) # Relative name.
34490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34491     ac_top_srcdir=$ac_top_build_prefix$srcdir
34492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34493 esac
34494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34495
34496
34497   case $ac_mode in
34498   :F)
34499   #
34500   # CONFIG_FILE
34501   #
34502
34503   case $INSTALL in
34504   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34505   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34506   esac
34507 _ACEOF
34508
34509 cat >>$CONFIG_STATUS <<\_ACEOF
34510 # If the template does not know about datarootdir, expand it.
34511 # FIXME: This hack should be removed a few years after 2.60.
34512 ac_datarootdir_hack=; ac_datarootdir_seen=
34513
34514 case `sed -n '/datarootdir/ {
34515   p
34516   q
34517 }
34518 /@datadir@/p
34519 /@docdir@/p
34520 /@infodir@/p
34521 /@localedir@/p
34522 /@mandir@/p
34523 ' $ac_file_inputs` in
34524 *datarootdir*) ac_datarootdir_seen=yes;;
34525 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34526   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34527 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34528 _ACEOF
34529 cat >>$CONFIG_STATUS <<_ACEOF
34530   ac_datarootdir_hack='
34531   s&@datadir@&$datadir&g
34532   s&@docdir@&$docdir&g
34533   s&@infodir@&$infodir&g
34534   s&@localedir@&$localedir&g
34535   s&@mandir@&$mandir&g
34536     s&\\\${datarootdir}&$datarootdir&g' ;;
34537 esac
34538 _ACEOF
34539
34540 # Neutralize VPATH when `$srcdir' = `.'.
34541 # Shell code in configure.ac might set extrasub.
34542 # FIXME: do we really want to maintain this feature?
34543 cat >>$CONFIG_STATUS <<_ACEOF
34544   sed "$ac_vpsub
34545 $extrasub
34546 _ACEOF
34547 cat >>$CONFIG_STATUS <<\_ACEOF
34548 :t
34549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34550 s&@configure_input@&$configure_input&;t t
34551 s&@top_builddir@&$ac_top_builddir_sub&;t t
34552 s&@srcdir@&$ac_srcdir&;t t
34553 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34554 s&@top_srcdir@&$ac_top_srcdir&;t t
34555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34556 s&@builddir@&$ac_builddir&;t t
34557 s&@abs_builddir@&$ac_abs_builddir&;t t
34558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34559 s&@INSTALL@&$ac_INSTALL&;t t
34560 $ac_datarootdir_hack
34561 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34562
34563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34564   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34565   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34566   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34567 which seems to be undefined.  Please make sure it is defined." >&5
34568 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34569 which seems to be undefined.  Please make sure it is defined." >&2;}
34570
34571   rm -f "$tmp/stdin"
34572   case $ac_file in
34573   -) cat "$tmp/out"; rm -f "$tmp/out";;
34574   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34575   esac
34576  ;;
34577   :H)
34578   #
34579   # CONFIG_HEADER
34580   #
34581 _ACEOF
34582
34583 # Transform confdefs.h into a sed script `conftest.defines', that
34584 # substitutes the proper values into config.h.in to produce config.h.
34585 rm -f conftest.defines conftest.tail
34586 # First, append a space to every undef/define line, to ease matching.
34587 echo 's/$/ /' >conftest.defines
34588 # Then, protect against being on the right side of a sed subst, or in
34589 # an unquoted here document, in config.status.  If some macros were
34590 # called several times there might be several #defines for the same
34591 # symbol, which is useless.  But do not sort them, since the last
34592 # AC_DEFINE must be honored.
34593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34594 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34595 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34596 # PARAMS is the parameter list in the macro definition--in most cases, it's
34597 # just an empty string.
34598 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34599 ac_dB='\\)[      (].*,\\1define\\2'
34600 ac_dC=' '
34601 ac_dD=' ,'
34602
34603 uniq confdefs.h |
34604   sed -n '
34605         t rset
34606         :rset
34607         s/^[     ]*#[    ]*define[       ][      ]*//
34608         t ok
34609         d
34610         :ok
34611         s/[\\&,]/\\&/g
34612         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34613         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34614   ' >>conftest.defines
34615
34616 # Remove the space that was appended to ease matching.
34617 # Then replace #undef with comments.  This is necessary, for
34618 # example, in the case of _POSIX_SOURCE, which is predefined and required
34619 # on some systems where configure will not decide to define it.
34620 # (The regexp can be short, since the line contains either #define or #undef.)
34621 echo 's/ $//
34622 s,^[     #]*u.*,/* & */,' >>conftest.defines
34623
34624 # Break up conftest.defines:
34625 ac_max_sed_lines=50
34626
34627 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34628 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34629 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34630 # et cetera.
34631 ac_in='$ac_file_inputs'
34632 ac_out='"$tmp/out1"'
34633 ac_nxt='"$tmp/out2"'
34634
34635 while :
34636 do
34637   # Write a here document:
34638     cat >>$CONFIG_STATUS <<_ACEOF
34639     # First, check the format of the line:
34640     cat >"\$tmp/defines.sed" <<\\CEOF
34641 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34642 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34643 b
34644 :def
34645 _ACEOF
34646   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34647   echo 'CEOF
34648     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34649   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34650   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34651   grep . conftest.tail >/dev/null || break
34652   rm -f conftest.defines
34653   mv conftest.tail conftest.defines
34654 done
34655 rm -f conftest.defines conftest.tail
34656
34657 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34658 cat >>$CONFIG_STATUS <<\_ACEOF
34659   if test x"$ac_file" != x-; then
34660     echo "/* $configure_input  */" >"$tmp/config.h"
34661     cat "$ac_result" >>"$tmp/config.h"
34662     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34663       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34664 echo "$as_me: $ac_file is unchanged" >&6;}
34665     else
34666       rm -f $ac_file
34667       mv "$tmp/config.h" $ac_file
34668     fi
34669   else
34670     echo "/* $configure_input  */"
34671     cat "$ac_result"
34672   fi
34673   rm -f "$tmp/out12"
34674  ;;
34675
34676   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34677 echo "$as_me: executing $ac_file commands" >&6;}
34678  ;;
34679   esac
34680
34681
34682   case $ac_file$ac_mode in
34683     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34684    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34685     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34686    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34687     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34688    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34689     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34690    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34691     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34692    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34693     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34694    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34695     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34696    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34697     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34698    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34699     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34700    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34701
34702   esac
34703 done # for ac_tag
34704
34705
34706 { (exit 0); exit 0; }
34707 _ACEOF
34708 chmod +x $CONFIG_STATUS
34709 ac_clean_files=$ac_clean_files_save
34710
34711
34712 # configure is writing to config.log, and then calls config.status.
34713 # config.status does its own redirection, appending to config.log.
34714 # Unfortunately, on DOS this fails, as config.log is still kept open
34715 # by configure, so config.status won't be able to write to it; its
34716 # output is simply discarded.  So we exec the FD to /dev/null,
34717 # effectively closing config.log, so it can be properly (re)opened and
34718 # appended to by config.status.  When coming back to configure, we
34719 # need to make the FD available again.
34720 if test "$no_create" != yes; then
34721   ac_cs_success=:
34722   ac_config_status_args=
34723   test "$silent" = yes &&
34724     ac_config_status_args="$ac_config_status_args --quiet"
34725   exec 5>/dev/null
34726   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34727   exec 5>>config.log
34728   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34729   # would make configure fail if this is the last instruction.
34730   $ac_cs_success || { (exit 1); exit 1; }
34731 fi
34732
34733 #
34734 # CONFIG_SUBDIRS section.
34735 #
34736 if test "$no_recursion" != yes; then
34737
34738   # Remove --cache-file and --srcdir arguments so they do not pile up.
34739   ac_sub_configure_args=
34740   ac_prev=
34741   eval "set x $ac_configure_args"
34742   shift
34743   for ac_arg
34744   do
34745     if test -n "$ac_prev"; then
34746       ac_prev=
34747       continue
34748     fi
34749     case $ac_arg in
34750     -cache-file | --cache-file | --cache-fil | --cache-fi \
34751     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34752       ac_prev=cache_file ;;
34753     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34754     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34755     | --c=*)
34756       ;;
34757     --config-cache | -C)
34758       ;;
34759     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34760       ac_prev=srcdir ;;
34761     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34762       ;;
34763     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34764       ac_prev=prefix ;;
34765     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34766       ;;
34767     *)
34768       case $ac_arg in
34769       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34770       esac
34771       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34772     esac
34773   done
34774
34775   # Always prepend --prefix to ensure using the same prefix
34776   # in subdir configurations.
34777   ac_arg="--prefix=$prefix"
34778   case $ac_arg in
34779   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34780   esac
34781   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34782
34783   ac_popdir=`pwd`
34784   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34785
34786     # Do not complain, so a configure script can configure whichever
34787     # parts of a large source tree are present.
34788     test -d "$srcdir/$ac_dir" || continue
34789
34790     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34791     echo "$as_me:$LINENO: $ac_msg" >&5
34792     echo "$ac_msg" >&6
34793     { as_dir="$ac_dir"
34794   case $as_dir in #(
34795   -*) as_dir=./$as_dir;;
34796   esac
34797   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34798     as_dirs=
34799     while :; do
34800       case $as_dir in #(
34801       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34802       *) as_qdir=$as_dir;;
34803       esac
34804       as_dirs="'$as_qdir' $as_dirs"
34805       as_dir=`$as_dirname -- "$as_dir" ||
34806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34807          X"$as_dir" : 'X\(//\)[^/]' \| \
34808          X"$as_dir" : 'X\(//\)$' \| \
34809          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34810 echo X"$as_dir" |
34811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34812             s//\1/
34813             q
34814           }
34815           /^X\(\/\/\)[^/].*/{
34816             s//\1/
34817             q
34818           }
34819           /^X\(\/\/\)$/{
34820             s//\1/
34821             q
34822           }
34823           /^X\(\/\).*/{
34824             s//\1/
34825             q
34826           }
34827           s/.*/./; q'`
34828       test -d "$as_dir" && break
34829     done
34830     test -z "$as_dirs" || eval "mkdir $as_dirs"
34831   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34832 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34833    { (exit 1); exit 1; }; }; }
34834     ac_builddir=.
34835
34836 case "$ac_dir" in
34837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34838 *)
34839   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34840   # A ".." for each directory in $ac_dir_suffix.
34841   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34842   case $ac_top_builddir_sub in
34843   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34844   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34845   esac ;;
34846 esac
34847 ac_abs_top_builddir=$ac_pwd
34848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34849 # for backward compatibility:
34850 ac_top_builddir=$ac_top_build_prefix
34851
34852 case $srcdir in
34853   .)  # We are building in place.
34854     ac_srcdir=.
34855     ac_top_srcdir=$ac_top_builddir_sub
34856     ac_abs_top_srcdir=$ac_pwd ;;
34857   [\\/]* | ?:[\\/]* )  # Absolute name.
34858     ac_srcdir=$srcdir$ac_dir_suffix;
34859     ac_top_srcdir=$srcdir
34860     ac_abs_top_srcdir=$srcdir ;;
34861   *) # Relative name.
34862     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34863     ac_top_srcdir=$ac_top_build_prefix$srcdir
34864     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34865 esac
34866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34867
34868
34869     cd "$ac_dir"
34870
34871     # Check for guested configure; otherwise get Cygnus style configure.
34872     if test -f "$ac_srcdir/configure.gnu"; then
34873       ac_sub_configure=$ac_srcdir/configure.gnu
34874     elif test -f "$ac_srcdir/configure"; then
34875       ac_sub_configure=$ac_srcdir/configure
34876     elif test -f "$ac_srcdir/configure.in"; then
34877       # This should be Cygnus configure.
34878       ac_sub_configure=$ac_aux_dir/configure
34879     else
34880       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34881 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34882       ac_sub_configure=
34883     fi
34884
34885     # The recursion is here.
34886     if test -n "$ac_sub_configure"; then
34887       # Make the cache file name correct relative to the subdirectory.
34888       case $cache_file in
34889       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34890       *) # Relative name.
34891         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34892       esac
34893
34894       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34895 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34896       # The eval makes quoting arguments work.
34897       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34898            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34899         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34900 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34901    { (exit 1); exit 1; }; }
34902     fi
34903
34904     cd "$ac_popdir"
34905   done
34906 fi
34907
34908
34909 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34910  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34911 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34912  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&5
34913 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&2;}
34914  { echo "$as_me:$LINENO: WARNING: ***** in your path before configuring LLVM." >&5
34915 echo "$as_me: WARNING: ***** in your path before configuring LLVM." >&2;}
34916 fi