configure: Add --with-optimize-option, for setting the default value of
[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.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 ARCH
818 ENDIAN
819 CC
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
826 CPP
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 ENABLE_EXPENSIVE_CHECKS
838 EXPENSIVE_CHECKS
839 DEBUG_RUNTIME
840 DEBUG_SYMBOLS
841 JIT
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 ENABLE_CBE_PRINTF_A
851 OPTIMIZE_OPTION
852 EXTRA_OPTIONS
853 BINUTILS_INCDIR
854 ENABLE_LLVMC_DYNAMIC
855 ENABLE_LLVMC_DYNAMIC_PLUGINS
856 CXX
857 CXXFLAGS
858 ac_ct_CXX
859 NM
860 ifGNUmake
861 LN_S
862 CMP
863 CP
864 DATE
865 FIND
866 MKDIR
867 MV
868 RANLIB
869 RM
870 SED
871 TAR
872 BINPWD
873 GRAPHVIZ
874 DOT
875 FDP
876 NEATO
877 TWOPI
878 CIRCO
879 GV
880 DOTTY
881 PERL
882 HAVE_PERL
883 INSTALL_PROGRAM
884 INSTALL_SCRIPT
885 INSTALL_DATA
886 BZIP2
887 DOXYGEN
888 GROFF
889 GZIP
890 POD2HTML
891 POD2MAN
892 RUNTEST
893 TCLSH
894 ZIP
895 OCAMLC
896 OCAMLOPT
897 OCAMLDEP
898 OCAMLDOC
899 GAS
900 INSTALL_LTDL_TRUE
901 INSTALL_LTDL_FALSE
902 CONVENIENCE_LTDL_TRUE
903 CONVENIENCE_LTDL_FALSE
904 LIBADD_DL
905 ECHO
906 AR
907 STRIP
908 CXXCPP
909 F77
910 FFLAGS
911 ac_ct_F77
912 LIBTOOL
913 LLVMGCCCOMMAND
914 LLVMGXXCOMMAND
915 LLVMGCC
916 LLVMGXX
917 NO_VARIADIC_MACROS
918 NO_MISSING_FIELD_INITIALIZERS
919 USE_UDIS86
920 USE_OPROFILE
921 HAVE_PTHREAD
922 HUGE_VAL_SANITY
923 ALLOCA
924 MMAP_FILE
925 LLVMCC1
926 LLVMCC1PLUS
927 LLVMGCCDIR
928 LLVMGCCLIBEXEC
929 LLVMGCC_VERSION
930 LLVMGCC_MAJVERS
931 LLVMGCC_LANGS
932 SHLIBEXT
933 LLVM_PREFIX
934 LLVM_BINDIR
935 LLVM_LIBDIR
936 LLVM_DATADIR
937 LLVM_DOCSDIR
938 LLVM_ETCDIR
939 LLVM_INCLUDEDIR
940 LLVM_INFODIR
941 LLVM_MANDIR
942 LLVM_CONFIGTIME
943 BINDINGS_TO_BUILD
944 ALL_BINDINGS
945 OCAML_LIBDIR
946 ENABLE_VISIBILITY_INLINES_HIDDEN
947 RPATH
948 RDYNAMIC
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952       ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 CPPFLAGS
959 CPP
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 F77
965 FFLAGS'
966 ac_subdirs_all='projects/sample
967 projects/privbracket
968 projects/llvm-stacker
969 projects/llvm-test
970 projects/test-suite
971 projects/llvm-reopt
972 projects/llvm-gcc
973 projects/llvm-java
974 projects/llvm-tv
975 projects/llvm-poolalloc
976 projects/poolalloc
977 projects/llvm-kernel'
978
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *)    ac_optarg=yes ;;
1039   esac
1040
1041   # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043   case $ac_dashdash$ac_option in
1044   --)
1045     ac_dashdash=yes ;;
1046
1047   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048     ac_prev=bindir ;;
1049   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050     bindir=$ac_optarg ;;
1051
1052   -build | --build | --buil | --bui | --bu)
1053     ac_prev=build_alias ;;
1054   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055     build_alias=$ac_optarg ;;
1056
1057   -cache-file | --cache-file | --cache-fil | --cache-fi \
1058   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059     ac_prev=cache_file ;;
1060   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062     cache_file=$ac_optarg ;;
1063
1064   --config-cache | -C)
1065     cache_file=config.cache ;;
1066
1067   -datadir | --datadir | --datadi | --datad)
1068     ac_prev=datadir ;;
1069   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070     datadir=$ac_optarg ;;
1071
1072   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073   | --dataroo | --dataro | --datar)
1074     ac_prev=datarootdir ;;
1075   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077     datarootdir=$ac_optarg ;;
1078
1079   -disable-* | --disable-*)
1080     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086     eval enable_$ac_feature=no ;;
1087
1088   -docdir | --docdir | --docdi | --doc | --do)
1089     ac_prev=docdir ;;
1090   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091     docdir=$ac_optarg ;;
1092
1093   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094     ac_prev=dvidir ;;
1095   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096     dvidir=$ac_optarg ;;
1097
1098   -enable-* | --enable-*)
1099     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103    { (exit 1); exit 1; }; }
1104     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105     eval enable_$ac_feature=\$ac_optarg ;;
1106
1107   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109   | --exec | --exe | --ex)
1110     ac_prev=exec_prefix ;;
1111   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113   | --exec=* | --exe=* | --ex=*)
1114     exec_prefix=$ac_optarg ;;
1115
1116   -gas | --gas | --ga | --g)
1117     # Obsolete; use --with-gas.
1118     with_gas=yes ;;
1119
1120   -help | --help | --hel | --he | -h)
1121     ac_init_help=long ;;
1122   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123     ac_init_help=recursive ;;
1124   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125     ac_init_help=short ;;
1126
1127   -host | --host | --hos | --ho)
1128     ac_prev=host_alias ;;
1129   -host=* | --host=* | --hos=* | --ho=*)
1130     host_alias=$ac_optarg ;;
1131
1132   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133     ac_prev=htmldir ;;
1134   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135   | --ht=*)
1136     htmldir=$ac_optarg ;;
1137
1138   -includedir | --includedir | --includedi | --included | --include \
1139   | --includ | --inclu | --incl | --inc)
1140     ac_prev=includedir ;;
1141   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142   | --includ=* | --inclu=* | --incl=* | --inc=*)
1143     includedir=$ac_optarg ;;
1144
1145   -infodir | --infodir | --infodi | --infod | --info | --inf)
1146     ac_prev=infodir ;;
1147   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148     infodir=$ac_optarg ;;
1149
1150   -libdir | --libdir | --libdi | --libd)
1151     ac_prev=libdir ;;
1152   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153     libdir=$ac_optarg ;;
1154
1155   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156   | --libexe | --libex | --libe)
1157     ac_prev=libexecdir ;;
1158   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159   | --libexe=* | --libex=* | --libe=*)
1160     libexecdir=$ac_optarg ;;
1161
1162   -localedir | --localedir | --localedi | --localed | --locale)
1163     ac_prev=localedir ;;
1164   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165     localedir=$ac_optarg ;;
1166
1167   -localstatedir | --localstatedir | --localstatedi | --localstated \
1168   | --localstate | --localstat | --localsta | --localst | --locals)
1169     ac_prev=localstatedir ;;
1170   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172     localstatedir=$ac_optarg ;;
1173
1174   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175     ac_prev=mandir ;;
1176   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177     mandir=$ac_optarg ;;
1178
1179   -nfp | --nfp | --nf)
1180     # Obsolete; use --without-fp.
1181     with_fp=no ;;
1182
1183   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184   | --no-cr | --no-c | -n)
1185     no_create=yes ;;
1186
1187   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189     no_recursion=yes ;;
1190
1191   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193   | --oldin | --oldi | --old | --ol | --o)
1194     ac_prev=oldincludedir ;;
1195   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198     oldincludedir=$ac_optarg ;;
1199
1200   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201     ac_prev=prefix ;;
1202   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203     prefix=$ac_optarg ;;
1204
1205   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206   | --program-pre | --program-pr | --program-p)
1207     ac_prev=program_prefix ;;
1208   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210     program_prefix=$ac_optarg ;;
1211
1212   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213   | --program-suf | --program-su | --program-s)
1214     ac_prev=program_suffix ;;
1215   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217     program_suffix=$ac_optarg ;;
1218
1219   -program-transform-name | --program-transform-name \
1220   | --program-transform-nam | --program-transform-na \
1221   | --program-transform-n | --program-transform- \
1222   | --program-transform | --program-transfor \
1223   | --program-transfo | --program-transf \
1224   | --program-trans | --program-tran \
1225   | --progr-tra | --program-tr | --program-t)
1226     ac_prev=program_transform_name ;;
1227   -program-transform-name=* | --program-transform-name=* \
1228   | --program-transform-nam=* | --program-transform-na=* \
1229   | --program-transform-n=* | --program-transform-=* \
1230   | --program-transform=* | --program-transfor=* \
1231   | --program-transfo=* | --program-transf=* \
1232   | --program-trans=* | --program-tran=* \
1233   | --progr-tra=* | --program-tr=* | --program-t=*)
1234     program_transform_name=$ac_optarg ;;
1235
1236   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237     ac_prev=pdfdir ;;
1238   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239     pdfdir=$ac_optarg ;;
1240
1241   -psdir | --psdir | --psdi | --psd | --ps)
1242     ac_prev=psdir ;;
1243   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244     psdir=$ac_optarg ;;
1245
1246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247   | -silent | --silent | --silen | --sile | --sil)
1248     silent=yes ;;
1249
1250   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251     ac_prev=sbindir ;;
1252   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253   | --sbi=* | --sb=*)
1254     sbindir=$ac_optarg ;;
1255
1256   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258   | --sharedst | --shareds | --shared | --share | --shar \
1259   | --sha | --sh)
1260     ac_prev=sharedstatedir ;;
1261   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264   | --sha=* | --sh=*)
1265     sharedstatedir=$ac_optarg ;;
1266
1267   -site | --site | --sit)
1268     ac_prev=site ;;
1269   -site=* | --site=* | --sit=*)
1270     site=$ac_optarg ;;
1271
1272   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273     ac_prev=srcdir ;;
1274   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275     srcdir=$ac_optarg ;;
1276
1277   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278   | --syscon | --sysco | --sysc | --sys | --sy)
1279     ac_prev=sysconfdir ;;
1280   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282     sysconfdir=$ac_optarg ;;
1283
1284   -target | --target | --targe | --targ | --tar | --ta | --t)
1285     ac_prev=target_alias ;;
1286   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287     target_alias=$ac_optarg ;;
1288
1289   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290     verbose=yes ;;
1291
1292   -version | --version | --versio | --versi | --vers | -V)
1293     ac_init_version=: ;;
1294
1295   -with-* | --with-*)
1296     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299       { echo "$as_me: error: invalid package name: $ac_package" >&2
1300    { (exit 1); exit 1; }; }
1301     ac_package=`echo $ac_package| sed 's/-/_/g'`
1302     eval with_$ac_package=\$ac_optarg ;;
1303
1304   -without-* | --without-*)
1305     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308       { echo "$as_me: error: invalid package name: $ac_package" >&2
1309    { (exit 1); exit 1; }; }
1310     ac_package=`echo $ac_package | sed 's/-/_/g'`
1311     eval with_$ac_package=no ;;
1312
1313   --x)
1314     # Obsolete; use --with-x.
1315     with_x=yes ;;
1316
1317   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318   | --x-incl | --x-inc | --x-in | --x-i)
1319     ac_prev=x_includes ;;
1320   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322     x_includes=$ac_optarg ;;
1323
1324   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326     ac_prev=x_libraries ;;
1327   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329     x_libraries=$ac_optarg ;;
1330
1331   -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333    { (exit 1); exit 1; }; }
1334     ;;
1335
1336   *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341    { (exit 1); exit 1; }; }
1342     eval $ac_envvar=\$ac_optarg
1343     export $ac_envvar ;;
1344
1345   *)
1346     # FIXME: should be removed in autoconf 3.0.
1347     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351     ;;
1352
1353   esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358   { echo "$as_me: error: missing argument to $ac_option" >&2
1359    { (exit 1); exit 1; }; }
1360 fi
1361
1362 # Be sure to have absolute directory names.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   case $ac_val in
1370     [\\/$]* | ?:[\\/]* )  continue;;
1371     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372   esac
1373   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374    { (exit 1); exit 1; }; }
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386   if test "x$build_alias" = x; then
1387     cross_compiling=maybe
1388     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389     If a cross compiler is detected then cross compile mode will be used." >&2
1390   elif test "x$build_alias" != "x$host_alias"; then
1391     cross_compiling=yes
1392   fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404   { echo "$as_me: error: Working directory cannot be determined" >&2
1405    { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   { echo "$as_me: error: pwd does not report name of working directory" >&2
1408    { (exit 1); exit 1; }; }
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$0" : 'X\(//\)[^/]' \| \
1418          X"$0" : 'X\(//\)$' \| \
1419          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1420 echo X"$0" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453    { (exit 1); exit 1; }; }
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR           user executables [EPREFIX/bin]
1514   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR       program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR           object code libraries [EPREFIX/lib]
1520   --includedir=DIR       C header files [PREFIX/include]
1521   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR          info documentation [DATAROOTDIR/info]
1525   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR           man documentation [DATAROOTDIR/man]
1527   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1528   --htmldir=DIR          html documentation [DOCDIR]
1529   --dvidir=DIR           dvi documentation [DOCDIR]
1530   --pdfdir=DIR           pdf documentation [DOCDIR]
1531   --psdir=DIR            ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 System types:
1537   --build=BUILD     configure for building on BUILD [guessed]
1538   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539   --target=TARGET   configure for building compilers for TARGET [HOST]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544   case $ac_init_help in
1545      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1546    esac
1547   cat <<\_ACEOF
1548
1549 Optional Features:
1550   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1551   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1552   --enable-optimized      Compile with optimizations enabled (default is NO)
1553   --enable-profiling      Compile with profiling enabled (default is NO)
1554   --enable-assertions     Compile with assertion checks enabled (default is
1555                           YES)
1556   --enable-expensive-checks
1557                           Compile with expensive debug checks enabled (default
1558                           is NO)
1559   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1560                           NO)
1561   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1562                           optimization is on and YES if it's off)
1563   --enable-jit            Enable Just In Time Compiling (default is YES)
1564   --enable-doxygen        Build doxygen documentation (default is NO)
1565   --enable-threads        Use threads if available (default is YES)
1566   --enable-pic            Build LLVM with Position Independent Code (default
1567                           is YES)
1568   --enable-targets        Build specific host targets: all or
1569                           target1,target2,... Valid targets are: host, x86,
1570                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572                           and cpp (default=all)
1573   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1574                           %a (default is YES)
1575   --enable-bindings       Build specific language bindings:
1576                           all,auto,none,{binding-name} (default=auto)
1577   --enable-libffi         Check for the presence of libffi (default is YES)
1578   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1579                           Win32)
1580   --enable-llvmc-dynamic-plugins
1581                           Enable dynamic LLVMC plugins (default is YES)
1582   --enable-ltdl-install   install libltdl
1583   --enable-shared[=PKGS]  build shared libraries
1584                           [default=yes]
1585   --enable-static[=PKGS]  build static libraries
1586                           [default=yes]
1587   --enable-fast-install[=PKGS]
1588                           optimize for fast installation
1589                           [default=yes]
1590   --disable-libtool-lock  avoid locking (might break parallel builds)
1591
1592 Optional Packages:
1593   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1596                           searches PATH)
1597   --with-llvmgcc          Specify location of llvm-gcc driver (default
1598                           searches PATH)
1599   --with-llvmgxx          Specify location of llvm-g++ driver (default
1600                           searches PATH)
1601   --with-optimize-option  Select the compiler options to use for optimized
1602                           builds
1603   --with-extra-options    Specify additional options to compile LLVM with
1604   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1605                           is stdlib)
1606   --with-binutils-include Specify path to binutils/include/ containing
1607                           plugin-api.h file for gold plugin.
1608   --with-tclinclude       directory where tcl headers are
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-pic              try to use only PIC/non-PIC objects [default=use
1611                           both]
1612   --with-tags[=TAGS]      include additional configurations [automatic]
1613   --with-udis86=<path>    Use udis86 external x86 disassembler library
1614   --with-oprofile=<prefix>
1615                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1616
1617 Some influential environment variables:
1618   CC          C compiler command
1619   CFLAGS      C compiler flags
1620   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1621               nonstandard directory <lib dir>
1622   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623               you have headers in a nonstandard directory <include dir>
1624   CPP         C preprocessor
1625   CXX         C++ compiler command
1626   CXXFLAGS    C++ compiler flags
1627   CXXCPP      C++ preprocessor
1628   F77         Fortran 77 compiler command
1629   FFLAGS      Fortran 77 compiler flags
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to <llvmbugs@cs.uiuc.edu>.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640   # If there are subdirs, report their specific --help.
1641   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642     test -d "$ac_dir" || continue
1643     ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1649   # A ".." for each directory in $ac_dir_suffix.
1650   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1651   case $ac_top_builddir_sub in
1652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654   esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662   .)  # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666   [\\/]* | ?:[\\/]* )  # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670   *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687     fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689   done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694   cat <<\_ACEOF
1695 llvm configure 2.7svn
1696 generated by GNU Autoconf 2.60
1697
1698 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1699 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702
1703 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1704 _ACEOF
1705   exit
1706 fi
1707 cat >config.log <<_ACEOF
1708 This file contains any messages produced by compilers while
1709 running configure, to aid debugging if configure makes a mistake.
1710
1711 It was created by llvm $as_me 2.7svn, which was
1712 generated by GNU Autoconf 2.60.  Invocation command line was
1713
1714   $ $0 $@
1715
1716 _ACEOF
1717 exec 5>>config.log
1718 {
1719 cat <<_ASUNAME
1720 ## --------- ##
1721 ## Platform. ##
1722 ## --------- ##
1723
1724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729
1730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1732
1733 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1734 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1737 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1738 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1739 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1740
1741 _ASUNAME
1742
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   echo "PATH: $as_dir"
1749 done
1750 IFS=$as_save_IFS
1751
1752 } >&5
1753
1754 cat >&5 <<_ACEOF
1755
1756
1757 ## ----------- ##
1758 ## Core tests. ##
1759 ## ----------- ##
1760
1761 _ACEOF
1762
1763
1764 # Keep a trace of the command line.
1765 # Strip out --no-create and --no-recursion so they do not pile up.
1766 # Strip out --silent because we don't want to record it for future runs.
1767 # Also quote any args containing shell meta-characters.
1768 # Make two passes to allow for proper duplicate-argument suppression.
1769 ac_configure_args=
1770 ac_configure_args0=
1771 ac_configure_args1=
1772 ac_must_keep_next=false
1773 for ac_pass in 1 2
1774 do
1775   for ac_arg
1776   do
1777     case $ac_arg in
1778     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1779     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1780     | -silent | --silent | --silen | --sile | --sil)
1781       continue ;;
1782     *\'*)
1783       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784     esac
1785     case $ac_pass in
1786     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1787     2)
1788       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1789       if test $ac_must_keep_next = true; then
1790         ac_must_keep_next=false # Got value, back to normal.
1791       else
1792         case $ac_arg in
1793           *=* | --config-cache | -C | -disable-* | --disable-* \
1794           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1795           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1796           | -with-* | --with-* | -without-* | --without-* | --x)
1797             case "$ac_configure_args0 " in
1798               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1799             esac
1800             ;;
1801           -* ) ac_must_keep_next=true ;;
1802         esac
1803       fi
1804       ac_configure_args="$ac_configure_args '$ac_arg'"
1805       ;;
1806     esac
1807   done
1808 done
1809 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1810 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1811
1812 # When interrupted or exit'd, cleanup temporary files, and complete
1813 # config.log.  We remove comments because anyway the quotes in there
1814 # would cause problems or look ugly.
1815 # WARNING: Use '\'' to represent an apostrophe within the trap.
1816 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817 trap 'exit_status=$?
1818   # Save into config.log some information that might help in debugging.
1819   {
1820     echo
1821
1822     cat <<\_ASBOX
1823 ## ---------------- ##
1824 ## Cache variables. ##
1825 ## ---------------- ##
1826 _ASBOX
1827     echo
1828     # The following way of writing the cache mishandles newlines in values,
1829 (
1830   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831     eval ac_val=\$$ac_var
1832     case $ac_val in #(
1833     *${as_nl}*)
1834       case $ac_var in #(
1835       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1836 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1837       esac
1838       case $ac_var in #(
1839       _ | IFS | as_nl) ;; #(
1840       *) $as_unset $ac_var ;;
1841       esac ;;
1842     esac
1843   done
1844   (set) 2>&1 |
1845     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1846     *${as_nl}ac_space=\ *)
1847       sed -n \
1848         "s/'\''/'\''\\\\'\'''\''/g;
1849           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1850       ;; #(
1851     *)
1852       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1853       ;;
1854     esac |
1855     sort
1856 )
1857     echo
1858
1859     cat <<\_ASBOX
1860 ## ----------------- ##
1861 ## Output variables. ##
1862 ## ----------------- ##
1863 _ASBOX
1864     echo
1865     for ac_var in $ac_subst_vars
1866     do
1867       eval ac_val=\$$ac_var
1868       case $ac_val in
1869       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870       esac
1871       echo "$ac_var='\''$ac_val'\''"
1872     done | sort
1873     echo
1874
1875     if test -n "$ac_subst_files"; then
1876       cat <<\_ASBOX
1877 ## ------------------- ##
1878 ## File substitutions. ##
1879 ## ------------------- ##
1880 _ASBOX
1881       echo
1882       for ac_var in $ac_subst_files
1883       do
1884         eval ac_val=\$$ac_var
1885         case $ac_val in
1886         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887         esac
1888         echo "$ac_var='\''$ac_val'\''"
1889       done | sort
1890       echo
1891     fi
1892
1893     if test -s confdefs.h; then
1894       cat <<\_ASBOX
1895 ## ----------- ##
1896 ## confdefs.h. ##
1897 ## ----------- ##
1898 _ASBOX
1899       echo
1900       cat confdefs.h
1901       echo
1902     fi
1903     test "$ac_signal" != 0 &&
1904       echo "$as_me: caught signal $ac_signal"
1905     echo "$as_me: exit $exit_status"
1906   } >&5
1907   rm -f core *.core core.conftest.* &&
1908     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1909     exit $exit_status
1910 ' 0
1911 for ac_signal in 1 2 13 15; do
1912   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1913 done
1914 ac_signal=0
1915
1916 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1917 rm -f -r conftest* confdefs.h
1918
1919 # Predefined preprocessor variables.
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_NAME "$PACKAGE_NAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_STRING "$PACKAGE_STRING"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943 _ACEOF
1944
1945
1946 # Let the site file select an alternate cache file if it wants to.
1947 # Prefer explicitly selected file to automatically selected ones.
1948 if test -n "$CONFIG_SITE"; then
1949   set x "$CONFIG_SITE"
1950 elif test "x$prefix" != xNONE; then
1951   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1952 else
1953   set x "$ac_default_prefix/share/config.site" \
1954         "$ac_default_prefix/etc/config.site"
1955 fi
1956 shift
1957 for ac_site_file
1958 do
1959   if test -r "$ac_site_file"; then
1960     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961 echo "$as_me: loading site script $ac_site_file" >&6;}
1962     sed 's/^/| /' "$ac_site_file" >&5
1963     . "$ac_site_file"
1964   fi
1965 done
1966
1967 if test -r "$cache_file"; then
1968   # Some versions of bash will fail to source /dev/null (special
1969   # files actually), so we avoid doing that.
1970   if test -f "$cache_file"; then
1971     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972 echo "$as_me: loading cache $cache_file" >&6;}
1973     case $cache_file in
1974       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1975       *)                      . "./$cache_file";;
1976     esac
1977   fi
1978 else
1979   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980 echo "$as_me: creating cache $cache_file" >&6;}
1981   >$cache_file
1982 fi
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062
2063
2064
2065 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2066
2067
2068
2069
2070
2071
2072
2073 ac_aux_dir=
2074 for ac_dir in autoconf "$srcdir"/autoconf; do
2075   if test -f "$ac_dir/install-sh"; then
2076     ac_aux_dir=$ac_dir
2077     ac_install_sh="$ac_aux_dir/install-sh -c"
2078     break
2079   elif test -f "$ac_dir/install.sh"; then
2080     ac_aux_dir=$ac_dir
2081     ac_install_sh="$ac_aux_dir/install.sh -c"
2082     break
2083   elif test -f "$ac_dir/shtool"; then
2084     ac_aux_dir=$ac_dir
2085     ac_install_sh="$ac_aux_dir/shtool install -c"
2086     break
2087   fi
2088 done
2089 if test -z "$ac_aux_dir"; then
2090   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2091 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094
2095 # These three variables are undocumented and unsupported,
2096 # and are intended to be withdrawn in a future Autoconf release.
2097 # They can cause serious problems if a builder's source tree is in a directory
2098 # whose full name contains unusual characters.
2099 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2100 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2101 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2102
2103
2104
2105 if test ${srcdir} != "." ; then
2106   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2107     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2108 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2109    { (exit 1); exit 1; }; }
2110   fi
2111 fi
2112
2113 for i in `ls ${srcdir}/projects`
2114 do
2115   if test -d ${srcdir}/projects/${i} ; then
2116     case ${i} in
2117       CVS) ;;
2118       sample)       subdirs="$subdirs projects/sample"
2119     ;;
2120       privbracket)  subdirs="$subdirs projects/privbracket"
2121  ;;
2122       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2123  ;;
2124       # llvm-test is the old name of the test-suite, kept here for backwards
2125       # compatibility
2126       llvm-test)    subdirs="$subdirs projects/llvm-test"
2127  ;;
2128       test-suite)   subdirs="$subdirs projects/test-suite"
2129  ;;
2130       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2131 ;;
2132       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2133   ;;
2134       llvm-java)    subdirs="$subdirs projects/llvm-java"
2135  ;;
2136       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2137    ;;
2138       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2139  ;;
2140       poolalloc)    subdirs="$subdirs projects/poolalloc"
2141  ;;
2142       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2143  ;;
2144       *)
2145         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2146 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2147         ;;
2148     esac
2149   fi
2150 done
2151
2152
2153 # Make sure we can run config.sub.
2154 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2155   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2156 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2157    { (exit 1); exit 1; }; }
2158
2159 { echo "$as_me:$LINENO: checking build system type" >&5
2160 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2161 if test "${ac_cv_build+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   ac_build_alias=$build_alias
2165 test "x$ac_build_alias" = x &&
2166   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2167 test "x$ac_build_alias" = x &&
2168   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2169 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2170    { (exit 1); exit 1; }; }
2171 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2172   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2174    { (exit 1); exit 1; }; }
2175
2176 fi
2177 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2178 echo "${ECHO_T}$ac_cv_build" >&6; }
2179 case $ac_cv_build in
2180 *-*-*) ;;
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2182 echo "$as_me: error: invalid value of canonical build" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 build=$ac_cv_build
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_build
2188 shift
2189 build_cpu=$1
2190 build_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 build_os=$*
2195 IFS=$ac_save_IFS
2196 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 { echo "$as_me:$LINENO: checking host system type" >&5
2200 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_host+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test "x$host_alias" = x; then
2205   ac_cv_host=$ac_cv_build
2206 else
2207   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2208     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 fi
2214 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2215 echo "${ECHO_T}$ac_cv_host" >&6; }
2216 case $ac_cv_host in
2217 *-*-*) ;;
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2219 echo "$as_me: error: invalid value of canonical host" >&2;}
2220    { (exit 1); exit 1; }; };;
2221 esac
2222 host=$ac_cv_host
2223 ac_save_IFS=$IFS; IFS='-'
2224 set x $ac_cv_host
2225 shift
2226 host_cpu=$1
2227 host_vendor=$2
2228 shift; shift
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2231 host_os=$*
2232 IFS=$ac_save_IFS
2233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2234
2235
2236 { echo "$as_me:$LINENO: checking target system type" >&5
2237 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2238 if test "${ac_cv_target+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test "x$target_alias" = x; then
2242   ac_cv_target=$ac_cv_host
2243 else
2244   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2245     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2246 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2247    { (exit 1); exit 1; }; }
2248 fi
2249
2250 fi
2251 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2252 echo "${ECHO_T}$ac_cv_target" >&6; }
2253 case $ac_cv_target in
2254 *-*-*) ;;
2255 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2256 echo "$as_me: error: invalid value of canonical target" >&2;}
2257    { (exit 1); exit 1; }; };;
2258 esac
2259 target=$ac_cv_target
2260 ac_save_IFS=$IFS; IFS='-'
2261 set x $ac_cv_target
2262 shift
2263 target_cpu=$1
2264 target_vendor=$2
2265 shift; shift
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2268 target_os=$*
2269 IFS=$ac_save_IFS
2270 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2271
2272
2273 # The aliases save the names the user supplied, while $host etc.
2274 # will get canonicalized.
2275 test -n "$target_alias" &&
2276   test "$program_prefix$program_suffix$program_transform_name" = \
2277     NONENONEs,x,x, &&
2278   program_prefix=${target_alias}-
2279
2280 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2281 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2282 if test "${llvm_cv_os_type+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   case $host in
2286   *-*-aix*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="AIX"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-irix*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="IRIX"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-cygwin*)
2297     llvm_cv_link_all_option="-Wl,--whole-archive"
2298     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299     llvm_cv_os_type="Cygwin"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-darwin*)
2302     llvm_cv_link_all_option="-Wl,-all_load"
2303     llvm_cv_no_link_all_option="-Wl,-noall_load"
2304     llvm_cv_os_type="Darwin"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-freebsd*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="FreeBSD"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-openbsd*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="OpenBSD"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-netbsd*)
2317     llvm_cv_link_all_option="-Wl,--whole-archive"
2318     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319     llvm_cv_os_type="NetBSD"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-dragonfly*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="DragonFly"
2325     llvm_cv_platform_type="Unix" ;;
2326   *-*-hpux*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="HP-UX"
2330     llvm_cv_platform_type="Unix" ;;
2331   *-*-interix*)
2332     llvm_cv_link_all_option="-Wl,--whole-archive"
2333     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334     llvm_cv_os_type="Interix"
2335     llvm_cv_platform_type="Unix" ;;
2336   *-*-linux*)
2337     llvm_cv_link_all_option="-Wl,--whole-archive"
2338     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2339     llvm_cv_os_type="Linux"
2340     llvm_cv_platform_type="Unix" ;;
2341   *-*-solaris*)
2342     llvm_cv_link_all_option="-Wl,-z,allextract"
2343     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2344     llvm_cv_os_type="SunOS"
2345     llvm_cv_platform_type="Unix" ;;
2346   *-*-auroraux*)
2347     llvm_cv_link_all_option="-Wl,-z,allextract"
2348     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2349     llvm_cv_os_type="AuroraUX"
2350     llvm_cv_platform_type="Unix" ;;
2351   *-*-win32*)
2352     llvm_cv_link_all_option="-Wl,--whole-archive"
2353     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354     llvm_cv_os_type="Win32"
2355     llvm_cv_platform_type="Win32" ;;
2356   *-*-mingw*)
2357     llvm_cv_link_all_option="-Wl,--whole-archive"
2358     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359     llvm_cv_os_type="MingW"
2360     llvm_cv_platform_type="Win32" ;;
2361   *-*-haiku*)
2362     llvm_cv_link_all_option="-Wl,--whole-archive"
2363     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2364     llvm_cv_os_type="Haiku"
2365     llvm_cv_platform_type="Unix" ;;
2366   *-unknown-eabi*)
2367     llvm_cv_link_all_option="-Wl,--whole-archive"
2368     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2369     llvm_cv_os_type="Freestanding"
2370     llvm_cv_platform_type="Unix" ;;
2371   *-unknown-elf*)
2372     llvm_cv_link_all_option="-Wl,--whole-archive"
2373     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2374     llvm_cv_os_type="Freestanding"
2375     llvm_cv_platform_type="Unix" ;;
2376   *)
2377     llvm_cv_link_all_option=""
2378     llvm_cv_no_link_all_option=""
2379     llvm_cv_os_type="Unknown"
2380     llvm_cv_platform_type="Unknown" ;;
2381 esac
2382 fi
2383 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2384 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2385
2386 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2387 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2388 if test "${llvm_cv_target_os_type+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   case $target in
2392   *-*-aix*)
2393     llvm_cv_target_os_type="AIX" ;;
2394   *-*-irix*)
2395     llvm_cv_target_os_type="IRIX" ;;
2396   *-*-cygwin*)
2397     llvm_cv_target_os_type="Cygwin" ;;
2398   *-*-darwin*)
2399     llvm_cv_target_os_type="Darwin" ;;
2400   *-*-freebsd*)
2401     llvm_cv_target_os_type="FreeBSD" ;;
2402   *-*-openbsd*)
2403     llvm_cv_target_os_type="OpenBSD" ;;
2404   *-*-netbsd*)
2405     llvm_cv_target_os_type="NetBSD" ;;
2406   *-*-dragonfly*)
2407     llvm_cv_target_os_type="DragonFly" ;;
2408   *-*-hpux*)
2409     llvm_cv_target_os_type="HP-UX" ;;
2410   *-*-interix*)
2411     llvm_cv_target_os_type="Interix" ;;
2412   *-*-linux*)
2413     llvm_cv_target_os_type="Linux" ;;
2414   *-*-solaris*)
2415     llvm_cv_target_os_type="SunOS" ;;
2416   *-*-auroraux*)
2417     llvm_cv_target_os_type="AuroraUX" ;;
2418   *-*-win32*)
2419     llvm_cv_target_os_type="Win32" ;;
2420   *-*-mingw*)
2421     llvm_cv_target_os_type="MingW" ;;
2422   *-*-haiku*)
2423     llvm_cv_target_os_type="Haiku" ;;
2424   *-unknown-eabi*)
2425     llvm_cv_target_os_type="Freestanding" ;;
2426   *)
2427     llvm_cv_target_os_type="Unknown" ;;
2428 esac
2429 fi
2430 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2431 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2432
2433 if test "$llvm_cv_os_type" = "Unknown" ; then
2434   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2435 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438
2439 OS=$llvm_cv_os_type
2440
2441 HOST_OS=$llvm_cv_os_type
2442
2443 TARGET_OS=$llvm_cv_target_os_type
2444
2445
2446 LINKALL=$llvm_cv_link_all_option
2447
2448 NOLINKALL=$llvm_cv_no_link_all_option
2449
2450
2451 case $llvm_cv_platform_type in
2452   Unix)
2453
2454 cat >>confdefs.h <<\_ACEOF
2455 #define LLVM_ON_UNIX 1
2456 _ACEOF
2457
2458     LLVM_ON_UNIX=1
2459
2460     LLVM_ON_WIN32=0
2461
2462     ;;
2463   Win32)
2464
2465 cat >>confdefs.h <<\_ACEOF
2466 #define LLVM_ON_WIN32 1
2467 _ACEOF
2468
2469     LLVM_ON_UNIX=0
2470
2471     LLVM_ON_WIN32=1
2472
2473     ;;
2474 esac
2475
2476 { echo "$as_me:$LINENO: checking target architecture" >&5
2477 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2478 if test "${llvm_cv_target_arch+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   case $target in
2482   i?86-*)                 llvm_cv_target_arch="x86" ;;
2483   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2484   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2485   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2486   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2487   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2488   mips-*)                 llvm_cv_target_arch="Mips" ;;
2489   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2490   xcore-*)                llvm_cv_target_arch="XCore" ;;
2491   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2492   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2493   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2494   *)                      llvm_cv_target_arch="Unknown" ;;
2495 esac
2496 fi
2497 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2498 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2499
2500 if test "$llvm_cv_target_arch" = "Unknown" ; then
2501   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2502 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2503 fi
2504
2505 # Determine the LLVM native architecture for the target
2506 case "$llvm_cv_target_arch" in
2507     x86)     LLVM_NATIVE_ARCH="X86" ;;
2508     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2509     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2510 esac
2511
2512 ARCH=$llvm_cv_target_arch
2513
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520 if test -n "$ac_tool_prefix"; then
2521   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_CC+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$CC"; then
2529   ac_cv_prog_CC="$CC" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2538     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 CC=$ac_cv_prog_CC
2549 if test -n "$CC"; then
2550   { echo "$as_me:$LINENO: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6; }
2552 else
2553   { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$ac_cv_prog_CC"; then
2560   ac_ct_CC=$CC
2561   # Extract the first word of "gcc", so it can be a program name with args.
2562 set dummy gcc; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test -n "$ac_ct_CC"; then
2569   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_ac_ct_CC="gcc"
2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2591 echo "${ECHO_T}$ac_ct_CC" >&6; }
2592 else
2593   { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2595 fi
2596
2597   if test "x$ac_ct_CC" = x; then
2598     CC=""
2599   else
2600     case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet.  If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&5
2605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet.  If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610     CC=$ac_ct_CC
2611   fi
2612 else
2613   CC="$ac_cv_prog_CC"
2614 fi
2615
2616 if test -z "$CC"; then
2617           if test -n "$ac_tool_prefix"; then
2618     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   if test -n "$CC"; then
2626   ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633   for ac_exec_ext in '' $ac_executable_extensions; do
2634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2635     ac_cv_prog_CC="${ac_tool_prefix}cc"
2636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2649 else
2650   { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2652 fi
2653
2654
2655   fi
2656 fi
2657 if test -z "$CC"; then
2658   # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   if test -n "$CC"; then
2666   ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668   ac_prog_rejected=no
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677        ac_prog_rejected=yes
2678        continue
2679      fi
2680     ac_cv_prog_CC="cc"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 if test $ac_prog_rejected = yes; then
2689   # We found a bogon in the path, so make sure we never use it.
2690   set dummy $ac_cv_prog_CC
2691   shift
2692   if test $# != 0; then
2693     # We chose a different compiler from the bogus one.
2694     # However, it has the same basename, so the bogon will be chosen
2695     # first if we set CC to just the basename; use the full file name.
2696     shift
2697     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698   fi
2699 fi
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704   { echo "$as_me:$LINENO: result: $CC" >&5
2705 echo "${ECHO_T}$CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712 fi
2713 if test -z "$CC"; then
2714   if test -n "$ac_tool_prefix"; then
2715   for ac_prog in cl.exe
2716   do
2717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732   for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2748 else
2749   { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754     test -n "$CC" && break
2755   done
2756 fi
2757 if test -z "$CC"; then
2758   ac_ct_CC=$CC
2759   for ac_prog in cl.exe
2760 do
2761   # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776   for ac_exec_ext in '' $ac_executable_extensions; do
2777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2778     ac_cv_prog_ac_ct_CC="$ac_prog"
2779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6; }
2792 else
2793   { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2795 fi
2796
2797
2798   test -n "$ac_ct_CC" && break
2799 done
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet.  If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&5
2809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet.  If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2812 ac_tool_warned=yes ;;
2813 esac
2814     CC=$ac_ct_CC
2815   fi
2816 fi
2817
2818 fi
2819
2820
2821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: no acceptable C compiler found in \$PATH
2824 See \`config.log' for more details." >&2;}
2825    { (exit 1); exit 1; }; }
2826
2827 # Provide some information about the compiler.
2828 echo "$as_me:$LINENO: checking for C compiler version" >&5
2829 ac_compiler=`set X $ac_compile; echo $2`
2830 { (ac_try="$ac_compiler --version >&5"
2831 case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_compiler --version >&5") 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }
2840 { (ac_try="$ac_compiler -v >&5"
2841 case "(($ac_try" in
2842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843   *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846   (eval "$ac_compiler -v >&5") 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }
2850 { (ac_try="$ac_compiler -V >&5"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_compiler -V >&5") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }
2860
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867
2868 int
2869 main ()
2870 {
2871
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 ac_clean_files_save=$ac_clean_files
2877 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2878 # Try to create an executable without -o first, disregard a.out.
2879 # It will help us diagnose broken compilers, and finding out an intuition
2880 # of exeext.
2881 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2882 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2883 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2884 #
2885 # List of possible output files, starting from the most likely.
2886 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2887 # only as a last resort.  b.out is created by i960 compilers.
2888 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2889 #
2890 # The IRIX 6 linker writes into existing files which may not be
2891 # executable, retaining their permissions.  Remove them first so a
2892 # subsequent execution test works.
2893 ac_rmfiles=
2894 for ac_file in $ac_files
2895 do
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2899   esac
2900 done
2901 rm -f $ac_rmfiles
2902
2903 if { (ac_try="$ac_link_default"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_link_default") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; then
2913   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2916 # so that the user can short-circuit this test for compilers unknown to
2917 # Autoconf.
2918 for ac_file in $ac_files
2919 do
2920   test -f "$ac_file" || continue
2921   case $ac_file in
2922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2923         ;;
2924     [ab].out )
2925         # We found the default executable, but exeext='' is most
2926         # certainly right.
2927         break;;
2928     *.* )
2929         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930         then :; else
2931            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932         fi
2933         # We set ac_cv_exeext here because the later test for it is not
2934         # safe: cross compilers may not add the suffix if given an `-o'
2935         # argument, so we may need to know it at that point already.
2936         # Even if this section looks crufty: it has the advantage of
2937         # actually working.
2938         break;;
2939     * )
2940         break;;
2941   esac
2942 done
2943 test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&2;}
2953    { (exit 77); exit 77; }; }
2954 fi
2955
2956 ac_exeext=$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_file" >&5
2958 echo "${ECHO_T}$ac_file" >&6; }
2959
2960 # Check that the compiler produces executables we can run.  If not, either
2961 # the compiler is broken, or we cross compile.
2962 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965 # If not cross compiling, check that we can run a simple program.
2966 if test "$cross_compiling" != yes; then
2967   if { ac_try='./$ac_file'
2968   { (case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_try") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977     cross_compiling=no
2978   else
2979     if test "$cross_compiling" = maybe; then
2980         cross_compiling=yes
2981     else
2982         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&2;}
2988    { (exit 1); exit 1; }; }
2989     fi
2990   fi
2991 fi
2992 { echo "$as_me:$LINENO: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6; }
2994
2995 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2996 ac_clean_files=$ac_clean_files_save
2997 # Check that the compiler produces executables we can run.  If not, either
2998 # the compiler is broken, or we cross compile.
2999 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3000 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3001 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3002 echo "${ECHO_T}$cross_compiling" >&6; }
3003
3004 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3005 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3006 if { (ac_try="$ac_link"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_link") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; then
3016   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3017 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3018 # work properly (i.e., refer to `conftest.exe'), while it won't with
3019 # `rm'.
3020 for ac_file in conftest.exe conftest conftest.*; do
3021   test -f "$ac_file" || continue
3022   case $ac_file in
3023     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3024     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025           break;;
3026     * ) break;;
3027   esac
3028 done
3029 else
3030   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&2;}
3034    { (exit 1); exit 1; }; }
3035 fi
3036
3037 rm -f conftest$ac_cv_exeext
3038 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3039 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3040
3041 rm -f conftest.$ac_ext
3042 EXEEXT=$ac_cv_exeext
3043 ac_exeext=$EXEEXT
3044 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3045 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3046 if test "${ac_cv_objext+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.o conftest.obj
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compile") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; then
3075   for ac_file in conftest.o conftest.obj conftest.*; do
3076   test -f "$ac_file" || continue;
3077   case $ac_file in
3078     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3079     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3080        break;;
3081   esac
3082 done
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095 fi
3096 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097 echo "${ECHO_T}$ac_cv_objext" >&6; }
3098 OBJEXT=$ac_cv_objext
3099 ac_objext=$OBJEXT
3100 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3102 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115 #ifndef __GNUC__
3116        choke me
3117 #endif
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compile") 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138   { (case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_try") 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_try") 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   ac_compiler_gnu=yes
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162         ac_compiler_gnu=no
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167
3168 fi
3169 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3171 GCC=`test $ac_compiler_gnu = yes && echo yes`
3172 ac_test_CFLAGS=${CFLAGS+set}
3173 ac_save_CFLAGS=$CFLAGS
3174 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3176 if test "${ac_cv_prog_cc_g+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   ac_save_c_werror_flag=$ac_c_werror_flag
3180    ac_c_werror_flag=yes
3181    ac_cv_prog_cc_g=no
3182    CFLAGS="-g"
3183    cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189
3190 int
3191 main ()
3192 {
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } &&
3212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213   { (case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218   (eval "$ac_try") 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; } &&
3222          { ac_try='test -s conftest.$ac_objext'
3223   { (case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_try") 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232   ac_cv_prog_cc_g=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         CFLAGS=""
3238       cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } &&
3267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268   { (case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273   (eval "$ac_try") 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; } &&
3277          { ac_try='test -s conftest.$ac_objext'
3278   { (case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283   (eval "$ac_try") 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; }; then
3287   :
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292         ac_c_werror_flag=$ac_save_c_werror_flag
3293          CFLAGS="-g"
3294          cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h.  */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h.  */
3300
3301 int
3302 main ()
3303 {
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_compile") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } &&
3323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324   { (case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_try") 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; } &&
3333          { ac_try='test -s conftest.$ac_objext'
3334   { (case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_try") 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; }; then
3343   ac_cv_prog_cc_g=yes
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348
3349 fi
3350
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 fi
3353
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 fi
3356
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358    ac_c_werror_flag=$ac_save_c_werror_flag
3359 fi
3360 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3362 if test "$ac_test_CFLAGS" = set; then
3363   CFLAGS=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365   if test "$GCC" = yes; then
3366     CFLAGS="-g -O2"
3367   else
3368     CFLAGS="-g"
3369   fi
3370 else
3371   if test "$GCC" = yes; then
3372     CFLAGS="-O2"
3373   else
3374     CFLAGS=
3375   fi
3376 fi
3377 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3378 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_cc_c89+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   ac_cv_prog_cc_c89=no
3383 ac_save_CC=$CC
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #include <stdarg.h>
3391 #include <stdio.h>
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3398      char **p;
3399      int i;
3400 {
3401   return p[i];
3402 }
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3404 {
3405   char *s;
3406   va_list v;
3407   va_start (v,p);
3408   s = g (p, va_arg (v,int));
3409   va_end (v);
3410   return s;
3411 }
3412
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3414    function prototypes and stuff, but not '\xHH' hex character constants.
3415    These don't provoke an error unfortunately, instead are silently treated
3416    as 'x'.  The following induces an error, until -std is added to get
3417    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3418    array size at least.  It's necessary to write '\x00'==0 to get something
3419    that's true only with -std.  */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421
3422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423    inside strings and character constants.  */
3424 #define FOO(x) 'x'
3425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3426
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 int argc;
3432 char **argv;
3433 int
3434 main ()
3435 {
3436 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3443 do
3444   CC="$ac_save_CC $ac_arg"
3445   rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_compile") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } &&
3459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460   { (case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465   (eval "$ac_try") 2>&5
3466   ac_status=$?
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); }; } &&
3469          { ac_try='test -s conftest.$ac_objext'
3470   { (case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_try") 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; }; then
3479   ac_cv_prog_cc_c89=$ac_arg
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484
3485 fi
3486
3487 rm -f core conftest.err conftest.$ac_objext
3488   test "x$ac_cv_prog_cc_c89" != "xno" && break
3489 done
3490 rm -f conftest.$ac_ext
3491 CC=$ac_save_CC
3492
3493 fi
3494 # AC_CACHE_VAL
3495 case "x$ac_cv_prog_cc_c89" in
3496   x)
3497     { echo "$as_me:$LINENO: result: none needed" >&5
3498 echo "${ECHO_T}none needed" >&6; } ;;
3499   xno)
3500     { echo "$as_me:$LINENO: result: unsupported" >&5
3501 echo "${ECHO_T}unsupported" >&6; } ;;
3502   *)
3503     CC="$CC $ac_cv_prog_cc_c89"
3504     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3506 esac
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3522 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3525   CPP=
3526 fi
3527 if test -z "$CPP"; then
3528   if test "${ac_cv_prog_CPP+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531       # Double quotes because CPP needs to be expanded
3532     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533     do
3534       ac_preproc_ok=false
3535 for ac_c_preproc_warn_flag in '' yes
3536 do
3537   # Use a header file that comes with gcc, so configuring glibc
3538   # with a fresh cross-compiler works.
3539   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540   # <limits.h> exists even on freestanding compilers.
3541   # On the NeXT, cc -E runs the code through the compiler's parser,
3542   # not just through cpp. "Syntax error" is here to catch this case.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 #ifdef __STDC__
3550 # include <limits.h>
3551 #else
3552 # include <assert.h>
3553 #endif
3554                      Syntax error
3555 _ACEOF
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572   else
3573     ac_cpp_err=
3574   fi
3575 else
3576   ac_cpp_err=yes
3577 fi
3578 if test -z "$ac_cpp_err"; then
3579   :
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584   # Broken: fails on valid input.
3585 continue
3586 fi
3587
3588 rm -f conftest.err conftest.$ac_ext
3589
3590   # OK, works on sane cases.  Now check whether nonexistent headers
3591   # can be detected and how.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null; then
3613   if test -s conftest.err; then
3614     ac_cpp_err=$ac_c_preproc_warn_flag
3615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616   else
3617     ac_cpp_err=
3618   fi
3619 else
3620   ac_cpp_err=yes
3621 fi
3622 if test -z "$ac_cpp_err"; then
3623   # Broken: success on invalid input.
3624 continue
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629   # Passes both tests.
3630 ac_preproc_ok=:
3631 break
3632 fi
3633
3634 rm -f conftest.err conftest.$ac_ext
3635
3636 done
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3640   break
3641 fi
3642
3643     done
3644     ac_cv_prog_CPP=$CPP
3645
3646 fi
3647   CPP=$ac_cv_prog_CPP
3648 else
3649   ac_cv_prog_CPP=$CPP
3650 fi
3651 { echo "$as_me:$LINENO: result: $CPP" >&5
3652 echo "${ECHO_T}$CPP" >&6; }
3653 ac_preproc_ok=false
3654 for ac_c_preproc_warn_flag in '' yes
3655 do
3656   # Use a header file that comes with gcc, so configuring glibc
3657   # with a fresh cross-compiler works.
3658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659   # <limits.h> exists even on freestanding compilers.
3660   # On the NeXT, cc -E runs the code through the compiler's parser,
3661   # not just through cpp. "Syntax error" is here to catch this case.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673                      Syntax error
3674 _ACEOF
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } >/dev/null; then
3688   if test -s conftest.err; then
3689     ac_cpp_err=$ac_c_preproc_warn_flag
3690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3691   else
3692     ac_cpp_err=
3693   fi
3694 else
3695   ac_cpp_err=yes
3696 fi
3697 if test -z "$ac_cpp_err"; then
3698   :
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706
3707 rm -f conftest.err conftest.$ac_ext
3708
3709   # OK, works on sane cases.  Now check whether nonexistent headers
3710   # can be detected and how.
3711   cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h.  */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h.  */
3717 #include <ac_nonexistent.h>
3718 _ACEOF
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } >/dev/null; then
3732   if test -s conftest.err; then
3733     ac_cpp_err=$ac_c_preproc_warn_flag
3734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3735   else
3736     ac_cpp_err=
3737   fi
3738 else
3739   ac_cpp_err=yes
3740 fi
3741 if test -z "$ac_cpp_err"; then
3742   # Broken: success on invalid input.
3743 continue
3744 else
3745   echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748   # Passes both tests.
3749 ac_preproc_ok=:
3750 break
3751 fi
3752
3753 rm -f conftest.err conftest.$ac_ext
3754
3755 done
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3759   :
3760 else
3761   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_prog in grep ggrep; do
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3797     # Check for GNU ac_path_GREP and select it if it is found.
3798   # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3800 *GNU*)
3801   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 *)
3803   ac_count=0
3804   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805   while :
3806   do
3807     cat "conftest.in" "conftest.in" >"conftest.tmp"
3808     mv "conftest.tmp" "conftest.in"
3809     cp "conftest.in" "conftest.nl"
3810     echo 'GREP' >> "conftest.nl"
3811     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813     ac_count=`expr $ac_count + 1`
3814     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815       # Best one so far, save it but keep looking for a better one
3816       ac_cv_path_GREP="$ac_path_GREP"
3817       ac_path_GREP_max=$ac_count
3818     fi
3819     # 10*(2^10) chars as input seems more than enough
3820     test $ac_count -gt 10 && break
3821   done
3822   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825
3826     $ac_path_GREP_found && break 3
3827   done
3828 done
3829
3830 done
3831 IFS=$as_save_IFS
3832
3833
3834 fi
3835
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840    { (exit 1); exit 1; }; }
3841 fi
3842
3843 else
3844   ac_cv_path_GREP=$GREP
3845 fi
3846
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851  GREP="$ac_cv_path_GREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860    then ac_cv_path_EGREP="$GREP -E"
3861    else
3862      # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_prog in egrep; do
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3879     # Check for GNU ac_path_EGREP and select it if it is found.
3880   # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885   ac_count=0
3886   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887   while :
3888   do
3889     cat "conftest.in" "conftest.in" >"conftest.tmp"
3890     mv "conftest.tmp" "conftest.in"
3891     cp "conftest.in" "conftest.nl"
3892     echo 'EGREP' >> "conftest.nl"
3893     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895     ac_count=`expr $ac_count + 1`
3896     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897       # Best one so far, save it but keep looking for a better one
3898       ac_cv_path_EGREP="$ac_path_EGREP"
3899       ac_path_EGREP_max=$ac_count
3900     fi
3901     # 10*(2^10) chars as input seems more than enough
3902     test $ac_count -gt 10 && break
3903   done
3904   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908     $ac_path_EGREP_found && break 3
3909   done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922    { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926   ac_cv_path_EGREP=$EGREP
3927 fi
3928
3929
3930    fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934  EGREP="$ac_cv_path_EGREP"
3935
3936
3937 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3939 if test "${ac_cv_header_stdc+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <stdlib.h>
3949 #include <stdarg.h>
3950 #include <string.h>
3951 #include <float.h>
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976   { (case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_try") 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; } &&
3985          { ac_try='test -s conftest.$ac_objext'
3986   { (case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991   (eval "$ac_try") 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   ac_cv_header_stdc=yes
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000         ac_cv_header_stdc=no
4001 fi
4002
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004
4005 if test $ac_cv_header_stdc = yes; then
4006   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4007   cat >conftest.$ac_ext <<_ACEOF
4008 /* confdefs.h.  */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h.  */
4013 #include <string.h>
4014
4015 _ACEOF
4016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017   $EGREP "memchr" >/dev/null 2>&1; then
4018   :
4019 else
4020   ac_cv_header_stdc=no
4021 fi
4022 rm -f conftest*
4023
4024 fi
4025
4026 if test $ac_cv_header_stdc = yes; then
4027   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4028   cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <stdlib.h>
4035
4036 _ACEOF
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038   $EGREP "free" >/dev/null 2>&1; then
4039   :
4040 else
4041   ac_cv_header_stdc=no
4042 fi
4043 rm -f conftest*
4044
4045 fi
4046
4047 if test $ac_cv_header_stdc = yes; then
4048   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4049   if test "$cross_compiling" = yes; then
4050   :
4051 else
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 #include <ctype.h>
4059 #include <stdlib.h>
4060 #if ((' ' & 0x0FF) == 0x020)
4061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4063 #else
4064 # define ISLOWER(c) \
4065                    (('a' <= (c) && (c) <= 'i') \
4066                      || ('j' <= (c) && (c) <= 'r') \
4067                      || ('s' <= (c) && (c) <= 'z'))
4068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069 #endif
4070
4071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4072 int
4073 main ()
4074 {
4075   int i;
4076   for (i = 0; i < 256; i++)
4077     if (XOR (islower (i), ISLOWER (i))
4078         || toupper (i) != TOUPPER (i))
4079       return 2;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest$ac_exeext
4084 if { (ac_try="$ac_link"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_link") 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4103   :
4104 else
4105   echo "$as_me: program exited with status $ac_status" >&5
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 ( exit $ac_status )
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4113 fi
4114
4115
4116 fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4119 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4120 if test $ac_cv_header_stdc = yes; then
4121
4122 cat >>confdefs.h <<\_ACEOF
4123 #define STDC_HEADERS 1
4124 _ACEOF
4125
4126 fi
4127
4128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4139                   inttypes.h stdint.h unistd.h
4140 do
4141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 $ac_includes_default
4154
4155 #include <$ac_header>
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } &&
4171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172   { (case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   eval "$as_ac_Header=yes"
4192 else
4193   echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196         eval "$as_ac_Header=no"
4197 fi
4198
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 fi
4201 ac_res=`eval echo '${'$as_ac_Header'}'`
4202                { echo "$as_me:$LINENO: result: $ac_res" >&5
4203 echo "${ECHO_T}$ac_res" >&6; }
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205   cat >>confdefs.h <<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 _ACEOF
4208
4209 fi
4210
4211 done
4212
4213
4214 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4215 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4216 if test "${ac_cv_c_bigendian+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   # See if sys/param.h defines the BYTE_ORDER macro.
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #include <sys/types.h>
4227 #include <sys/param.h>
4228
4229 int
4230 main ()
4231 {
4232 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4233  bogus endian macros
4234 #endif
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_compile") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255   { (case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260   (eval "$ac_try") 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   # It does; now see whether it defined to BIG_ENDIAN or not.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <sys/types.h>
4282 #include <sys/param.h>
4283
4284 int
4285 main ()
4286 {
4287 #if BYTE_ORDER != BIG_ENDIAN
4288  not big endian
4289 #endif
4290
4291   ;
4292   return 0;
4293 }
4294 _ACEOF
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4297 case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_compile") 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } &&
4309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310   { (case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315   (eval "$ac_try") 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; } &&
4319          { ac_try='test -s conftest.$ac_objext'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_c_bigendian=yes
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334         ac_cv_c_bigendian=no
4335 fi
4336
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342         # It does not; compile a test program.
4343 if test "$cross_compiling" = yes; then
4344   # try to guess the endianness by grepping values into an object file
4345   ac_cv_c_bigendian=unknown
4346   cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4353 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4354 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4355 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4356 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4357 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4358 int
4359 main ()
4360 {
4361  _ascii (); _ebcdic ();
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_compile") 2>conftest.er1
4374   ac_status=$?
4375   grep -v '^ *+' conftest.er1 >conftest.err
4376   rm -f conftest.er1
4377   cat conftest.err >&5
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } &&
4380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4381   { (case "(($ac_try" in
4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383   *) ac_try_echo=$ac_try;;
4384 esac
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386   (eval "$ac_try") 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; } &&
4390          { ac_try='test -s conftest.$ac_objext'
4391   { (case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396   (eval "$ac_try") 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4401   ac_cv_c_bigendian=yes
4402 fi
4403 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4404   if test "$ac_cv_c_bigendian" = unknown; then
4405     ac_cv_c_bigendian=no
4406   else
4407     # finding both strings is unlikely to happen, but who knows?
4408     ac_cv_c_bigendian=unknown
4409   fi
4410 fi
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415
4416 fi
4417
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 else
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 $ac_includes_default
4427 int
4428 main ()
4429 {
4430
4431   /* Are we little or big endian?  From Harbison&Steele.  */
4432   union
4433   {
4434     long int l;
4435     char c[sizeof (long int)];
4436   } u;
4437   u.l = 1;
4438   return u.c[sizeof (long int) - 1] == 1;
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest$ac_exeext
4445 if { (ac_try="$ac_link"
4446 case "(($ac_try" in
4447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448   *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451   (eval "$ac_link") 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4455   { (case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460   (eval "$ac_try") 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; }; then
4464   ac_cv_c_bigendian=no
4465 else
4466   echo "$as_me: program exited with status $ac_status" >&5
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 ( exit $ac_status )
4471 ac_cv_c_bigendian=yes
4472 fi
4473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4474 fi
4475
4476
4477 fi
4478
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4483 case $ac_cv_c_bigendian in
4484   yes)
4485     ENDIAN=big
4486  ;;
4487   no)
4488     ENDIAN=little
4489  ;;
4490   *)
4491     { { echo "$as_me:$LINENO: error: unknown endianness
4492 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4493 echo "$as_me: error: unknown endianness
4494 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4495    { (exit 1); exit 1; }; } ;;
4496 esac
4497
4498
4499 if test "$cross_compiling" = yes; then
4500   LLVM_CROSS_COMPILING=1
4501
4502
4503 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4504 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4505 if test "${ac_cv_build_exeext+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4509   ac_cv_build_exeext=.exe
4510 else
4511   ac_build_prefix=${build_alias}-
4512
4513   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4514 set dummy ${ac_build_prefix}gcc; ac_word=$2
4515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4517 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   if test -n "$BUILD_CC"; then
4521   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 BUILD_CC=$ac_cv_prog_BUILD_CC
4541 if test -n "$BUILD_CC"; then
4542   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543 echo "${ECHO_T}$BUILD_CC" >&6; }
4544 else
4545   { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548
4549
4550   if test -z "$BUILD_CC"; then
4551      # Extract the first word of "gcc", so it can be a program name with args.
4552 set dummy gcc; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$BUILD_CC"; then
4559   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_BUILD_CC="gcc"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 BUILD_CC=$ac_cv_prog_BUILD_CC
4579 if test -n "$BUILD_CC"; then
4580   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4581 echo "${ECHO_T}$BUILD_CC" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588      if test -z "$BUILD_CC"; then
4589        # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$BUILD_CC"; then
4597   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4598 else
4599   ac_prog_rejected=no
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608        ac_prog_rejected=yes
4609        continue
4610      fi
4611     ac_cv_prog_BUILD_CC="cc"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 if test $ac_prog_rejected = yes; then
4620   # We found a bogon in the path, so make sure we never use it.
4621   set dummy $ac_cv_prog_BUILD_CC
4622   shift
4623   if test $# != 0; then
4624     # We chose a different compiler from the bogus one.
4625     # However, it has the same basename, so the bogon will be chosen
4626     # first if we set BUILD_CC to just the basename; use the full file name.
4627     shift
4628     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4629   fi
4630 fi
4631 fi
4632 fi
4633 BUILD_CC=$ac_cv_prog_BUILD_CC
4634 if test -n "$BUILD_CC"; then
4635   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636 echo "${ECHO_T}$BUILD_CC" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643      fi
4644   fi
4645   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4646 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4647    { (exit 1); exit 1; }; }
4648   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4649   rm -f conftest*
4650   echo 'int main () { return 0; }' > conftest.$ac_ext
4651   ac_cv_build_exeext=
4652   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4653   (eval $ac_build_link) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; then
4657     for file in conftest.*; do
4658       case $file in
4659       *.c | *.o | *.obj | *.dSYM) ;;
4660       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4661       esac
4662     done
4663   else
4664     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4665 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4666    { (exit 1); exit 1; }; }
4667   fi
4668   rm -f conftest*
4669   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4670 fi
4671 fi
4672
4673 BUILD_EXEEXT=""
4674 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4675 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4676 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4677 ac_build_exeext=$BUILD_EXEEXT
4678
4679   ac_build_prefix=${build_alias}-
4680   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4681 set dummy ${ac_build_prefix}g++; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   if test -n "$BUILD_CXX"; then
4688   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708 if test -n "$BUILD_CXX"; then
4709   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710 echo "${ECHO_T}$BUILD_CXX" >&6; }
4711 else
4712   { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716
4717   if test -z "$BUILD_CXX"; then
4718      # Extract the first word of "g++", so it can be a program name with args.
4719 set dummy g++; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   if test -n "$BUILD_CXX"; then
4726   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731   IFS=$as_save_IFS
4732   test -z "$as_dir" && as_dir=.
4733   for ac_exec_ext in '' $ac_executable_extensions; do
4734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4735     ac_cv_prog_BUILD_CXX="g++"
4736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737     break 2
4738   fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4746 if test -n "$BUILD_CXX"; then
4747   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4748 echo "${ECHO_T}$BUILD_CXX" >&6; }
4749 else
4750   { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 fi
4753
4754
4755      if test -z "$BUILD_CXX"; then
4756        # Extract the first word of "c++", so it can be a program name with args.
4757 set dummy c++; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   if test -n "$BUILD_CXX"; then
4764   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4765 else
4766   ac_prog_rejected=no
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772   for ac_exec_ext in '' $ac_executable_extensions; do
4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4774     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4775        ac_prog_rejected=yes
4776        continue
4777      fi
4778     ac_cv_prog_BUILD_CXX="c++"
4779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780     break 2
4781   fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 if test $ac_prog_rejected = yes; then
4787   # We found a bogon in the path, so make sure we never use it.
4788   set dummy $ac_cv_prog_BUILD_CXX
4789   shift
4790   if test $# != 0; then
4791     # We chose a different compiler from the bogus one.
4792     # However, it has the same basename, so the bogon will be chosen
4793     # first if we set BUILD_CXX to just the basename; use the full file name.
4794     shift
4795     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4796   fi
4797 fi
4798 fi
4799 fi
4800 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801 if test -n "$BUILD_CXX"; then
4802   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803 echo "${ECHO_T}$BUILD_CXX" >&6; }
4804 else
4805   { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4807 fi
4808
4809
4810      fi
4811   fi
4812 else
4813   LLVM_CROSS_COMPILING=0
4814
4815 fi
4816
4817 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4818   cvsbuild="yes"
4819   optimize="no"
4820   CVSBUILD=CVSBUILD=1
4821
4822 else
4823   cvsbuild="no"
4824   optimize="yes"
4825 fi
4826
4827
4828 # Check whether --enable-optimized was given.
4829 if test "${enable_optimized+set}" = set; then
4830   enableval=$enable_optimized;
4831 else
4832   enableval=$optimize
4833 fi
4834
4835 if test ${enableval} = "no" ; then
4836   ENABLE_OPTIMIZED=
4837
4838 else
4839   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4840
4841 fi
4842
4843 # Check whether --enable-profiling was given.
4844 if test "${enable_profiling+set}" = set; then
4845   enableval=$enable_profiling;
4846 else
4847   enableval="no"
4848 fi
4849
4850 if test ${enableval} = "no" ; then
4851   ENABLE_PROFILING=
4852
4853 else
4854   ENABLE_PROFILING=ENABLE_PROFILING=1
4855
4856 fi
4857
4858 # Check whether --enable-assertions was given.
4859 if test "${enable_assertions+set}" = set; then
4860   enableval=$enable_assertions;
4861 else
4862   enableval="yes"
4863 fi
4864
4865 if test ${enableval} = "yes" ; then
4866   DISABLE_ASSERTIONS=
4867
4868 else
4869   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4870
4871 fi
4872
4873 # Check whether --enable-expensive-checks was given.
4874 if test "${enable_expensive_checks+set}" = set; then
4875   enableval=$enable_expensive_checks;
4876 else
4877   enableval="no"
4878 fi
4879
4880 if test ${enableval} = "yes" ; then
4881   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4882
4883   EXPENSIVE_CHECKS=yes
4884
4885 else
4886   ENABLE_EXPENSIVE_CHECKS=
4887
4888   EXPENSIVE_CHECKS=no
4889
4890 fi
4891
4892 # Check whether --enable-debug-runtime was given.
4893 if test "${enable_debug_runtime+set}" = set; then
4894   enableval=$enable_debug_runtime;
4895 else
4896   enableval=no
4897 fi
4898
4899 if test ${enableval} = "no" ; then
4900   DEBUG_RUNTIME=
4901
4902 else
4903   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4904
4905 fi
4906
4907 # Check whether --enable-debug-symbols was given.
4908 if test "${enable_debug_symbols+set}" = set; then
4909   enableval=$enable_debug_symbols;
4910 else
4911   enableval=no
4912 fi
4913
4914 if test ${enableval} = "no" ; then
4915   DEBUG_SYMBOLS=
4916
4917 else
4918   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4919
4920 fi
4921
4922 # Check whether --enable-jit was given.
4923 if test "${enable_jit+set}" = set; then
4924   enableval=$enable_jit;
4925 else
4926   enableval=default
4927 fi
4928
4929 if test ${enableval} = "no"
4930 then
4931   JIT=
4932
4933 else
4934   case "$llvm_cv_target_arch" in
4935     x86)         TARGET_HAS_JIT=1
4936  ;;
4937     Sparc)       TARGET_HAS_JIT=0
4938  ;;
4939     PowerPC)     TARGET_HAS_JIT=1
4940  ;;
4941     x86_64)      TARGET_HAS_JIT=1
4942  ;;
4943     Alpha)       TARGET_HAS_JIT=1
4944  ;;
4945     ARM)         TARGET_HAS_JIT=1
4946  ;;
4947     Mips)        TARGET_HAS_JIT=0
4948  ;;
4949     PIC16)       TARGET_HAS_JIT=0
4950  ;;
4951     XCore)       TARGET_HAS_JIT=0
4952  ;;
4953     MSP430)      TARGET_HAS_JIT=0
4954  ;;
4955     SystemZ)     TARGET_HAS_JIT=0
4956  ;;
4957     Blackfin)    TARGET_HAS_JIT=0
4958  ;;
4959     *)           TARGET_HAS_JIT=0
4960  ;;
4961   esac
4962 fi
4963
4964 # Check whether --enable-doxygen was given.
4965 if test "${enable_doxygen+set}" = set; then
4966   enableval=$enable_doxygen;
4967 else
4968   enableval=default
4969 fi
4970
4971 case "$enableval" in
4972   yes) ENABLE_DOXYGEN=1
4973  ;;
4974   no)  ENABLE_DOXYGEN=0
4975  ;;
4976   default) ENABLE_DOXYGEN=0
4977  ;;
4978   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4980    { (exit 1); exit 1; }; } ;;
4981 esac
4982
4983 # Check whether --enable-threads was given.
4984 if test "${enable_threads+set}" = set; then
4985   enableval=$enable_threads;
4986 else
4987   enableval=default
4988 fi
4989
4990 case "$enableval" in
4991   yes) ENABLE_THREADS=1
4992  ;;
4993   no)  ENABLE_THREADS=0
4994  ;;
4995   default) ENABLE_THREADS=1
4996  ;;
4997   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000 esac
5001
5002 cat >>confdefs.h <<_ACEOF
5003 #define ENABLE_THREADS $ENABLE_THREADS
5004 _ACEOF
5005
5006
5007 # Check whether --enable-pic was given.
5008 if test "${enable_pic+set}" = set; then
5009   enableval=$enable_pic;
5010 else
5011   enableval=default
5012 fi
5013
5014 case "$enableval" in
5015   yes) ENABLE_PIC=1
5016  ;;
5017   no)  ENABLE_PIC=0
5018  ;;
5019   default) ENABLE_PIC=1
5020  ;;
5021   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5023    { (exit 1); exit 1; }; } ;;
5024 esac
5025
5026 cat >>confdefs.h <<_ACEOF
5027 #define ENABLE_PIC $ENABLE_PIC
5028 _ACEOF
5029
5030
5031 TARGETS_TO_BUILD=""
5032 # Check whether --enable-targets was given.
5033 if test "${enable_targets+set}" = set; then
5034   enableval=$enable_targets;
5035 else
5036   enableval=all
5037 fi
5038
5039 if test "$enableval" = host-only ; then
5040   enableval=host
5041 fi
5042 case "$enableval" in
5043   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5044   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5045       case "$a_target" in
5046         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5047         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5048         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5049         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5050         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5051         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5052         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5053         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5054         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5055         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5056         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5057         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5058         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5059         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5060         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5061         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5062         host) case "$llvm_cv_target_arch" in
5063             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5072             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5073             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5074             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5075             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5076             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5077 echo "$as_me: error: Can not set target to build" >&2;}
5078    { (exit 1); exit 1; }; } ;;
5079           esac ;;
5080         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5081 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5082    { (exit 1); exit 1; }; } ;;
5083       esac
5084   done
5085   ;;
5086 esac
5087 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5088
5089
5090 # Determine whether we are building LLVM support for the native architecture.
5091 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5092 for a_target in $TARGETS_TO_BUILD; do
5093   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5094     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5095
5096 cat >>confdefs.h <<_ACEOF
5097 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5098 _ACEOF
5099
5100   fi
5101 done
5102
5103 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5104 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5105 LLVM_ENUM_TARGETS=""
5106 LLVM_ENUM_ASM_PRINTERS=""
5107 LLVM_ENUM_ASM_PARSERS=""
5108 for target_to_build in $TARGETS_TO_BUILD; do
5109   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5110   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5111     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5112   fi
5113   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5114     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5115   fi
5116 done
5117
5118
5119
5120
5121 # Check whether --enable-cbe-printf-a was given.
5122 if test "${enable_cbe_printf_a+set}" = set; then
5123   enableval=$enable_cbe_printf_a;
5124 else
5125   enableval=default
5126 fi
5127
5128 case "$enableval" in
5129   yes) ENABLE_CBE_PRINTF_A=1
5130  ;;
5131   no)  ENABLE_CBE_PRINTF_A=0
5132  ;;
5133   default)  ENABLE_CBE_PRINTF_A=1
5134  ;;
5135   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5137    { (exit 1); exit 1; }; } ;;
5138 esac
5139
5140 cat >>confdefs.h <<_ACEOF
5141 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5142 _ACEOF
5143
5144
5145
5146 # Check whether --with-llvmgccdir was given.
5147 if test "${with_llvmgccdir+set}" = set; then
5148   withval=$with_llvmgccdir;
5149 else
5150   withval=default
5151 fi
5152
5153 case "$withval" in
5154   default) WITH_LLVMGCCDIR=default ;;
5155   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5156   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5157 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5158    { (exit 1); exit 1; }; } ;;
5159 esac
5160
5161
5162 # Check whether --with-llvmgcc was given.
5163 if test "${with_llvmgcc+set}" = set; then
5164   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5165       WITH_LLVMGCCDIR=""
5166 fi
5167
5168
5169
5170 # Check whether --with-llvmgxx was given.
5171 if test "${with_llvmgxx+set}" = set; then
5172   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5173     WITH_LLVMGCCDIR=""
5174 fi
5175
5176
5177 if test -n "$LLVMGCC"; then
5178    LLVMGCCCOMMAND="$LLVMGCC"
5179 fi
5180
5181 if test -n "$LLVMGXX"; then
5182    LLVMGXXCOMMAND="$LLVMGXX"
5183 fi
5184
5185 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5186    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5187 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5188    { (exit 1); exit 1; }; };
5189 fi
5190
5191 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5192    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5193 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5194    { (exit 1); exit 1; }; };
5195 fi
5196
5197
5198 # Check whether --with-optimize-option was given.
5199 if test "${with_optimize_option+set}" = set; then
5200   withval=$with_optimize_option;
5201 else
5202   withval=default
5203 fi
5204
5205 { echo "$as_me:$LINENO: checking optimization flags" >&5
5206 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5207 case "$withval" in
5208   default)
5209     case "$llvm_cv_os_type" in
5210     MingW) optimize_option=-O3 ;;
5211     *)     optimize_option=-O2 ;;
5212     esac ;;
5213   *) optimize_option="$withval" ;;
5214 esac
5215 OPTIMIZE_OPTION=$optimize_option
5216
5217 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5218 echo "${ECHO_T}$optimize_option" >&6; }
5219
5220
5221 # Check whether --with-extra-options was given.
5222 if test "${with_extra_options+set}" = set; then
5223   withval=$with_extra_options;
5224 else
5225   withval=default
5226 fi
5227
5228 case "$withval" in
5229   default) EXTRA_OPTIONS= ;;
5230   *) EXTRA_OPTIONS=$withval ;;
5231 esac
5232 EXTRA_OPTIONS=$EXTRA_OPTIONS
5233
5234
5235 # Check whether --enable-bindings was given.
5236 if test "${enable_bindings+set}" = set; then
5237   enableval=$enable_bindings;
5238 else
5239   enableval=default
5240 fi
5241
5242 BINDINGS_TO_BUILD=""
5243 case "$enableval" in
5244   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5245   all ) BINDINGS_TO_BUILD="ocaml" ;;
5246   none | no) BINDINGS_TO_BUILD="" ;;
5247   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5248       case "$a_binding" in
5249         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5250         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5251 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253       esac
5254   done
5255   ;;
5256 esac
5257
5258
5259 # Check whether --with-ocaml-libdir was given.
5260 if test "${with_ocaml_libdir+set}" = set; then
5261   withval=$with_ocaml_libdir;
5262 else
5263   withval=auto
5264 fi
5265
5266 case "$withval" in
5267   auto) with_ocaml_libdir="$withval" ;;
5268   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5270 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274
5275 # Check whether --with-binutils-include was given.
5276 if test "${with_binutils_include+set}" = set; then
5277   withval=$with_binutils_include;
5278 else
5279   withval=default
5280 fi
5281
5282 case "$withval" in
5283   default) WITH_BINUTILS_INCDIR=default ;;
5284   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5285   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5286 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5287    { (exit 1); exit 1; }; } ;;
5288 esac
5289 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5290   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5291
5292   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5293      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5294      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5295 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5296    { (exit 1); exit 1; }; };
5297   fi
5298 fi
5299
5300 # Check whether --enable-libffi was given.
5301 if test "${enable_libffi+set}" = set; then
5302   enableval=$enable_libffi;
5303 else
5304   enableval=yes
5305 fi
5306
5307 case "$enableval" in
5308   yes) llvm_cv_enable_libffi="yes" ;;
5309   no)  llvm_cv_enable_libffi="no"  ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315 if test "$llvm_cv_os_type" = "Win32" ; then
5316    llvmc_dynamic="yes"
5317 else
5318    llvmc_dynamic="no"
5319 fi
5320
5321 # Check whether --enable-llvmc-dynamic was given.
5322 if test "${enable_llvmc_dynamic+set}" = set; then
5323   enableval=$enable_llvmc_dynamic;
5324 else
5325   enableval=$llvmc_dynamic
5326 fi
5327
5328 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5330
5331 else
5332    ENABLE_LLVMC_DYNAMIC=
5333
5334 fi
5335
5336 # Check whether --enable-llvmc-dynamic-plugins was given.
5337 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5338   enableval=$enable_llvmc_dynamic_plugins;
5339 else
5340   enableval=yes
5341 fi
5342
5343 if test ${enableval} = "yes" ; then
5344    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5345
5346 else
5347    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5348
5349 fi
5350
5351
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5359 # On Suns, sometimes $CPP names a directory.
5360 if test -n "$CPP" && test -d "$CPP"; then
5361   CPP=
5362 fi
5363 if test -z "$CPP"; then
5364   if test "${ac_cv_prog_CPP+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367       # Double quotes because CPP needs to be expanded
5368     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5369     do
5370       ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5372 do
5373   # Use a header file that comes with gcc, so configuring glibc
5374   # with a fresh cross-compiler works.
5375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376   # <limits.h> exists even on freestanding compilers.
5377   # On the NeXT, cc -E runs the code through the compiler's parser,
5378   # not just through cpp. "Syntax error" is here to catch this case.
5379   cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390                      Syntax error
5391 _ACEOF
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } >/dev/null; then
5405   if test -s conftest.err; then
5406     ac_cpp_err=$ac_c_preproc_warn_flag
5407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408   else
5409     ac_cpp_err=
5410   fi
5411 else
5412   ac_cpp_err=yes
5413 fi
5414 if test -z "$ac_cpp_err"; then
5415   :
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420   # Broken: fails on valid input.
5421 continue
5422 fi
5423
5424 rm -f conftest.err conftest.$ac_ext
5425
5426   # OK, works on sane cases.  Now check whether nonexistent headers
5427   # can be detected and how.
5428   cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 #include <ac_nonexistent.h>
5435 _ACEOF
5436 if { (ac_try="$ac_cpp conftest.$ac_ext"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } >/dev/null; then
5449   if test -s conftest.err; then
5450     ac_cpp_err=$ac_c_preproc_warn_flag
5451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452   else
5453     ac_cpp_err=
5454   fi
5455 else
5456   ac_cpp_err=yes
5457 fi
5458 if test -z "$ac_cpp_err"; then
5459   # Broken: success on invalid input.
5460 continue
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465   # Passes both tests.
5466 ac_preproc_ok=:
5467 break
5468 fi
5469
5470 rm -f conftest.err conftest.$ac_ext
5471
5472 done
5473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474 rm -f conftest.err conftest.$ac_ext
5475 if $ac_preproc_ok; then
5476   break
5477 fi
5478
5479     done
5480     ac_cv_prog_CPP=$CPP
5481
5482 fi
5483   CPP=$ac_cv_prog_CPP
5484 else
5485   ac_cv_prog_CPP=$CPP
5486 fi
5487 { echo "$as_me:$LINENO: result: $CPP" >&5
5488 echo "${ECHO_T}$CPP" >&6; }
5489 ac_preproc_ok=false
5490 for ac_c_preproc_warn_flag in '' yes
5491 do
5492   # Use a header file that comes with gcc, so configuring glibc
5493   # with a fresh cross-compiler works.
5494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495   # <limits.h> exists even on freestanding compilers.
5496   # On the NeXT, cc -E runs the code through the compiler's parser,
5497   # not just through cpp. "Syntax error" is here to catch this case.
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509                      Syntax error
5510 _ACEOF
5511 if { (ac_try="$ac_cpp conftest.$ac_ext"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } >/dev/null; then
5524   if test -s conftest.err; then
5525     ac_cpp_err=$ac_c_preproc_warn_flag
5526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527   else
5528     ac_cpp_err=
5529   fi
5530 else
5531   ac_cpp_err=yes
5532 fi
5533 if test -z "$ac_cpp_err"; then
5534   :
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539   # Broken: fails on valid input.
5540 continue
5541 fi
5542
5543 rm -f conftest.err conftest.$ac_ext
5544
5545   # OK, works on sane cases.  Now check whether nonexistent headers
5546   # can be detected and how.
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 #include <ac_nonexistent.h>
5554 _ACEOF
5555 if { (ac_try="$ac_cpp conftest.$ac_ext"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } >/dev/null; then
5568   if test -s conftest.err; then
5569     ac_cpp_err=$ac_c_preproc_warn_flag
5570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571   else
5572     ac_cpp_err=
5573   fi
5574 else
5575   ac_cpp_err=yes
5576 fi
5577 if test -z "$ac_cpp_err"; then
5578   # Broken: success on invalid input.
5579 continue
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584   # Passes both tests.
5585 ac_preproc_ok=:
5586 break
5587 fi
5588
5589 rm -f conftest.err conftest.$ac_ext
5590
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then
5595   :
5596 else
5597   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600 See \`config.log' for more details." >&2;}
5601    { (exit 1); exit 1; }; }
5602 fi
5603
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 if test -n "$ac_tool_prefix"; then
5616   for ac_prog in gcc
5617   do
5618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   if test -n "$CC"; then
5626   ac_cv_prog_CC="$CC" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633   for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 CC=$ac_cv_prog_CC
5646 if test -n "$CC"; then
5647   { echo "$as_me:$LINENO: result: $CC" >&5
5648 echo "${ECHO_T}$CC" >&6; }
5649 else
5650   { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5652 fi
5653
5654
5655     test -n "$CC" && break
5656   done
5657 fi
5658 if test -z "$CC"; then
5659   ac_ct_CC=$CC
5660   for ac_prog in gcc
5661 do
5662   # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   if test -n "$ac_ct_CC"; then
5670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_ac_ct_CC="$ac_prog"
5680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692 echo "${ECHO_T}$ac_ct_CC" >&6; }
5693 else
5694   { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5696 fi
5697
5698
5699   test -n "$ac_ct_CC" && break
5700 done
5701
5702   if test "x$ac_ct_CC" = x; then
5703     CC=""
5704   else
5705     case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet.  If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&5
5710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711 whose name does not start with the host triplet.  If you think this
5712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715     CC=$ac_ct_CC
5716   fi
5717 fi
5718
5719
5720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." >&5
5722 echo "$as_me: error: no acceptable C compiler found in \$PATH
5723 See \`config.log' for more details." >&2;}
5724    { (exit 1); exit 1; }; }
5725
5726 # Provide some information about the compiler.
5727 echo "$as_me:$LINENO: checking for C compiler version" >&5
5728 ac_compiler=`set X $ac_compile; echo $2`
5729 { (ac_try="$ac_compiler --version >&5"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735   (eval "$ac_compiler --version >&5") 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }
5739 { (ac_try="$ac_compiler -v >&5"
5740 case "(($ac_try" in
5741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742   *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745   (eval "$ac_compiler -v >&5") 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }
5749 { (ac_try="$ac_compiler -V >&5"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compiler -V >&5") 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }
5759
5760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771
5772 int
5773 main ()
5774 {
5775 #ifndef __GNUC__
5776        choke me
5777 #endif
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798   { (case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803   (eval "$ac_try") 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_try") 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; }; then
5817   ac_compiler_gnu=yes
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822         ac_compiler_gnu=no
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5827
5828 fi
5829 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831 GCC=`test $ac_compiler_gnu = yes && echo yes`
5832 ac_test_CFLAGS=${CFLAGS+set}
5833 ac_save_CFLAGS=$CFLAGS
5834 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   ac_save_c_werror_flag=$ac_c_werror_flag
5840    ac_c_werror_flag=yes
5841    ac_cv_prog_cc_g=no
5842    CFLAGS="-g"
5843    cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_compile") 2>conftest.er1
5866   ac_status=$?
5867   grep -v '^ *+' conftest.er1 >conftest.err
5868   rm -f conftest.er1
5869   cat conftest.err >&5
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873   { (case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_try") 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_try") 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; }; then
5892   ac_cv_prog_cc_g=yes
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897         CFLAGS=""
5898       cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904
5905 int
5906 main ()
5907 {
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5915 case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_compile") 2>conftest.er1
5921   ac_status=$?
5922   grep -v '^ *+' conftest.er1 >conftest.err
5923   rm -f conftest.er1
5924   cat conftest.err >&5
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928   { (case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_try") 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (case "(($ac_try" in
5939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940   *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943   (eval "$ac_try") 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   :
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952         ac_c_werror_flag=$ac_save_c_werror_flag
5953          CFLAGS="-g"
5954          cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960
5961 int
5962 main ()
5963 {
5964
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_compile") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984   { (case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_try") 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; } &&
5993          { ac_try='test -s conftest.$ac_objext'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_cv_prog_cc_g=yes
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009 fi
6010
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018    ac_c_werror_flag=$ac_save_c_werror_flag
6019 fi
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6022 if test "$ac_test_CFLAGS" = set; then
6023   CFLAGS=$ac_save_CFLAGS
6024 elif test $ac_cv_prog_cc_g = yes; then
6025   if test "$GCC" = yes; then
6026     CFLAGS="-g -O2"
6027   else
6028     CFLAGS="-g"
6029   fi
6030 else
6031   if test "$GCC" = yes; then
6032     CFLAGS="-O2"
6033   else
6034     CFLAGS=
6035   fi
6036 fi
6037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_cc_c89+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_cv_prog_cc_c89=no
6043 ac_save_CC=$CC
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <stdarg.h>
6051 #include <stdio.h>
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6058      char **p;
6059      int i;
6060 {
6061   return p[i];
6062 }
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6064 {
6065   char *s;
6066   va_list v;
6067   va_start (v,p);
6068   s = g (p, va_arg (v,int));
6069   va_end (v);
6070   return s;
6071 }
6072
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6074    function prototypes and stuff, but not '\xHH' hex character constants.
6075    These don't provoke an error unfortunately, instead are silently treated
6076    as 'x'.  The following induces an error, until -std is added to get
6077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6078    array size at least.  It's necessary to write '\x00'==0 to get something
6079    that's true only with -std.  */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083    inside strings and character constants.  */
6084 #define FOO(x) 'x'
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091 int argc;
6092 char **argv;
6093 int
6094 main ()
6095 {
6096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103 do
6104   CC="$ac_save_CC $ac_arg"
6105   rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120   { (case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_try") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_try") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_prog_cc_c89=$ac_arg
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext
6148   test "x$ac_cv_prog_cc_c89" != "xno" && break
6149 done
6150 rm -f conftest.$ac_ext
6151 CC=$ac_save_CC
6152
6153 fi
6154 # AC_CACHE_VAL
6155 case "x$ac_cv_prog_cc_c89" in
6156   x)
6157     { echo "$as_me:$LINENO: result: none needed" >&5
6158 echo "${ECHO_T}none needed" >&6; } ;;
6159   xno)
6160     { echo "$as_me:$LINENO: result: unsupported" >&5
6161 echo "${ECHO_T}unsupported" >&6; } ;;
6162   *)
6163     CC="$CC $ac_cv_prog_cc_c89"
6164     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6166 esac
6167
6168
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175 ac_ext=cpp
6176 ac_cpp='$CXXCPP $CPPFLAGS'
6177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6180 if test -z "$CXX"; then
6181   if test -n "$CCC"; then
6182     CXX=$CCC
6183   else
6184     if test -n "$ac_tool_prefix"; then
6185   for ac_prog in g++
6186   do
6187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_CXX+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$CXX"; then
6195   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 CXX=$ac_cv_prog_CXX
6215 if test -n "$CXX"; then
6216   { echo "$as_me:$LINENO: result: $CXX" >&5
6217 echo "${ECHO_T}$CXX" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223
6224     test -n "$CXX" && break
6225   done
6226 fi
6227 if test -z "$CXX"; then
6228   ac_ct_CXX=$CXX
6229   for ac_prog in g++
6230 do
6231   # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   if test -n "$ac_ct_CXX"; then
6239   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_prog_ac_ct_CXX="$ac_prog"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259 if test -n "$ac_ct_CXX"; then
6260   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268   test -n "$ac_ct_CXX" && break
6269 done
6270
6271   if test "x$ac_ct_CXX" = x; then
6272     CXX="g++"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet.  If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     CXX=$ac_ct_CXX
6285   fi
6286 fi
6287
6288   fi
6289 fi
6290 # Provide some information about the compiler.
6291 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292 ac_compiler=`set X $ac_compile; echo $2`
6293 { (ac_try="$ac_compiler --version >&5"
6294 case "(($ac_try" in
6295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296   *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299   (eval "$ac_compiler --version >&5") 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }
6303 { (ac_try="$ac_compiler -v >&5"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compiler -v >&5") 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }
6313 { (ac_try="$ac_compiler -V >&5"
6314 case "(($ac_try" in
6315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316   *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319   (eval "$ac_compiler -V >&5") 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }
6323
6324 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335
6336 int
6337 main ()
6338 {
6339 #ifndef __GNUC__
6340        choke me
6341 #endif
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_compile") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362   { (case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_try") 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; } &&
6371          { ac_try='test -s conftest.$ac_objext'
6372   { (case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377   (eval "$ac_try") 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_compiler_gnu=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         ac_compiler_gnu=no
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6391
6392 fi
6393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395 GXX=`test $ac_compiler_gnu = yes && echo yes`
6396 ac_test_CXXFLAGS=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS=$CXXFLAGS
6398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400 if test "${ac_cv_prog_cxx_g+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404    ac_cxx_werror_flag=yes
6405    ac_cv_prog_cxx_g=no
6406    CXXFLAGS="-g"
6407    cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413
6414 int
6415 main ()
6416 {
6417
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426   *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429   (eval "$ac_compile") 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437   { (case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442   (eval "$ac_try") 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; } &&
6446          { ac_try='test -s conftest.$ac_objext'
6447   { (case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_try") 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; }; then
6456   ac_cv_prog_cxx_g=yes
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461         CXXFLAGS=""
6462       cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468
6469 int
6470 main ()
6471 {
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481   *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484   (eval "$ac_compile") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } &&
6491          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492   { (case "(($ac_try" in
6493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494   *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497   (eval "$ac_try") 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; } &&
6501          { ac_try='test -s conftest.$ac_objext'
6502   { (case "(($ac_try" in
6503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504   *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507   (eval "$ac_try") 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   :
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6517          CXXFLAGS="-g"
6518          cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524
6525 int
6526 main ()
6527 {
6528
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_compile") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548   { (case "(($ac_try" in
6549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550   *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553   (eval "$ac_try") 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest.$ac_objext'
6558   { (case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563   (eval "$ac_try") 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   ac_cv_prog_cxx_g=yes
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583 fi
6584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586 if test "$ac_test_CXXFLAGS" = set; then
6587   CXXFLAGS=$ac_save_CXXFLAGS
6588 elif test $ac_cv_prog_cxx_g = yes; then
6589   if test "$GXX" = yes; then
6590     CXXFLAGS="-g -O2"
6591   else
6592     CXXFLAGS="-g"
6593   fi
6594 else
6595   if test "$GXX" = yes; then
6596     CXXFLAGS="-O2"
6597   else
6598     CXXFLAGS=
6599   fi
6600 fi
6601 ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607
6608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610 if test "${lt_cv_path_NM+set}" = set; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   if test -n "$NM"; then
6614   # Let the user override the test.
6615   lt_cv_path_NM="$NM"
6616 else
6617   lt_nm_to_check="${ac_tool_prefix}nm"
6618   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619     lt_nm_to_check="$lt_nm_to_check nm"
6620   fi
6621   for lt_tmp_nm in $lt_nm_to_check; do
6622     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6624       IFS="$lt_save_ifs"
6625       test -z "$ac_dir" && ac_dir=.
6626       tmp_nm="$ac_dir/$lt_tmp_nm"
6627       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628         # Check to see if the nm accepts a BSD-compat flag.
6629         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630         #   nm: unknown option "B" ignored
6631         # Tru64's nm complains that /dev/null is an invalid object file
6632         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633         */dev/null* | *'Invalid file or object type'*)
6634           lt_cv_path_NM="$tmp_nm -B"
6635           break
6636           ;;
6637         *)
6638           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6639           */dev/null*)
6640             lt_cv_path_NM="$tmp_nm -p"
6641             break
6642             ;;
6643           *)
6644             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645             continue # so that we can try to find one that supports BSD flags
6646             ;;
6647           esac
6648           ;;
6649         esac
6650       fi
6651     done
6652     IFS="$lt_save_ifs"
6653   done
6654   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6655 fi
6656 fi
6657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6659 NM="$lt_cv_path_NM"
6660
6661
6662
6663 { echo "$as_me:$LINENO: checking for GNU make" >&5
6664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665 if test "${llvm_cv_gnu_make_command+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   llvm_cv_gnu_make_command=''
6669  for a in "$MAKE" make gmake gnumake ; do
6670   if test -z "$a" ; then continue ; fi ;
6671   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6672   then
6673    llvm_cv_gnu_make_command=$a ;
6674    break;
6675   fi
6676  done
6677 fi
6678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6680  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6681    ifGNUmake='' ;
6682  else
6683    ifGNUmake='#' ;
6684    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685 echo "${ECHO_T}\"Not found\"" >&6; };
6686  fi
6687
6688
6689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6691 LN_S=$as_ln_s
6692 if test "$LN_S" = "ln -s"; then
6693   { echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697 echo "${ECHO_T}no, using $LN_S" >&6; }
6698 fi
6699
6700 # Extract the first word of "cmp", so it can be a program name with args.
6701 set dummy cmp; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_CMP+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   case $CMP in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6728   ;;
6729 esac
6730 fi
6731 CMP=$ac_cv_path_CMP
6732 if test -n "$CMP"; then
6733   { echo "$as_me:$LINENO: result: $CMP" >&5
6734 echo "${ECHO_T}$CMP" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741 # Extract the first word of "cp", so it can be a program name with args.
6742 set dummy cp; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CP+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $CP in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6769   ;;
6770 esac
6771 fi
6772 CP=$ac_cv_path_CP
6773 if test -n "$CP"; then
6774   { echo "$as_me:$LINENO: result: $CP" >&5
6775 echo "${ECHO_T}$CP" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782 # Extract the first word of "date", so it can be a program name with args.
6783 set dummy date; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_DATE+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $DATE in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6810   ;;
6811 esac
6812 fi
6813 DATE=$ac_cv_path_DATE
6814 if test -n "$DATE"; then
6815   { echo "$as_me:$LINENO: result: $DATE" >&5
6816 echo "${ECHO_T}$DATE" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 # Extract the first word of "find", so it can be a program name with args.
6824 set dummy find; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_FIND+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   case $FIND in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6833   ;;
6834   *)
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6851   ;;
6852 esac
6853 fi
6854 FIND=$ac_cv_path_FIND
6855 if test -n "$FIND"; then
6856   { echo "$as_me:$LINENO: result: $FIND" >&5
6857 echo "${ECHO_T}$FIND" >&6; }
6858 else
6859   { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 fi
6862
6863
6864 # Extract the first word of "grep", so it can be a program name with args.
6865 set dummy grep; 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_GREP+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $GREP in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
6892   ;;
6893 esac
6894 fi
6895 GREP=$ac_cv_path_GREP
6896 if test -n "$GREP"; then
6897   { echo "$as_me:$LINENO: result: $GREP" >&5
6898 echo "${ECHO_T}$GREP" >&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 "mkdir", so it can be a program name with args.
6906 set dummy mkdir; 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_MKDIR+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $MKDIR in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6933   ;;
6934 esac
6935 fi
6936 MKDIR=$ac_cv_path_MKDIR
6937 if test -n "$MKDIR"; then
6938   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args.
6947 set dummy mv; 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_MV+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $MV in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6974   ;;
6975 esac
6976 fi
6977 MV=$ac_cv_path_MV
6978 if test -n "$MV"; then
6979   { echo "$as_me:$LINENO: result: $MV" >&5
6980 echo "${ECHO_T}$MV" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 if test -n "$ac_tool_prefix"; then
6988   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$RANLIB"; then
6996   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018 echo "${ECHO_T}$RANLIB" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027   ac_ct_RANLIB=$RANLIB
7028   # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   if test -n "$ac_ct_RANLIB"; then
7036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_ac_ct_RANLIB="ranlib"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064   if test "x$ac_ct_RANLIB" = x; then
7065     RANLIB=":"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet.  If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet.  If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077     RANLIB=$ac_ct_RANLIB
7078   fi
7079 else
7080   RANLIB="$ac_cv_prog_RANLIB"
7081 fi
7082
7083 # Extract the first word of "rm", so it can be a program name with args.
7084 set dummy rm; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_RM+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   case $RM in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7111   ;;
7112 esac
7113 fi
7114 RM=$ac_cv_path_RM
7115 if test -n "$RM"; then
7116   { echo "$as_me:$LINENO: result: $RM" >&5
7117 echo "${ECHO_T}$RM" >&6; }
7118 else
7119   { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7121 fi
7122
7123
7124 # Extract the first word of "sed", so it can be a program name with args.
7125 set dummy sed; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_SED+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   case $SED in
7132   [\\/]* | ?:[\\/]*)
7133   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7134   ;;
7135   *)
7136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7152   ;;
7153 esac
7154 fi
7155 SED=$ac_cv_path_SED
7156 if test -n "$SED"; then
7157   { echo "$as_me:$LINENO: result: $SED" >&5
7158 echo "${ECHO_T}$SED" >&6; }
7159 else
7160   { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7162 fi
7163
7164
7165 # Extract the first word of "tar", so it can be a program name with args.
7166 set dummy tar; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_TAR+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   case $TAR in
7173   [\\/]* | ?:[\\/]*)
7174   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7175   ;;
7176   *)
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7193   ;;
7194 esac
7195 fi
7196 TAR=$ac_cv_path_TAR
7197 if test -n "$TAR"; then
7198   { echo "$as_me:$LINENO: result: $TAR" >&5
7199 echo "${ECHO_T}$TAR" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205
7206 # Extract the first word of "pwd", so it can be a program name with args.
7207 set dummy pwd; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_BINPWD+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   case $BINPWD in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7234   ;;
7235 esac
7236 fi
7237 BINPWD=$ac_cv_path_BINPWD
7238 if test -n "$BINPWD"; then
7239   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7240 echo "${ECHO_T}$BINPWD" >&6; }
7241 else
7242   { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7244 fi
7245
7246
7247
7248 # Extract the first word of "Graphviz", so it can be a program name with args.
7249 set dummy Graphviz; ac_word=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   case $GRAPHVIZ in
7256   [\\/]* | ?:[\\/]*)
7257   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7258   ;;
7259   *)
7260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7276   ;;
7277 esac
7278 fi
7279 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7280 if test -n "$GRAPHVIZ"; then
7281   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7282 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7283 else
7284   { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7286 fi
7287
7288
7289 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7290
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_GRAPHVIZ 1
7293 _ACEOF
7294
7295     if test "$llvm_cv_os_type" = "MingW" ; then
7296     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7297   fi
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7301 _ACEOF
7302
7303 fi
7304 # Extract the first word of "dot", so it can be a program name with args.
7305 set dummy dot; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DOT+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   case $DOT in
7312   [\\/]* | ?:[\\/]*)
7313   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321   for ac_exec_ext in '' $ac_executable_extensions; do
7322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328 done
7329 IFS=$as_save_IFS
7330
7331   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7332   ;;
7333 esac
7334 fi
7335 DOT=$ac_cv_path_DOT
7336 if test -n "$DOT"; then
7337   { echo "$as_me:$LINENO: result: $DOT" >&5
7338 echo "${ECHO_T}$DOT" >&6; }
7339 else
7340   { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7342 fi
7343
7344
7345 if test "$DOT" != "echo dot" ; then
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_DOT 1
7349 _ACEOF
7350
7351     if test "$llvm_cv_os_type" = "MingW" ; then
7352     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7353   fi
7354
7355 cat >>confdefs.h <<_ACEOF
7356 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7357 _ACEOF
7358
7359 fi
7360 # Extract the first word of "fdp", so it can be a program name with args.
7361 set dummy fdp; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_FDP+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   case $FDP in
7368   [\\/]* | ?:[\\/]*)
7369   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7370   ;;
7371   *)
7372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7388   ;;
7389 esac
7390 fi
7391 FDP=$ac_cv_path_FDP
7392 if test -n "$FDP"; then
7393   { echo "$as_me:$LINENO: result: $FDP" >&5
7394 echo "${ECHO_T}$FDP" >&6; }
7395 else
7396   { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7398 fi
7399
7400
7401 if test "$FDP" != "echo fdp" ; then
7402
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_FDP 1
7405 _ACEOF
7406
7407     if test "$llvm_cv_os_type" = "MingW" ; then
7408     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7409   fi
7410
7411 cat >>confdefs.h <<_ACEOF
7412 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7413 _ACEOF
7414
7415 fi
7416 # Extract the first word of "neato", so it can be a program name with args.
7417 set dummy neato; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_NEATO+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   case $NEATO in
7424   [\\/]* | ?:[\\/]*)
7425   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7426   ;;
7427   *)
7428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433   for ac_exec_ext in '' $ac_executable_extensions; do
7434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7444   ;;
7445 esac
7446 fi
7447 NEATO=$ac_cv_path_NEATO
7448 if test -n "$NEATO"; then
7449   { echo "$as_me:$LINENO: result: $NEATO" >&5
7450 echo "${ECHO_T}$NEATO" >&6; }
7451 else
7452   { echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6; }
7454 fi
7455
7456
7457 if test "$NEATO" != "echo neato" ; then
7458
7459 cat >>confdefs.h <<\_ACEOF
7460 #define HAVE_NEATO 1
7461 _ACEOF
7462
7463     if test "$llvm_cv_os_type" = "MingW" ; then
7464     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7465   fi
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7469 _ACEOF
7470
7471 fi
7472 # Extract the first word of "twopi", so it can be a program name with args.
7473 set dummy twopi; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_TWOPI+set}" = set; then
7477   echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479   case $TWOPI in
7480   [\\/]* | ?:[\\/]*)
7481   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7482   ;;
7483   *)
7484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489   for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7500   ;;
7501 esac
7502 fi
7503 TWOPI=$ac_cv_path_TWOPI
7504 if test -n "$TWOPI"; then
7505   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7506 echo "${ECHO_T}$TWOPI" >&6; }
7507 else
7508   { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7510 fi
7511
7512
7513 if test "$TWOPI" != "echo twopi" ; then
7514
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_TWOPI 1
7517 _ACEOF
7518
7519     if test "$llvm_cv_os_type" = "MingW" ; then
7520     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521   fi
7522
7523 cat >>confdefs.h <<_ACEOF
7524 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7525 _ACEOF
7526
7527 fi
7528 # Extract the first word of "circo", so it can be a program name with args.
7529 set dummy circo; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_CIRCO+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   case $CIRCO in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545   for ac_exec_ext in '' $ac_executable_extensions; do
7546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7556   ;;
7557 esac
7558 fi
7559 CIRCO=$ac_cv_path_CIRCO
7560 if test -n "$CIRCO"; then
7561   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7562 echo "${ECHO_T}$CIRCO" >&6; }
7563 else
7564   { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7566 fi
7567
7568
7569 if test "$CIRCO" != "echo circo" ; then
7570
7571 cat >>confdefs.h <<\_ACEOF
7572 #define HAVE_CIRCO 1
7573 _ACEOF
7574
7575     if test "$llvm_cv_os_type" = "MingW" ; then
7576     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577   fi
7578
7579 cat >>confdefs.h <<_ACEOF
7580 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7581 _ACEOF
7582
7583 fi
7584 for ac_prog in gv gsview32
7585 do
7586   # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_GV+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   case $GV in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613   ;;
7614 esac
7615 fi
7616 GV=$ac_cv_path_GV
7617 if test -n "$GV"; then
7618   { echo "$as_me:$LINENO: result: $GV" >&5
7619 echo "${ECHO_T}$GV" >&6; }
7620 else
7621   { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7623 fi
7624
7625
7626   test -n "$GV" && break
7627 done
7628 test -n "$GV" || GV="echo gv"
7629
7630 if test "$GV" != "echo gv" ; then
7631
7632 cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_GV 1
7634 _ACEOF
7635
7636     if test "$llvm_cv_os_type" = "MingW" ; then
7637     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7638   fi
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define LLVM_PATH_GV "$GV${EXEEXT}"
7642 _ACEOF
7643
7644 fi
7645 # Extract the first word of "dotty", so it can be a program name with args.
7646 set dummy dotty; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_DOTTY+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   case $DOTTY in
7653   [\\/]* | ?:[\\/]*)
7654   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7655   ;;
7656   *)
7657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7673   ;;
7674 esac
7675 fi
7676 DOTTY=$ac_cv_path_DOTTY
7677 if test -n "$DOTTY"; then
7678   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7679 echo "${ECHO_T}$DOTTY" >&6; }
7680 else
7681   { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7683 fi
7684
7685
7686 if test "$DOTTY" != "echo dotty" ; then
7687
7688 cat >>confdefs.h <<\_ACEOF
7689 #define HAVE_DOTTY 1
7690 _ACEOF
7691
7692     if test "$llvm_cv_os_type" = "MingW" ; then
7693     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7694   fi
7695
7696 cat >>confdefs.h <<_ACEOF
7697 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7698 _ACEOF
7699
7700 fi
7701
7702
7703 # Extract the first word of "perl", so it can be a program name with args.
7704 set dummy perl; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_path_PERL+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   case $PERL in
7711   [\\/]* | ?:[\\/]*)
7712   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7713   ;;
7714   *)
7715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720   for ac_exec_ext in '' $ac_executable_extensions; do
7721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7722     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7731   ;;
7732 esac
7733 fi
7734 PERL=$ac_cv_path_PERL
7735 if test -n "$PERL"; then
7736   { echo "$as_me:$LINENO: result: $PERL" >&5
7737 echo "${ECHO_T}$PERL" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7742
7743
7744 if test "$PERL" != "none"; then
7745   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7746 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7747   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7748     { echo "$as_me:$LINENO: result: yes" >&5
7749 echo "${ECHO_T}yes" >&6; }
7750   else
7751     PERL=none
7752     { echo "$as_me:$LINENO: result: not found" >&5
7753 echo "${ECHO_T}not found" >&6; }
7754   fi
7755 fi
7756
7757
7758 if test x"$PERL" = xnone; then
7759    HAVE_PERL=0
7760
7761    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7762 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7763    { (exit 1); exit 1; }; }
7764 else
7765    HAVE_PERL=1
7766
7767 fi
7768
7769 # Find a good install program.  We prefer a C program (faster),
7770 # so one script is as good as another.  But avoid the broken or
7771 # incompatible versions:
7772 # SysV /etc/install, /usr/sbin/install
7773 # SunOS /usr/etc/install
7774 # IRIX /sbin/install
7775 # AIX /bin/install
7776 # AmigaOS /C/install, which installs bootblocks on floppy discs
7777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7780 # OS/2's system install, which has a completely different semantic
7781 # ./install, which can be erroneously created by make from ./install.sh.
7782 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7783 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7784 if test -z "$INSTALL"; then
7785 if test "${ac_cv_path_install+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793   # Account for people who put trailing slashes in PATH elements.
7794 case $as_dir/ in
7795   ./ | .// | /cC/* | \
7796   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7797   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7798   /usr/ucb/* ) ;;
7799   *)
7800     # OSF1 and SCO ODT 3.0 have their own names for install.
7801     # Don't use installbsd from OSF since it installs stuff as root
7802     # by default.
7803     for ac_prog in ginstall scoinst install; do
7804       for ac_exec_ext in '' $ac_executable_extensions; do
7805         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7806           if test $ac_prog = install &&
7807             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7808             # AIX install.  It has an incompatible calling convention.
7809             :
7810           elif test $ac_prog = install &&
7811             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7812             # program-specific install script used by HP pwplus--don't use.
7813             :
7814           else
7815             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7816             break 3
7817           fi
7818         fi
7819       done
7820     done
7821     ;;
7822 esac
7823 done
7824 IFS=$as_save_IFS
7825
7826
7827 fi
7828   if test "${ac_cv_path_install+set}" = set; then
7829     INSTALL=$ac_cv_path_install
7830   else
7831     # As a last resort, use the slow shell script.  Don't cache a
7832     # value for INSTALL within a source directory, because that will
7833     # break other packages using the cache if that directory is
7834     # removed, or if the value is a relative name.
7835     INSTALL=$ac_install_sh
7836   fi
7837 fi
7838 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7839 echo "${ECHO_T}$INSTALL" >&6; }
7840
7841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7842 # It thinks the first close brace ends the variable substitution.
7843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7844
7845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7846
7847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7848
7849
7850 # Extract the first word of "bzip2", so it can be a program name with args.
7851 set dummy bzip2; ac_word=$2
7852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7854 if test "${ac_cv_path_BZIP2+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   case $BZIP2 in
7858   [\\/]* | ?:[\\/]*)
7859   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7860   ;;
7861   *)
7862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867   for ac_exec_ext in '' $ac_executable_extensions; do
7868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7869     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877   ;;
7878 esac
7879 fi
7880 BZIP2=$ac_cv_path_BZIP2
7881 if test -n "$BZIP2"; then
7882   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7883 echo "${ECHO_T}$BZIP2" >&6; }
7884 else
7885   { echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6; }
7887 fi
7888
7889
7890 # Extract the first word of "doxygen", so it can be a program name with args.
7891 set dummy doxygen; ac_word=$2
7892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   case $DOXYGEN in
7898   [\\/]* | ?:[\\/]*)
7899   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7900   ;;
7901   *)
7902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907   for ac_exec_ext in '' $ac_executable_extensions; do
7908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917   ;;
7918 esac
7919 fi
7920 DOXYGEN=$ac_cv_path_DOXYGEN
7921 if test -n "$DOXYGEN"; then
7922   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7923 echo "${ECHO_T}$DOXYGEN" >&6; }
7924 else
7925   { echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6; }
7927 fi
7928
7929
7930 # Extract the first word of "groff", so it can be a program name with args.
7931 set dummy groff; ac_word=$2
7932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7934 if test "${ac_cv_path_GROFF+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   case $GROFF in
7938   [\\/]* | ?:[\\/]*)
7939   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7940   ;;
7941   *)
7942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947   for ac_exec_ext in '' $ac_executable_extensions; do
7948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7949     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957   ;;
7958 esac
7959 fi
7960 GROFF=$ac_cv_path_GROFF
7961 if test -n "$GROFF"; then
7962   { echo "$as_me:$LINENO: result: $GROFF" >&5
7963 echo "${ECHO_T}$GROFF" >&6; }
7964 else
7965   { echo "$as_me:$LINENO: result: no" >&5
7966 echo "${ECHO_T}no" >&6; }
7967 fi
7968
7969
7970 # Extract the first word of "gzip", so it can be a program name with args.
7971 set dummy gzip; ac_word=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_GZIP+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   case $GZIP in
7978   [\\/]* | ?:[\\/]*)
7979   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7980   ;;
7981   *)
7982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987   for ac_exec_ext in '' $ac_executable_extensions; do
7988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997   ;;
7998 esac
7999 fi
8000 GZIP=$ac_cv_path_GZIP
8001 if test -n "$GZIP"; then
8002   { echo "$as_me:$LINENO: result: $GZIP" >&5
8003 echo "${ECHO_T}$GZIP" >&6; }
8004 else
8005   { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8007 fi
8008
8009
8010 # Extract the first word of "pod2html", so it can be a program name with args.
8011 set dummy pod2html; ac_word=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_POD2HTML+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   case $POD2HTML in
8018   [\\/]* | ?:[\\/]*)
8019   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8020   ;;
8021   *)
8022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025   IFS=$as_save_IFS
8026   test -z "$as_dir" && as_dir=.
8027   for ac_exec_ext in '' $ac_executable_extensions; do
8028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8031     break 2
8032   fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037   ;;
8038 esac
8039 fi
8040 POD2HTML=$ac_cv_path_POD2HTML
8041 if test -n "$POD2HTML"; then
8042   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8043 echo "${ECHO_T}$POD2HTML" >&6; }
8044 else
8045   { echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6; }
8047 fi
8048
8049
8050 # Extract the first word of "pod2man", so it can be a program name with args.
8051 set dummy pod2man; ac_word=$2
8052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054 if test "${ac_cv_path_POD2MAN+set}" = set; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   case $POD2MAN in
8058   [\\/]* | ?:[\\/]*)
8059   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8060   ;;
8061   *)
8062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065   IFS=$as_save_IFS
8066   test -z "$as_dir" && as_dir=.
8067   for ac_exec_ext in '' $ac_executable_extensions; do
8068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8069     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071     break 2
8072   fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077   ;;
8078 esac
8079 fi
8080 POD2MAN=$ac_cv_path_POD2MAN
8081 if test -n "$POD2MAN"; then
8082   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8083 echo "${ECHO_T}$POD2MAN" >&6; }
8084 else
8085   { echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6; }
8087 fi
8088
8089
8090 # Extract the first word of "runtest", so it can be a program name with args.
8091 set dummy runtest; ac_word=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_RUNTEST+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   case $RUNTEST in
8098   [\\/]* | ?:[\\/]*)
8099   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8100   ;;
8101   *)
8102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105   IFS=$as_save_IFS
8106   test -z "$as_dir" && as_dir=.
8107   for ac_exec_ext in '' $ac_executable_extensions; do
8108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111     break 2
8112   fi
8113 done
8114 done
8115 IFS=$as_save_IFS
8116
8117   ;;
8118 esac
8119 fi
8120 RUNTEST=$ac_cv_path_RUNTEST
8121 if test -n "$RUNTEST"; then
8122   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8123 echo "${ECHO_T}$RUNTEST" >&6; }
8124 else
8125   { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8127 fi
8128
8129
8130
8131 no_itcl=true
8132 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8133 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8134
8135 # Check whether --with-tclinclude was given.
8136 if test "${with_tclinclude+set}" = set; then
8137   withval=$with_tclinclude; with_tclinclude=${withval}
8138 else
8139   with_tclinclude=''
8140 fi
8141
8142 if test "${ac_cv_path_tclsh+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145
8146 if test x"${with_tclinclude}" != x ; then
8147   if test -f ${with_tclinclude}/tclsh ; then
8148     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8149   elif test -f ${with_tclinclude}/src/tclsh ; then
8150     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8151   else
8152     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8153 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8154    { (exit 1); exit 1; }; }
8155   fi
8156 fi
8157
8158 if test x"${ac_cv_path_tclsh}" = x ; then
8159   { echo "$as_me:$LINENO: result: none" >&5
8160 echo "${ECHO_T}none" >&6; }
8161   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
8162 do
8163   # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy $ac_prog; ac_word=$2
8165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167 if test "${ac_cv_path_TCLSH+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   case $TCLSH in
8171   [\\/]* | ?:[\\/]*)
8172   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8173   ;;
8174   *)
8175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190   ;;
8191 esac
8192 fi
8193 TCLSH=$ac_cv_path_TCLSH
8194 if test -n "$TCLSH"; then
8195   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8196 echo "${ECHO_T}$TCLSH" >&6; }
8197 else
8198   { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8200 fi
8201
8202
8203   test -n "$TCLSH" && break
8204 done
8205
8206   if test x"${TCLSH}" = x ; then
8207     ac_cv_path_tclsh='';
8208   else
8209     ac_cv_path_tclsh="${TCLSH}";
8210   fi
8211 else
8212   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8213 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8214   TCLSH="${ac_cv_path_tclsh}"
8215
8216 fi
8217
8218 fi
8219
8220 # Extract the first word of "zip", so it can be a program name with args.
8221 set dummy zip; ac_word=$2
8222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224 if test "${ac_cv_path_ZIP+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   case $ZIP in
8228   [\\/]* | ?:[\\/]*)
8229   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8230   ;;
8231   *)
8232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237   for ac_exec_ext in '' $ac_executable_extensions; do
8238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8239     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244 done
8245 IFS=$as_save_IFS
8246
8247   ;;
8248 esac
8249 fi
8250 ZIP=$ac_cv_path_ZIP
8251 if test -n "$ZIP"; then
8252   { echo "$as_me:$LINENO: result: $ZIP" >&5
8253 echo "${ECHO_T}$ZIP" >&6; }
8254 else
8255   { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8257 fi
8258
8259
8260 for ac_prog in ocamlc
8261 do
8262   # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266 if test "${ac_cv_path_OCAMLC+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   case $OCAMLC in
8270   [\\/]* | ?:[\\/]*)
8271   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8272   ;;
8273   *)
8274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277   IFS=$as_save_IFS
8278   test -z "$as_dir" && as_dir=.
8279   for ac_exec_ext in '' $ac_executable_extensions; do
8280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8281     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283     break 2
8284   fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289   ;;
8290 esac
8291 fi
8292 OCAMLC=$ac_cv_path_OCAMLC
8293 if test -n "$OCAMLC"; then
8294   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8295 echo "${ECHO_T}$OCAMLC" >&6; }
8296 else
8297   { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8299 fi
8300
8301
8302   test -n "$OCAMLC" && break
8303 done
8304
8305 for ac_prog in ocamlopt
8306 do
8307   # Extract the first word of "$ac_prog", so it can be a program name with args.
8308 set dummy $ac_prog; ac_word=$2
8309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8311 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   case $OCAMLOPT in
8315   [\\/]* | ?:[\\/]*)
8316   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8317   ;;
8318   *)
8319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324   for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334   ;;
8335 esac
8336 fi
8337 OCAMLOPT=$ac_cv_path_OCAMLOPT
8338 if test -n "$OCAMLOPT"; then
8339   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8340 echo "${ECHO_T}$OCAMLOPT" >&6; }
8341 else
8342   { echo "$as_me:$LINENO: result: no" >&5
8343 echo "${ECHO_T}no" >&6; }
8344 fi
8345
8346
8347   test -n "$OCAMLOPT" && break
8348 done
8349
8350 for ac_prog in ocamldep
8351 do
8352   # Extract the first word of "$ac_prog", so it can be a program name with args.
8353 set dummy $ac_prog; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   case $OCAMLDEP in
8360   [\\/]* | ?:[\\/]*)
8361   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8362   ;;
8363   *)
8364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379   ;;
8380 esac
8381 fi
8382 OCAMLDEP=$ac_cv_path_OCAMLDEP
8383 if test -n "$OCAMLDEP"; then
8384   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8385 echo "${ECHO_T}$OCAMLDEP" >&6; }
8386 else
8387   { echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; }
8389 fi
8390
8391
8392   test -n "$OCAMLDEP" && break
8393 done
8394
8395 for ac_prog in ocamldoc
8396 do
8397   # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   case $OCAMLDOC in
8405   [\\/]* | ?:[\\/]*)
8406   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8407   ;;
8408   *)
8409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414   for ac_exec_ext in '' $ac_executable_extensions; do
8415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8416     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8418     break 2
8419   fi
8420 done
8421 done
8422 IFS=$as_save_IFS
8423
8424   ;;
8425 esac
8426 fi
8427 OCAMLDOC=$ac_cv_path_OCAMLDOC
8428 if test -n "$OCAMLDOC"; then
8429   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8430 echo "${ECHO_T}$OCAMLDOC" >&6; }
8431 else
8432   { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8434 fi
8435
8436
8437   test -n "$OCAMLDOC" && break
8438 done
8439
8440 for ac_prog in gas as
8441 do
8442   # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_path_GAS+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   case $GAS in
8450   [\\/]* | ?:[\\/]*)
8451   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8452   ;;
8453   *)
8454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457   IFS=$as_save_IFS
8458   test -z "$as_dir" && as_dir=.
8459   for ac_exec_ext in '' $ac_executable_extensions; do
8460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8461     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463     break 2
8464   fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469   ;;
8470 esac
8471 fi
8472 GAS=$ac_cv_path_GAS
8473 if test -n "$GAS"; then
8474   { echo "$as_me:$LINENO: result: $GAS" >&5
8475 echo "${ECHO_T}$GAS" >&6; }
8476 else
8477   { echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6; }
8479 fi
8480
8481
8482   test -n "$GAS" && break
8483 done
8484
8485
8486 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8487 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8488 if test "${llvm_cv_link_use_r+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491    ac_ext=c
8492 ac_cpp='$CPP $CPPFLAGS'
8493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8496
8497   oldcflags="$CFLAGS"
8498   CFLAGS="$CFLAGS -Wl,-R."
8499   cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 int
8507 main ()
8508 {
8509 int main() { return 0; }
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_link") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529   { (case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_try") 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   llvm_cv_link_use_r=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553         llvm_cv_link_use_r=no
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext conftest.$ac_ext
8558   CFLAGS="$oldcflags"
8559   ac_ext=c
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566 fi
8567 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8568 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8569 if test "$llvm_cv_link_use_r" = yes ; then
8570
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_LINK_R 1
8573 _ACEOF
8574
8575   fi
8576
8577
8578 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8579 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8580 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583    ac_ext=c
8584 ac_cpp='$CPP $CPPFLAGS'
8585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588
8589   oldcflags="$CFLAGS"
8590   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8591   cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597
8598 int
8599 main ()
8600 {
8601 int main() { return 0; }
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (ac_try="$ac_link"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_link") 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621   { (case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_try") 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest$ac_exeext'
8631   { (case "(($ac_try" in
8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633   *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636   (eval "$ac_try") 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   llvm_cv_link_use_export_dynamic=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645         llvm_cv_link_use_export_dynamic=no
8646 fi
8647
8648 rm -f core conftest.err conftest.$ac_objext \
8649       conftest$ac_exeext conftest.$ac_ext
8650   CFLAGS="$oldcflags"
8651   ac_ext=c
8652 ac_cpp='$CPP $CPPFLAGS'
8653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656
8657
8658 fi
8659 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8660 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8661 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8662
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_LINK_EXPORT_DYNAMIC 1
8665 _ACEOF
8666
8667   fi
8668
8669
8670
8671
8672 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8673 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8674 if test "${ac_cv_c_const+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677   cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683
8684 int
8685 main ()
8686 {
8687 /* FIXME: Include the comments suggested by Paul. */
8688 #ifndef __cplusplus
8689   /* Ultrix mips cc rejects this.  */
8690   typedef int charset[2];
8691   const charset x;
8692   /* SunOS 4.1.1 cc rejects this.  */
8693   char const *const *ccp;
8694   char **p;
8695   /* NEC SVR4.0.2 mips cc rejects this.  */
8696   struct point {int x, y;};
8697   static struct point const zero = {0,0};
8698   /* AIX XL C 1.02.0.0 rejects this.
8699      It does not let you subtract one const X* pointer from another in
8700      an arm of an if-expression whose if-part is not a constant
8701      expression */
8702   const char *g = "string";
8703   ccp = &g + (g ? g-g : 0);
8704   /* HPUX 7.0 cc rejects these. */
8705   ++ccp;
8706   p = (char**) ccp;
8707   ccp = (char const *const *) p;
8708   { /* SCO 3.2v4 cc rejects this.  */
8709     char *t;
8710     char const *s = 0 ? (char *) 0 : (char const *) 0;
8711
8712     *t++ = 0;
8713     if (s) return 0;
8714   }
8715   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8716     int x[] = {25, 17};
8717     const int *foo = &x[0];
8718     ++foo;
8719   }
8720   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8721     typedef const int *iptr;
8722     iptr p = 0;
8723     ++p;
8724   }
8725   { /* AIX XL C 1.02.0.0 rejects this saying
8726        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8727     struct s { int j; const int *ap[3]; };
8728     struct s *b; b->j = 5;
8729   }
8730   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8731     const int foo = 10;
8732     if (!foo) return 0;
8733   }
8734   return !x[0] && !zero.x;
8735 #endif
8736
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (ac_try="$ac_compile"
8743 case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748   (eval "$ac_compile") 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } &&
8755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756   { (case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_try") 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; } &&
8765          { ac_try='test -s conftest.$ac_objext'
8766   { (case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_try") 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_cv_c_const=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780         ac_cv_c_const=no
8781 fi
8782
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 fi
8785 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8786 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8787 if test $ac_cv_c_const = no; then
8788
8789 cat >>confdefs.h <<\_ACEOF
8790 #define const
8791 _ACEOF
8792
8793 fi
8794
8795
8796
8797
8798
8799
8800 ac_header_dirent=no
8801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8802   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8803 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <sys/types.h>
8815 #include <$ac_hdr>
8816
8817 int
8818 main ()
8819 {
8820 if ((DIR *) 0)
8821 return 0;
8822   ;
8823   return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext
8827 if { (ac_try="$ac_compile"
8828 case "(($ac_try" in
8829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830   *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833   (eval "$ac_compile") 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8841   { (case "(($ac_try" in
8842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843   *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846   (eval "$ac_try") 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; } &&
8850          { ac_try='test -s conftest.$ac_objext'
8851   { (case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_try") 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   eval "$as_ac_Header=yes"
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865         eval "$as_ac_Header=no"
8866 fi
8867
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 fi
8870 ac_res=`eval echo '${'$as_ac_Header'}'`
8871                { echo "$as_me:$LINENO: result: $ac_res" >&5
8872 echo "${ECHO_T}$ac_res" >&6; }
8873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874   cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8876 _ACEOF
8877
8878 ac_header_dirent=$ac_hdr; break
8879 fi
8880
8881 done
8882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8883 if test $ac_header_dirent = dirent.h; then
8884   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8886 if test "${ac_cv_search_opendir+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   ac_func_search_save_LIBS=$LIBS
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 /* Override any GCC internal prototype to avoid an error.
8898    Use char because int might match the return type of a GCC
8899    builtin and then its argument prototype would still apply.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char opendir ();
8904 int
8905 main ()
8906 {
8907 return opendir ();
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 for ac_lib in '' dir; do
8913   if test -z "$ac_lib"; then
8914     ac_res="none required"
8915   else
8916     ac_res=-l$ac_lib
8917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8918   fi
8919   rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926   (eval "$ac_link") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934   { (case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_try") 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest$ac_exeext'
8944   { (case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949   (eval "$ac_try") 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   ac_cv_search_opendir=$ac_res
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext \
8962       conftest$ac_exeext
8963   if test "${ac_cv_search_opendir+set}" = set; then
8964   break
8965 fi
8966 done
8967 if test "${ac_cv_search_opendir+set}" = set; then
8968   :
8969 else
8970   ac_cv_search_opendir=no
8971 fi
8972 rm conftest.$ac_ext
8973 LIBS=$ac_func_search_save_LIBS
8974 fi
8975 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8976 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8977 ac_res=$ac_cv_search_opendir
8978 if test "$ac_res" != no; then
8979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8980
8981 fi
8982
8983 else
8984   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986 if test "${ac_cv_search_opendir+set}" = set; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   ac_func_search_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 /* Override any GCC internal prototype to avoid an error.
8998    Use char because int might match the return type of a GCC
8999    builtin and then its argument prototype would still apply.  */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char opendir ();
9004 int
9005 main ()
9006 {
9007 return opendir ();
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 for ac_lib in '' x; do
9013   if test -z "$ac_lib"; then
9014     ac_res="none required"
9015   else
9016     ac_res=-l$ac_lib
9017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9018   fi
9019   rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_link") 2>conftest.er1
9027   ac_status=$?
9028   grep -v '^ *+' conftest.er1 >conftest.err
9029   rm -f conftest.er1
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034   { (case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_try") 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; } &&
9043          { ac_try='test -s conftest$ac_exeext'
9044   { (case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_try") 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; }; then
9053   ac_cv_search_opendir=$ac_res
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext \
9062       conftest$ac_exeext
9063   if test "${ac_cv_search_opendir+set}" = set; then
9064   break
9065 fi
9066 done
9067 if test "${ac_cv_search_opendir+set}" = set; then
9068   :
9069 else
9070   ac_cv_search_opendir=no
9071 fi
9072 rm conftest.$ac_ext
9073 LIBS=$ac_func_search_save_LIBS
9074 fi
9075 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077 ac_res=$ac_cv_search_opendir
9078 if test "$ac_res" != no; then
9079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080
9081 fi
9082
9083 fi
9084
9085
9086 for ac_header in dlfcn.h
9087 do
9088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9090   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093   echo $ECHO_N "(cached) $ECHO_C" >&6
9094 fi
9095 ac_res=`eval echo '${'$as_ac_Header'}'`
9096                { echo "$as_me:$LINENO: result: $ac_res" >&5
9097 echo "${ECHO_T}$ac_res" >&6; }
9098 else
9099   # Is the header compilable?
9100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h.  */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h.  */
9108 $ac_includes_default
9109 #include <$ac_header>
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9113 case "(($ac_try" in
9114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115   *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118   (eval "$ac_compile") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } &&
9125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126   { (case "(($ac_try" in
9127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128   *) ac_try_echo=$ac_try;;
9129 esac
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131   (eval "$ac_try") 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (case "(($ac_try" in
9137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138   *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141   (eval "$ac_try") 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   ac_header_compiler=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150         ac_header_compiler=no
9151 fi
9152
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155 echo "${ECHO_T}$ac_header_compiler" >&6; }
9156
9157 # Is the header present?
9158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166 #include <$ac_header>
9167 _ACEOF
9168 if { (ac_try="$ac_cpp conftest.$ac_ext"
9169 case "(($ac_try" in
9170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171   *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9175   ac_status=$?
9176   grep -v '^ *+' conftest.er1 >conftest.err
9177   rm -f conftest.er1
9178   cat conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); } >/dev/null; then
9181   if test -s conftest.err; then
9182     ac_cpp_err=$ac_c_preproc_warn_flag
9183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9184   else
9185     ac_cpp_err=
9186   fi
9187 else
9188   ac_cpp_err=yes
9189 fi
9190 if test -z "$ac_cpp_err"; then
9191   ac_header_preproc=yes
9192 else
9193   echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196   ac_header_preproc=no
9197 fi
9198
9199 rm -f conftest.err conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9201 echo "${ECHO_T}$ac_header_preproc" >&6; }
9202
9203 # So?  What about this header?
9204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9205   yes:no: )
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9210     ac_header_preproc=yes
9211     ;;
9212   no:yes:* )
9213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9225     ( cat <<\_ASBOX
9226 ## ----------------------------------- ##
9227 ## Report this to llvmbugs@cs.uiuc.edu ##
9228 ## ----------------------------------- ##
9229 _ASBOX
9230      ) | sed "s/^/$as_me: WARNING:     /" >&2
9231     ;;
9232 esac
9233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   eval "$as_ac_Header=\$ac_header_preproc"
9239 fi
9240 ac_res=`eval echo '${'$as_ac_Header'}'`
9241                { echo "$as_me:$LINENO: result: $ac_res" >&5
9242 echo "${ECHO_T}$ac_res" >&6; }
9243
9244 fi
9245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246   cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 _ACEOF
9249
9250 fi
9251
9252 done
9253
9254 # Check whether --enable-ltdl-install was given.
9255 if test "${enable_ltdl_install+set}" = set; then
9256   enableval=$enable_ltdl_install;
9257 fi
9258
9259
9260
9261
9262 if test x"${enable_ltdl_install-no}" != xno; then
9263   INSTALL_LTDL_TRUE=
9264   INSTALL_LTDL_FALSE='#'
9265 else
9266   INSTALL_LTDL_TRUE='#'
9267   INSTALL_LTDL_FALSE=
9268 fi
9269
9270
9271
9272 if test x"${enable_ltdl_convenience-no}" != xno; then
9273   CONVENIENCE_LTDL_TRUE=
9274   CONVENIENCE_LTDL_FALSE='#'
9275 else
9276   CONVENIENCE_LTDL_TRUE='#'
9277   CONVENIENCE_LTDL_FALSE=
9278 fi
9279
9280
9281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9283 library_names_spec=
9284 libname_spec='lib$name'
9285 soname_spec=
9286 shrext_cmds=".so"
9287 postinstall_cmds=
9288 postuninstall_cmds=
9289 finish_cmds=
9290 finish_eval=
9291 shlibpath_var=
9292 shlibpath_overrides_runpath=unknown
9293 version_type=none
9294 dynamic_linker="$host_os ld.so"
9295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9296 if test "$GCC" = yes; then
9297   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9298   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9299     # if the path contains ";" then we assume it to be the separator
9300     # otherwise default to the standard path separator (i.e. ":") - it is
9301     # assumed that no part of a normal pathname contains ";" but that should
9302     # okay in the real world where ";" in dirpaths is itself problematic.
9303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9304   else
9305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9306   fi
9307 else
9308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9309 fi
9310 need_lib_prefix=unknown
9311 hardcode_into_libs=no
9312
9313 # when you set need_version to no, make sure it does not cause -set_version
9314 # flags to be left without arguments
9315 need_version=unknown
9316
9317 case $host_os in
9318 aix3*)
9319   version_type=linux
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9321   shlibpath_var=LIBPATH
9322
9323   # AIX 3 has no versioning support, so we append a major version to the name.
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   ;;
9326
9327 aix4* | aix5*)
9328   version_type=linux
9329   need_lib_prefix=no
9330   need_version=no
9331   hardcode_into_libs=yes
9332   if test "$host_cpu" = ia64; then
9333     # AIX 5 supports IA64
9334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9335     shlibpath_var=LD_LIBRARY_PATH
9336   else
9337     # With GCC up to 2.95.x, collect2 would create an import file
9338     # for dependence libraries.  The import file would start with
9339     # the line `#! .'.  This would cause the generated library to
9340     # depend on `.', always an invalid library.  This was fixed in
9341     # development snapshots of GCC prior to 3.0.
9342     case $host_os in
9343       aix4 | aix4.[01] | aix4.[01].*)
9344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9345            echo ' yes '
9346            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9347         :
9348       else
9349         can_build_shared=no
9350       fi
9351       ;;
9352     esac
9353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9354     # soname into executable. Probably we can add versioning support to
9355     # collect2, so additional links can be useful in future.
9356     if test "$aix_use_runtimelinking" = yes; then
9357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9358       # instead of lib<name>.a to let people know that these are not
9359       # typical AIX shared libraries.
9360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361     else
9362       # We preserve .a as extension for shared libraries through AIX4.2
9363       # and later when we are not doing run time linking.
9364       library_names_spec='${libname}${release}.a $libname.a'
9365       soname_spec='${libname}${release}${shared_ext}$major'
9366     fi
9367     shlibpath_var=LIBPATH
9368   fi
9369   ;;
9370
9371 amigaos*)
9372   library_names_spec='$libname.ixlibrary $libname.a'
9373   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9374   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'
9375   ;;
9376
9377 beos*)
9378   library_names_spec='${libname}${shared_ext}'
9379   dynamic_linker="$host_os ld.so"
9380   shlibpath_var=LIBRARY_PATH
9381   ;;
9382
9383 bsdi[45]*)
9384   version_type=linux
9385   need_version=no
9386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387   soname_spec='${libname}${release}${shared_ext}$major'
9388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9392   # the default ld.so.conf also contains /usr/contrib/lib and
9393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9394   # libtool to hard-code these into programs
9395   ;;
9396
9397 cygwin* | mingw* | pw32*)
9398   version_type=windows
9399   shrext_cmds=".dll"
9400   need_version=no
9401   need_lib_prefix=no
9402
9403   case $GCC,$host_os in
9404   yes,cygwin* | yes,mingw* | yes,pw32*)
9405     library_names_spec='$libname.dll.a'
9406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9407     postinstall_cmds='base_file=`basename \${file}`~
9408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9409       dldir=$destdir/`dirname \$dlpath`~
9410       test -d \$dldir || mkdir -p \$dldir~
9411       $install_prog $dir/$dlname \$dldir/$dlname~
9412       chmod a+x \$dldir/$dlname'
9413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9414       dlpath=$dir/\$dldll~
9415        $rm \$dlpath'
9416     shlibpath_overrides_runpath=yes
9417
9418     case $host_os in
9419     cygwin*)
9420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9423       ;;
9424     mingw*)
9425       # MinGW DLLs use traditional 'lib' prefix
9426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9429         # It is most probably a Windows format PATH printed by
9430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9431         # path with ; separators, and with drive letters. We can handle the
9432         # drive letters (cygwin fileutils understands them), so leave them,
9433         # especially as we might pass files found there to a mingw objdump,
9434         # which wouldn't understand a cygwinified path. Ahh.
9435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9436       else
9437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9438       fi
9439       ;;
9440     pw32*)
9441       # pw32 DLLs use 'pw' prefix rather than 'lib'
9442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443       ;;
9444     esac
9445     ;;
9446
9447   *)
9448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9449     ;;
9450   esac
9451   dynamic_linker='Win32 ld.exe'
9452   # FIXME: first we should search . and the directory the executable is in
9453   shlibpath_var=PATH
9454   ;;
9455
9456 darwin* | rhapsody*)
9457   dynamic_linker="$host_os dyld"
9458   version_type=darwin
9459   need_lib_prefix=no
9460   need_version=no
9461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9462   soname_spec='${libname}${release}${major}$shared_ext'
9463   shlibpath_overrides_runpath=yes
9464   shlibpath_var=DYLD_LIBRARY_PATH
9465   shrext_cmds='.dylib'
9466   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9467   if test "$GCC" = yes; then
9468     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"`
9469   else
9470     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9471   fi
9472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9473   ;;
9474
9475 dgux*)
9476   version_type=linux
9477   need_lib_prefix=no
9478   need_version=no
9479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480   soname_spec='${libname}${release}${shared_ext}$major'
9481   shlibpath_var=LD_LIBRARY_PATH
9482   ;;
9483
9484 freebsd1*)
9485   dynamic_linker=no
9486   ;;
9487
9488 kfreebsd*-gnu)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=no
9496   hardcode_into_libs=yes
9497   dynamic_linker='GNU ld.so'
9498   ;;
9499
9500 freebsd* | dragonfly*)
9501   # DragonFly does not have aout.  When/if they implement a new
9502   # versioning mechanism, adjust this.
9503   if test -x /usr/bin/objformat; then
9504     objformat=`/usr/bin/objformat`
9505   else
9506     case $host_os in
9507     freebsd[123]*) objformat=aout ;;
9508     *) objformat=elf ;;
9509     esac
9510   fi
9511   version_type=freebsd-$objformat
9512   case $version_type in
9513     freebsd-elf*)
9514       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515       need_version=no
9516       need_lib_prefix=no
9517       ;;
9518     freebsd-*)
9519       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520       need_version=yes
9521       ;;
9522   esac
9523   shlibpath_var=LD_LIBRARY_PATH
9524   case $host_os in
9525   freebsd2*)
9526     shlibpath_overrides_runpath=yes
9527     ;;
9528   freebsd3.[01]* | freebsdelf3.[01]*)
9529     shlibpath_overrides_runpath=yes
9530     hardcode_into_libs=yes
9531     ;;
9532   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9534     shlibpath_overrides_runpath=no
9535     hardcode_into_libs=yes
9536     ;;
9537   freebsd*) # from 4.6 on
9538     shlibpath_overrides_runpath=yes
9539     hardcode_into_libs=yes
9540     ;;
9541   esac
9542   ;;
9543
9544 gnu*)
9545   version_type=linux
9546   need_lib_prefix=no
9547   need_version=no
9548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549   soname_spec='${libname}${release}${shared_ext}$major'
9550   shlibpath_var=LD_LIBRARY_PATH
9551   hardcode_into_libs=yes
9552   ;;
9553
9554 hpux9* | hpux10* | hpux11*)
9555   # Give a soname corresponding to the major version so that dld.sl refuses to
9556   # link against other versions.
9557   version_type=sunos
9558   need_lib_prefix=no
9559   need_version=no
9560   case $host_cpu in
9561   ia64*)
9562     shrext_cmds='.so'
9563     hardcode_into_libs=yes
9564     dynamic_linker="$host_os dld.so"
9565     shlibpath_var=LD_LIBRARY_PATH
9566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568     soname_spec='${libname}${release}${shared_ext}$major'
9569     if test "X$HPUX_IA64_MODE" = X32; then
9570       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571     else
9572       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573     fi
9574     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575     ;;
9576    hppa*64*)
9577      shrext_cmds='.sl'
9578      hardcode_into_libs=yes
9579      dynamic_linker="$host_os dld.sl"
9580      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583      soname_spec='${libname}${release}${shared_ext}$major'
9584      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9585      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586      ;;
9587    *)
9588     shrext_cmds='.sl'
9589     dynamic_linker="$host_os dld.sl"
9590     shlibpath_var=SHLIB_PATH
9591     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593     soname_spec='${libname}${release}${shared_ext}$major'
9594     ;;
9595   esac
9596   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597   postinstall_cmds='chmod 555 $lib'
9598   ;;
9599
9600 interix3*)
9601   version_type=linux
9602   need_lib_prefix=no
9603   need_version=no
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605   soname_spec='${libname}${release}${shared_ext}$major'
9606   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607   shlibpath_var=LD_LIBRARY_PATH
9608   shlibpath_overrides_runpath=no
9609   hardcode_into_libs=yes
9610   ;;
9611
9612 irix5* | irix6* | nonstopux*)
9613   case $host_os in
9614     nonstopux*) version_type=nonstopux ;;
9615     *)
9616         if test "$lt_cv_prog_gnu_ld" = yes; then
9617                 version_type=linux
9618         else
9619                 version_type=irix
9620         fi ;;
9621   esac
9622   need_lib_prefix=no
9623   need_version=no
9624   soname_spec='${libname}${release}${shared_ext}$major'
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626   case $host_os in
9627   irix5* | nonstopux*)
9628     libsuff= shlibsuff=
9629     ;;
9630   *)
9631     case $LD in # libtool.m4 will add one of these switches to LD
9632     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633       libsuff= shlibsuff= libmagic=32-bit;;
9634     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635       libsuff=32 shlibsuff=N32 libmagic=N32;;
9636     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638     *) libsuff= shlibsuff= libmagic=never-match;;
9639     esac
9640     ;;
9641   esac
9642   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643   shlibpath_overrides_runpath=no
9644   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9646   hardcode_into_libs=yes
9647   ;;
9648
9649 # No shared lib support for Linux oldld, aout, or coff.
9650 linux*oldld* | linux*aout* | linux*coff*)
9651   dynamic_linker=no
9652   ;;
9653
9654 # This must be Linux ELF.
9655 linux*)
9656   version_type=linux
9657   need_lib_prefix=no
9658   need_version=no
9659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660   soname_spec='${libname}${release}${shared_ext}$major'
9661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=no
9664   # This implies no fast_install, which is unacceptable.
9665   # Some rework will be needed to allow for fast_install
9666   # before this can be enabled.
9667   hardcode_into_libs=yes
9668
9669   # Append ld.so.conf contents to the search path
9670   if test -f /etc/ld.so.conf; then
9671     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' ' '`
9672     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9673   fi
9674
9675   # We used to test for /lib/ld.so.1 and disable shared libraries on
9676   # powerpc, because MkLinux only supported shared libraries with the
9677   # GNU dynamic linker.  Since this was broken with cross compilers,
9678   # most powerpc-linux boxes support dynamic linking these days and
9679   # people can always --disable-shared, the test was removed, and we
9680   # assume the GNU/Linux dynamic linker is in use.
9681   dynamic_linker='GNU/Linux ld.so'
9682   ;;
9683
9684 knetbsd*-gnu)
9685   version_type=linux
9686   need_lib_prefix=no
9687   need_version=no
9688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689   soname_spec='${libname}${release}${shared_ext}$major'
9690   shlibpath_var=LD_LIBRARY_PATH
9691   shlibpath_overrides_runpath=no
9692   hardcode_into_libs=yes
9693   dynamic_linker='GNU ld.so'
9694   ;;
9695
9696 netbsd*)
9697   version_type=sunos
9698   need_lib_prefix=no
9699   need_version=no
9700   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9703     dynamic_linker='NetBSD (a.out) ld.so'
9704   else
9705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9706     soname_spec='${libname}${release}${shared_ext}$major'
9707     dynamic_linker='NetBSD ld.elf_so'
9708   fi
9709   shlibpath_var=LD_LIBRARY_PATH
9710   shlibpath_overrides_runpath=yes
9711   hardcode_into_libs=yes
9712   ;;
9713
9714 newsos6)
9715   version_type=linux
9716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717   shlibpath_var=LD_LIBRARY_PATH
9718   shlibpath_overrides_runpath=yes
9719   ;;
9720
9721 nto-qnx*)
9722   version_type=linux
9723   need_lib_prefix=no
9724   need_version=no
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726   soname_spec='${libname}${release}${shared_ext}$major'
9727   shlibpath_var=LD_LIBRARY_PATH
9728   shlibpath_overrides_runpath=yes
9729   ;;
9730
9731 openbsd*)
9732   version_type=sunos
9733   sys_lib_dlsearch_path_spec="/usr/lib"
9734   need_lib_prefix=no
9735   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9736   case $host_os in
9737     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9738     *)                         need_version=no  ;;
9739   esac
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9742   shlibpath_var=LD_LIBRARY_PATH
9743   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9744     case $host_os in
9745       openbsd2.[89] | openbsd2.[89].*)
9746         shlibpath_overrides_runpath=no
9747         ;;
9748       *)
9749         shlibpath_overrides_runpath=yes
9750         ;;
9751       esac
9752   else
9753     shlibpath_overrides_runpath=yes
9754   fi
9755   ;;
9756
9757 os2*)
9758   libname_spec='$name'
9759   shrext_cmds=".dll"
9760   need_lib_prefix=no
9761   library_names_spec='$libname${shared_ext} $libname.a'
9762   dynamic_linker='OS/2 ld.exe'
9763   shlibpath_var=LIBPATH
9764   ;;
9765
9766 osf3* | osf4* | osf5*)
9767   version_type=osf
9768   need_lib_prefix=no
9769   need_version=no
9770   soname_spec='${libname}${release}${shared_ext}$major'
9771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772   shlibpath_var=LD_LIBRARY_PATH
9773   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9774   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9775   ;;
9776
9777 solaris*)
9778   version_type=linux
9779   need_lib_prefix=no
9780   need_version=no
9781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782   soname_spec='${libname}${release}${shared_ext}$major'
9783   shlibpath_var=LD_LIBRARY_PATH
9784   shlibpath_overrides_runpath=yes
9785   hardcode_into_libs=yes
9786   # ldd complains unless libraries are executable
9787   postinstall_cmds='chmod +x $lib'
9788   ;;
9789
9790 sunos4*)
9791   version_type=sunos
9792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9794   shlibpath_var=LD_LIBRARY_PATH
9795   shlibpath_overrides_runpath=yes
9796   if test "$with_gnu_ld" = yes; then
9797     need_lib_prefix=no
9798   fi
9799   need_version=yes
9800   ;;
9801
9802 sysv4 | sysv4.3*)
9803   version_type=linux
9804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805   soname_spec='${libname}${release}${shared_ext}$major'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   case $host_vendor in
9808     sni)
9809       shlibpath_overrides_runpath=no
9810       need_lib_prefix=no
9811       export_dynamic_flag_spec='${wl}-Blargedynsym'
9812       runpath_var=LD_RUN_PATH
9813       ;;
9814     siemens)
9815       need_lib_prefix=no
9816       ;;
9817     motorola)
9818       need_lib_prefix=no
9819       need_version=no
9820       shlibpath_overrides_runpath=no
9821       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9822       ;;
9823   esac
9824   ;;
9825
9826 sysv4*MP*)
9827   if test -d /usr/nec ;then
9828     version_type=linux
9829     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9830     soname_spec='$libname${shared_ext}.$major'
9831     shlibpath_var=LD_LIBRARY_PATH
9832   fi
9833   ;;
9834
9835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9836   version_type=freebsd-elf
9837   need_lib_prefix=no
9838   need_version=no
9839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9840   soname_spec='${libname}${release}${shared_ext}$major'
9841   shlibpath_var=LD_LIBRARY_PATH
9842   hardcode_into_libs=yes
9843   if test "$with_gnu_ld" = yes; then
9844     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9845     shlibpath_overrides_runpath=no
9846   else
9847     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9848     shlibpath_overrides_runpath=yes
9849     case $host_os in
9850       sco3.2v5*)
9851         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9852         ;;
9853     esac
9854   fi
9855   sys_lib_dlsearch_path_spec='/usr/lib'
9856   ;;
9857
9858 uts4*)
9859   version_type=linux
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   ;;
9864
9865 *)
9866   dynamic_linker=no
9867   ;;
9868 esac
9869 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9870 echo "${ECHO_T}$dynamic_linker" >&6; }
9871 test "$dynamic_linker" = no && can_build_shared=no
9872
9873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9874 if test "$GCC" = yes; then
9875   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9876 fi
9877
9878
9879 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9880 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9881 if test "${libltdl_cv_shlibext+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884
9885 module=yes
9886 eval libltdl_cv_shlibext=$shrext_cmds
9887
9888 fi
9889 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9890 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9891 if test -n "$libltdl_cv_shlibext"; then
9892
9893 cat >>confdefs.h <<_ACEOF
9894 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9895 _ACEOF
9896
9897 fi
9898
9899
9900 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9901 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9902 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   libltdl_cv_shlibpath_var="$shlibpath_var"
9906 fi
9907 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9908 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9909 if test -n "$libltdl_cv_shlibpath_var"; then
9910
9911 cat >>confdefs.h <<_ACEOF
9912 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9913 _ACEOF
9914
9915 fi
9916
9917
9918 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9919 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9920 if test "${libltdl_cv_sys_search_path+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9924 fi
9925 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9926 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9927 if test -n "$libltdl_cv_sys_search_path"; then
9928   sys_search_path=
9929   for dir in $libltdl_cv_sys_search_path; do
9930     if test -z "$sys_search_path"; then
9931       sys_search_path="$dir"
9932     else
9933       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9934     fi
9935   done
9936
9937 cat >>confdefs.h <<_ACEOF
9938 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9939 _ACEOF
9940
9941 fi
9942
9943 { echo "$as_me:$LINENO: checking for objdir" >&5
9944 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9945 if test "${libltdl_cv_objdir+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   libltdl_cv_objdir="$objdir"
9949   if test -n "$objdir"; then
9950     :
9951   else
9952     rm -f .libs 2>/dev/null
9953     mkdir .libs 2>/dev/null
9954     if test -d .libs; then
9955       libltdl_cv_objdir=.libs
9956     else
9957       # MS-DOS does not allow filenames that begin with a dot.
9958       libltdl_cv_objdir=_libs
9959     fi
9960   rmdir .libs 2>/dev/null
9961   fi
9962
9963 fi
9964 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9965 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9969 _ACEOF
9970
9971
9972
9973
9974
9975
9976 # Check for command to grab the raw symbol name followed by C symbol from nm.
9977 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9978 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9979 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982
9983 # These are sane defaults that work on at least a few old systems.
9984 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9985
9986 # Character class describing NM global symbol codes.
9987 symcode='[BCDEGRST]'
9988
9989 # Regexp to match symbols that can be accessed directly from C.
9990 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9991
9992 # Transform an extracted symbol line into a proper C declaration
9993 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9994
9995 # Transform an extracted symbol line into symbol name and symbol address
9996 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'"
9997
9998 # Define system-specific variables.
9999 case $host_os in
10000 aix*)
10001   symcode='[BCDT]'
10002   ;;
10003 cygwin* | mingw* | pw32*)
10004   symcode='[ABCDGISTW]'
10005   ;;
10006 hpux*) # Its linker distinguishes data from code symbols
10007   if test "$host_cpu" = ia64; then
10008     symcode='[ABCDEGRST]'
10009   fi
10010   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10011   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'"
10012   ;;
10013 linux*)
10014   if test "$host_cpu" = ia64; then
10015     symcode='[ABCDGIRSTW]'
10016     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10017     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'"
10018   fi
10019   ;;
10020 irix* | nonstopux*)
10021   symcode='[BCDEGRST]'
10022   ;;
10023 osf*)
10024   symcode='[BCDEGQRST]'
10025   ;;
10026 solaris*)
10027   symcode='[BDRT]'
10028   ;;
10029 sco3.2v5*)
10030   symcode='[DT]'
10031   ;;
10032 sysv4.2uw2*)
10033   symcode='[DT]'
10034   ;;
10035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10036   symcode='[ABDT]'
10037   ;;
10038 sysv4)
10039   symcode='[DFNSTU]'
10040   ;;
10041 esac
10042
10043 # Handle CRLF in mingw tool chain
10044 opt_cr=
10045 case $build_os in
10046 mingw*)
10047   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10048   ;;
10049 esac
10050
10051 # If we're using GNU nm, then use its standard symbol codes.
10052 case `$NM -V 2>&1` in
10053 *GNU* | *'with BFD'*)
10054   symcode='[ABCDGIRSTW]' ;;
10055 esac
10056
10057 # Try without a prefix undercore, then with it.
10058 for ac_symprfx in "" "_"; do
10059
10060   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10061   symxfrm="\\1 $ac_symprfx\\2 \\2"
10062
10063   # Write the raw and C identifiers.
10064   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10065
10066   # Check to see that the pipe works correctly.
10067   pipe_works=no
10068
10069   rm -f conftest*
10070   cat > conftest.$ac_ext <<EOF
10071 #ifdef __cplusplus
10072 extern "C" {
10073 #endif
10074 char nm_test_var;
10075 void nm_test_func(){}
10076 #ifdef __cplusplus
10077 }
10078 #endif
10079 int main(){nm_test_var='a';nm_test_func();return(0);}
10080 EOF
10081
10082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083   (eval $ac_compile) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; then
10087     # Now try to grab the symbols.
10088     nlist=conftest.nm
10089     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10090   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } && test -s "$nlist"; then
10094       # Try sorting and uniquifying the output.
10095       if sort "$nlist" | uniq > "$nlist"T; then
10096         mv -f "$nlist"T "$nlist"
10097       else
10098         rm -f "$nlist"T
10099       fi
10100
10101       # Make sure that we snagged all the symbols we need.
10102       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10103         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10104           cat <<EOF > conftest.$ac_ext
10105 #ifdef __cplusplus
10106 extern "C" {
10107 #endif
10108
10109 EOF
10110           # Now generate the symbol file.
10111           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10112
10113           cat <<EOF >> conftest.$ac_ext
10114 #if defined (__STDC__) && __STDC__
10115 # define lt_ptr_t void *
10116 #else
10117 # define lt_ptr_t char *
10118 # define const
10119 #endif
10120
10121 /* The mapping between symbol names and symbols. */
10122 const struct {
10123   const char *name;
10124   lt_ptr_t address;
10125 }
10126 lt_preloaded_symbols[] =
10127 {
10128 EOF
10129           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10130           cat <<\EOF >> conftest.$ac_ext
10131   {0, (lt_ptr_t) 0}
10132 };
10133
10134 #ifdef __cplusplus
10135 }
10136 #endif
10137 EOF
10138           # Now try linking the two files.
10139           mv conftest.$ac_objext conftstm.$ac_objext
10140           lt_save_LIBS="$LIBS"
10141           lt_save_CFLAGS="$CFLAGS"
10142           LIBS="conftstm.$ac_objext"
10143           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10144           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10149             pipe_works=yes
10150           fi
10151           LIBS="$lt_save_LIBS"
10152           CFLAGS="$lt_save_CFLAGS"
10153         else
10154           echo "cannot find nm_test_func in $nlist" >&5
10155         fi
10156       else
10157         echo "cannot find nm_test_var in $nlist" >&5
10158       fi
10159     else
10160       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10161     fi
10162   else
10163     echo "$progname: failed program was:" >&5
10164     cat conftest.$ac_ext >&5
10165   fi
10166   rm -f conftest* conftst*
10167
10168   # Do not use the global_symbol_pipe unless it works.
10169   if test "$pipe_works" = yes; then
10170     break
10171   else
10172     lt_cv_sys_global_symbol_pipe=
10173   fi
10174 done
10175
10176 fi
10177
10178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10179   lt_cv_sys_global_symbol_to_cdecl=
10180 fi
10181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10182   { echo "$as_me:$LINENO: result: failed" >&5
10183 echo "${ECHO_T}failed" >&6; }
10184 else
10185   { echo "$as_me:$LINENO: result: ok" >&5
10186 echo "${ECHO_T}ok" >&6; }
10187 fi
10188
10189
10190 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10191 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10192 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10196     libltdl_cv_preloaded_symbols=yes
10197   else
10198     libltdl_cv_preloaded_symbols=no
10199   fi
10200
10201 fi
10202 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10203 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10204 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10205
10206 cat >>confdefs.h <<\_ACEOF
10207 #define HAVE_PRELOADED_SYMBOLS 1
10208 _ACEOF
10209
10210 fi
10211
10212 LIBADD_DL=
10213
10214 ac_ext=c
10215 ac_cpp='$CPP $CPPFLAGS'
10216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
10220
10221 { echo "$as_me:$LINENO: checking for shl_load" >&5
10222 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10223 if test "${ac_cv_func_shl_load+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10234 #define shl_load innocuous_shl_load
10235
10236 /* System header to define __stub macros and hopefully few prototypes,
10237     which can conflict with char shl_load (); below.
10238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239     <limits.h> exists even on freestanding compilers.  */
10240
10241 #ifdef __STDC__
10242 # include <limits.h>
10243 #else
10244 # include <assert.h>
10245 #endif
10246
10247 #undef shl_load
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char shl_load ();
10256 /* The GNU C library defines this for functions which it implements
10257     to always fail with ENOSYS.  Some functions are actually named
10258     something starting with __ and the normal name is an alias.  */
10259 #if defined __stub_shl_load || defined __stub___shl_load
10260 choke me
10261 #endif
10262
10263 int
10264 main ()
10265 {
10266 return shl_load ();
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_link") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286   { (case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_try") 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest$ac_exeext'
10296   { (case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_try") 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_func_shl_load=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_func_shl_load=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315 fi
10316 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10317 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10318 if test $ac_cv_func_shl_load = yes; then
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_SHL_LOAD 1
10322 _ACEOF
10323
10324 else
10325   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10326 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-ldld  $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char shl_load ();
10346 int
10347 main ()
10348 {
10349 return shl_load ();
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_link") 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } &&
10368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10369   { (case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_try") 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); }; } &&
10378          { ac_try='test -s conftest$ac_exeext'
10379   { (case "(($ac_try" in
10380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381   *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384   (eval "$ac_try") 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   ac_cv_lib_dld_shl_load=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10392
10393         ac_cv_lib_dld_shl_load=no
10394 fi
10395
10396 rm -f core conftest.err conftest.$ac_objext \
10397       conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10399 fi
10400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10401 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10402 if test $ac_cv_lib_dld_shl_load = yes; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_SHL_LOAD 1
10406 _ACEOF
10407
10408         LIBADD_DL="$LIBADD_DL -ldld"
10409 else
10410   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10413   echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415   ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-ldl  $LIBS"
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425    Use char because int might match the return type of a GCC
10426    builtin and then its argument prototype would still apply.  */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char dlopen ();
10431 int
10432 main ()
10433 {
10434 return dlopen ();
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_link") 2>conftest.er1
10447   ac_status=$?
10448   grep -v '^ *+' conftest.er1 >conftest.err
10449   rm -f conftest.er1
10450   cat conftest.err >&5
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } &&
10453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454   { (case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_try") 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; } &&
10463          { ac_try='test -s conftest$ac_exeext'
10464   { (case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_try") 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }; then
10473   ac_cv_lib_dl_dlopen=yes
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         ac_cv_lib_dl_dlopen=no
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext \
10482       conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10484 fi
10485 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10487 if test $ac_cv_lib_dl_dlopen = yes; then
10488
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_LIBDL 1
10491 _ACEOF
10492
10493                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501 #if HAVE_DLFCN_H
10502 #  include <dlfcn.h>
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 dlopen(0, 0);
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528   { (case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_try") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest$ac_exeext'
10538   { (case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_try") 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; }; then
10547
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_LIBDL 1
10550 _ACEOF
10551  libltdl_cv_func_dlopen="yes"
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10557 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10558 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10559   echo $ECHO_N "(cached) $ECHO_C" >&6
10560 else
10561   ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lsvld  $LIBS"
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569
10570 /* Override any GCC internal prototype to avoid an error.
10571    Use char because int might match the return type of a GCC
10572    builtin and then its argument prototype would still apply.  */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 char dlopen ();
10577 int
10578 main ()
10579 {
10580 return dlopen ();
10581   ;
10582   return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (ac_try="$ac_link"
10587 case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_link") 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } &&
10599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600   { (case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_try") 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_try") 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_cv_lib_svld_dlopen=yes
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624         ac_cv_lib_svld_dlopen=no
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext \
10628       conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10632 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10633 if test $ac_cv_lib_svld_dlopen = yes; then
10634
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_LIBDL 1
10637 _ACEOF
10638
10639                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10640 else
10641   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10642 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldld  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656    Use char because int might match the return type of a GCC
10657    builtin and then its argument prototype would still apply.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dld_link ();
10662 int
10663 main ()
10664 {
10665 return dld_link ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_link") 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } &&
10684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685   { (case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690   (eval "$ac_try") 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; } &&
10694          { ac_try='test -s conftest$ac_exeext'
10695   { (case "(($ac_try" in
10696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697   *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700   (eval "$ac_try") 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; }; then
10704   ac_cv_lib_dld_dld_link=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709         ac_cv_lib_dld_dld_link=no
10710 fi
10711
10712 rm -f core conftest.err conftest.$ac_objext \
10713       conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10717 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10718 if test $ac_cv_lib_dld_dld_link = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_DLD 1
10722 _ACEOF
10723
10724                 LIBADD_DL="$LIBADD_DL -ldld"
10725 else
10726   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10727 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10728 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10739 #define _dyld_func_lookup innocuous__dyld_func_lookup
10740
10741 /* System header to define __stub macros and hopefully few prototypes,
10742     which can conflict with char _dyld_func_lookup (); below.
10743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744     <limits.h> exists even on freestanding compilers.  */
10745
10746 #ifdef __STDC__
10747 # include <limits.h>
10748 #else
10749 # include <assert.h>
10750 #endif
10751
10752 #undef _dyld_func_lookup
10753
10754 /* Override any GCC internal prototype to avoid an error.
10755    Use char because int might match the return type of a GCC
10756    builtin and then its argument prototype would still apply.  */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char _dyld_func_lookup ();
10761 /* The GNU C library defines this for functions which it implements
10762     to always fail with ENOSYS.  Some functions are actually named
10763     something starting with __ and the normal name is an alias.  */
10764 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10765 choke me
10766 #endif
10767
10768 int
10769 main ()
10770 {
10771 return _dyld_func_lookup ();
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_link") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; } &&
10800          { ac_try='test -s conftest$ac_exeext'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_cv_func__dyld_func_lookup=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         ac_cv_func__dyld_func_lookup=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext \
10819       conftest$ac_exeext conftest.$ac_ext
10820 fi
10821 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10822 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10823 if test $ac_cv_func__dyld_func_lookup = yes; then
10824
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_DYLD 1
10827 _ACEOF
10828
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837
10838 fi
10839
10840 rm -f core conftest.err conftest.$ac_objext \
10841       conftest$ac_exeext conftest.$ac_ext
10842
10843 fi
10844
10845
10846 fi
10847
10848
10849 fi
10850
10851
10852 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10853 then
10854   lt_save_LIBS="$LIBS"
10855   LIBS="$LIBS $LIBADD_DL"
10856
10857 for ac_func in dlerror
10858 do
10859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865   cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10873 #define $ac_func innocuous_$ac_func
10874
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func (); below.
10877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878     <limits.h> exists even on freestanding compilers.  */
10879
10880 #ifdef __STDC__
10881 # include <limits.h>
10882 #else
10883 # include <assert.h>
10884 #endif
10885
10886 #undef $ac_func
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889    Use char because int might match the return type of a GCC
10890    builtin and then its argument prototype would still apply.  */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char $ac_func ();
10895 /* The GNU C library defines this for functions which it implements
10896     to always fail with ENOSYS.  Some functions are actually named
10897     something starting with __ and the normal name is an alias.  */
10898 #if defined __stub_$ac_func || defined __stub___$ac_func
10899 choke me
10900 #endif
10901
10902 int
10903 main ()
10904 {
10905 return $ac_func ();
10906   ;
10907   return 0;
10908 }
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_link") 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } &&
10924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10934          { ac_try='test -s conftest$ac_exeext'
10935   { (case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_try") 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; }; then
10944   eval "$as_ac_var=yes"
10945 else
10946   echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949         eval "$as_ac_var=no"
10950 fi
10951
10952 rm -f core conftest.err conftest.$ac_objext \
10953       conftest$ac_exeext conftest.$ac_ext
10954 fi
10955 ac_res=`eval echo '${'$as_ac_var'}'`
10956                { echo "$as_me:$LINENO: result: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10958 if test `eval echo '${'$as_ac_var'}'` = yes; then
10959   cat >>confdefs.h <<_ACEOF
10960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10961 _ACEOF
10962
10963 fi
10964 done
10965
10966   LIBS="$lt_save_LIBS"
10967 fi
10968 ac_ext=c
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10973
10974
10975
10976 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10977 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10978 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   ac_cv_sys_symbol_underscore=no
10982   cat > conftest.$ac_ext <<EOF
10983 void nm_test_func(){}
10984 int main(){nm_test_func;return 0;}
10985 EOF
10986   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987   (eval $ac_compile) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; then
10991     # Now try to grab the symbols.
10992     ac_nlist=conftest.nm
10993     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10994   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } && test -s "$ac_nlist"; then
10998       # See whether the symbols have a leading underscore.
10999       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11000         ac_cv_sys_symbol_underscore=yes
11001       else
11002         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11003           :
11004         else
11005           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11006         fi
11007       fi
11008     else
11009       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11010     fi
11011   else
11012     echo "configure: failed program was:" >&5
11013     cat conftest.c >&5
11014   fi
11015   rm -rf conftest*
11016
11017 fi
11018 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11019 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11020
11021
11022 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11023   if test x"$libltdl_cv_func_dlopen" = xyes ||
11024      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11025         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11026 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11027 if test "${libltdl_cv_need_uscore+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   libltdl_cv_need_uscore=unknown
11031           save_LIBS="$LIBS"
11032           LIBS="$LIBS $LIBADD_DL"
11033           if test "$cross_compiling" = yes; then :
11034   libltdl_cv_need_uscore=cross
11035 else
11036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037   lt_status=$lt_dlunknown
11038   cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11041
11042 #if HAVE_DLFCN_H
11043 #include <dlfcn.h>
11044 #endif
11045
11046 #include <stdio.h>
11047
11048 #ifdef RTLD_GLOBAL
11049 #  define LT_DLGLOBAL           RTLD_GLOBAL
11050 #else
11051 #  ifdef DL_GLOBAL
11052 #    define LT_DLGLOBAL         DL_GLOBAL
11053 #  else
11054 #    define LT_DLGLOBAL         0
11055 #  endif
11056 #endif
11057
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059    find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11061 #  ifdef RTLD_LAZY
11062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11063 #  else
11064 #    ifdef DL_LAZY
11065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11066 #    else
11067 #      ifdef RTLD_NOW
11068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11069 #      else
11070 #        ifdef DL_NOW
11071 #          define LT_DLLAZY_OR_NOW      DL_NOW
11072 #        else
11073 #          define LT_DLLAZY_OR_NOW      0
11074 #        endif
11075 #      endif
11076 #    endif
11077 #  endif
11078 #endif
11079
11080 #ifdef __cplusplus
11081 extern "C" void exit (int);
11082 #endif
11083
11084 void fnord() { int i=42;}
11085 int main ()
11086 {
11087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088   int status = $lt_dlunknown;
11089
11090   if (self)
11091     {
11092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11093       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094       /* dlclose (self); */
11095     }
11096   else
11097     puts (dlerror ());
11098
11099     exit (status);
11100 }
11101 EOF
11102   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103   (eval $ac_link) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11107     (./conftest; exit; ) >&5 2>/dev/null
11108     lt_status=$?
11109     case x$lt_status in
11110       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11111       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11112       x$lt_dlunknown|x*)  ;;
11113     esac
11114   else :
11115     # compilation failed
11116
11117   fi
11118 fi
11119 rm -fr conftest*
11120
11121           LIBS="$save_LIBS"
11122
11123 fi
11124 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11125 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11126   fi
11127 fi
11128
11129 if test x"$libltdl_cv_need_uscore" = xyes; then
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define NEED_USCORE 1
11133 _ACEOF
11134
11135 fi
11136
11137
11138 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11139 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11140 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   # PORTME does your system automatically load deplibs for dlopen?
11144   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11145   # For now, we just catch OSes we know something about -- in the
11146   # future, we'll try test this programmatically.
11147   libltdl_cv_sys_dlopen_deplibs=unknown
11148   case "$host_os" in
11149   aix3*|aix4.1.*|aix4.2.*)
11150     # Unknown whether this is true for these versions of AIX, but
11151     # we want this `case' here to explicitly catch those versions.
11152     libltdl_cv_sys_dlopen_deplibs=unknown
11153     ;;
11154   aix[45]*)
11155     libltdl_cv_sys_dlopen_deplibs=yes
11156     ;;
11157   darwin*)
11158     # Assuming the user has installed a libdl from somewhere, this is true
11159     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11160     libltdl_cv_sys_dlopen_deplibs=yes
11161     ;;
11162   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11163     # GNU and its variants, using gnu ld.so (Glibc)
11164     libltdl_cv_sys_dlopen_deplibs=yes
11165     ;;
11166   hpux10*|hpux11*)
11167     libltdl_cv_sys_dlopen_deplibs=yes
11168     ;;
11169   interix*)
11170     libltdl_cv_sys_dlopen_deplibs=yes
11171     ;;
11172   irix[12345]*|irix6.[01]*)
11173     # Catch all versions of IRIX before 6.2, and indicate that we don't
11174     # know how it worked for any of those versions.
11175     libltdl_cv_sys_dlopen_deplibs=unknown
11176     ;;
11177   irix*)
11178     # The case above catches anything before 6.2, and it's known that
11179     # at 6.2 and later dlopen does load deplibs.
11180     libltdl_cv_sys_dlopen_deplibs=yes
11181     ;;
11182   netbsd*)
11183     libltdl_cv_sys_dlopen_deplibs=yes
11184     ;;
11185   openbsd*)
11186     libltdl_cv_sys_dlopen_deplibs=yes
11187     ;;
11188   osf[1234]*)
11189     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11190     # it did *not* use an RPATH in a shared library to find objects the
11191     # library depends on, so we explictly say `no'.
11192     libltdl_cv_sys_dlopen_deplibs=no
11193     ;;
11194   osf5.0|osf5.0a|osf5.1)
11195     # dlopen *does* load deplibs and with the right loader patch applied
11196     # it even uses RPATH in a shared library to search for shared objects
11197     # that the library depends on, but there's no easy way to know if that
11198     # patch is installed.  Since this is the case, all we can really
11199     # say is unknown -- it depends on the patch being installed.  If
11200     # it is, this changes to `yes'.  Without it, it would be `no'.
11201     libltdl_cv_sys_dlopen_deplibs=unknown
11202     ;;
11203   osf*)
11204     # the two cases above should catch all versions of osf <= 5.1.  Read
11205     # the comments above for what we know about them.
11206     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11207     # is used to find them so we can finally say `yes'.
11208     libltdl_cv_sys_dlopen_deplibs=yes
11209     ;;
11210   solaris*)
11211     libltdl_cv_sys_dlopen_deplibs=yes
11212     ;;
11213   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11214     libltdl_cv_sys_dlopen_deplibs=yes
11215     ;;
11216   esac
11217
11218 fi
11219 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11220 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11221 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11222
11223 cat >>confdefs.h <<\_ACEOF
11224 #define LTDL_DLOPEN_DEPLIBS 1
11225 _ACEOF
11226
11227 fi
11228
11229
11230 for ac_header in argz.h
11231 do
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 fi
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240                { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242 else
11243   # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 $ac_includes_default
11253 #include <$ac_header>
11254 _ACEOF
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270   { (case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_try") 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; } &&
11279          { ac_try='test -s conftest.$ac_objext'
11280   { (case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_try") 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_header_compiler=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_header_compiler=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } >/dev/null; then
11325   if test -s conftest.err; then
11326     ac_cpp_err=$ac_c_preproc_warn_flag
11327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328   else
11329     ac_cpp_err=
11330   fi
11331 else
11332   ac_cpp_err=yes
11333 fi
11334 if test -z "$ac_cpp_err"; then
11335   ac_header_preproc=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340   ac_header_preproc=no
11341 fi
11342
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349   yes:no: )
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354     ac_header_preproc=yes
11355     ;;
11356   no:yes:* )
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369     ( cat <<\_ASBOX
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11373 _ASBOX
11374      ) | sed "s/^/$as_me: WARNING:     /" >&2
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395
11396 done
11397
11398
11399 { echo "$as_me:$LINENO: checking for error_t" >&5
11400 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11401 if test "${ac_cv_type_error_t+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h.  */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h.  */
11410 #if HAVE_ARGZ_H
11411 #  include <argz.h>
11412 #endif
11413
11414 typedef error_t ac__type_new_;
11415 int
11416 main ()
11417 {
11418 if ((ac__type_new_ *) 0)
11419   return 0;
11420 if (sizeof (ac__type_new_))
11421   return 0;
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext
11427 if { (ac_try="$ac_compile"
11428 case "(($ac_try" in
11429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430   *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433   (eval "$ac_compile") 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441   { (case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_try") 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; } &&
11450          { ac_try='test -s conftest.$ac_objext'
11451   { (case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_try") 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; }; then
11460   ac_cv_type_error_t=yes
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465         ac_cv_type_error_t=no
11466 fi
11467
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 fi
11470 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11471 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11472 if test $ac_cv_type_error_t = yes; then
11473
11474 cat >>confdefs.h <<_ACEOF
11475 #define HAVE_ERROR_T 1
11476 _ACEOF
11477
11478
11479 else
11480
11481 cat >>confdefs.h <<\_ACEOF
11482 #define error_t int
11483 _ACEOF
11484
11485 fi
11486
11487
11488
11489
11490
11491
11492
11493 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11494 do
11495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11509 #define $ac_func innocuous_$ac_func
11510
11511 /* System header to define __stub macros and hopefully few prototypes,
11512     which can conflict with char $ac_func (); below.
11513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514     <limits.h> exists even on freestanding compilers.  */
11515
11516 #ifdef __STDC__
11517 # include <limits.h>
11518 #else
11519 # include <assert.h>
11520 #endif
11521
11522 #undef $ac_func
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525    Use char because int might match the return type of a GCC
11526    builtin and then its argument prototype would still apply.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char $ac_func ();
11531 /* The GNU C library defines this for functions which it implements
11532     to always fail with ENOSYS.  Some functions are actually named
11533     something starting with __ and the normal name is an alias.  */
11534 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 choke me
11536 #endif
11537
11538 int
11539 main ()
11540 {
11541 return $ac_func ();
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550   *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553   (eval "$ac_link") 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } &&
11560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561   { (case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_try") 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; } &&
11570          { ac_try='test -s conftest$ac_exeext'
11571   { (case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_try") 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   eval "$as_ac_var=yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585         eval "$as_ac_var=no"
11586 fi
11587
11588 rm -f core conftest.err conftest.$ac_objext \
11589       conftest$ac_exeext conftest.$ac_ext
11590 fi
11591 ac_res=`eval echo '${'$as_ac_var'}'`
11592                { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595   cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597 _ACEOF
11598
11599 fi
11600 done
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11630                   stdio.h unistd.h
11631 do
11632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 fi
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640                { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642 else
11643   # Is the header compilable?
11644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 $ac_includes_default
11653 #include <$ac_header>
11654 _ACEOF
11655 rm -f conftest.$ac_objext
11656 if { (ac_try="$ac_compile"
11657 case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_compile") 2>conftest.er1
11663   ac_status=$?
11664   grep -v '^ *+' conftest.er1 >conftest.err
11665   rm -f conftest.er1
11666   cat conftest.err >&5
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest.$ac_objext'
11680   { (case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685   (eval "$ac_try") 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_header_compiler=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694         ac_header_compiler=no
11695 fi
11696
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11699 echo "${ECHO_T}$ac_header_compiler" >&6; }
11700
11701 # Is the header present?
11702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 #include <$ac_header>
11711 _ACEOF
11712 if { (ac_try="$ac_cpp conftest.$ac_ext"
11713 case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } >/dev/null; then
11725   if test -s conftest.err; then
11726     ac_cpp_err=$ac_c_preproc_warn_flag
11727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11728   else
11729     ac_cpp_err=
11730   fi
11731 else
11732   ac_cpp_err=yes
11733 fi
11734 if test -z "$ac_cpp_err"; then
11735   ac_header_preproc=yes
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740   ac_header_preproc=no
11741 fi
11742
11743 rm -f conftest.err conftest.$ac_ext
11744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11745 echo "${ECHO_T}$ac_header_preproc" >&6; }
11746
11747 # So?  What about this header?
11748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11749   yes:no: )
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11754     ac_header_preproc=yes
11755     ;;
11756   no:yes:* )
11757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11769     ( cat <<\_ASBOX
11770 ## ----------------------------------- ##
11771 ## Report this to llvmbugs@cs.uiuc.edu ##
11772 ## ----------------------------------- ##
11773 _ASBOX
11774      ) | sed "s/^/$as_me: WARNING:     /" >&2
11775     ;;
11776 esac
11777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780   echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782   eval "$as_ac_Header=\$ac_header_preproc"
11783 fi
11784 ac_res=`eval echo '${'$as_ac_Header'}'`
11785                { echo "$as_me:$LINENO: result: $ac_res" >&5
11786 echo "${ECHO_T}$ac_res" >&6; }
11787
11788 fi
11789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11790   cat >>confdefs.h <<_ACEOF
11791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11792 _ACEOF
11793
11794 fi
11795
11796 done
11797
11798
11799
11800
11801
11802 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11803 do
11804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 fi
11811 ac_res=`eval echo '${'$as_ac_Header'}'`
11812                { echo "$as_me:$LINENO: result: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11814 else
11815   # Is the header compilable?
11816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 $ac_includes_default
11825 #include <$ac_header>
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_compile") 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } &&
11841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11842   { (case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_try") 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; } &&
11851          { ac_try='test -s conftest.$ac_objext'
11852   { (case "(($ac_try" in
11853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854   *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857   (eval "$ac_try") 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   ac_header_compiler=yes
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866         ac_header_compiler=no
11867 fi
11868
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871 echo "${ECHO_T}$ac_header_compiler" >&6; }
11872
11873 # Is the header present?
11874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 #include <$ac_header>
11883 _ACEOF
11884 if { (ac_try="$ac_cpp conftest.$ac_ext"
11885 case "(($ac_try" in
11886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887   *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11891   ac_status=$?
11892   grep -v '^ *+' conftest.er1 >conftest.err
11893   rm -f conftest.er1
11894   cat conftest.err >&5
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); } >/dev/null; then
11897   if test -s conftest.err; then
11898     ac_cpp_err=$ac_c_preproc_warn_flag
11899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11900   else
11901     ac_cpp_err=
11902   fi
11903 else
11904   ac_cpp_err=yes
11905 fi
11906 if test -z "$ac_cpp_err"; then
11907   ac_header_preproc=yes
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912   ac_header_preproc=no
11913 fi
11914
11915 rm -f conftest.err conftest.$ac_ext
11916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6; }
11918
11919 # So?  What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921   yes:no: )
11922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11926     ac_header_preproc=yes
11927     ;;
11928   no:yes:* )
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11941     ( cat <<\_ASBOX
11942 ## ----------------------------------- ##
11943 ## Report this to llvmbugs@cs.uiuc.edu ##
11944 ## ----------------------------------- ##
11945 _ASBOX
11946      ) | sed "s/^/$as_me: WARNING:     /" >&2
11947     ;;
11948 esac
11949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   eval "$as_ac_Header=\$ac_header_preproc"
11955 fi
11956 ac_res=`eval echo '${'$as_ac_Header'}'`
11957                { echo "$as_me:$LINENO: result: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11959
11960 fi
11961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11962   cat >>confdefs.h <<_ACEOF
11963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11964 _ACEOF
11965
11966 fi
11967
11968 done
11969
11970
11971
11972 for ac_header in string.h strings.h
11973 do
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 fi
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982                { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11984 else
11985   # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 $ac_includes_default
11995 #include <$ac_header>
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_compile") 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; } &&
12021          { ac_try='test -s conftest.$ac_objext'
12022   { (case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_try") 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_header_compiler=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036         ac_header_compiler=no
12037 fi
12038
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <$ac_header>
12053 _ACEOF
12054 if { (ac_try="$ac_cpp conftest.$ac_ext"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } >/dev/null; then
12067   if test -s conftest.err; then
12068     ac_cpp_err=$ac_c_preproc_warn_flag
12069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070   else
12071     ac_cpp_err=
12072   fi
12073 else
12074   ac_cpp_err=yes
12075 fi
12076 if test -z "$ac_cpp_err"; then
12077   ac_header_preproc=yes
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082   ac_header_preproc=no
12083 fi
12084
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089 # So?  What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091   yes:no: )
12092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096     ac_header_preproc=yes
12097     ;;
12098   no:yes:* )
12099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111     ( cat <<\_ASBOX
12112 ## ----------------------------------- ##
12113 ## Report this to llvmbugs@cs.uiuc.edu ##
12114 ## ----------------------------------- ##
12115 _ASBOX
12116      ) | sed "s/^/$as_me: WARNING:     /" >&2
12117     ;;
12118 esac
12119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   eval "$as_ac_Header=\$ac_header_preproc"
12125 fi
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127                { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129
12130 fi
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132   cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134 _ACEOF
12135  break
12136 fi
12137
12138 done
12139
12140
12141
12142
12143 for ac_func in strchr index
12144 do
12145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12159 #define $ac_func innocuous_$ac_func
12160
12161 /* System header to define __stub macros and hopefully few prototypes,
12162     which can conflict with char $ac_func (); below.
12163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164     <limits.h> exists even on freestanding compilers.  */
12165
12166 #ifdef __STDC__
12167 # include <limits.h>
12168 #else
12169 # include <assert.h>
12170 #endif
12171
12172 #undef $ac_func
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175    Use char because int might match the return type of a GCC
12176    builtin and then its argument prototype would still apply.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char $ac_func ();
12181 /* The GNU C library defines this for functions which it implements
12182     to always fail with ENOSYS.  Some functions are actually named
12183     something starting with __ and the normal name is an alias.  */
12184 #if defined __stub_$ac_func || defined __stub___$ac_func
12185 choke me
12186 #endif
12187
12188 int
12189 main ()
12190 {
12191 return $ac_func ();
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_link") 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   eval "$as_ac_var=yes"
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         eval "$as_ac_var=no"
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext \
12239       conftest$ac_exeext conftest.$ac_ext
12240 fi
12241 ac_res=`eval echo '${'$as_ac_var'}'`
12242                { echo "$as_me:$LINENO: result: $ac_res" >&5
12243 echo "${ECHO_T}$ac_res" >&6; }
12244 if test `eval echo '${'$as_ac_var'}'` = yes; then
12245   cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12247 _ACEOF
12248  break
12249 fi
12250 done
12251
12252
12253
12254 for ac_func in strrchr rindex
12255 do
12256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12270 #define $ac_func innocuous_$ac_func
12271
12272 /* System header to define __stub macros and hopefully few prototypes,
12273     which can conflict with char $ac_func (); below.
12274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12275     <limits.h> exists even on freestanding compilers.  */
12276
12277 #ifdef __STDC__
12278 # include <limits.h>
12279 #else
12280 # include <assert.h>
12281 #endif
12282
12283 #undef $ac_func
12284
12285 /* Override any GCC internal prototype to avoid an error.
12286    Use char because int might match the return type of a GCC
12287    builtin and then its argument prototype would still apply.  */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 char $ac_func ();
12292 /* The GNU C library defines this for functions which it implements
12293     to always fail with ENOSYS.  Some functions are actually named
12294     something starting with __ and the normal name is an alias.  */
12295 #if defined __stub_$ac_func || defined __stub___$ac_func
12296 choke me
12297 #endif
12298
12299 int
12300 main ()
12301 {
12302 return $ac_func ();
12303   ;
12304   return 0;
12305 }
12306 _ACEOF
12307 rm -f conftest.$ac_objext conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314   (eval "$ac_link") 2>conftest.er1
12315   ac_status=$?
12316   grep -v '^ *+' conftest.er1 >conftest.err
12317   rm -f conftest.er1
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } &&
12321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322   { (case "(($ac_try" in
12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324   *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327   (eval "$ac_try") 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; } &&
12331          { ac_try='test -s conftest$ac_exeext'
12332   { (case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_try") 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   eval "$as_ac_var=yes"
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346         eval "$as_ac_var=no"
12347 fi
12348
12349 rm -f core conftest.err conftest.$ac_objext \
12350       conftest$ac_exeext conftest.$ac_ext
12351 fi
12352 ac_res=`eval echo '${'$as_ac_var'}'`
12353                { echo "$as_me:$LINENO: result: $ac_res" >&5
12354 echo "${ECHO_T}$ac_res" >&6; }
12355 if test `eval echo '${'$as_ac_var'}'` = yes; then
12356   cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12358 _ACEOF
12359  break
12360 fi
12361 done
12362
12363
12364
12365 for ac_func in memcpy bcopy
12366 do
12367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12381 #define $ac_func innocuous_$ac_func
12382
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char $ac_func (); below.
12385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386     <limits.h> exists even on freestanding compilers.  */
12387
12388 #ifdef __STDC__
12389 # include <limits.h>
12390 #else
12391 # include <assert.h>
12392 #endif
12393
12394 #undef $ac_func
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char $ac_func ();
12403 /* The GNU C library defines this for functions which it implements
12404     to always fail with ENOSYS.  Some functions are actually named
12405     something starting with __ and the normal name is an alias.  */
12406 #if defined __stub_$ac_func || defined __stub___$ac_func
12407 choke me
12408 #endif
12409
12410 int
12411 main ()
12412 {
12413 return $ac_func ();
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_link") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest$ac_exeext'
12443   { (case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_try") 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; }; then
12452   eval "$as_ac_var=yes"
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457         eval "$as_ac_var=no"
12458 fi
12459
12460 rm -f core conftest.err conftest.$ac_objext \
12461       conftest$ac_exeext conftest.$ac_ext
12462 fi
12463 ac_res=`eval echo '${'$as_ac_var'}'`
12464                { echo "$as_me:$LINENO: result: $ac_res" >&5
12465 echo "${ECHO_T}$ac_res" >&6; }
12466 if test `eval echo '${'$as_ac_var'}'` = yes; then
12467   cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12469 _ACEOF
12470  break
12471 fi
12472 done
12473
12474
12475
12476 for ac_func in memmove strcmp
12477 do
12478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484   cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12492 #define $ac_func innocuous_$ac_func
12493
12494 /* System header to define __stub macros and hopefully few prototypes,
12495     which can conflict with char $ac_func (); below.
12496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12497     <limits.h> exists even on freestanding compilers.  */
12498
12499 #ifdef __STDC__
12500 # include <limits.h>
12501 #else
12502 # include <assert.h>
12503 #endif
12504
12505 #undef $ac_func
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508    Use char because int might match the return type of a GCC
12509    builtin and then its argument prototype would still apply.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char $ac_func ();
12514 /* The GNU C library defines this for functions which it implements
12515     to always fail with ENOSYS.  Some functions are actually named
12516     something starting with __ and the normal name is an alias.  */
12517 #if defined __stub_$ac_func || defined __stub___$ac_func
12518 choke me
12519 #endif
12520
12521 int
12522 main ()
12523 {
12524 return $ac_func ();
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_link") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544   { (case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_try") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12563   eval "$as_ac_var=yes"
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568         eval "$as_ac_var=no"
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext conftest.$ac_ext
12573 fi
12574 ac_res=`eval echo '${'$as_ac_var'}'`
12575                { echo "$as_me:$LINENO: result: $ac_res" >&5
12576 echo "${ECHO_T}$ac_res" >&6; }
12577 if test `eval echo '${'$as_ac_var'}'` = yes; then
12578   cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12580 _ACEOF
12581
12582 fi
12583 done
12584
12585
12586
12587
12588 for ac_func in closedir opendir readdir
12589 do
12590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12604 #define $ac_func innocuous_$ac_func
12605
12606 /* System header to define __stub macros and hopefully few prototypes,
12607     which can conflict with char $ac_func (); below.
12608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609     <limits.h> exists even on freestanding compilers.  */
12610
12611 #ifdef __STDC__
12612 # include <limits.h>
12613 #else
12614 # include <assert.h>
12615 #endif
12616
12617 #undef $ac_func
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620    Use char because int might match the return type of a GCC
12621    builtin and then its argument prototype would still apply.  */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char $ac_func ();
12626 /* The GNU C library defines this for functions which it implements
12627     to always fail with ENOSYS.  Some functions are actually named
12628     something starting with __ and the normal name is an alias.  */
12629 #if defined __stub_$ac_func || defined __stub___$ac_func
12630 choke me
12631 #endif
12632
12633 int
12634 main ()
12635 {
12636 return $ac_func ();
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_link") 2>conftest.er1
12649   ac_status=$?
12650   grep -v '^ *+' conftest.er1 >conftest.err
12651   rm -f conftest.er1
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656   { (case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_try") 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest$ac_exeext'
12666   { (case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_try") 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; }; then
12675   eval "$as_ac_var=yes"
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680         eval "$as_ac_var=no"
12681 fi
12682
12683 rm -f core conftest.err conftest.$ac_objext \
12684       conftest$ac_exeext conftest.$ac_ext
12685 fi
12686 ac_res=`eval echo '${'$as_ac_var'}'`
12687                { echo "$as_me:$LINENO: result: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12689 if test `eval echo '${'$as_ac_var'}'` = yes; then
12690   cat >>confdefs.h <<_ACEOF
12691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12692 _ACEOF
12693
12694 fi
12695 done
12696
12697
12698 # Check whether --enable-shared was given.
12699 if test "${enable_shared+set}" = set; then
12700   enableval=$enable_shared; p=${PACKAGE-default}
12701     case $enableval in
12702     yes) enable_shared=yes ;;
12703     no) enable_shared=no ;;
12704     *)
12705       enable_shared=no
12706       # Look at the argument we got.  We use all the common list separators.
12707       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708       for pkg in $enableval; do
12709         IFS="$lt_save_ifs"
12710         if test "X$pkg" = "X$p"; then
12711           enable_shared=yes
12712         fi
12713       done
12714       IFS="$lt_save_ifs"
12715       ;;
12716     esac
12717 else
12718   enable_shared=yes
12719 fi
12720
12721
12722 # Check whether --enable-static was given.
12723 if test "${enable_static+set}" = set; then
12724   enableval=$enable_static; p=${PACKAGE-default}
12725     case $enableval in
12726     yes) enable_static=yes ;;
12727     no) enable_static=no ;;
12728     *)
12729      enable_static=no
12730       # Look at the argument we got.  We use all the common list separators.
12731       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12732       for pkg in $enableval; do
12733         IFS="$lt_save_ifs"
12734         if test "X$pkg" = "X$p"; then
12735           enable_static=yes
12736         fi
12737       done
12738       IFS="$lt_save_ifs"
12739       ;;
12740     esac
12741 else
12742   enable_static=yes
12743 fi
12744
12745
12746 # Check whether --enable-fast-install was given.
12747 if test "${enable_fast_install+set}" = set; then
12748   enableval=$enable_fast_install; p=${PACKAGE-default}
12749     case $enableval in
12750     yes) enable_fast_install=yes ;;
12751     no) enable_fast_install=no ;;
12752     *)
12753       enable_fast_install=no
12754       # Look at the argument we got.  We use all the common list separators.
12755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12756       for pkg in $enableval; do
12757         IFS="$lt_save_ifs"
12758         if test "X$pkg" = "X$p"; then
12759           enable_fast_install=yes
12760         fi
12761       done
12762       IFS="$lt_save_ifs"
12763       ;;
12764     esac
12765 else
12766   enable_fast_install=yes
12767 fi
12768
12769
12770 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12771 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12772 if test "${lt_cv_path_SED+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   # Loop through the user's path and test for sed and gsed.
12776 # Then use that list of sed's as ones to test for truncation.
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12779 do
12780   IFS=$as_save_IFS
12781   test -z "$as_dir" && as_dir=.
12782   for lt_ac_prog in sed gsed; do
12783     for ac_exec_ext in '' $ac_executable_extensions; do
12784       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12785         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12786       fi
12787     done
12788   done
12789 done
12790 lt_ac_max=0
12791 lt_ac_count=0
12792 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12793 # along with /bin/sed that truncates output.
12794 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12795   test ! -f $lt_ac_sed && continue
12796   cat /dev/null > conftest.in
12797   lt_ac_count=0
12798   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12799   # Check for GNU sed and select it if it is found.
12800   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12801     lt_cv_path_SED=$lt_ac_sed
12802     break
12803   fi
12804   while true; do
12805     cat conftest.in conftest.in >conftest.tmp
12806     mv conftest.tmp conftest.in
12807     cp conftest.in conftest.nl
12808     echo >>conftest.nl
12809     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12810     cmp -s conftest.out conftest.nl || break
12811     # 10000 chars as input seems more than enough
12812     test $lt_ac_count -gt 10 && break
12813     lt_ac_count=`expr $lt_ac_count + 1`
12814     if test $lt_ac_count -gt $lt_ac_max; then
12815       lt_ac_max=$lt_ac_count
12816       lt_cv_path_SED=$lt_ac_sed
12817     fi
12818   done
12819 done
12820
12821 fi
12822
12823 SED=$lt_cv_path_SED
12824 { echo "$as_me:$LINENO: result: $SED" >&5
12825 echo "${ECHO_T}$SED" >&6; }
12826
12827
12828 # Check whether --with-gnu-ld was given.
12829 if test "${with_gnu_ld+set}" = set; then
12830   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12831 else
12832   with_gnu_ld=no
12833 fi
12834
12835 ac_prog=ld
12836 if test "$GCC" = yes; then
12837   # Check if gcc -print-prog-name=ld gives a path.
12838   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12839 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12840   case $host in
12841   *-*-mingw*)
12842     # gcc leaves a trailing carriage return which upsets mingw
12843     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12844   *)
12845     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12846   esac
12847   case $ac_prog in
12848     # Accept absolute paths.
12849     [\\/]* | ?:[\\/]*)
12850       re_direlt='/[^/][^/]*/\.\./'
12851       # Canonicalize the pathname of ld
12852       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12853       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12854         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12855       done
12856       test -z "$LD" && LD="$ac_prog"
12857       ;;
12858   "")
12859     # If it fails, then pretend we aren't using GCC.
12860     ac_prog=ld
12861     ;;
12862   *)
12863     # If it is relative, then search for the first ld in PATH.
12864     with_gnu_ld=unknown
12865     ;;
12866   esac
12867 elif test "$with_gnu_ld" = yes; then
12868   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12869 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12870 else
12871   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12872 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12873 fi
12874 if test "${lt_cv_path_LD+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   if test -z "$LD"; then
12878   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12879   for ac_dir in $PATH; do
12880     IFS="$lt_save_ifs"
12881     test -z "$ac_dir" && ac_dir=.
12882     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12883       lt_cv_path_LD="$ac_dir/$ac_prog"
12884       # Check to see if the program is GNU ld.  I'd rather use --version,
12885       # but apparently some variants of GNU ld only accept -v.
12886       # Break only if it was the GNU/non-GNU ld that we prefer.
12887       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12888       *GNU* | *'with BFD'*)
12889         test "$with_gnu_ld" != no && break
12890         ;;
12891       *)
12892         test "$with_gnu_ld" != yes && break
12893         ;;
12894       esac
12895     fi
12896   done
12897   IFS="$lt_save_ifs"
12898 else
12899   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12900 fi
12901 fi
12902
12903 LD="$lt_cv_path_LD"
12904 if test -n "$LD"; then
12905   { echo "$as_me:$LINENO: result: $LD" >&5
12906 echo "${ECHO_T}$LD" >&6; }
12907 else
12908   { echo "$as_me:$LINENO: result: no" >&5
12909 echo "${ECHO_T}no" >&6; }
12910 fi
12911 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12912 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12913    { (exit 1); exit 1; }; }
12914 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12915 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12916 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12920 case `$LD -v 2>&1 </dev/null` in
12921 *GNU* | *'with BFD'*)
12922   lt_cv_prog_gnu_ld=yes
12923   ;;
12924 *)
12925   lt_cv_prog_gnu_ld=no
12926   ;;
12927 esac
12928 fi
12929 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12930 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12931 with_gnu_ld=$lt_cv_prog_gnu_ld
12932
12933
12934 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12935 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12936 if test "${lt_cv_ld_reload_flag+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   lt_cv_ld_reload_flag='-r'
12940 fi
12941 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12942 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12943 reload_flag=$lt_cv_ld_reload_flag
12944 case $reload_flag in
12945 "" | " "*) ;;
12946 *) reload_flag=" $reload_flag" ;;
12947 esac
12948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12949 case $host_os in
12950   darwin*)
12951     if test "$GCC" = yes; then
12952       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12953     else
12954       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12955     fi
12956     ;;
12957 esac
12958
12959 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12960 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12961 if test "${lt_cv_deplibs_check_method+set}" = set; then
12962   echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964   lt_cv_file_magic_cmd='$MAGIC_CMD'
12965 lt_cv_file_magic_test_file=
12966 lt_cv_deplibs_check_method='unknown'
12967 # Need to set the preceding variable on all platforms that support
12968 # interlibrary dependencies.
12969 # 'none' -- dependencies not supported.
12970 # `unknown' -- same as none, but documents that we really don't know.
12971 # 'pass_all' -- all dependencies passed with no checks.
12972 # 'test_compile' -- check by making test program.
12973 # 'file_magic [[regex]]' -- check by looking for files in library path
12974 # which responds to the $file_magic_cmd with a given extended regex.
12975 # If you have `file' or equivalent on your system and you're not sure
12976 # whether `pass_all' will *always* work, you probably want this one.
12977
12978 case $host_os in
12979 aix4* | aix5*)
12980   lt_cv_deplibs_check_method=pass_all
12981   ;;
12982
12983 beos*)
12984   lt_cv_deplibs_check_method=pass_all
12985   ;;
12986
12987 bsdi[45]*)
12988   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12989   lt_cv_file_magic_cmd='/usr/bin/file -L'
12990   lt_cv_file_magic_test_file=/shlib/libc.so
12991   ;;
12992
12993 cygwin*)
12994   # func_win32_libid is a shell function defined in ltmain.sh
12995   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12996   lt_cv_file_magic_cmd='func_win32_libid'
12997   ;;
12998
12999 mingw* | pw32*)
13000   # Base MSYS/MinGW do not provide the 'file' command needed by
13001   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13002   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13003   lt_cv_file_magic_cmd='$OBJDUMP -f'
13004   ;;
13005
13006 darwin* | rhapsody*)
13007   lt_cv_deplibs_check_method=pass_all
13008   ;;
13009
13010 freebsd* | kfreebsd*-gnu | dragonfly*)
13011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13012     case $host_cpu in
13013     i*86 )
13014       # Not sure whether the presence of OpenBSD here was a mistake.
13015       # Let's accept both of them until this is cleared up.
13016       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13017       lt_cv_file_magic_cmd=/usr/bin/file
13018       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13019       ;;
13020     esac
13021   else
13022     lt_cv_deplibs_check_method=pass_all
13023   fi
13024   ;;
13025
13026 gnu*)
13027   lt_cv_deplibs_check_method=pass_all
13028   ;;
13029
13030 hpux10.20* | hpux11*)
13031   lt_cv_file_magic_cmd=/usr/bin/file
13032   case $host_cpu in
13033   ia64*)
13034     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13035     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13036     ;;
13037   hppa*64*)
13038     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]'
13039     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13040     ;;
13041   *)
13042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13043     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13044     ;;
13045   esac
13046   ;;
13047
13048 interix3*)
13049   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13050   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13051   ;;
13052
13053 irix5* | irix6* | nonstopux*)
13054   case $LD in
13055   *-32|*"-32 ") libmagic=32-bit;;
13056   *-n32|*"-n32 ") libmagic=N32;;
13057   *-64|*"-64 ") libmagic=64-bit;;
13058   *) libmagic=never-match;;
13059   esac
13060   lt_cv_deplibs_check_method=pass_all
13061   ;;
13062
13063 # This must be Linux ELF.
13064 linux*)
13065   lt_cv_deplibs_check_method=pass_all
13066   ;;
13067
13068 netbsd*)
13069   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13071   else
13072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13073   fi
13074   ;;
13075
13076 newos6*)
13077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13078   lt_cv_file_magic_cmd=/usr/bin/file
13079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13080   ;;
13081
13082 nto-qnx*)
13083   lt_cv_deplibs_check_method=unknown
13084   ;;
13085
13086 openbsd*)
13087   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13089   else
13090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13091   fi
13092   ;;
13093
13094 osf3* | osf4* | osf5*)
13095   lt_cv_deplibs_check_method=pass_all
13096   ;;
13097
13098 solaris*)
13099   lt_cv_deplibs_check_method=pass_all
13100   ;;
13101
13102 sysv4 | sysv4.3*)
13103   case $host_vendor in
13104   motorola)
13105     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]'
13106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13107     ;;
13108   ncr)
13109     lt_cv_deplibs_check_method=pass_all
13110     ;;
13111   sequent)
13112     lt_cv_file_magic_cmd='/bin/file'
13113     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13114     ;;
13115   sni)
13116     lt_cv_file_magic_cmd='/bin/file'
13117     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13118     lt_cv_file_magic_test_file=/lib/libc.so
13119     ;;
13120   siemens)
13121     lt_cv_deplibs_check_method=pass_all
13122     ;;
13123   pc)
13124     lt_cv_deplibs_check_method=pass_all
13125     ;;
13126   esac
13127   ;;
13128
13129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13130   lt_cv_deplibs_check_method=pass_all
13131   ;;
13132 esac
13133
13134 fi
13135 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13137 file_magic_cmd=$lt_cv_file_magic_cmd
13138 deplibs_check_method=$lt_cv_deplibs_check_method
13139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13140
13141
13142
13143 # If no C compiler was specified, use CC.
13144 LTCC=${LTCC-"$CC"}
13145
13146 # If no C compiler flags were specified, use CFLAGS.
13147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13148
13149 # Allow CC to be a program name with arguments.
13150 compiler=$CC
13151
13152 # Check whether --enable-libtool-lock was given.
13153 if test "${enable_libtool_lock+set}" = set; then
13154   enableval=$enable_libtool_lock;
13155 fi
13156
13157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13158
13159 # Some flags need to be propagated to the compiler or linker for good
13160 # libtool support.
13161 case $host in
13162 ia64-*-hpux*)
13163   # Find out which ABI we are using.
13164   echo 'int i;' > conftest.$ac_ext
13165   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166   (eval $ac_compile) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; then
13170     case `/usr/bin/file conftest.$ac_objext` in
13171     *ELF-32*)
13172       HPUX_IA64_MODE="32"
13173       ;;
13174     *ELF-64*)
13175       HPUX_IA64_MODE="64"
13176       ;;
13177     esac
13178   fi
13179   rm -rf conftest*
13180   ;;
13181 *-*-irix6*)
13182   # Find out which ABI we are using.
13183   echo '#line 13183 "configure"' > conftest.$ac_ext
13184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185   (eval $ac_compile) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; then
13189    if test "$lt_cv_prog_gnu_ld" = yes; then
13190     case `/usr/bin/file conftest.$ac_objext` in
13191     *32-bit*)
13192       LD="${LD-ld} -melf32bsmip"
13193       ;;
13194     *N32*)
13195       LD="${LD-ld} -melf32bmipn32"
13196       ;;
13197     *64-bit*)
13198       LD="${LD-ld} -melf64bmip"
13199       ;;
13200     esac
13201    else
13202     case `/usr/bin/file conftest.$ac_objext` in
13203     *32-bit*)
13204       LD="${LD-ld} -32"
13205       ;;
13206     *N32*)
13207       LD="${LD-ld} -n32"
13208       ;;
13209     *64-bit*)
13210       LD="${LD-ld} -64"
13211       ;;
13212     esac
13213    fi
13214   fi
13215   rm -rf conftest*
13216   ;;
13217
13218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13219   # Find out which ABI we are using.
13220   echo 'int i;' > conftest.$ac_ext
13221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222   (eval $ac_compile) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; then
13226     case `/usr/bin/file conftest.o` in
13227     *32-bit*)
13228       case $host in
13229         x86_64-*linux*)
13230           LD="${LD-ld} -m elf_i386"
13231           ;;
13232         ppc64-*linux*|powerpc64-*linux*)
13233           LD="${LD-ld} -m elf32ppclinux"
13234           ;;
13235         s390x-*linux*)
13236           LD="${LD-ld} -m elf_s390"
13237           ;;
13238         sparc64-*linux*)
13239           LD="${LD-ld} -m elf32_sparc"
13240           ;;
13241       esac
13242       ;;
13243     *64-bit*)
13244       case $host in
13245         x86_64-*linux*)
13246           LD="${LD-ld} -m elf_x86_64"
13247           ;;
13248         ppc*-*linux*|powerpc*-*linux*)
13249           LD="${LD-ld} -m elf64ppc"
13250           ;;
13251         s390*-*linux*)
13252           LD="${LD-ld} -m elf64_s390"
13253           ;;
13254         sparc*-*linux*)
13255           LD="${LD-ld} -m elf64_sparc"
13256           ;;
13257       esac
13258       ;;
13259     esac
13260   fi
13261   rm -rf conftest*
13262   ;;
13263
13264 *-*-sco3.2v5*)
13265   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13266   SAVE_CFLAGS="$CFLAGS"
13267   CFLAGS="$CFLAGS -belf"
13268   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13270 if test "${lt_cv_cc_needs_belf+set}" = set; then
13271   echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273   ac_ext=c
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278
13279      cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285
13286 int
13287 main ()
13288 {
13289
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (ac_try="$ac_link"
13296 case "(($ac_try" in
13297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298   *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301   (eval "$ac_link") 2>conftest.er1
13302   ac_status=$?
13303   grep -v '^ *+' conftest.er1 >conftest.err
13304   rm -f conftest.er1
13305   cat conftest.err >&5
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309   { (case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314   (eval "$ac_try") 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; } &&
13318          { ac_try='test -s conftest$ac_exeext'
13319   { (case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_try") 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); }; }; then
13328   lt_cv_cc_needs_belf=yes
13329 else
13330   echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13332
13333         lt_cv_cc_needs_belf=no
13334 fi
13335
13336 rm -f core conftest.err conftest.$ac_objext \
13337       conftest$ac_exeext conftest.$ac_ext
13338      ac_ext=c
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343
13344 fi
13345 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13346 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13347   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13348     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13349     CFLAGS="$SAVE_CFLAGS"
13350   fi
13351   ;;
13352 sparc*-*solaris*)
13353   # Find out which ABI we are using.
13354   echo 'int i;' > conftest.$ac_ext
13355   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356   (eval $ac_compile) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; then
13360     case `/usr/bin/file conftest.o` in
13361     *64-bit*)
13362       case $lt_cv_prog_gnu_ld in
13363       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13364       *)    LD="${LD-ld} -64" ;;
13365       esac
13366       ;;
13367     esac
13368   fi
13369   rm -rf conftest*
13370   ;;
13371
13372
13373 esac
13374
13375 need_locks="$enable_libtool_lock"
13376
13377
13378
13379
13380 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13381     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13382     (test "X$CXX" != "Xg++"))) ; then
13383   ac_ext=cpp
13384 ac_cpp='$CXXCPP $CPPFLAGS'
13385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13388 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13389 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13390 if test -z "$CXXCPP"; then
13391   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394       # Double quotes because CXXCPP needs to be expanded
13395     for CXXCPP in "$CXX -E" "/lib/cpp"
13396     do
13397       ac_preproc_ok=false
13398 for ac_cxx_preproc_warn_flag in '' yes
13399 do
13400   # Use a header file that comes with gcc, so configuring glibc
13401   # with a fresh cross-compiler works.
13402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403   # <limits.h> exists even on freestanding compilers.
13404   # On the NeXT, cc -E runs the code through the compiler's parser,
13405   # not just through cpp. "Syntax error" is here to catch this case.
13406   cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #ifdef __STDC__
13413 # include <limits.h>
13414 #else
13415 # include <assert.h>
13416 #endif
13417                      Syntax error
13418 _ACEOF
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } >/dev/null; then
13432   if test -s conftest.err; then
13433     ac_cpp_err=$ac_cxx_preproc_warn_flag
13434     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13435   else
13436     ac_cpp_err=
13437   fi
13438 else
13439   ac_cpp_err=yes
13440 fi
13441 if test -z "$ac_cpp_err"; then
13442   :
13443 else
13444   echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13446
13447   # Broken: fails on valid input.
13448 continue
13449 fi
13450
13451 rm -f conftest.err conftest.$ac_ext
13452
13453   # OK, works on sane cases.  Now check whether nonexistent headers
13454   # can be detected and how.
13455   cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 #include <ac_nonexistent.h>
13462 _ACEOF
13463 if { (ac_try="$ac_cpp conftest.$ac_ext"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } >/dev/null; then
13476   if test -s conftest.err; then
13477     ac_cpp_err=$ac_cxx_preproc_warn_flag
13478     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13479   else
13480     ac_cpp_err=
13481   fi
13482 else
13483   ac_cpp_err=yes
13484 fi
13485 if test -z "$ac_cpp_err"; then
13486   # Broken: success on invalid input.
13487 continue
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492   # Passes both tests.
13493 ac_preproc_ok=:
13494 break
13495 fi
13496
13497 rm -f conftest.err conftest.$ac_ext
13498
13499 done
13500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13501 rm -f conftest.err conftest.$ac_ext
13502 if $ac_preproc_ok; then
13503   break
13504 fi
13505
13506     done
13507     ac_cv_prog_CXXCPP=$CXXCPP
13508
13509 fi
13510   CXXCPP=$ac_cv_prog_CXXCPP
13511 else
13512   ac_cv_prog_CXXCPP=$CXXCPP
13513 fi
13514 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13515 echo "${ECHO_T}$CXXCPP" >&6; }
13516 ac_preproc_ok=false
13517 for ac_cxx_preproc_warn_flag in '' yes
13518 do
13519   # Use a header file that comes with gcc, so configuring glibc
13520   # with a fresh cross-compiler works.
13521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522   # <limits.h> exists even on freestanding compilers.
13523   # On the NeXT, cc -E runs the code through the compiler's parser,
13524   # not just through cpp. "Syntax error" is here to catch this case.
13525   cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531 #ifdef __STDC__
13532 # include <limits.h>
13533 #else
13534 # include <assert.h>
13535 #endif
13536                      Syntax error
13537 _ACEOF
13538 if { (ac_try="$ac_cpp conftest.$ac_ext"
13539 case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13545   ac_status=$?
13546   grep -v '^ *+' conftest.er1 >conftest.err
13547   rm -f conftest.er1
13548   cat conftest.err >&5
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); } >/dev/null; then
13551   if test -s conftest.err; then
13552     ac_cpp_err=$ac_cxx_preproc_warn_flag
13553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13554   else
13555     ac_cpp_err=
13556   fi
13557 else
13558   ac_cpp_err=yes
13559 fi
13560 if test -z "$ac_cpp_err"; then
13561   :
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566   # Broken: fails on valid input.
13567 continue
13568 fi
13569
13570 rm -f conftest.err conftest.$ac_ext
13571
13572   # OK, works on sane cases.  Now check whether nonexistent headers
13573   # can be detected and how.
13574   cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 #include <ac_nonexistent.h>
13581 _ACEOF
13582 if { (ac_try="$ac_cpp conftest.$ac_ext"
13583 case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13589   ac_status=$?
13590   grep -v '^ *+' conftest.er1 >conftest.err
13591   rm -f conftest.er1
13592   cat conftest.err >&5
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } >/dev/null; then
13595   if test -s conftest.err; then
13596     ac_cpp_err=$ac_cxx_preproc_warn_flag
13597     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13598   else
13599     ac_cpp_err=
13600   fi
13601 else
13602   ac_cpp_err=yes
13603 fi
13604 if test -z "$ac_cpp_err"; then
13605   # Broken: success on invalid input.
13606 continue
13607 else
13608   echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611   # Passes both tests.
13612 ac_preproc_ok=:
13613 break
13614 fi
13615
13616 rm -f conftest.err conftest.$ac_ext
13617
13618 done
13619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13620 rm -f conftest.err conftest.$ac_ext
13621 if $ac_preproc_ok; then
13622   :
13623 else
13624   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13625 See \`config.log' for more details." >&5
13626 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13627 See \`config.log' for more details." >&2;}
13628    { (exit 1); exit 1; }; }
13629 fi
13630
13631 ac_ext=cpp
13632 ac_cpp='$CXXCPP $CPPFLAGS'
13633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13636
13637 fi
13638
13639
13640 ac_ext=f
13641 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13642 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13643 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13644 if test -n "$ac_tool_prefix"; then
13645   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
13646   do
13647     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13651 if test "${ac_cv_prog_F77+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   if test -n "$F77"; then
13655   ac_cv_prog_F77="$F77" # Let the user override the test.
13656 else
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13659 do
13660   IFS=$as_save_IFS
13661   test -z "$as_dir" && as_dir=.
13662   for ac_exec_ext in '' $ac_executable_extensions; do
13663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13664     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13666     break 2
13667   fi
13668 done
13669 done
13670 IFS=$as_save_IFS
13671
13672 fi
13673 fi
13674 F77=$ac_cv_prog_F77
13675 if test -n "$F77"; then
13676   { echo "$as_me:$LINENO: result: $F77" >&5
13677 echo "${ECHO_T}$F77" >&6; }
13678 else
13679   { echo "$as_me:$LINENO: result: no" >&5
13680 echo "${ECHO_T}no" >&6; }
13681 fi
13682
13683
13684     test -n "$F77" && break
13685   done
13686 fi
13687 if test -z "$F77"; then
13688   ac_ct_F77=$F77
13689   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
13690 do
13691   # Extract the first word of "$ac_prog", so it can be a program name with args.
13692 set dummy $ac_prog; ac_word=$2
13693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13695 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   if test -n "$ac_ct_F77"; then
13699   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13700 else
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13703 do
13704   IFS=$as_save_IFS
13705   test -z "$as_dir" && as_dir=.
13706   for ac_exec_ext in '' $ac_executable_extensions; do
13707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13708     ac_cv_prog_ac_ct_F77="$ac_prog"
13709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13710     break 2
13711   fi
13712 done
13713 done
13714 IFS=$as_save_IFS
13715
13716 fi
13717 fi
13718 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13719 if test -n "$ac_ct_F77"; then
13720   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13721 echo "${ECHO_T}$ac_ct_F77" >&6; }
13722 else
13723   { echo "$as_me:$LINENO: result: no" >&5
13724 echo "${ECHO_T}no" >&6; }
13725 fi
13726
13727
13728   test -n "$ac_ct_F77" && break
13729 done
13730
13731   if test "x$ac_ct_F77" = x; then
13732     F77=""
13733   else
13734     case $cross_compiling:$ac_tool_warned in
13735 yes:)
13736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13737 whose name does not start with the host triplet.  If you think this
13738 configuration is useful to you, please write to autoconf@gnu.org." >&5
13739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13740 whose name does not start with the host triplet.  If you think this
13741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13742 ac_tool_warned=yes ;;
13743 esac
13744     F77=$ac_ct_F77
13745   fi
13746 fi
13747
13748
13749 # Provide some information about the compiler.
13750 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13751 ac_compiler=`set X $ac_compile; echo $2`
13752 { (ac_try="$ac_compiler --version >&5"
13753 case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_compiler --version >&5") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }
13762 { (ac_try="$ac_compiler -v >&5"
13763 case "(($ac_try" in
13764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765   *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768   (eval "$ac_compiler -v >&5") 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }
13772 { (ac_try="$ac_compiler -V >&5"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_compiler -V >&5") 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }
13782 rm -f a.out
13783
13784 # If we don't use `.F' as extension, the preprocessor is not run on the
13785 # input file.  (Note that this only needs to work for GNU compilers.)
13786 ac_save_ext=$ac_ext
13787 ac_ext=F
13788 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13789 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13790 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   cat >conftest.$ac_ext <<_ACEOF
13794       program main
13795 #ifndef __GNUC__
13796        choke me
13797 #endif
13798
13799       end
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_compile") 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } &&
13815          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13816   { (case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_try") 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; } &&
13825          { ac_try='test -s conftest.$ac_objext'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; }; then
13835   ac_compiler_gnu=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         ac_compiler_gnu=no
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13845
13846 fi
13847 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13848 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13849 ac_ext=$ac_save_ext
13850 ac_test_FFLAGS=${FFLAGS+set}
13851 ac_save_FFLAGS=$FFLAGS
13852 FFLAGS=
13853 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13854 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13855 if test "${ac_cv_prog_f77_g+set}" = set; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   FFLAGS=-g
13859 cat >conftest.$ac_ext <<_ACEOF
13860       program main
13861
13862       end
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (ac_try="$ac_compile"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_compile") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } &&
13878          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13879   { (case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_try") 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (case "(($ac_try" in
13890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891   *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894   (eval "$ac_try") 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   ac_cv_prog_f77_g=yes
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903         ac_cv_prog_f77_g=no
13904 fi
13905
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907
13908 fi
13909 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13910 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13911 if test "$ac_test_FFLAGS" = set; then
13912   FFLAGS=$ac_save_FFLAGS
13913 elif test $ac_cv_prog_f77_g = yes; then
13914   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13915     FFLAGS="-g -O2"
13916   else
13917     FFLAGS="-g"
13918   fi
13919 else
13920   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13921     FFLAGS="-O2"
13922   else
13923     FFLAGS=
13924   fi
13925 fi
13926
13927 G77=`test $ac_compiler_gnu = yes && echo yes`
13928 ac_ext=c
13929 ac_cpp='$CPP $CPPFLAGS'
13930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13933
13934
13935
13936 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13937
13938 # find the maximum length of command line arguments
13939 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13940 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13941 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944     i=0
13945   teststring="ABCD"
13946
13947   case $build_os in
13948   msdosdjgpp*)
13949     # On DJGPP, this test can blow up pretty badly due to problems in libc
13950     # (any single argument exceeding 2000 bytes causes a buffer overrun
13951     # during glob expansion).  Even if it were fixed, the result of this
13952     # check would be larger than it should be.
13953     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13954     ;;
13955
13956   gnu*)
13957     # Under GNU Hurd, this test is not required because there is
13958     # no limit to the length of command line arguments.
13959     # Libtool will interpret -1 as no limit whatsoever
13960     lt_cv_sys_max_cmd_len=-1;
13961     ;;
13962
13963   cygwin* | mingw*)
13964     # On Win9x/ME, this test blows up -- it succeeds, but takes
13965     # about 5 minutes as the teststring grows exponentially.
13966     # Worse, since 9x/ME are not pre-emptively multitasking,
13967     # you end up with a "frozen" computer, even though with patience
13968     # the test eventually succeeds (with a max line length of 256k).
13969     # Instead, let's just punt: use the minimum linelength reported by
13970     # all of the supported platforms: 8192 (on NT/2K/XP).
13971     lt_cv_sys_max_cmd_len=8192;
13972     ;;
13973
13974   amigaos*)
13975     # On AmigaOS with pdksh, this test takes hours, literally.
13976     # So we just punt and use a minimum line length of 8192.
13977     lt_cv_sys_max_cmd_len=8192;
13978     ;;
13979
13980   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13981     # This has been around since 386BSD, at least.  Likely further.
13982     if test -x /sbin/sysctl; then
13983       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13984     elif test -x /usr/sbin/sysctl; then
13985       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13986     else
13987       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13988     fi
13989     # And add a safety zone
13990     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13991     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13992     ;;
13993
13994   interix*)
13995     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13996     lt_cv_sys_max_cmd_len=196608
13997     ;;
13998
13999   osf*)
14000     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14001     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14002     # nice to cause kernel panics so lets avoid the loop below.
14003     # First set a reasonable default.
14004     lt_cv_sys_max_cmd_len=16384
14005     #
14006     if test -x /sbin/sysconfig; then
14007       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14008         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14009       esac
14010     fi
14011     ;;
14012   sco3.2v5*)
14013     lt_cv_sys_max_cmd_len=102400
14014     ;;
14015   sysv5* | sco5v6* | sysv4.2uw2*)
14016     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14017     if test -n "$kargmax"; then
14018       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
14019     else
14020       lt_cv_sys_max_cmd_len=32768
14021     fi
14022     ;;
14023   *)
14024     # If test is not a shell built-in, we'll probably end up computing a
14025     # maximum length that is only half of the actual maximum length, but
14026     # we can't tell.
14027     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14028     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14029                = "XX$teststring") >/dev/null 2>&1 &&
14030             new_result=`expr "X$teststring" : ".*" 2>&1` &&
14031             lt_cv_sys_max_cmd_len=$new_result &&
14032             test $i != 17 # 1/2 MB should be enough
14033     do
14034       i=`expr $i + 1`
14035       teststring=$teststring$teststring
14036     done
14037     teststring=
14038     # Add a significant safety factor because C++ compilers can tack on massive
14039     # amounts of additional arguments before passing them to the linker.
14040     # It appears as though 1/2 is a usable value.
14041     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14042     ;;
14043   esac
14044
14045 fi
14046
14047 if test -n $lt_cv_sys_max_cmd_len ; then
14048   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14049 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14050 else
14051   { echo "$as_me:$LINENO: result: none" >&5
14052 echo "${ECHO_T}none" >&6; }
14053 fi
14054
14055
14056
14057
14058 # Check for command to grab the raw symbol name followed by C symbol from nm.
14059 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14060 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14061 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064
14065 # These are sane defaults that work on at least a few old systems.
14066 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14067
14068 # Character class describing NM global symbol codes.
14069 symcode='[BCDEGRST]'
14070
14071 # Regexp to match symbols that can be accessed directly from C.
14072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14073
14074 # Transform an extracted symbol line into a proper C declaration
14075 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14076
14077 # Transform an extracted symbol line into symbol name and symbol address
14078 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'"
14079
14080 # Define system-specific variables.
14081 case $host_os in
14082 aix*)
14083   symcode='[BCDT]'
14084   ;;
14085 cygwin* | mingw* | pw32*)
14086   symcode='[ABCDGISTW]'
14087   ;;
14088 hpux*) # Its linker distinguishes data from code symbols
14089   if test "$host_cpu" = ia64; then
14090     symcode='[ABCDEGRST]'
14091   fi
14092   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14093   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'"
14094   ;;
14095 linux*)
14096   if test "$host_cpu" = ia64; then
14097     symcode='[ABCDGIRSTW]'
14098     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14099     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'"
14100   fi
14101   ;;
14102 irix* | nonstopux*)
14103   symcode='[BCDEGRST]'
14104   ;;
14105 osf*)
14106   symcode='[BCDEGQRST]'
14107   ;;
14108 solaris*)
14109   symcode='[BDRT]'
14110   ;;
14111 sco3.2v5*)
14112   symcode='[DT]'
14113   ;;
14114 sysv4.2uw2*)
14115   symcode='[DT]'
14116   ;;
14117 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14118   symcode='[ABDT]'
14119   ;;
14120 sysv4)
14121   symcode='[DFNSTU]'
14122   ;;
14123 esac
14124
14125 # Handle CRLF in mingw tool chain
14126 opt_cr=
14127 case $build_os in
14128 mingw*)
14129   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14130   ;;
14131 esac
14132
14133 # If we're using GNU nm, then use its standard symbol codes.
14134 case `$NM -V 2>&1` in
14135 *GNU* | *'with BFD'*)
14136   symcode='[ABCDGIRSTW]' ;;
14137 esac
14138
14139 # Try without a prefix undercore, then with it.
14140 for ac_symprfx in "" "_"; do
14141
14142   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14143   symxfrm="\\1 $ac_symprfx\\2 \\2"
14144
14145   # Write the raw and C identifiers.
14146   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14147
14148   # Check to see that the pipe works correctly.
14149   pipe_works=no
14150
14151   rm -f conftest*
14152   cat > conftest.$ac_ext <<EOF
14153 #ifdef __cplusplus
14154 extern "C" {
14155 #endif
14156 char nm_test_var;
14157 void nm_test_func(){}
14158 #ifdef __cplusplus
14159 }
14160 #endif
14161 int main(){nm_test_var='a';nm_test_func();return(0);}
14162 EOF
14163
14164   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165   (eval $ac_compile) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; then
14169     # Now try to grab the symbols.
14170     nlist=conftest.nm
14171     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14172   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } && test -s "$nlist"; then
14176       # Try sorting and uniquifying the output.
14177       if sort "$nlist" | uniq > "$nlist"T; then
14178         mv -f "$nlist"T "$nlist"
14179       else
14180         rm -f "$nlist"T
14181       fi
14182
14183       # Make sure that we snagged all the symbols we need.
14184       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14185         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14186           cat <<EOF > conftest.$ac_ext
14187 #ifdef __cplusplus
14188 extern "C" {
14189 #endif
14190
14191 EOF
14192           # Now generate the symbol file.
14193           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14194
14195           cat <<EOF >> conftest.$ac_ext
14196 #if defined (__STDC__) && __STDC__
14197 # define lt_ptr_t void *
14198 #else
14199 # define lt_ptr_t char *
14200 # define const
14201 #endif
14202
14203 /* The mapping between symbol names and symbols. */
14204 const struct {
14205   const char *name;
14206   lt_ptr_t address;
14207 }
14208 lt_preloaded_symbols[] =
14209 {
14210 EOF
14211           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14212           cat <<\EOF >> conftest.$ac_ext
14213   {0, (lt_ptr_t) 0}
14214 };
14215
14216 #ifdef __cplusplus
14217 }
14218 #endif
14219 EOF
14220           # Now try linking the two files.
14221           mv conftest.$ac_objext conftstm.$ac_objext
14222           lt_save_LIBS="$LIBS"
14223           lt_save_CFLAGS="$CFLAGS"
14224           LIBS="conftstm.$ac_objext"
14225           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14226           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227   (eval $ac_link) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14231             pipe_works=yes
14232           fi
14233           LIBS="$lt_save_LIBS"
14234           CFLAGS="$lt_save_CFLAGS"
14235         else
14236           echo "cannot find nm_test_func in $nlist" >&5
14237         fi
14238       else
14239         echo "cannot find nm_test_var in $nlist" >&5
14240       fi
14241     else
14242       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14243     fi
14244   else
14245     echo "$progname: failed program was:" >&5
14246     cat conftest.$ac_ext >&5
14247   fi
14248   rm -f conftest* conftst*
14249
14250   # Do not use the global_symbol_pipe unless it works.
14251   if test "$pipe_works" = yes; then
14252     break
14253   else
14254     lt_cv_sys_global_symbol_pipe=
14255   fi
14256 done
14257
14258 fi
14259
14260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14261   lt_cv_sys_global_symbol_to_cdecl=
14262 fi
14263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14264   { echo "$as_me:$LINENO: result: failed" >&5
14265 echo "${ECHO_T}failed" >&6; }
14266 else
14267   { echo "$as_me:$LINENO: result: ok" >&5
14268 echo "${ECHO_T}ok" >&6; }
14269 fi
14270
14271 { echo "$as_me:$LINENO: checking for objdir" >&5
14272 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14273 if test "${lt_cv_objdir+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   rm -f .libs 2>/dev/null
14277 mkdir .libs 2>/dev/null
14278 if test -d .libs; then
14279   lt_cv_objdir=.libs
14280 else
14281   # MS-DOS does not allow filenames that begin with a dot.
14282   lt_cv_objdir=_libs
14283 fi
14284 rmdir .libs 2>/dev/null
14285 fi
14286 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14287 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14288 objdir=$lt_cv_objdir
14289
14290
14291
14292
14293
14294 case $host_os in
14295 aix3*)
14296   # AIX sometimes has problems with the GCC collect2 program.  For some
14297   # reason, if we set the COLLECT_NAMES environment variable, the problems
14298   # vanish in a puff of smoke.
14299   if test "X${COLLECT_NAMES+set}" != Xset; then
14300     COLLECT_NAMES=
14301     export COLLECT_NAMES
14302   fi
14303   ;;
14304 esac
14305
14306 # Sed substitution that helps us do robust quoting.  It backslashifies
14307 # metacharacters that are still active within double-quoted strings.
14308 Xsed='sed -e 1s/^X//'
14309 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14310
14311 # Same as above, but do not quote variable references.
14312 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14313
14314 # Sed substitution to delay expansion of an escaped shell variable in a
14315 # double_quote_subst'ed string.
14316 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14317
14318 # Sed substitution to avoid accidental globbing in evaled expressions
14319 no_glob_subst='s/\*/\\\*/g'
14320
14321 # Constants:
14322 rm="rm -f"
14323
14324 # Global variables:
14325 default_ofile=mklib
14326 can_build_shared=yes
14327
14328 # All known linkers require a `.a' archive for static linking (except MSVC,
14329 # which needs '.lib').
14330 libext=a
14331 ltmain="$ac_aux_dir/ltmain.sh"
14332 ofile="$default_ofile"
14333 with_gnu_ld="$lt_cv_prog_gnu_ld"
14334
14335 if test -n "$ac_tool_prefix"; then
14336   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14337 set dummy ${ac_tool_prefix}ar; ac_word=$2
14338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14340 if test "${ac_cv_prog_AR+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   if test -n "$AR"; then
14344   ac_cv_prog_AR="$AR" # Let the user override the test.
14345 else
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $PATH
14348 do
14349   IFS=$as_save_IFS
14350   test -z "$as_dir" && as_dir=.
14351   for ac_exec_ext in '' $ac_executable_extensions; do
14352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14353     ac_cv_prog_AR="${ac_tool_prefix}ar"
14354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14355     break 2
14356   fi
14357 done
14358 done
14359 IFS=$as_save_IFS
14360
14361 fi
14362 fi
14363 AR=$ac_cv_prog_AR
14364 if test -n "$AR"; then
14365   { echo "$as_me:$LINENO: result: $AR" >&5
14366 echo "${ECHO_T}$AR" >&6; }
14367 else
14368   { echo "$as_me:$LINENO: result: no" >&5
14369 echo "${ECHO_T}no" >&6; }
14370 fi
14371
14372
14373 fi
14374 if test -z "$ac_cv_prog_AR"; then
14375   ac_ct_AR=$AR
14376   # Extract the first word of "ar", so it can be a program name with args.
14377 set dummy ar; ac_word=$2
14378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   if test -n "$ac_ct_AR"; then
14384   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14385 else
14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 for as_dir in $PATH
14388 do
14389   IFS=$as_save_IFS
14390   test -z "$as_dir" && as_dir=.
14391   for ac_exec_ext in '' $ac_executable_extensions; do
14392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14393     ac_cv_prog_ac_ct_AR="ar"
14394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14395     break 2
14396   fi
14397 done
14398 done
14399 IFS=$as_save_IFS
14400
14401 fi
14402 fi
14403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14404 if test -n "$ac_ct_AR"; then
14405   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14406 echo "${ECHO_T}$ac_ct_AR" >&6; }
14407 else
14408   { echo "$as_me:$LINENO: result: no" >&5
14409 echo "${ECHO_T}no" >&6; }
14410 fi
14411
14412   if test "x$ac_ct_AR" = x; then
14413     AR="false"
14414   else
14415     case $cross_compiling:$ac_tool_warned in
14416 yes:)
14417 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14418 whose name does not start with the host triplet.  If you think this
14419 configuration is useful to you, please write to autoconf@gnu.org." >&5
14420 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14421 whose name does not start with the host triplet.  If you think this
14422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14423 ac_tool_warned=yes ;;
14424 esac
14425     AR=$ac_ct_AR
14426   fi
14427 else
14428   AR="$ac_cv_prog_AR"
14429 fi
14430
14431 if test -n "$ac_tool_prefix"; then
14432   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14436 if test "${ac_cv_prog_RANLIB+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   if test -n "$RANLIB"; then
14440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14441 else
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14444 do
14445   IFS=$as_save_IFS
14446   test -z "$as_dir" && as_dir=.
14447   for ac_exec_ext in '' $ac_executable_extensions; do
14448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14449     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14451     break 2
14452   fi
14453 done
14454 done
14455 IFS=$as_save_IFS
14456
14457 fi
14458 fi
14459 RANLIB=$ac_cv_prog_RANLIB
14460 if test -n "$RANLIB"; then
14461   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14462 echo "${ECHO_T}$RANLIB" >&6; }
14463 else
14464   { echo "$as_me:$LINENO: result: no" >&5
14465 echo "${ECHO_T}no" >&6; }
14466 fi
14467
14468
14469 fi
14470 if test -z "$ac_cv_prog_RANLIB"; then
14471   ac_ct_RANLIB=$RANLIB
14472   # Extract the first word of "ranlib", so it can be a program name with args.
14473 set dummy ranlib; ac_word=$2
14474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   if test -n "$ac_ct_RANLIB"; then
14480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14481 else
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14484 do
14485   IFS=$as_save_IFS
14486   test -z "$as_dir" && as_dir=.
14487   for ac_exec_ext in '' $ac_executable_extensions; do
14488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14489     ac_cv_prog_ac_ct_RANLIB="ranlib"
14490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14491     break 2
14492   fi
14493 done
14494 done
14495 IFS=$as_save_IFS
14496
14497 fi
14498 fi
14499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14500 if test -n "$ac_ct_RANLIB"; then
14501   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14502 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14503 else
14504   { echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6; }
14506 fi
14507
14508   if test "x$ac_ct_RANLIB" = x; then
14509     RANLIB=":"
14510   else
14511     case $cross_compiling:$ac_tool_warned in
14512 yes:)
14513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14514 whose name does not start with the host triplet.  If you think this
14515 configuration is useful to you, please write to autoconf@gnu.org." >&5
14516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14517 whose name does not start with the host triplet.  If you think this
14518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14519 ac_tool_warned=yes ;;
14520 esac
14521     RANLIB=$ac_ct_RANLIB
14522   fi
14523 else
14524   RANLIB="$ac_cv_prog_RANLIB"
14525 fi
14526
14527 if test -n "$ac_tool_prefix"; then
14528   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14529 set dummy ${ac_tool_prefix}strip; ac_word=$2
14530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14532 if test "${ac_cv_prog_STRIP+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   if test -n "$STRIP"; then
14536   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541   IFS=$as_save_IFS
14542   test -z "$as_dir" && as_dir=.
14543   for ac_exec_ext in '' $ac_executable_extensions; do
14544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14545     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14547     break 2
14548   fi
14549 done
14550 done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 STRIP=$ac_cv_prog_STRIP
14556 if test -n "$STRIP"; then
14557   { echo "$as_me:$LINENO: result: $STRIP" >&5
14558 echo "${ECHO_T}$STRIP" >&6; }
14559 else
14560   { echo "$as_me:$LINENO: result: no" >&5
14561 echo "${ECHO_T}no" >&6; }
14562 fi
14563
14564
14565 fi
14566 if test -z "$ac_cv_prog_STRIP"; then
14567   ac_ct_STRIP=$STRIP
14568   # Extract the first word of "strip", so it can be a program name with args.
14569 set dummy strip; ac_word=$2
14570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14572 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   if test -n "$ac_ct_STRIP"; then
14576   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14577 else
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14580 do
14581   IFS=$as_save_IFS
14582   test -z "$as_dir" && as_dir=.
14583   for ac_exec_ext in '' $ac_executable_extensions; do
14584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14585     ac_cv_prog_ac_ct_STRIP="strip"
14586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14587     break 2
14588   fi
14589 done
14590 done
14591 IFS=$as_save_IFS
14592
14593 fi
14594 fi
14595 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14596 if test -n "$ac_ct_STRIP"; then
14597   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14598 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14599 else
14600   { echo "$as_me:$LINENO: result: no" >&5
14601 echo "${ECHO_T}no" >&6; }
14602 fi
14603
14604   if test "x$ac_ct_STRIP" = x; then
14605     STRIP=":"
14606   else
14607     case $cross_compiling:$ac_tool_warned in
14608 yes:)
14609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14610 whose name does not start with the host triplet.  If you think this
14611 configuration is useful to you, please write to autoconf@gnu.org." >&5
14612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14613 whose name does not start with the host triplet.  If you think this
14614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14615 ac_tool_warned=yes ;;
14616 esac
14617     STRIP=$ac_ct_STRIP
14618   fi
14619 else
14620   STRIP="$ac_cv_prog_STRIP"
14621 fi
14622
14623
14624 old_CC="$CC"
14625 old_CFLAGS="$CFLAGS"
14626
14627 # Set sane defaults for various variables
14628 test -z "$AR" && AR=ar
14629 test -z "$AR_FLAGS" && AR_FLAGS=cru
14630 test -z "$AS" && AS=as
14631 test -z "$CC" && CC=cc
14632 test -z "$LTCC" && LTCC=$CC
14633 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14634 test -z "$DLLTOOL" && DLLTOOL=dlltool
14635 test -z "$LD" && LD=ld
14636 test -z "$LN_S" && LN_S="ln -s"
14637 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14638 test -z "$NM" && NM=nm
14639 test -z "$SED" && SED=sed
14640 test -z "$OBJDUMP" && OBJDUMP=objdump
14641 test -z "$RANLIB" && RANLIB=:
14642 test -z "$STRIP" && STRIP=:
14643 test -z "$ac_objext" && ac_objext=o
14644
14645 # Determine commands to create old-style static archives.
14646 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14647 old_postinstall_cmds='chmod 644 $oldlib'
14648 old_postuninstall_cmds=
14649
14650 if test -n "$RANLIB"; then
14651   case $host_os in
14652   openbsd*)
14653     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14654     ;;
14655   *)
14656     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14657     ;;
14658   esac
14659   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14660 fi
14661
14662 for cc_temp in $compiler""; do
14663   case $cc_temp in
14664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14666     \-*) ;;
14667     *) break;;
14668   esac
14669 done
14670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14671
14672
14673 # Only perform the check for file, if the check method requires it
14674 case $deplibs_check_method in
14675 file_magic*)
14676   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14677     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14678 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   case $MAGIC_CMD in
14683 [\\/*] |  ?:[\\/]*)
14684   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14685   ;;
14686 *)
14687   lt_save_MAGIC_CMD="$MAGIC_CMD"
14688   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14689   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14690   for ac_dir in $ac_dummy; do
14691     IFS="$lt_save_ifs"
14692     test -z "$ac_dir" && ac_dir=.
14693     if test -f $ac_dir/${ac_tool_prefix}file; then
14694       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14695       if test -n "$file_magic_test_file"; then
14696         case $deplibs_check_method in
14697         "file_magic "*)
14698           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14699           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14700           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14701             $EGREP "$file_magic_regex" > /dev/null; then
14702             :
14703           else
14704             cat <<EOF 1>&2
14705
14706 *** Warning: the command libtool uses to detect shared libraries,
14707 *** $file_magic_cmd, produces output that libtool cannot recognize.
14708 *** The result is that libtool may fail to recognize shared libraries
14709 *** as such.  This will affect the creation of libtool libraries that
14710 *** depend on shared libraries, but programs linked with such libtool
14711 *** libraries will work regardless of this problem.  Nevertheless, you
14712 *** may want to report the problem to your system manager and/or to
14713 *** bug-libtool@gnu.org
14714
14715 EOF
14716           fi ;;
14717         esac
14718       fi
14719       break
14720     fi
14721   done
14722   IFS="$lt_save_ifs"
14723   MAGIC_CMD="$lt_save_MAGIC_CMD"
14724   ;;
14725 esac
14726 fi
14727
14728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14729 if test -n "$MAGIC_CMD"; then
14730   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14731 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14732 else
14733   { echo "$as_me:$LINENO: result: no" >&5
14734 echo "${ECHO_T}no" >&6; }
14735 fi
14736
14737 if test -z "$lt_cv_path_MAGIC_CMD"; then
14738   if test -n "$ac_tool_prefix"; then
14739     { echo "$as_me:$LINENO: checking for file" >&5
14740 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744   case $MAGIC_CMD in
14745 [\\/*] |  ?:[\\/]*)
14746   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14747   ;;
14748 *)
14749   lt_save_MAGIC_CMD="$MAGIC_CMD"
14750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14751   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14752   for ac_dir in $ac_dummy; do
14753     IFS="$lt_save_ifs"
14754     test -z "$ac_dir" && ac_dir=.
14755     if test -f $ac_dir/file; then
14756       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14757       if test -n "$file_magic_test_file"; then
14758         case $deplibs_check_method in
14759         "file_magic "*)
14760           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14761           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14762           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14763             $EGREP "$file_magic_regex" > /dev/null; then
14764             :
14765           else
14766             cat <<EOF 1>&2
14767
14768 *** Warning: the command libtool uses to detect shared libraries,
14769 *** $file_magic_cmd, produces output that libtool cannot recognize.
14770 *** The result is that libtool may fail to recognize shared libraries
14771 *** as such.  This will affect the creation of libtool libraries that
14772 *** depend on shared libraries, but programs linked with such libtool
14773 *** libraries will work regardless of this problem.  Nevertheless, you
14774 *** may want to report the problem to your system manager and/or to
14775 *** bug-libtool@gnu.org
14776
14777 EOF
14778           fi ;;
14779         esac
14780       fi
14781       break
14782     fi
14783   done
14784   IFS="$lt_save_ifs"
14785   MAGIC_CMD="$lt_save_MAGIC_CMD"
14786   ;;
14787 esac
14788 fi
14789
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if test -n "$MAGIC_CMD"; then
14792   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14793 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14794 else
14795   { echo "$as_me:$LINENO: result: no" >&5
14796 echo "${ECHO_T}no" >&6; }
14797 fi
14798
14799   else
14800     MAGIC_CMD=:
14801   fi
14802 fi
14803
14804   fi
14805   ;;
14806 esac
14807
14808 enable_dlopen=yes
14809 enable_win32_dll=no
14810
14811 # Check whether --enable-libtool-lock was given.
14812 if test "${enable_libtool_lock+set}" = set; then
14813   enableval=$enable_libtool_lock;
14814 fi
14815
14816 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14817
14818
14819 # Check whether --with-pic was given.
14820 if test "${with_pic+set}" = set; then
14821   withval=$with_pic; pic_mode="$withval"
14822 else
14823   pic_mode=default
14824 fi
14825
14826 test -z "$pic_mode" && pic_mode=default
14827
14828 # Use C for the default configuration in the libtool script
14829 tagname=
14830 lt_save_CC="$CC"
14831 ac_ext=c
14832 ac_cpp='$CPP $CPPFLAGS'
14833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836
14837
14838 # Source file extension for C test sources.
14839 ac_ext=c
14840
14841 # Object file extension for compiled C test sources.
14842 objext=o
14843 objext=$objext
14844
14845 # Code to be used in simple compile tests
14846 lt_simple_compile_test_code="int some_variable = 0;\n"
14847
14848 # Code to be used in simple link tests
14849 lt_simple_link_test_code='int main(){return(0);}\n'
14850
14851
14852 # If no C compiler was specified, use CC.
14853 LTCC=${LTCC-"$CC"}
14854
14855 # If no C compiler flags were specified, use CFLAGS.
14856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14857
14858 # Allow CC to be a program name with arguments.
14859 compiler=$CC
14860
14861
14862 # save warnings/boilerplate of simple test code
14863 ac_outfile=conftest.$ac_objext
14864 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14866 _lt_compiler_boilerplate=`cat conftest.err`
14867 $rm conftest*
14868
14869 ac_outfile=conftest.$ac_objext
14870 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14872 _lt_linker_boilerplate=`cat conftest.err`
14873 $rm conftest*
14874
14875
14876
14877 lt_prog_compiler_no_builtin_flag=
14878
14879 if test "$GCC" = yes; then
14880   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14881
14882
14883 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888   lt_cv_prog_compiler_rtti_exceptions=no
14889   ac_outfile=conftest.$ac_objext
14890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14891    lt_compiler_flag="-fno-rtti -fno-exceptions"
14892    # Insert the option either (1) after the last *FLAGS variable, or
14893    # (2) before a word containing "conftest.", or (3) at the end.
14894    # Note that $ac_compile itself does not contain backslashes and begins
14895    # with a dollar sign (not a hyphen), so the echo should work correctly.
14896    # The option is referenced via a variable to avoid confusing sed.
14897    lt_compile=`echo "$ac_compile" | $SED \
14898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900    -e 's:$: $lt_compiler_flag:'`
14901    (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902    (eval "$lt_compile" 2>conftest.err)
14903    ac_status=$?
14904    cat conftest.err >&5
14905    echo "$as_me:14905: \$? = $ac_status" >&5
14906    if (exit $ac_status) && test -s "$ac_outfile"; then
14907      # The compiler can only warn and ignore the option if not recognized
14908      # So say no if there are warnings other than the usual output.
14909      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14910      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14912        lt_cv_prog_compiler_rtti_exceptions=yes
14913      fi
14914    fi
14915    $rm conftest*
14916
14917 fi
14918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14919 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14920
14921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14922     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14923 else
14924     :
14925 fi
14926
14927 fi
14928
14929 lt_prog_compiler_wl=
14930 lt_prog_compiler_pic=
14931 lt_prog_compiler_static=
14932
14933 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14934 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14935
14936   if test "$GCC" = yes; then
14937     lt_prog_compiler_wl='-Wl,'
14938     lt_prog_compiler_static='-static'
14939
14940     case $host_os in
14941       aix*)
14942       # All AIX code is PIC.
14943       if test "$host_cpu" = ia64; then
14944         # AIX 5 now supports IA64 processor
14945         lt_prog_compiler_static='-Bstatic'
14946       fi
14947       ;;
14948
14949     amigaos*)
14950       # FIXME: we need at least 68020 code to build shared libraries, but
14951       # adding the `-m68020' flag to GCC prevents building anything better,
14952       # like `-m68040'.
14953       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14954       ;;
14955
14956     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14957       # PIC is the default for these OSes.
14958       ;;
14959
14960     mingw* | pw32* | os2*)
14961       # This hack is so that the source file can tell whether it is being
14962       # built for inclusion in a dll (and should export symbols for example).
14963       lt_prog_compiler_pic='-DDLL_EXPORT'
14964       ;;
14965
14966     darwin* | rhapsody*)
14967       # PIC is the default on this platform
14968       # Common symbols not allowed in MH_DYLIB files
14969       lt_prog_compiler_pic='-fno-common'
14970       ;;
14971
14972     interix3*)
14973       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14974       # Instead, we relocate shared libraries at runtime.
14975       ;;
14976
14977     msdosdjgpp*)
14978       # Just because we use GCC doesn't mean we suddenly get shared libraries
14979       # on systems that don't support them.
14980       lt_prog_compiler_can_build_shared=no
14981       enable_shared=no
14982       ;;
14983
14984     sysv4*MP*)
14985       if test -d /usr/nec; then
14986         lt_prog_compiler_pic=-Kconform_pic
14987       fi
14988       ;;
14989
14990     hpux*)
14991       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992       # not for PA HP-UX.
14993       case $host_cpu in
14994       hppa*64*|ia64*)
14995         # +Z the default
14996         ;;
14997       *)
14998         lt_prog_compiler_pic='-fPIC'
14999         ;;
15000       esac
15001       ;;
15002
15003     *)
15004       lt_prog_compiler_pic='-fPIC'
15005       ;;
15006     esac
15007   else
15008     # PORTME Check for flag to pass linker flags through the system compiler.
15009     case $host_os in
15010     aix*)
15011       lt_prog_compiler_wl='-Wl,'
15012       if test "$host_cpu" = ia64; then
15013         # AIX 5 now supports IA64 processor
15014         lt_prog_compiler_static='-Bstatic'
15015       else
15016         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15017       fi
15018       ;;
15019       darwin*)
15020         # PIC is the default on this platform
15021         # Common symbols not allowed in MH_DYLIB files
15022        case $cc_basename in
15023          xlc*)
15024          lt_prog_compiler_pic='-qnocommon'
15025          lt_prog_compiler_wl='-Wl,'
15026          ;;
15027        esac
15028        ;;
15029
15030     mingw* | pw32* | os2*)
15031       # This hack is so that the source file can tell whether it is being
15032       # built for inclusion in a dll (and should export symbols for example).
15033       lt_prog_compiler_pic='-DDLL_EXPORT'
15034       ;;
15035
15036     hpux9* | hpux10* | hpux11*)
15037       lt_prog_compiler_wl='-Wl,'
15038       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039       # not for PA HP-UX.
15040       case $host_cpu in
15041       hppa*64*|ia64*)
15042         # +Z the default
15043         ;;
15044       *)
15045         lt_prog_compiler_pic='+Z'
15046         ;;
15047       esac
15048       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15049       lt_prog_compiler_static='${wl}-a ${wl}archive'
15050       ;;
15051
15052     irix5* | irix6* | nonstopux*)
15053       lt_prog_compiler_wl='-Wl,'
15054       # PIC (with -KPIC) is the default.
15055       lt_prog_compiler_static='-non_shared'
15056       ;;
15057
15058     newsos6)
15059       lt_prog_compiler_pic='-KPIC'
15060       lt_prog_compiler_static='-Bstatic'
15061       ;;
15062
15063     linux*)
15064       case $cc_basename in
15065       icc* | ecc*)
15066         lt_prog_compiler_wl='-Wl,'
15067         lt_prog_compiler_pic='-KPIC'
15068         lt_prog_compiler_static='-static'
15069         ;;
15070       pgcc* | pgf77* | pgf90* | pgf95*)
15071         # Portland Group compilers (*not* the Pentium gcc compiler,
15072         # which looks to be a dead project)
15073         lt_prog_compiler_wl='-Wl,'
15074         lt_prog_compiler_pic='-fpic'
15075         lt_prog_compiler_static='-Bstatic'
15076         ;;
15077       ccc*)
15078         lt_prog_compiler_wl='-Wl,'
15079         # All Alpha code is PIC.
15080         lt_prog_compiler_static='-non_shared'
15081         ;;
15082       esac
15083       ;;
15084
15085     osf3* | osf4* | osf5*)
15086       lt_prog_compiler_wl='-Wl,'
15087       # All OSF/1 code is PIC.
15088       lt_prog_compiler_static='-non_shared'
15089       ;;
15090
15091     solaris*)
15092       lt_prog_compiler_pic='-KPIC'
15093       lt_prog_compiler_static='-Bstatic'
15094       case $cc_basename in
15095       f77* | f90* | f95*)
15096         lt_prog_compiler_wl='-Qoption ld ';;
15097       *)
15098         lt_prog_compiler_wl='-Wl,';;
15099       esac
15100       ;;
15101
15102     sunos4*)
15103       lt_prog_compiler_wl='-Qoption ld '
15104       lt_prog_compiler_pic='-PIC'
15105       lt_prog_compiler_static='-Bstatic'
15106       ;;
15107
15108     sysv4 | sysv4.2uw2* | sysv4.3*)
15109       lt_prog_compiler_wl='-Wl,'
15110       lt_prog_compiler_pic='-KPIC'
15111       lt_prog_compiler_static='-Bstatic'
15112       ;;
15113
15114     sysv4*MP*)
15115       if test -d /usr/nec ;then
15116         lt_prog_compiler_pic='-Kconform_pic'
15117         lt_prog_compiler_static='-Bstatic'
15118       fi
15119       ;;
15120
15121     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15122       lt_prog_compiler_wl='-Wl,'
15123       lt_prog_compiler_pic='-KPIC'
15124       lt_prog_compiler_static='-Bstatic'
15125       ;;
15126
15127     unicos*)
15128       lt_prog_compiler_wl='-Wl,'
15129       lt_prog_compiler_can_build_shared=no
15130       ;;
15131
15132     uts4*)
15133       lt_prog_compiler_pic='-pic'
15134       lt_prog_compiler_static='-Bstatic'
15135       ;;
15136
15137     *)
15138       lt_prog_compiler_can_build_shared=no
15139       ;;
15140     esac
15141   fi
15142
15143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15144 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15145
15146 #
15147 # Check to make sure the PIC flag actually works.
15148 #
15149 if test -n "$lt_prog_compiler_pic"; then
15150
15151 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15152 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15153 if test "${lt_prog_compiler_pic_works+set}" = set; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   lt_prog_compiler_pic_works=no
15157   ac_outfile=conftest.$ac_objext
15158    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15159    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15160    # Insert the option either (1) after the last *FLAGS variable, or
15161    # (2) before a word containing "conftest.", or (3) at the end.
15162    # Note that $ac_compile itself does not contain backslashes and begins
15163    # with a dollar sign (not a hyphen), so the echo should work correctly.
15164    # The option is referenced via a variable to avoid confusing sed.
15165    lt_compile=`echo "$ac_compile" | $SED \
15166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168    -e 's:$: $lt_compiler_flag:'`
15169    (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
15170    (eval "$lt_compile" 2>conftest.err)
15171    ac_status=$?
15172    cat conftest.err >&5
15173    echo "$as_me:15173: \$? = $ac_status" >&5
15174    if (exit $ac_status) && test -s "$ac_outfile"; then
15175      # The compiler can only warn and ignore the option if not recognized
15176      # So say no if there are warnings other than the usual output.
15177      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15180        lt_prog_compiler_pic_works=yes
15181      fi
15182    fi
15183    $rm conftest*
15184
15185 fi
15186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15187 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15188
15189 if test x"$lt_prog_compiler_pic_works" = xyes; then
15190     case $lt_prog_compiler_pic in
15191      "" | " "*) ;;
15192      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15193      esac
15194 else
15195     lt_prog_compiler_pic=
15196      lt_prog_compiler_can_build_shared=no
15197 fi
15198
15199 fi
15200 case $host_os in
15201   # For platforms which do not support PIC, -DPIC is meaningless:
15202   *djgpp*)
15203     lt_prog_compiler_pic=
15204     ;;
15205   *)
15206     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15207     ;;
15208 esac
15209
15210 #
15211 # Check to make sure the static flag actually works.
15212 #
15213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15214 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15215 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15216 if test "${lt_prog_compiler_static_works+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   lt_prog_compiler_static_works=no
15220    save_LDFLAGS="$LDFLAGS"
15221    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15222    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15223    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15224      # The linker can only warn and ignore the option if not recognized
15225      # So say no if there are warnings
15226      if test -s conftest.err; then
15227        # Append any errors to the config.log.
15228        cat conftest.err 1>&5
15229        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15230        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15231        if diff conftest.exp conftest.er2 >/dev/null; then
15232          lt_prog_compiler_static_works=yes
15233        fi
15234      else
15235        lt_prog_compiler_static_works=yes
15236      fi
15237    fi
15238    $rm conftest*
15239    LDFLAGS="$save_LDFLAGS"
15240
15241 fi
15242 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15243 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15244
15245 if test x"$lt_prog_compiler_static_works" = xyes; then
15246     :
15247 else
15248     lt_prog_compiler_static=
15249 fi
15250
15251
15252 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15253 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   lt_cv_prog_compiler_c_o=no
15258    $rm -r conftest 2>/dev/null
15259    mkdir conftest
15260    cd conftest
15261    mkdir out
15262    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15263
15264    lt_compiler_flag="-o out/conftest2.$ac_objext"
15265    # Insert the option either (1) after the last *FLAGS variable, or
15266    # (2) before a word containing "conftest.", or (3) at the end.
15267    # Note that $ac_compile itself does not contain backslashes and begins
15268    # with a dollar sign (not a hyphen), so the echo should work correctly.
15269    lt_compile=`echo "$ac_compile" | $SED \
15270    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272    -e 's:$: $lt_compiler_flag:'`
15273    (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15274    (eval "$lt_compile" 2>out/conftest.err)
15275    ac_status=$?
15276    cat out/conftest.err >&5
15277    echo "$as_me:15277: \$? = $ac_status" >&5
15278    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15279    then
15280      # The compiler can only warn and ignore the option if not recognized
15281      # So say no if there are warnings
15282      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15283      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15285        lt_cv_prog_compiler_c_o=yes
15286      fi
15287    fi
15288    chmod u+w . 2>&5
15289    $rm conftest*
15290    # SGI C++ compiler will create directory out/ii_files/ for
15291    # template instantiation
15292    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15293    $rm out/* && rmdir out
15294    cd ..
15295    rmdir conftest
15296    $rm conftest*
15297
15298 fi
15299 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15300 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15301
15302
15303 hard_links="nottested"
15304 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15305   # do not overwrite the value of need_locks provided by the user
15306   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15307 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15308   hard_links=yes
15309   $rm conftest*
15310   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15311   touch conftest.a
15312   ln conftest.a conftest.b 2>&5 || hard_links=no
15313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15314   { echo "$as_me:$LINENO: result: $hard_links" >&5
15315 echo "${ECHO_T}$hard_links" >&6; }
15316   if test "$hard_links" = no; then
15317     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15318 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15319     need_locks=warn
15320   fi
15321 else
15322   need_locks=no
15323 fi
15324
15325 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15327
15328   runpath_var=
15329   allow_undefined_flag=
15330   enable_shared_with_static_runtimes=no
15331   archive_cmds=
15332   archive_expsym_cmds=
15333   old_archive_From_new_cmds=
15334   old_archive_from_expsyms_cmds=
15335   export_dynamic_flag_spec=
15336   whole_archive_flag_spec=
15337   thread_safe_flag_spec=
15338   hardcode_libdir_flag_spec=
15339   hardcode_libdir_flag_spec_ld=
15340   hardcode_libdir_separator=
15341   hardcode_direct=no
15342   hardcode_minus_L=no
15343   hardcode_shlibpath_var=unsupported
15344   link_all_deplibs=unknown
15345   hardcode_automatic=no
15346   module_cmds=
15347   module_expsym_cmds=
15348   always_export_symbols=no
15349   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15350   # include_expsyms should be a list of space-separated symbols to be *always*
15351   # included in the symbol list
15352   include_expsyms=
15353   # exclude_expsyms can be an extended regexp of symbols to exclude
15354   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15355   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15356   # as well as any symbol that contains `d'.
15357   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15358   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15359   # platforms (ab)use it in PIC code, but their linkers get confused if
15360   # the symbol is explicitly referenced.  Since portable code cannot
15361   # rely on this symbol name, it's probably fine to never include it in
15362   # preloaded symbol tables.
15363   extract_expsyms_cmds=
15364   # Just being paranoid about ensuring that cc_basename is set.
15365   for cc_temp in $compiler""; do
15366   case $cc_temp in
15367     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15369     \-*) ;;
15370     *) break;;
15371   esac
15372 done
15373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15374
15375   case $host_os in
15376   cygwin* | mingw* | pw32*)
15377     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15378     # When not using gcc, we currently assume that we are using
15379     # Microsoft Visual C++.
15380     if test "$GCC" != yes; then
15381       with_gnu_ld=no
15382     fi
15383     ;;
15384   interix*)
15385     # we just hope/assume this is gcc and not c89 (= MSVC++)
15386     with_gnu_ld=yes
15387     ;;
15388   openbsd*)
15389     with_gnu_ld=no
15390     ;;
15391   esac
15392
15393   ld_shlibs=yes
15394   if test "$with_gnu_ld" = yes; then
15395     # If archive_cmds runs LD, not CC, wlarc should be empty
15396     wlarc='${wl}'
15397
15398     # Set some defaults for GNU ld with shared library support. These
15399     # are reset later if shared libraries are not supported. Putting them
15400     # here allows them to be overridden if necessary.
15401     runpath_var=LD_RUN_PATH
15402     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15403     export_dynamic_flag_spec='${wl}--export-dynamic'
15404     # ancient GNU ld didn't support --whole-archive et. al.
15405     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15406         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15407       else
15408         whole_archive_flag_spec=
15409     fi
15410     supports_anon_versioning=no
15411     case `$LD -v 2>/dev/null` in
15412       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15413       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15414       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15415       *\ 2.11.*) ;; # other 2.11 versions
15416       *) supports_anon_versioning=yes ;;
15417     esac
15418
15419     # See if GNU ld supports shared libraries.
15420     case $host_os in
15421     aix3* | aix4* | aix5*)
15422       # On AIX/PPC, the GNU linker is very broken
15423       if test "$host_cpu" != ia64; then
15424         ld_shlibs=no
15425         cat <<EOF 1>&2
15426
15427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15428 *** to be unable to reliably create shared libraries on AIX.
15429 *** Therefore, libtool is disabling shared libraries support.  If you
15430 *** really care for shared libraries, you may want to modify your PATH
15431 *** so that a non-GNU linker is found, and then restart.
15432
15433 EOF
15434       fi
15435       ;;
15436
15437     amigaos*)
15438       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)'
15439       hardcode_libdir_flag_spec='-L$libdir'
15440       hardcode_minus_L=yes
15441
15442       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15443       # that the semantics of dynamic libraries on AmigaOS, at least up
15444       # to version 4, is to share data among multiple programs linked
15445       # with the same dynamic library.  Since this doesn't match the
15446       # behavior of shared libraries on other platforms, we can't use
15447       # them.
15448       ld_shlibs=no
15449       ;;
15450
15451     beos*)
15452       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15453         allow_undefined_flag=unsupported
15454         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15455         # support --undefined.  This deserves some investigation.  FIXME
15456         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457       else
15458         ld_shlibs=no
15459       fi
15460       ;;
15461
15462     cygwin* | mingw* | pw32*)
15463       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15464       # as there is no search path for DLLs.
15465       hardcode_libdir_flag_spec='-L$libdir'
15466       allow_undefined_flag=unsupported
15467       always_export_symbols=no
15468       enable_shared_with_static_runtimes=yes
15469       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15470
15471       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15472         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15473         # If the export-symbols file already is a .def file (1st line
15474         # is EXPORTS), use it as is; otherwise, prepend...
15475         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476           cp $export_symbols $output_objdir/$soname.def;
15477         else
15478           echo EXPORTS > $output_objdir/$soname.def;
15479           cat $export_symbols >> $output_objdir/$soname.def;
15480         fi~
15481         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15482       else
15483         ld_shlibs=no
15484       fi
15485       ;;
15486
15487     interix3*)
15488       hardcode_direct=no
15489       hardcode_shlibpath_var=no
15490       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15491       export_dynamic_flag_spec='${wl}-E'
15492       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15493       # Instead, shared libraries are loaded at an image base (0x10000000 by
15494       # default) and relocated if they conflict, which is a slow very memory
15495       # consuming and fragmenting process.  To avoid this, we pick a random,
15496       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15497       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15498       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15499       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'
15500       ;;
15501
15502     linux*)
15503       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504         tmp_addflag=
15505         case $cc_basename,$host_cpu in
15506         pgcc*)                          # Portland Group C compiler
15507           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'
15508           tmp_addflag=' $pic_flag'
15509           ;;
15510         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15511           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'
15512           tmp_addflag=' $pic_flag -Mnomain' ;;
15513         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15514           tmp_addflag=' -i_dynamic' ;;
15515         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15516           tmp_addflag=' -i_dynamic -nofor_main' ;;
15517         ifc* | ifort*)                  # Intel Fortran compiler
15518           tmp_addflag=' -nofor_main' ;;
15519         esac
15520         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15521
15522         if test $supports_anon_versioning = yes; then
15523           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15524   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15525   $echo "local: *; };" >> $output_objdir/$libname.ver~
15526           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15527         fi
15528       else
15529         ld_shlibs=no
15530       fi
15531       ;;
15532
15533     netbsd*)
15534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15535         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15536         wlarc=
15537       else
15538         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540       fi
15541       ;;
15542
15543     solaris*)
15544       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15545         ld_shlibs=no
15546         cat <<EOF 1>&2
15547
15548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15549 *** create shared libraries on Solaris systems.  Therefore, libtool
15550 *** is disabling shared libraries support.  We urge you to upgrade GNU
15551 *** binutils to release 2.9.1 or newer.  Another option is to modify
15552 *** your PATH or compiler configuration so that the native linker is
15553 *** used, and then restart.
15554
15555 EOF
15556       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15557         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15559       else
15560         ld_shlibs=no
15561       fi
15562       ;;
15563
15564     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15565       case `$LD -v 2>&1` in
15566         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15567         ld_shlibs=no
15568         cat <<_LT_EOF 1>&2
15569
15570 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15571 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15572 *** is disabling shared libraries support.  We urge you to upgrade GNU
15573 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15574 *** your PATH or compiler configuration so that the native linker is
15575 *** used, and then restart.
15576
15577 _LT_EOF
15578         ;;
15579         *)
15580           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15582             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15583             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15584           else
15585             ld_shlibs=no
15586           fi
15587         ;;
15588       esac
15589       ;;
15590
15591     sunos4*)
15592       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15593       wlarc=
15594       hardcode_direct=yes
15595       hardcode_shlibpath_var=no
15596       ;;
15597
15598     *)
15599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15600         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15601         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15602       else
15603         ld_shlibs=no
15604       fi
15605       ;;
15606     esac
15607
15608     if test "$ld_shlibs" = no; then
15609       runpath_var=
15610       hardcode_libdir_flag_spec=
15611       export_dynamic_flag_spec=
15612       whole_archive_flag_spec=
15613     fi
15614   else
15615     # PORTME fill in a description of your system's linker (not GNU ld)
15616     case $host_os in
15617     aix3*)
15618       allow_undefined_flag=unsupported
15619       always_export_symbols=yes
15620       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'
15621       # Note: this linker hardcodes the directories in LIBPATH if there
15622       # are no directories specified by -L.
15623       hardcode_minus_L=yes
15624       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15625         # Neither direct hardcoding nor static linking is supported with a
15626         # broken collect2.
15627         hardcode_direct=unsupported
15628       fi
15629       ;;
15630
15631     aix4* | aix5*)
15632       if test "$host_cpu" = ia64; then
15633         # On IA64, the linker does run time linking by default, so we don't
15634         # have to do anything special.
15635         aix_use_runtimelinking=no
15636         exp_sym_flag='-Bexport'
15637         no_entry_flag=""
15638       else
15639         # If we're using GNU nm, then we don't want the "-C" option.
15640         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15641         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15642           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'
15643         else
15644           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'
15645         fi
15646         aix_use_runtimelinking=no
15647
15648         # Test if we are trying to use run time linking or normal
15649         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15650         # need to do runtime linking.
15651         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15652           for ld_flag in $LDFLAGS; do
15653           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15654             aix_use_runtimelinking=yes
15655             break
15656           fi
15657           done
15658           ;;
15659         esac
15660
15661         exp_sym_flag='-bexport'
15662         no_entry_flag='-bnoentry'
15663       fi
15664
15665       # When large executables or shared objects are built, AIX ld can
15666       # have problems creating the table of contents.  If linking a library
15667       # or program results in "error TOC overflow" add -mminimal-toc to
15668       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15669       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15670
15671       archive_cmds=''
15672       hardcode_direct=yes
15673       hardcode_libdir_separator=':'
15674       link_all_deplibs=yes
15675
15676       if test "$GCC" = yes; then
15677         case $host_os in aix4.[012]|aix4.[012].*)
15678         # We only want to do this on AIX 4.2 and lower, the check
15679         # below for broken collect2 doesn't work under 4.3+
15680           collect2name=`${CC} -print-prog-name=collect2`
15681           if test -f "$collect2name" && \
15682            strings "$collect2name" | grep resolve_lib_name >/dev/null
15683           then
15684           # We have reworked collect2
15685           hardcode_direct=yes
15686           else
15687           # We have old collect2
15688           hardcode_direct=unsupported
15689           # It fails to find uninstalled libraries when the uninstalled
15690           # path is not listed in the libpath.  Setting hardcode_minus_L
15691           # to unsupported forces relinking
15692           hardcode_minus_L=yes
15693           hardcode_libdir_flag_spec='-L$libdir'
15694           hardcode_libdir_separator=
15695           fi
15696           ;;
15697         esac
15698         shared_flag='-shared'
15699         if test "$aix_use_runtimelinking" = yes; then
15700           shared_flag="$shared_flag "'${wl}-G'
15701         fi
15702       else
15703         # not using gcc
15704         if test "$host_cpu" = ia64; then
15705         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15706         # chokes on -Wl,-G. The following line is correct:
15707           shared_flag='-G'
15708         else
15709           if test "$aix_use_runtimelinking" = yes; then
15710             shared_flag='${wl}-G'
15711           else
15712             shared_flag='${wl}-bM:SRE'
15713           fi
15714         fi
15715       fi
15716
15717       # It seems that -bexpall does not export symbols beginning with
15718       # underscore (_), so it is better to generate a list of symbols to export.
15719       always_export_symbols=yes
15720       if test "$aix_use_runtimelinking" = yes; then
15721         # Warning - without using the other runtime loading flags (-brtl),
15722         # -berok will link without error, but may produce a broken library.
15723         allow_undefined_flag='-berok'
15724        # Determine the default libpath from the value encoded in an empty executable.
15725        cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731
15732 int
15733 main ()
15734 {
15735
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (ac_try="$ac_link"
15742 case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_link") 2>conftest.er1
15748   ac_status=$?
15749   grep -v '^ *+' conftest.er1 >conftest.err
15750   rm -f conftest.er1
15751   cat conftest.err >&5
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755   { (case "(($ac_try" in
15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757   *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760   (eval "$ac_try") 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; } &&
15764          { ac_try='test -s conftest$ac_exeext'
15765   { (case "(($ac_try" in
15766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767   *) ac_try_echo=$ac_try;;
15768 esac
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770   (eval "$ac_try") 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; }; then
15774
15775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15776 }'`
15777 # Check for a 64-bit object if we didn't find anything.
15778 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; }
15779 }'`; fi
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext \
15788       conftest$ac_exeext conftest.$ac_ext
15789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15790
15791        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15792         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"
15793        else
15794         if test "$host_cpu" = ia64; then
15795           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15796           allow_undefined_flag="-z nodefs"
15797           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"
15798         else
15799          # Determine the default libpath from the value encoded in an empty executable.
15800          cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h.  */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h.  */
15806
15807 int
15808 main ()
15809 {
15810
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_link") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830   { (case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_try") 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; } &&
15839          { ac_try='test -s conftest$ac_exeext'
15840   { (case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845   (eval "$ac_try") 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849
15850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15851 }'`
15852 # Check for a 64-bit object if we didn't find anything.
15853 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; }
15854 }'`; fi
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859
15860 fi
15861
15862 rm -f core conftest.err conftest.$ac_objext \
15863       conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15867           # Warning - without using the other run time loading flags,
15868           # -berok will link without error, but may produce a broken library.
15869           no_undefined_flag=' ${wl}-bernotok'
15870           allow_undefined_flag=' ${wl}-berok'
15871           # Exported symbols can be pulled into shared objects from archives
15872           whole_archive_flag_spec='$convenience'
15873           archive_cmds_need_lc=yes
15874           # This is similar to how AIX traditionally builds its shared libraries.
15875           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'
15876         fi
15877       fi
15878       ;;
15879
15880     amigaos*)
15881       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)'
15882       hardcode_libdir_flag_spec='-L$libdir'
15883       hardcode_minus_L=yes
15884       # see comment about different semantics on the GNU ld section
15885       ld_shlibs=no
15886       ;;
15887
15888     bsdi[45]*)
15889       export_dynamic_flag_spec=-rdynamic
15890       ;;
15891
15892     cygwin* | mingw* | pw32*)
15893       # When not using gcc, we currently assume that we are using
15894       # Microsoft Visual C++.
15895       # hardcode_libdir_flag_spec is actually meaningless, as there is
15896       # no search path for DLLs.
15897       hardcode_libdir_flag_spec=' '
15898       allow_undefined_flag=unsupported
15899       # Tell ltmain to make .lib files, not .a files.
15900       libext=lib
15901       # Tell ltmain to make .dll files, not .so files.
15902       shrext_cmds=".dll"
15903       # FIXME: Setting linknames here is a bad hack.
15904       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15905       # The linker will automatically build a .lib file if we build a DLL.
15906       old_archive_From_new_cmds='true'
15907       # FIXME: Should let the user specify the lib program.
15908       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15909       fix_srcfile_path='`cygpath -w "$srcfile"`'
15910       enable_shared_with_static_runtimes=yes
15911       ;;
15912
15913     darwin* | rhapsody*)
15914       case $host_os in
15915         rhapsody* | darwin1.[012])
15916          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15917          ;;
15918        *) # Darwin 1.3 on
15919          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15920            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15921          else
15922            case ${MACOSX_DEPLOYMENT_TARGET} in
15923              10.[012])
15924                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15925                ;;
15926              10.*)
15927                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15928                ;;
15929            esac
15930          fi
15931          ;;
15932       esac
15933       archive_cmds_need_lc=no
15934       hardcode_direct=no
15935       hardcode_automatic=yes
15936       hardcode_shlibpath_var=unsupported
15937       whole_archive_flag_spec=''
15938       link_all_deplibs=yes
15939     if test "$GCC" = yes ; then
15940         output_verbose_link_cmd='echo'
15941         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15942       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15943       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15944       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}'
15945       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}'
15946     else
15947       case $cc_basename in
15948         xlc*)
15949          output_verbose_link_cmd='echo'
15950          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15951          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15952           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15953          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}'
15954           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}'
15955           ;;
15956        *)
15957          ld_shlibs=no
15958           ;;
15959       esac
15960     fi
15961       ;;
15962
15963     dgux*)
15964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965       hardcode_libdir_flag_spec='-L$libdir'
15966       hardcode_shlibpath_var=no
15967       ;;
15968
15969     freebsd1*)
15970       ld_shlibs=no
15971       ;;
15972
15973     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15974     # support.  Future versions do this automatically, but an explicit c++rt0.o
15975     # does not break anything, and helps significantly (at the cost of a little
15976     # extra space).
15977     freebsd2.2*)
15978       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15979       hardcode_libdir_flag_spec='-R$libdir'
15980       hardcode_direct=yes
15981       hardcode_shlibpath_var=no
15982       ;;
15983
15984     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15985     freebsd2*)
15986       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15987       hardcode_direct=yes
15988       hardcode_minus_L=yes
15989       hardcode_shlibpath_var=no
15990       ;;
15991
15992     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15993     freebsd* | kfreebsd*-gnu | dragonfly*)
15994       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15995       hardcode_libdir_flag_spec='-R$libdir'
15996       hardcode_direct=yes
15997       hardcode_shlibpath_var=no
15998       ;;
15999
16000     hpux9*)
16001       if test "$GCC" = yes; then
16002         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'
16003       else
16004         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'
16005       fi
16006       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16007       hardcode_libdir_separator=:
16008       hardcode_direct=yes
16009
16010       # hardcode_minus_L: Not really in the search PATH,
16011       # but as the default location of the library.
16012       hardcode_minus_L=yes
16013       export_dynamic_flag_spec='${wl}-E'
16014       ;;
16015
16016     hpux10*)
16017       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16018         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16019       else
16020         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16021       fi
16022       if test "$with_gnu_ld" = no; then
16023         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16024         hardcode_libdir_separator=:
16025
16026         hardcode_direct=yes
16027         export_dynamic_flag_spec='${wl}-E'
16028
16029         # hardcode_minus_L: Not really in the search PATH,
16030         # but as the default location of the library.
16031         hardcode_minus_L=yes
16032       fi
16033       ;;
16034
16035     hpux11*)
16036       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16037         case $host_cpu in
16038         hppa*64*)
16039           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040           ;;
16041         ia64*)
16042           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16043           ;;
16044         *)
16045           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16046           ;;
16047         esac
16048       else
16049         case $host_cpu in
16050         hppa*64*)
16051           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16052           ;;
16053         ia64*)
16054           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16055           ;;
16056         *)
16057           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16058           ;;
16059         esac
16060       fi
16061       if test "$with_gnu_ld" = no; then
16062         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16063         hardcode_libdir_separator=:
16064
16065         case $host_cpu in
16066         hppa*64*|ia64*)
16067           hardcode_libdir_flag_spec_ld='+b $libdir'
16068           hardcode_direct=no
16069           hardcode_shlibpath_var=no
16070           ;;
16071         *)
16072           hardcode_direct=yes
16073           export_dynamic_flag_spec='${wl}-E'
16074
16075           # hardcode_minus_L: Not really in the search PATH,
16076           # but as the default location of the library.
16077           hardcode_minus_L=yes
16078           ;;
16079         esac
16080       fi
16081       ;;
16082
16083     irix5* | irix6* | nonstopux*)
16084       if test "$GCC" = yes; then
16085         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'
16086       else
16087         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'
16088         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16089       fi
16090       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16091       hardcode_libdir_separator=:
16092       link_all_deplibs=yes
16093       ;;
16094
16095     netbsd*)
16096       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16097         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16098       else
16099         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16100       fi
16101       hardcode_libdir_flag_spec='-R$libdir'
16102       hardcode_direct=yes
16103       hardcode_shlibpath_var=no
16104       ;;
16105
16106     newsos6)
16107       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108       hardcode_direct=yes
16109       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16110       hardcode_libdir_separator=:
16111       hardcode_shlibpath_var=no
16112       ;;
16113
16114     openbsd*)
16115       hardcode_direct=yes
16116       hardcode_shlibpath_var=no
16117       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16118         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16119         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16120         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16121         export_dynamic_flag_spec='${wl}-E'
16122       else
16123        case $host_os in
16124          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16125            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126            hardcode_libdir_flag_spec='-R$libdir'
16127            ;;
16128          *)
16129            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16130            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16131            ;;
16132        esac
16133       fi
16134       ;;
16135
16136     os2*)
16137       hardcode_libdir_flag_spec='-L$libdir'
16138       hardcode_minus_L=yes
16139       allow_undefined_flag=unsupported
16140       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'
16141       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16142       ;;
16143
16144     osf3*)
16145       if test "$GCC" = yes; then
16146         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16147         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'
16148       else
16149         allow_undefined_flag=' -expect_unresolved \*'
16150         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'
16151       fi
16152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16153       hardcode_libdir_separator=:
16154       ;;
16155
16156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16157       if test "$GCC" = yes; then
16158         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16159         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'
16160         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16161       else
16162         allow_undefined_flag=' -expect_unresolved \*'
16163         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'
16164         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16165         $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'
16166
16167         # Both c and cxx compiler support -rpath directly
16168         hardcode_libdir_flag_spec='-rpath $libdir'
16169       fi
16170       hardcode_libdir_separator=:
16171       ;;
16172
16173     solaris*)
16174       no_undefined_flag=' -z text'
16175       if test "$GCC" = yes; then
16176         wlarc='${wl}'
16177         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16180       else
16181         wlarc=''
16182         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16185       fi
16186       hardcode_libdir_flag_spec='-R$libdir'
16187       hardcode_shlibpath_var=no
16188       case $host_os in
16189       solaris2.[0-5] | solaris2.[0-5].*) ;;
16190       *)
16191         # The compiler driver will combine linker options so we
16192         # cannot just pass the convience library names through
16193         # without $wl, iff we do not link with $LD.
16194         # Luckily, gcc supports the same syntax we need for Sun Studio.
16195         # Supported since Solaris 2.6 (maybe 2.5.1?)
16196         case $wlarc in
16197         '')
16198           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16199         *)
16200           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' ;;
16201         esac ;;
16202       esac
16203       link_all_deplibs=yes
16204       ;;
16205
16206     sunos4*)
16207       if test "x$host_vendor" = xsequent; then
16208         # Use $CC to link under sequent, because it throws in some extra .o
16209         # files that make .init and .fini sections work.
16210         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16211       else
16212         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16213       fi
16214       hardcode_libdir_flag_spec='-L$libdir'
16215       hardcode_direct=yes
16216       hardcode_minus_L=yes
16217       hardcode_shlibpath_var=no
16218       ;;
16219
16220     sysv4)
16221       case $host_vendor in
16222         sni)
16223           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224           hardcode_direct=yes # is this really true???
16225         ;;
16226         siemens)
16227           ## LD is ld it makes a PLAMLIB
16228           ## CC just makes a GrossModule.
16229           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16230           reload_cmds='$CC -r -o $output$reload_objs'
16231           hardcode_direct=no
16232         ;;
16233         motorola)
16234           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16236         ;;
16237       esac
16238       runpath_var='LD_RUN_PATH'
16239       hardcode_shlibpath_var=no
16240       ;;
16241
16242     sysv4.3*)
16243       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244       hardcode_shlibpath_var=no
16245       export_dynamic_flag_spec='-Bexport'
16246       ;;
16247
16248     sysv4*MP*)
16249       if test -d /usr/nec; then
16250         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251         hardcode_shlibpath_var=no
16252         runpath_var=LD_RUN_PATH
16253         hardcode_runpath_var=yes
16254         ld_shlibs=yes
16255       fi
16256       ;;
16257
16258     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16259       no_undefined_flag='${wl}-z,text'
16260       archive_cmds_need_lc=no
16261       hardcode_shlibpath_var=no
16262       runpath_var='LD_RUN_PATH'
16263
16264       if test "$GCC" = yes; then
16265         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16266         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16267       else
16268         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16269         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16270       fi
16271       ;;
16272
16273     sysv5* | sco3.2v5* | sco5v6*)
16274       # Note: We can NOT use -z defs as we might desire, because we do not
16275       # link with -lc, and that would cause any symbols used from libc to
16276       # always be unresolved, which means just about no library would
16277       # ever link correctly.  If we're not using GNU ld we use -z text
16278       # though, which does catch some bad symbols but isn't as heavy-handed
16279       # as -z defs.
16280       no_undefined_flag='${wl}-z,text'
16281       allow_undefined_flag='${wl}-z,nodefs'
16282       archive_cmds_need_lc=no
16283       hardcode_shlibpath_var=no
16284       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16285       hardcode_libdir_separator=':'
16286       link_all_deplibs=yes
16287       export_dynamic_flag_spec='${wl}-Bexport'
16288       runpath_var='LD_RUN_PATH'
16289
16290       if test "$GCC" = yes; then
16291         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16292         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16293       else
16294         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296       fi
16297       ;;
16298
16299     uts4*)
16300       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301       hardcode_libdir_flag_spec='-L$libdir'
16302       hardcode_shlibpath_var=no
16303       ;;
16304
16305     *)
16306       ld_shlibs=no
16307       ;;
16308     esac
16309   fi
16310
16311 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16312 echo "${ECHO_T}$ld_shlibs" >&6; }
16313 test "$ld_shlibs" = no && can_build_shared=no
16314
16315 #
16316 # Do we need to explicitly link libc?
16317 #
16318 case "x$archive_cmds_need_lc" in
16319 x|xyes)
16320   # Assume -lc should be added
16321   archive_cmds_need_lc=yes
16322
16323   if test "$enable_shared" = yes && test "$GCC" = yes; then
16324     case $archive_cmds in
16325     *'~'*)
16326       # FIXME: we may have to deal with multi-command sequences.
16327       ;;
16328     '$CC '*)
16329       # Test whether the compiler implicitly links with -lc since on some
16330       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16331       # to ld, don't add -lc before -lgcc.
16332       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16333 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16334       $rm conftest*
16335       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16336
16337       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338   (eval $ac_compile) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } 2>conftest.err; then
16342         soname=conftest
16343         lib=conftest
16344         libobjs=conftest.$ac_objext
16345         deplibs=
16346         wl=$lt_prog_compiler_wl
16347         pic_flag=$lt_prog_compiler_pic
16348         compiler_flags=-v
16349         linker_flags=-v
16350         verstring=
16351         output_objdir=.
16352         libname=conftest
16353         lt_save_allow_undefined_flag=$allow_undefined_flag
16354         allow_undefined_flag=
16355         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }
16360         then
16361           archive_cmds_need_lc=no
16362         else
16363           archive_cmds_need_lc=yes
16364         fi
16365         allow_undefined_flag=$lt_save_allow_undefined_flag
16366       else
16367         cat conftest.err 1>&5
16368       fi
16369       $rm conftest*
16370       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16371 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16372       ;;
16373     esac
16374   fi
16375   ;;
16376 esac
16377
16378 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16380 library_names_spec=
16381 libname_spec='lib$name'
16382 soname_spec=
16383 shrext_cmds=".so"
16384 postinstall_cmds=
16385 postuninstall_cmds=
16386 finish_cmds=
16387 finish_eval=
16388 shlibpath_var=
16389 shlibpath_overrides_runpath=unknown
16390 version_type=none
16391 dynamic_linker="$host_os ld.so"
16392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16393 if test "$GCC" = yes; then
16394   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16395   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16396     # if the path contains ";" then we assume it to be the separator
16397     # otherwise default to the standard path separator (i.e. ":") - it is
16398     # assumed that no part of a normal pathname contains ";" but that should
16399     # okay in the real world where ";" in dirpaths is itself problematic.
16400     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16401   else
16402     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16403   fi
16404 else
16405   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16406 fi
16407 need_lib_prefix=unknown
16408 hardcode_into_libs=no
16409
16410 # when you set need_version to no, make sure it does not cause -set_version
16411 # flags to be left without arguments
16412 need_version=unknown
16413
16414 case $host_os in
16415 aix3*)
16416   version_type=linux
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16418   shlibpath_var=LIBPATH
16419
16420   # AIX 3 has no versioning support, so we append a major version to the name.
16421   soname_spec='${libname}${release}${shared_ext}$major'
16422   ;;
16423
16424 aix4* | aix5*)
16425   version_type=linux
16426   need_lib_prefix=no
16427   need_version=no
16428   hardcode_into_libs=yes
16429   if test "$host_cpu" = ia64; then
16430     # AIX 5 supports IA64
16431     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16432     shlibpath_var=LD_LIBRARY_PATH
16433   else
16434     # With GCC up to 2.95.x, collect2 would create an import file
16435     # for dependence libraries.  The import file would start with
16436     # the line `#! .'.  This would cause the generated library to
16437     # depend on `.', always an invalid library.  This was fixed in
16438     # development snapshots of GCC prior to 3.0.
16439     case $host_os in
16440       aix4 | aix4.[01] | aix4.[01].*)
16441       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16442            echo ' yes '
16443            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16444         :
16445       else
16446         can_build_shared=no
16447       fi
16448       ;;
16449     esac
16450     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16451     # soname into executable. Probably we can add versioning support to
16452     # collect2, so additional links can be useful in future.
16453     if test "$aix_use_runtimelinking" = yes; then
16454       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16455       # instead of lib<name>.a to let people know that these are not
16456       # typical AIX shared libraries.
16457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458     else
16459       # We preserve .a as extension for shared libraries through AIX4.2
16460       # and later when we are not doing run time linking.
16461       library_names_spec='${libname}${release}.a $libname.a'
16462       soname_spec='${libname}${release}${shared_ext}$major'
16463     fi
16464     shlibpath_var=LIBPATH
16465   fi
16466   ;;
16467
16468 amigaos*)
16469   library_names_spec='$libname.ixlibrary $libname.a'
16470   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16471   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'
16472   ;;
16473
16474 beos*)
16475   library_names_spec='${libname}${shared_ext}'
16476   dynamic_linker="$host_os ld.so"
16477   shlibpath_var=LIBRARY_PATH
16478   ;;
16479
16480 bsdi[45]*)
16481   version_type=linux
16482   need_version=no
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484   soname_spec='${libname}${release}${shared_ext}$major'
16485   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16486   shlibpath_var=LD_LIBRARY_PATH
16487   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16488   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16489   # the default ld.so.conf also contains /usr/contrib/lib and
16490   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16491   # libtool to hard-code these into programs
16492   ;;
16493
16494 cygwin* | mingw* | pw32*)
16495   version_type=windows
16496   shrext_cmds=".dll"
16497   need_version=no
16498   need_lib_prefix=no
16499
16500   case $GCC,$host_os in
16501   yes,cygwin* | yes,mingw* | yes,pw32*)
16502     library_names_spec='$libname.dll.a'
16503     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16504     postinstall_cmds='base_file=`basename \${file}`~
16505       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16506       dldir=$destdir/`dirname \$dlpath`~
16507       test -d \$dldir || mkdir -p \$dldir~
16508       $install_prog $dir/$dlname \$dldir/$dlname~
16509       chmod a+x \$dldir/$dlname'
16510     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16511       dlpath=$dir/\$dldll~
16512        $rm \$dlpath'
16513     shlibpath_overrides_runpath=yes
16514
16515     case $host_os in
16516     cygwin*)
16517       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16518       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16519       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16520       ;;
16521     mingw*)
16522       # MinGW DLLs use traditional 'lib' prefix
16523       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16524       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16525       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16526         # It is most probably a Windows format PATH printed by
16527         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16528         # path with ; separators, and with drive letters. We can handle the
16529         # drive letters (cygwin fileutils understands them), so leave them,
16530         # especially as we might pass files found there to a mingw objdump,
16531         # which wouldn't understand a cygwinified path. Ahh.
16532         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16533       else
16534         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16535       fi
16536       ;;
16537     pw32*)
16538       # pw32 DLLs use 'pw' prefix rather than 'lib'
16539       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540       ;;
16541     esac
16542     ;;
16543
16544   *)
16545     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16546     ;;
16547   esac
16548   dynamic_linker='Win32 ld.exe'
16549   # FIXME: first we should search . and the directory the executable is in
16550   shlibpath_var=PATH
16551   ;;
16552
16553 darwin* | rhapsody*)
16554   dynamic_linker="$host_os dyld"
16555   version_type=darwin
16556   need_lib_prefix=no
16557   need_version=no
16558   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16559   soname_spec='${libname}${release}${major}$shared_ext'
16560   shlibpath_overrides_runpath=yes
16561   shlibpath_var=DYLD_LIBRARY_PATH
16562   shrext_cmds='.dylib'
16563   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16564   if test "$GCC" = yes; then
16565     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"`
16566   else
16567     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16568   fi
16569   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16570   ;;
16571
16572 dgux*)
16573   version_type=linux
16574   need_lib_prefix=no
16575   need_version=no
16576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16577   soname_spec='${libname}${release}${shared_ext}$major'
16578   shlibpath_var=LD_LIBRARY_PATH
16579   ;;
16580
16581 freebsd1*)
16582   dynamic_linker=no
16583   ;;
16584
16585 kfreebsd*-gnu)
16586   version_type=linux
16587   need_lib_prefix=no
16588   need_version=no
16589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16590   soname_spec='${libname}${release}${shared_ext}$major'
16591   shlibpath_var=LD_LIBRARY_PATH
16592   shlibpath_overrides_runpath=no
16593   hardcode_into_libs=yes
16594   dynamic_linker='GNU ld.so'
16595   ;;
16596
16597 freebsd* | dragonfly*)
16598   # DragonFly does not have aout.  When/if they implement a new
16599   # versioning mechanism, adjust this.
16600   if test -x /usr/bin/objformat; then
16601     objformat=`/usr/bin/objformat`
16602   else
16603     case $host_os in
16604     freebsd[123]*) objformat=aout ;;
16605     *) objformat=elf ;;
16606     esac
16607   fi
16608   version_type=freebsd-$objformat
16609   case $version_type in
16610     freebsd-elf*)
16611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16612       need_version=no
16613       need_lib_prefix=no
16614       ;;
16615     freebsd-*)
16616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16617       need_version=yes
16618       ;;
16619   esac
16620   shlibpath_var=LD_LIBRARY_PATH
16621   case $host_os in
16622   freebsd2*)
16623     shlibpath_overrides_runpath=yes
16624     ;;
16625   freebsd3.[01]* | freebsdelf3.[01]*)
16626     shlibpath_overrides_runpath=yes
16627     hardcode_into_libs=yes
16628     ;;
16629   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16630   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16631     shlibpath_overrides_runpath=no
16632     hardcode_into_libs=yes
16633     ;;
16634   freebsd*) # from 4.6 on
16635     shlibpath_overrides_runpath=yes
16636     hardcode_into_libs=yes
16637     ;;
16638   esac
16639   ;;
16640
16641 gnu*)
16642   version_type=linux
16643   need_lib_prefix=no
16644   need_version=no
16645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16646   soname_spec='${libname}${release}${shared_ext}$major'
16647   shlibpath_var=LD_LIBRARY_PATH
16648   hardcode_into_libs=yes
16649   ;;
16650
16651 hpux9* | hpux10* | hpux11*)
16652   # Give a soname corresponding to the major version so that dld.sl refuses to
16653   # link against other versions.
16654   version_type=sunos
16655   need_lib_prefix=no
16656   need_version=no
16657   case $host_cpu in
16658   ia64*)
16659     shrext_cmds='.so'
16660     hardcode_into_libs=yes
16661     dynamic_linker="$host_os dld.so"
16662     shlibpath_var=LD_LIBRARY_PATH
16663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665     soname_spec='${libname}${release}${shared_ext}$major'
16666     if test "X$HPUX_IA64_MODE" = X32; then
16667       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16668     else
16669       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16670     fi
16671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16672     ;;
16673    hppa*64*)
16674      shrext_cmds='.sl'
16675      hardcode_into_libs=yes
16676      dynamic_linker="$host_os dld.sl"
16677      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16678      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680      soname_spec='${libname}${release}${shared_ext}$major'
16681      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16682      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683      ;;
16684    *)
16685     shrext_cmds='.sl'
16686     dynamic_linker="$host_os dld.sl"
16687     shlibpath_var=SHLIB_PATH
16688     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690     soname_spec='${libname}${release}${shared_ext}$major'
16691     ;;
16692   esac
16693   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16694   postinstall_cmds='chmod 555 $lib'
16695   ;;
16696
16697 interix3*)
16698   version_type=linux
16699   need_lib_prefix=no
16700   need_version=no
16701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16702   soname_spec='${libname}${release}${shared_ext}$major'
16703   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   shlibpath_overrides_runpath=no
16706   hardcode_into_libs=yes
16707   ;;
16708
16709 irix5* | irix6* | nonstopux*)
16710   case $host_os in
16711     nonstopux*) version_type=nonstopux ;;
16712     *)
16713         if test "$lt_cv_prog_gnu_ld" = yes; then
16714                 version_type=linux
16715         else
16716                 version_type=irix
16717         fi ;;
16718   esac
16719   need_lib_prefix=no
16720   need_version=no
16721   soname_spec='${libname}${release}${shared_ext}$major'
16722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16723   case $host_os in
16724   irix5* | nonstopux*)
16725     libsuff= shlibsuff=
16726     ;;
16727   *)
16728     case $LD in # libtool.m4 will add one of these switches to LD
16729     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16730       libsuff= shlibsuff= libmagic=32-bit;;
16731     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16732       libsuff=32 shlibsuff=N32 libmagic=N32;;
16733     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16734       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16735     *) libsuff= shlibsuff= libmagic=never-match;;
16736     esac
16737     ;;
16738   esac
16739   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16740   shlibpath_overrides_runpath=no
16741   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16742   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16743   hardcode_into_libs=yes
16744   ;;
16745
16746 # No shared lib support for Linux oldld, aout, or coff.
16747 linux*oldld* | linux*aout* | linux*coff*)
16748   dynamic_linker=no
16749   ;;
16750
16751 # This must be Linux ELF.
16752 linux*)
16753   version_type=linux
16754   need_lib_prefix=no
16755   need_version=no
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16759   shlibpath_var=LD_LIBRARY_PATH
16760   shlibpath_overrides_runpath=no
16761   # This implies no fast_install, which is unacceptable.
16762   # Some rework will be needed to allow for fast_install
16763   # before this can be enabled.
16764   hardcode_into_libs=yes
16765
16766   # Append ld.so.conf contents to the search path
16767   if test -f /etc/ld.so.conf; then
16768     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' ' '`
16769     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16770   fi
16771
16772   # We used to test for /lib/ld.so.1 and disable shared libraries on
16773   # powerpc, because MkLinux only supported shared libraries with the
16774   # GNU dynamic linker.  Since this was broken with cross compilers,
16775   # most powerpc-linux boxes support dynamic linking these days and
16776   # people can always --disable-shared, the test was removed, and we
16777   # assume the GNU/Linux dynamic linker is in use.
16778   dynamic_linker='GNU/Linux ld.so'
16779   ;;
16780
16781 knetbsd*-gnu)
16782   version_type=linux
16783   need_lib_prefix=no
16784   need_version=no
16785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786   soname_spec='${libname}${release}${shared_ext}$major'
16787   shlibpath_var=LD_LIBRARY_PATH
16788   shlibpath_overrides_runpath=no
16789   hardcode_into_libs=yes
16790   dynamic_linker='GNU ld.so'
16791   ;;
16792
16793 netbsd*)
16794   version_type=sunos
16795   need_lib_prefix=no
16796   need_version=no
16797   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16799     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16800     dynamic_linker='NetBSD (a.out) ld.so'
16801   else
16802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16803     soname_spec='${libname}${release}${shared_ext}$major'
16804     dynamic_linker='NetBSD ld.elf_so'
16805   fi
16806   shlibpath_var=LD_LIBRARY_PATH
16807   shlibpath_overrides_runpath=yes
16808   hardcode_into_libs=yes
16809   ;;
16810
16811 newsos6)
16812   version_type=linux
16813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   shlibpath_overrides_runpath=yes
16816   ;;
16817
16818 nto-qnx*)
16819   version_type=linux
16820   need_lib_prefix=no
16821   need_version=no
16822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823   soname_spec='${libname}${release}${shared_ext}$major'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   shlibpath_overrides_runpath=yes
16826   ;;
16827
16828 openbsd*)
16829   version_type=sunos
16830   sys_lib_dlsearch_path_spec="/usr/lib"
16831   need_lib_prefix=no
16832   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16833   case $host_os in
16834     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16835     *)                         need_version=no  ;;
16836   esac
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839   shlibpath_var=LD_LIBRARY_PATH
16840   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16841     case $host_os in
16842       openbsd2.[89] | openbsd2.[89].*)
16843         shlibpath_overrides_runpath=no
16844         ;;
16845       *)
16846         shlibpath_overrides_runpath=yes
16847         ;;
16848       esac
16849   else
16850     shlibpath_overrides_runpath=yes
16851   fi
16852   ;;
16853
16854 os2*)
16855   libname_spec='$name'
16856   shrext_cmds=".dll"
16857   need_lib_prefix=no
16858   library_names_spec='$libname${shared_ext} $libname.a'
16859   dynamic_linker='OS/2 ld.exe'
16860   shlibpath_var=LIBPATH
16861   ;;
16862
16863 osf3* | osf4* | osf5*)
16864   version_type=osf
16865   need_lib_prefix=no
16866   need_version=no
16867   soname_spec='${libname}${release}${shared_ext}$major'
16868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869   shlibpath_var=LD_LIBRARY_PATH
16870   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872   ;;
16873
16874 solaris*)
16875   version_type=linux
16876   need_lib_prefix=no
16877   need_version=no
16878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879   soname_spec='${libname}${release}${shared_ext}$major'
16880   shlibpath_var=LD_LIBRARY_PATH
16881   shlibpath_overrides_runpath=yes
16882   hardcode_into_libs=yes
16883   # ldd complains unless libraries are executable
16884   postinstall_cmds='chmod +x $lib'
16885   ;;
16886
16887 sunos4*)
16888   version_type=sunos
16889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16890   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16891   shlibpath_var=LD_LIBRARY_PATH
16892   shlibpath_overrides_runpath=yes
16893   if test "$with_gnu_ld" = yes; then
16894     need_lib_prefix=no
16895   fi
16896   need_version=yes
16897   ;;
16898
16899 sysv4 | sysv4.3*)
16900   version_type=linux
16901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   shlibpath_var=LD_LIBRARY_PATH
16904   case $host_vendor in
16905     sni)
16906       shlibpath_overrides_runpath=no
16907       need_lib_prefix=no
16908       export_dynamic_flag_spec='${wl}-Blargedynsym'
16909       runpath_var=LD_RUN_PATH
16910       ;;
16911     siemens)
16912       need_lib_prefix=no
16913       ;;
16914     motorola)
16915       need_lib_prefix=no
16916       need_version=no
16917       shlibpath_overrides_runpath=no
16918       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16919       ;;
16920   esac
16921   ;;
16922
16923 sysv4*MP*)
16924   if test -d /usr/nec ;then
16925     version_type=linux
16926     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16927     soname_spec='$libname${shared_ext}.$major'
16928     shlibpath_var=LD_LIBRARY_PATH
16929   fi
16930   ;;
16931
16932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16933   version_type=freebsd-elf
16934   need_lib_prefix=no
16935   need_version=no
16936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16937   soname_spec='${libname}${release}${shared_ext}$major'
16938   shlibpath_var=LD_LIBRARY_PATH
16939   hardcode_into_libs=yes
16940   if test "$with_gnu_ld" = yes; then
16941     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16942     shlibpath_overrides_runpath=no
16943   else
16944     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16945     shlibpath_overrides_runpath=yes
16946     case $host_os in
16947       sco3.2v5*)
16948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16949         ;;
16950     esac
16951   fi
16952   sys_lib_dlsearch_path_spec='/usr/lib'
16953   ;;
16954
16955 uts4*)
16956   version_type=linux
16957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958   soname_spec='${libname}${release}${shared_ext}$major'
16959   shlibpath_var=LD_LIBRARY_PATH
16960   ;;
16961
16962 *)
16963   dynamic_linker=no
16964   ;;
16965 esac
16966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16967 echo "${ECHO_T}$dynamic_linker" >&6; }
16968 test "$dynamic_linker" = no && can_build_shared=no
16969
16970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16971 if test "$GCC" = yes; then
16972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16973 fi
16974
16975 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16976 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16977 hardcode_action=
16978 if test -n "$hardcode_libdir_flag_spec" || \
16979    test -n "$runpath_var" || \
16980    test "X$hardcode_automatic" = "Xyes" ; then
16981
16982   # We can hardcode non-existant directories.
16983   if test "$hardcode_direct" != no &&
16984      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16985      # have to relink, otherwise we might link with an installed library
16986      # when we should be linking with a yet-to-be-installed one
16987      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16988      test "$hardcode_minus_L" != no; then
16989     # Linking always hardcodes the temporary library directory.
16990     hardcode_action=relink
16991   else
16992     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16993     hardcode_action=immediate
16994   fi
16995 else
16996   # We cannot hardcode anything, or else we can only hardcode existing
16997   # directories.
16998   hardcode_action=unsupported
16999 fi
17000 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17001 echo "${ECHO_T}$hardcode_action" >&6; }
17002
17003 if test "$hardcode_action" = relink; then
17004   # Fast installation is not supported
17005   enable_fast_install=no
17006 elif test "$shlibpath_overrides_runpath" = yes ||
17007      test "$enable_shared" = no; then
17008   # Fast installation is not necessary
17009   enable_fast_install=needless
17010 fi
17011
17012 striplib=
17013 old_striplib=
17014 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17015 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17016 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17017   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17018   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17019   { echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6; }
17021 else
17022 # FIXME - insert some real tests, host_os isn't really good enough
17023   case $host_os in
17024    darwin*)
17025        if test -n "$STRIP" ; then
17026          striplib="$STRIP -x"
17027          { echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6; }
17029        else
17030   { echo "$as_me:$LINENO: result: no" >&5
17031 echo "${ECHO_T}no" >&6; }
17032 fi
17033        ;;
17034    *)
17035   { echo "$as_me:$LINENO: result: no" >&5
17036 echo "${ECHO_T}no" >&6; }
17037     ;;
17038   esac
17039 fi
17040
17041 if test "x$enable_dlopen" != xyes; then
17042   enable_dlopen=unknown
17043   enable_dlopen_self=unknown
17044   enable_dlopen_self_static=unknown
17045 else
17046   lt_cv_dlopen=no
17047   lt_cv_dlopen_libs=
17048
17049   case $host_os in
17050   beos*)
17051     lt_cv_dlopen="load_add_on"
17052     lt_cv_dlopen_libs=
17053     lt_cv_dlopen_self=yes
17054     ;;
17055
17056   mingw* | pw32*)
17057     lt_cv_dlopen="LoadLibrary"
17058     lt_cv_dlopen_libs=
17059    ;;
17060
17061   cygwin*)
17062     lt_cv_dlopen="dlopen"
17063     lt_cv_dlopen_libs=
17064    ;;
17065
17066   darwin*)
17067   # if libdl is installed we need to link against it
17068     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17069 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17070 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-ldl  $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h.  */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h.  */
17081
17082 /* Override any GCC internal prototype to avoid an error.
17083    Use char because int might match the return type of a GCC
17084    builtin and then its argument prototype would still apply.  */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char dlopen ();
17089 int
17090 main ()
17091 {
17092 return dlopen ();
17093   ;
17094   return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_link") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112   { (case "(($ac_try" in
17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114   *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117   (eval "$ac_try") 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; } &&
17121          { ac_try='test -s conftest$ac_exeext'
17122   { (case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_try") 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   ac_cv_lib_dl_dlopen=yes
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136         ac_cv_lib_dl_dlopen=no
17137 fi
17138
17139 rm -f core conftest.err conftest.$ac_objext \
17140       conftest$ac_exeext conftest.$ac_ext
17141 LIBS=$ac_check_lib_save_LIBS
17142 fi
17143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17144 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17145 if test $ac_cv_lib_dl_dlopen = yes; then
17146   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17147 else
17148
17149     lt_cv_dlopen="dyld"
17150     lt_cv_dlopen_libs=
17151     lt_cv_dlopen_self=yes
17152
17153 fi
17154
17155    ;;
17156
17157   *)
17158     { echo "$as_me:$LINENO: checking for shl_load" >&5
17159 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17160 if test "${ac_cv_func_shl_load+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17171 #define shl_load innocuous_shl_load
17172
17173 /* System header to define __stub macros and hopefully few prototypes,
17174     which can conflict with char shl_load (); below.
17175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176     <limits.h> exists even on freestanding compilers.  */
17177
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17183
17184 #undef shl_load
17185
17186 /* Override any GCC internal prototype to avoid an error.
17187    Use char because int might match the return type of a GCC
17188    builtin and then its argument prototype would still apply.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 char shl_load ();
17193 /* The GNU C library defines this for functions which it implements
17194     to always fail with ENOSYS.  Some functions are actually named
17195     something starting with __ and the normal name is an alias.  */
17196 #if defined __stub_shl_load || defined __stub___shl_load
17197 choke me
17198 #endif
17199
17200 int
17201 main ()
17202 {
17203 return shl_load ();
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_link") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223   { (case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_try") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } &&
17232          { ac_try='test -s conftest$ac_exeext'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_func_shl_load=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         ac_cv_func_shl_load=no
17248 fi
17249
17250 rm -f core conftest.err conftest.$ac_objext \
17251       conftest$ac_exeext conftest.$ac_ext
17252 fi
17253 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17254 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17255 if test $ac_cv_func_shl_load = yes; then
17256   lt_cv_dlopen="shl_load"
17257 else
17258   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-ldld  $LIBS"
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271
17272 /* Override any GCC internal prototype to avoid an error.
17273    Use char because int might match the return type of a GCC
17274    builtin and then its argument prototype would still apply.  */
17275 #ifdef __cplusplus
17276 extern "C"
17277 #endif
17278 char shl_load ();
17279 int
17280 main ()
17281 {
17282 return shl_load ();
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_link") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } &&
17301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302   { (case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_try") 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest$ac_exeext'
17312   { (case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_try") 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; }; then
17321   ac_cv_lib_dld_shl_load=yes
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326         ac_cv_lib_dld_shl_load=no
17327 fi
17328
17329 rm -f core conftest.err conftest.$ac_objext \
17330       conftest$ac_exeext conftest.$ac_ext
17331 LIBS=$ac_check_lib_save_LIBS
17332 fi
17333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17334 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17335 if test $ac_cv_lib_dld_shl_load = yes; then
17336   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17337 else
17338   { echo "$as_me:$LINENO: checking for dlopen" >&5
17339 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17340 if test "${ac_cv_func_dlopen+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17351 #define dlopen innocuous_dlopen
17352
17353 /* System header to define __stub macros and hopefully few prototypes,
17354     which can conflict with char dlopen (); below.
17355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356     <limits.h> exists even on freestanding compilers.  */
17357
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17363
17364 #undef dlopen
17365
17366 /* Override any GCC internal prototype to avoid an error.
17367    Use char because int might match the return type of a GCC
17368    builtin and then its argument prototype would still apply.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 char dlopen ();
17373 /* The GNU C library defines this for functions which it implements
17374     to always fail with ENOSYS.  Some functions are actually named
17375     something starting with __ and the normal name is an alias.  */
17376 #if defined __stub_dlopen || defined __stub___dlopen
17377 choke me
17378 #endif
17379
17380 int
17381 main ()
17382 {
17383 return dlopen ();
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_link") 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } &&
17402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17403   { (case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_try") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; } &&
17412          { ac_try='test -s conftest$ac_exeext'
17413   { (case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_try") 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_cv_func_dlopen=yes
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427         ac_cv_func_dlopen=no
17428 fi
17429
17430 rm -f core conftest.err conftest.$ac_objext \
17431       conftest$ac_exeext conftest.$ac_ext
17432 fi
17433 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17434 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17435 if test $ac_cv_func_dlopen = yes; then
17436   lt_cv_dlopen="dlopen"
17437 else
17438   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   ac_check_lib_save_LIBS=$LIBS
17444 LIBS="-ldl  $LIBS"
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char dlopen ();
17459 int
17460 main ()
17461 {
17462 return dlopen ();
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_link") 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest$ac_exeext'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   ac_cv_lib_dl_dlopen=yes
17502 else
17503   echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506         ac_cv_lib_dl_dlopen=no
17507 fi
17508
17509 rm -f core conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17512 fi
17513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17515 if test $ac_cv_lib_dl_dlopen = yes; then
17516   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17517 else
17518   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17519 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17520 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   ac_check_lib_save_LIBS=$LIBS
17524 LIBS="-lsvld  $LIBS"
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531
17532 /* Override any GCC internal prototype to avoid an error.
17533    Use char because int might match the return type of a GCC
17534    builtin and then its argument prototype would still apply.  */
17535 #ifdef __cplusplus
17536 extern "C"
17537 #endif
17538 char dlopen ();
17539 int
17540 main ()
17541 {
17542 return dlopen ();
17543   ;
17544   return 0;
17545 }
17546 _ACEOF
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (ac_try="$ac_link"
17549 case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_link") 2>conftest.er1
17555   ac_status=$?
17556   grep -v '^ *+' conftest.er1 >conftest.err
17557   rm -f conftest.er1
17558   cat conftest.err >&5
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } &&
17561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17562   { (case "(($ac_try" in
17563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564   *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567   (eval "$ac_try") 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; } &&
17571          { ac_try='test -s conftest$ac_exeext'
17572   { (case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_try") 2>&5
17578   ac_status=$?
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); }; }; then
17581   ac_cv_lib_svld_dlopen=yes
17582 else
17583   echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586         ac_cv_lib_svld_dlopen=no
17587 fi
17588
17589 rm -f core conftest.err conftest.$ac_objext \
17590       conftest$ac_exeext conftest.$ac_ext
17591 LIBS=$ac_check_lib_save_LIBS
17592 fi
17593 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17594 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17595 if test $ac_cv_lib_svld_dlopen = yes; then
17596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17597 else
17598   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17599 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17600 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   ac_check_lib_save_LIBS=$LIBS
17604 LIBS="-ldld  $LIBS"
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612 /* Override any GCC internal prototype to avoid an error.
17613    Use char because int might match the return type of a GCC
17614    builtin and then its argument prototype would still apply.  */
17615 #ifdef __cplusplus
17616 extern "C"
17617 #endif
17618 char dld_link ();
17619 int
17620 main ()
17621 {
17622 return dld_link ();
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (ac_try="$ac_link"
17629 case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_link") 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642   { (case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_try") 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest$ac_exeext'
17652   { (case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_try") 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; }; then
17661   ac_cv_lib_dld_dld_link=yes
17662 else
17663   echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666         ac_cv_lib_dld_dld_link=no
17667 fi
17668
17669 rm -f core conftest.err conftest.$ac_objext \
17670       conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17672 fi
17673 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17674 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17675 if test $ac_cv_lib_dld_dld_link = yes; then
17676   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17677 fi
17678
17679
17680 fi
17681
17682
17683 fi
17684
17685
17686 fi
17687
17688
17689 fi
17690
17691
17692 fi
17693
17694     ;;
17695   esac
17696
17697   if test "x$lt_cv_dlopen" != xno; then
17698     enable_dlopen=yes
17699   else
17700     enable_dlopen=no
17701   fi
17702
17703   case $lt_cv_dlopen in
17704   dlopen)
17705     save_CPPFLAGS="$CPPFLAGS"
17706     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17707
17708     save_LDFLAGS="$LDFLAGS"
17709     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17710
17711     save_LIBS="$LIBS"
17712     LIBS="$lt_cv_dlopen_libs $LIBS"
17713
17714     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17715 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17716 if test "${lt_cv_dlopen_self+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719           if test "$cross_compiling" = yes; then :
17720   lt_cv_dlopen_self=cross
17721 else
17722   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17723   lt_status=$lt_dlunknown
17724   cat > conftest.$ac_ext <<EOF
17725 #line 17725 "configure"
17726 #include "confdefs.h"
17727
17728 #if HAVE_DLFCN_H
17729 #include <dlfcn.h>
17730 #endif
17731
17732 #include <stdio.h>
17733
17734 #ifdef RTLD_GLOBAL
17735 #  define LT_DLGLOBAL           RTLD_GLOBAL
17736 #else
17737 #  ifdef DL_GLOBAL
17738 #    define LT_DLGLOBAL         DL_GLOBAL
17739 #  else
17740 #    define LT_DLGLOBAL         0
17741 #  endif
17742 #endif
17743
17744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17745    find out it does not work in some platform. */
17746 #ifndef LT_DLLAZY_OR_NOW
17747 #  ifdef RTLD_LAZY
17748 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17749 #  else
17750 #    ifdef DL_LAZY
17751 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17752 #    else
17753 #      ifdef RTLD_NOW
17754 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17755 #      else
17756 #        ifdef DL_NOW
17757 #          define LT_DLLAZY_OR_NOW      DL_NOW
17758 #        else
17759 #          define LT_DLLAZY_OR_NOW      0
17760 #        endif
17761 #      endif
17762 #    endif
17763 #  endif
17764 #endif
17765
17766 #ifdef __cplusplus
17767 extern "C" void exit (int);
17768 #endif
17769
17770 void fnord() { int i=42;}
17771 int main ()
17772 {
17773   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17774   int status = $lt_dlunknown;
17775
17776   if (self)
17777     {
17778       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17779       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17780       /* dlclose (self); */
17781     }
17782   else
17783     puts (dlerror ());
17784
17785     exit (status);
17786 }
17787 EOF
17788   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789   (eval $ac_link) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17793     (./conftest; exit; ) >&5 2>/dev/null
17794     lt_status=$?
17795     case x$lt_status in
17796       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17797       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17798       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17799     esac
17800   else :
17801     # compilation failed
17802     lt_cv_dlopen_self=no
17803   fi
17804 fi
17805 rm -fr conftest*
17806
17807
17808 fi
17809 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17810 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17811
17812     if test "x$lt_cv_dlopen_self" = xyes; then
17813       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17814       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17815 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17816 if test "${lt_cv_dlopen_self_static+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819           if test "$cross_compiling" = yes; then :
17820   lt_cv_dlopen_self_static=cross
17821 else
17822   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17823   lt_status=$lt_dlunknown
17824   cat > conftest.$ac_ext <<EOF
17825 #line 17825 "configure"
17826 #include "confdefs.h"
17827
17828 #if HAVE_DLFCN_H
17829 #include <dlfcn.h>
17830 #endif
17831
17832 #include <stdio.h>
17833
17834 #ifdef RTLD_GLOBAL
17835 #  define LT_DLGLOBAL           RTLD_GLOBAL
17836 #else
17837 #  ifdef DL_GLOBAL
17838 #    define LT_DLGLOBAL         DL_GLOBAL
17839 #  else
17840 #    define LT_DLGLOBAL         0
17841 #  endif
17842 #endif
17843
17844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17845    find out it does not work in some platform. */
17846 #ifndef LT_DLLAZY_OR_NOW
17847 #  ifdef RTLD_LAZY
17848 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17849 #  else
17850 #    ifdef DL_LAZY
17851 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17852 #    else
17853 #      ifdef RTLD_NOW
17854 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17855 #      else
17856 #        ifdef DL_NOW
17857 #          define LT_DLLAZY_OR_NOW      DL_NOW
17858 #        else
17859 #          define LT_DLLAZY_OR_NOW      0
17860 #        endif
17861 #      endif
17862 #    endif
17863 #  endif
17864 #endif
17865
17866 #ifdef __cplusplus
17867 extern "C" void exit (int);
17868 #endif
17869
17870 void fnord() { int i=42;}
17871 int main ()
17872 {
17873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17874   int status = $lt_dlunknown;
17875
17876   if (self)
17877     {
17878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17879       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17880       /* dlclose (self); */
17881     }
17882   else
17883     puts (dlerror ());
17884
17885     exit (status);
17886 }
17887 EOF
17888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889   (eval $ac_link) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17893     (./conftest; exit; ) >&5 2>/dev/null
17894     lt_status=$?
17895     case x$lt_status in
17896       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17897       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17898       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17899     esac
17900   else :
17901     # compilation failed
17902     lt_cv_dlopen_self_static=no
17903   fi
17904 fi
17905 rm -fr conftest*
17906
17907
17908 fi
17909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17911     fi
17912
17913     CPPFLAGS="$save_CPPFLAGS"
17914     LDFLAGS="$save_LDFLAGS"
17915     LIBS="$save_LIBS"
17916     ;;
17917   esac
17918
17919   case $lt_cv_dlopen_self in
17920   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17921   *) enable_dlopen_self=unknown ;;
17922   esac
17923
17924   case $lt_cv_dlopen_self_static in
17925   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17926   *) enable_dlopen_self_static=unknown ;;
17927   esac
17928 fi
17929
17930
17931 # Report which library types will actually be built
17932 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17933 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17934 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17935 echo "${ECHO_T}$can_build_shared" >&6; }
17936
17937 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17938 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17939 test "$can_build_shared" = "no" && enable_shared=no
17940
17941 # On AIX, shared libraries and static libraries use the same namespace, and
17942 # are all built from PIC.
17943 case $host_os in
17944 aix3*)
17945   test "$enable_shared" = yes && enable_static=no
17946   if test -n "$RANLIB"; then
17947     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17948     postinstall_cmds='$RANLIB $lib'
17949   fi
17950   ;;
17951
17952 aix4* | aix5*)
17953   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17954     test "$enable_shared" = yes && enable_static=no
17955   fi
17956     ;;
17957 esac
17958 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17959 echo "${ECHO_T}$enable_shared" >&6; }
17960
17961 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17962 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17963 # Make sure either enable_shared or enable_static is yes.
17964 test "$enable_shared" = yes || enable_static=yes
17965 { echo "$as_me:$LINENO: result: $enable_static" >&5
17966 echo "${ECHO_T}$enable_static" >&6; }
17967
17968 # The else clause should only fire when bootstrapping the
17969 # libtool distribution, otherwise you forgot to ship ltmain.sh
17970 # with your package, and you will get complaints that there are
17971 # no rules to generate ltmain.sh.
17972 if test -f "$ltmain"; then
17973   # See if we are running on zsh, and set the options which allow our commands through
17974   # without removal of \ escapes.
17975   if test -n "${ZSH_VERSION+set}" ; then
17976     setopt NO_GLOB_SUBST
17977   fi
17978   # Now quote all the things that may contain metacharacters while being
17979   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17980   # variables and quote the copies for generation of the libtool script.
17981   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17982     SED SHELL STRIP \
17983     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985     deplibs_check_method reload_flag reload_cmds need_locks \
17986     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987     lt_cv_sys_global_symbol_to_c_name_address \
17988     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989     old_postinstall_cmds old_postuninstall_cmds \
17990     compiler \
17991     CC \
17992     LD \
17993     lt_prog_compiler_wl \
17994     lt_prog_compiler_pic \
17995     lt_prog_compiler_static \
17996     lt_prog_compiler_no_builtin_flag \
17997     export_dynamic_flag_spec \
17998     thread_safe_flag_spec \
17999     whole_archive_flag_spec \
18000     enable_shared_with_static_runtimes \
18001     old_archive_cmds \
18002     old_archive_from_new_cmds \
18003     predep_objects \
18004     postdep_objects \
18005     predeps \
18006     postdeps \
18007     compiler_lib_search_path \
18008     archive_cmds \
18009     archive_expsym_cmds \
18010     postinstall_cmds \
18011     postuninstall_cmds \
18012     old_archive_from_expsyms_cmds \
18013     allow_undefined_flag \
18014     no_undefined_flag \
18015     export_symbols_cmds \
18016     hardcode_libdir_flag_spec \
18017     hardcode_libdir_flag_spec_ld \
18018     hardcode_libdir_separator \
18019     hardcode_automatic \
18020     module_cmds \
18021     module_expsym_cmds \
18022     lt_cv_prog_compiler_c_o \
18023     exclude_expsyms \
18024     include_expsyms; do
18025
18026     case $var in
18027     old_archive_cmds | \
18028     old_archive_from_new_cmds | \
18029     archive_cmds | \
18030     archive_expsym_cmds | \
18031     module_cmds | \
18032     module_expsym_cmds | \
18033     old_archive_from_expsyms_cmds | \
18034     export_symbols_cmds | \
18035     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036     postinstall_cmds | postuninstall_cmds | \
18037     old_postinstall_cmds | old_postuninstall_cmds | \
18038     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039       # Double-quote double-evaled strings.
18040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18041       ;;
18042     *)
18043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18044       ;;
18045     esac
18046   done
18047
18048   case $lt_echo in
18049   *'\$0 --fallback-echo"')
18050     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18051     ;;
18052   esac
18053
18054 cfgfile="${ofile}T"
18055   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18056   $rm -f "$cfgfile"
18057   { echo "$as_me:$LINENO: creating $ofile" >&5
18058 echo "$as_me: creating $ofile" >&6;}
18059
18060   cat <<__EOF__ >> "$cfgfile"
18061 #! $SHELL
18062
18063 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18064 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18066 #
18067 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18068 # Free Software Foundation, Inc.
18069 #
18070 # This file is part of GNU Libtool:
18071 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18072 #
18073 # This program is free software; you can redistribute it and/or modify
18074 # it under the terms of the GNU General Public License as published by
18075 # the Free Software Foundation; either version 2 of the License, or
18076 # (at your option) any later version.
18077 #
18078 # This program is distributed in the hope that it will be useful, but
18079 # WITHOUT ANY WARRANTY; without even the implied warranty of
18080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18081 # General Public License for more details.
18082 #
18083 # You should have received a copy of the GNU General Public License
18084 # along with this program; if not, write to the Free Software
18085 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18086 #
18087 # As a special exception to the GNU General Public License, if you
18088 # distribute this file as part of a program that contains a
18089 # configuration script generated by Autoconf, you may include it under
18090 # the same distribution terms that you use for the rest of that program.
18091
18092 # A sed program that does not truncate output.
18093 SED=$lt_SED
18094
18095 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18096 Xsed="$SED -e 1s/^X//"
18097
18098 # The HP-UX ksh and POSIX shell print the target directory to stdout
18099 # if CDPATH is set.
18100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18101
18102 # The names of the tagged configurations supported by this script.
18103 available_tags=
18104
18105 # ### BEGIN LIBTOOL CONFIG
18106
18107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18108
18109 # Shell to use when invoking shell scripts.
18110 SHELL=$lt_SHELL
18111
18112 # Whether or not to build shared libraries.
18113 build_libtool_libs=$enable_shared
18114
18115 # Whether or not to build static libraries.
18116 build_old_libs=$enable_static
18117
18118 # Whether or not to add -lc for building shared libraries.
18119 build_libtool_need_lc=$archive_cmds_need_lc
18120
18121 # Whether or not to disallow shared libs when runtime libs are static
18122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18123
18124 # Whether or not to optimize for fast installation.
18125 fast_install=$enable_fast_install
18126
18127 # The host system.
18128 host_alias=$host_alias
18129 host=$host
18130 host_os=$host_os
18131
18132 # The build system.
18133 build_alias=$build_alias
18134 build=$build
18135 build_os=$build_os
18136
18137 # An echo program that does not interpret backslashes.
18138 echo=$lt_echo
18139
18140 # The archiver.
18141 AR=$lt_AR
18142 AR_FLAGS=$lt_AR_FLAGS
18143
18144 # A C compiler.
18145 LTCC=$lt_LTCC
18146
18147 # LTCC compiler flags.
18148 LTCFLAGS=$lt_LTCFLAGS
18149
18150 # A language-specific compiler.
18151 CC=$lt_compiler
18152
18153 # Is the compiler the GNU C compiler?
18154 with_gcc=$GCC
18155
18156 # An ERE matcher.
18157 EGREP=$lt_EGREP
18158
18159 # The linker used to build libraries.
18160 LD=$lt_LD
18161
18162 # Whether we need hard or soft links.
18163 LN_S=$lt_LN_S
18164
18165 # A BSD-compatible nm program.
18166 NM=$lt_NM
18167
18168 # A symbol stripping program
18169 STRIP=$lt_STRIP
18170
18171 # Used to examine libraries when file_magic_cmd begins "file"
18172 MAGIC_CMD=$MAGIC_CMD
18173
18174 # Used on cygwin: DLL creation program.
18175 DLLTOOL="$DLLTOOL"
18176
18177 # Used on cygwin: object dumper.
18178 OBJDUMP="$OBJDUMP"
18179
18180 # Used on cygwin: assembler.
18181 AS="$AS"
18182
18183 # The name of the directory that contains temporary libtool files.
18184 objdir=$objdir
18185
18186 # How to create reloadable object files.
18187 reload_flag=$lt_reload_flag
18188 reload_cmds=$lt_reload_cmds
18189
18190 # How to pass a linker flag through the compiler.
18191 wl=$lt_lt_prog_compiler_wl
18192
18193 # Object file suffix (normally "o").
18194 objext="$ac_objext"
18195
18196 # Old archive suffix (normally "a").
18197 libext="$libext"
18198
18199 # Shared library suffix (normally ".so").
18200 shrext_cmds='$shrext_cmds'
18201
18202 # Executable file suffix (normally "").
18203 exeext="$exeext"
18204
18205 # Additional compiler flags for building library objects.
18206 pic_flag=$lt_lt_prog_compiler_pic
18207 pic_mode=$pic_mode
18208
18209 # What is the maximum length of a command?
18210 max_cmd_len=$lt_cv_sys_max_cmd_len
18211
18212 # Does compiler simultaneously support -c and -o options?
18213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18214
18215 # Must we lock files when doing compilation?
18216 need_locks=$lt_need_locks
18217
18218 # Do we need the lib prefix for modules?
18219 need_lib_prefix=$need_lib_prefix
18220
18221 # Do we need a version for libraries?
18222 need_version=$need_version
18223
18224 # Whether dlopen is supported.
18225 dlopen_support=$enable_dlopen
18226
18227 # Whether dlopen of programs is supported.
18228 dlopen_self=$enable_dlopen_self
18229
18230 # Whether dlopen of statically linked programs is supported.
18231 dlopen_self_static=$enable_dlopen_self_static
18232
18233 # Compiler flag to prevent dynamic linking.
18234 link_static_flag=$lt_lt_prog_compiler_static
18235
18236 # Compiler flag to turn off builtin functions.
18237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18238
18239 # Compiler flag to allow reflexive dlopens.
18240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18241
18242 # Compiler flag to generate shared objects directly from archives.
18243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18244
18245 # Compiler flag to generate thread-safe objects.
18246 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18247
18248 # Library versioning type.
18249 version_type=$version_type
18250
18251 # Format of library name prefix.
18252 libname_spec=$lt_libname_spec
18253
18254 # List of archive names.  First name is the real one, the rest are links.
18255 # The last name is the one that the linker finds with -lNAME.
18256 library_names_spec=$lt_library_names_spec
18257
18258 # The coded name of the library, if different from the real name.
18259 soname_spec=$lt_soname_spec
18260
18261 # Commands used to build and install an old-style archive.
18262 RANLIB=$lt_RANLIB
18263 old_archive_cmds=$lt_old_archive_cmds
18264 old_postinstall_cmds=$lt_old_postinstall_cmds
18265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18266
18267 # Create an old-style archive from a shared archive.
18268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18269
18270 # Create a temporary old-style archive to link instead of a shared archive.
18271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18272
18273 # Commands used to build and install a shared archive.
18274 archive_cmds=$lt_archive_cmds
18275 archive_expsym_cmds=$lt_archive_expsym_cmds
18276 postinstall_cmds=$lt_postinstall_cmds
18277 postuninstall_cmds=$lt_postuninstall_cmds
18278
18279 # Commands used to build a loadable module (assumed same as above if empty)
18280 module_cmds=$lt_module_cmds
18281 module_expsym_cmds=$lt_module_expsym_cmds
18282
18283 # Commands to strip libraries.
18284 old_striplib=$lt_old_striplib
18285 striplib=$lt_striplib
18286
18287 # Dependencies to place before the objects being linked to create a
18288 # shared library.
18289 predep_objects=$lt_predep_objects
18290
18291 # Dependencies to place after the objects being linked to create a
18292 # shared library.
18293 postdep_objects=$lt_postdep_objects
18294
18295 # Dependencies to place before the objects being linked to create a
18296 # shared library.
18297 predeps=$lt_predeps
18298
18299 # Dependencies to place after the objects being linked to create a
18300 # shared library.
18301 postdeps=$lt_postdeps
18302
18303 # The library search path used internally by the compiler when linking
18304 # a shared library.
18305 compiler_lib_search_path=$lt_compiler_lib_search_path
18306
18307 # Method to check whether dependent libraries are shared objects.
18308 deplibs_check_method=$lt_deplibs_check_method
18309
18310 # Command to use when deplibs_check_method == file_magic.
18311 file_magic_cmd=$lt_file_magic_cmd
18312
18313 # Flag that allows shared libraries with undefined symbols to be built.
18314 allow_undefined_flag=$lt_allow_undefined_flag
18315
18316 # Flag that forces no undefined symbols.
18317 no_undefined_flag=$lt_no_undefined_flag
18318
18319 # Commands used to finish a libtool library installation in a directory.
18320 finish_cmds=$lt_finish_cmds
18321
18322 # Same as above, but a single script fragment to be evaled but not shown.
18323 finish_eval=$lt_finish_eval
18324
18325 # Take the output of nm and produce a listing of raw symbols and C names.
18326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18327
18328 # Transform the output of nm in a proper C declaration
18329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18330
18331 # Transform the output of nm in a C name address pair
18332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18333
18334 # This is the shared library runtime path variable.
18335 runpath_var=$runpath_var
18336
18337 # This is the shared library path variable.
18338 shlibpath_var=$shlibpath_var
18339
18340 # Is shlibpath searched before the hard-coded library search path?
18341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18342
18343 # How to hardcode a shared library path into an executable.
18344 hardcode_action=$hardcode_action
18345
18346 # Whether we should hardcode library paths into libraries.
18347 hardcode_into_libs=$hardcode_into_libs
18348
18349 # Flag to hardcode \$libdir into a binary during linking.
18350 # This must work even if \$libdir does not exist.
18351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18352
18353 # If ld is used when linking, flag to hardcode \$libdir into
18354 # a binary during linking. This must work even if \$libdir does
18355 # not exist.
18356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18357
18358 # Whether we need a single -rpath flag with a separated argument.
18359 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18360
18361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18362 # resulting binary.
18363 hardcode_direct=$hardcode_direct
18364
18365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18366 # resulting binary.
18367 hardcode_minus_L=$hardcode_minus_L
18368
18369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18370 # the resulting binary.
18371 hardcode_shlibpath_var=$hardcode_shlibpath_var
18372
18373 # Set to yes if building a shared library automatically hardcodes DIR into the library
18374 # and all subsequent libraries and executables linked against it.
18375 hardcode_automatic=$hardcode_automatic
18376
18377 # Variables whose values should be saved in libtool wrapper scripts and
18378 # restored at relink time.
18379 variables_saved_for_relink="$variables_saved_for_relink"
18380
18381 # Whether libtool must link a program against all its dependency libraries.
18382 link_all_deplibs=$link_all_deplibs
18383
18384 # Compile-time system search path for libraries
18385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18386
18387 # Run-time system search path for libraries
18388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18389
18390 # Fix the shell variable \$srcfile for the compiler.
18391 fix_srcfile_path="$fix_srcfile_path"
18392
18393 # Set to yes if exported symbols are required.
18394 always_export_symbols=$always_export_symbols
18395
18396 # The commands to list exported symbols.
18397 export_symbols_cmds=$lt_export_symbols_cmds
18398
18399 # The commands to extract the exported symbol list from a shared archive.
18400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18401
18402 # Symbols that should not be listed in the preloaded symbols.
18403 exclude_expsyms=$lt_exclude_expsyms
18404
18405 # Symbols that must always be exported.
18406 include_expsyms=$lt_include_expsyms
18407
18408 # ### END LIBTOOL CONFIG
18409
18410 __EOF__
18411
18412
18413   case $host_os in
18414   aix3*)
18415     cat <<\EOF >> "$cfgfile"
18416
18417 # AIX sometimes has problems with the GCC collect2 program.  For some
18418 # reason, if we set the COLLECT_NAMES environment variable, the problems
18419 # vanish in a puff of smoke.
18420 if test "X${COLLECT_NAMES+set}" != Xset; then
18421   COLLECT_NAMES=
18422   export COLLECT_NAMES
18423 fi
18424 EOF
18425     ;;
18426   esac
18427
18428   # We use sed instead of cat because bash on DJGPP gets confused if
18429   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18430   # text mode, it properly converts lines to CR/LF.  This bash problem
18431   # is reportedly fixed, but why not run on old versions too?
18432   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18433
18434   mv -f "$cfgfile" "$ofile" || \
18435     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18436   chmod +x "$ofile"
18437
18438 else
18439   # If there is no Makefile yet, we rely on a make rule to execute
18440   # `config.status --recheck' to rerun these tests and create the
18441   # libtool script then.
18442   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18443   if test -f "$ltmain_in"; then
18444     test -f Makefile && make "$ltmain"
18445   fi
18446 fi
18447
18448
18449 ac_ext=c
18450 ac_cpp='$CPP $CPPFLAGS'
18451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18454
18455 CC="$lt_save_CC"
18456
18457
18458 # Check whether --with-tags was given.
18459 if test "${with_tags+set}" = set; then
18460   withval=$with_tags; tagnames="$withval"
18461 fi
18462
18463
18464 if test -f "$ltmain" && test -n "$tagnames"; then
18465   if test ! -f "${ofile}"; then
18466     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18467 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18468   fi
18469
18470   if test -z "$LTCC"; then
18471     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18472     if test -z "$LTCC"; then
18473       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18474 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18475     else
18476       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18477 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18478     fi
18479   fi
18480   if test -z "$LTCFLAGS"; then
18481     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18482   fi
18483
18484   # Extract list of available tagged configurations in $ofile.
18485   # Note that this assumes the entire list is on one line.
18486   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18487
18488   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18489   for tagname in $tagnames; do
18490     IFS="$lt_save_ifs"
18491     # Check whether tagname contains only valid characters
18492     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18493     "") ;;
18494     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18495 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18496    { (exit 1); exit 1; }; }
18497         ;;
18498     esac
18499
18500     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18501     then
18502       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18503 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18504    { (exit 1); exit 1; }; }
18505     fi
18506
18507     # Update the list of available tags.
18508     if test -n "$tagname"; then
18509       echo appending configuration tag \"$tagname\" to $ofile
18510
18511       case $tagname in
18512       CXX)
18513         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18514             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18515             (test "X$CXX" != "Xg++"))) ; then
18516           ac_ext=cpp
18517 ac_cpp='$CXXCPP $CPPFLAGS'
18518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18521
18522
18523
18524
18525 archive_cmds_need_lc_CXX=no
18526 allow_undefined_flag_CXX=
18527 always_export_symbols_CXX=no
18528 archive_expsym_cmds_CXX=
18529 export_dynamic_flag_spec_CXX=
18530 hardcode_direct_CXX=no
18531 hardcode_libdir_flag_spec_CXX=
18532 hardcode_libdir_flag_spec_ld_CXX=
18533 hardcode_libdir_separator_CXX=
18534 hardcode_minus_L_CXX=no
18535 hardcode_shlibpath_var_CXX=unsupported
18536 hardcode_automatic_CXX=no
18537 module_cmds_CXX=
18538 module_expsym_cmds_CXX=
18539 link_all_deplibs_CXX=unknown
18540 old_archive_cmds_CXX=$old_archive_cmds
18541 no_undefined_flag_CXX=
18542 whole_archive_flag_spec_CXX=
18543 enable_shared_with_static_runtimes_CXX=no
18544
18545 # Dependencies to place before and after the object being linked:
18546 predep_objects_CXX=
18547 postdep_objects_CXX=
18548 predeps_CXX=
18549 postdeps_CXX=
18550 compiler_lib_search_path_CXX=
18551
18552 # Source file extension for C++ test sources.
18553 ac_ext=cpp
18554
18555 # Object file extension for compiled C++ test sources.
18556 objext=o
18557 objext_CXX=$objext
18558
18559 # Code to be used in simple compile tests
18560 lt_simple_compile_test_code="int some_variable = 0;\n"
18561
18562 # Code to be used in simple link tests
18563 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18564
18565 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18566
18567 # If no C compiler was specified, use CC.
18568 LTCC=${LTCC-"$CC"}
18569
18570 # If no C compiler flags were specified, use CFLAGS.
18571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18572
18573 # Allow CC to be a program name with arguments.
18574 compiler=$CC
18575
18576
18577 # save warnings/boilerplate of simple test code
18578 ac_outfile=conftest.$ac_objext
18579 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581 _lt_compiler_boilerplate=`cat conftest.err`
18582 $rm conftest*
18583
18584 ac_outfile=conftest.$ac_objext
18585 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587 _lt_linker_boilerplate=`cat conftest.err`
18588 $rm conftest*
18589
18590
18591 # Allow CC to be a program name with arguments.
18592 lt_save_CC=$CC
18593 lt_save_LD=$LD
18594 lt_save_GCC=$GCC
18595 GCC=$GXX
18596 lt_save_with_gnu_ld=$with_gnu_ld
18597 lt_save_path_LD=$lt_cv_path_LD
18598 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18600 else
18601   $as_unset lt_cv_prog_gnu_ld
18602 fi
18603 if test -n "${lt_cv_path_LDCXX+set}"; then
18604   lt_cv_path_LD=$lt_cv_path_LDCXX
18605 else
18606   $as_unset lt_cv_path_LD
18607 fi
18608 test -z "${LDCXX+set}" || LD=$LDCXX
18609 CC=${CXX-"c++"}
18610 compiler=$CC
18611 compiler_CXX=$CC
18612 for cc_temp in $compiler""; do
18613   case $cc_temp in
18614     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18615     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18616     \-*) ;;
18617     *) break;;
18618   esac
18619 done
18620 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18621
18622
18623 # We don't want -fno-exception wen compiling C++ code, so set the
18624 # no_builtin_flag separately
18625 if test "$GXX" = yes; then
18626   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18627 else
18628   lt_prog_compiler_no_builtin_flag_CXX=
18629 fi
18630
18631 if test "$GXX" = yes; then
18632   # Set up default GNU C++ configuration
18633
18634
18635 # Check whether --with-gnu-ld was given.
18636 if test "${with_gnu_ld+set}" = set; then
18637   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18638 else
18639   with_gnu_ld=no
18640 fi
18641
18642 ac_prog=ld
18643 if test "$GCC" = yes; then
18644   # Check if gcc -print-prog-name=ld gives a path.
18645   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18646 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18647   case $host in
18648   *-*-mingw*)
18649     # gcc leaves a trailing carriage return which upsets mingw
18650     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18651   *)
18652     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18653   esac
18654   case $ac_prog in
18655     # Accept absolute paths.
18656     [\\/]* | ?:[\\/]*)
18657       re_direlt='/[^/][^/]*/\.\./'
18658       # Canonicalize the pathname of ld
18659       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18660       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18661         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18662       done
18663       test -z "$LD" && LD="$ac_prog"
18664       ;;
18665   "")
18666     # If it fails, then pretend we aren't using GCC.
18667     ac_prog=ld
18668     ;;
18669   *)
18670     # If it is relative, then search for the first ld in PATH.
18671     with_gnu_ld=unknown
18672     ;;
18673   esac
18674 elif test "$with_gnu_ld" = yes; then
18675   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18677 else
18678   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18680 fi
18681 if test "${lt_cv_path_LD+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   if test -z "$LD"; then
18685   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18686   for ac_dir in $PATH; do
18687     IFS="$lt_save_ifs"
18688     test -z "$ac_dir" && ac_dir=.
18689     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18690       lt_cv_path_LD="$ac_dir/$ac_prog"
18691       # Check to see if the program is GNU ld.  I'd rather use --version,
18692       # but apparently some variants of GNU ld only accept -v.
18693       # Break only if it was the GNU/non-GNU ld that we prefer.
18694       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18695       *GNU* | *'with BFD'*)
18696         test "$with_gnu_ld" != no && break
18697         ;;
18698       *)
18699         test "$with_gnu_ld" != yes && break
18700         ;;
18701       esac
18702     fi
18703   done
18704   IFS="$lt_save_ifs"
18705 else
18706   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18707 fi
18708 fi
18709
18710 LD="$lt_cv_path_LD"
18711 if test -n "$LD"; then
18712   { echo "$as_me:$LINENO: result: $LD" >&5
18713 echo "${ECHO_T}$LD" >&6; }
18714 else
18715   { echo "$as_me:$LINENO: result: no" >&5
18716 echo "${ECHO_T}no" >&6; }
18717 fi
18718 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18719 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18720    { (exit 1); exit 1; }; }
18721 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18722 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18723 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18727 case `$LD -v 2>&1 </dev/null` in
18728 *GNU* | *'with BFD'*)
18729   lt_cv_prog_gnu_ld=yes
18730   ;;
18731 *)
18732   lt_cv_prog_gnu_ld=no
18733   ;;
18734 esac
18735 fi
18736 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18737 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18738 with_gnu_ld=$lt_cv_prog_gnu_ld
18739
18740
18741
18742   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18743   # archiving commands below assume that GNU ld is being used.
18744   if test "$with_gnu_ld" = yes; then
18745     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18746     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'
18747
18748     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18749     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18750
18751     # If archive_cmds runs LD, not CC, wlarc should be empty
18752     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18753     #     investigate it a little bit more. (MM)
18754     wlarc='${wl}'
18755
18756     # ancient GNU ld didn't support --whole-archive et. al.
18757     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18758         grep 'no-whole-archive' > /dev/null; then
18759       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18760     else
18761       whole_archive_flag_spec_CXX=
18762     fi
18763   else
18764     with_gnu_ld=no
18765     wlarc=
18766
18767     # A generic and very simple default shared library creation
18768     # command for GNU C++ for the case where it uses the native
18769     # linker, instead of GNU ld.  If possible, this setting should
18770     # overridden to take advantage of the native linker features on
18771     # the platform it is being used on.
18772     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18773   fi
18774
18775   # Commands to make compiler produce verbose output that lists
18776   # what "hidden" libraries, object files and flags are used when
18777   # linking a shared library.
18778   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18779
18780 else
18781   GXX=no
18782   with_gnu_ld=no
18783   wlarc=
18784 fi
18785
18786 # PORTME: fill in a description of your system's C++ link characteristics
18787 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18789 ld_shlibs_CXX=yes
18790 case $host_os in
18791   aix3*)
18792     # FIXME: insert proper C++ library support
18793     ld_shlibs_CXX=no
18794     ;;
18795   aix4* | aix5*)
18796     if test "$host_cpu" = ia64; then
18797       # On IA64, the linker does run time linking by default, so we don't
18798       # have to do anything special.
18799       aix_use_runtimelinking=no
18800       exp_sym_flag='-Bexport'
18801       no_entry_flag=""
18802     else
18803       aix_use_runtimelinking=no
18804
18805       # Test if we are trying to use run time linking or normal
18806       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807       # need to do runtime linking.
18808       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809         for ld_flag in $LDFLAGS; do
18810           case $ld_flag in
18811           *-brtl*)
18812             aix_use_runtimelinking=yes
18813             break
18814             ;;
18815           esac
18816         done
18817         ;;
18818       esac
18819
18820       exp_sym_flag='-bexport'
18821       no_entry_flag='-bnoentry'
18822     fi
18823
18824     # When large executables or shared objects are built, AIX ld can
18825     # have problems creating the table of contents.  If linking a library
18826     # or program results in "error TOC overflow" add -mminimal-toc to
18827     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18828     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18829
18830     archive_cmds_CXX=''
18831     hardcode_direct_CXX=yes
18832     hardcode_libdir_separator_CXX=':'
18833     link_all_deplibs_CXX=yes
18834
18835     if test "$GXX" = yes; then
18836       case $host_os in aix4.[012]|aix4.[012].*)
18837       # We only want to do this on AIX 4.2 and lower, the check
18838       # below for broken collect2 doesn't work under 4.3+
18839         collect2name=`${CC} -print-prog-name=collect2`
18840         if test -f "$collect2name" && \
18841            strings "$collect2name" | grep resolve_lib_name >/dev/null
18842         then
18843           # We have reworked collect2
18844           hardcode_direct_CXX=yes
18845         else
18846           # We have old collect2
18847           hardcode_direct_CXX=unsupported
18848           # It fails to find uninstalled libraries when the uninstalled
18849           # path is not listed in the libpath.  Setting hardcode_minus_L
18850           # to unsupported forces relinking
18851           hardcode_minus_L_CXX=yes
18852           hardcode_libdir_flag_spec_CXX='-L$libdir'
18853           hardcode_libdir_separator_CXX=
18854         fi
18855         ;;
18856       esac
18857       shared_flag='-shared'
18858       if test "$aix_use_runtimelinking" = yes; then
18859         shared_flag="$shared_flag "'${wl}-G'
18860       fi
18861     else
18862       # not using gcc
18863       if test "$host_cpu" = ia64; then
18864         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18865         # chokes on -Wl,-G. The following line is correct:
18866         shared_flag='-G'
18867       else
18868         if test "$aix_use_runtimelinking" = yes; then
18869           shared_flag='${wl}-G'
18870         else
18871           shared_flag='${wl}-bM:SRE'
18872         fi
18873       fi
18874     fi
18875
18876     # It seems that -bexpall does not export symbols beginning with
18877     # underscore (_), so it is better to generate a list of symbols to export.
18878     always_export_symbols_CXX=yes
18879     if test "$aix_use_runtimelinking" = yes; then
18880       # Warning - without using the other runtime loading flags (-brtl),
18881       # -berok will link without error, but may produce a broken library.
18882       allow_undefined_flag_CXX='-berok'
18883       # Determine the default libpath from the value encoded in an empty executable.
18884       cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h.  */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h.  */
18890
18891 int
18892 main ()
18893 {
18894
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_link") 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } &&
18913          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; } &&
18923          { ac_try='test -s conftest$ac_exeext'
18924   { (case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929   (eval "$ac_try") 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; }; then
18933
18934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18935 }'`
18936 # Check for a 64-bit object if we didn't find anything.
18937 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; }
18938 }'`; fi
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943
18944 fi
18945
18946 rm -f core conftest.err conftest.$ac_objext \
18947       conftest$ac_exeext conftest.$ac_ext
18948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18949
18950       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18951
18952       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"
18953      else
18954       if test "$host_cpu" = ia64; then
18955         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18956         allow_undefined_flag_CXX="-z nodefs"
18957         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"
18958       else
18959         # Determine the default libpath from the value encoded in an empty executable.
18960         cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 int
18968 main ()
18969 {
18970
18971   ;
18972   return 0;
18973 }
18974 _ACEOF
18975 rm -f conftest.$ac_objext conftest$ac_exeext
18976 if { (ac_try="$ac_link"
18977 case "(($ac_try" in
18978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979   *) ac_try_echo=$ac_try;;
18980 esac
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982   (eval "$ac_link") 2>conftest.er1
18983   ac_status=$?
18984   grep -v '^ *+' conftest.er1 >conftest.err
18985   rm -f conftest.er1
18986   cat conftest.err >&5
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); } &&
18989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18990   { (case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_try") 2>&5
18996   ac_status=$?
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); }; } &&
18999          { ac_try='test -s conftest$ac_exeext'
19000   { (case "(($ac_try" in
19001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002   *) ac_try_echo=$ac_try;;
19003 esac
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005   (eval "$ac_try") 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; }; then
19009
19010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19011 }'`
19012 # Check for a 64-bit object if we didn't find anything.
19013 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; }
19014 }'`; fi
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext \
19023       conftest$ac_exeext conftest.$ac_ext
19024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19025
19026         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19027         # Warning - without using the other run time loading flags,
19028         # -berok will link without error, but may produce a broken library.
19029         no_undefined_flag_CXX=' ${wl}-bernotok'
19030         allow_undefined_flag_CXX=' ${wl}-berok'
19031         # Exported symbols can be pulled into shared objects from archives
19032         whole_archive_flag_spec_CXX='$convenience'
19033         archive_cmds_need_lc_CXX=yes
19034         # This is similar to how AIX traditionally builds its shared libraries.
19035         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'
19036       fi
19037     fi
19038     ;;
19039
19040   beos*)
19041     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042       allow_undefined_flag_CXX=unsupported
19043       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19044       # support --undefined.  This deserves some investigation.  FIXME
19045       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19046     else
19047       ld_shlibs_CXX=no
19048     fi
19049     ;;
19050
19051   chorus*)
19052     case $cc_basename in
19053       *)
19054         # FIXME: insert proper C++ library support
19055         ld_shlibs_CXX=no
19056         ;;
19057     esac
19058     ;;
19059
19060   cygwin* | mingw* | pw32*)
19061     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19062     # as there is no search path for DLLs.
19063     hardcode_libdir_flag_spec_CXX='-L$libdir'
19064     allow_undefined_flag_CXX=unsupported
19065     always_export_symbols_CXX=no
19066     enable_shared_with_static_runtimes_CXX=yes
19067
19068     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19069       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'
19070       # If the export-symbols file already is a .def file (1st line
19071       # is EXPORTS), use it as is; otherwise, prepend...
19072       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19073         cp $export_symbols $output_objdir/$soname.def;
19074       else
19075         echo EXPORTS > $output_objdir/$soname.def;
19076         cat $export_symbols >> $output_objdir/$soname.def;
19077       fi~
19078       $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'
19079     else
19080       ld_shlibs_CXX=no
19081     fi
19082   ;;
19083       darwin* | rhapsody*)
19084         case $host_os in
19085         rhapsody* | darwin1.[012])
19086          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19087          ;;
19088        *) # Darwin 1.3 on
19089          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19090            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19091          else
19092            case ${MACOSX_DEPLOYMENT_TARGET} in
19093              10.[012])
19094                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19095                ;;
19096              10.*)
19097                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19098                ;;
19099            esac
19100          fi
19101          ;;
19102         esac
19103       archive_cmds_need_lc_CXX=no
19104       hardcode_direct_CXX=no
19105       hardcode_automatic_CXX=yes
19106       hardcode_shlibpath_var_CXX=unsupported
19107       whole_archive_flag_spec_CXX=''
19108       link_all_deplibs_CXX=yes
19109
19110     if test "$GXX" = yes ; then
19111       lt_int_apple_cc_single_mod=no
19112       output_verbose_link_cmd='echo'
19113       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19114        lt_int_apple_cc_single_mod=yes
19115       fi
19116       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19117        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19118       else
19119           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'
19120         fi
19121         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19122         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19123           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19124             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}'
19125           else
19126             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}'
19127           fi
19128             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}'
19129       else
19130       case $cc_basename in
19131         xlc*)
19132          output_verbose_link_cmd='echo'
19133           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'
19134           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19135           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19136           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}'
19137           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}'
19138           ;;
19139        *)
19140          ld_shlibs_CXX=no
19141           ;;
19142       esac
19143       fi
19144         ;;
19145
19146   dgux*)
19147     case $cc_basename in
19148       ec++*)
19149         # FIXME: insert proper C++ library support
19150         ld_shlibs_CXX=no
19151         ;;
19152       ghcx*)
19153         # Green Hills C++ Compiler
19154         # FIXME: insert proper C++ library support
19155         ld_shlibs_CXX=no
19156         ;;
19157       *)
19158         # FIXME: insert proper C++ library support
19159         ld_shlibs_CXX=no
19160         ;;
19161     esac
19162     ;;
19163   freebsd[12]*)
19164     # C++ shared libraries reported to be fairly broken before switch to ELF
19165     ld_shlibs_CXX=no
19166     ;;
19167   freebsd-elf*)
19168     archive_cmds_need_lc_CXX=no
19169     ;;
19170   freebsd* | kfreebsd*-gnu | dragonfly*)
19171     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19172     # conventions
19173     ld_shlibs_CXX=yes
19174     ;;
19175   gnu*)
19176     ;;
19177   hpux9*)
19178     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19179     hardcode_libdir_separator_CXX=:
19180     export_dynamic_flag_spec_CXX='${wl}-E'
19181     hardcode_direct_CXX=yes
19182     hardcode_minus_L_CXX=yes # Not in the search PATH,
19183                                 # but as the default
19184                                 # location of the library.
19185
19186     case $cc_basename in
19187     CC*)
19188       # FIXME: insert proper C++ library support
19189       ld_shlibs_CXX=no
19190       ;;
19191     aCC*)
19192       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'
19193       # Commands to make compiler produce verbose output that lists
19194       # what "hidden" libraries, object files and flags are used when
19195       # linking a shared library.
19196       #
19197       # There doesn't appear to be a way to prevent this compiler from
19198       # explicitly linking system object files so we need to strip them
19199       # from the output so that they don't get included in the library
19200       # dependencies.
19201       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'
19202       ;;
19203     *)
19204       if test "$GXX" = yes; then
19205         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'
19206       else
19207         # FIXME: insert proper C++ library support
19208         ld_shlibs_CXX=no
19209       fi
19210       ;;
19211     esac
19212     ;;
19213   hpux10*|hpux11*)
19214     if test $with_gnu_ld = no; then
19215       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19216       hardcode_libdir_separator_CXX=:
19217
19218       case $host_cpu in
19219       hppa*64*|ia64*)
19220         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19221         ;;
19222       *)
19223         export_dynamic_flag_spec_CXX='${wl}-E'
19224         ;;
19225       esac
19226     fi
19227     case $host_cpu in
19228     hppa*64*|ia64*)
19229       hardcode_direct_CXX=no
19230       hardcode_shlibpath_var_CXX=no
19231       ;;
19232     *)
19233       hardcode_direct_CXX=yes
19234       hardcode_minus_L_CXX=yes # Not in the search PATH,
19235                                               # but as the default
19236                                               # location of the library.
19237       ;;
19238     esac
19239
19240     case $cc_basename in
19241       CC*)
19242         # FIXME: insert proper C++ library support
19243         ld_shlibs_CXX=no
19244         ;;
19245       aCC*)
19246         case $host_cpu in
19247         hppa*64*)
19248           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249           ;;
19250         ia64*)
19251           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252           ;;
19253         *)
19254           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19255           ;;
19256         esac
19257         # Commands to make compiler produce verbose output that lists
19258         # what "hidden" libraries, object files and flags are used when
19259         # linking a shared library.
19260         #
19261         # There doesn't appear to be a way to prevent this compiler from
19262         # explicitly linking system object files so we need to strip them
19263         # from the output so that they don't get included in the library
19264         # dependencies.
19265         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'
19266         ;;
19267       *)
19268         if test "$GXX" = yes; then
19269           if test $with_gnu_ld = no; then
19270             case $host_cpu in
19271             hppa*64*)
19272               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19273               ;;
19274             ia64*)
19275               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19276               ;;
19277             *)
19278               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'
19279               ;;
19280             esac
19281           fi
19282         else
19283           # FIXME: insert proper C++ library support
19284           ld_shlibs_CXX=no
19285         fi
19286         ;;
19287     esac
19288     ;;
19289   interix3*)
19290     hardcode_direct_CXX=no
19291     hardcode_shlibpath_var_CXX=no
19292     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293     export_dynamic_flag_spec_CXX='${wl}-E'
19294     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295     # Instead, shared libraries are loaded at an image base (0x10000000 by
19296     # default) and relocated if they conflict, which is a slow very memory
19297     # consuming and fragmenting process.  To avoid this, we pick a random,
19298     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19300     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'
19301     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'
19302     ;;
19303   irix5* | irix6*)
19304     case $cc_basename in
19305       CC*)
19306         # SGI C++
19307         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'
19308
19309         # Archives containing C++ object files must be created using
19310         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19311         # necessary to make sure instantiated templates are included
19312         # in the archive.
19313         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19314         ;;
19315       *)
19316         if test "$GXX" = yes; then
19317           if test "$with_gnu_ld" = no; then
19318             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'
19319           else
19320             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'
19321           fi
19322         fi
19323         link_all_deplibs_CXX=yes
19324         ;;
19325     esac
19326     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327     hardcode_libdir_separator_CXX=:
19328     ;;
19329   linux*)
19330     case $cc_basename in
19331       KCC*)
19332         # Kuck and Associates, Inc. (KAI) C++ Compiler
19333
19334         # KCC will only create a shared library if the output file
19335         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336         # to its proper name (with version) after linking.
19337         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'
19338         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'
19339         # Commands to make compiler produce verbose output that lists
19340         # what "hidden" libraries, object files and flags are used when
19341         # linking a shared library.
19342         #
19343         # There doesn't appear to be a way to prevent this compiler from
19344         # explicitly linking system object files so we need to strip them
19345         # from the output so that they don't get included in the library
19346         # dependencies.
19347         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'
19348
19349         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19350         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19351
19352         # Archives containing C++ object files must be created using
19353         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19354         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19355         ;;
19356       icpc*)
19357         # Intel C++
19358         with_gnu_ld=yes
19359         # version 8.0 and above of icpc choke on multiply defined symbols
19360         # if we add $predep_objects and $postdep_objects, however 7.1 and
19361         # earlier do not add the objects themselves.
19362         case `$CC -V 2>&1` in
19363         *"Version 7."*)
19364           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365           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'
19366           ;;
19367         *)  # Version 8.0 or newer
19368           tmp_idyn=
19369           case $host_cpu in
19370             ia64*) tmp_idyn=' -i_dynamic';;
19371           esac
19372           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19373           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'
19374           ;;
19375         esac
19376         archive_cmds_need_lc_CXX=no
19377         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19378         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19379         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19380         ;;
19381       pgCC*)
19382         # Portland Group C++ compiler
19383         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384         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'
19385
19386         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19387         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19388         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'
19389         ;;
19390       cxx*)
19391         # Compaq C++
19392         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19393         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'
19394
19395         runpath_var=LD_RUN_PATH
19396         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19397         hardcode_libdir_separator_CXX=:
19398
19399         # Commands to make compiler produce verbose output that lists
19400         # what "hidden" libraries, object files and flags are used when
19401         # linking a shared library.
19402         #
19403         # There doesn't appear to be a way to prevent this compiler from
19404         # explicitly linking system object files so we need to strip them
19405         # from the output so that they don't get included in the library
19406         # dependencies.
19407         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'
19408         ;;
19409     esac
19410     ;;
19411   lynxos*)
19412     # FIXME: insert proper C++ library support
19413     ld_shlibs_CXX=no
19414     ;;
19415   m88k*)
19416     # FIXME: insert proper C++ library support
19417     ld_shlibs_CXX=no
19418     ;;
19419   mvs*)
19420     case $cc_basename in
19421       cxx*)
19422         # FIXME: insert proper C++ library support
19423         ld_shlibs_CXX=no
19424         ;;
19425       *)
19426         # FIXME: insert proper C++ library support
19427         ld_shlibs_CXX=no
19428         ;;
19429     esac
19430     ;;
19431   netbsd*)
19432     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19433       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19434       wlarc=
19435       hardcode_libdir_flag_spec_CXX='-R$libdir'
19436       hardcode_direct_CXX=yes
19437       hardcode_shlibpath_var_CXX=no
19438     fi
19439     # Workaround some broken pre-1.5 toolchains
19440     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19441     ;;
19442   openbsd2*)
19443     # C++ shared libraries are fairly broken
19444     ld_shlibs_CXX=no
19445     ;;
19446   openbsd*)
19447     hardcode_direct_CXX=yes
19448     hardcode_shlibpath_var_CXX=no
19449     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19450     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19451     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19452       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19453       export_dynamic_flag_spec_CXX='${wl}-E'
19454       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19455     fi
19456     output_verbose_link_cmd='echo'
19457     ;;
19458   osf3*)
19459     case $cc_basename in
19460       KCC*)
19461         # Kuck and Associates, Inc. (KAI) C++ Compiler
19462
19463         # KCC will only create a shared library if the output file
19464         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465         # to its proper name (with version) after linking.
19466         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'
19467
19468         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19469         hardcode_libdir_separator_CXX=:
19470
19471         # Archives containing C++ object files must be created using
19472         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19473         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19474
19475         ;;
19476       RCC*)
19477         # Rational C++ 2.4.1
19478         # FIXME: insert proper C++ library support
19479         ld_shlibs_CXX=no
19480         ;;
19481       cxx*)
19482         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19483         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'
19484
19485         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19486         hardcode_libdir_separator_CXX=:
19487
19488         # Commands to make compiler produce verbose output that lists
19489         # what "hidden" libraries, object files and flags are used when
19490         # linking a shared library.
19491         #
19492         # There doesn't appear to be a way to prevent this compiler from
19493         # explicitly linking system object files so we need to strip them
19494         # from the output so that they don't get included in the library
19495         # dependencies.
19496         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'
19497         ;;
19498       *)
19499         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19500           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19501           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'
19502
19503           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19504           hardcode_libdir_separator_CXX=:
19505
19506           # Commands to make compiler produce verbose output that lists
19507           # what "hidden" libraries, object files and flags are used when
19508           # linking a shared library.
19509           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19510
19511         else
19512           # FIXME: insert proper C++ library support
19513           ld_shlibs_CXX=no
19514         fi
19515         ;;
19516     esac
19517     ;;
19518   osf4* | osf5*)
19519     case $cc_basename in
19520       KCC*)
19521         # Kuck and Associates, Inc. (KAI) C++ Compiler
19522
19523         # KCC will only create a shared library if the output file
19524         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19525         # to its proper name (with version) after linking.
19526         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'
19527
19528         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19529         hardcode_libdir_separator_CXX=:
19530
19531         # Archives containing C++ object files must be created using
19532         # the KAI C++ compiler.
19533         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19534         ;;
19535       RCC*)
19536         # Rational C++ 2.4.1
19537         # FIXME: insert proper C++ library support
19538         ld_shlibs_CXX=no
19539         ;;
19540       cxx*)
19541         allow_undefined_flag_CXX=' -expect_unresolved \*'
19542         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'
19543         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19544           echo "-hidden">> $lib.exp~
19545           $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~
19546           $rm $lib.exp'
19547
19548         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19549         hardcode_libdir_separator_CXX=:
19550
19551         # Commands to make compiler produce verbose output that lists
19552         # what "hidden" libraries, object files and flags are used when
19553         # linking a shared library.
19554         #
19555         # There doesn't appear to be a way to prevent this compiler from
19556         # explicitly linking system object files so we need to strip them
19557         # from the output so that they don't get included in the library
19558         # dependencies.
19559         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'
19560         ;;
19561       *)
19562         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19563           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19564          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'
19565
19566           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19567           hardcode_libdir_separator_CXX=:
19568
19569           # Commands to make compiler produce verbose output that lists
19570           # what "hidden" libraries, object files and flags are used when
19571           # linking a shared library.
19572           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19573
19574         else
19575           # FIXME: insert proper C++ library support
19576           ld_shlibs_CXX=no
19577         fi
19578         ;;
19579     esac
19580     ;;
19581   psos*)
19582     # FIXME: insert proper C++ library support
19583     ld_shlibs_CXX=no
19584     ;;
19585   sunos4*)
19586     case $cc_basename in
19587       CC*)
19588         # Sun C++ 4.x
19589         # FIXME: insert proper C++ library support
19590         ld_shlibs_CXX=no
19591         ;;
19592       lcc*)
19593         # Lucid
19594         # FIXME: insert proper C++ library support
19595         ld_shlibs_CXX=no
19596         ;;
19597       *)
19598         # FIXME: insert proper C++ library support
19599         ld_shlibs_CXX=no
19600         ;;
19601     esac
19602     ;;
19603   solaris*)
19604     case $cc_basename in
19605       CC*)
19606         # Sun C++ 4.2, 5.x and Centerline C++
19607         archive_cmds_need_lc_CXX=yes
19608         no_undefined_flag_CXX=' -zdefs'
19609         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611         $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'
19612
19613         hardcode_libdir_flag_spec_CXX='-R$libdir'
19614         hardcode_shlibpath_var_CXX=no
19615         case $host_os in
19616           solaris2.[0-5] | solaris2.[0-5].*) ;;
19617           *)
19618             # The C++ compiler is used as linker so we must use $wl
19619             # flag to pass the commands to the underlying system
19620             # linker. We must also pass each convience library through
19621             # to the system linker between allextract/defaultextract.
19622             # The C++ compiler will combine linker options so we
19623             # cannot just pass the convience library names through
19624             # without $wl.
19625             # Supported since Solaris 2.6 (maybe 2.5.1?)
19626             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'
19627             ;;
19628         esac
19629         link_all_deplibs_CXX=yes
19630
19631         output_verbose_link_cmd='echo'
19632
19633         # Archives containing C++ object files must be created using
19634         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19635         # necessary to make sure instantiated templates are included
19636         # in the archive.
19637         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19638         ;;
19639       gcx*)
19640         # Green Hills C++ Compiler
19641         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19642
19643         # The C++ compiler must be used to create the archive.
19644         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19645         ;;
19646       *)
19647         # GNU C++ compiler with Solaris linker
19648         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19649           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19650           if $CC --version | grep -v '^2\.7' > /dev/null; then
19651             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19652             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19654
19655             # Commands to make compiler produce verbose output that lists
19656             # what "hidden" libraries, object files and flags are used when
19657             # linking a shared library.
19658             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19659           else
19660             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19661             # platform.
19662             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19663             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19664                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19665
19666             # Commands to make compiler produce verbose output that lists
19667             # what "hidden" libraries, object files and flags are used when
19668             # linking a shared library.
19669             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19670           fi
19671
19672           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19673         fi
19674         ;;
19675     esac
19676     ;;
19677   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19678     no_undefined_flag_CXX='${wl}-z,text'
19679     archive_cmds_need_lc_CXX=no
19680     hardcode_shlibpath_var_CXX=no
19681     runpath_var='LD_RUN_PATH'
19682
19683     case $cc_basename in
19684       CC*)
19685         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687         ;;
19688       *)
19689         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19691         ;;
19692     esac
19693     ;;
19694   sysv5* | sco3.2v5* | sco5v6*)
19695     # Note: We can NOT use -z defs as we might desire, because we do not
19696     # link with -lc, and that would cause any symbols used from libc to
19697     # always be unresolved, which means just about no library would
19698     # ever link correctly.  If we're not using GNU ld we use -z text
19699     # though, which does catch some bad symbols but isn't as heavy-handed
19700     # as -z defs.
19701     # For security reasons, it is highly recommended that you always
19702     # use absolute paths for naming shared libraries, and exclude the
19703     # DT_RUNPATH tag from executables and libraries.  But doing so
19704     # requires that you compile everything twice, which is a pain.
19705     # So that behaviour is only enabled if SCOABSPATH is set to a
19706     # non-empty value in the environment.  Most likely only useful for
19707     # creating official distributions of packages.
19708     # This is a hack until libtool officially supports absolute path
19709     # names for shared libraries.
19710     no_undefined_flag_CXX='${wl}-z,text'
19711     allow_undefined_flag_CXX='${wl}-z,nodefs'
19712     archive_cmds_need_lc_CXX=no
19713     hardcode_shlibpath_var_CXX=no
19714     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19715     hardcode_libdir_separator_CXX=':'
19716     link_all_deplibs_CXX=yes
19717     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19718     runpath_var='LD_RUN_PATH'
19719
19720     case $cc_basename in
19721       CC*)
19722         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19724         ;;
19725       *)
19726         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19727         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19728         ;;
19729     esac
19730     ;;
19731   tandem*)
19732     case $cc_basename in
19733       NCC*)
19734         # NonStop-UX NCC 3.20
19735         # FIXME: insert proper C++ library support
19736         ld_shlibs_CXX=no
19737         ;;
19738       *)
19739         # FIXME: insert proper C++ library support
19740         ld_shlibs_CXX=no
19741         ;;
19742     esac
19743     ;;
19744   vxworks*)
19745     # FIXME: insert proper C++ library support
19746     ld_shlibs_CXX=no
19747     ;;
19748   *)
19749     # FIXME: insert proper C++ library support
19750     ld_shlibs_CXX=no
19751     ;;
19752 esac
19753 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19754 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19755 test "$ld_shlibs_CXX" = no && can_build_shared=no
19756
19757 GCC_CXX="$GXX"
19758 LD_CXX="$LD"
19759
19760
19761 cat > conftest.$ac_ext <<EOF
19762 class Foo
19763 {
19764 public:
19765   Foo (void) { a = 0; }
19766 private:
19767   int a;
19768 };
19769 EOF
19770
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772   (eval $ac_compile) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; then
19776   # Parse the compiler output and extract the necessary
19777   # objects, libraries and library flags.
19778
19779   # Sentinel used to keep track of whether or not we are before
19780   # the conftest object file.
19781   pre_test_object_deps_done=no
19782
19783   # The `*' in the case matches for architectures that use `case' in
19784   # $output_verbose_cmd can trigger glob expansion during the loop
19785   # eval without this substitution.
19786   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19787
19788   for p in `eval $output_verbose_link_cmd`; do
19789     case $p in
19790
19791     -L* | -R* | -l*)
19792        # Some compilers place space between "-{L,R}" and the path.
19793        # Remove the space.
19794        if test $p = "-L" \
19795           || test $p = "-R"; then
19796          prev=$p
19797          continue
19798        else
19799          prev=
19800        fi
19801
19802        if test "$pre_test_object_deps_done" = no; then
19803          case $p in
19804          -L* | -R*)
19805            # Internal compiler library paths should come after those
19806            # provided the user.  The postdeps already come after the
19807            # user supplied libs so there is no need to process them.
19808            if test -z "$compiler_lib_search_path_CXX"; then
19809              compiler_lib_search_path_CXX="${prev}${p}"
19810            else
19811              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19812            fi
19813            ;;
19814          # The "-l" case would never come before the object being
19815          # linked, so don't bother handling this case.
19816          esac
19817        else
19818          if test -z "$postdeps_CXX"; then
19819            postdeps_CXX="${prev}${p}"
19820          else
19821            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19822          fi
19823        fi
19824        ;;
19825
19826     *.$objext)
19827        # This assumes that the test object file only shows up
19828        # once in the compiler output.
19829        if test "$p" = "conftest.$objext"; then
19830          pre_test_object_deps_done=yes
19831          continue
19832        fi
19833
19834        if test "$pre_test_object_deps_done" = no; then
19835          if test -z "$predep_objects_CXX"; then
19836            predep_objects_CXX="$p"
19837          else
19838            predep_objects_CXX="$predep_objects_CXX $p"
19839          fi
19840        else
19841          if test -z "$postdep_objects_CXX"; then
19842            postdep_objects_CXX="$p"
19843          else
19844            postdep_objects_CXX="$postdep_objects_CXX $p"
19845          fi
19846        fi
19847        ;;
19848
19849     *) ;; # Ignore the rest.
19850
19851     esac
19852   done
19853
19854   # Clean up.
19855   rm -f a.out a.exe
19856 else
19857   echo "libtool.m4: error: problem compiling CXX test program"
19858 fi
19859
19860 $rm -f confest.$objext
19861
19862 # PORTME: override above test on systems where it is broken
19863 case $host_os in
19864 interix3*)
19865   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19866   # hack all around it, let's just trust "g++" to DTRT.
19867   predep_objects_CXX=
19868   postdep_objects_CXX=
19869   postdeps_CXX=
19870   ;;
19871
19872 solaris*)
19873   case $cc_basename in
19874   CC*)
19875     # Adding this requires a known-good setup of shared libraries for
19876     # Sun compiler versions before 5.6, else PIC objects from an old
19877     # archive will be linked into the output, leading to subtle bugs.
19878     postdeps_CXX='-lCstd -lCrun'
19879     ;;
19880   esac
19881   ;;
19882 esac
19883
19884
19885 case " $postdeps_CXX " in
19886 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19887 esac
19888
19889 lt_prog_compiler_wl_CXX=
19890 lt_prog_compiler_pic_CXX=
19891 lt_prog_compiler_static_CXX=
19892
19893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19895
19896   # C++ specific cases for pic, static, wl, etc.
19897   if test "$GXX" = yes; then
19898     lt_prog_compiler_wl_CXX='-Wl,'
19899     lt_prog_compiler_static_CXX='-static'
19900
19901     case $host_os in
19902     aix*)
19903       # All AIX code is PIC.
19904       if test "$host_cpu" = ia64; then
19905         # AIX 5 now supports IA64 processor
19906         lt_prog_compiler_static_CXX='-Bstatic'
19907       fi
19908       ;;
19909     amigaos*)
19910       # FIXME: we need at least 68020 code to build shared libraries, but
19911       # adding the `-m68020' flag to GCC prevents building anything better,
19912       # like `-m68040'.
19913       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19914       ;;
19915     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19916       # PIC is the default for these OSes.
19917       ;;
19918     mingw* | os2* | pw32*)
19919       # This hack is so that the source file can tell whether it is being
19920       # built for inclusion in a dll (and should export symbols for example).
19921       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19922       ;;
19923     darwin* | rhapsody*)
19924       # PIC is the default on this platform
19925       # Common symbols not allowed in MH_DYLIB files
19926       lt_prog_compiler_pic_CXX='-fno-common'
19927       ;;
19928     *djgpp*)
19929       # DJGPP does not support shared libraries at all
19930       lt_prog_compiler_pic_CXX=
19931       ;;
19932     interix3*)
19933       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19934       # Instead, we relocate shared libraries at runtime.
19935       ;;
19936     sysv4*MP*)
19937       if test -d /usr/nec; then
19938         lt_prog_compiler_pic_CXX=-Kconform_pic
19939       fi
19940       ;;
19941     hpux*)
19942       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19943       # not for PA HP-UX.
19944       case $host_cpu in
19945       hppa*64*|ia64*)
19946         ;;
19947       *)
19948         lt_prog_compiler_pic_CXX='-fPIC'
19949         ;;
19950       esac
19951       ;;
19952     *)
19953       lt_prog_compiler_pic_CXX='-fPIC'
19954       ;;
19955     esac
19956   else
19957     case $host_os in
19958       aix4* | aix5*)
19959         # All AIX code is PIC.
19960         if test "$host_cpu" = ia64; then
19961           # AIX 5 now supports IA64 processor
19962           lt_prog_compiler_static_CXX='-Bstatic'
19963         else
19964           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19965         fi
19966         ;;
19967       chorus*)
19968         case $cc_basename in
19969         cxch68*)
19970           # Green Hills C++ Compiler
19971           # _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"
19972           ;;
19973         esac
19974         ;;
19975        darwin*)
19976          # PIC is the default on this platform
19977          # Common symbols not allowed in MH_DYLIB files
19978          case $cc_basename in
19979            xlc*)
19980            lt_prog_compiler_pic_CXX='-qnocommon'
19981            lt_prog_compiler_wl_CXX='-Wl,'
19982            ;;
19983          esac
19984        ;;
19985       dgux*)
19986         case $cc_basename in
19987           ec++*)
19988             lt_prog_compiler_pic_CXX='-KPIC'
19989             ;;
19990           ghcx*)
19991             # Green Hills C++ Compiler
19992             lt_prog_compiler_pic_CXX='-pic'
19993             ;;
19994           *)
19995             ;;
19996         esac
19997         ;;
19998       freebsd* | kfreebsd*-gnu | dragonfly*)
19999         # FreeBSD uses GNU C++
20000         ;;
20001       hpux9* | hpux10* | hpux11*)
20002         case $cc_basename in
20003           CC*)
20004             lt_prog_compiler_wl_CXX='-Wl,'
20005             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20006             if test "$host_cpu" != ia64; then
20007               lt_prog_compiler_pic_CXX='+Z'
20008             fi
20009             ;;
20010           aCC*)
20011             lt_prog_compiler_wl_CXX='-Wl,'
20012             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20013             case $host_cpu in
20014             hppa*64*|ia64*)
20015               # +Z the default
20016               ;;
20017             *)
20018               lt_prog_compiler_pic_CXX='+Z'
20019               ;;
20020             esac
20021             ;;
20022           *)
20023             ;;
20024         esac
20025         ;;
20026       interix*)
20027         # This is c89, which is MS Visual C++ (no shared libs)
20028         # Anyone wants to do a port?
20029         ;;
20030       irix5* | irix6* | nonstopux*)
20031         case $cc_basename in
20032           CC*)
20033             lt_prog_compiler_wl_CXX='-Wl,'
20034             lt_prog_compiler_static_CXX='-non_shared'
20035             # CC pic flag -KPIC is the default.
20036             ;;
20037           *)
20038             ;;
20039         esac
20040         ;;
20041       linux*)
20042         case $cc_basename in
20043           KCC*)
20044             # KAI C++ Compiler
20045             lt_prog_compiler_wl_CXX='--backend -Wl,'
20046             lt_prog_compiler_pic_CXX='-fPIC'
20047             ;;
20048           icpc* | ecpc*)
20049             # Intel C++
20050             lt_prog_compiler_wl_CXX='-Wl,'
20051             lt_prog_compiler_pic_CXX='-KPIC'
20052             lt_prog_compiler_static_CXX='-static'
20053             ;;
20054           pgCC*)
20055             # Portland Group C++ compiler.
20056             lt_prog_compiler_wl_CXX='-Wl,'
20057             lt_prog_compiler_pic_CXX='-fpic'
20058             lt_prog_compiler_static_CXX='-Bstatic'
20059             ;;
20060           cxx*)
20061             # Compaq C++
20062             # Make sure the PIC flag is empty.  It appears that all Alpha
20063             # Linux and Compaq Tru64 Unix objects are PIC.
20064             lt_prog_compiler_pic_CXX=
20065             lt_prog_compiler_static_CXX='-non_shared'
20066             ;;
20067           *)
20068             ;;
20069         esac
20070         ;;
20071       lynxos*)
20072         ;;
20073       m88k*)
20074         ;;
20075       mvs*)
20076         case $cc_basename in
20077           cxx*)
20078             lt_prog_compiler_pic_CXX='-W c,exportall'
20079             ;;
20080           *)
20081             ;;
20082         esac
20083         ;;
20084       netbsd*)
20085         ;;
20086       osf3* | osf4* | osf5*)
20087         case $cc_basename in
20088           KCC*)
20089             lt_prog_compiler_wl_CXX='--backend -Wl,'
20090             ;;
20091           RCC*)
20092             # Rational C++ 2.4.1
20093             lt_prog_compiler_pic_CXX='-pic'
20094             ;;
20095           cxx*)
20096             # Digital/Compaq C++
20097             lt_prog_compiler_wl_CXX='-Wl,'
20098             # Make sure the PIC flag is empty.  It appears that all Alpha
20099             # Linux and Compaq Tru64 Unix objects are PIC.
20100             lt_prog_compiler_pic_CXX=
20101             lt_prog_compiler_static_CXX='-non_shared'
20102             ;;
20103           *)
20104             ;;
20105         esac
20106         ;;
20107       psos*)
20108         ;;
20109       solaris*)
20110         case $cc_basename in
20111           CC*)
20112             # Sun C++ 4.2, 5.x and Centerline C++
20113             lt_prog_compiler_pic_CXX='-KPIC'
20114             lt_prog_compiler_static_CXX='-Bstatic'
20115             lt_prog_compiler_wl_CXX='-Qoption ld '
20116             ;;
20117           gcx*)
20118             # Green Hills C++ Compiler
20119             lt_prog_compiler_pic_CXX='-PIC'
20120             ;;
20121           *)
20122             ;;
20123         esac
20124         ;;
20125       sunos4*)
20126         case $cc_basename in
20127           CC*)
20128             # Sun C++ 4.x
20129             lt_prog_compiler_pic_CXX='-pic'
20130             lt_prog_compiler_static_CXX='-Bstatic'
20131             ;;
20132           lcc*)
20133             # Lucid
20134             lt_prog_compiler_pic_CXX='-pic'
20135             ;;
20136           *)
20137             ;;
20138         esac
20139         ;;
20140       tandem*)
20141         case $cc_basename in
20142           NCC*)
20143             # NonStop-UX NCC 3.20
20144             lt_prog_compiler_pic_CXX='-KPIC'
20145             ;;
20146           *)
20147             ;;
20148         esac
20149         ;;
20150       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20151         case $cc_basename in
20152           CC*)
20153             lt_prog_compiler_wl_CXX='-Wl,'
20154             lt_prog_compiler_pic_CXX='-KPIC'
20155             lt_prog_compiler_static_CXX='-Bstatic'
20156             ;;
20157         esac
20158         ;;
20159       vxworks*)
20160         ;;
20161       *)
20162         lt_prog_compiler_can_build_shared_CXX=no
20163         ;;
20164     esac
20165   fi
20166
20167 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20168 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20169
20170 #
20171 # Check to make sure the PIC flag actually works.
20172 #
20173 if test -n "$lt_prog_compiler_pic_CXX"; then
20174
20175 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20176 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20177 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180   lt_prog_compiler_pic_works_CXX=no
20181   ac_outfile=conftest.$ac_objext
20182    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20183    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20184    # Insert the option either (1) after the last *FLAGS variable, or
20185    # (2) before a word containing "conftest.", or (3) at the end.
20186    # Note that $ac_compile itself does not contain backslashes and begins
20187    # with a dollar sign (not a hyphen), so the echo should work correctly.
20188    # The option is referenced via a variable to avoid confusing sed.
20189    lt_compile=`echo "$ac_compile" | $SED \
20190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20192    -e 's:$: $lt_compiler_flag:'`
20193    (eval echo "\"\$as_me:20193: $lt_compile\"" >&5)
20194    (eval "$lt_compile" 2>conftest.err)
20195    ac_status=$?
20196    cat conftest.err >&5
20197    echo "$as_me:20197: \$? = $ac_status" >&5
20198    if (exit $ac_status) && test -s "$ac_outfile"; then
20199      # The compiler can only warn and ignore the option if not recognized
20200      # So say no if there are warnings other than the usual output.
20201      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20202      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20203      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20204        lt_prog_compiler_pic_works_CXX=yes
20205      fi
20206    fi
20207    $rm conftest*
20208
20209 fi
20210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20211 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20212
20213 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20214     case $lt_prog_compiler_pic_CXX in
20215      "" | " "*) ;;
20216      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20217      esac
20218 else
20219     lt_prog_compiler_pic_CXX=
20220      lt_prog_compiler_can_build_shared_CXX=no
20221 fi
20222
20223 fi
20224 case $host_os in
20225   # For platforms which do not support PIC, -DPIC is meaningless:
20226   *djgpp*)
20227     lt_prog_compiler_pic_CXX=
20228     ;;
20229   *)
20230     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20231     ;;
20232 esac
20233
20234 #
20235 # Check to make sure the static flag actually works.
20236 #
20237 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20238 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20239 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20240 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   lt_prog_compiler_static_works_CXX=no
20244    save_LDFLAGS="$LDFLAGS"
20245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20246    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20248      # The linker can only warn and ignore the option if not recognized
20249      # So say no if there are warnings
20250      if test -s conftest.err; then
20251        # Append any errors to the config.log.
20252        cat conftest.err 1>&5
20253        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20255        if diff conftest.exp conftest.er2 >/dev/null; then
20256          lt_prog_compiler_static_works_CXX=yes
20257        fi
20258      else
20259        lt_prog_compiler_static_works_CXX=yes
20260      fi
20261    fi
20262    $rm conftest*
20263    LDFLAGS="$save_LDFLAGS"
20264
20265 fi
20266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20267 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20268
20269 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20270     :
20271 else
20272     lt_prog_compiler_static_CXX=
20273 fi
20274
20275
20276 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20278 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281   lt_cv_prog_compiler_c_o_CXX=no
20282    $rm -r conftest 2>/dev/null
20283    mkdir conftest
20284    cd conftest
20285    mkdir out
20286    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20287
20288    lt_compiler_flag="-o out/conftest2.$ac_objext"
20289    # Insert the option either (1) after the last *FLAGS variable, or
20290    # (2) before a word containing "conftest.", or (3) at the end.
20291    # Note that $ac_compile itself does not contain backslashes and begins
20292    # with a dollar sign (not a hyphen), so the echo should work correctly.
20293    lt_compile=`echo "$ac_compile" | $SED \
20294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20296    -e 's:$: $lt_compiler_flag:'`
20297    (eval echo "\"\$as_me:20297: $lt_compile\"" >&5)
20298    (eval "$lt_compile" 2>out/conftest.err)
20299    ac_status=$?
20300    cat out/conftest.err >&5
20301    echo "$as_me:20301: \$? = $ac_status" >&5
20302    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20303    then
20304      # The compiler can only warn and ignore the option if not recognized
20305      # So say no if there are warnings
20306      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20307      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20308      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20309        lt_cv_prog_compiler_c_o_CXX=yes
20310      fi
20311    fi
20312    chmod u+w . 2>&5
20313    $rm conftest*
20314    # SGI C++ compiler will create directory out/ii_files/ for
20315    # template instantiation
20316    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20317    $rm out/* && rmdir out
20318    cd ..
20319    rmdir conftest
20320    $rm conftest*
20321
20322 fi
20323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20325
20326
20327 hard_links="nottested"
20328 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20329   # do not overwrite the value of need_locks provided by the user
20330   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20332   hard_links=yes
20333   $rm conftest*
20334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20335   touch conftest.a
20336   ln conftest.a conftest.b 2>&5 || hard_links=no
20337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20338   { echo "$as_me:$LINENO: result: $hard_links" >&5
20339 echo "${ECHO_T}$hard_links" >&6; }
20340   if test "$hard_links" = no; then
20341     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20343     need_locks=warn
20344   fi
20345 else
20346   need_locks=no
20347 fi
20348
20349 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20351
20352   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20353   case $host_os in
20354   aix4* | aix5*)
20355     # If we're using GNU nm, then we don't want the "-C" option.
20356     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20357     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20358       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'
20359     else
20360       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'
20361     fi
20362     ;;
20363   pw32*)
20364     export_symbols_cmds_CXX="$ltdll_cmds"
20365   ;;
20366   cygwin* | mingw*)
20367     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'
20368   ;;
20369   *)
20370     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20371   ;;
20372   esac
20373
20374 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20375 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20376 test "$ld_shlibs_CXX" = no && can_build_shared=no
20377
20378 #
20379 # Do we need to explicitly link libc?
20380 #
20381 case "x$archive_cmds_need_lc_CXX" in
20382 x|xyes)
20383   # Assume -lc should be added
20384   archive_cmds_need_lc_CXX=yes
20385
20386   if test "$enable_shared" = yes && test "$GCC" = yes; then
20387     case $archive_cmds_CXX in
20388     *'~'*)
20389       # FIXME: we may have to deal with multi-command sequences.
20390       ;;
20391     '$CC '*)
20392       # Test whether the compiler implicitly links with -lc since on some
20393       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20394       # to ld, don't add -lc before -lgcc.
20395       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20396 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20397       $rm conftest*
20398       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20399
20400       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401   (eval $ac_compile) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } 2>conftest.err; then
20405         soname=conftest
20406         lib=conftest
20407         libobjs=conftest.$ac_objext
20408         deplibs=
20409         wl=$lt_prog_compiler_wl_CXX
20410         pic_flag=$lt_prog_compiler_pic_CXX
20411         compiler_flags=-v
20412         linker_flags=-v
20413         verstring=
20414         output_objdir=.
20415         libname=conftest
20416         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20417         allow_undefined_flag_CXX=
20418         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20419   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }
20423         then
20424           archive_cmds_need_lc_CXX=no
20425         else
20426           archive_cmds_need_lc_CXX=yes
20427         fi
20428         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20429       else
20430         cat conftest.err 1>&5
20431       fi
20432       $rm conftest*
20433       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20434 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20435       ;;
20436     esac
20437   fi
20438   ;;
20439 esac
20440
20441 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20442 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20443 library_names_spec=
20444 libname_spec='lib$name'
20445 soname_spec=
20446 shrext_cmds=".so"
20447 postinstall_cmds=
20448 postuninstall_cmds=
20449 finish_cmds=
20450 finish_eval=
20451 shlibpath_var=
20452 shlibpath_overrides_runpath=unknown
20453 version_type=none
20454 dynamic_linker="$host_os ld.so"
20455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20456 if test "$GCC" = yes; then
20457   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20458   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20459     # if the path contains ";" then we assume it to be the separator
20460     # otherwise default to the standard path separator (i.e. ":") - it is
20461     # assumed that no part of a normal pathname contains ";" but that should
20462     # okay in the real world where ";" in dirpaths is itself problematic.
20463     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20464   else
20465     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20466   fi
20467 else
20468   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20469 fi
20470 need_lib_prefix=unknown
20471 hardcode_into_libs=no
20472
20473 # when you set need_version to no, make sure it does not cause -set_version
20474 # flags to be left without arguments
20475 need_version=unknown
20476
20477 case $host_os in
20478 aix3*)
20479   version_type=linux
20480   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20481   shlibpath_var=LIBPATH
20482
20483   # AIX 3 has no versioning support, so we append a major version to the name.
20484   soname_spec='${libname}${release}${shared_ext}$major'
20485   ;;
20486
20487 aix4* | aix5*)
20488   version_type=linux
20489   need_lib_prefix=no
20490   need_version=no
20491   hardcode_into_libs=yes
20492   if test "$host_cpu" = ia64; then
20493     # AIX 5 supports IA64
20494     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20495     shlibpath_var=LD_LIBRARY_PATH
20496   else
20497     # With GCC up to 2.95.x, collect2 would create an import file
20498     # for dependence libraries.  The import file would start with
20499     # the line `#! .'.  This would cause the generated library to
20500     # depend on `.', always an invalid library.  This was fixed in
20501     # development snapshots of GCC prior to 3.0.
20502     case $host_os in
20503       aix4 | aix4.[01] | aix4.[01].*)
20504       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20505            echo ' yes '
20506            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20507         :
20508       else
20509         can_build_shared=no
20510       fi
20511       ;;
20512     esac
20513     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20514     # soname into executable. Probably we can add versioning support to
20515     # collect2, so additional links can be useful in future.
20516     if test "$aix_use_runtimelinking" = yes; then
20517       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20518       # instead of lib<name>.a to let people know that these are not
20519       # typical AIX shared libraries.
20520       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20521     else
20522       # We preserve .a as extension for shared libraries through AIX4.2
20523       # and later when we are not doing run time linking.
20524       library_names_spec='${libname}${release}.a $libname.a'
20525       soname_spec='${libname}${release}${shared_ext}$major'
20526     fi
20527     shlibpath_var=LIBPATH
20528   fi
20529   ;;
20530
20531 amigaos*)
20532   library_names_spec='$libname.ixlibrary $libname.a'
20533   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20534   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'
20535   ;;
20536
20537 beos*)
20538   library_names_spec='${libname}${shared_ext}'
20539   dynamic_linker="$host_os ld.so"
20540   shlibpath_var=LIBRARY_PATH
20541   ;;
20542
20543 bsdi[45]*)
20544   version_type=linux
20545   need_version=no
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20549   shlibpath_var=LD_LIBRARY_PATH
20550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20552   # the default ld.so.conf also contains /usr/contrib/lib and
20553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20554   # libtool to hard-code these into programs
20555   ;;
20556
20557 cygwin* | mingw* | pw32*)
20558   version_type=windows
20559   shrext_cmds=".dll"
20560   need_version=no
20561   need_lib_prefix=no
20562
20563   case $GCC,$host_os in
20564   yes,cygwin* | yes,mingw* | yes,pw32*)
20565     library_names_spec='$libname.dll.a'
20566     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20567     postinstall_cmds='base_file=`basename \${file}`~
20568       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20569       dldir=$destdir/`dirname \$dlpath`~
20570       test -d \$dldir || mkdir -p \$dldir~
20571       $install_prog $dir/$dlname \$dldir/$dlname~
20572       chmod a+x \$dldir/$dlname'
20573     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20574       dlpath=$dir/\$dldll~
20575        $rm \$dlpath'
20576     shlibpath_overrides_runpath=yes
20577
20578     case $host_os in
20579     cygwin*)
20580       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20581       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20582       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20583       ;;
20584     mingw*)
20585       # MinGW DLLs use traditional 'lib' prefix
20586       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20588       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20589         # It is most probably a Windows format PATH printed by
20590         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20591         # path with ; separators, and with drive letters. We can handle the
20592         # drive letters (cygwin fileutils understands them), so leave them,
20593         # especially as we might pass files found there to a mingw objdump,
20594         # which wouldn't understand a cygwinified path. Ahh.
20595         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20596       else
20597         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20598       fi
20599       ;;
20600     pw32*)
20601       # pw32 DLLs use 'pw' prefix rather than 'lib'
20602       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603       ;;
20604     esac
20605     ;;
20606
20607   *)
20608     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20609     ;;
20610   esac
20611   dynamic_linker='Win32 ld.exe'
20612   # FIXME: first we should search . and the directory the executable is in
20613   shlibpath_var=PATH
20614   ;;
20615
20616 darwin* | rhapsody*)
20617   dynamic_linker="$host_os dyld"
20618   version_type=darwin
20619   need_lib_prefix=no
20620   need_version=no
20621   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20622   soname_spec='${libname}${release}${major}$shared_ext'
20623   shlibpath_overrides_runpath=yes
20624   shlibpath_var=DYLD_LIBRARY_PATH
20625   shrext_cmds='.dylib'
20626   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20627   if test "$GCC" = yes; then
20628     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"`
20629   else
20630     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20631   fi
20632   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20633   ;;
20634
20635 dgux*)
20636   version_type=linux
20637   need_lib_prefix=no
20638   need_version=no
20639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20640   soname_spec='${libname}${release}${shared_ext}$major'
20641   shlibpath_var=LD_LIBRARY_PATH
20642   ;;
20643
20644 freebsd1*)
20645   dynamic_linker=no
20646   ;;
20647
20648 kfreebsd*-gnu)
20649   version_type=linux
20650   need_lib_prefix=no
20651   need_version=no
20652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20653   soname_spec='${libname}${release}${shared_ext}$major'
20654   shlibpath_var=LD_LIBRARY_PATH
20655   shlibpath_overrides_runpath=no
20656   hardcode_into_libs=yes
20657   dynamic_linker='GNU ld.so'
20658   ;;
20659
20660 freebsd* | dragonfly*)
20661   # DragonFly does not have aout.  When/if they implement a new
20662   # versioning mechanism, adjust this.
20663   if test -x /usr/bin/objformat; then
20664     objformat=`/usr/bin/objformat`
20665   else
20666     case $host_os in
20667     freebsd[123]*) objformat=aout ;;
20668     *) objformat=elf ;;
20669     esac
20670   fi
20671   version_type=freebsd-$objformat
20672   case $version_type in
20673     freebsd-elf*)
20674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20675       need_version=no
20676       need_lib_prefix=no
20677       ;;
20678     freebsd-*)
20679       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20680       need_version=yes
20681       ;;
20682   esac
20683   shlibpath_var=LD_LIBRARY_PATH
20684   case $host_os in
20685   freebsd2*)
20686     shlibpath_overrides_runpath=yes
20687     ;;
20688   freebsd3.[01]* | freebsdelf3.[01]*)
20689     shlibpath_overrides_runpath=yes
20690     hardcode_into_libs=yes
20691     ;;
20692   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20693   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20694     shlibpath_overrides_runpath=no
20695     hardcode_into_libs=yes
20696     ;;
20697   freebsd*) # from 4.6 on
20698     shlibpath_overrides_runpath=yes
20699     hardcode_into_libs=yes
20700     ;;
20701   esac
20702   ;;
20703
20704 gnu*)
20705   version_type=linux
20706   need_lib_prefix=no
20707   need_version=no
20708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20709   soname_spec='${libname}${release}${shared_ext}$major'
20710   shlibpath_var=LD_LIBRARY_PATH
20711   hardcode_into_libs=yes
20712   ;;
20713
20714 hpux9* | hpux10* | hpux11*)
20715   # Give a soname corresponding to the major version so that dld.sl refuses to
20716   # link against other versions.
20717   version_type=sunos
20718   need_lib_prefix=no
20719   need_version=no
20720   case $host_cpu in
20721   ia64*)
20722     shrext_cmds='.so'
20723     hardcode_into_libs=yes
20724     dynamic_linker="$host_os dld.so"
20725     shlibpath_var=LD_LIBRARY_PATH
20726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728     soname_spec='${libname}${release}${shared_ext}$major'
20729     if test "X$HPUX_IA64_MODE" = X32; then
20730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20731     else
20732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20733     fi
20734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20735     ;;
20736    hppa*64*)
20737      shrext_cmds='.sl'
20738      hardcode_into_libs=yes
20739      dynamic_linker="$host_os dld.sl"
20740      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20741      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20742      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743      soname_spec='${libname}${release}${shared_ext}$major'
20744      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20745      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20746      ;;
20747    *)
20748     shrext_cmds='.sl'
20749     dynamic_linker="$host_os dld.sl"
20750     shlibpath_var=SHLIB_PATH
20751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753     soname_spec='${libname}${release}${shared_ext}$major'
20754     ;;
20755   esac
20756   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20757   postinstall_cmds='chmod 555 $lib'
20758   ;;
20759
20760 interix3*)
20761   version_type=linux
20762   need_lib_prefix=no
20763   need_version=no
20764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20765   soname_spec='${libname}${release}${shared_ext}$major'
20766   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20767   shlibpath_var=LD_LIBRARY_PATH
20768   shlibpath_overrides_runpath=no
20769   hardcode_into_libs=yes
20770   ;;
20771
20772 irix5* | irix6* | nonstopux*)
20773   case $host_os in
20774     nonstopux*) version_type=nonstopux ;;
20775     *)
20776         if test "$lt_cv_prog_gnu_ld" = yes; then
20777                 version_type=linux
20778         else
20779                 version_type=irix
20780         fi ;;
20781   esac
20782   need_lib_prefix=no
20783   need_version=no
20784   soname_spec='${libname}${release}${shared_ext}$major'
20785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20786   case $host_os in
20787   irix5* | nonstopux*)
20788     libsuff= shlibsuff=
20789     ;;
20790   *)
20791     case $LD in # libtool.m4 will add one of these switches to LD
20792     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20793       libsuff= shlibsuff= libmagic=32-bit;;
20794     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20795       libsuff=32 shlibsuff=N32 libmagic=N32;;
20796     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20797       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20798     *) libsuff= shlibsuff= libmagic=never-match;;
20799     esac
20800     ;;
20801   esac
20802   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20803   shlibpath_overrides_runpath=no
20804   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20805   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20806   hardcode_into_libs=yes
20807   ;;
20808
20809 # No shared lib support for Linux oldld, aout, or coff.
20810 linux*oldld* | linux*aout* | linux*coff*)
20811   dynamic_linker=no
20812   ;;
20813
20814 # This must be Linux ELF.
20815 linux*)
20816   version_type=linux
20817   need_lib_prefix=no
20818   need_version=no
20819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820   soname_spec='${libname}${release}${shared_ext}$major'
20821   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20822   shlibpath_var=LD_LIBRARY_PATH
20823   shlibpath_overrides_runpath=no
20824   # This implies no fast_install, which is unacceptable.
20825   # Some rework will be needed to allow for fast_install
20826   # before this can be enabled.
20827   hardcode_into_libs=yes
20828
20829   # Append ld.so.conf contents to the search path
20830   if test -f /etc/ld.so.conf; then
20831     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' ' '`
20832     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20833   fi
20834
20835   # We used to test for /lib/ld.so.1 and disable shared libraries on
20836   # powerpc, because MkLinux only supported shared libraries with the
20837   # GNU dynamic linker.  Since this was broken with cross compilers,
20838   # most powerpc-linux boxes support dynamic linking these days and
20839   # people can always --disable-shared, the test was removed, and we
20840   # assume the GNU/Linux dynamic linker is in use.
20841   dynamic_linker='GNU/Linux ld.so'
20842   ;;
20843
20844 knetbsd*-gnu)
20845   version_type=linux
20846   need_lib_prefix=no
20847   need_version=no
20848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849   soname_spec='${libname}${release}${shared_ext}$major'
20850   shlibpath_var=LD_LIBRARY_PATH
20851   shlibpath_overrides_runpath=no
20852   hardcode_into_libs=yes
20853   dynamic_linker='GNU ld.so'
20854   ;;
20855
20856 netbsd*)
20857   version_type=sunos
20858   need_lib_prefix=no
20859   need_version=no
20860   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20862     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20863     dynamic_linker='NetBSD (a.out) ld.so'
20864   else
20865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20866     soname_spec='${libname}${release}${shared_ext}$major'
20867     dynamic_linker='NetBSD ld.elf_so'
20868   fi
20869   shlibpath_var=LD_LIBRARY_PATH
20870   shlibpath_overrides_runpath=yes
20871   hardcode_into_libs=yes
20872   ;;
20873
20874 newsos6)
20875   version_type=linux
20876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20877   shlibpath_var=LD_LIBRARY_PATH
20878   shlibpath_overrides_runpath=yes
20879   ;;
20880
20881 nto-qnx*)
20882   version_type=linux
20883   need_lib_prefix=no
20884   need_version=no
20885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20886   soname_spec='${libname}${release}${shared_ext}$major'
20887   shlibpath_var=LD_LIBRARY_PATH
20888   shlibpath_overrides_runpath=yes
20889   ;;
20890
20891 openbsd*)
20892   version_type=sunos
20893   sys_lib_dlsearch_path_spec="/usr/lib"
20894   need_lib_prefix=no
20895   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20896   case $host_os in
20897     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20898     *)                         need_version=no  ;;
20899   esac
20900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20902   shlibpath_var=LD_LIBRARY_PATH
20903   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20904     case $host_os in
20905       openbsd2.[89] | openbsd2.[89].*)
20906         shlibpath_overrides_runpath=no
20907         ;;
20908       *)
20909         shlibpath_overrides_runpath=yes
20910         ;;
20911       esac
20912   else
20913     shlibpath_overrides_runpath=yes
20914   fi
20915   ;;
20916
20917 os2*)
20918   libname_spec='$name'
20919   shrext_cmds=".dll"
20920   need_lib_prefix=no
20921   library_names_spec='$libname${shared_ext} $libname.a'
20922   dynamic_linker='OS/2 ld.exe'
20923   shlibpath_var=LIBPATH
20924   ;;
20925
20926 osf3* | osf4* | osf5*)
20927   version_type=osf
20928   need_lib_prefix=no
20929   need_version=no
20930   soname_spec='${libname}${release}${shared_ext}$major'
20931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932   shlibpath_var=LD_LIBRARY_PATH
20933   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20934   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20935   ;;
20936
20937 solaris*)
20938   version_type=linux
20939   need_lib_prefix=no
20940   need_version=no
20941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942   soname_spec='${libname}${release}${shared_ext}$major'
20943   shlibpath_var=LD_LIBRARY_PATH
20944   shlibpath_overrides_runpath=yes
20945   hardcode_into_libs=yes
20946   # ldd complains unless libraries are executable
20947   postinstall_cmds='chmod +x $lib'
20948   ;;
20949
20950 sunos4*)
20951   version_type=sunos
20952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20953   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20954   shlibpath_var=LD_LIBRARY_PATH
20955   shlibpath_overrides_runpath=yes
20956   if test "$with_gnu_ld" = yes; then
20957     need_lib_prefix=no
20958   fi
20959   need_version=yes
20960   ;;
20961
20962 sysv4 | sysv4.3*)
20963   version_type=linux
20964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20965   soname_spec='${libname}${release}${shared_ext}$major'
20966   shlibpath_var=LD_LIBRARY_PATH
20967   case $host_vendor in
20968     sni)
20969       shlibpath_overrides_runpath=no
20970       need_lib_prefix=no
20971       export_dynamic_flag_spec='${wl}-Blargedynsym'
20972       runpath_var=LD_RUN_PATH
20973       ;;
20974     siemens)
20975       need_lib_prefix=no
20976       ;;
20977     motorola)
20978       need_lib_prefix=no
20979       need_version=no
20980       shlibpath_overrides_runpath=no
20981       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20982       ;;
20983   esac
20984   ;;
20985
20986 sysv4*MP*)
20987   if test -d /usr/nec ;then
20988     version_type=linux
20989     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20990     soname_spec='$libname${shared_ext}.$major'
20991     shlibpath_var=LD_LIBRARY_PATH
20992   fi
20993   ;;
20994
20995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20996   version_type=freebsd-elf
20997   need_lib_prefix=no
20998   need_version=no
20999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21000   soname_spec='${libname}${release}${shared_ext}$major'
21001   shlibpath_var=LD_LIBRARY_PATH
21002   hardcode_into_libs=yes
21003   if test "$with_gnu_ld" = yes; then
21004     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21005     shlibpath_overrides_runpath=no
21006   else
21007     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21008     shlibpath_overrides_runpath=yes
21009     case $host_os in
21010       sco3.2v5*)
21011         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21012         ;;
21013     esac
21014   fi
21015   sys_lib_dlsearch_path_spec='/usr/lib'
21016   ;;
21017
21018 uts4*)
21019   version_type=linux
21020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21021   soname_spec='${libname}${release}${shared_ext}$major'
21022   shlibpath_var=LD_LIBRARY_PATH
21023   ;;
21024
21025 *)
21026   dynamic_linker=no
21027   ;;
21028 esac
21029 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21030 echo "${ECHO_T}$dynamic_linker" >&6; }
21031 test "$dynamic_linker" = no && can_build_shared=no
21032
21033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21034 if test "$GCC" = yes; then
21035   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21036 fi
21037
21038 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21040 hardcode_action_CXX=
21041 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21042    test -n "$runpath_var_CXX" || \
21043    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21044
21045   # We can hardcode non-existant directories.
21046   if test "$hardcode_direct_CXX" != no &&
21047      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21048      # have to relink, otherwise we might link with an installed library
21049      # when we should be linking with a yet-to-be-installed one
21050      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21051      test "$hardcode_minus_L_CXX" != no; then
21052     # Linking always hardcodes the temporary library directory.
21053     hardcode_action_CXX=relink
21054   else
21055     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21056     hardcode_action_CXX=immediate
21057   fi
21058 else
21059   # We cannot hardcode anything, or else we can only hardcode existing
21060   # directories.
21061   hardcode_action_CXX=unsupported
21062 fi
21063 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21064 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21065
21066 if test "$hardcode_action_CXX" = relink; then
21067   # Fast installation is not supported
21068   enable_fast_install=no
21069 elif test "$shlibpath_overrides_runpath" = yes ||
21070      test "$enable_shared" = no; then
21071   # Fast installation is not necessary
21072   enable_fast_install=needless
21073 fi
21074
21075
21076 # The else clause should only fire when bootstrapping the
21077 # libtool distribution, otherwise you forgot to ship ltmain.sh
21078 # with your package, and you will get complaints that there are
21079 # no rules to generate ltmain.sh.
21080 if test -f "$ltmain"; then
21081   # See if we are running on zsh, and set the options which allow our commands through
21082   # without removal of \ escapes.
21083   if test -n "${ZSH_VERSION+set}" ; then
21084     setopt NO_GLOB_SUBST
21085   fi
21086   # Now quote all the things that may contain metacharacters while being
21087   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21088   # variables and quote the copies for generation of the libtool script.
21089   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21090     SED SHELL STRIP \
21091     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21092     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21093     deplibs_check_method reload_flag reload_cmds need_locks \
21094     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21095     lt_cv_sys_global_symbol_to_c_name_address \
21096     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21097     old_postinstall_cmds old_postuninstall_cmds \
21098     compiler_CXX \
21099     CC_CXX \
21100     LD_CXX \
21101     lt_prog_compiler_wl_CXX \
21102     lt_prog_compiler_pic_CXX \
21103     lt_prog_compiler_static_CXX \
21104     lt_prog_compiler_no_builtin_flag_CXX \
21105     export_dynamic_flag_spec_CXX \
21106     thread_safe_flag_spec_CXX \
21107     whole_archive_flag_spec_CXX \
21108     enable_shared_with_static_runtimes_CXX \
21109     old_archive_cmds_CXX \
21110     old_archive_from_new_cmds_CXX \
21111     predep_objects_CXX \
21112     postdep_objects_CXX \
21113     predeps_CXX \
21114     postdeps_CXX \
21115     compiler_lib_search_path_CXX \
21116     archive_cmds_CXX \
21117     archive_expsym_cmds_CXX \
21118     postinstall_cmds_CXX \
21119     postuninstall_cmds_CXX \
21120     old_archive_from_expsyms_cmds_CXX \
21121     allow_undefined_flag_CXX \
21122     no_undefined_flag_CXX \
21123     export_symbols_cmds_CXX \
21124     hardcode_libdir_flag_spec_CXX \
21125     hardcode_libdir_flag_spec_ld_CXX \
21126     hardcode_libdir_separator_CXX \
21127     hardcode_automatic_CXX \
21128     module_cmds_CXX \
21129     module_expsym_cmds_CXX \
21130     lt_cv_prog_compiler_c_o_CXX \
21131     exclude_expsyms_CXX \
21132     include_expsyms_CXX; do
21133
21134     case $var in
21135     old_archive_cmds_CXX | \
21136     old_archive_from_new_cmds_CXX | \
21137     archive_cmds_CXX | \
21138     archive_expsym_cmds_CXX | \
21139     module_cmds_CXX | \
21140     module_expsym_cmds_CXX | \
21141     old_archive_from_expsyms_cmds_CXX | \
21142     export_symbols_cmds_CXX | \
21143     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21144     postinstall_cmds | postuninstall_cmds | \
21145     old_postinstall_cmds | old_postuninstall_cmds | \
21146     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21147       # Double-quote double-evaled strings.
21148       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21149       ;;
21150     *)
21151       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21152       ;;
21153     esac
21154   done
21155
21156   case $lt_echo in
21157   *'\$0 --fallback-echo"')
21158     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21159     ;;
21160   esac
21161
21162 cfgfile="$ofile"
21163
21164   cat <<__EOF__ >> "$cfgfile"
21165 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21166
21167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21168
21169 # Shell to use when invoking shell scripts.
21170 SHELL=$lt_SHELL
21171
21172 # Whether or not to build shared libraries.
21173 build_libtool_libs=$enable_shared
21174
21175 # Whether or not to build static libraries.
21176 build_old_libs=$enable_static
21177
21178 # Whether or not to add -lc for building shared libraries.
21179 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21180
21181 # Whether or not to disallow shared libs when runtime libs are static
21182 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21183
21184 # Whether or not to optimize for fast installation.
21185 fast_install=$enable_fast_install
21186
21187 # The host system.
21188 host_alias=$host_alias
21189 host=$host
21190 host_os=$host_os
21191
21192 # The build system.
21193 build_alias=$build_alias
21194 build=$build
21195 build_os=$build_os
21196
21197 # An echo program that does not interpret backslashes.
21198 echo=$lt_echo
21199
21200 # The archiver.
21201 AR=$lt_AR
21202 AR_FLAGS=$lt_AR_FLAGS
21203
21204 # A C compiler.
21205 LTCC=$lt_LTCC
21206
21207 # LTCC compiler flags.
21208 LTCFLAGS=$lt_LTCFLAGS
21209
21210 # A language-specific compiler.
21211 CC=$lt_compiler_CXX
21212
21213 # Is the compiler the GNU C compiler?
21214 with_gcc=$GCC_CXX
21215
21216 # An ERE matcher.
21217 EGREP=$lt_EGREP
21218
21219 # The linker used to build libraries.
21220 LD=$lt_LD_CXX
21221
21222 # Whether we need hard or soft links.
21223 LN_S=$lt_LN_S
21224
21225 # A BSD-compatible nm program.
21226 NM=$lt_NM
21227
21228 # A symbol stripping program
21229 STRIP=$lt_STRIP
21230
21231 # Used to examine libraries when file_magic_cmd begins "file"
21232 MAGIC_CMD=$MAGIC_CMD
21233
21234 # Used on cygwin: DLL creation program.
21235 DLLTOOL="$DLLTOOL"
21236
21237 # Used on cygwin: object dumper.
21238 OBJDUMP="$OBJDUMP"
21239
21240 # Used on cygwin: assembler.
21241 AS="$AS"
21242
21243 # The name of the directory that contains temporary libtool files.
21244 objdir=$objdir
21245
21246 # How to create reloadable object files.
21247 reload_flag=$lt_reload_flag
21248 reload_cmds=$lt_reload_cmds
21249
21250 # How to pass a linker flag through the compiler.
21251 wl=$lt_lt_prog_compiler_wl_CXX
21252
21253 # Object file suffix (normally "o").
21254 objext="$ac_objext"
21255
21256 # Old archive suffix (normally "a").
21257 libext="$libext"
21258
21259 # Shared library suffix (normally ".so").
21260 shrext_cmds='$shrext_cmds'
21261
21262 # Executable file suffix (normally "").
21263 exeext="$exeext"
21264
21265 # Additional compiler flags for building library objects.
21266 pic_flag=$lt_lt_prog_compiler_pic_CXX
21267 pic_mode=$pic_mode
21268
21269 # What is the maximum length of a command?
21270 max_cmd_len=$lt_cv_sys_max_cmd_len
21271
21272 # Does compiler simultaneously support -c and -o options?
21273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21274
21275 # Must we lock files when doing compilation?
21276 need_locks=$lt_need_locks
21277
21278 # Do we need the lib prefix for modules?
21279 need_lib_prefix=$need_lib_prefix
21280
21281 # Do we need a version for libraries?
21282 need_version=$need_version
21283
21284 # Whether dlopen is supported.
21285 dlopen_support=$enable_dlopen
21286
21287 # Whether dlopen of programs is supported.
21288 dlopen_self=$enable_dlopen_self
21289
21290 # Whether dlopen of statically linked programs is supported.
21291 dlopen_self_static=$enable_dlopen_self_static
21292
21293 # Compiler flag to prevent dynamic linking.
21294 link_static_flag=$lt_lt_prog_compiler_static_CXX
21295
21296 # Compiler flag to turn off builtin functions.
21297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21298
21299 # Compiler flag to allow reflexive dlopens.
21300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21301
21302 # Compiler flag to generate shared objects directly from archives.
21303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21304
21305 # Compiler flag to generate thread-safe objects.
21306 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21307
21308 # Library versioning type.
21309 version_type=$version_type
21310
21311 # Format of library name prefix.
21312 libname_spec=$lt_libname_spec
21313
21314 # List of archive names.  First name is the real one, the rest are links.
21315 # The last name is the one that the linker finds with -lNAME.
21316 library_names_spec=$lt_library_names_spec
21317
21318 # The coded name of the library, if different from the real name.
21319 soname_spec=$lt_soname_spec
21320
21321 # Commands used to build and install an old-style archive.
21322 RANLIB=$lt_RANLIB
21323 old_archive_cmds=$lt_old_archive_cmds_CXX
21324 old_postinstall_cmds=$lt_old_postinstall_cmds
21325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21326
21327 # Create an old-style archive from a shared archive.
21328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21329
21330 # Create a temporary old-style archive to link instead of a shared archive.
21331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21332
21333 # Commands used to build and install a shared archive.
21334 archive_cmds=$lt_archive_cmds_CXX
21335 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21336 postinstall_cmds=$lt_postinstall_cmds
21337 postuninstall_cmds=$lt_postuninstall_cmds
21338
21339 # Commands used to build a loadable module (assumed same as above if empty)
21340 module_cmds=$lt_module_cmds_CXX
21341 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21342
21343 # Commands to strip libraries.
21344 old_striplib=$lt_old_striplib
21345 striplib=$lt_striplib
21346
21347 # Dependencies to place before the objects being linked to create a
21348 # shared library.
21349 predep_objects=$lt_predep_objects_CXX
21350
21351 # Dependencies to place after the objects being linked to create a
21352 # shared library.
21353 postdep_objects=$lt_postdep_objects_CXX
21354
21355 # Dependencies to place before the objects being linked to create a
21356 # shared library.
21357 predeps=$lt_predeps_CXX
21358
21359 # Dependencies to place after the objects being linked to create a
21360 # shared library.
21361 postdeps=$lt_postdeps_CXX
21362
21363 # The library search path used internally by the compiler when linking
21364 # a shared library.
21365 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21366
21367 # Method to check whether dependent libraries are shared objects.
21368 deplibs_check_method=$lt_deplibs_check_method
21369
21370 # Command to use when deplibs_check_method == file_magic.
21371 file_magic_cmd=$lt_file_magic_cmd
21372
21373 # Flag that allows shared libraries with undefined symbols to be built.
21374 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21375
21376 # Flag that forces no undefined symbols.
21377 no_undefined_flag=$lt_no_undefined_flag_CXX
21378
21379 # Commands used to finish a libtool library installation in a directory.
21380 finish_cmds=$lt_finish_cmds
21381
21382 # Same as above, but a single script fragment to be evaled but not shown.
21383 finish_eval=$lt_finish_eval
21384
21385 # Take the output of nm and produce a listing of raw symbols and C names.
21386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21387
21388 # Transform the output of nm in a proper C declaration
21389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21390
21391 # Transform the output of nm in a C name address pair
21392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21393
21394 # This is the shared library runtime path variable.
21395 runpath_var=$runpath_var
21396
21397 # This is the shared library path variable.
21398 shlibpath_var=$shlibpath_var
21399
21400 # Is shlibpath searched before the hard-coded library search path?
21401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21402
21403 # How to hardcode a shared library path into an executable.
21404 hardcode_action=$hardcode_action_CXX
21405
21406 # Whether we should hardcode library paths into libraries.
21407 hardcode_into_libs=$hardcode_into_libs
21408
21409 # Flag to hardcode \$libdir into a binary during linking.
21410 # This must work even if \$libdir does not exist.
21411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21412
21413 # If ld is used when linking, flag to hardcode \$libdir into
21414 # a binary during linking. This must work even if \$libdir does
21415 # not exist.
21416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21417
21418 # Whether we need a single -rpath flag with a separated argument.
21419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21420
21421 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21422 # resulting binary.
21423 hardcode_direct=$hardcode_direct_CXX
21424
21425 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21426 # resulting binary.
21427 hardcode_minus_L=$hardcode_minus_L_CXX
21428
21429 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21430 # the resulting binary.
21431 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21432
21433 # Set to yes if building a shared library automatically hardcodes DIR into the library
21434 # and all subsequent libraries and executables linked against it.
21435 hardcode_automatic=$hardcode_automatic_CXX
21436
21437 # Variables whose values should be saved in libtool wrapper scripts and
21438 # restored at relink time.
21439 variables_saved_for_relink="$variables_saved_for_relink"
21440
21441 # Whether libtool must link a program against all its dependency libraries.
21442 link_all_deplibs=$link_all_deplibs_CXX
21443
21444 # Compile-time system search path for libraries
21445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21446
21447 # Run-time system search path for libraries
21448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21449
21450 # Fix the shell variable \$srcfile for the compiler.
21451 fix_srcfile_path="$fix_srcfile_path_CXX"
21452
21453 # Set to yes if exported symbols are required.
21454 always_export_symbols=$always_export_symbols_CXX
21455
21456 # The commands to list exported symbols.
21457 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21458
21459 # The commands to extract the exported symbol list from a shared archive.
21460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21461
21462 # Symbols that should not be listed in the preloaded symbols.
21463 exclude_expsyms=$lt_exclude_expsyms_CXX
21464
21465 # Symbols that must always be exported.
21466 include_expsyms=$lt_include_expsyms_CXX
21467
21468 # ### END LIBTOOL TAG CONFIG: $tagname
21469
21470 __EOF__
21471
21472
21473 else
21474   # If there is no Makefile yet, we rely on a make rule to execute
21475   # `config.status --recheck' to rerun these tests and create the
21476   # libtool script then.
21477   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21478   if test -f "$ltmain_in"; then
21479     test -f Makefile && make "$ltmain"
21480   fi
21481 fi
21482
21483
21484 ac_ext=c
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490 CC=$lt_save_CC
21491 LDCXX=$LD
21492 LD=$lt_save_LD
21493 GCC=$lt_save_GCC
21494 with_gnu_ldcxx=$with_gnu_ld
21495 with_gnu_ld=$lt_save_with_gnu_ld
21496 lt_cv_path_LDCXX=$lt_cv_path_LD
21497 lt_cv_path_LD=$lt_save_path_LD
21498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21500
21501         else
21502           tagname=""
21503         fi
21504         ;;
21505
21506       F77)
21507         if test -n "$F77" && test "X$F77" != "Xno"; then
21508
21509 ac_ext=f
21510 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21511 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21513
21514
21515 archive_cmds_need_lc_F77=no
21516 allow_undefined_flag_F77=
21517 always_export_symbols_F77=no
21518 archive_expsym_cmds_F77=
21519 export_dynamic_flag_spec_F77=
21520 hardcode_direct_F77=no
21521 hardcode_libdir_flag_spec_F77=
21522 hardcode_libdir_flag_spec_ld_F77=
21523 hardcode_libdir_separator_F77=
21524 hardcode_minus_L_F77=no
21525 hardcode_automatic_F77=no
21526 module_cmds_F77=
21527 module_expsym_cmds_F77=
21528 link_all_deplibs_F77=unknown
21529 old_archive_cmds_F77=$old_archive_cmds
21530 no_undefined_flag_F77=
21531 whole_archive_flag_spec_F77=
21532 enable_shared_with_static_runtimes_F77=no
21533
21534 # Source file extension for f77 test sources.
21535 ac_ext=f
21536
21537 # Object file extension for compiled f77 test sources.
21538 objext=o
21539 objext_F77=$objext
21540
21541 # Code to be used in simple compile tests
21542 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21543
21544 # Code to be used in simple link tests
21545 lt_simple_link_test_code="      program t\n      end\n"
21546
21547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21548
21549 # If no C compiler was specified, use CC.
21550 LTCC=${LTCC-"$CC"}
21551
21552 # If no C compiler flags were specified, use CFLAGS.
21553 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21554
21555 # Allow CC to be a program name with arguments.
21556 compiler=$CC
21557
21558
21559 # save warnings/boilerplate of simple test code
21560 ac_outfile=conftest.$ac_objext
21561 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21563 _lt_compiler_boilerplate=`cat conftest.err`
21564 $rm conftest*
21565
21566 ac_outfile=conftest.$ac_objext
21567 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21569 _lt_linker_boilerplate=`cat conftest.err`
21570 $rm conftest*
21571
21572
21573 # Allow CC to be a program name with arguments.
21574 lt_save_CC="$CC"
21575 CC=${F77-"f77"}
21576 compiler=$CC
21577 compiler_F77=$CC
21578 for cc_temp in $compiler""; do
21579   case $cc_temp in
21580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21582     \-*) ;;
21583     *) break;;
21584   esac
21585 done
21586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21587
21588
21589 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21591 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21592 echo "${ECHO_T}$can_build_shared" >&6; }
21593
21594 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21596 test "$can_build_shared" = "no" && enable_shared=no
21597
21598 # On AIX, shared libraries and static libraries use the same namespace, and
21599 # are all built from PIC.
21600 case $host_os in
21601 aix3*)
21602   test "$enable_shared" = yes && enable_static=no
21603   if test -n "$RANLIB"; then
21604     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21605     postinstall_cmds='$RANLIB $lib'
21606   fi
21607   ;;
21608 aix4* | aix5*)
21609   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21610     test "$enable_shared" = yes && enable_static=no
21611   fi
21612   ;;
21613 esac
21614 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21615 echo "${ECHO_T}$enable_shared" >&6; }
21616
21617 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21618 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21619 # Make sure either enable_shared or enable_static is yes.
21620 test "$enable_shared" = yes || enable_static=yes
21621 { echo "$as_me:$LINENO: result: $enable_static" >&5
21622 echo "${ECHO_T}$enable_static" >&6; }
21623
21624 GCC_F77="$G77"
21625 LD_F77="$LD"
21626
21627 lt_prog_compiler_wl_F77=
21628 lt_prog_compiler_pic_F77=
21629 lt_prog_compiler_static_F77=
21630
21631 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21632 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21633
21634   if test "$GCC" = yes; then
21635     lt_prog_compiler_wl_F77='-Wl,'
21636     lt_prog_compiler_static_F77='-static'
21637
21638     case $host_os in
21639       aix*)
21640       # All AIX code is PIC.
21641       if test "$host_cpu" = ia64; then
21642         # AIX 5 now supports IA64 processor
21643         lt_prog_compiler_static_F77='-Bstatic'
21644       fi
21645       ;;
21646
21647     amigaos*)
21648       # FIXME: we need at least 68020 code to build shared libraries, but
21649       # adding the `-m68020' flag to GCC prevents building anything better,
21650       # like `-m68040'.
21651       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21652       ;;
21653
21654     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21655       # PIC is the default for these OSes.
21656       ;;
21657
21658     mingw* | pw32* | os2*)
21659       # This hack is so that the source file can tell whether it is being
21660       # built for inclusion in a dll (and should export symbols for example).
21661       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21662       ;;
21663
21664     darwin* | rhapsody*)
21665       # PIC is the default on this platform
21666       # Common symbols not allowed in MH_DYLIB files
21667       lt_prog_compiler_pic_F77='-fno-common'
21668       ;;
21669
21670     interix3*)
21671       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21672       # Instead, we relocate shared libraries at runtime.
21673       ;;
21674
21675     msdosdjgpp*)
21676       # Just because we use GCC doesn't mean we suddenly get shared libraries
21677       # on systems that don't support them.
21678       lt_prog_compiler_can_build_shared_F77=no
21679       enable_shared=no
21680       ;;
21681
21682     sysv4*MP*)
21683       if test -d /usr/nec; then
21684         lt_prog_compiler_pic_F77=-Kconform_pic
21685       fi
21686       ;;
21687
21688     hpux*)
21689       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21690       # not for PA HP-UX.
21691       case $host_cpu in
21692       hppa*64*|ia64*)
21693         # +Z the default
21694         ;;
21695       *)
21696         lt_prog_compiler_pic_F77='-fPIC'
21697         ;;
21698       esac
21699       ;;
21700
21701     *)
21702       lt_prog_compiler_pic_F77='-fPIC'
21703       ;;
21704     esac
21705   else
21706     # PORTME Check for flag to pass linker flags through the system compiler.
21707     case $host_os in
21708     aix*)
21709       lt_prog_compiler_wl_F77='-Wl,'
21710       if test "$host_cpu" = ia64; then
21711         # AIX 5 now supports IA64 processor
21712         lt_prog_compiler_static_F77='-Bstatic'
21713       else
21714         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21715       fi
21716       ;;
21717       darwin*)
21718         # PIC is the default on this platform
21719         # Common symbols not allowed in MH_DYLIB files
21720        case $cc_basename in
21721          xlc*)
21722          lt_prog_compiler_pic_F77='-qnocommon'
21723          lt_prog_compiler_wl_F77='-Wl,'
21724          ;;
21725        esac
21726        ;;
21727
21728     mingw* | pw32* | os2*)
21729       # This hack is so that the source file can tell whether it is being
21730       # built for inclusion in a dll (and should export symbols for example).
21731       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21732       ;;
21733
21734     hpux9* | hpux10* | hpux11*)
21735       lt_prog_compiler_wl_F77='-Wl,'
21736       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737       # not for PA HP-UX.
21738       case $host_cpu in
21739       hppa*64*|ia64*)
21740         # +Z the default
21741         ;;
21742       *)
21743         lt_prog_compiler_pic_F77='+Z'
21744         ;;
21745       esac
21746       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21747       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21748       ;;
21749
21750     irix5* | irix6* | nonstopux*)
21751       lt_prog_compiler_wl_F77='-Wl,'
21752       # PIC (with -KPIC) is the default.
21753       lt_prog_compiler_static_F77='-non_shared'
21754       ;;
21755
21756     newsos6)
21757       lt_prog_compiler_pic_F77='-KPIC'
21758       lt_prog_compiler_static_F77='-Bstatic'
21759       ;;
21760
21761     linux*)
21762       case $cc_basename in
21763       icc* | ecc*)
21764         lt_prog_compiler_wl_F77='-Wl,'
21765         lt_prog_compiler_pic_F77='-KPIC'
21766         lt_prog_compiler_static_F77='-static'
21767         ;;
21768       pgcc* | pgf77* | pgf90* | pgf95*)
21769         # Portland Group compilers (*not* the Pentium gcc compiler,
21770         # which looks to be a dead project)
21771         lt_prog_compiler_wl_F77='-Wl,'
21772         lt_prog_compiler_pic_F77='-fpic'
21773         lt_prog_compiler_static_F77='-Bstatic'
21774         ;;
21775       ccc*)
21776         lt_prog_compiler_wl_F77='-Wl,'
21777         # All Alpha code is PIC.
21778         lt_prog_compiler_static_F77='-non_shared'
21779         ;;
21780       esac
21781       ;;
21782
21783     osf3* | osf4* | osf5*)
21784       lt_prog_compiler_wl_F77='-Wl,'
21785       # All OSF/1 code is PIC.
21786       lt_prog_compiler_static_F77='-non_shared'
21787       ;;
21788
21789     solaris*)
21790       lt_prog_compiler_pic_F77='-KPIC'
21791       lt_prog_compiler_static_F77='-Bstatic'
21792       case $cc_basename in
21793       f77* | f90* | f95*)
21794         lt_prog_compiler_wl_F77='-Qoption ld ';;
21795       *)
21796         lt_prog_compiler_wl_F77='-Wl,';;
21797       esac
21798       ;;
21799
21800     sunos4*)
21801       lt_prog_compiler_wl_F77='-Qoption ld '
21802       lt_prog_compiler_pic_F77='-PIC'
21803       lt_prog_compiler_static_F77='-Bstatic'
21804       ;;
21805
21806     sysv4 | sysv4.2uw2* | sysv4.3*)
21807       lt_prog_compiler_wl_F77='-Wl,'
21808       lt_prog_compiler_pic_F77='-KPIC'
21809       lt_prog_compiler_static_F77='-Bstatic'
21810       ;;
21811
21812     sysv4*MP*)
21813       if test -d /usr/nec ;then
21814         lt_prog_compiler_pic_F77='-Kconform_pic'
21815         lt_prog_compiler_static_F77='-Bstatic'
21816       fi
21817       ;;
21818
21819     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21820       lt_prog_compiler_wl_F77='-Wl,'
21821       lt_prog_compiler_pic_F77='-KPIC'
21822       lt_prog_compiler_static_F77='-Bstatic'
21823       ;;
21824
21825     unicos*)
21826       lt_prog_compiler_wl_F77='-Wl,'
21827       lt_prog_compiler_can_build_shared_F77=no
21828       ;;
21829
21830     uts4*)
21831       lt_prog_compiler_pic_F77='-pic'
21832       lt_prog_compiler_static_F77='-Bstatic'
21833       ;;
21834
21835     *)
21836       lt_prog_compiler_can_build_shared_F77=no
21837       ;;
21838     esac
21839   fi
21840
21841 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21842 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21843
21844 #
21845 # Check to make sure the PIC flag actually works.
21846 #
21847 if test -n "$lt_prog_compiler_pic_F77"; then
21848
21849 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21850 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21851 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854   lt_prog_compiler_pic_works_F77=no
21855   ac_outfile=conftest.$ac_objext
21856    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21857    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21858    # Insert the option either (1) after the last *FLAGS variable, or
21859    # (2) before a word containing "conftest.", or (3) at the end.
21860    # Note that $ac_compile itself does not contain backslashes and begins
21861    # with a dollar sign (not a hyphen), so the echo should work correctly.
21862    # The option is referenced via a variable to avoid confusing sed.
21863    lt_compile=`echo "$ac_compile" | $SED \
21864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21866    -e 's:$: $lt_compiler_flag:'`
21867    (eval echo "\"\$as_me:21867: $lt_compile\"" >&5)
21868    (eval "$lt_compile" 2>conftest.err)
21869    ac_status=$?
21870    cat conftest.err >&5
21871    echo "$as_me:21871: \$? = $ac_status" >&5
21872    if (exit $ac_status) && test -s "$ac_outfile"; then
21873      # The compiler can only warn and ignore the option if not recognized
21874      # So say no if there are warnings other than the usual output.
21875      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21876      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21877      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21878        lt_prog_compiler_pic_works_F77=yes
21879      fi
21880    fi
21881    $rm conftest*
21882
21883 fi
21884 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21885 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21886
21887 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21888     case $lt_prog_compiler_pic_F77 in
21889      "" | " "*) ;;
21890      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21891      esac
21892 else
21893     lt_prog_compiler_pic_F77=
21894      lt_prog_compiler_can_build_shared_F77=no
21895 fi
21896
21897 fi
21898 case $host_os in
21899   # For platforms which do not support PIC, -DPIC is meaningless:
21900   *djgpp*)
21901     lt_prog_compiler_pic_F77=
21902     ;;
21903   *)
21904     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21905     ;;
21906 esac
21907
21908 #
21909 # Check to make sure the static flag actually works.
21910 #
21911 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21912 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21913 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21914 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21915   echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917   lt_prog_compiler_static_works_F77=no
21918    save_LDFLAGS="$LDFLAGS"
21919    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21920    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21921    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21922      # The linker can only warn and ignore the option if not recognized
21923      # So say no if there are warnings
21924      if test -s conftest.err; then
21925        # Append any errors to the config.log.
21926        cat conftest.err 1>&5
21927        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21928        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21929        if diff conftest.exp conftest.er2 >/dev/null; then
21930          lt_prog_compiler_static_works_F77=yes
21931        fi
21932      else
21933        lt_prog_compiler_static_works_F77=yes
21934      fi
21935    fi
21936    $rm conftest*
21937    LDFLAGS="$save_LDFLAGS"
21938
21939 fi
21940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21941 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21942
21943 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21944     :
21945 else
21946     lt_prog_compiler_static_F77=
21947 fi
21948
21949
21950 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21951 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21952 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   lt_cv_prog_compiler_c_o_F77=no
21956    $rm -r conftest 2>/dev/null
21957    mkdir conftest
21958    cd conftest
21959    mkdir out
21960    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21961
21962    lt_compiler_flag="-o out/conftest2.$ac_objext"
21963    # Insert the option either (1) after the last *FLAGS variable, or
21964    # (2) before a word containing "conftest.", or (3) at the end.
21965    # Note that $ac_compile itself does not contain backslashes and begins
21966    # with a dollar sign (not a hyphen), so the echo should work correctly.
21967    lt_compile=`echo "$ac_compile" | $SED \
21968    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21969    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21970    -e 's:$: $lt_compiler_flag:'`
21971    (eval echo "\"\$as_me:21971: $lt_compile\"" >&5)
21972    (eval "$lt_compile" 2>out/conftest.err)
21973    ac_status=$?
21974    cat out/conftest.err >&5
21975    echo "$as_me:21975: \$? = $ac_status" >&5
21976    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21977    then
21978      # The compiler can only warn and ignore the option if not recognized
21979      # So say no if there are warnings
21980      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21981      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21982      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21983        lt_cv_prog_compiler_c_o_F77=yes
21984      fi
21985    fi
21986    chmod u+w . 2>&5
21987    $rm conftest*
21988    # SGI C++ compiler will create directory out/ii_files/ for
21989    # template instantiation
21990    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21991    $rm out/* && rmdir out
21992    cd ..
21993    rmdir conftest
21994    $rm conftest*
21995
21996 fi
21997 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21999
22000
22001 hard_links="nottested"
22002 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22003   # do not overwrite the value of need_locks provided by the user
22004   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22006   hard_links=yes
22007   $rm conftest*
22008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22009   touch conftest.a
22010   ln conftest.a conftest.b 2>&5 || hard_links=no
22011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22012   { echo "$as_me:$LINENO: result: $hard_links" >&5
22013 echo "${ECHO_T}$hard_links" >&6; }
22014   if test "$hard_links" = no; then
22015     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22017     need_locks=warn
22018   fi
22019 else
22020   need_locks=no
22021 fi
22022
22023 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22025
22026   runpath_var=
22027   allow_undefined_flag_F77=
22028   enable_shared_with_static_runtimes_F77=no
22029   archive_cmds_F77=
22030   archive_expsym_cmds_F77=
22031   old_archive_From_new_cmds_F77=
22032   old_archive_from_expsyms_cmds_F77=
22033   export_dynamic_flag_spec_F77=
22034   whole_archive_flag_spec_F77=
22035   thread_safe_flag_spec_F77=
22036   hardcode_libdir_flag_spec_F77=
22037   hardcode_libdir_flag_spec_ld_F77=
22038   hardcode_libdir_separator_F77=
22039   hardcode_direct_F77=no
22040   hardcode_minus_L_F77=no
22041   hardcode_shlibpath_var_F77=unsupported
22042   link_all_deplibs_F77=unknown
22043   hardcode_automatic_F77=no
22044   module_cmds_F77=
22045   module_expsym_cmds_F77=
22046   always_export_symbols_F77=no
22047   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22048   # include_expsyms should be a list of space-separated symbols to be *always*
22049   # included in the symbol list
22050   include_expsyms_F77=
22051   # exclude_expsyms can be an extended regexp of symbols to exclude
22052   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22053   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22054   # as well as any symbol that contains `d'.
22055   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22056   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22057   # platforms (ab)use it in PIC code, but their linkers get confused if
22058   # the symbol is explicitly referenced.  Since portable code cannot
22059   # rely on this symbol name, it's probably fine to never include it in
22060   # preloaded symbol tables.
22061   extract_expsyms_cmds=
22062   # Just being paranoid about ensuring that cc_basename is set.
22063   for cc_temp in $compiler""; do
22064   case $cc_temp in
22065     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22066     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22067     \-*) ;;
22068     *) break;;
22069   esac
22070 done
22071 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22072
22073   case $host_os in
22074   cygwin* | mingw* | pw32*)
22075     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22076     # When not using gcc, we currently assume that we are using
22077     # Microsoft Visual C++.
22078     if test "$GCC" != yes; then
22079       with_gnu_ld=no
22080     fi
22081     ;;
22082   interix*)
22083     # we just hope/assume this is gcc and not c89 (= MSVC++)
22084     with_gnu_ld=yes
22085     ;;
22086   openbsd*)
22087     with_gnu_ld=no
22088     ;;
22089   esac
22090
22091   ld_shlibs_F77=yes
22092   if test "$with_gnu_ld" = yes; then
22093     # If archive_cmds runs LD, not CC, wlarc should be empty
22094     wlarc='${wl}'
22095
22096     # Set some defaults for GNU ld with shared library support. These
22097     # are reset later if shared libraries are not supported. Putting them
22098     # here allows them to be overridden if necessary.
22099     runpath_var=LD_RUN_PATH
22100     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22101     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22102     # ancient GNU ld didn't support --whole-archive et. al.
22103     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22104         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22105       else
22106         whole_archive_flag_spec_F77=
22107     fi
22108     supports_anon_versioning=no
22109     case `$LD -v 2>/dev/null` in
22110       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22111       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22112       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22113       *\ 2.11.*) ;; # other 2.11 versions
22114       *) supports_anon_versioning=yes ;;
22115     esac
22116
22117     # See if GNU ld supports shared libraries.
22118     case $host_os in
22119     aix3* | aix4* | aix5*)
22120       # On AIX/PPC, the GNU linker is very broken
22121       if test "$host_cpu" != ia64; then
22122         ld_shlibs_F77=no
22123         cat <<EOF 1>&2
22124
22125 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22126 *** to be unable to reliably create shared libraries on AIX.
22127 *** Therefore, libtool is disabling shared libraries support.  If you
22128 *** really care for shared libraries, you may want to modify your PATH
22129 *** so that a non-GNU linker is found, and then restart.
22130
22131 EOF
22132       fi
22133       ;;
22134
22135     amigaos*)
22136       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)'
22137       hardcode_libdir_flag_spec_F77='-L$libdir'
22138       hardcode_minus_L_F77=yes
22139
22140       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22141       # that the semantics of dynamic libraries on AmigaOS, at least up
22142       # to version 4, is to share data among multiple programs linked
22143       # with the same dynamic library.  Since this doesn't match the
22144       # behavior of shared libraries on other platforms, we can't use
22145       # them.
22146       ld_shlibs_F77=no
22147       ;;
22148
22149     beos*)
22150       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22151         allow_undefined_flag_F77=unsupported
22152         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22153         # support --undefined.  This deserves some investigation.  FIXME
22154         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22155       else
22156         ld_shlibs_F77=no
22157       fi
22158       ;;
22159
22160     cygwin* | mingw* | pw32*)
22161       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22162       # as there is no search path for DLLs.
22163       hardcode_libdir_flag_spec_F77='-L$libdir'
22164       allow_undefined_flag_F77=unsupported
22165       always_export_symbols_F77=no
22166       enable_shared_with_static_runtimes_F77=yes
22167       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22168
22169       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22170         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22171         # If the export-symbols file already is a .def file (1st line
22172         # is EXPORTS), use it as is; otherwise, prepend...
22173         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22174           cp $export_symbols $output_objdir/$soname.def;
22175         else
22176           echo EXPORTS > $output_objdir/$soname.def;
22177           cat $export_symbols >> $output_objdir/$soname.def;
22178         fi~
22179         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22180       else
22181         ld_shlibs_F77=no
22182       fi
22183       ;;
22184
22185     interix3*)
22186       hardcode_direct_F77=no
22187       hardcode_shlibpath_var_F77=no
22188       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22189       export_dynamic_flag_spec_F77='${wl}-E'
22190       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22191       # Instead, shared libraries are loaded at an image base (0x10000000 by
22192       # default) and relocated if they conflict, which is a slow very memory
22193       # consuming and fragmenting process.  To avoid this, we pick a random,
22194       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22195       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22196       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'
22197       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'
22198       ;;
22199
22200     linux*)
22201       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22202         tmp_addflag=
22203         case $cc_basename,$host_cpu in
22204         pgcc*)                          # Portland Group C compiler
22205           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'
22206           tmp_addflag=' $pic_flag'
22207           ;;
22208         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22209           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'
22210           tmp_addflag=' $pic_flag -Mnomain' ;;
22211         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22212           tmp_addflag=' -i_dynamic' ;;
22213         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22214           tmp_addflag=' -i_dynamic -nofor_main' ;;
22215         ifc* | ifort*)                  # Intel Fortran compiler
22216           tmp_addflag=' -nofor_main' ;;
22217         esac
22218         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22219
22220         if test $supports_anon_versioning = yes; then
22221           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22222   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22223   $echo "local: *; };" >> $output_objdir/$libname.ver~
22224           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22225         fi
22226       else
22227         ld_shlibs_F77=no
22228       fi
22229       ;;
22230
22231     netbsd*)
22232       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22233         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22234         wlarc=
22235       else
22236         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22237         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22238       fi
22239       ;;
22240
22241     solaris*)
22242       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22243         ld_shlibs_F77=no
22244         cat <<EOF 1>&2
22245
22246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22247 *** create shared libraries on Solaris systems.  Therefore, libtool
22248 *** is disabling shared libraries support.  We urge you to upgrade GNU
22249 *** binutils to release 2.9.1 or newer.  Another option is to modify
22250 *** your PATH or compiler configuration so that the native linker is
22251 *** used, and then restart.
22252
22253 EOF
22254       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22255         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22256         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22257       else
22258         ld_shlibs_F77=no
22259       fi
22260       ;;
22261
22262     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22263       case `$LD -v 2>&1` in
22264         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22265         ld_shlibs_F77=no
22266         cat <<_LT_EOF 1>&2
22267
22268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22269 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22270 *** is disabling shared libraries support.  We urge you to upgrade GNU
22271 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22272 *** your PATH or compiler configuration so that the native linker is
22273 *** used, and then restart.
22274
22275 _LT_EOF
22276         ;;
22277         *)
22278           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22279             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22280             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22281             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22282           else
22283             ld_shlibs_F77=no
22284           fi
22285         ;;
22286       esac
22287       ;;
22288
22289     sunos4*)
22290       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22291       wlarc=
22292       hardcode_direct_F77=yes
22293       hardcode_shlibpath_var_F77=no
22294       ;;
22295
22296     *)
22297       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22298         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22299         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22300       else
22301         ld_shlibs_F77=no
22302       fi
22303       ;;
22304     esac
22305
22306     if test "$ld_shlibs_F77" = no; then
22307       runpath_var=
22308       hardcode_libdir_flag_spec_F77=
22309       export_dynamic_flag_spec_F77=
22310       whole_archive_flag_spec_F77=
22311     fi
22312   else
22313     # PORTME fill in a description of your system's linker (not GNU ld)
22314     case $host_os in
22315     aix3*)
22316       allow_undefined_flag_F77=unsupported
22317       always_export_symbols_F77=yes
22318       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'
22319       # Note: this linker hardcodes the directories in LIBPATH if there
22320       # are no directories specified by -L.
22321       hardcode_minus_L_F77=yes
22322       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22323         # Neither direct hardcoding nor static linking is supported with a
22324         # broken collect2.
22325         hardcode_direct_F77=unsupported
22326       fi
22327       ;;
22328
22329     aix4* | aix5*)
22330       if test "$host_cpu" = ia64; then
22331         # On IA64, the linker does run time linking by default, so we don't
22332         # have to do anything special.
22333         aix_use_runtimelinking=no
22334         exp_sym_flag='-Bexport'
22335         no_entry_flag=""
22336       else
22337         # If we're using GNU nm, then we don't want the "-C" option.
22338         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22339         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22340           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'
22341         else
22342           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'
22343         fi
22344         aix_use_runtimelinking=no
22345
22346         # Test if we are trying to use run time linking or normal
22347         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22348         # need to do runtime linking.
22349         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22350           for ld_flag in $LDFLAGS; do
22351           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22352             aix_use_runtimelinking=yes
22353             break
22354           fi
22355           done
22356           ;;
22357         esac
22358
22359         exp_sym_flag='-bexport'
22360         no_entry_flag='-bnoentry'
22361       fi
22362
22363       # When large executables or shared objects are built, AIX ld can
22364       # have problems creating the table of contents.  If linking a library
22365       # or program results in "error TOC overflow" add -mminimal-toc to
22366       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22367       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22368
22369       archive_cmds_F77=''
22370       hardcode_direct_F77=yes
22371       hardcode_libdir_separator_F77=':'
22372       link_all_deplibs_F77=yes
22373
22374       if test "$GCC" = yes; then
22375         case $host_os in aix4.[012]|aix4.[012].*)
22376         # We only want to do this on AIX 4.2 and lower, the check
22377         # below for broken collect2 doesn't work under 4.3+
22378           collect2name=`${CC} -print-prog-name=collect2`
22379           if test -f "$collect2name" && \
22380            strings "$collect2name" | grep resolve_lib_name >/dev/null
22381           then
22382           # We have reworked collect2
22383           hardcode_direct_F77=yes
22384           else
22385           # We have old collect2
22386           hardcode_direct_F77=unsupported
22387           # It fails to find uninstalled libraries when the uninstalled
22388           # path is not listed in the libpath.  Setting hardcode_minus_L
22389           # to unsupported forces relinking
22390           hardcode_minus_L_F77=yes
22391           hardcode_libdir_flag_spec_F77='-L$libdir'
22392           hardcode_libdir_separator_F77=
22393           fi
22394           ;;
22395         esac
22396         shared_flag='-shared'
22397         if test "$aix_use_runtimelinking" = yes; then
22398           shared_flag="$shared_flag "'${wl}-G'
22399         fi
22400       else
22401         # not using gcc
22402         if test "$host_cpu" = ia64; then
22403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22404         # chokes on -Wl,-G. The following line is correct:
22405           shared_flag='-G'
22406         else
22407           if test "$aix_use_runtimelinking" = yes; then
22408             shared_flag='${wl}-G'
22409           else
22410             shared_flag='${wl}-bM:SRE'
22411           fi
22412         fi
22413       fi
22414
22415       # It seems that -bexpall does not export symbols beginning with
22416       # underscore (_), so it is better to generate a list of symbols to export.
22417       always_export_symbols_F77=yes
22418       if test "$aix_use_runtimelinking" = yes; then
22419         # Warning - without using the other runtime loading flags (-brtl),
22420         # -berok will link without error, but may produce a broken library.
22421         allow_undefined_flag_F77='-berok'
22422        # Determine the default libpath from the value encoded in an empty executable.
22423        cat >conftest.$ac_ext <<_ACEOF
22424       program main
22425
22426       end
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432   *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435   (eval "$ac_link") 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } &&
22442          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22443   { (case "(($ac_try" in
22444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445   *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448   (eval "$ac_try") 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; } &&
22452          { ac_try='test -s conftest$ac_exeext'
22453   { (case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_try") 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462
22463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22464 }'`
22465 # Check for a 64-bit object if we didn't find anything.
22466 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; }
22467 }'`; fi
22468 else
22469   echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472
22473 fi
22474
22475 rm -f core conftest.err conftest.$ac_objext \
22476       conftest$ac_exeext conftest.$ac_ext
22477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22478
22479        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22480         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"
22481        else
22482         if test "$host_cpu" = ia64; then
22483           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22484           allow_undefined_flag_F77="-z nodefs"
22485           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"
22486         else
22487          # Determine the default libpath from the value encoded in an empty executable.
22488          cat >conftest.$ac_ext <<_ACEOF
22489       program main
22490
22491       end
22492 _ACEOF
22493 rm -f conftest.$ac_objext conftest$ac_exeext
22494 if { (ac_try="$ac_link"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_link") 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } &&
22507          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22508   { (case "(($ac_try" in
22509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510   *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513   (eval "$ac_try") 2>&5
22514   ac_status=$?
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); }; } &&
22517          { ac_try='test -s conftest$ac_exeext'
22518   { (case "(($ac_try" in
22519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520   *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523   (eval "$ac_try") 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); }; }; then
22527
22528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22529 }'`
22530 # Check for a 64-bit object if we didn't find anything.
22531 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; }
22532 }'`; fi
22533 else
22534   echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537
22538 fi
22539
22540 rm -f core conftest.err conftest.$ac_objext \
22541       conftest$ac_exeext conftest.$ac_ext
22542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22543
22544          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22545           # Warning - without using the other run time loading flags,
22546           # -berok will link without error, but may produce a broken library.
22547           no_undefined_flag_F77=' ${wl}-bernotok'
22548           allow_undefined_flag_F77=' ${wl}-berok'
22549           # Exported symbols can be pulled into shared objects from archives
22550           whole_archive_flag_spec_F77='$convenience'
22551           archive_cmds_need_lc_F77=yes
22552           # This is similar to how AIX traditionally builds its shared libraries.
22553           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'
22554         fi
22555       fi
22556       ;;
22557
22558     amigaos*)
22559       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)'
22560       hardcode_libdir_flag_spec_F77='-L$libdir'
22561       hardcode_minus_L_F77=yes
22562       # see comment about different semantics on the GNU ld section
22563       ld_shlibs_F77=no
22564       ;;
22565
22566     bsdi[45]*)
22567       export_dynamic_flag_spec_F77=-rdynamic
22568       ;;
22569
22570     cygwin* | mingw* | pw32*)
22571       # When not using gcc, we currently assume that we are using
22572       # Microsoft Visual C++.
22573       # hardcode_libdir_flag_spec is actually meaningless, as there is
22574       # no search path for DLLs.
22575       hardcode_libdir_flag_spec_F77=' '
22576       allow_undefined_flag_F77=unsupported
22577       # Tell ltmain to make .lib files, not .a files.
22578       libext=lib
22579       # Tell ltmain to make .dll files, not .so files.
22580       shrext_cmds=".dll"
22581       # FIXME: Setting linknames here is a bad hack.
22582       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22583       # The linker will automatically build a .lib file if we build a DLL.
22584       old_archive_From_new_cmds_F77='true'
22585       # FIXME: Should let the user specify the lib program.
22586       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22587       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22588       enable_shared_with_static_runtimes_F77=yes
22589       ;;
22590
22591     darwin* | rhapsody*)
22592       case $host_os in
22593         rhapsody* | darwin1.[012])
22594          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22595          ;;
22596        *) # Darwin 1.3 on
22597          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22598            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22599          else
22600            case ${MACOSX_DEPLOYMENT_TARGET} in
22601              10.[012])
22602                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22603                ;;
22604              10.*)
22605                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22606                ;;
22607            esac
22608          fi
22609          ;;
22610       esac
22611       archive_cmds_need_lc_F77=no
22612       hardcode_direct_F77=no
22613       hardcode_automatic_F77=yes
22614       hardcode_shlibpath_var_F77=unsupported
22615       whole_archive_flag_spec_F77=''
22616       link_all_deplibs_F77=yes
22617     if test "$GCC" = yes ; then
22618         output_verbose_link_cmd='echo'
22619         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22620       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22621       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22622       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}'
22623       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}'
22624     else
22625       case $cc_basename in
22626         xlc*)
22627          output_verbose_link_cmd='echo'
22628          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22629          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22630           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22631          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}'
22632           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}'
22633           ;;
22634        *)
22635          ld_shlibs_F77=no
22636           ;;
22637       esac
22638     fi
22639       ;;
22640
22641     dgux*)
22642       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643       hardcode_libdir_flag_spec_F77='-L$libdir'
22644       hardcode_shlibpath_var_F77=no
22645       ;;
22646
22647     freebsd1*)
22648       ld_shlibs_F77=no
22649       ;;
22650
22651     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22652     # support.  Future versions do this automatically, but an explicit c++rt0.o
22653     # does not break anything, and helps significantly (at the cost of a little
22654     # extra space).
22655     freebsd2.2*)
22656       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22657       hardcode_libdir_flag_spec_F77='-R$libdir'
22658       hardcode_direct_F77=yes
22659       hardcode_shlibpath_var_F77=no
22660       ;;
22661
22662     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22663     freebsd2*)
22664       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22665       hardcode_direct_F77=yes
22666       hardcode_minus_L_F77=yes
22667       hardcode_shlibpath_var_F77=no
22668       ;;
22669
22670     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22671     freebsd* | kfreebsd*-gnu | dragonfly*)
22672       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22673       hardcode_libdir_flag_spec_F77='-R$libdir'
22674       hardcode_direct_F77=yes
22675       hardcode_shlibpath_var_F77=no
22676       ;;
22677
22678     hpux9*)
22679       if test "$GCC" = yes; then
22680         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'
22681       else
22682         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'
22683       fi
22684       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22685       hardcode_libdir_separator_F77=:
22686       hardcode_direct_F77=yes
22687
22688       # hardcode_minus_L: Not really in the search PATH,
22689       # but as the default location of the library.
22690       hardcode_minus_L_F77=yes
22691       export_dynamic_flag_spec_F77='${wl}-E'
22692       ;;
22693
22694     hpux10*)
22695       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22696         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22697       else
22698         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22699       fi
22700       if test "$with_gnu_ld" = no; then
22701         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22702         hardcode_libdir_separator_F77=:
22703
22704         hardcode_direct_F77=yes
22705         export_dynamic_flag_spec_F77='${wl}-E'
22706
22707         # hardcode_minus_L: Not really in the search PATH,
22708         # but as the default location of the library.
22709         hardcode_minus_L_F77=yes
22710       fi
22711       ;;
22712
22713     hpux11*)
22714       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22715         case $host_cpu in
22716         hppa*64*)
22717           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22718           ;;
22719         ia64*)
22720           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22721           ;;
22722         *)
22723           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22724           ;;
22725         esac
22726       else
22727         case $host_cpu in
22728         hppa*64*)
22729           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22730           ;;
22731         ia64*)
22732           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22733           ;;
22734         *)
22735           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22736           ;;
22737         esac
22738       fi
22739       if test "$with_gnu_ld" = no; then
22740         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22741         hardcode_libdir_separator_F77=:
22742
22743         case $host_cpu in
22744         hppa*64*|ia64*)
22745           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22746           hardcode_direct_F77=no
22747           hardcode_shlibpath_var_F77=no
22748           ;;
22749         *)
22750           hardcode_direct_F77=yes
22751           export_dynamic_flag_spec_F77='${wl}-E'
22752
22753           # hardcode_minus_L: Not really in the search PATH,
22754           # but as the default location of the library.
22755           hardcode_minus_L_F77=yes
22756           ;;
22757         esac
22758       fi
22759       ;;
22760
22761     irix5* | irix6* | nonstopux*)
22762       if test "$GCC" = yes; then
22763         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'
22764       else
22765         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'
22766         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22767       fi
22768       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22769       hardcode_libdir_separator_F77=:
22770       link_all_deplibs_F77=yes
22771       ;;
22772
22773     netbsd*)
22774       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22775         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22776       else
22777         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22778       fi
22779       hardcode_libdir_flag_spec_F77='-R$libdir'
22780       hardcode_direct_F77=yes
22781       hardcode_shlibpath_var_F77=no
22782       ;;
22783
22784     newsos6)
22785       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22786       hardcode_direct_F77=yes
22787       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22788       hardcode_libdir_separator_F77=:
22789       hardcode_shlibpath_var_F77=no
22790       ;;
22791
22792     openbsd*)
22793       hardcode_direct_F77=yes
22794       hardcode_shlibpath_var_F77=no
22795       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22796         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22797         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22798         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22799         export_dynamic_flag_spec_F77='${wl}-E'
22800       else
22801        case $host_os in
22802          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22803            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22804            hardcode_libdir_flag_spec_F77='-R$libdir'
22805            ;;
22806          *)
22807            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22808            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22809            ;;
22810        esac
22811       fi
22812       ;;
22813
22814     os2*)
22815       hardcode_libdir_flag_spec_F77='-L$libdir'
22816       hardcode_minus_L_F77=yes
22817       allow_undefined_flag_F77=unsupported
22818       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'
22819       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22820       ;;
22821
22822     osf3*)
22823       if test "$GCC" = yes; then
22824         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22825         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'
22826       else
22827         allow_undefined_flag_F77=' -expect_unresolved \*'
22828         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'
22829       fi
22830       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22831       hardcode_libdir_separator_F77=:
22832       ;;
22833
22834     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22835       if test "$GCC" = yes; then
22836         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22837         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'
22838         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22839       else
22840         allow_undefined_flag_F77=' -expect_unresolved \*'
22841         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'
22842         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~
22843         $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'
22844
22845         # Both c and cxx compiler support -rpath directly
22846         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22847       fi
22848       hardcode_libdir_separator_F77=:
22849       ;;
22850
22851     solaris*)
22852       no_undefined_flag_F77=' -z text'
22853       if test "$GCC" = yes; then
22854         wlarc='${wl}'
22855         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22856         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22857           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22858       else
22859         wlarc=''
22860         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22861         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22862         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22863       fi
22864       hardcode_libdir_flag_spec_F77='-R$libdir'
22865       hardcode_shlibpath_var_F77=no
22866       case $host_os in
22867       solaris2.[0-5] | solaris2.[0-5].*) ;;
22868       *)
22869         # The compiler driver will combine linker options so we
22870         # cannot just pass the convience library names through
22871         # without $wl, iff we do not link with $LD.
22872         # Luckily, gcc supports the same syntax we need for Sun Studio.
22873         # Supported since Solaris 2.6 (maybe 2.5.1?)
22874         case $wlarc in
22875         '')
22876           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22877         *)
22878           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' ;;
22879         esac ;;
22880       esac
22881       link_all_deplibs_F77=yes
22882       ;;
22883
22884     sunos4*)
22885       if test "x$host_vendor" = xsequent; then
22886         # Use $CC to link under sequent, because it throws in some extra .o
22887         # files that make .init and .fini sections work.
22888         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22889       else
22890         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22891       fi
22892       hardcode_libdir_flag_spec_F77='-L$libdir'
22893       hardcode_direct_F77=yes
22894       hardcode_minus_L_F77=yes
22895       hardcode_shlibpath_var_F77=no
22896       ;;
22897
22898     sysv4)
22899       case $host_vendor in
22900         sni)
22901           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22902           hardcode_direct_F77=yes # is this really true???
22903         ;;
22904         siemens)
22905           ## LD is ld it makes a PLAMLIB
22906           ## CC just makes a GrossModule.
22907           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22908           reload_cmds_F77='$CC -r -o $output$reload_objs'
22909           hardcode_direct_F77=no
22910         ;;
22911         motorola)
22912           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22913           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22914         ;;
22915       esac
22916       runpath_var='LD_RUN_PATH'
22917       hardcode_shlibpath_var_F77=no
22918       ;;
22919
22920     sysv4.3*)
22921       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22922       hardcode_shlibpath_var_F77=no
22923       export_dynamic_flag_spec_F77='-Bexport'
22924       ;;
22925
22926     sysv4*MP*)
22927       if test -d /usr/nec; then
22928         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929         hardcode_shlibpath_var_F77=no
22930         runpath_var=LD_RUN_PATH
22931         hardcode_runpath_var=yes
22932         ld_shlibs_F77=yes
22933       fi
22934       ;;
22935
22936     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22937       no_undefined_flag_F77='${wl}-z,text'
22938       archive_cmds_need_lc_F77=no
22939       hardcode_shlibpath_var_F77=no
22940       runpath_var='LD_RUN_PATH'
22941
22942       if test "$GCC" = yes; then
22943         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22944         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22945       else
22946         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22947         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22948       fi
22949       ;;
22950
22951     sysv5* | sco3.2v5* | sco5v6*)
22952       # Note: We can NOT use -z defs as we might desire, because we do not
22953       # link with -lc, and that would cause any symbols used from libc to
22954       # always be unresolved, which means just about no library would
22955       # ever link correctly.  If we're not using GNU ld we use -z text
22956       # though, which does catch some bad symbols but isn't as heavy-handed
22957       # as -z defs.
22958       no_undefined_flag_F77='${wl}-z,text'
22959       allow_undefined_flag_F77='${wl}-z,nodefs'
22960       archive_cmds_need_lc_F77=no
22961       hardcode_shlibpath_var_F77=no
22962       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22963       hardcode_libdir_separator_F77=':'
22964       link_all_deplibs_F77=yes
22965       export_dynamic_flag_spec_F77='${wl}-Bexport'
22966       runpath_var='LD_RUN_PATH'
22967
22968       if test "$GCC" = yes; then
22969         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22970         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22971       else
22972         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22973         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22974       fi
22975       ;;
22976
22977     uts4*)
22978       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22979       hardcode_libdir_flag_spec_F77='-L$libdir'
22980       hardcode_shlibpath_var_F77=no
22981       ;;
22982
22983     *)
22984       ld_shlibs_F77=no
22985       ;;
22986     esac
22987   fi
22988
22989 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22990 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22991 test "$ld_shlibs_F77" = no && can_build_shared=no
22992
22993 #
22994 # Do we need to explicitly link libc?
22995 #
22996 case "x$archive_cmds_need_lc_F77" in
22997 x|xyes)
22998   # Assume -lc should be added
22999   archive_cmds_need_lc_F77=yes
23000
23001   if test "$enable_shared" = yes && test "$GCC" = yes; then
23002     case $archive_cmds_F77 in
23003     *'~'*)
23004       # FIXME: we may have to deal with multi-command sequences.
23005       ;;
23006     '$CC '*)
23007       # Test whether the compiler implicitly links with -lc since on some
23008       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23009       # to ld, don't add -lc before -lgcc.
23010       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23012       $rm conftest*
23013       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23014
23015       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016   (eval $ac_compile) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); } 2>conftest.err; then
23020         soname=conftest
23021         lib=conftest
23022         libobjs=conftest.$ac_objext
23023         deplibs=
23024         wl=$lt_prog_compiler_wl_F77
23025         pic_flag=$lt_prog_compiler_pic_F77
23026         compiler_flags=-v
23027         linker_flags=-v
23028         verstring=
23029         output_objdir=.
23030         libname=conftest
23031         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23032         allow_undefined_flag_F77=
23033         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23034   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }
23038         then
23039           archive_cmds_need_lc_F77=no
23040         else
23041           archive_cmds_need_lc_F77=yes
23042         fi
23043         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23044       else
23045         cat conftest.err 1>&5
23046       fi
23047       $rm conftest*
23048       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23049 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23050       ;;
23051     esac
23052   fi
23053   ;;
23054 esac
23055
23056 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23057 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23058 library_names_spec=
23059 libname_spec='lib$name'
23060 soname_spec=
23061 shrext_cmds=".so"
23062 postinstall_cmds=
23063 postuninstall_cmds=
23064 finish_cmds=
23065 finish_eval=
23066 shlibpath_var=
23067 shlibpath_overrides_runpath=unknown
23068 version_type=none
23069 dynamic_linker="$host_os ld.so"
23070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23071 if test "$GCC" = yes; then
23072   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23073   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23074     # if the path contains ";" then we assume it to be the separator
23075     # otherwise default to the standard path separator (i.e. ":") - it is
23076     # assumed that no part of a normal pathname contains ";" but that should
23077     # okay in the real world where ";" in dirpaths is itself problematic.
23078     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23079   else
23080     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23081   fi
23082 else
23083   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23084 fi
23085 need_lib_prefix=unknown
23086 hardcode_into_libs=no
23087
23088 # when you set need_version to no, make sure it does not cause -set_version
23089 # flags to be left without arguments
23090 need_version=unknown
23091
23092 case $host_os in
23093 aix3*)
23094   version_type=linux
23095   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23096   shlibpath_var=LIBPATH
23097
23098   # AIX 3 has no versioning support, so we append a major version to the name.
23099   soname_spec='${libname}${release}${shared_ext}$major'
23100   ;;
23101
23102 aix4* | aix5*)
23103   version_type=linux
23104   need_lib_prefix=no
23105   need_version=no
23106   hardcode_into_libs=yes
23107   if test "$host_cpu" = ia64; then
23108     # AIX 5 supports IA64
23109     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23110     shlibpath_var=LD_LIBRARY_PATH
23111   else
23112     # With GCC up to 2.95.x, collect2 would create an import file
23113     # for dependence libraries.  The import file would start with
23114     # the line `#! .'.  This would cause the generated library to
23115     # depend on `.', always an invalid library.  This was fixed in
23116     # development snapshots of GCC prior to 3.0.
23117     case $host_os in
23118       aix4 | aix4.[01] | aix4.[01].*)
23119       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23120            echo ' yes '
23121            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23122         :
23123       else
23124         can_build_shared=no
23125       fi
23126       ;;
23127     esac
23128     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23129     # soname into executable. Probably we can add versioning support to
23130     # collect2, so additional links can be useful in future.
23131     if test "$aix_use_runtimelinking" = yes; then
23132       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23133       # instead of lib<name>.a to let people know that these are not
23134       # typical AIX shared libraries.
23135       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23136     else
23137       # We preserve .a as extension for shared libraries through AIX4.2
23138       # and later when we are not doing run time linking.
23139       library_names_spec='${libname}${release}.a $libname.a'
23140       soname_spec='${libname}${release}${shared_ext}$major'
23141     fi
23142     shlibpath_var=LIBPATH
23143   fi
23144   ;;
23145
23146 amigaos*)
23147   library_names_spec='$libname.ixlibrary $libname.a'
23148   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23149   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'
23150   ;;
23151
23152 beos*)
23153   library_names_spec='${libname}${shared_ext}'
23154   dynamic_linker="$host_os ld.so"
23155   shlibpath_var=LIBRARY_PATH
23156   ;;
23157
23158 bsdi[45]*)
23159   version_type=linux
23160   need_version=no
23161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162   soname_spec='${libname}${release}${shared_ext}$major'
23163   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23164   shlibpath_var=LD_LIBRARY_PATH
23165   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23166   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23167   # the default ld.so.conf also contains /usr/contrib/lib and
23168   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23169   # libtool to hard-code these into programs
23170   ;;
23171
23172 cygwin* | mingw* | pw32*)
23173   version_type=windows
23174   shrext_cmds=".dll"
23175   need_version=no
23176   need_lib_prefix=no
23177
23178   case $GCC,$host_os in
23179   yes,cygwin* | yes,mingw* | yes,pw32*)
23180     library_names_spec='$libname.dll.a'
23181     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23182     postinstall_cmds='base_file=`basename \${file}`~
23183       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23184       dldir=$destdir/`dirname \$dlpath`~
23185       test -d \$dldir || mkdir -p \$dldir~
23186       $install_prog $dir/$dlname \$dldir/$dlname~
23187       chmod a+x \$dldir/$dlname'
23188     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23189       dlpath=$dir/\$dldll~
23190        $rm \$dlpath'
23191     shlibpath_overrides_runpath=yes
23192
23193     case $host_os in
23194     cygwin*)
23195       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23196       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23197       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23198       ;;
23199     mingw*)
23200       # MinGW DLLs use traditional 'lib' prefix
23201       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23202       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23203       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23204         # It is most probably a Windows format PATH printed by
23205         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23206         # path with ; separators, and with drive letters. We can handle the
23207         # drive letters (cygwin fileutils understands them), so leave them,
23208         # especially as we might pass files found there to a mingw objdump,
23209         # which wouldn't understand a cygwinified path. Ahh.
23210         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23211       else
23212         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23213       fi
23214       ;;
23215     pw32*)
23216       # pw32 DLLs use 'pw' prefix rather than 'lib'
23217       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23218       ;;
23219     esac
23220     ;;
23221
23222   *)
23223     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23224     ;;
23225   esac
23226   dynamic_linker='Win32 ld.exe'
23227   # FIXME: first we should search . and the directory the executable is in
23228   shlibpath_var=PATH
23229   ;;
23230
23231 darwin* | rhapsody*)
23232   dynamic_linker="$host_os dyld"
23233   version_type=darwin
23234   need_lib_prefix=no
23235   need_version=no
23236   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23237   soname_spec='${libname}${release}${major}$shared_ext'
23238   shlibpath_overrides_runpath=yes
23239   shlibpath_var=DYLD_LIBRARY_PATH
23240   shrext_cmds='.dylib'
23241   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23242   if test "$GCC" = yes; then
23243     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"`
23244   else
23245     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23246   fi
23247   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23248   ;;
23249
23250 dgux*)
23251   version_type=linux
23252   need_lib_prefix=no
23253   need_version=no
23254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23255   soname_spec='${libname}${release}${shared_ext}$major'
23256   shlibpath_var=LD_LIBRARY_PATH
23257   ;;
23258
23259 freebsd1*)
23260   dynamic_linker=no
23261   ;;
23262
23263 kfreebsd*-gnu)
23264   version_type=linux
23265   need_lib_prefix=no
23266   need_version=no
23267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23268   soname_spec='${libname}${release}${shared_ext}$major'
23269   shlibpath_var=LD_LIBRARY_PATH
23270   shlibpath_overrides_runpath=no
23271   hardcode_into_libs=yes
23272   dynamic_linker='GNU ld.so'
23273   ;;
23274
23275 freebsd* | dragonfly*)
23276   # DragonFly does not have aout.  When/if they implement a new
23277   # versioning mechanism, adjust this.
23278   if test -x /usr/bin/objformat; then
23279     objformat=`/usr/bin/objformat`
23280   else
23281     case $host_os in
23282     freebsd[123]*) objformat=aout ;;
23283     *) objformat=elf ;;
23284     esac
23285   fi
23286   version_type=freebsd-$objformat
23287   case $version_type in
23288     freebsd-elf*)
23289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23290       need_version=no
23291       need_lib_prefix=no
23292       ;;
23293     freebsd-*)
23294       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23295       need_version=yes
23296       ;;
23297   esac
23298   shlibpath_var=LD_LIBRARY_PATH
23299   case $host_os in
23300   freebsd2*)
23301     shlibpath_overrides_runpath=yes
23302     ;;
23303   freebsd3.[01]* | freebsdelf3.[01]*)
23304     shlibpath_overrides_runpath=yes
23305     hardcode_into_libs=yes
23306     ;;
23307   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23308   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23309     shlibpath_overrides_runpath=no
23310     hardcode_into_libs=yes
23311     ;;
23312   freebsd*) # from 4.6 on
23313     shlibpath_overrides_runpath=yes
23314     hardcode_into_libs=yes
23315     ;;
23316   esac
23317   ;;
23318
23319 gnu*)
23320   version_type=linux
23321   need_lib_prefix=no
23322   need_version=no
23323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23324   soname_spec='${libname}${release}${shared_ext}$major'
23325   shlibpath_var=LD_LIBRARY_PATH
23326   hardcode_into_libs=yes
23327   ;;
23328
23329 hpux9* | hpux10* | hpux11*)
23330   # Give a soname corresponding to the major version so that dld.sl refuses to
23331   # link against other versions.
23332   version_type=sunos
23333   need_lib_prefix=no
23334   need_version=no
23335   case $host_cpu in
23336   ia64*)
23337     shrext_cmds='.so'
23338     hardcode_into_libs=yes
23339     dynamic_linker="$host_os dld.so"
23340     shlibpath_var=LD_LIBRARY_PATH
23341     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343     soname_spec='${libname}${release}${shared_ext}$major'
23344     if test "X$HPUX_IA64_MODE" = X32; then
23345       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23346     else
23347       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23348     fi
23349     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23350     ;;
23351    hppa*64*)
23352      shrext_cmds='.sl'
23353      hardcode_into_libs=yes
23354      dynamic_linker="$host_os dld.sl"
23355      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23356      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23357      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358      soname_spec='${libname}${release}${shared_ext}$major'
23359      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23360      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23361      ;;
23362    *)
23363     shrext_cmds='.sl'
23364     dynamic_linker="$host_os dld.sl"
23365     shlibpath_var=SHLIB_PATH
23366     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23368     soname_spec='${libname}${release}${shared_ext}$major'
23369     ;;
23370   esac
23371   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23372   postinstall_cmds='chmod 555 $lib'
23373   ;;
23374
23375 interix3*)
23376   version_type=linux
23377   need_lib_prefix=no
23378   need_version=no
23379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23380   soname_spec='${libname}${release}${shared_ext}$major'
23381   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23382   shlibpath_var=LD_LIBRARY_PATH
23383   shlibpath_overrides_runpath=no
23384   hardcode_into_libs=yes
23385   ;;
23386
23387 irix5* | irix6* | nonstopux*)
23388   case $host_os in
23389     nonstopux*) version_type=nonstopux ;;
23390     *)
23391         if test "$lt_cv_prog_gnu_ld" = yes; then
23392                 version_type=linux
23393         else
23394                 version_type=irix
23395         fi ;;
23396   esac
23397   need_lib_prefix=no
23398   need_version=no
23399   soname_spec='${libname}${release}${shared_ext}$major'
23400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23401   case $host_os in
23402   irix5* | nonstopux*)
23403     libsuff= shlibsuff=
23404     ;;
23405   *)
23406     case $LD in # libtool.m4 will add one of these switches to LD
23407     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23408       libsuff= shlibsuff= libmagic=32-bit;;
23409     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23410       libsuff=32 shlibsuff=N32 libmagic=N32;;
23411     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23412       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23413     *) libsuff= shlibsuff= libmagic=never-match;;
23414     esac
23415     ;;
23416   esac
23417   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23418   shlibpath_overrides_runpath=no
23419   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23420   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23421   hardcode_into_libs=yes
23422   ;;
23423
23424 # No shared lib support for Linux oldld, aout, or coff.
23425 linux*oldld* | linux*aout* | linux*coff*)
23426   dynamic_linker=no
23427   ;;
23428
23429 # This must be Linux ELF.
23430 linux*)
23431   version_type=linux
23432   need_lib_prefix=no
23433   need_version=no
23434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23435   soname_spec='${libname}${release}${shared_ext}$major'
23436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23437   shlibpath_var=LD_LIBRARY_PATH
23438   shlibpath_overrides_runpath=no
23439   # This implies no fast_install, which is unacceptable.
23440   # Some rework will be needed to allow for fast_install
23441   # before this can be enabled.
23442   hardcode_into_libs=yes
23443
23444   # Append ld.so.conf contents to the search path
23445   if test -f /etc/ld.so.conf; then
23446     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' ' '`
23447     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23448   fi
23449
23450   # We used to test for /lib/ld.so.1 and disable shared libraries on
23451   # powerpc, because MkLinux only supported shared libraries with the
23452   # GNU dynamic linker.  Since this was broken with cross compilers,
23453   # most powerpc-linux boxes support dynamic linking these days and
23454   # people can always --disable-shared, the test was removed, and we
23455   # assume the GNU/Linux dynamic linker is in use.
23456   dynamic_linker='GNU/Linux ld.so'
23457   ;;
23458
23459 knetbsd*-gnu)
23460   version_type=linux
23461   need_lib_prefix=no
23462   need_version=no
23463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464   soname_spec='${libname}${release}${shared_ext}$major'
23465   shlibpath_var=LD_LIBRARY_PATH
23466   shlibpath_overrides_runpath=no
23467   hardcode_into_libs=yes
23468   dynamic_linker='GNU ld.so'
23469   ;;
23470
23471 netbsd*)
23472   version_type=sunos
23473   need_lib_prefix=no
23474   need_version=no
23475   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23477     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23478     dynamic_linker='NetBSD (a.out) ld.so'
23479   else
23480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23481     soname_spec='${libname}${release}${shared_ext}$major'
23482     dynamic_linker='NetBSD ld.elf_so'
23483   fi
23484   shlibpath_var=LD_LIBRARY_PATH
23485   shlibpath_overrides_runpath=yes
23486   hardcode_into_libs=yes
23487   ;;
23488
23489 newsos6)
23490   version_type=linux
23491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23492   shlibpath_var=LD_LIBRARY_PATH
23493   shlibpath_overrides_runpath=yes
23494   ;;
23495
23496 nto-qnx*)
23497   version_type=linux
23498   need_lib_prefix=no
23499   need_version=no
23500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23501   soname_spec='${libname}${release}${shared_ext}$major'
23502   shlibpath_var=LD_LIBRARY_PATH
23503   shlibpath_overrides_runpath=yes
23504   ;;
23505
23506 openbsd*)
23507   version_type=sunos
23508   sys_lib_dlsearch_path_spec="/usr/lib"
23509   need_lib_prefix=no
23510   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23511   case $host_os in
23512     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23513     *)                         need_version=no  ;;
23514   esac
23515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23516   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23517   shlibpath_var=LD_LIBRARY_PATH
23518   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23519     case $host_os in
23520       openbsd2.[89] | openbsd2.[89].*)
23521         shlibpath_overrides_runpath=no
23522         ;;
23523       *)
23524         shlibpath_overrides_runpath=yes
23525         ;;
23526       esac
23527   else
23528     shlibpath_overrides_runpath=yes
23529   fi
23530   ;;
23531
23532 os2*)
23533   libname_spec='$name'
23534   shrext_cmds=".dll"
23535   need_lib_prefix=no
23536   library_names_spec='$libname${shared_ext} $libname.a'
23537   dynamic_linker='OS/2 ld.exe'
23538   shlibpath_var=LIBPATH
23539   ;;
23540
23541 osf3* | osf4* | osf5*)
23542   version_type=osf
23543   need_lib_prefix=no
23544   need_version=no
23545   soname_spec='${libname}${release}${shared_ext}$major'
23546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23547   shlibpath_var=LD_LIBRARY_PATH
23548   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23549   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23550   ;;
23551
23552 solaris*)
23553   version_type=linux
23554   need_lib_prefix=no
23555   need_version=no
23556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23557   soname_spec='${libname}${release}${shared_ext}$major'
23558   shlibpath_var=LD_LIBRARY_PATH
23559   shlibpath_overrides_runpath=yes
23560   hardcode_into_libs=yes
23561   # ldd complains unless libraries are executable
23562   postinstall_cmds='chmod +x $lib'
23563   ;;
23564
23565 sunos4*)
23566   version_type=sunos
23567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23568   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23569   shlibpath_var=LD_LIBRARY_PATH
23570   shlibpath_overrides_runpath=yes
23571   if test "$with_gnu_ld" = yes; then
23572     need_lib_prefix=no
23573   fi
23574   need_version=yes
23575   ;;
23576
23577 sysv4 | sysv4.3*)
23578   version_type=linux
23579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23580   soname_spec='${libname}${release}${shared_ext}$major'
23581   shlibpath_var=LD_LIBRARY_PATH
23582   case $host_vendor in
23583     sni)
23584       shlibpath_overrides_runpath=no
23585       need_lib_prefix=no
23586       export_dynamic_flag_spec='${wl}-Blargedynsym'
23587       runpath_var=LD_RUN_PATH
23588       ;;
23589     siemens)
23590       need_lib_prefix=no
23591       ;;
23592     motorola)
23593       need_lib_prefix=no
23594       need_version=no
23595       shlibpath_overrides_runpath=no
23596       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23597       ;;
23598   esac
23599   ;;
23600
23601 sysv4*MP*)
23602   if test -d /usr/nec ;then
23603     version_type=linux
23604     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23605     soname_spec='$libname${shared_ext}.$major'
23606     shlibpath_var=LD_LIBRARY_PATH
23607   fi
23608   ;;
23609
23610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23611   version_type=freebsd-elf
23612   need_lib_prefix=no
23613   need_version=no
23614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23615   soname_spec='${libname}${release}${shared_ext}$major'
23616   shlibpath_var=LD_LIBRARY_PATH
23617   hardcode_into_libs=yes
23618   if test "$with_gnu_ld" = yes; then
23619     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23620     shlibpath_overrides_runpath=no
23621   else
23622     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23623     shlibpath_overrides_runpath=yes
23624     case $host_os in
23625       sco3.2v5*)
23626         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23627         ;;
23628     esac
23629   fi
23630   sys_lib_dlsearch_path_spec='/usr/lib'
23631   ;;
23632
23633 uts4*)
23634   version_type=linux
23635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23636   soname_spec='${libname}${release}${shared_ext}$major'
23637   shlibpath_var=LD_LIBRARY_PATH
23638   ;;
23639
23640 *)
23641   dynamic_linker=no
23642   ;;
23643 esac
23644 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23645 echo "${ECHO_T}$dynamic_linker" >&6; }
23646 test "$dynamic_linker" = no && can_build_shared=no
23647
23648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23649 if test "$GCC" = yes; then
23650   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23651 fi
23652
23653 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23655 hardcode_action_F77=
23656 if test -n "$hardcode_libdir_flag_spec_F77" || \
23657    test -n "$runpath_var_F77" || \
23658    test "X$hardcode_automatic_F77" = "Xyes" ; then
23659
23660   # We can hardcode non-existant directories.
23661   if test "$hardcode_direct_F77" != no &&
23662      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23663      # have to relink, otherwise we might link with an installed library
23664      # when we should be linking with a yet-to-be-installed one
23665      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23666      test "$hardcode_minus_L_F77" != no; then
23667     # Linking always hardcodes the temporary library directory.
23668     hardcode_action_F77=relink
23669   else
23670     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23671     hardcode_action_F77=immediate
23672   fi
23673 else
23674   # We cannot hardcode anything, or else we can only hardcode existing
23675   # directories.
23676   hardcode_action_F77=unsupported
23677 fi
23678 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23679 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23680
23681 if test "$hardcode_action_F77" = relink; then
23682   # Fast installation is not supported
23683   enable_fast_install=no
23684 elif test "$shlibpath_overrides_runpath" = yes ||
23685      test "$enable_shared" = no; then
23686   # Fast installation is not necessary
23687   enable_fast_install=needless
23688 fi
23689
23690
23691 # The else clause should only fire when bootstrapping the
23692 # libtool distribution, otherwise you forgot to ship ltmain.sh
23693 # with your package, and you will get complaints that there are
23694 # no rules to generate ltmain.sh.
23695 if test -f "$ltmain"; then
23696   # See if we are running on zsh, and set the options which allow our commands through
23697   # without removal of \ escapes.
23698   if test -n "${ZSH_VERSION+set}" ; then
23699     setopt NO_GLOB_SUBST
23700   fi
23701   # Now quote all the things that may contain metacharacters while being
23702   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23703   # variables and quote the copies for generation of the libtool script.
23704   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23705     SED SHELL STRIP \
23706     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23707     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23708     deplibs_check_method reload_flag reload_cmds need_locks \
23709     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23710     lt_cv_sys_global_symbol_to_c_name_address \
23711     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23712     old_postinstall_cmds old_postuninstall_cmds \
23713     compiler_F77 \
23714     CC_F77 \
23715     LD_F77 \
23716     lt_prog_compiler_wl_F77 \
23717     lt_prog_compiler_pic_F77 \
23718     lt_prog_compiler_static_F77 \
23719     lt_prog_compiler_no_builtin_flag_F77 \
23720     export_dynamic_flag_spec_F77 \
23721     thread_safe_flag_spec_F77 \
23722     whole_archive_flag_spec_F77 \
23723     enable_shared_with_static_runtimes_F77 \
23724     old_archive_cmds_F77 \
23725     old_archive_from_new_cmds_F77 \
23726     predep_objects_F77 \
23727     postdep_objects_F77 \
23728     predeps_F77 \
23729     postdeps_F77 \
23730     compiler_lib_search_path_F77 \
23731     archive_cmds_F77 \
23732     archive_expsym_cmds_F77 \
23733     postinstall_cmds_F77 \
23734     postuninstall_cmds_F77 \
23735     old_archive_from_expsyms_cmds_F77 \
23736     allow_undefined_flag_F77 \
23737     no_undefined_flag_F77 \
23738     export_symbols_cmds_F77 \
23739     hardcode_libdir_flag_spec_F77 \
23740     hardcode_libdir_flag_spec_ld_F77 \
23741     hardcode_libdir_separator_F77 \
23742     hardcode_automatic_F77 \
23743     module_cmds_F77 \
23744     module_expsym_cmds_F77 \
23745     lt_cv_prog_compiler_c_o_F77 \
23746     exclude_expsyms_F77 \
23747     include_expsyms_F77; do
23748
23749     case $var in
23750     old_archive_cmds_F77 | \
23751     old_archive_from_new_cmds_F77 | \
23752     archive_cmds_F77 | \
23753     archive_expsym_cmds_F77 | \
23754     module_cmds_F77 | \
23755     module_expsym_cmds_F77 | \
23756     old_archive_from_expsyms_cmds_F77 | \
23757     export_symbols_cmds_F77 | \
23758     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23759     postinstall_cmds | postuninstall_cmds | \
23760     old_postinstall_cmds | old_postuninstall_cmds | \
23761     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23762       # Double-quote double-evaled strings.
23763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23764       ;;
23765     *)
23766       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23767       ;;
23768     esac
23769   done
23770
23771   case $lt_echo in
23772   *'\$0 --fallback-echo"')
23773     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23774     ;;
23775   esac
23776
23777 cfgfile="$ofile"
23778
23779   cat <<__EOF__ >> "$cfgfile"
23780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23781
23782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23783
23784 # Shell to use when invoking shell scripts.
23785 SHELL=$lt_SHELL
23786
23787 # Whether or not to build shared libraries.
23788 build_libtool_libs=$enable_shared
23789
23790 # Whether or not to build static libraries.
23791 build_old_libs=$enable_static
23792
23793 # Whether or not to add -lc for building shared libraries.
23794 build_libtool_need_lc=$archive_cmds_need_lc_F77
23795
23796 # Whether or not to disallow shared libs when runtime libs are static
23797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23798
23799 # Whether or not to optimize for fast installation.
23800 fast_install=$enable_fast_install
23801
23802 # The host system.
23803 host_alias=$host_alias
23804 host=$host
23805 host_os=$host_os
23806
23807 # The build system.
23808 build_alias=$build_alias
23809 build=$build
23810 build_os=$build_os
23811
23812 # An echo program that does not interpret backslashes.
23813 echo=$lt_echo
23814
23815 # The archiver.
23816 AR=$lt_AR
23817 AR_FLAGS=$lt_AR_FLAGS
23818
23819 # A C compiler.
23820 LTCC=$lt_LTCC
23821
23822 # LTCC compiler flags.
23823 LTCFLAGS=$lt_LTCFLAGS
23824
23825 # A language-specific compiler.
23826 CC=$lt_compiler_F77
23827
23828 # Is the compiler the GNU C compiler?
23829 with_gcc=$GCC_F77
23830
23831 # An ERE matcher.
23832 EGREP=$lt_EGREP
23833
23834 # The linker used to build libraries.
23835 LD=$lt_LD_F77
23836
23837 # Whether we need hard or soft links.
23838 LN_S=$lt_LN_S
23839
23840 # A BSD-compatible nm program.
23841 NM=$lt_NM
23842
23843 # A symbol stripping program
23844 STRIP=$lt_STRIP
23845
23846 # Used to examine libraries when file_magic_cmd begins "file"
23847 MAGIC_CMD=$MAGIC_CMD
23848
23849 # Used on cygwin: DLL creation program.
23850 DLLTOOL="$DLLTOOL"
23851
23852 # Used on cygwin: object dumper.
23853 OBJDUMP="$OBJDUMP"
23854
23855 # Used on cygwin: assembler.
23856 AS="$AS"
23857
23858 # The name of the directory that contains temporary libtool files.
23859 objdir=$objdir
23860
23861 # How to create reloadable object files.
23862 reload_flag=$lt_reload_flag
23863 reload_cmds=$lt_reload_cmds
23864
23865 # How to pass a linker flag through the compiler.
23866 wl=$lt_lt_prog_compiler_wl_F77
23867
23868 # Object file suffix (normally "o").
23869 objext="$ac_objext"
23870
23871 # Old archive suffix (normally "a").
23872 libext="$libext"
23873
23874 # Shared library suffix (normally ".so").
23875 shrext_cmds='$shrext_cmds'
23876
23877 # Executable file suffix (normally "").
23878 exeext="$exeext"
23879
23880 # Additional compiler flags for building library objects.
23881 pic_flag=$lt_lt_prog_compiler_pic_F77
23882 pic_mode=$pic_mode
23883
23884 # What is the maximum length of a command?
23885 max_cmd_len=$lt_cv_sys_max_cmd_len
23886
23887 # Does compiler simultaneously support -c and -o options?
23888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23889
23890 # Must we lock files when doing compilation?
23891 need_locks=$lt_need_locks
23892
23893 # Do we need the lib prefix for modules?
23894 need_lib_prefix=$need_lib_prefix
23895
23896 # Do we need a version for libraries?
23897 need_version=$need_version
23898
23899 # Whether dlopen is supported.
23900 dlopen_support=$enable_dlopen
23901
23902 # Whether dlopen of programs is supported.
23903 dlopen_self=$enable_dlopen_self
23904
23905 # Whether dlopen of statically linked programs is supported.
23906 dlopen_self_static=$enable_dlopen_self_static
23907
23908 # Compiler flag to prevent dynamic linking.
23909 link_static_flag=$lt_lt_prog_compiler_static_F77
23910
23911 # Compiler flag to turn off builtin functions.
23912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23913
23914 # Compiler flag to allow reflexive dlopens.
23915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23916
23917 # Compiler flag to generate shared objects directly from archives.
23918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23919
23920 # Compiler flag to generate thread-safe objects.
23921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23922
23923 # Library versioning type.
23924 version_type=$version_type
23925
23926 # Format of library name prefix.
23927 libname_spec=$lt_libname_spec
23928
23929 # List of archive names.  First name is the real one, the rest are links.
23930 # The last name is the one that the linker finds with -lNAME.
23931 library_names_spec=$lt_library_names_spec
23932
23933 # The coded name of the library, if different from the real name.
23934 soname_spec=$lt_soname_spec
23935
23936 # Commands used to build and install an old-style archive.
23937 RANLIB=$lt_RANLIB
23938 old_archive_cmds=$lt_old_archive_cmds_F77
23939 old_postinstall_cmds=$lt_old_postinstall_cmds
23940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23941
23942 # Create an old-style archive from a shared archive.
23943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23944
23945 # Create a temporary old-style archive to link instead of a shared archive.
23946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23947
23948 # Commands used to build and install a shared archive.
23949 archive_cmds=$lt_archive_cmds_F77
23950 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23951 postinstall_cmds=$lt_postinstall_cmds
23952 postuninstall_cmds=$lt_postuninstall_cmds
23953
23954 # Commands used to build a loadable module (assumed same as above if empty)
23955 module_cmds=$lt_module_cmds_F77
23956 module_expsym_cmds=$lt_module_expsym_cmds_F77
23957
23958 # Commands to strip libraries.
23959 old_striplib=$lt_old_striplib
23960 striplib=$lt_striplib
23961
23962 # Dependencies to place before the objects being linked to create a
23963 # shared library.
23964 predep_objects=$lt_predep_objects_F77
23965
23966 # Dependencies to place after the objects being linked to create a
23967 # shared library.
23968 postdep_objects=$lt_postdep_objects_F77
23969
23970 # Dependencies to place before the objects being linked to create a
23971 # shared library.
23972 predeps=$lt_predeps_F77
23973
23974 # Dependencies to place after the objects being linked to create a
23975 # shared library.
23976 postdeps=$lt_postdeps_F77
23977
23978 # The library search path used internally by the compiler when linking
23979 # a shared library.
23980 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23981
23982 # Method to check whether dependent libraries are shared objects.
23983 deplibs_check_method=$lt_deplibs_check_method
23984
23985 # Command to use when deplibs_check_method == file_magic.
23986 file_magic_cmd=$lt_file_magic_cmd
23987
23988 # Flag that allows shared libraries with undefined symbols to be built.
23989 allow_undefined_flag=$lt_allow_undefined_flag_F77
23990
23991 # Flag that forces no undefined symbols.
23992 no_undefined_flag=$lt_no_undefined_flag_F77
23993
23994 # Commands used to finish a libtool library installation in a directory.
23995 finish_cmds=$lt_finish_cmds
23996
23997 # Same as above, but a single script fragment to be evaled but not shown.
23998 finish_eval=$lt_finish_eval
23999
24000 # Take the output of nm and produce a listing of raw symbols and C names.
24001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24002
24003 # Transform the output of nm in a proper C declaration
24004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24005
24006 # Transform the output of nm in a C name address pair
24007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24008
24009 # This is the shared library runtime path variable.
24010 runpath_var=$runpath_var
24011
24012 # This is the shared library path variable.
24013 shlibpath_var=$shlibpath_var
24014
24015 # Is shlibpath searched before the hard-coded library search path?
24016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24017
24018 # How to hardcode a shared library path into an executable.
24019 hardcode_action=$hardcode_action_F77
24020
24021 # Whether we should hardcode library paths into libraries.
24022 hardcode_into_libs=$hardcode_into_libs
24023
24024 # Flag to hardcode \$libdir into a binary during linking.
24025 # This must work even if \$libdir does not exist.
24026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24027
24028 # If ld is used when linking, flag to hardcode \$libdir into
24029 # a binary during linking. This must work even if \$libdir does
24030 # not exist.
24031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24032
24033 # Whether we need a single -rpath flag with a separated argument.
24034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24035
24036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24037 # resulting binary.
24038 hardcode_direct=$hardcode_direct_F77
24039
24040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24041 # resulting binary.
24042 hardcode_minus_L=$hardcode_minus_L_F77
24043
24044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24045 # the resulting binary.
24046 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24047
24048 # Set to yes if building a shared library automatically hardcodes DIR into the library
24049 # and all subsequent libraries and executables linked against it.
24050 hardcode_automatic=$hardcode_automatic_F77
24051
24052 # Variables whose values should be saved in libtool wrapper scripts and
24053 # restored at relink time.
24054 variables_saved_for_relink="$variables_saved_for_relink"
24055
24056 # Whether libtool must link a program against all its dependency libraries.
24057 link_all_deplibs=$link_all_deplibs_F77
24058
24059 # Compile-time system search path for libraries
24060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24061
24062 # Run-time system search path for libraries
24063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24064
24065 # Fix the shell variable \$srcfile for the compiler.
24066 fix_srcfile_path="$fix_srcfile_path_F77"
24067
24068 # Set to yes if exported symbols are required.
24069 always_export_symbols=$always_export_symbols_F77
24070
24071 # The commands to list exported symbols.
24072 export_symbols_cmds=$lt_export_symbols_cmds_F77
24073
24074 # The commands to extract the exported symbol list from a shared archive.
24075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24076
24077 # Symbols that should not be listed in the preloaded symbols.
24078 exclude_expsyms=$lt_exclude_expsyms_F77
24079
24080 # Symbols that must always be exported.
24081 include_expsyms=$lt_include_expsyms_F77
24082
24083 # ### END LIBTOOL TAG CONFIG: $tagname
24084
24085 __EOF__
24086
24087
24088 else
24089   # If there is no Makefile yet, we rely on a make rule to execute
24090   # `config.status --recheck' to rerun these tests and create the
24091   # libtool script then.
24092   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24093   if test -f "$ltmain_in"; then
24094     test -f Makefile && make "$ltmain"
24095   fi
24096 fi
24097
24098
24099 ac_ext=c
24100 ac_cpp='$CPP $CPPFLAGS'
24101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24104
24105 CC="$lt_save_CC"
24106
24107         else
24108           tagname=""
24109         fi
24110         ;;
24111
24112       GCJ)
24113         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24114           ac_ext=c
24115 ac_cpp='$CPP $CPPFLAGS'
24116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24119
24120
24121 # Source file extension for Java test sources.
24122 ac_ext=java
24123
24124 # Object file extension for compiled Java test sources.
24125 objext=o
24126 objext_GCJ=$objext
24127
24128 # Code to be used in simple compile tests
24129 lt_simple_compile_test_code="class foo {}\n"
24130
24131 # Code to be used in simple link tests
24132 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24133
24134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24135
24136 # If no C compiler was specified, use CC.
24137 LTCC=${LTCC-"$CC"}
24138
24139 # If no C compiler flags were specified, use CFLAGS.
24140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24141
24142 # Allow CC to be a program name with arguments.
24143 compiler=$CC
24144
24145
24146 # save warnings/boilerplate of simple test code
24147 ac_outfile=conftest.$ac_objext
24148 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24150 _lt_compiler_boilerplate=`cat conftest.err`
24151 $rm conftest*
24152
24153 ac_outfile=conftest.$ac_objext
24154 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24156 _lt_linker_boilerplate=`cat conftest.err`
24157 $rm conftest*
24158
24159
24160 # Allow CC to be a program name with arguments.
24161 lt_save_CC="$CC"
24162 CC=${GCJ-"gcj"}
24163 compiler=$CC
24164 compiler_GCJ=$CC
24165 for cc_temp in $compiler""; do
24166   case $cc_temp in
24167     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24168     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24169     \-*) ;;
24170     *) break;;
24171   esac
24172 done
24173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24174
24175
24176 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24177 archive_cmds_need_lc_GCJ=no
24178
24179 old_archive_cmds_GCJ=$old_archive_cmds
24180
24181
24182 lt_prog_compiler_no_builtin_flag_GCJ=
24183
24184 if test "$GCC" = yes; then
24185   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24186
24187
24188 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24189 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24190 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24191   echo $ECHO_N "(cached) $ECHO_C" >&6
24192 else
24193   lt_cv_prog_compiler_rtti_exceptions=no
24194   ac_outfile=conftest.$ac_objext
24195    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24196    lt_compiler_flag="-fno-rtti -fno-exceptions"
24197    # Insert the option either (1) after the last *FLAGS variable, or
24198    # (2) before a word containing "conftest.", or (3) at the end.
24199    # Note that $ac_compile itself does not contain backslashes and begins
24200    # with a dollar sign (not a hyphen), so the echo should work correctly.
24201    # The option is referenced via a variable to avoid confusing sed.
24202    lt_compile=`echo "$ac_compile" | $SED \
24203    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24204    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24205    -e 's:$: $lt_compiler_flag:'`
24206    (eval echo "\"\$as_me:24206: $lt_compile\"" >&5)
24207    (eval "$lt_compile" 2>conftest.err)
24208    ac_status=$?
24209    cat conftest.err >&5
24210    echo "$as_me:24210: \$? = $ac_status" >&5
24211    if (exit $ac_status) && test -s "$ac_outfile"; then
24212      # The compiler can only warn and ignore the option if not recognized
24213      # So say no if there are warnings other than the usual output.
24214      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24215      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24216      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24217        lt_cv_prog_compiler_rtti_exceptions=yes
24218      fi
24219    fi
24220    $rm conftest*
24221
24222 fi
24223 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24224 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24225
24226 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24227     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24228 else
24229     :
24230 fi
24231
24232 fi
24233
24234 lt_prog_compiler_wl_GCJ=
24235 lt_prog_compiler_pic_GCJ=
24236 lt_prog_compiler_static_GCJ=
24237
24238 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24239 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24240
24241   if test "$GCC" = yes; then
24242     lt_prog_compiler_wl_GCJ='-Wl,'
24243     lt_prog_compiler_static_GCJ='-static'
24244
24245     case $host_os in
24246       aix*)
24247       # All AIX code is PIC.
24248       if test "$host_cpu" = ia64; then
24249         # AIX 5 now supports IA64 processor
24250         lt_prog_compiler_static_GCJ='-Bstatic'
24251       fi
24252       ;;
24253
24254     amigaos*)
24255       # FIXME: we need at least 68020 code to build shared libraries, but
24256       # adding the `-m68020' flag to GCC prevents building anything better,
24257       # like `-m68040'.
24258       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24259       ;;
24260
24261     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24262       # PIC is the default for these OSes.
24263       ;;
24264
24265     mingw* | pw32* | os2*)
24266       # This hack is so that the source file can tell whether it is being
24267       # built for inclusion in a dll (and should export symbols for example).
24268       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24269       ;;
24270
24271     darwin* | rhapsody*)
24272       # PIC is the default on this platform
24273       # Common symbols not allowed in MH_DYLIB files
24274       lt_prog_compiler_pic_GCJ='-fno-common'
24275       ;;
24276
24277     interix3*)
24278       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24279       # Instead, we relocate shared libraries at runtime.
24280       ;;
24281
24282     msdosdjgpp*)
24283       # Just because we use GCC doesn't mean we suddenly get shared libraries
24284       # on systems that don't support them.
24285       lt_prog_compiler_can_build_shared_GCJ=no
24286       enable_shared=no
24287       ;;
24288
24289     sysv4*MP*)
24290       if test -d /usr/nec; then
24291         lt_prog_compiler_pic_GCJ=-Kconform_pic
24292       fi
24293       ;;
24294
24295     hpux*)
24296       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24297       # not for PA HP-UX.
24298       case $host_cpu in
24299       hppa*64*|ia64*)
24300         # +Z the default
24301         ;;
24302       *)
24303         lt_prog_compiler_pic_GCJ='-fPIC'
24304         ;;
24305       esac
24306       ;;
24307
24308     *)
24309       lt_prog_compiler_pic_GCJ='-fPIC'
24310       ;;
24311     esac
24312   else
24313     # PORTME Check for flag to pass linker flags through the system compiler.
24314     case $host_os in
24315     aix*)
24316       lt_prog_compiler_wl_GCJ='-Wl,'
24317       if test "$host_cpu" = ia64; then
24318         # AIX 5 now supports IA64 processor
24319         lt_prog_compiler_static_GCJ='-Bstatic'
24320       else
24321         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24322       fi
24323       ;;
24324       darwin*)
24325         # PIC is the default on this platform
24326         # Common symbols not allowed in MH_DYLIB files
24327        case $cc_basename in
24328          xlc*)
24329          lt_prog_compiler_pic_GCJ='-qnocommon'
24330          lt_prog_compiler_wl_GCJ='-Wl,'
24331          ;;
24332        esac
24333        ;;
24334
24335     mingw* | pw32* | os2*)
24336       # This hack is so that the source file can tell whether it is being
24337       # built for inclusion in a dll (and should export symbols for example).
24338       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24339       ;;
24340
24341     hpux9* | hpux10* | hpux11*)
24342       lt_prog_compiler_wl_GCJ='-Wl,'
24343       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344       # not for PA HP-UX.
24345       case $host_cpu in
24346       hppa*64*|ia64*)
24347         # +Z the default
24348         ;;
24349       *)
24350         lt_prog_compiler_pic_GCJ='+Z'
24351         ;;
24352       esac
24353       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24354       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24355       ;;
24356
24357     irix5* | irix6* | nonstopux*)
24358       lt_prog_compiler_wl_GCJ='-Wl,'
24359       # PIC (with -KPIC) is the default.
24360       lt_prog_compiler_static_GCJ='-non_shared'
24361       ;;
24362
24363     newsos6)
24364       lt_prog_compiler_pic_GCJ='-KPIC'
24365       lt_prog_compiler_static_GCJ='-Bstatic'
24366       ;;
24367
24368     linux*)
24369       case $cc_basename in
24370       icc* | ecc*)
24371         lt_prog_compiler_wl_GCJ='-Wl,'
24372         lt_prog_compiler_pic_GCJ='-KPIC'
24373         lt_prog_compiler_static_GCJ='-static'
24374         ;;
24375       pgcc* | pgf77* | pgf90* | pgf95*)
24376         # Portland Group compilers (*not* the Pentium gcc compiler,
24377         # which looks to be a dead project)
24378         lt_prog_compiler_wl_GCJ='-Wl,'
24379         lt_prog_compiler_pic_GCJ='-fpic'
24380         lt_prog_compiler_static_GCJ='-Bstatic'
24381         ;;
24382       ccc*)
24383         lt_prog_compiler_wl_GCJ='-Wl,'
24384         # All Alpha code is PIC.
24385         lt_prog_compiler_static_GCJ='-non_shared'
24386         ;;
24387       esac
24388       ;;
24389
24390     osf3* | osf4* | osf5*)
24391       lt_prog_compiler_wl_GCJ='-Wl,'
24392       # All OSF/1 code is PIC.
24393       lt_prog_compiler_static_GCJ='-non_shared'
24394       ;;
24395
24396     solaris*)
24397       lt_prog_compiler_pic_GCJ='-KPIC'
24398       lt_prog_compiler_static_GCJ='-Bstatic'
24399       case $cc_basename in
24400       f77* | f90* | f95*)
24401         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24402       *)
24403         lt_prog_compiler_wl_GCJ='-Wl,';;
24404       esac
24405       ;;
24406
24407     sunos4*)
24408       lt_prog_compiler_wl_GCJ='-Qoption ld '
24409       lt_prog_compiler_pic_GCJ='-PIC'
24410       lt_prog_compiler_static_GCJ='-Bstatic'
24411       ;;
24412
24413     sysv4 | sysv4.2uw2* | sysv4.3*)
24414       lt_prog_compiler_wl_GCJ='-Wl,'
24415       lt_prog_compiler_pic_GCJ='-KPIC'
24416       lt_prog_compiler_static_GCJ='-Bstatic'
24417       ;;
24418
24419     sysv4*MP*)
24420       if test -d /usr/nec ;then
24421         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24422         lt_prog_compiler_static_GCJ='-Bstatic'
24423       fi
24424       ;;
24425
24426     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24427       lt_prog_compiler_wl_GCJ='-Wl,'
24428       lt_prog_compiler_pic_GCJ='-KPIC'
24429       lt_prog_compiler_static_GCJ='-Bstatic'
24430       ;;
24431
24432     unicos*)
24433       lt_prog_compiler_wl_GCJ='-Wl,'
24434       lt_prog_compiler_can_build_shared_GCJ=no
24435       ;;
24436
24437     uts4*)
24438       lt_prog_compiler_pic_GCJ='-pic'
24439       lt_prog_compiler_static_GCJ='-Bstatic'
24440       ;;
24441
24442     *)
24443       lt_prog_compiler_can_build_shared_GCJ=no
24444       ;;
24445     esac
24446   fi
24447
24448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24449 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24450
24451 #
24452 # Check to make sure the PIC flag actually works.
24453 #
24454 if test -n "$lt_prog_compiler_pic_GCJ"; then
24455
24456 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24458 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24459   echo $ECHO_N "(cached) $ECHO_C" >&6
24460 else
24461   lt_prog_compiler_pic_works_GCJ=no
24462   ac_outfile=conftest.$ac_objext
24463    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24464    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24465    # Insert the option either (1) after the last *FLAGS variable, or
24466    # (2) before a word containing "conftest.", or (3) at the end.
24467    # Note that $ac_compile itself does not contain backslashes and begins
24468    # with a dollar sign (not a hyphen), so the echo should work correctly.
24469    # The option is referenced via a variable to avoid confusing sed.
24470    lt_compile=`echo "$ac_compile" | $SED \
24471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24473    -e 's:$: $lt_compiler_flag:'`
24474    (eval echo "\"\$as_me:24474: $lt_compile\"" >&5)
24475    (eval "$lt_compile" 2>conftest.err)
24476    ac_status=$?
24477    cat conftest.err >&5
24478    echo "$as_me:24478: \$? = $ac_status" >&5
24479    if (exit $ac_status) && test -s "$ac_outfile"; then
24480      # The compiler can only warn and ignore the option if not recognized
24481      # So say no if there are warnings other than the usual output.
24482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24483      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24484      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24485        lt_prog_compiler_pic_works_GCJ=yes
24486      fi
24487    fi
24488    $rm conftest*
24489
24490 fi
24491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24492 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24493
24494 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24495     case $lt_prog_compiler_pic_GCJ in
24496      "" | " "*) ;;
24497      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24498      esac
24499 else
24500     lt_prog_compiler_pic_GCJ=
24501      lt_prog_compiler_can_build_shared_GCJ=no
24502 fi
24503
24504 fi
24505 case $host_os in
24506   # For platforms which do not support PIC, -DPIC is meaningless:
24507   *djgpp*)
24508     lt_prog_compiler_pic_GCJ=
24509     ;;
24510   *)
24511     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24512     ;;
24513 esac
24514
24515 #
24516 # Check to make sure the static flag actually works.
24517 #
24518 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24519 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24521 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524   lt_prog_compiler_static_works_GCJ=no
24525    save_LDFLAGS="$LDFLAGS"
24526    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24527    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24528    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24529      # The linker can only warn and ignore the option if not recognized
24530      # So say no if there are warnings
24531      if test -s conftest.err; then
24532        # Append any errors to the config.log.
24533        cat conftest.err 1>&5
24534        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24535        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24536        if diff conftest.exp conftest.er2 >/dev/null; then
24537          lt_prog_compiler_static_works_GCJ=yes
24538        fi
24539      else
24540        lt_prog_compiler_static_works_GCJ=yes
24541      fi
24542    fi
24543    $rm conftest*
24544    LDFLAGS="$save_LDFLAGS"
24545
24546 fi
24547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24548 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24549
24550 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24551     :
24552 else
24553     lt_prog_compiler_static_GCJ=
24554 fi
24555
24556
24557 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24559 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24560   echo $ECHO_N "(cached) $ECHO_C" >&6
24561 else
24562   lt_cv_prog_compiler_c_o_GCJ=no
24563    $rm -r conftest 2>/dev/null
24564    mkdir conftest
24565    cd conftest
24566    mkdir out
24567    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24568
24569    lt_compiler_flag="-o out/conftest2.$ac_objext"
24570    # Insert the option either (1) after the last *FLAGS variable, or
24571    # (2) before a word containing "conftest.", or (3) at the end.
24572    # Note that $ac_compile itself does not contain backslashes and begins
24573    # with a dollar sign (not a hyphen), so the echo should work correctly.
24574    lt_compile=`echo "$ac_compile" | $SED \
24575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24577    -e 's:$: $lt_compiler_flag:'`
24578    (eval echo "\"\$as_me:24578: $lt_compile\"" >&5)
24579    (eval "$lt_compile" 2>out/conftest.err)
24580    ac_status=$?
24581    cat out/conftest.err >&5
24582    echo "$as_me:24582: \$? = $ac_status" >&5
24583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24584    then
24585      # The compiler can only warn and ignore the option if not recognized
24586      # So say no if there are warnings
24587      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24588      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24589      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24590        lt_cv_prog_compiler_c_o_GCJ=yes
24591      fi
24592    fi
24593    chmod u+w . 2>&5
24594    $rm conftest*
24595    # SGI C++ compiler will create directory out/ii_files/ for
24596    # template instantiation
24597    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24598    $rm out/* && rmdir out
24599    cd ..
24600    rmdir conftest
24601    $rm conftest*
24602
24603 fi
24604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24606
24607
24608 hard_links="nottested"
24609 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24610   # do not overwrite the value of need_locks provided by the user
24611   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24613   hard_links=yes
24614   $rm conftest*
24615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24616   touch conftest.a
24617   ln conftest.a conftest.b 2>&5 || hard_links=no
24618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24619   { echo "$as_me:$LINENO: result: $hard_links" >&5
24620 echo "${ECHO_T}$hard_links" >&6; }
24621   if test "$hard_links" = no; then
24622     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24624     need_locks=warn
24625   fi
24626 else
24627   need_locks=no
24628 fi
24629
24630 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24632
24633   runpath_var=
24634   allow_undefined_flag_GCJ=
24635   enable_shared_with_static_runtimes_GCJ=no
24636   archive_cmds_GCJ=
24637   archive_expsym_cmds_GCJ=
24638   old_archive_From_new_cmds_GCJ=
24639   old_archive_from_expsyms_cmds_GCJ=
24640   export_dynamic_flag_spec_GCJ=
24641   whole_archive_flag_spec_GCJ=
24642   thread_safe_flag_spec_GCJ=
24643   hardcode_libdir_flag_spec_GCJ=
24644   hardcode_libdir_flag_spec_ld_GCJ=
24645   hardcode_libdir_separator_GCJ=
24646   hardcode_direct_GCJ=no
24647   hardcode_minus_L_GCJ=no
24648   hardcode_shlibpath_var_GCJ=unsupported
24649   link_all_deplibs_GCJ=unknown
24650   hardcode_automatic_GCJ=no
24651   module_cmds_GCJ=
24652   module_expsym_cmds_GCJ=
24653   always_export_symbols_GCJ=no
24654   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24655   # include_expsyms should be a list of space-separated symbols to be *always*
24656   # included in the symbol list
24657   include_expsyms_GCJ=
24658   # exclude_expsyms can be an extended regexp of symbols to exclude
24659   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24660   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24661   # as well as any symbol that contains `d'.
24662   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24663   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24664   # platforms (ab)use it in PIC code, but their linkers get confused if
24665   # the symbol is explicitly referenced.  Since portable code cannot
24666   # rely on this symbol name, it's probably fine to never include it in
24667   # preloaded symbol tables.
24668   extract_expsyms_cmds=
24669   # Just being paranoid about ensuring that cc_basename is set.
24670   for cc_temp in $compiler""; do
24671   case $cc_temp in
24672     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24673     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24674     \-*) ;;
24675     *) break;;
24676   esac
24677 done
24678 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24679
24680   case $host_os in
24681   cygwin* | mingw* | pw32*)
24682     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24683     # When not using gcc, we currently assume that we are using
24684     # Microsoft Visual C++.
24685     if test "$GCC" != yes; then
24686       with_gnu_ld=no
24687     fi
24688     ;;
24689   interix*)
24690     # we just hope/assume this is gcc and not c89 (= MSVC++)
24691     with_gnu_ld=yes
24692     ;;
24693   openbsd*)
24694     with_gnu_ld=no
24695     ;;
24696   esac
24697
24698   ld_shlibs_GCJ=yes
24699   if test "$with_gnu_ld" = yes; then
24700     # If archive_cmds runs LD, not CC, wlarc should be empty
24701     wlarc='${wl}'
24702
24703     # Set some defaults for GNU ld with shared library support. These
24704     # are reset later if shared libraries are not supported. Putting them
24705     # here allows them to be overridden if necessary.
24706     runpath_var=LD_RUN_PATH
24707     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24708     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24709     # ancient GNU ld didn't support --whole-archive et. al.
24710     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24711         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24712       else
24713         whole_archive_flag_spec_GCJ=
24714     fi
24715     supports_anon_versioning=no
24716     case `$LD -v 2>/dev/null` in
24717       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24718       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24719       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24720       *\ 2.11.*) ;; # other 2.11 versions
24721       *) supports_anon_versioning=yes ;;
24722     esac
24723
24724     # See if GNU ld supports shared libraries.
24725     case $host_os in
24726     aix3* | aix4* | aix5*)
24727       # On AIX/PPC, the GNU linker is very broken
24728       if test "$host_cpu" != ia64; then
24729         ld_shlibs_GCJ=no
24730         cat <<EOF 1>&2
24731
24732 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24733 *** to be unable to reliably create shared libraries on AIX.
24734 *** Therefore, libtool is disabling shared libraries support.  If you
24735 *** really care for shared libraries, you may want to modify your PATH
24736 *** so that a non-GNU linker is found, and then restart.
24737
24738 EOF
24739       fi
24740       ;;
24741
24742     amigaos*)
24743       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)'
24744       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24745       hardcode_minus_L_GCJ=yes
24746
24747       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24748       # that the semantics of dynamic libraries on AmigaOS, at least up
24749       # to version 4, is to share data among multiple programs linked
24750       # with the same dynamic library.  Since this doesn't match the
24751       # behavior of shared libraries on other platforms, we can't use
24752       # them.
24753       ld_shlibs_GCJ=no
24754       ;;
24755
24756     beos*)
24757       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24758         allow_undefined_flag_GCJ=unsupported
24759         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24760         # support --undefined.  This deserves some investigation.  FIXME
24761         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24762       else
24763         ld_shlibs_GCJ=no
24764       fi
24765       ;;
24766
24767     cygwin* | mingw* | pw32*)
24768       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24769       # as there is no search path for DLLs.
24770       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24771       allow_undefined_flag_GCJ=unsupported
24772       always_export_symbols_GCJ=no
24773       enable_shared_with_static_runtimes_GCJ=yes
24774       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24775
24776       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24777         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24778         # If the export-symbols file already is a .def file (1st line
24779         # is EXPORTS), use it as is; otherwise, prepend...
24780         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24781           cp $export_symbols $output_objdir/$soname.def;
24782         else
24783           echo EXPORTS > $output_objdir/$soname.def;
24784           cat $export_symbols >> $output_objdir/$soname.def;
24785         fi~
24786         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24787       else
24788         ld_shlibs_GCJ=no
24789       fi
24790       ;;
24791
24792     interix3*)
24793       hardcode_direct_GCJ=no
24794       hardcode_shlibpath_var_GCJ=no
24795       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24796       export_dynamic_flag_spec_GCJ='${wl}-E'
24797       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24798       # Instead, shared libraries are loaded at an image base (0x10000000 by
24799       # default) and relocated if they conflict, which is a slow very memory
24800       # consuming and fragmenting process.  To avoid this, we pick a random,
24801       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24802       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24803       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'
24804       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'
24805       ;;
24806
24807     linux*)
24808       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24809         tmp_addflag=
24810         case $cc_basename,$host_cpu in
24811         pgcc*)                          # Portland Group C compiler
24812           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'
24813           tmp_addflag=' $pic_flag'
24814           ;;
24815         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24816           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'
24817           tmp_addflag=' $pic_flag -Mnomain' ;;
24818         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24819           tmp_addflag=' -i_dynamic' ;;
24820         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24821           tmp_addflag=' -i_dynamic -nofor_main' ;;
24822         ifc* | ifort*)                  # Intel Fortran compiler
24823           tmp_addflag=' -nofor_main' ;;
24824         esac
24825         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24826
24827         if test $supports_anon_versioning = yes; then
24828           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24829   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24830   $echo "local: *; };" >> $output_objdir/$libname.ver~
24831           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24832         fi
24833       else
24834         ld_shlibs_GCJ=no
24835       fi
24836       ;;
24837
24838     netbsd*)
24839       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24840         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24841         wlarc=
24842       else
24843         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24844         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24845       fi
24846       ;;
24847
24848     solaris*)
24849       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24850         ld_shlibs_GCJ=no
24851         cat <<EOF 1>&2
24852
24853 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24854 *** create shared libraries on Solaris systems.  Therefore, libtool
24855 *** is disabling shared libraries support.  We urge you to upgrade GNU
24856 *** binutils to release 2.9.1 or newer.  Another option is to modify
24857 *** your PATH or compiler configuration so that the native linker is
24858 *** used, and then restart.
24859
24860 EOF
24861       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24862         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24863         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24864       else
24865         ld_shlibs_GCJ=no
24866       fi
24867       ;;
24868
24869     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24870       case `$LD -v 2>&1` in
24871         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24872         ld_shlibs_GCJ=no
24873         cat <<_LT_EOF 1>&2
24874
24875 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24876 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24877 *** is disabling shared libraries support.  We urge you to upgrade GNU
24878 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24879 *** your PATH or compiler configuration so that the native linker is
24880 *** used, and then restart.
24881
24882 _LT_EOF
24883         ;;
24884         *)
24885           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24886             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24887             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24888             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24889           else
24890             ld_shlibs_GCJ=no
24891           fi
24892         ;;
24893       esac
24894       ;;
24895
24896     sunos4*)
24897       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24898       wlarc=
24899       hardcode_direct_GCJ=yes
24900       hardcode_shlibpath_var_GCJ=no
24901       ;;
24902
24903     *)
24904       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24905         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24906         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24907       else
24908         ld_shlibs_GCJ=no
24909       fi
24910       ;;
24911     esac
24912
24913     if test "$ld_shlibs_GCJ" = no; then
24914       runpath_var=
24915       hardcode_libdir_flag_spec_GCJ=
24916       export_dynamic_flag_spec_GCJ=
24917       whole_archive_flag_spec_GCJ=
24918     fi
24919   else
24920     # PORTME fill in a description of your system's linker (not GNU ld)
24921     case $host_os in
24922     aix3*)
24923       allow_undefined_flag_GCJ=unsupported
24924       always_export_symbols_GCJ=yes
24925       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'
24926       # Note: this linker hardcodes the directories in LIBPATH if there
24927       # are no directories specified by -L.
24928       hardcode_minus_L_GCJ=yes
24929       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24930         # Neither direct hardcoding nor static linking is supported with a
24931         # broken collect2.
24932         hardcode_direct_GCJ=unsupported
24933       fi
24934       ;;
24935
24936     aix4* | aix5*)
24937       if test "$host_cpu" = ia64; then
24938         # On IA64, the linker does run time linking by default, so we don't
24939         # have to do anything special.
24940         aix_use_runtimelinking=no
24941         exp_sym_flag='-Bexport'
24942         no_entry_flag=""
24943       else
24944         # If we're using GNU nm, then we don't want the "-C" option.
24945         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24946         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24947           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'
24948         else
24949           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'
24950         fi
24951         aix_use_runtimelinking=no
24952
24953         # Test if we are trying to use run time linking or normal
24954         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24955         # need to do runtime linking.
24956         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24957           for ld_flag in $LDFLAGS; do
24958           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24959             aix_use_runtimelinking=yes
24960             break
24961           fi
24962           done
24963           ;;
24964         esac
24965
24966         exp_sym_flag='-bexport'
24967         no_entry_flag='-bnoentry'
24968       fi
24969
24970       # When large executables or shared objects are built, AIX ld can
24971       # have problems creating the table of contents.  If linking a library
24972       # or program results in "error TOC overflow" add -mminimal-toc to
24973       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24974       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24975
24976       archive_cmds_GCJ=''
24977       hardcode_direct_GCJ=yes
24978       hardcode_libdir_separator_GCJ=':'
24979       link_all_deplibs_GCJ=yes
24980
24981       if test "$GCC" = yes; then
24982         case $host_os in aix4.[012]|aix4.[012].*)
24983         # We only want to do this on AIX 4.2 and lower, the check
24984         # below for broken collect2 doesn't work under 4.3+
24985           collect2name=`${CC} -print-prog-name=collect2`
24986           if test -f "$collect2name" && \
24987            strings "$collect2name" | grep resolve_lib_name >/dev/null
24988           then
24989           # We have reworked collect2
24990           hardcode_direct_GCJ=yes
24991           else
24992           # We have old collect2
24993           hardcode_direct_GCJ=unsupported
24994           # It fails to find uninstalled libraries when the uninstalled
24995           # path is not listed in the libpath.  Setting hardcode_minus_L
24996           # to unsupported forces relinking
24997           hardcode_minus_L_GCJ=yes
24998           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24999           hardcode_libdir_separator_GCJ=
25000           fi
25001           ;;
25002         esac
25003         shared_flag='-shared'
25004         if test "$aix_use_runtimelinking" = yes; then
25005           shared_flag="$shared_flag "'${wl}-G'
25006         fi
25007       else
25008         # not using gcc
25009         if test "$host_cpu" = ia64; then
25010         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25011         # chokes on -Wl,-G. The following line is correct:
25012           shared_flag='-G'
25013         else
25014           if test "$aix_use_runtimelinking" = yes; then
25015             shared_flag='${wl}-G'
25016           else
25017             shared_flag='${wl}-bM:SRE'
25018           fi
25019         fi
25020       fi
25021
25022       # It seems that -bexpall does not export symbols beginning with
25023       # underscore (_), so it is better to generate a list of symbols to export.
25024       always_export_symbols_GCJ=yes
25025       if test "$aix_use_runtimelinking" = yes; then
25026         # Warning - without using the other runtime loading flags (-brtl),
25027         # -berok will link without error, but may produce a broken library.
25028         allow_undefined_flag_GCJ='-berok'
25029        # Determine the default libpath from the value encoded in an empty executable.
25030        cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h.  */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h.  */
25036
25037 int
25038 main ()
25039 {
25040
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_link") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } &&
25059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25060   { (case "(($ac_try" in
25061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062   *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065   (eval "$ac_try") 2>&5
25066   ac_status=$?
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); }; } &&
25069          { ac_try='test -s conftest$ac_exeext'
25070   { (case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075   (eval "$ac_try") 2>&5
25076   ac_status=$?
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); }; }; then
25079
25080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25081 }'`
25082 # Check for a 64-bit object if we didn't find anything.
25083 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; }
25084 }'`; fi
25085 else
25086   echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089
25090 fi
25091
25092 rm -f core conftest.err conftest.$ac_objext \
25093       conftest$ac_exeext conftest.$ac_ext
25094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25095
25096        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25097         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"
25098        else
25099         if test "$host_cpu" = ia64; then
25100           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25101           allow_undefined_flag_GCJ="-z nodefs"
25102           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"
25103         else
25104          # Determine the default libpath from the value encoded in an empty executable.
25105          cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h.  */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h.  */
25111
25112 int
25113 main ()
25114 {
25115
25116   ;
25117   return 0;
25118 }
25119 _ACEOF
25120 rm -f conftest.$ac_objext conftest$ac_exeext
25121 if { (ac_try="$ac_link"
25122 case "(($ac_try" in
25123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124   *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127   (eval "$ac_link") 2>conftest.er1
25128   ac_status=$?
25129   grep -v '^ *+' conftest.er1 >conftest.err
25130   rm -f conftest.er1
25131   cat conftest.err >&5
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); } &&
25134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25135   { (case "(($ac_try" in
25136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137   *) ac_try_echo=$ac_try;;
25138 esac
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140   (eval "$ac_try") 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; } &&
25144          { ac_try='test -s conftest$ac_exeext'
25145   { (case "(($ac_try" in
25146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147   *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150   (eval "$ac_try") 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; }; then
25154
25155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25156 }'`
25157 # Check for a 64-bit object if we didn't find anything.
25158 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; }
25159 }'`; fi
25160 else
25161   echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25163
25164
25165 fi
25166
25167 rm -f core conftest.err conftest.$ac_objext \
25168       conftest$ac_exeext conftest.$ac_ext
25169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25170
25171          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25172           # Warning - without using the other run time loading flags,
25173           # -berok will link without error, but may produce a broken library.
25174           no_undefined_flag_GCJ=' ${wl}-bernotok'
25175           allow_undefined_flag_GCJ=' ${wl}-berok'
25176           # Exported symbols can be pulled into shared objects from archives
25177           whole_archive_flag_spec_GCJ='$convenience'
25178           archive_cmds_need_lc_GCJ=yes
25179           # This is similar to how AIX traditionally builds its shared libraries.
25180           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'
25181         fi
25182       fi
25183       ;;
25184
25185     amigaos*)
25186       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)'
25187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25188       hardcode_minus_L_GCJ=yes
25189       # see comment about different semantics on the GNU ld section
25190       ld_shlibs_GCJ=no
25191       ;;
25192
25193     bsdi[45]*)
25194       export_dynamic_flag_spec_GCJ=-rdynamic
25195       ;;
25196
25197     cygwin* | mingw* | pw32*)
25198       # When not using gcc, we currently assume that we are using
25199       # Microsoft Visual C++.
25200       # hardcode_libdir_flag_spec is actually meaningless, as there is
25201       # no search path for DLLs.
25202       hardcode_libdir_flag_spec_GCJ=' '
25203       allow_undefined_flag_GCJ=unsupported
25204       # Tell ltmain to make .lib files, not .a files.
25205       libext=lib
25206       # Tell ltmain to make .dll files, not .so files.
25207       shrext_cmds=".dll"
25208       # FIXME: Setting linknames here is a bad hack.
25209       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25210       # The linker will automatically build a .lib file if we build a DLL.
25211       old_archive_From_new_cmds_GCJ='true'
25212       # FIXME: Should let the user specify the lib program.
25213       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25214       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25215       enable_shared_with_static_runtimes_GCJ=yes
25216       ;;
25217
25218     darwin* | rhapsody*)
25219       case $host_os in
25220         rhapsody* | darwin1.[012])
25221          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25222          ;;
25223        *) # Darwin 1.3 on
25224          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25225            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25226          else
25227            case ${MACOSX_DEPLOYMENT_TARGET} in
25228              10.[012])
25229                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25230                ;;
25231              10.*)
25232                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25233                ;;
25234            esac
25235          fi
25236          ;;
25237       esac
25238       archive_cmds_need_lc_GCJ=no
25239       hardcode_direct_GCJ=no
25240       hardcode_automatic_GCJ=yes
25241       hardcode_shlibpath_var_GCJ=unsupported
25242       whole_archive_flag_spec_GCJ=''
25243       link_all_deplibs_GCJ=yes
25244     if test "$GCC" = yes ; then
25245         output_verbose_link_cmd='echo'
25246         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25247       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25248       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25249       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}'
25250       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}'
25251     else
25252       case $cc_basename in
25253         xlc*)
25254          output_verbose_link_cmd='echo'
25255          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25256          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25257           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25258          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}'
25259           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}'
25260           ;;
25261        *)
25262          ld_shlibs_GCJ=no
25263           ;;
25264       esac
25265     fi
25266       ;;
25267
25268     dgux*)
25269       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25271       hardcode_shlibpath_var_GCJ=no
25272       ;;
25273
25274     freebsd1*)
25275       ld_shlibs_GCJ=no
25276       ;;
25277
25278     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25279     # support.  Future versions do this automatically, but an explicit c++rt0.o
25280     # does not break anything, and helps significantly (at the cost of a little
25281     # extra space).
25282     freebsd2.2*)
25283       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25284       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25285       hardcode_direct_GCJ=yes
25286       hardcode_shlibpath_var_GCJ=no
25287       ;;
25288
25289     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25290     freebsd2*)
25291       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25292       hardcode_direct_GCJ=yes
25293       hardcode_minus_L_GCJ=yes
25294       hardcode_shlibpath_var_GCJ=no
25295       ;;
25296
25297     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25298     freebsd* | kfreebsd*-gnu | dragonfly*)
25299       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25300       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25301       hardcode_direct_GCJ=yes
25302       hardcode_shlibpath_var_GCJ=no
25303       ;;
25304
25305     hpux9*)
25306       if test "$GCC" = yes; then
25307         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'
25308       else
25309         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'
25310       fi
25311       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25312       hardcode_libdir_separator_GCJ=:
25313       hardcode_direct_GCJ=yes
25314
25315       # hardcode_minus_L: Not really in the search PATH,
25316       # but as the default location of the library.
25317       hardcode_minus_L_GCJ=yes
25318       export_dynamic_flag_spec_GCJ='${wl}-E'
25319       ;;
25320
25321     hpux10*)
25322       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25323         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25324       else
25325         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25326       fi
25327       if test "$with_gnu_ld" = no; then
25328         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25329         hardcode_libdir_separator_GCJ=:
25330
25331         hardcode_direct_GCJ=yes
25332         export_dynamic_flag_spec_GCJ='${wl}-E'
25333
25334         # hardcode_minus_L: Not really in the search PATH,
25335         # but as the default location of the library.
25336         hardcode_minus_L_GCJ=yes
25337       fi
25338       ;;
25339
25340     hpux11*)
25341       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25342         case $host_cpu in
25343         hppa*64*)
25344           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345           ;;
25346         ia64*)
25347           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25348           ;;
25349         *)
25350           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25351           ;;
25352         esac
25353       else
25354         case $host_cpu in
25355         hppa*64*)
25356           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25357           ;;
25358         ia64*)
25359           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25360           ;;
25361         *)
25362           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25363           ;;
25364         esac
25365       fi
25366       if test "$with_gnu_ld" = no; then
25367         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25368         hardcode_libdir_separator_GCJ=:
25369
25370         case $host_cpu in
25371         hppa*64*|ia64*)
25372           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25373           hardcode_direct_GCJ=no
25374           hardcode_shlibpath_var_GCJ=no
25375           ;;
25376         *)
25377           hardcode_direct_GCJ=yes
25378           export_dynamic_flag_spec_GCJ='${wl}-E'
25379
25380           # hardcode_minus_L: Not really in the search PATH,
25381           # but as the default location of the library.
25382           hardcode_minus_L_GCJ=yes
25383           ;;
25384         esac
25385       fi
25386       ;;
25387
25388     irix5* | irix6* | nonstopux*)
25389       if test "$GCC" = yes; then
25390         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'
25391       else
25392         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'
25393         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25394       fi
25395       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25396       hardcode_libdir_separator_GCJ=:
25397       link_all_deplibs_GCJ=yes
25398       ;;
25399
25400     netbsd*)
25401       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25402         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25403       else
25404         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25405       fi
25406       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25407       hardcode_direct_GCJ=yes
25408       hardcode_shlibpath_var_GCJ=no
25409       ;;
25410
25411     newsos6)
25412       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25413       hardcode_direct_GCJ=yes
25414       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25415       hardcode_libdir_separator_GCJ=:
25416       hardcode_shlibpath_var_GCJ=no
25417       ;;
25418
25419     openbsd*)
25420       hardcode_direct_GCJ=yes
25421       hardcode_shlibpath_var_GCJ=no
25422       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25423         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25424         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25425         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25426         export_dynamic_flag_spec_GCJ='${wl}-E'
25427       else
25428        case $host_os in
25429          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25430            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25431            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25432            ;;
25433          *)
25434            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25435            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25436            ;;
25437        esac
25438       fi
25439       ;;
25440
25441     os2*)
25442       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25443       hardcode_minus_L_GCJ=yes
25444       allow_undefined_flag_GCJ=unsupported
25445       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'
25446       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25447       ;;
25448
25449     osf3*)
25450       if test "$GCC" = yes; then
25451         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25452         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'
25453       else
25454         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25455         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'
25456       fi
25457       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25458       hardcode_libdir_separator_GCJ=:
25459       ;;
25460
25461     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25462       if test "$GCC" = yes; then
25463         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25464         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'
25465         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25466       else
25467         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25468         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'
25469         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~
25470         $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'
25471
25472         # Both c and cxx compiler support -rpath directly
25473         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25474       fi
25475       hardcode_libdir_separator_GCJ=:
25476       ;;
25477
25478     solaris*)
25479       no_undefined_flag_GCJ=' -z text'
25480       if test "$GCC" = yes; then
25481         wlarc='${wl}'
25482         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25483         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25484           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25485       else
25486         wlarc=''
25487         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25488         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25489         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25490       fi
25491       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25492       hardcode_shlibpath_var_GCJ=no
25493       case $host_os in
25494       solaris2.[0-5] | solaris2.[0-5].*) ;;
25495       *)
25496         # The compiler driver will combine linker options so we
25497         # cannot just pass the convience library names through
25498         # without $wl, iff we do not link with $LD.
25499         # Luckily, gcc supports the same syntax we need for Sun Studio.
25500         # Supported since Solaris 2.6 (maybe 2.5.1?)
25501         case $wlarc in
25502         '')
25503           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25504         *)
25505           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' ;;
25506         esac ;;
25507       esac
25508       link_all_deplibs_GCJ=yes
25509       ;;
25510
25511     sunos4*)
25512       if test "x$host_vendor" = xsequent; then
25513         # Use $CC to link under sequent, because it throws in some extra .o
25514         # files that make .init and .fini sections work.
25515         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25516       else
25517         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25518       fi
25519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25520       hardcode_direct_GCJ=yes
25521       hardcode_minus_L_GCJ=yes
25522       hardcode_shlibpath_var_GCJ=no
25523       ;;
25524
25525     sysv4)
25526       case $host_vendor in
25527         sni)
25528           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25529           hardcode_direct_GCJ=yes # is this really true???
25530         ;;
25531         siemens)
25532           ## LD is ld it makes a PLAMLIB
25533           ## CC just makes a GrossModule.
25534           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25535           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25536           hardcode_direct_GCJ=no
25537         ;;
25538         motorola)
25539           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25540           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25541         ;;
25542       esac
25543       runpath_var='LD_RUN_PATH'
25544       hardcode_shlibpath_var_GCJ=no
25545       ;;
25546
25547     sysv4.3*)
25548       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25549       hardcode_shlibpath_var_GCJ=no
25550       export_dynamic_flag_spec_GCJ='-Bexport'
25551       ;;
25552
25553     sysv4*MP*)
25554       if test -d /usr/nec; then
25555         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556         hardcode_shlibpath_var_GCJ=no
25557         runpath_var=LD_RUN_PATH
25558         hardcode_runpath_var=yes
25559         ld_shlibs_GCJ=yes
25560       fi
25561       ;;
25562
25563     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25564       no_undefined_flag_GCJ='${wl}-z,text'
25565       archive_cmds_need_lc_GCJ=no
25566       hardcode_shlibpath_var_GCJ=no
25567       runpath_var='LD_RUN_PATH'
25568
25569       if test "$GCC" = yes; then
25570         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25571         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25572       else
25573         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25574         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25575       fi
25576       ;;
25577
25578     sysv5* | sco3.2v5* | sco5v6*)
25579       # Note: We can NOT use -z defs as we might desire, because we do not
25580       # link with -lc, and that would cause any symbols used from libc to
25581       # always be unresolved, which means just about no library would
25582       # ever link correctly.  If we're not using GNU ld we use -z text
25583       # though, which does catch some bad symbols but isn't as heavy-handed
25584       # as -z defs.
25585       no_undefined_flag_GCJ='${wl}-z,text'
25586       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25587       archive_cmds_need_lc_GCJ=no
25588       hardcode_shlibpath_var_GCJ=no
25589       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25590       hardcode_libdir_separator_GCJ=':'
25591       link_all_deplibs_GCJ=yes
25592       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25593       runpath_var='LD_RUN_PATH'
25594
25595       if test "$GCC" = yes; then
25596         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25597         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25598       else
25599         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25600         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25601       fi
25602       ;;
25603
25604     uts4*)
25605       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25606       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25607       hardcode_shlibpath_var_GCJ=no
25608       ;;
25609
25610     *)
25611       ld_shlibs_GCJ=no
25612       ;;
25613     esac
25614   fi
25615
25616 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25617 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25618 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25619
25620 #
25621 # Do we need to explicitly link libc?
25622 #
25623 case "x$archive_cmds_need_lc_GCJ" in
25624 x|xyes)
25625   # Assume -lc should be added
25626   archive_cmds_need_lc_GCJ=yes
25627
25628   if test "$enable_shared" = yes && test "$GCC" = yes; then
25629     case $archive_cmds_GCJ in
25630     *'~'*)
25631       # FIXME: we may have to deal with multi-command sequences.
25632       ;;
25633     '$CC '*)
25634       # Test whether the compiler implicitly links with -lc since on some
25635       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25636       # to ld, don't add -lc before -lgcc.
25637       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25639       $rm conftest*
25640       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25641
25642       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25643   (eval $ac_compile) 2>&5
25644   ac_status=$?
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } 2>conftest.err; then
25647         soname=conftest
25648         lib=conftest
25649         libobjs=conftest.$ac_objext
25650         deplibs=
25651         wl=$lt_prog_compiler_wl_GCJ
25652         pic_flag=$lt_prog_compiler_pic_GCJ
25653         compiler_flags=-v
25654         linker_flags=-v
25655         verstring=
25656         output_objdir=.
25657         libname=conftest
25658         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25659         allow_undefined_flag_GCJ=
25660         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25661   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25662   ac_status=$?
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); }
25665         then
25666           archive_cmds_need_lc_GCJ=no
25667         else
25668           archive_cmds_need_lc_GCJ=yes
25669         fi
25670         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25671       else
25672         cat conftest.err 1>&5
25673       fi
25674       $rm conftest*
25675       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25676 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25677       ;;
25678     esac
25679   fi
25680   ;;
25681 esac
25682
25683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25685 library_names_spec=
25686 libname_spec='lib$name'
25687 soname_spec=
25688 shrext_cmds=".so"
25689 postinstall_cmds=
25690 postuninstall_cmds=
25691 finish_cmds=
25692 finish_eval=
25693 shlibpath_var=
25694 shlibpath_overrides_runpath=unknown
25695 version_type=none
25696 dynamic_linker="$host_os ld.so"
25697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25698 if test "$GCC" = yes; then
25699   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25700   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25701     # if the path contains ";" then we assume it to be the separator
25702     # otherwise default to the standard path separator (i.e. ":") - it is
25703     # assumed that no part of a normal pathname contains ";" but that should
25704     # okay in the real world where ";" in dirpaths is itself problematic.
25705     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25706   else
25707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25708   fi
25709 else
25710   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25711 fi
25712 need_lib_prefix=unknown
25713 hardcode_into_libs=no
25714
25715 # when you set need_version to no, make sure it does not cause -set_version
25716 # flags to be left without arguments
25717 need_version=unknown
25718
25719 case $host_os in
25720 aix3*)
25721   version_type=linux
25722   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25723   shlibpath_var=LIBPATH
25724
25725   # AIX 3 has no versioning support, so we append a major version to the name.
25726   soname_spec='${libname}${release}${shared_ext}$major'
25727   ;;
25728
25729 aix4* | aix5*)
25730   version_type=linux
25731   need_lib_prefix=no
25732   need_version=no
25733   hardcode_into_libs=yes
25734   if test "$host_cpu" = ia64; then
25735     # AIX 5 supports IA64
25736     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25737     shlibpath_var=LD_LIBRARY_PATH
25738   else
25739     # With GCC up to 2.95.x, collect2 would create an import file
25740     # for dependence libraries.  The import file would start with
25741     # the line `#! .'.  This would cause the generated library to
25742     # depend on `.', always an invalid library.  This was fixed in
25743     # development snapshots of GCC prior to 3.0.
25744     case $host_os in
25745       aix4 | aix4.[01] | aix4.[01].*)
25746       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25747            echo ' yes '
25748            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25749         :
25750       else
25751         can_build_shared=no
25752       fi
25753       ;;
25754     esac
25755     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25756     # soname into executable. Probably we can add versioning support to
25757     # collect2, so additional links can be useful in future.
25758     if test "$aix_use_runtimelinking" = yes; then
25759       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25760       # instead of lib<name>.a to let people know that these are not
25761       # typical AIX shared libraries.
25762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25763     else
25764       # We preserve .a as extension for shared libraries through AIX4.2
25765       # and later when we are not doing run time linking.
25766       library_names_spec='${libname}${release}.a $libname.a'
25767       soname_spec='${libname}${release}${shared_ext}$major'
25768     fi
25769     shlibpath_var=LIBPATH
25770   fi
25771   ;;
25772
25773 amigaos*)
25774   library_names_spec='$libname.ixlibrary $libname.a'
25775   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25776   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'
25777   ;;
25778
25779 beos*)
25780   library_names_spec='${libname}${shared_ext}'
25781   dynamic_linker="$host_os ld.so"
25782   shlibpath_var=LIBRARY_PATH
25783   ;;
25784
25785 bsdi[45]*)
25786   version_type=linux
25787   need_version=no
25788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789   soname_spec='${libname}${release}${shared_ext}$major'
25790   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25791   shlibpath_var=LD_LIBRARY_PATH
25792   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25793   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25794   # the default ld.so.conf also contains /usr/contrib/lib and
25795   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25796   # libtool to hard-code these into programs
25797   ;;
25798
25799 cygwin* | mingw* | pw32*)
25800   version_type=windows
25801   shrext_cmds=".dll"
25802   need_version=no
25803   need_lib_prefix=no
25804
25805   case $GCC,$host_os in
25806   yes,cygwin* | yes,mingw* | yes,pw32*)
25807     library_names_spec='$libname.dll.a'
25808     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25809     postinstall_cmds='base_file=`basename \${file}`~
25810       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25811       dldir=$destdir/`dirname \$dlpath`~
25812       test -d \$dldir || mkdir -p \$dldir~
25813       $install_prog $dir/$dlname \$dldir/$dlname~
25814       chmod a+x \$dldir/$dlname'
25815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25816       dlpath=$dir/\$dldll~
25817        $rm \$dlpath'
25818     shlibpath_overrides_runpath=yes
25819
25820     case $host_os in
25821     cygwin*)
25822       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25823       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25824       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25825       ;;
25826     mingw*)
25827       # MinGW DLLs use traditional 'lib' prefix
25828       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25829       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25830       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25831         # It is most probably a Windows format PATH printed by
25832         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25833         # path with ; separators, and with drive letters. We can handle the
25834         # drive letters (cygwin fileutils understands them), so leave them,
25835         # especially as we might pass files found there to a mingw objdump,
25836         # which wouldn't understand a cygwinified path. Ahh.
25837         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25838       else
25839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25840       fi
25841       ;;
25842     pw32*)
25843       # pw32 DLLs use 'pw' prefix rather than 'lib'
25844       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25845       ;;
25846     esac
25847     ;;
25848
25849   *)
25850     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25851     ;;
25852   esac
25853   dynamic_linker='Win32 ld.exe'
25854   # FIXME: first we should search . and the directory the executable is in
25855   shlibpath_var=PATH
25856   ;;
25857
25858 darwin* | rhapsody*)
25859   dynamic_linker="$host_os dyld"
25860   version_type=darwin
25861   need_lib_prefix=no
25862   need_version=no
25863   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25864   soname_spec='${libname}${release}${major}$shared_ext'
25865   shlibpath_overrides_runpath=yes
25866   shlibpath_var=DYLD_LIBRARY_PATH
25867   shrext_cmds='.dylib'
25868   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25869   if test "$GCC" = yes; then
25870     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"`
25871   else
25872     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25873   fi
25874   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25875   ;;
25876
25877 dgux*)
25878   version_type=linux
25879   need_lib_prefix=no
25880   need_version=no
25881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25882   soname_spec='${libname}${release}${shared_ext}$major'
25883   shlibpath_var=LD_LIBRARY_PATH
25884   ;;
25885
25886 freebsd1*)
25887   dynamic_linker=no
25888   ;;
25889
25890 kfreebsd*-gnu)
25891   version_type=linux
25892   need_lib_prefix=no
25893   need_version=no
25894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25895   soname_spec='${libname}${release}${shared_ext}$major'
25896   shlibpath_var=LD_LIBRARY_PATH
25897   shlibpath_overrides_runpath=no
25898   hardcode_into_libs=yes
25899   dynamic_linker='GNU ld.so'
25900   ;;
25901
25902 freebsd* | dragonfly*)
25903   # DragonFly does not have aout.  When/if they implement a new
25904   # versioning mechanism, adjust this.
25905   if test -x /usr/bin/objformat; then
25906     objformat=`/usr/bin/objformat`
25907   else
25908     case $host_os in
25909     freebsd[123]*) objformat=aout ;;
25910     *) objformat=elf ;;
25911     esac
25912   fi
25913   version_type=freebsd-$objformat
25914   case $version_type in
25915     freebsd-elf*)
25916       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25917       need_version=no
25918       need_lib_prefix=no
25919       ;;
25920     freebsd-*)
25921       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25922       need_version=yes
25923       ;;
25924   esac
25925   shlibpath_var=LD_LIBRARY_PATH
25926   case $host_os in
25927   freebsd2*)
25928     shlibpath_overrides_runpath=yes
25929     ;;
25930   freebsd3.[01]* | freebsdelf3.[01]*)
25931     shlibpath_overrides_runpath=yes
25932     hardcode_into_libs=yes
25933     ;;
25934   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25935   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25936     shlibpath_overrides_runpath=no
25937     hardcode_into_libs=yes
25938     ;;
25939   freebsd*) # from 4.6 on
25940     shlibpath_overrides_runpath=yes
25941     hardcode_into_libs=yes
25942     ;;
25943   esac
25944   ;;
25945
25946 gnu*)
25947   version_type=linux
25948   need_lib_prefix=no
25949   need_version=no
25950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25951   soname_spec='${libname}${release}${shared_ext}$major'
25952   shlibpath_var=LD_LIBRARY_PATH
25953   hardcode_into_libs=yes
25954   ;;
25955
25956 hpux9* | hpux10* | hpux11*)
25957   # Give a soname corresponding to the major version so that dld.sl refuses to
25958   # link against other versions.
25959   version_type=sunos
25960   need_lib_prefix=no
25961   need_version=no
25962   case $host_cpu in
25963   ia64*)
25964     shrext_cmds='.so'
25965     hardcode_into_libs=yes
25966     dynamic_linker="$host_os dld.so"
25967     shlibpath_var=LD_LIBRARY_PATH
25968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970     soname_spec='${libname}${release}${shared_ext}$major'
25971     if test "X$HPUX_IA64_MODE" = X32; then
25972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25973     else
25974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25975     fi
25976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25977     ;;
25978    hppa*64*)
25979      shrext_cmds='.sl'
25980      hardcode_into_libs=yes
25981      dynamic_linker="$host_os dld.sl"
25982      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25983      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985      soname_spec='${libname}${release}${shared_ext}$major'
25986      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25987      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25988      ;;
25989    *)
25990     shrext_cmds='.sl'
25991     dynamic_linker="$host_os dld.sl"
25992     shlibpath_var=SHLIB_PATH
25993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25995     soname_spec='${libname}${release}${shared_ext}$major'
25996     ;;
25997   esac
25998   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25999   postinstall_cmds='chmod 555 $lib'
26000   ;;
26001
26002 interix3*)
26003   version_type=linux
26004   need_lib_prefix=no
26005   need_version=no
26006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26007   soname_spec='${libname}${release}${shared_ext}$major'
26008   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26009   shlibpath_var=LD_LIBRARY_PATH
26010   shlibpath_overrides_runpath=no
26011   hardcode_into_libs=yes
26012   ;;
26013
26014 irix5* | irix6* | nonstopux*)
26015   case $host_os in
26016     nonstopux*) version_type=nonstopux ;;
26017     *)
26018         if test "$lt_cv_prog_gnu_ld" = yes; then
26019                 version_type=linux
26020         else
26021                 version_type=irix
26022         fi ;;
26023   esac
26024   need_lib_prefix=no
26025   need_version=no
26026   soname_spec='${libname}${release}${shared_ext}$major'
26027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26028   case $host_os in
26029   irix5* | nonstopux*)
26030     libsuff= shlibsuff=
26031     ;;
26032   *)
26033     case $LD in # libtool.m4 will add one of these switches to LD
26034     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26035       libsuff= shlibsuff= libmagic=32-bit;;
26036     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26037       libsuff=32 shlibsuff=N32 libmagic=N32;;
26038     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26039       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26040     *) libsuff= shlibsuff= libmagic=never-match;;
26041     esac
26042     ;;
26043   esac
26044   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26045   shlibpath_overrides_runpath=no
26046   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26047   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26048   hardcode_into_libs=yes
26049   ;;
26050
26051 # No shared lib support for Linux oldld, aout, or coff.
26052 linux*oldld* | linux*aout* | linux*coff*)
26053   dynamic_linker=no
26054   ;;
26055
26056 # This must be Linux ELF.
26057 linux*)
26058   version_type=linux
26059   need_lib_prefix=no
26060   need_version=no
26061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26062   soname_spec='${libname}${release}${shared_ext}$major'
26063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26064   shlibpath_var=LD_LIBRARY_PATH
26065   shlibpath_overrides_runpath=no
26066   # This implies no fast_install, which is unacceptable.
26067   # Some rework will be needed to allow for fast_install
26068   # before this can be enabled.
26069   hardcode_into_libs=yes
26070
26071   # Append ld.so.conf contents to the search path
26072   if test -f /etc/ld.so.conf; then
26073     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' ' '`
26074     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26075   fi
26076
26077   # We used to test for /lib/ld.so.1 and disable shared libraries on
26078   # powerpc, because MkLinux only supported shared libraries with the
26079   # GNU dynamic linker.  Since this was broken with cross compilers,
26080   # most powerpc-linux boxes support dynamic linking these days and
26081   # people can always --disable-shared, the test was removed, and we
26082   # assume the GNU/Linux dynamic linker is in use.
26083   dynamic_linker='GNU/Linux ld.so'
26084   ;;
26085
26086 knetbsd*-gnu)
26087   version_type=linux
26088   need_lib_prefix=no
26089   need_version=no
26090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091   soname_spec='${libname}${release}${shared_ext}$major'
26092   shlibpath_var=LD_LIBRARY_PATH
26093   shlibpath_overrides_runpath=no
26094   hardcode_into_libs=yes
26095   dynamic_linker='GNU ld.so'
26096   ;;
26097
26098 netbsd*)
26099   version_type=sunos
26100   need_lib_prefix=no
26101   need_version=no
26102   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26105     dynamic_linker='NetBSD (a.out) ld.so'
26106   else
26107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26108     soname_spec='${libname}${release}${shared_ext}$major'
26109     dynamic_linker='NetBSD ld.elf_so'
26110   fi
26111   shlibpath_var=LD_LIBRARY_PATH
26112   shlibpath_overrides_runpath=yes
26113   hardcode_into_libs=yes
26114   ;;
26115
26116 newsos6)
26117   version_type=linux
26118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26119   shlibpath_var=LD_LIBRARY_PATH
26120   shlibpath_overrides_runpath=yes
26121   ;;
26122
26123 nto-qnx*)
26124   version_type=linux
26125   need_lib_prefix=no
26126   need_version=no
26127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26128   soname_spec='${libname}${release}${shared_ext}$major'
26129   shlibpath_var=LD_LIBRARY_PATH
26130   shlibpath_overrides_runpath=yes
26131   ;;
26132
26133 openbsd*)
26134   version_type=sunos
26135   sys_lib_dlsearch_path_spec="/usr/lib"
26136   need_lib_prefix=no
26137   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26138   case $host_os in
26139     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26140     *)                         need_version=no  ;;
26141   esac
26142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26144   shlibpath_var=LD_LIBRARY_PATH
26145   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26146     case $host_os in
26147       openbsd2.[89] | openbsd2.[89].*)
26148         shlibpath_overrides_runpath=no
26149         ;;
26150       *)
26151         shlibpath_overrides_runpath=yes
26152         ;;
26153       esac
26154   else
26155     shlibpath_overrides_runpath=yes
26156   fi
26157   ;;
26158
26159 os2*)
26160   libname_spec='$name'
26161   shrext_cmds=".dll"
26162   need_lib_prefix=no
26163   library_names_spec='$libname${shared_ext} $libname.a'
26164   dynamic_linker='OS/2 ld.exe'
26165   shlibpath_var=LIBPATH
26166   ;;
26167
26168 osf3* | osf4* | osf5*)
26169   version_type=osf
26170   need_lib_prefix=no
26171   need_version=no
26172   soname_spec='${libname}${release}${shared_ext}$major'
26173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26174   shlibpath_var=LD_LIBRARY_PATH
26175   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26176   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26177   ;;
26178
26179 solaris*)
26180   version_type=linux
26181   need_lib_prefix=no
26182   need_version=no
26183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26184   soname_spec='${libname}${release}${shared_ext}$major'
26185   shlibpath_var=LD_LIBRARY_PATH
26186   shlibpath_overrides_runpath=yes
26187   hardcode_into_libs=yes
26188   # ldd complains unless libraries are executable
26189   postinstall_cmds='chmod +x $lib'
26190   ;;
26191
26192 sunos4*)
26193   version_type=sunos
26194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26196   shlibpath_var=LD_LIBRARY_PATH
26197   shlibpath_overrides_runpath=yes
26198   if test "$with_gnu_ld" = yes; then
26199     need_lib_prefix=no
26200   fi
26201   need_version=yes
26202   ;;
26203
26204 sysv4 | sysv4.3*)
26205   version_type=linux
26206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26207   soname_spec='${libname}${release}${shared_ext}$major'
26208   shlibpath_var=LD_LIBRARY_PATH
26209   case $host_vendor in
26210     sni)
26211       shlibpath_overrides_runpath=no
26212       need_lib_prefix=no
26213       export_dynamic_flag_spec='${wl}-Blargedynsym'
26214       runpath_var=LD_RUN_PATH
26215       ;;
26216     siemens)
26217       need_lib_prefix=no
26218       ;;
26219     motorola)
26220       need_lib_prefix=no
26221       need_version=no
26222       shlibpath_overrides_runpath=no
26223       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26224       ;;
26225   esac
26226   ;;
26227
26228 sysv4*MP*)
26229   if test -d /usr/nec ;then
26230     version_type=linux
26231     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26232     soname_spec='$libname${shared_ext}.$major'
26233     shlibpath_var=LD_LIBRARY_PATH
26234   fi
26235   ;;
26236
26237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26238   version_type=freebsd-elf
26239   need_lib_prefix=no
26240   need_version=no
26241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26242   soname_spec='${libname}${release}${shared_ext}$major'
26243   shlibpath_var=LD_LIBRARY_PATH
26244   hardcode_into_libs=yes
26245   if test "$with_gnu_ld" = yes; then
26246     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26247     shlibpath_overrides_runpath=no
26248   else
26249     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26250     shlibpath_overrides_runpath=yes
26251     case $host_os in
26252       sco3.2v5*)
26253         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26254         ;;
26255     esac
26256   fi
26257   sys_lib_dlsearch_path_spec='/usr/lib'
26258   ;;
26259
26260 uts4*)
26261   version_type=linux
26262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26263   soname_spec='${libname}${release}${shared_ext}$major'
26264   shlibpath_var=LD_LIBRARY_PATH
26265   ;;
26266
26267 *)
26268   dynamic_linker=no
26269   ;;
26270 esac
26271 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26272 echo "${ECHO_T}$dynamic_linker" >&6; }
26273 test "$dynamic_linker" = no && can_build_shared=no
26274
26275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26276 if test "$GCC" = yes; then
26277   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26278 fi
26279
26280 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26282 hardcode_action_GCJ=
26283 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26284    test -n "$runpath_var_GCJ" || \
26285    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26286
26287   # We can hardcode non-existant directories.
26288   if test "$hardcode_direct_GCJ" != no &&
26289      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26290      # have to relink, otherwise we might link with an installed library
26291      # when we should be linking with a yet-to-be-installed one
26292      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26293      test "$hardcode_minus_L_GCJ" != no; then
26294     # Linking always hardcodes the temporary library directory.
26295     hardcode_action_GCJ=relink
26296   else
26297     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26298     hardcode_action_GCJ=immediate
26299   fi
26300 else
26301   # We cannot hardcode anything, or else we can only hardcode existing
26302   # directories.
26303   hardcode_action_GCJ=unsupported
26304 fi
26305 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26306 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26307
26308 if test "$hardcode_action_GCJ" = relink; then
26309   # Fast installation is not supported
26310   enable_fast_install=no
26311 elif test "$shlibpath_overrides_runpath" = yes ||
26312      test "$enable_shared" = no; then
26313   # Fast installation is not necessary
26314   enable_fast_install=needless
26315 fi
26316
26317
26318 # The else clause should only fire when bootstrapping the
26319 # libtool distribution, otherwise you forgot to ship ltmain.sh
26320 # with your package, and you will get complaints that there are
26321 # no rules to generate ltmain.sh.
26322 if test -f "$ltmain"; then
26323   # See if we are running on zsh, and set the options which allow our commands through
26324   # without removal of \ escapes.
26325   if test -n "${ZSH_VERSION+set}" ; then
26326     setopt NO_GLOB_SUBST
26327   fi
26328   # Now quote all the things that may contain metacharacters while being
26329   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26330   # variables and quote the copies for generation of the libtool script.
26331   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26332     SED SHELL STRIP \
26333     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26334     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26335     deplibs_check_method reload_flag reload_cmds need_locks \
26336     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26337     lt_cv_sys_global_symbol_to_c_name_address \
26338     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26339     old_postinstall_cmds old_postuninstall_cmds \
26340     compiler_GCJ \
26341     CC_GCJ \
26342     LD_GCJ \
26343     lt_prog_compiler_wl_GCJ \
26344     lt_prog_compiler_pic_GCJ \
26345     lt_prog_compiler_static_GCJ \
26346     lt_prog_compiler_no_builtin_flag_GCJ \
26347     export_dynamic_flag_spec_GCJ \
26348     thread_safe_flag_spec_GCJ \
26349     whole_archive_flag_spec_GCJ \
26350     enable_shared_with_static_runtimes_GCJ \
26351     old_archive_cmds_GCJ \
26352     old_archive_from_new_cmds_GCJ \
26353     predep_objects_GCJ \
26354     postdep_objects_GCJ \
26355     predeps_GCJ \
26356     postdeps_GCJ \
26357     compiler_lib_search_path_GCJ \
26358     archive_cmds_GCJ \
26359     archive_expsym_cmds_GCJ \
26360     postinstall_cmds_GCJ \
26361     postuninstall_cmds_GCJ \
26362     old_archive_from_expsyms_cmds_GCJ \
26363     allow_undefined_flag_GCJ \
26364     no_undefined_flag_GCJ \
26365     export_symbols_cmds_GCJ \
26366     hardcode_libdir_flag_spec_GCJ \
26367     hardcode_libdir_flag_spec_ld_GCJ \
26368     hardcode_libdir_separator_GCJ \
26369     hardcode_automatic_GCJ \
26370     module_cmds_GCJ \
26371     module_expsym_cmds_GCJ \
26372     lt_cv_prog_compiler_c_o_GCJ \
26373     exclude_expsyms_GCJ \
26374     include_expsyms_GCJ; do
26375
26376     case $var in
26377     old_archive_cmds_GCJ | \
26378     old_archive_from_new_cmds_GCJ | \
26379     archive_cmds_GCJ | \
26380     archive_expsym_cmds_GCJ | \
26381     module_cmds_GCJ | \
26382     module_expsym_cmds_GCJ | \
26383     old_archive_from_expsyms_cmds_GCJ | \
26384     export_symbols_cmds_GCJ | \
26385     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26386     postinstall_cmds | postuninstall_cmds | \
26387     old_postinstall_cmds | old_postuninstall_cmds | \
26388     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26389       # Double-quote double-evaled strings.
26390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26391       ;;
26392     *)
26393       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26394       ;;
26395     esac
26396   done
26397
26398   case $lt_echo in
26399   *'\$0 --fallback-echo"')
26400     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26401     ;;
26402   esac
26403
26404 cfgfile="$ofile"
26405
26406   cat <<__EOF__ >> "$cfgfile"
26407 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26408
26409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26410
26411 # Shell to use when invoking shell scripts.
26412 SHELL=$lt_SHELL
26413
26414 # Whether or not to build shared libraries.
26415 build_libtool_libs=$enable_shared
26416
26417 # Whether or not to build static libraries.
26418 build_old_libs=$enable_static
26419
26420 # Whether or not to add -lc for building shared libraries.
26421 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26422
26423 # Whether or not to disallow shared libs when runtime libs are static
26424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26425
26426 # Whether or not to optimize for fast installation.
26427 fast_install=$enable_fast_install
26428
26429 # The host system.
26430 host_alias=$host_alias
26431 host=$host
26432 host_os=$host_os
26433
26434 # The build system.
26435 build_alias=$build_alias
26436 build=$build
26437 build_os=$build_os
26438
26439 # An echo program that does not interpret backslashes.
26440 echo=$lt_echo
26441
26442 # The archiver.
26443 AR=$lt_AR
26444 AR_FLAGS=$lt_AR_FLAGS
26445
26446 # A C compiler.
26447 LTCC=$lt_LTCC
26448
26449 # LTCC compiler flags.
26450 LTCFLAGS=$lt_LTCFLAGS
26451
26452 # A language-specific compiler.
26453 CC=$lt_compiler_GCJ
26454
26455 # Is the compiler the GNU C compiler?
26456 with_gcc=$GCC_GCJ
26457
26458 # An ERE matcher.
26459 EGREP=$lt_EGREP
26460
26461 # The linker used to build libraries.
26462 LD=$lt_LD_GCJ
26463
26464 # Whether we need hard or soft links.
26465 LN_S=$lt_LN_S
26466
26467 # A BSD-compatible nm program.
26468 NM=$lt_NM
26469
26470 # A symbol stripping program
26471 STRIP=$lt_STRIP
26472
26473 # Used to examine libraries when file_magic_cmd begins "file"
26474 MAGIC_CMD=$MAGIC_CMD
26475
26476 # Used on cygwin: DLL creation program.
26477 DLLTOOL="$DLLTOOL"
26478
26479 # Used on cygwin: object dumper.
26480 OBJDUMP="$OBJDUMP"
26481
26482 # Used on cygwin: assembler.
26483 AS="$AS"
26484
26485 # The name of the directory that contains temporary libtool files.
26486 objdir=$objdir
26487
26488 # How to create reloadable object files.
26489 reload_flag=$lt_reload_flag
26490 reload_cmds=$lt_reload_cmds
26491
26492 # How to pass a linker flag through the compiler.
26493 wl=$lt_lt_prog_compiler_wl_GCJ
26494
26495 # Object file suffix (normally "o").
26496 objext="$ac_objext"
26497
26498 # Old archive suffix (normally "a").
26499 libext="$libext"
26500
26501 # Shared library suffix (normally ".so").
26502 shrext_cmds='$shrext_cmds'
26503
26504 # Executable file suffix (normally "").
26505 exeext="$exeext"
26506
26507 # Additional compiler flags for building library objects.
26508 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26509 pic_mode=$pic_mode
26510
26511 # What is the maximum length of a command?
26512 max_cmd_len=$lt_cv_sys_max_cmd_len
26513
26514 # Does compiler simultaneously support -c and -o options?
26515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26516
26517 # Must we lock files when doing compilation?
26518 need_locks=$lt_need_locks
26519
26520 # Do we need the lib prefix for modules?
26521 need_lib_prefix=$need_lib_prefix
26522
26523 # Do we need a version for libraries?
26524 need_version=$need_version
26525
26526 # Whether dlopen is supported.
26527 dlopen_support=$enable_dlopen
26528
26529 # Whether dlopen of programs is supported.
26530 dlopen_self=$enable_dlopen_self
26531
26532 # Whether dlopen of statically linked programs is supported.
26533 dlopen_self_static=$enable_dlopen_self_static
26534
26535 # Compiler flag to prevent dynamic linking.
26536 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26537
26538 # Compiler flag to turn off builtin functions.
26539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26540
26541 # Compiler flag to allow reflexive dlopens.
26542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26543
26544 # Compiler flag to generate shared objects directly from archives.
26545 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26546
26547 # Compiler flag to generate thread-safe objects.
26548 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26549
26550 # Library versioning type.
26551 version_type=$version_type
26552
26553 # Format of library name prefix.
26554 libname_spec=$lt_libname_spec
26555
26556 # List of archive names.  First name is the real one, the rest are links.
26557 # The last name is the one that the linker finds with -lNAME.
26558 library_names_spec=$lt_library_names_spec
26559
26560 # The coded name of the library, if different from the real name.
26561 soname_spec=$lt_soname_spec
26562
26563 # Commands used to build and install an old-style archive.
26564 RANLIB=$lt_RANLIB
26565 old_archive_cmds=$lt_old_archive_cmds_GCJ
26566 old_postinstall_cmds=$lt_old_postinstall_cmds
26567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26568
26569 # Create an old-style archive from a shared archive.
26570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26571
26572 # Create a temporary old-style archive to link instead of a shared archive.
26573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26574
26575 # Commands used to build and install a shared archive.
26576 archive_cmds=$lt_archive_cmds_GCJ
26577 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26578 postinstall_cmds=$lt_postinstall_cmds
26579 postuninstall_cmds=$lt_postuninstall_cmds
26580
26581 # Commands used to build a loadable module (assumed same as above if empty)
26582 module_cmds=$lt_module_cmds_GCJ
26583 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26584
26585 # Commands to strip libraries.
26586 old_striplib=$lt_old_striplib
26587 striplib=$lt_striplib
26588
26589 # Dependencies to place before the objects being linked to create a
26590 # shared library.
26591 predep_objects=$lt_predep_objects_GCJ
26592
26593 # Dependencies to place after the objects being linked to create a
26594 # shared library.
26595 postdep_objects=$lt_postdep_objects_GCJ
26596
26597 # Dependencies to place before the objects being linked to create a
26598 # shared library.
26599 predeps=$lt_predeps_GCJ
26600
26601 # Dependencies to place after the objects being linked to create a
26602 # shared library.
26603 postdeps=$lt_postdeps_GCJ
26604
26605 # The library search path used internally by the compiler when linking
26606 # a shared library.
26607 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26608
26609 # Method to check whether dependent libraries are shared objects.
26610 deplibs_check_method=$lt_deplibs_check_method
26611
26612 # Command to use when deplibs_check_method == file_magic.
26613 file_magic_cmd=$lt_file_magic_cmd
26614
26615 # Flag that allows shared libraries with undefined symbols to be built.
26616 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26617
26618 # Flag that forces no undefined symbols.
26619 no_undefined_flag=$lt_no_undefined_flag_GCJ
26620
26621 # Commands used to finish a libtool library installation in a directory.
26622 finish_cmds=$lt_finish_cmds
26623
26624 # Same as above, but a single script fragment to be evaled but not shown.
26625 finish_eval=$lt_finish_eval
26626
26627 # Take the output of nm and produce a listing of raw symbols and C names.
26628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26629
26630 # Transform the output of nm in a proper C declaration
26631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26632
26633 # Transform the output of nm in a C name address pair
26634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26635
26636 # This is the shared library runtime path variable.
26637 runpath_var=$runpath_var
26638
26639 # This is the shared library path variable.
26640 shlibpath_var=$shlibpath_var
26641
26642 # Is shlibpath searched before the hard-coded library search path?
26643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26644
26645 # How to hardcode a shared library path into an executable.
26646 hardcode_action=$hardcode_action_GCJ
26647
26648 # Whether we should hardcode library paths into libraries.
26649 hardcode_into_libs=$hardcode_into_libs
26650
26651 # Flag to hardcode \$libdir into a binary during linking.
26652 # This must work even if \$libdir does not exist.
26653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26654
26655 # If ld is used when linking, flag to hardcode \$libdir into
26656 # a binary during linking. This must work even if \$libdir does
26657 # not exist.
26658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26659
26660 # Whether we need a single -rpath flag with a separated argument.
26661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26662
26663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26664 # resulting binary.
26665 hardcode_direct=$hardcode_direct_GCJ
26666
26667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26668 # resulting binary.
26669 hardcode_minus_L=$hardcode_minus_L_GCJ
26670
26671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26672 # the resulting binary.
26673 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26674
26675 # Set to yes if building a shared library automatically hardcodes DIR into the library
26676 # and all subsequent libraries and executables linked against it.
26677 hardcode_automatic=$hardcode_automatic_GCJ
26678
26679 # Variables whose values should be saved in libtool wrapper scripts and
26680 # restored at relink time.
26681 variables_saved_for_relink="$variables_saved_for_relink"
26682
26683 # Whether libtool must link a program against all its dependency libraries.
26684 link_all_deplibs=$link_all_deplibs_GCJ
26685
26686 # Compile-time system search path for libraries
26687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26688
26689 # Run-time system search path for libraries
26690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26691
26692 # Fix the shell variable \$srcfile for the compiler.
26693 fix_srcfile_path="$fix_srcfile_path_GCJ"
26694
26695 # Set to yes if exported symbols are required.
26696 always_export_symbols=$always_export_symbols_GCJ
26697
26698 # The commands to list exported symbols.
26699 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26700
26701 # The commands to extract the exported symbol list from a shared archive.
26702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26703
26704 # Symbols that should not be listed in the preloaded symbols.
26705 exclude_expsyms=$lt_exclude_expsyms_GCJ
26706
26707 # Symbols that must always be exported.
26708 include_expsyms=$lt_include_expsyms_GCJ
26709
26710 # ### END LIBTOOL TAG CONFIG: $tagname
26711
26712 __EOF__
26713
26714
26715 else
26716   # If there is no Makefile yet, we rely on a make rule to execute
26717   # `config.status --recheck' to rerun these tests and create the
26718   # libtool script then.
26719   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26720   if test -f "$ltmain_in"; then
26721     test -f Makefile && make "$ltmain"
26722   fi
26723 fi
26724
26725
26726 ac_ext=c
26727 ac_cpp='$CPP $CPPFLAGS'
26728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26731
26732 CC="$lt_save_CC"
26733
26734         else
26735           tagname=""
26736         fi
26737         ;;
26738
26739       RC)
26740         ac_ext=c
26741 ac_cpp='$CPP $CPPFLAGS'
26742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26745
26746
26747 # Source file extension for RC test sources.
26748 ac_ext=rc
26749
26750 # Object file extension for compiled RC test sources.
26751 objext=o
26752 objext_RC=$objext
26753
26754 # Code to be used in simple compile tests
26755 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26756
26757 # Code to be used in simple link tests
26758 lt_simple_link_test_code="$lt_simple_compile_test_code"
26759
26760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26761
26762 # If no C compiler was specified, use CC.
26763 LTCC=${LTCC-"$CC"}
26764
26765 # If no C compiler flags were specified, use CFLAGS.
26766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26767
26768 # Allow CC to be a program name with arguments.
26769 compiler=$CC
26770
26771
26772 # save warnings/boilerplate of simple test code
26773 ac_outfile=conftest.$ac_objext
26774 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26776 _lt_compiler_boilerplate=`cat conftest.err`
26777 $rm conftest*
26778
26779 ac_outfile=conftest.$ac_objext
26780 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26782 _lt_linker_boilerplate=`cat conftest.err`
26783 $rm conftest*
26784
26785
26786 # Allow CC to be a program name with arguments.
26787 lt_save_CC="$CC"
26788 CC=${RC-"windres"}
26789 compiler=$CC
26790 compiler_RC=$CC
26791 for cc_temp in $compiler""; do
26792   case $cc_temp in
26793     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26794     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26795     \-*) ;;
26796     *) break;;
26797   esac
26798 done
26799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26800
26801 lt_cv_prog_compiler_c_o_RC=yes
26802
26803 # The else clause should only fire when bootstrapping the
26804 # libtool distribution, otherwise you forgot to ship ltmain.sh
26805 # with your package, and you will get complaints that there are
26806 # no rules to generate ltmain.sh.
26807 if test -f "$ltmain"; then
26808   # See if we are running on zsh, and set the options which allow our commands through
26809   # without removal of \ escapes.
26810   if test -n "${ZSH_VERSION+set}" ; then
26811     setopt NO_GLOB_SUBST
26812   fi
26813   # Now quote all the things that may contain metacharacters while being
26814   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26815   # variables and quote the copies for generation of the libtool script.
26816   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26817     SED SHELL STRIP \
26818     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26819     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26820     deplibs_check_method reload_flag reload_cmds need_locks \
26821     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26822     lt_cv_sys_global_symbol_to_c_name_address \
26823     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26824     old_postinstall_cmds old_postuninstall_cmds \
26825     compiler_RC \
26826     CC_RC \
26827     LD_RC \
26828     lt_prog_compiler_wl_RC \
26829     lt_prog_compiler_pic_RC \
26830     lt_prog_compiler_static_RC \
26831     lt_prog_compiler_no_builtin_flag_RC \
26832     export_dynamic_flag_spec_RC \
26833     thread_safe_flag_spec_RC \
26834     whole_archive_flag_spec_RC \
26835     enable_shared_with_static_runtimes_RC \
26836     old_archive_cmds_RC \
26837     old_archive_from_new_cmds_RC \
26838     predep_objects_RC \
26839     postdep_objects_RC \
26840     predeps_RC \
26841     postdeps_RC \
26842     compiler_lib_search_path_RC \
26843     archive_cmds_RC \
26844     archive_expsym_cmds_RC \
26845     postinstall_cmds_RC \
26846     postuninstall_cmds_RC \
26847     old_archive_from_expsyms_cmds_RC \
26848     allow_undefined_flag_RC \
26849     no_undefined_flag_RC \
26850     export_symbols_cmds_RC \
26851     hardcode_libdir_flag_spec_RC \
26852     hardcode_libdir_flag_spec_ld_RC \
26853     hardcode_libdir_separator_RC \
26854     hardcode_automatic_RC \
26855     module_cmds_RC \
26856     module_expsym_cmds_RC \
26857     lt_cv_prog_compiler_c_o_RC \
26858     exclude_expsyms_RC \
26859     include_expsyms_RC; do
26860
26861     case $var in
26862     old_archive_cmds_RC | \
26863     old_archive_from_new_cmds_RC | \
26864     archive_cmds_RC | \
26865     archive_expsym_cmds_RC | \
26866     module_cmds_RC | \
26867     module_expsym_cmds_RC | \
26868     old_archive_from_expsyms_cmds_RC | \
26869     export_symbols_cmds_RC | \
26870     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26871     postinstall_cmds | postuninstall_cmds | \
26872     old_postinstall_cmds | old_postuninstall_cmds | \
26873     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26874       # Double-quote double-evaled strings.
26875       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26876       ;;
26877     *)
26878       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26879       ;;
26880     esac
26881   done
26882
26883   case $lt_echo in
26884   *'\$0 --fallback-echo"')
26885     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26886     ;;
26887   esac
26888
26889 cfgfile="$ofile"
26890
26891   cat <<__EOF__ >> "$cfgfile"
26892 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26893
26894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26895
26896 # Shell to use when invoking shell scripts.
26897 SHELL=$lt_SHELL
26898
26899 # Whether or not to build shared libraries.
26900 build_libtool_libs=$enable_shared
26901
26902 # Whether or not to build static libraries.
26903 build_old_libs=$enable_static
26904
26905 # Whether or not to add -lc for building shared libraries.
26906 build_libtool_need_lc=$archive_cmds_need_lc_RC
26907
26908 # Whether or not to disallow shared libs when runtime libs are static
26909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26910
26911 # Whether or not to optimize for fast installation.
26912 fast_install=$enable_fast_install
26913
26914 # The host system.
26915 host_alias=$host_alias
26916 host=$host
26917 host_os=$host_os
26918
26919 # The build system.
26920 build_alias=$build_alias
26921 build=$build
26922 build_os=$build_os
26923
26924 # An echo program that does not interpret backslashes.
26925 echo=$lt_echo
26926
26927 # The archiver.
26928 AR=$lt_AR
26929 AR_FLAGS=$lt_AR_FLAGS
26930
26931 # A C compiler.
26932 LTCC=$lt_LTCC
26933
26934 # LTCC compiler flags.
26935 LTCFLAGS=$lt_LTCFLAGS
26936
26937 # A language-specific compiler.
26938 CC=$lt_compiler_RC
26939
26940 # Is the compiler the GNU C compiler?
26941 with_gcc=$GCC_RC
26942
26943 # An ERE matcher.
26944 EGREP=$lt_EGREP
26945
26946 # The linker used to build libraries.
26947 LD=$lt_LD_RC
26948
26949 # Whether we need hard or soft links.
26950 LN_S=$lt_LN_S
26951
26952 # A BSD-compatible nm program.
26953 NM=$lt_NM
26954
26955 # A symbol stripping program
26956 STRIP=$lt_STRIP
26957
26958 # Used to examine libraries when file_magic_cmd begins "file"
26959 MAGIC_CMD=$MAGIC_CMD
26960
26961 # Used on cygwin: DLL creation program.
26962 DLLTOOL="$DLLTOOL"
26963
26964 # Used on cygwin: object dumper.
26965 OBJDUMP="$OBJDUMP"
26966
26967 # Used on cygwin: assembler.
26968 AS="$AS"
26969
26970 # The name of the directory that contains temporary libtool files.
26971 objdir=$objdir
26972
26973 # How to create reloadable object files.
26974 reload_flag=$lt_reload_flag
26975 reload_cmds=$lt_reload_cmds
26976
26977 # How to pass a linker flag through the compiler.
26978 wl=$lt_lt_prog_compiler_wl_RC
26979
26980 # Object file suffix (normally "o").
26981 objext="$ac_objext"
26982
26983 # Old archive suffix (normally "a").
26984 libext="$libext"
26985
26986 # Shared library suffix (normally ".so").
26987 shrext_cmds='$shrext_cmds'
26988
26989 # Executable file suffix (normally "").
26990 exeext="$exeext"
26991
26992 # Additional compiler flags for building library objects.
26993 pic_flag=$lt_lt_prog_compiler_pic_RC
26994 pic_mode=$pic_mode
26995
26996 # What is the maximum length of a command?
26997 max_cmd_len=$lt_cv_sys_max_cmd_len
26998
26999 # Does compiler simultaneously support -c and -o options?
27000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27001
27002 # Must we lock files when doing compilation?
27003 need_locks=$lt_need_locks
27004
27005 # Do we need the lib prefix for modules?
27006 need_lib_prefix=$need_lib_prefix
27007
27008 # Do we need a version for libraries?
27009 need_version=$need_version
27010
27011 # Whether dlopen is supported.
27012 dlopen_support=$enable_dlopen
27013
27014 # Whether dlopen of programs is supported.
27015 dlopen_self=$enable_dlopen_self
27016
27017 # Whether dlopen of statically linked programs is supported.
27018 dlopen_self_static=$enable_dlopen_self_static
27019
27020 # Compiler flag to prevent dynamic linking.
27021 link_static_flag=$lt_lt_prog_compiler_static_RC
27022
27023 # Compiler flag to turn off builtin functions.
27024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27025
27026 # Compiler flag to allow reflexive dlopens.
27027 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27028
27029 # Compiler flag to generate shared objects directly from archives.
27030 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27031
27032 # Compiler flag to generate thread-safe objects.
27033 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27034
27035 # Library versioning type.
27036 version_type=$version_type
27037
27038 # Format of library name prefix.
27039 libname_spec=$lt_libname_spec
27040
27041 # List of archive names.  First name is the real one, the rest are links.
27042 # The last name is the one that the linker finds with -lNAME.
27043 library_names_spec=$lt_library_names_spec
27044
27045 # The coded name of the library, if different from the real name.
27046 soname_spec=$lt_soname_spec
27047
27048 # Commands used to build and install an old-style archive.
27049 RANLIB=$lt_RANLIB
27050 old_archive_cmds=$lt_old_archive_cmds_RC
27051 old_postinstall_cmds=$lt_old_postinstall_cmds
27052 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27053
27054 # Create an old-style archive from a shared archive.
27055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27056
27057 # Create a temporary old-style archive to link instead of a shared archive.
27058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27059
27060 # Commands used to build and install a shared archive.
27061 archive_cmds=$lt_archive_cmds_RC
27062 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27063 postinstall_cmds=$lt_postinstall_cmds
27064 postuninstall_cmds=$lt_postuninstall_cmds
27065
27066 # Commands used to build a loadable module (assumed same as above if empty)
27067 module_cmds=$lt_module_cmds_RC
27068 module_expsym_cmds=$lt_module_expsym_cmds_RC
27069
27070 # Commands to strip libraries.
27071 old_striplib=$lt_old_striplib
27072 striplib=$lt_striplib
27073
27074 # Dependencies to place before the objects being linked to create a
27075 # shared library.
27076 predep_objects=$lt_predep_objects_RC
27077
27078 # Dependencies to place after the objects being linked to create a
27079 # shared library.
27080 postdep_objects=$lt_postdep_objects_RC
27081
27082 # Dependencies to place before the objects being linked to create a
27083 # shared library.
27084 predeps=$lt_predeps_RC
27085
27086 # Dependencies to place after the objects being linked to create a
27087 # shared library.
27088 postdeps=$lt_postdeps_RC
27089
27090 # The library search path used internally by the compiler when linking
27091 # a shared library.
27092 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27093
27094 # Method to check whether dependent libraries are shared objects.
27095 deplibs_check_method=$lt_deplibs_check_method
27096
27097 # Command to use when deplibs_check_method == file_magic.
27098 file_magic_cmd=$lt_file_magic_cmd
27099
27100 # Flag that allows shared libraries with undefined symbols to be built.
27101 allow_undefined_flag=$lt_allow_undefined_flag_RC
27102
27103 # Flag that forces no undefined symbols.
27104 no_undefined_flag=$lt_no_undefined_flag_RC
27105
27106 # Commands used to finish a libtool library installation in a directory.
27107 finish_cmds=$lt_finish_cmds
27108
27109 # Same as above, but a single script fragment to be evaled but not shown.
27110 finish_eval=$lt_finish_eval
27111
27112 # Take the output of nm and produce a listing of raw symbols and C names.
27113 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27114
27115 # Transform the output of nm in a proper C declaration
27116 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27117
27118 # Transform the output of nm in a C name address pair
27119 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27120
27121 # This is the shared library runtime path variable.
27122 runpath_var=$runpath_var
27123
27124 # This is the shared library path variable.
27125 shlibpath_var=$shlibpath_var
27126
27127 # Is shlibpath searched before the hard-coded library search path?
27128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27129
27130 # How to hardcode a shared library path into an executable.
27131 hardcode_action=$hardcode_action_RC
27132
27133 # Whether we should hardcode library paths into libraries.
27134 hardcode_into_libs=$hardcode_into_libs
27135
27136 # Flag to hardcode \$libdir into a binary during linking.
27137 # This must work even if \$libdir does not exist.
27138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27139
27140 # If ld is used when linking, flag to hardcode \$libdir into
27141 # a binary during linking. This must work even if \$libdir does
27142 # not exist.
27143 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27144
27145 # Whether we need a single -rpath flag with a separated argument.
27146 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27147
27148 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27149 # resulting binary.
27150 hardcode_direct=$hardcode_direct_RC
27151
27152 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27153 # resulting binary.
27154 hardcode_minus_L=$hardcode_minus_L_RC
27155
27156 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27157 # the resulting binary.
27158 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27159
27160 # Set to yes if building a shared library automatically hardcodes DIR into the library
27161 # and all subsequent libraries and executables linked against it.
27162 hardcode_automatic=$hardcode_automatic_RC
27163
27164 # Variables whose values should be saved in libtool wrapper scripts and
27165 # restored at relink time.
27166 variables_saved_for_relink="$variables_saved_for_relink"
27167
27168 # Whether libtool must link a program against all its dependency libraries.
27169 link_all_deplibs=$link_all_deplibs_RC
27170
27171 # Compile-time system search path for libraries
27172 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27173
27174 # Run-time system search path for libraries
27175 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27176
27177 # Fix the shell variable \$srcfile for the compiler.
27178 fix_srcfile_path="$fix_srcfile_path_RC"
27179
27180 # Set to yes if exported symbols are required.
27181 always_export_symbols=$always_export_symbols_RC
27182
27183 # The commands to list exported symbols.
27184 export_symbols_cmds=$lt_export_symbols_cmds_RC
27185
27186 # The commands to extract the exported symbol list from a shared archive.
27187 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27188
27189 # Symbols that should not be listed in the preloaded symbols.
27190 exclude_expsyms=$lt_exclude_expsyms_RC
27191
27192 # Symbols that must always be exported.
27193 include_expsyms=$lt_include_expsyms_RC
27194
27195 # ### END LIBTOOL TAG CONFIG: $tagname
27196
27197 __EOF__
27198
27199
27200 else
27201   # If there is no Makefile yet, we rely on a make rule to execute
27202   # `config.status --recheck' to rerun these tests and create the
27203   # libtool script then.
27204   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27205   if test -f "$ltmain_in"; then
27206     test -f Makefile && make "$ltmain"
27207   fi
27208 fi
27209
27210
27211 ac_ext=c
27212 ac_cpp='$CPP $CPPFLAGS'
27213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27216
27217 CC="$lt_save_CC"
27218
27219         ;;
27220
27221       *)
27222         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27223 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27224    { (exit 1); exit 1; }; }
27225         ;;
27226       esac
27227
27228       # Append the new tag name to the list of available tags.
27229       if test -n "$tagname" ; then
27230       available_tags="$available_tags $tagname"
27231     fi
27232     fi
27233   done
27234   IFS="$lt_save_ifs"
27235
27236   # Now substitute the updated list of available tags.
27237   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27238     mv "${ofile}T" "$ofile"
27239     chmod +x "$ofile"
27240   else
27241     rm -f "${ofile}T"
27242     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27243 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27244    { (exit 1); exit 1; }; }
27245   fi
27246 fi
27247
27248
27249
27250 # This can be used to rebuild libtool when needed
27251 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27252
27253 # Always use our own libtool.
27254 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27255
27256 # Prevent multiple expansion
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278 if test "$lt_cv_dlopen_self" = "yes" ; then
27279
27280 cat >>confdefs.h <<\_ACEOF
27281 #define CAN_DLOPEN_SELF 1
27282 _ACEOF
27283
27284 fi
27285
27286
27287 if test "$WITH_LLVMGCCDIR" = "default" ; then
27288   LLVMGCC="llvm-gcc${EXEEXT}"
27289   LLVMGXX="llvm-g++${EXEEXT}"
27290   LLVMGCCCOMMAND="$LLVMGCC"
27291   LLVMGXXCOMMAND="$LLVMGXX"
27292   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27293
27294   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27295
27296   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27297 set dummy $LLVMGCC; ac_word=$2
27298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27300 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27301   echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303   case $LLVMGCC in
27304   [\\/]* | ?:[\\/]*)
27305   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27306   ;;
27307   *)
27308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309 for as_dir in $PATH
27310 do
27311   IFS=$as_save_IFS
27312   test -z "$as_dir" && as_dir=.
27313   for ac_exec_ext in '' $ac_executable_extensions; do
27314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27315     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317     break 2
27318   fi
27319 done
27320 done
27321 IFS=$as_save_IFS
27322
27323   ;;
27324 esac
27325 fi
27326 LLVMGCC=$ac_cv_path_LLVMGCC
27327 if test -n "$LLVMGCC"; then
27328   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27329 echo "${ECHO_T}$LLVMGCC" >&6; }
27330 else
27331   { echo "$as_me:$LINENO: result: no" >&5
27332 echo "${ECHO_T}no" >&6; }
27333 fi
27334
27335
27336   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27337 set dummy $LLVMGXX; ac_word=$2
27338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27340 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   case $LLVMGXX in
27344   [\\/]* | ?:[\\/]*)
27345   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27346   ;;
27347   *)
27348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27349 for as_dir in $PATH
27350 do
27351   IFS=$as_save_IFS
27352   test -z "$as_dir" && as_dir=.
27353   for ac_exec_ext in '' $ac_executable_extensions; do
27354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27355     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27357     break 2
27358   fi
27359 done
27360 done
27361 IFS=$as_save_IFS
27362
27363   ;;
27364 esac
27365 fi
27366 LLVMGXX=$ac_cv_path_LLVMGXX
27367 if test -n "$LLVMGXX"; then
27368   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27369 echo "${ECHO_T}$LLVMGXX" >&6; }
27370 else
27371   { echo "$as_me:$LINENO: result: no" >&5
27372 echo "${ECHO_T}no" >&6; }
27373 fi
27374
27375
27376 else
27377   if test -z "$LLVMGCC"; then
27378     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27379     LLVMGCCCOMMAND="$LLVMGCC"
27380   fi
27381   if test -z "$LLVMGXX"; then
27382     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27383     LLVMGXXCOMMAND="$LLVMGXX"
27384   fi
27385
27386   LLVMGCC=$LLVMGCC
27387
27388   LLVMGXX=$LLVMGXX
27389
27390   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27391
27392   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27393
27394 fi
27395
27396
27397 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27398 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27399
27400 ICC=no
27401 IXX=no
27402 case $CC in
27403   icc*|icpc*)
27404     ICC=yes
27405     IXX=yes
27406     ;;
27407    *)
27408     ;;
27409 esac
27410
27411 if test "$GCC" != "yes" && test "$ICC" != "yes"
27412 then
27413   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27414 echo "$as_me: error: gcc|icc required but not found" >&2;}
27415    { (exit 1); exit 1; }; }
27416 fi
27417
27418 if test "$GXX" != "yes" && test "$IXX" != "yes"
27419 then
27420   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27421 echo "$as_me: error: g++|icc required but not found" >&2;}
27422    { (exit 1); exit 1; }; }
27423 fi
27424
27425 if test "$GCC" = "yes"
27426 then
27427   cat >conftest.$ac_ext <<_ACEOF
27428 #if !defined(__GNUC__) || __GNUC__ < 3
27429 #error Unsupported GCC version
27430 #endif
27431
27432 _ACEOF
27433 rm -f conftest.$ac_objext
27434 if { (ac_try="$ac_compile"
27435 case "(($ac_try" in
27436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437   *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440   (eval "$ac_compile") 2>conftest.er1
27441   ac_status=$?
27442   grep -v '^ *+' conftest.er1 >conftest.err
27443   rm -f conftest.er1
27444   cat conftest.err >&5
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } &&
27447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27448   { (case "(($ac_try" in
27449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450   *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453   (eval "$ac_try") 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; } &&
27457          { ac_try='test -s conftest.$ac_objext'
27458   { (case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_try") 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   :
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27473 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27474    { (exit 1); exit 1; }; }
27475 fi
27476
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 fi
27479
27480 if test -z "$llvm_cv_gnu_make_command"
27481 then
27482   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27483 echo "$as_me: error: GNU Make required but not found" >&2;}
27484    { (exit 1); exit 1; }; }
27485 fi
27486
27487 { echo "$as_me:$LINENO: result: ok" >&5
27488 echo "${ECHO_T}ok" >&6; }
27489
27490 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27491 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27492 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27493
27494 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27495
27496 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27497 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27498
27499
27500
27501 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27502 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27503 if test "${ac_cv_lib_m_sin+set}" = set; then
27504   echo $ECHO_N "(cached) $ECHO_C" >&6
27505 else
27506   ac_check_lib_save_LIBS=$LIBS
27507 LIBS="-lm  $LIBS"
27508 cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h.  */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h.  */
27514
27515 /* Override any GCC internal prototype to avoid an error.
27516    Use char because int might match the return type of a GCC
27517    builtin and then its argument prototype would still apply.  */
27518 #ifdef __cplusplus
27519 extern "C"
27520 #endif
27521 char sin ();
27522 int
27523 main ()
27524 {
27525 return sin ();
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (ac_try="$ac_link"
27532 case "(($ac_try" in
27533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534   *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537   (eval "$ac_link") 2>conftest.er1
27538   ac_status=$?
27539   grep -v '^ *+' conftest.er1 >conftest.err
27540   rm -f conftest.er1
27541   cat conftest.err >&5
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); } &&
27544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27545   { (case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_try") 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; } &&
27554          { ac_try='test -s conftest$ac_exeext'
27555   { (case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_try") 2>&5
27561   ac_status=$?
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); }; }; then
27564   ac_cv_lib_m_sin=yes
27565 else
27566   echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.$ac_ext >&5
27568
27569         ac_cv_lib_m_sin=no
27570 fi
27571
27572 rm -f core conftest.err conftest.$ac_objext \
27573       conftest$ac_exeext conftest.$ac_ext
27574 LIBS=$ac_check_lib_save_LIBS
27575 fi
27576 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27577 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27578 if test $ac_cv_lib_m_sin = yes; then
27579   cat >>confdefs.h <<_ACEOF
27580 #define HAVE_LIBM 1
27581 _ACEOF
27582
27583   LIBS="-lm $LIBS"
27584
27585 fi
27586
27587 if test "$llvm_cv_os_type" = "MingW" ; then
27588
27589 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27590 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27591 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27592   echo $ECHO_N "(cached) $ECHO_C" >&6
27593 else
27594   ac_check_lib_save_LIBS=$LIBS
27595 LIBS="-limagehlp  $LIBS"
27596 cat >conftest.$ac_ext <<_ACEOF
27597 /* confdefs.h.  */
27598 _ACEOF
27599 cat confdefs.h >>conftest.$ac_ext
27600 cat >>conftest.$ac_ext <<_ACEOF
27601 /* end confdefs.h.  */
27602
27603
27604 int
27605 main ()
27606 {
27607 return main ();
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 rm -f conftest.$ac_objext conftest$ac_exeext
27613 if { (ac_try="$ac_link"
27614 case "(($ac_try" in
27615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616   *) ac_try_echo=$ac_try;;
27617 esac
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619   (eval "$ac_link") 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } &&
27626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627   { (case "(($ac_try" in
27628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629   *) ac_try_echo=$ac_try;;
27630 esac
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632   (eval "$ac_try") 2>&5
27633   ac_status=$?
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); }; } &&
27636          { ac_try='test -s conftest$ac_exeext'
27637   { (case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_try") 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; }; then
27646   ac_cv_lib_imagehlp_main=yes
27647 else
27648   echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27650
27651         ac_cv_lib_imagehlp_main=no
27652 fi
27653
27654 rm -f core conftest.err conftest.$ac_objext \
27655       conftest$ac_exeext conftest.$ac_ext
27656 LIBS=$ac_check_lib_save_LIBS
27657 fi
27658 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27659 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27660 if test $ac_cv_lib_imagehlp_main = yes; then
27661   cat >>confdefs.h <<_ACEOF
27662 #define HAVE_LIBIMAGEHLP 1
27663 _ACEOF
27664
27665   LIBS="-limagehlp $LIBS"
27666
27667 fi
27668
27669
27670 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27671 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27672 if test "${ac_cv_lib_psapi_main+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   ac_check_lib_save_LIBS=$LIBS
27676 LIBS="-lpsapi  $LIBS"
27677 cat >conftest.$ac_ext <<_ACEOF
27678 /* confdefs.h.  */
27679 _ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h.  */
27683
27684
27685 int
27686 main ()
27687 {
27688 return main ();
27689   ;
27690   return 0;
27691 }
27692 _ACEOF
27693 rm -f conftest.$ac_objext conftest$ac_exeext
27694 if { (ac_try="$ac_link"
27695 case "(($ac_try" in
27696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697   *) ac_try_echo=$ac_try;;
27698 esac
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700   (eval "$ac_link") 2>conftest.er1
27701   ac_status=$?
27702   grep -v '^ *+' conftest.er1 >conftest.err
27703   rm -f conftest.er1
27704   cat conftest.err >&5
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); } &&
27707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27708   { (case "(($ac_try" in
27709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710   *) ac_try_echo=$ac_try;;
27711 esac
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713   (eval "$ac_try") 2>&5
27714   ac_status=$?
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); }; } &&
27717          { ac_try='test -s conftest$ac_exeext'
27718   { (case "(($ac_try" in
27719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720   *) ac_try_echo=$ac_try;;
27721 esac
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723   (eval "$ac_try") 2>&5
27724   ac_status=$?
27725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726   (exit $ac_status); }; }; then
27727   ac_cv_lib_psapi_main=yes
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732         ac_cv_lib_psapi_main=no
27733 fi
27734
27735 rm -f core conftest.err conftest.$ac_objext \
27736       conftest$ac_exeext conftest.$ac_ext
27737 LIBS=$ac_check_lib_save_LIBS
27738 fi
27739 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27740 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27741 if test $ac_cv_lib_psapi_main = yes; then
27742   cat >>confdefs.h <<_ACEOF
27743 #define HAVE_LIBPSAPI 1
27744 _ACEOF
27745
27746   LIBS="-lpsapi $LIBS"
27747
27748 fi
27749
27750 fi
27751
27752 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27753 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27754 if test "${ac_cv_search_dlopen+set}" = set; then
27755   echo $ECHO_N "(cached) $ECHO_C" >&6
27756 else
27757   ac_func_search_save_LIBS=$LIBS
27758 cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764
27765 /* Override any GCC internal prototype to avoid an error.
27766    Use char because int might match the return type of a GCC
27767    builtin and then its argument prototype would still apply.  */
27768 #ifdef __cplusplus
27769 extern "C"
27770 #endif
27771 char dlopen ();
27772 int
27773 main ()
27774 {
27775 return dlopen ();
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 for ac_lib in '' dl; do
27781   if test -z "$ac_lib"; then
27782     ac_res="none required"
27783   else
27784     ac_res=-l$ac_lib
27785     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27786   fi
27787   rm -f conftest.$ac_objext conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791   *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794   (eval "$ac_link") 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } &&
27801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27802   { (case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807   (eval "$ac_try") 2>&5
27808   ac_status=$?
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); }; } &&
27811          { ac_try='test -s conftest$ac_exeext'
27812   { (case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817   (eval "$ac_try") 2>&5
27818   ac_status=$?
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; }; then
27821   ac_cv_search_dlopen=$ac_res
27822 else
27823   echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27825
27826
27827 fi
27828
27829 rm -f core conftest.err conftest.$ac_objext \
27830       conftest$ac_exeext
27831   if test "${ac_cv_search_dlopen+set}" = set; then
27832   break
27833 fi
27834 done
27835 if test "${ac_cv_search_dlopen+set}" = set; then
27836   :
27837 else
27838   ac_cv_search_dlopen=no
27839 fi
27840 rm conftest.$ac_ext
27841 LIBS=$ac_func_search_save_LIBS
27842 fi
27843 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27844 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27845 ac_res=$ac_cv_search_dlopen
27846 if test "$ac_res" != no; then
27847   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27848
27849 cat >>confdefs.h <<\_ACEOF
27850 #define HAVE_DLOPEN 1
27851 _ACEOF
27852
27853 else
27854   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27855 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27856 fi
27857
27858
27859 if test "$llvm_cv_enable_libffi" = "yes" ; then
27860   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27861 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27862 if test "${ac_cv_search_ffi_call+set}" = set; then
27863   echo $ECHO_N "(cached) $ECHO_C" >&6
27864 else
27865   ac_func_search_save_LIBS=$LIBS
27866 cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h.  */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h.  */
27872
27873 /* Override any GCC internal prototype to avoid an error.
27874    Use char because int might match the return type of a GCC
27875    builtin and then its argument prototype would still apply.  */
27876 #ifdef __cplusplus
27877 extern "C"
27878 #endif
27879 char ffi_call ();
27880 int
27881 main ()
27882 {
27883 return ffi_call ();
27884   ;
27885   return 0;
27886 }
27887 _ACEOF
27888 for ac_lib in '' ffi; do
27889   if test -z "$ac_lib"; then
27890     ac_res="none required"
27891   else
27892     ac_res=-l$ac_lib
27893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27894   fi
27895   rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (ac_try="$ac_link"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_link") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } &&
27909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910   { (case "(($ac_try" in
27911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912   *) ac_try_echo=$ac_try;;
27913 esac
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915   (eval "$ac_try") 2>&5
27916   ac_status=$?
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); }; } &&
27919          { ac_try='test -s conftest$ac_exeext'
27920   { (case "(($ac_try" in
27921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922   *) ac_try_echo=$ac_try;;
27923 esac
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925   (eval "$ac_try") 2>&5
27926   ac_status=$?
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); }; }; then
27929   ac_cv_search_ffi_call=$ac_res
27930 else
27931   echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934
27935 fi
27936
27937 rm -f core conftest.err conftest.$ac_objext \
27938       conftest$ac_exeext
27939   if test "${ac_cv_search_ffi_call+set}" = set; then
27940   break
27941 fi
27942 done
27943 if test "${ac_cv_search_ffi_call+set}" = set; then
27944   :
27945 else
27946   ac_cv_search_ffi_call=no
27947 fi
27948 rm conftest.$ac_ext
27949 LIBS=$ac_func_search_save_LIBS
27950 fi
27951 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27952 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27953 ac_res=$ac_cv_search_ffi_call
27954 if test "$ac_res" != no; then
27955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27956
27957 cat >>confdefs.h <<\_ACEOF
27958 #define HAVE_FFI_CALL 1
27959 _ACEOF
27960
27961 else
27962   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27963 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27964 fi
27965
27966 fi
27967
27968 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27969 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27970 if test "${ac_cv_search_mallinfo+set}" = set; then
27971   echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27973   ac_func_search_save_LIBS=$LIBS
27974 cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980
27981 /* Override any GCC internal prototype to avoid an error.
27982    Use char because int might match the return type of a GCC
27983    builtin and then its argument prototype would still apply.  */
27984 #ifdef __cplusplus
27985 extern "C"
27986 #endif
27987 char mallinfo ();
27988 int
27989 main ()
27990 {
27991 return mallinfo ();
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 for ac_lib in '' malloc; do
27997   if test -z "$ac_lib"; then
27998     ac_res="none required"
27999   else
28000     ac_res=-l$ac_lib
28001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28002   fi
28003   rm -f conftest.$ac_objext conftest$ac_exeext
28004 if { (ac_try="$ac_link"
28005 case "(($ac_try" in
28006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007   *) ac_try_echo=$ac_try;;
28008 esac
28009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010   (eval "$ac_link") 2>conftest.er1
28011   ac_status=$?
28012   grep -v '^ *+' conftest.er1 >conftest.err
28013   rm -f conftest.er1
28014   cat conftest.err >&5
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); } &&
28017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28018   { (case "(($ac_try" in
28019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020   *) ac_try_echo=$ac_try;;
28021 esac
28022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28023   (eval "$ac_try") 2>&5
28024   ac_status=$?
28025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026   (exit $ac_status); }; } &&
28027          { ac_try='test -s conftest$ac_exeext'
28028   { (case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_try") 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   ac_cv_search_mallinfo=$ac_res
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042
28043 fi
28044
28045 rm -f core conftest.err conftest.$ac_objext \
28046       conftest$ac_exeext
28047   if test "${ac_cv_search_mallinfo+set}" = set; then
28048   break
28049 fi
28050 done
28051 if test "${ac_cv_search_mallinfo+set}" = set; then
28052   :
28053 else
28054   ac_cv_search_mallinfo=no
28055 fi
28056 rm conftest.$ac_ext
28057 LIBS=$ac_func_search_save_LIBS
28058 fi
28059 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28060 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28061 ac_res=$ac_cv_search_mallinfo
28062 if test "$ac_res" != no; then
28063   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28064
28065 cat >>confdefs.h <<\_ACEOF
28066 #define HAVE_MALLINFO 1
28067 _ACEOF
28068
28069 fi
28070
28071
28072 if test "$ENABLE_THREADS" -eq 1 ; then
28073
28074 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28075 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28076 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 else
28079   ac_check_lib_save_LIBS=$LIBS
28080 LIBS="-lpthread  $LIBS"
28081 cat >conftest.$ac_ext <<_ACEOF
28082 /* confdefs.h.  */
28083 _ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h.  */
28087
28088 /* Override any GCC internal prototype to avoid an error.
28089    Use char because int might match the return type of a GCC
28090    builtin and then its argument prototype would still apply.  */
28091 #ifdef __cplusplus
28092 extern "C"
28093 #endif
28094 char pthread_mutex_init ();
28095 int
28096 main ()
28097 {
28098 return pthread_mutex_init ();
28099   ;
28100   return 0;
28101 }
28102 _ACEOF
28103 rm -f conftest.$ac_objext conftest$ac_exeext
28104 if { (ac_try="$ac_link"
28105 case "(($ac_try" in
28106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107   *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110   (eval "$ac_link") 2>conftest.er1
28111   ac_status=$?
28112   grep -v '^ *+' conftest.er1 >conftest.err
28113   rm -f conftest.er1
28114   cat conftest.err >&5
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); } &&
28117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28118   { (case "(($ac_try" in
28119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120   *) ac_try_echo=$ac_try;;
28121 esac
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123   (eval "$ac_try") 2>&5
28124   ac_status=$?
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); }; } &&
28127          { ac_try='test -s conftest$ac_exeext'
28128   { (case "(($ac_try" in
28129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130   *) ac_try_echo=$ac_try;;
28131 esac
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133   (eval "$ac_try") 2>&5
28134   ac_status=$?
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); }; }; then
28137   ac_cv_lib_pthread_pthread_mutex_init=yes
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142         ac_cv_lib_pthread_pthread_mutex_init=no
28143 fi
28144
28145 rm -f core conftest.err conftest.$ac_objext \
28146       conftest$ac_exeext conftest.$ac_ext
28147 LIBS=$ac_check_lib_save_LIBS
28148 fi
28149 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28150 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28151 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28152   cat >>confdefs.h <<_ACEOF
28153 #define HAVE_LIBPTHREAD 1
28154 _ACEOF
28155
28156   LIBS="-lpthread $LIBS"
28157
28158 fi
28159
28160   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28161 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28162 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165   ac_func_search_save_LIBS=$LIBS
28166 cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172
28173 /* Override any GCC internal prototype to avoid an error.
28174    Use char because int might match the return type of a GCC
28175    builtin and then its argument prototype would still apply.  */
28176 #ifdef __cplusplus
28177 extern "C"
28178 #endif
28179 char pthread_mutex_lock ();
28180 int
28181 main ()
28182 {
28183 return pthread_mutex_lock ();
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 for ac_lib in '' pthread; do
28189   if test -z "$ac_lib"; then
28190     ac_res="none required"
28191   else
28192     ac_res=-l$ac_lib
28193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28194   fi
28195   rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (ac_try="$ac_link"
28197 case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_link") 2>conftest.er1
28203   ac_status=$?
28204   grep -v '^ *+' conftest.er1 >conftest.err
28205   rm -f conftest.er1
28206   cat conftest.err >&5
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); } &&
28209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210   { (case "(($ac_try" in
28211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212   *) ac_try_echo=$ac_try;;
28213 esac
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215   (eval "$ac_try") 2>&5
28216   ac_status=$?
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); }; } &&
28219          { ac_try='test -s conftest$ac_exeext'
28220   { (case "(($ac_try" in
28221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222   *) ac_try_echo=$ac_try;;
28223 esac
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225   (eval "$ac_try") 2>&5
28226   ac_status=$?
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); }; }; then
28229   ac_cv_search_pthread_mutex_lock=$ac_res
28230 else
28231   echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28233
28234
28235 fi
28236
28237 rm -f core conftest.err conftest.$ac_objext \
28238       conftest$ac_exeext
28239   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28240   break
28241 fi
28242 done
28243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28244   :
28245 else
28246   ac_cv_search_pthread_mutex_lock=no
28247 fi
28248 rm conftest.$ac_ext
28249 LIBS=$ac_func_search_save_LIBS
28250 fi
28251 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28252 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28253 ac_res=$ac_cv_search_pthread_mutex_lock
28254 if test "$ac_res" != no; then
28255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28256
28257 cat >>confdefs.h <<\_ACEOF
28258 #define HAVE_PTHREAD_MUTEX_LOCK 1
28259 _ACEOF
28260
28261 fi
28262
28263   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28264 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28265 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   ac_func_search_save_LIBS=$LIBS
28269 cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275
28276 /* Override any GCC internal prototype to avoid an error.
28277    Use char because int might match the return type of a GCC
28278    builtin and then its argument prototype would still apply.  */
28279 #ifdef __cplusplus
28280 extern "C"
28281 #endif
28282 char pthread_rwlock_init ();
28283 int
28284 main ()
28285 {
28286 return pthread_rwlock_init ();
28287   ;
28288   return 0;
28289 }
28290 _ACEOF
28291 for ac_lib in '' pthread; do
28292   if test -z "$ac_lib"; then
28293     ac_res="none required"
28294   else
28295     ac_res=-l$ac_lib
28296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28297   fi
28298   rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305   (eval "$ac_link") 2>conftest.er1
28306   ac_status=$?
28307   grep -v '^ *+' conftest.er1 >conftest.err
28308   rm -f conftest.er1
28309   cat conftest.err >&5
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } &&
28312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28313   { (case "(($ac_try" in
28314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315   *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318   (eval "$ac_try") 2>&5
28319   ac_status=$?
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); }; } &&
28322          { ac_try='test -s conftest$ac_exeext'
28323   { (case "(($ac_try" in
28324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325   *) ac_try_echo=$ac_try;;
28326 esac
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328   (eval "$ac_try") 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; }; then
28332   ac_cv_search_pthread_rwlock_init=$ac_res
28333 else
28334   echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28336
28337
28338 fi
28339
28340 rm -f core conftest.err conftest.$ac_objext \
28341       conftest$ac_exeext
28342   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28343   break
28344 fi
28345 done
28346 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28347   :
28348 else
28349   ac_cv_search_pthread_rwlock_init=no
28350 fi
28351 rm conftest.$ac_ext
28352 LIBS=$ac_func_search_save_LIBS
28353 fi
28354 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28355 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28356 ac_res=$ac_cv_search_pthread_rwlock_init
28357 if test "$ac_res" != no; then
28358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28359
28360 cat >>confdefs.h <<\_ACEOF
28361 #define HAVE_PTHREAD_RWLOCK_INIT 1
28362 _ACEOF
28363
28364 fi
28365
28366   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28367 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28368 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28369   echo $ECHO_N "(cached) $ECHO_C" >&6
28370 else
28371   ac_func_search_save_LIBS=$LIBS
28372 cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378
28379 /* Override any GCC internal prototype to avoid an error.
28380    Use char because int might match the return type of a GCC
28381    builtin and then its argument prototype would still apply.  */
28382 #ifdef __cplusplus
28383 extern "C"
28384 #endif
28385 char pthread_getspecific ();
28386 int
28387 main ()
28388 {
28389 return pthread_getspecific ();
28390   ;
28391   return 0;
28392 }
28393 _ACEOF
28394 for ac_lib in '' pthread; do
28395   if test -z "$ac_lib"; then
28396     ac_res="none required"
28397   else
28398     ac_res=-l$ac_lib
28399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28400   fi
28401   rm -f conftest.$ac_objext conftest$ac_exeext
28402 if { (ac_try="$ac_link"
28403 case "(($ac_try" in
28404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405   *) ac_try_echo=$ac_try;;
28406 esac
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408   (eval "$ac_link") 2>conftest.er1
28409   ac_status=$?
28410   grep -v '^ *+' conftest.er1 >conftest.err
28411   rm -f conftest.er1
28412   cat conftest.err >&5
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); } &&
28415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416   { (case "(($ac_try" in
28417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28418   *) ac_try_echo=$ac_try;;
28419 esac
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421   (eval "$ac_try") 2>&5
28422   ac_status=$?
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); }; } &&
28425          { ac_try='test -s conftest$ac_exeext'
28426   { (case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_try") 2>&5
28432   ac_status=$?
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); }; }; then
28435   ac_cv_search_pthread_getspecific=$ac_res
28436 else
28437   echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440
28441 fi
28442
28443 rm -f core conftest.err conftest.$ac_objext \
28444       conftest$ac_exeext
28445   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28446   break
28447 fi
28448 done
28449 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28450   :
28451 else
28452   ac_cv_search_pthread_getspecific=no
28453 fi
28454 rm conftest.$ac_ext
28455 LIBS=$ac_func_search_save_LIBS
28456 fi
28457 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28458 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28459 ac_res=$ac_cv_search_pthread_getspecific
28460 if test "$ac_res" != no; then
28461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28462
28463 cat >>confdefs.h <<\_ACEOF
28464 #define HAVE_PTHREAD_GETSPECIFIC 1
28465 _ACEOF
28466
28467 fi
28468
28469 fi
28470
28471
28472 # Check whether --with-udis86 was given.
28473 if test "${with_udis86+set}" = set; then
28474   withval=$with_udis86;
28475       USE_UDIS86=1
28476
28477       case "$withval" in
28478         /usr/lib|yes) ;;
28479         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28480       esac
28481
28482 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28483 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28484 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28485   echo $ECHO_N "(cached) $ECHO_C" >&6
28486 else
28487   ac_check_lib_save_LIBS=$LIBS
28488 LIBS="-ludis86  $LIBS"
28489 cat >conftest.$ac_ext <<_ACEOF
28490 /* confdefs.h.  */
28491 _ACEOF
28492 cat confdefs.h >>conftest.$ac_ext
28493 cat >>conftest.$ac_ext <<_ACEOF
28494 /* end confdefs.h.  */
28495
28496 /* Override any GCC internal prototype to avoid an error.
28497    Use char because int might match the return type of a GCC
28498    builtin and then its argument prototype would still apply.  */
28499 #ifdef __cplusplus
28500 extern "C"
28501 #endif
28502 char ud_init ();
28503 int
28504 main ()
28505 {
28506 return ud_init ();
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest.$ac_objext conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_link") 2>conftest.er1
28519   ac_status=$?
28520   grep -v '^ *+' conftest.er1 >conftest.err
28521   rm -f conftest.er1
28522   cat conftest.err >&5
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); } &&
28525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28526   { (case "(($ac_try" in
28527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528   *) ac_try_echo=$ac_try;;
28529 esac
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531   (eval "$ac_try") 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; } &&
28535          { ac_try='test -s conftest$ac_exeext'
28536   { (case "(($ac_try" in
28537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538   *) ac_try_echo=$ac_try;;
28539 esac
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541   (eval "$ac_try") 2>&5
28542   ac_status=$?
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); }; }; then
28545   ac_cv_lib_udis86_ud_init=yes
28546 else
28547   echo "$as_me: failed program was:" >&5
28548 sed 's/^/| /' conftest.$ac_ext >&5
28549
28550         ac_cv_lib_udis86_ud_init=no
28551 fi
28552
28553 rm -f core conftest.err conftest.$ac_objext \
28554       conftest$ac_exeext conftest.$ac_ext
28555 LIBS=$ac_check_lib_save_LIBS
28556 fi
28557 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28558 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28559 if test $ac_cv_lib_udis86_ud_init = yes; then
28560   cat >>confdefs.h <<_ACEOF
28561 #define HAVE_LIBUDIS86 1
28562 _ACEOF
28563
28564   LIBS="-ludis86 $LIBS"
28565
28566 else
28567
28568         echo "Error! You need to have libudis86 around."
28569         exit -1
28570
28571 fi
28572
28573
28574 else
28575   USE_UDIS86=0
28576
28577 fi
28578
28579
28580 cat >>confdefs.h <<_ACEOF
28581 #define USE_UDIS86 $USE_UDIS86
28582 _ACEOF
28583
28584
28585
28586 # Check whether --with-oprofile was given.
28587 if test "${with_oprofile+set}" = set; then
28588   withval=$with_oprofile;
28589       USE_OPROFILE=1
28590
28591       case "$withval" in
28592         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28593         no) llvm_cv_oppath=
28594             USE_OPROFILE=0
28595  ;;
28596         *) llvm_cv_oppath="${withval}/lib/oprofile"
28597            CPPFLAGS="-I${withval}/include";;
28598       esac
28599       if test -n "$llvm_cv_oppath" ; then
28600         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28601                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28602 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28603 if test "${ac_cv_search_bfd_init+set}" = set; then
28604   echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606   ac_func_search_save_LIBS=$LIBS
28607 cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613
28614 /* Override any GCC internal prototype to avoid an error.
28615    Use char because int might match the return type of a GCC
28616    builtin and then its argument prototype would still apply.  */
28617 #ifdef __cplusplus
28618 extern "C"
28619 #endif
28620 char bfd_init ();
28621 int
28622 main ()
28623 {
28624 return bfd_init ();
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 for ac_lib in '' bfd; do
28630   if test -z "$ac_lib"; then
28631     ac_res="none required"
28632   else
28633     ac_res=-l$ac_lib
28634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28635   fi
28636   rm -f conftest.$ac_objext conftest$ac_exeext
28637 if { (ac_try="$ac_link"
28638 case "(($ac_try" in
28639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640   *) ac_try_echo=$ac_try;;
28641 esac
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643   (eval "$ac_link") 2>conftest.er1
28644   ac_status=$?
28645   grep -v '^ *+' conftest.er1 >conftest.err
28646   rm -f conftest.er1
28647   cat conftest.err >&5
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); } &&
28650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28651   { (case "(($ac_try" in
28652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653   *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656   (eval "$ac_try") 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; } &&
28660          { ac_try='test -s conftest$ac_exeext'
28661   { (case "(($ac_try" in
28662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663   *) ac_try_echo=$ac_try;;
28664 esac
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666   (eval "$ac_try") 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; }; then
28670   ac_cv_search_bfd_init=$ac_res
28671 else
28672   echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28674
28675
28676 fi
28677
28678 rm -f core conftest.err conftest.$ac_objext \
28679       conftest$ac_exeext
28680   if test "${ac_cv_search_bfd_init+set}" = set; then
28681   break
28682 fi
28683 done
28684 if test "${ac_cv_search_bfd_init+set}" = set; then
28685   :
28686 else
28687   ac_cv_search_bfd_init=no
28688 fi
28689 rm conftest.$ac_ext
28690 LIBS=$ac_func_search_save_LIBS
28691 fi
28692 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28693 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28694 ac_res=$ac_cv_search_bfd_init
28695 if test "$ac_res" != no; then
28696   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28697
28698 fi
28699
28700         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28701 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28702 if test "${ac_cv_search_op_open_agent+set}" = set; then
28703   echo $ECHO_N "(cached) $ECHO_C" >&6
28704 else
28705   ac_func_search_save_LIBS=$LIBS
28706 cat >conftest.$ac_ext <<_ACEOF
28707 /* confdefs.h.  */
28708 _ACEOF
28709 cat confdefs.h >>conftest.$ac_ext
28710 cat >>conftest.$ac_ext <<_ACEOF
28711 /* end confdefs.h.  */
28712
28713 /* Override any GCC internal prototype to avoid an error.
28714    Use char because int might match the return type of a GCC
28715    builtin and then its argument prototype would still apply.  */
28716 #ifdef __cplusplus
28717 extern "C"
28718 #endif
28719 char op_open_agent ();
28720 int
28721 main ()
28722 {
28723 return op_open_agent ();
28724   ;
28725   return 0;
28726 }
28727 _ACEOF
28728 for ac_lib in '' opagent; do
28729   if test -z "$ac_lib"; then
28730     ac_res="none required"
28731   else
28732     ac_res=-l$ac_lib
28733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28734   fi
28735   rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_link") 2>conftest.er1
28743   ac_status=$?
28744   grep -v '^ *+' conftest.er1 >conftest.err
28745   rm -f conftest.er1
28746   cat conftest.err >&5
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); } &&
28749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28750   { (case "(($ac_try" in
28751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752   *) ac_try_echo=$ac_try;;
28753 esac
28754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755   (eval "$ac_try") 2>&5
28756   ac_status=$?
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); }; } &&
28759          { ac_try='test -s conftest$ac_exeext'
28760   { (case "(($ac_try" in
28761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762   *) ac_try_echo=$ac_try;;
28763 esac
28764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765   (eval "$ac_try") 2>&5
28766   ac_status=$?
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); }; }; then
28769   ac_cv_search_op_open_agent=$ac_res
28770 else
28771   echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28773
28774
28775 fi
28776
28777 rm -f core conftest.err conftest.$ac_objext \
28778       conftest$ac_exeext
28779   if test "${ac_cv_search_op_open_agent+set}" = set; then
28780   break
28781 fi
28782 done
28783 if test "${ac_cv_search_op_open_agent+set}" = set; then
28784   :
28785 else
28786   ac_cv_search_op_open_agent=no
28787 fi
28788 rm conftest.$ac_ext
28789 LIBS=$ac_func_search_save_LIBS
28790 fi
28791 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28792 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28793 ac_res=$ac_cv_search_op_open_agent
28794 if test "$ac_res" != no; then
28795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28796
28797 else
28798
28799           echo "Error! You need to have libopagent around."
28800           exit -1
28801
28802 fi
28803
28804         if test "${ac_cv_header_opagent_h+set}" = set; then
28805   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28806 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28807 if test "${ac_cv_header_opagent_h+set}" = set; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 fi
28810 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28811 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28812 else
28813   # Is the header compilable?
28814 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28815 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28816 cat >conftest.$ac_ext <<_ACEOF
28817 /* confdefs.h.  */
28818 _ACEOF
28819 cat confdefs.h >>conftest.$ac_ext
28820 cat >>conftest.$ac_ext <<_ACEOF
28821 /* end confdefs.h.  */
28822 $ac_includes_default
28823 #include <opagent.h>
28824 _ACEOF
28825 rm -f conftest.$ac_objext
28826 if { (ac_try="$ac_compile"
28827 case "(($ac_try" in
28828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829   *) ac_try_echo=$ac_try;;
28830 esac
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832   (eval "$ac_compile") 2>conftest.er1
28833   ac_status=$?
28834   grep -v '^ *+' conftest.er1 >conftest.err
28835   rm -f conftest.er1
28836   cat conftest.err >&5
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); } &&
28839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28840   { (case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_try") 2>&5
28846   ac_status=$?
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); }; } &&
28849          { ac_try='test -s conftest.$ac_objext'
28850   { (case "(($ac_try" in
28851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852   *) ac_try_echo=$ac_try;;
28853 esac
28854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855   (eval "$ac_try") 2>&5
28856   ac_status=$?
28857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858   (exit $ac_status); }; }; then
28859   ac_header_compiler=yes
28860 else
28861   echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28863
28864         ac_header_compiler=no
28865 fi
28866
28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28869 echo "${ECHO_T}$ac_header_compiler" >&6; }
28870
28871 # Is the header present?
28872 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28873 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28874 cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 #include <opagent.h>
28881 _ACEOF
28882 if { (ac_try="$ac_cpp conftest.$ac_ext"
28883 case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } >/dev/null; then
28895   if test -s conftest.err; then
28896     ac_cpp_err=$ac_c_preproc_warn_flag
28897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28898   else
28899     ac_cpp_err=
28900   fi
28901 else
28902   ac_cpp_err=yes
28903 fi
28904 if test -z "$ac_cpp_err"; then
28905   ac_header_preproc=yes
28906 else
28907   echo "$as_me: failed program was:" >&5
28908 sed 's/^/| /' conftest.$ac_ext >&5
28909
28910   ac_header_preproc=no
28911 fi
28912
28913 rm -f conftest.err conftest.$ac_ext
28914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28915 echo "${ECHO_T}$ac_header_preproc" >&6; }
28916
28917 # So?  What about this header?
28918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28919   yes:no: )
28920     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28921 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28922     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28923 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28924     ac_header_preproc=yes
28925     ;;
28926   no:yes:* )
28927     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28928 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28929     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28930 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28931     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28932 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28933     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28934 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28935     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28936 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28937     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28938 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28939     ( cat <<\_ASBOX
28940 ## ----------------------------------- ##
28941 ## Report this to llvmbugs@cs.uiuc.edu ##
28942 ## ----------------------------------- ##
28943 _ASBOX
28944      ) | sed "s/^/$as_me: WARNING:     /" >&2
28945     ;;
28946 esac
28947 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28948 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28949 if test "${ac_cv_header_opagent_h+set}" = set; then
28950   echo $ECHO_N "(cached) $ECHO_C" >&6
28951 else
28952   ac_cv_header_opagent_h=$ac_header_preproc
28953 fi
28954 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28955 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28956
28957 fi
28958 if test $ac_cv_header_opagent_h = yes; then
28959   :
28960 else
28961
28962           echo "Error! You need to have opagent.h around."
28963           exit -1
28964
28965 fi
28966
28967
28968       fi
28969
28970 else
28971
28972       USE_OPROFILE=0
28973
28974
28975 fi
28976
28977
28978 cat >>confdefs.h <<_ACEOF
28979 #define USE_OPROFILE $USE_OPROFILE
28980 _ACEOF
28981
28982
28983
28984
28985
28986
28987
28988
28989 ac_header_dirent=no
28990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28991   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28992 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28993 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997   cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003 #include <sys/types.h>
29004 #include <$ac_hdr>
29005
29006 int
29007 main ()
29008 {
29009 if ((DIR *) 0)
29010 return 0;
29011   ;
29012   return 0;
29013 }
29014 _ACEOF
29015 rm -f conftest.$ac_objext
29016 if { (ac_try="$ac_compile"
29017 case "(($ac_try" in
29018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019   *) ac_try_echo=$ac_try;;
29020 esac
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022   (eval "$ac_compile") 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } &&
29029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29030   { (case "(($ac_try" in
29031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032   *) ac_try_echo=$ac_try;;
29033 esac
29034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29035   (eval "$ac_try") 2>&5
29036   ac_status=$?
29037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038   (exit $ac_status); }; } &&
29039          { ac_try='test -s conftest.$ac_objext'
29040   { (case "(($ac_try" in
29041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042   *) ac_try_echo=$ac_try;;
29043 esac
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045   (eval "$ac_try") 2>&5
29046   ac_status=$?
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); }; }; then
29049   eval "$as_ac_Header=yes"
29050 else
29051   echo "$as_me: failed program was:" >&5
29052 sed 's/^/| /' conftest.$ac_ext >&5
29053
29054         eval "$as_ac_Header=no"
29055 fi
29056
29057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29058 fi
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060                { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29063   cat >>confdefs.h <<_ACEOF
29064 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29065 _ACEOF
29066
29067 ac_header_dirent=$ac_hdr; break
29068 fi
29069
29070 done
29071 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29072 if test $ac_header_dirent = dirent.h; then
29073   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29074 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29075 if test "${ac_cv_search_opendir+set}" = set; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078   ac_func_search_save_LIBS=$LIBS
29079 cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085
29086 /* Override any GCC internal prototype to avoid an error.
29087    Use char because int might match the return type of a GCC
29088    builtin and then its argument prototype would still apply.  */
29089 #ifdef __cplusplus
29090 extern "C"
29091 #endif
29092 char opendir ();
29093 int
29094 main ()
29095 {
29096 return opendir ();
29097   ;
29098   return 0;
29099 }
29100 _ACEOF
29101 for ac_lib in '' dir; do
29102   if test -z "$ac_lib"; then
29103     ac_res="none required"
29104   else
29105     ac_res=-l$ac_lib
29106     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29107   fi
29108   rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_link") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } &&
29122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29123   { (case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128   (eval "$ac_try") 2>&5
29129   ac_status=$?
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); }; } &&
29132          { ac_try='test -s conftest$ac_exeext'
29133   { (case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138   (eval "$ac_try") 2>&5
29139   ac_status=$?
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); }; }; then
29142   ac_cv_search_opendir=$ac_res
29143 else
29144   echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29146
29147
29148 fi
29149
29150 rm -f core conftest.err conftest.$ac_objext \
29151       conftest$ac_exeext
29152   if test "${ac_cv_search_opendir+set}" = set; then
29153   break
29154 fi
29155 done
29156 if test "${ac_cv_search_opendir+set}" = set; then
29157   :
29158 else
29159   ac_cv_search_opendir=no
29160 fi
29161 rm conftest.$ac_ext
29162 LIBS=$ac_func_search_save_LIBS
29163 fi
29164 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29165 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29166 ac_res=$ac_cv_search_opendir
29167 if test "$ac_res" != no; then
29168   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29169
29170 fi
29171
29172 else
29173   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29174 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29175 if test "${ac_cv_search_opendir+set}" = set; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178   ac_func_search_save_LIBS=$LIBS
29179 cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185
29186 /* Override any GCC internal prototype to avoid an error.
29187    Use char because int might match the return type of a GCC
29188    builtin and then its argument prototype would still apply.  */
29189 #ifdef __cplusplus
29190 extern "C"
29191 #endif
29192 char opendir ();
29193 int
29194 main ()
29195 {
29196 return opendir ();
29197   ;
29198   return 0;
29199 }
29200 _ACEOF
29201 for ac_lib in '' x; do
29202   if test -z "$ac_lib"; then
29203     ac_res="none required"
29204   else
29205     ac_res=-l$ac_lib
29206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29207   fi
29208   rm -f conftest.$ac_objext conftest$ac_exeext
29209 if { (ac_try="$ac_link"
29210 case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_link") 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } &&
29222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29223   { (case "(($ac_try" in
29224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225   *) ac_try_echo=$ac_try;;
29226 esac
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228   (eval "$ac_try") 2>&5
29229   ac_status=$?
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); }; } &&
29232          { ac_try='test -s conftest$ac_exeext'
29233   { (case "(($ac_try" in
29234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29235   *) ac_try_echo=$ac_try;;
29236 esac
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238   (eval "$ac_try") 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   ac_cv_search_opendir=$ac_res
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247
29248 fi
29249
29250 rm -f core conftest.err conftest.$ac_objext \
29251       conftest$ac_exeext
29252   if test "${ac_cv_search_opendir+set}" = set; then
29253   break
29254 fi
29255 done
29256 if test "${ac_cv_search_opendir+set}" = set; then
29257   :
29258 else
29259   ac_cv_search_opendir=no
29260 fi
29261 rm conftest.$ac_ext
29262 LIBS=$ac_func_search_save_LIBS
29263 fi
29264 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29265 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29266 ac_res=$ac_cv_search_opendir
29267 if test "$ac_res" != no; then
29268   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29269
29270 fi
29271
29272 fi
29273
29274 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29275 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29276 if test "${ac_cv_header_mmap_anon+set}" = set; then
29277   echo $ECHO_N "(cached) $ECHO_C" >&6
29278 else
29279    ac_ext=c
29280 ac_cpp='$CPP $CPPFLAGS'
29281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29284
29285   cat >conftest.$ac_ext <<_ACEOF
29286 /* confdefs.h.  */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h.  */
29291 #include <sys/mman.h>
29292 #include <unistd.h>
29293 #include <fcntl.h>
29294 int
29295 main ()
29296 {
29297 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29298   ;
29299   return 0;
29300 }
29301 _ACEOF
29302 rm -f conftest.$ac_objext
29303 if { (ac_try="$ac_compile"
29304 case "(($ac_try" in
29305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29306   *) ac_try_echo=$ac_try;;
29307 esac
29308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309   (eval "$ac_compile") 2>conftest.er1
29310   ac_status=$?
29311   grep -v '^ *+' conftest.er1 >conftest.err
29312   rm -f conftest.er1
29313   cat conftest.err >&5
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); } &&
29316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317   { (case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322   (eval "$ac_try") 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; } &&
29326          { ac_try='test -s conftest.$ac_objext'
29327   { (case "(($ac_try" in
29328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29329   *) ac_try_echo=$ac_try;;
29330 esac
29331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332   (eval "$ac_try") 2>&5
29333   ac_status=$?
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); }; }; then
29336   ac_cv_header_mmap_anon=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341         ac_cv_header_mmap_anon=no
29342 fi
29343
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345   ac_ext=c
29346 ac_cpp='$CPP $CPPFLAGS'
29347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29350
29351
29352 fi
29353 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29354 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29355 if test "$ac_cv_header_mmap_anon" = yes; then
29356
29357 cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_MMAP_ANONYMOUS 1
29359 _ACEOF
29360
29361 fi
29362
29363 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29364 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29365 if test "${ac_cv_header_stat_broken+set}" = set; then
29366   echo $ECHO_N "(cached) $ECHO_C" >&6
29367 else
29368   cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374 #include <sys/types.h>
29375 #include <sys/stat.h>
29376
29377 #if defined S_ISBLK && defined S_IFDIR
29378 # if S_ISBLK (S_IFDIR)
29379 You lose.
29380 # endif
29381 #endif
29382
29383 #if defined S_ISBLK && defined S_IFCHR
29384 # if S_ISBLK (S_IFCHR)
29385 You lose.
29386 # endif
29387 #endif
29388
29389 #if defined S_ISLNK && defined S_IFREG
29390 # if S_ISLNK (S_IFREG)
29391 You lose.
29392 # endif
29393 #endif
29394
29395 #if defined S_ISSOCK && defined S_IFREG
29396 # if S_ISSOCK (S_IFREG)
29397 You lose.
29398 # endif
29399 #endif
29400
29401 _ACEOF
29402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29403   $EGREP "You lose" >/dev/null 2>&1; then
29404   ac_cv_header_stat_broken=yes
29405 else
29406   ac_cv_header_stat_broken=no
29407 fi
29408 rm -f conftest*
29409
29410 fi
29411 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29412 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29413 if test $ac_cv_header_stat_broken = yes; then
29414
29415 cat >>confdefs.h <<\_ACEOF
29416 #define STAT_MACROS_BROKEN 1
29417 _ACEOF
29418
29419 fi
29420
29421 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29422 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29423 if test "${ac_cv_header_stdc+set}" = set; then
29424   echo $ECHO_N "(cached) $ECHO_C" >&6
29425 else
29426   cat >conftest.$ac_ext <<_ACEOF
29427 /* confdefs.h.  */
29428 _ACEOF
29429 cat confdefs.h >>conftest.$ac_ext
29430 cat >>conftest.$ac_ext <<_ACEOF
29431 /* end confdefs.h.  */
29432 #include <stdlib.h>
29433 #include <stdarg.h>
29434 #include <string.h>
29435 #include <float.h>
29436
29437 int
29438 main ()
29439 {
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext
29446 if { (ac_try="$ac_compile"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_compile") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } &&
29459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460   { (case "(($ac_try" in
29461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462   *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465   (eval "$ac_try") 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; } &&
29469          { ac_try='test -s conftest.$ac_objext'
29470   { (case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_try") 2>&5
29476   ac_status=$?
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); }; }; then
29479   ac_cv_header_stdc=yes
29480 else
29481   echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29483
29484         ac_cv_header_stdc=no
29485 fi
29486
29487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29488
29489 if test $ac_cv_header_stdc = yes; then
29490   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29491   cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497 #include <string.h>
29498
29499 _ACEOF
29500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29501   $EGREP "memchr" >/dev/null 2>&1; then
29502   :
29503 else
29504   ac_cv_header_stdc=no
29505 fi
29506 rm -f conftest*
29507
29508 fi
29509
29510 if test $ac_cv_header_stdc = yes; then
29511   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29512   cat >conftest.$ac_ext <<_ACEOF
29513 /* confdefs.h.  */
29514 _ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h.  */
29518 #include <stdlib.h>
29519
29520 _ACEOF
29521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29522   $EGREP "free" >/dev/null 2>&1; then
29523   :
29524 else
29525   ac_cv_header_stdc=no
29526 fi
29527 rm -f conftest*
29528
29529 fi
29530
29531 if test $ac_cv_header_stdc = yes; then
29532   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29533   if test "$cross_compiling" = yes; then
29534   :
29535 else
29536   cat >conftest.$ac_ext <<_ACEOF
29537 /* confdefs.h.  */
29538 _ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h.  */
29542 #include <ctype.h>
29543 #include <stdlib.h>
29544 #if ((' ' & 0x0FF) == 0x020)
29545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29547 #else
29548 # define ISLOWER(c) \
29549                    (('a' <= (c) && (c) <= 'i') \
29550                      || ('j' <= (c) && (c) <= 'r') \
29551                      || ('s' <= (c) && (c) <= 'z'))
29552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29553 #endif
29554
29555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29556 int
29557 main ()
29558 {
29559   int i;
29560   for (i = 0; i < 256; i++)
29561     if (XOR (islower (i), ISLOWER (i))
29562         || toupper (i) != TOUPPER (i))
29563       return 2;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest$ac_exeext
29568 if { (ac_try="$ac_link"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_link") 2>&5
29575   ac_status=$?
29576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29578   { (case "(($ac_try" in
29579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580   *) ac_try_echo=$ac_try;;
29581 esac
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583   (eval "$ac_try") 2>&5
29584   ac_status=$?
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); }; }; then
29587   :
29588 else
29589   echo "$as_me: program exited with status $ac_status" >&5
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593 ( exit $ac_status )
29594 ac_cv_header_stdc=no
29595 fi
29596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29597 fi
29598
29599
29600 fi
29601 fi
29602 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29603 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29604 if test $ac_cv_header_stdc = yes; then
29605
29606 cat >>confdefs.h <<\_ACEOF
29607 #define STDC_HEADERS 1
29608 _ACEOF
29609
29610 fi
29611
29612 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29613 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29615   echo $ECHO_N "(cached) $ECHO_C" >&6
29616 else
29617   cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623 #include <sys/types.h>
29624 #include <sys/wait.h>
29625 #ifndef WEXITSTATUS
29626 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29627 #endif
29628 #ifndef WIFEXITED
29629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29630 #endif
29631
29632 int
29633 main ()
29634 {
29635   int s;
29636   wait (&s);
29637   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29638   ;
29639   return 0;
29640 }
29641 _ACEOF
29642 rm -f conftest.$ac_objext
29643 if { (ac_try="$ac_compile"
29644 case "(($ac_try" in
29645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646   *) ac_try_echo=$ac_try;;
29647 esac
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649   (eval "$ac_compile") 2>conftest.er1
29650   ac_status=$?
29651   grep -v '^ *+' conftest.er1 >conftest.err
29652   rm -f conftest.er1
29653   cat conftest.err >&5
29654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655   (exit $ac_status); } &&
29656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29657   { (case "(($ac_try" in
29658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659   *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662   (eval "$ac_try") 2>&5
29663   ac_status=$?
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); }; } &&
29666          { ac_try='test -s conftest.$ac_objext'
29667   { (case "(($ac_try" in
29668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669   *) ac_try_echo=$ac_try;;
29670 esac
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672   (eval "$ac_try") 2>&5
29673   ac_status=$?
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); }; }; then
29676   ac_cv_header_sys_wait_h=yes
29677 else
29678   echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29680
29681         ac_cv_header_sys_wait_h=no
29682 fi
29683
29684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29685 fi
29686 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29687 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29688 if test $ac_cv_header_sys_wait_h = yes; then
29689
29690 cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_SYS_WAIT_H 1
29692 _ACEOF
29693
29694 fi
29695
29696 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29697 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29698 if test "${ac_cv_header_time+set}" = set; then
29699   echo $ECHO_N "(cached) $ECHO_C" >&6
29700 else
29701   cat >conftest.$ac_ext <<_ACEOF
29702 /* confdefs.h.  */
29703 _ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h.  */
29707 #include <sys/types.h>
29708 #include <sys/time.h>
29709 #include <time.h>
29710
29711 int
29712 main ()
29713 {
29714 if ((struct tm *) 0)
29715 return 0;
29716   ;
29717   return 0;
29718 }
29719 _ACEOF
29720 rm -f conftest.$ac_objext
29721 if { (ac_try="$ac_compile"
29722 case "(($ac_try" in
29723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29724   *) ac_try_echo=$ac_try;;
29725 esac
29726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727   (eval "$ac_compile") 2>conftest.er1
29728   ac_status=$?
29729   grep -v '^ *+' conftest.er1 >conftest.err
29730   rm -f conftest.er1
29731   cat conftest.err >&5
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); } &&
29734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29735   { (case "(($ac_try" in
29736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737   *) ac_try_echo=$ac_try;;
29738 esac
29739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740   (eval "$ac_try") 2>&5
29741   ac_status=$?
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); }; } &&
29744          { ac_try='test -s conftest.$ac_objext'
29745   { (case "(($ac_try" in
29746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747   *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750   (eval "$ac_try") 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; }; then
29754   ac_cv_header_time=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759         ac_cv_header_time=no
29760 fi
29761
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763 fi
29764 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29765 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29766 if test $ac_cv_header_time = yes; then
29767
29768 cat >>confdefs.h <<\_ACEOF
29769 #define TIME_WITH_SYS_TIME 1
29770 _ACEOF
29771
29772 fi
29773
29774
29775
29776
29777
29778
29779
29780
29781 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29782 do
29783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788   echo $ECHO_N "(cached) $ECHO_C" >&6
29789 fi
29790 ac_res=`eval echo '${'$as_ac_Header'}'`
29791                { echo "$as_me:$LINENO: result: $ac_res" >&5
29792 echo "${ECHO_T}$ac_res" >&6; }
29793 else
29794   # Is the header compilable?
29795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29797 cat >conftest.$ac_ext <<_ACEOF
29798 /* confdefs.h.  */
29799 _ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h.  */
29803 $ac_includes_default
29804 #include <$ac_header>
29805 _ACEOF
29806 rm -f conftest.$ac_objext
29807 if { (ac_try="$ac_compile"
29808 case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813   (eval "$ac_compile") 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } &&
29820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821   { (case "(($ac_try" in
29822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823   *) ac_try_echo=$ac_try;;
29824 esac
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826   (eval "$ac_try") 2>&5
29827   ac_status=$?
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); }; } &&
29830          { ac_try='test -s conftest.$ac_objext'
29831   { (case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836   (eval "$ac_try") 2>&5
29837   ac_status=$?
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); }; }; then
29840   ac_header_compiler=yes
29841 else
29842   echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29844
29845         ac_header_compiler=no
29846 fi
29847
29848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29850 echo "${ECHO_T}$ac_header_compiler" >&6; }
29851
29852 # Is the header present?
29853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29855 cat >conftest.$ac_ext <<_ACEOF
29856 /* confdefs.h.  */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h.  */
29861 #include <$ac_header>
29862 _ACEOF
29863 if { (ac_try="$ac_cpp conftest.$ac_ext"
29864 case "(($ac_try" in
29865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866   *) ac_try_echo=$ac_try;;
29867 esac
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29870   ac_status=$?
29871   grep -v '^ *+' conftest.er1 >conftest.err
29872   rm -f conftest.er1
29873   cat conftest.err >&5
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); } >/dev/null; then
29876   if test -s conftest.err; then
29877     ac_cpp_err=$ac_c_preproc_warn_flag
29878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29879   else
29880     ac_cpp_err=
29881   fi
29882 else
29883   ac_cpp_err=yes
29884 fi
29885 if test -z "$ac_cpp_err"; then
29886   ac_header_preproc=yes
29887 else
29888   echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29890
29891   ac_header_preproc=no
29892 fi
29893
29894 rm -f conftest.err conftest.$ac_ext
29895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29896 echo "${ECHO_T}$ac_header_preproc" >&6; }
29897
29898 # So?  What about this header?
29899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29900   yes:no: )
29901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29905     ac_header_preproc=yes
29906     ;;
29907   no:yes:* )
29908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29920     ( cat <<\_ASBOX
29921 ## ----------------------------------- ##
29922 ## Report this to llvmbugs@cs.uiuc.edu ##
29923 ## ----------------------------------- ##
29924 _ASBOX
29925      ) | sed "s/^/$as_me: WARNING:     /" >&2
29926     ;;
29927 esac
29928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29931   echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933   eval "$as_ac_Header=\$ac_header_preproc"
29934 fi
29935 ac_res=`eval echo '${'$as_ac_Header'}'`
29936                { echo "$as_me:$LINENO: result: $ac_res" >&5
29937 echo "${ECHO_T}$ac_res" >&6; }
29938
29939 fi
29940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29941   cat >>confdefs.h <<_ACEOF
29942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29943 _ACEOF
29944
29945 fi
29946
29947 done
29948
29949
29950
29951
29952
29953
29954
29955 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29956 do
29957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29962   echo $ECHO_N "(cached) $ECHO_C" >&6
29963 fi
29964 ac_res=`eval echo '${'$as_ac_Header'}'`
29965                { echo "$as_me:$LINENO: result: $ac_res" >&5
29966 echo "${ECHO_T}$ac_res" >&6; }
29967 else
29968   # Is the header compilable?
29969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29971 cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h.  */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h.  */
29977 $ac_includes_default
29978 #include <$ac_header>
29979 _ACEOF
29980 rm -f conftest.$ac_objext
29981 if { (ac_try="$ac_compile"
29982 case "(($ac_try" in
29983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984   *) ac_try_echo=$ac_try;;
29985 esac
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987   (eval "$ac_compile") 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } &&
29994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29995   { (case "(($ac_try" in
29996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997   *) ac_try_echo=$ac_try;;
29998 esac
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000   (eval "$ac_try") 2>&5
30001   ac_status=$?
30002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003   (exit $ac_status); }; } &&
30004          { ac_try='test -s conftest.$ac_objext'
30005   { (case "(($ac_try" in
30006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30007   *) ac_try_echo=$ac_try;;
30008 esac
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010   (eval "$ac_try") 2>&5
30011   ac_status=$?
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); }; }; then
30014   ac_header_compiler=yes
30015 else
30016   echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019         ac_header_compiler=no
30020 fi
30021
30022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024 echo "${ECHO_T}$ac_header_compiler" >&6; }
30025
30026 # Is the header present?
30027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035 #include <$ac_header>
30036 _ACEOF
30037 if { (ac_try="$ac_cpp conftest.$ac_ext"
30038 case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30044   ac_status=$?
30045   grep -v '^ *+' conftest.er1 >conftest.err
30046   rm -f conftest.er1
30047   cat conftest.err >&5
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } >/dev/null; then
30050   if test -s conftest.err; then
30051     ac_cpp_err=$ac_c_preproc_warn_flag
30052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30053   else
30054     ac_cpp_err=
30055   fi
30056 else
30057   ac_cpp_err=yes
30058 fi
30059 if test -z "$ac_cpp_err"; then
30060   ac_header_preproc=yes
30061 else
30062   echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30064
30065   ac_header_preproc=no
30066 fi
30067
30068 rm -f conftest.err conftest.$ac_ext
30069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30070 echo "${ECHO_T}$ac_header_preproc" >&6; }
30071
30072 # So?  What about this header?
30073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30074   yes:no: )
30075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30079     ac_header_preproc=yes
30080     ;;
30081   no:yes:* )
30082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30094     ( cat <<\_ASBOX
30095 ## ----------------------------------- ##
30096 ## Report this to llvmbugs@cs.uiuc.edu ##
30097 ## ----------------------------------- ##
30098 _ASBOX
30099      ) | sed "s/^/$as_me: WARNING:     /" >&2
30100     ;;
30101 esac
30102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107   eval "$as_ac_Header=\$ac_header_preproc"
30108 fi
30109 ac_res=`eval echo '${'$as_ac_Header'}'`
30110                { echo "$as_me:$LINENO: result: $ac_res" >&5
30111 echo "${ECHO_T}$ac_res" >&6; }
30112
30113 fi
30114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30115   cat >>confdefs.h <<_ACEOF
30116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30117 _ACEOF
30118
30119 fi
30120
30121 done
30122
30123
30124
30125 for ac_header in utime.h windows.h
30126 do
30127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30129   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30132   echo $ECHO_N "(cached) $ECHO_C" >&6
30133 fi
30134 ac_res=`eval echo '${'$as_ac_Header'}'`
30135                { echo "$as_me:$LINENO: result: $ac_res" >&5
30136 echo "${ECHO_T}$ac_res" >&6; }
30137 else
30138   # Is the header compilable?
30139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30141 cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147 $ac_includes_default
30148 #include <$ac_header>
30149 _ACEOF
30150 rm -f conftest.$ac_objext
30151 if { (ac_try="$ac_compile"
30152 case "(($ac_try" in
30153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154   *) ac_try_echo=$ac_try;;
30155 esac
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157   (eval "$ac_compile") 2>conftest.er1
30158   ac_status=$?
30159   grep -v '^ *+' conftest.er1 >conftest.err
30160   rm -f conftest.er1
30161   cat conftest.err >&5
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); } &&
30164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30165   { (case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_try") 2>&5
30171   ac_status=$?
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); }; } &&
30174          { ac_try='test -s conftest.$ac_objext'
30175   { (case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_try") 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; }; then
30184   ac_header_compiler=yes
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189         ac_header_compiler=no
30190 fi
30191
30192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30194 echo "${ECHO_T}$ac_header_compiler" >&6; }
30195
30196 # Is the header present?
30197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30199 cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30205 #include <$ac_header>
30206 _ACEOF
30207 if { (ac_try="$ac_cpp conftest.$ac_ext"
30208 case "(($ac_try" in
30209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210   *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30214   ac_status=$?
30215   grep -v '^ *+' conftest.er1 >conftest.err
30216   rm -f conftest.er1
30217   cat conftest.err >&5
30218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219   (exit $ac_status); } >/dev/null; then
30220   if test -s conftest.err; then
30221     ac_cpp_err=$ac_c_preproc_warn_flag
30222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30223   else
30224     ac_cpp_err=
30225   fi
30226 else
30227   ac_cpp_err=yes
30228 fi
30229 if test -z "$ac_cpp_err"; then
30230   ac_header_preproc=yes
30231 else
30232   echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30234
30235   ac_header_preproc=no
30236 fi
30237
30238 rm -f conftest.err conftest.$ac_ext
30239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30240 echo "${ECHO_T}$ac_header_preproc" >&6; }
30241
30242 # So?  What about this header?
30243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30244   yes:no: )
30245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30249     ac_header_preproc=yes
30250     ;;
30251   no:yes:* )
30252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30264     ( cat <<\_ASBOX
30265 ## ----------------------------------- ##
30266 ## Report this to llvmbugs@cs.uiuc.edu ##
30267 ## ----------------------------------- ##
30268 _ASBOX
30269      ) | sed "s/^/$as_me: WARNING:     /" >&2
30270     ;;
30271 esac
30272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275   echo $ECHO_N "(cached) $ECHO_C" >&6
30276 else
30277   eval "$as_ac_Header=\$ac_header_preproc"
30278 fi
30279 ac_res=`eval echo '${'$as_ac_Header'}'`
30280                { echo "$as_me:$LINENO: result: $ac_res" >&5
30281 echo "${ECHO_T}$ac_res" >&6; }
30282
30283 fi
30284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30285   cat >>confdefs.h <<_ACEOF
30286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30287 _ACEOF
30288
30289 fi
30290
30291 done
30292
30293
30294
30295
30296
30297 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30298 do
30299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30304   echo $ECHO_N "(cached) $ECHO_C" >&6
30305 fi
30306 ac_res=`eval echo '${'$as_ac_Header'}'`
30307                { echo "$as_me:$LINENO: result: $ac_res" >&5
30308 echo "${ECHO_T}$ac_res" >&6; }
30309 else
30310   # Is the header compilable?
30311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30313 cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319 $ac_includes_default
30320 #include <$ac_header>
30321 _ACEOF
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326   *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329   (eval "$ac_compile") 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } &&
30336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337   { (case "(($ac_try" in
30338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339   *) ac_try_echo=$ac_try;;
30340 esac
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342   (eval "$ac_try") 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; } &&
30346          { ac_try='test -s conftest.$ac_objext'
30347   { (case "(($ac_try" in
30348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349   *) ac_try_echo=$ac_try;;
30350 esac
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352   (eval "$ac_try") 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; }; then
30356   ac_header_compiler=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361         ac_header_compiler=no
30362 fi
30363
30364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30366 echo "${ECHO_T}$ac_header_compiler" >&6; }
30367
30368 # Is the header present?
30369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30371 cat >conftest.$ac_ext <<_ACEOF
30372 /* confdefs.h.  */
30373 _ACEOF
30374 cat confdefs.h >>conftest.$ac_ext
30375 cat >>conftest.$ac_ext <<_ACEOF
30376 /* end confdefs.h.  */
30377 #include <$ac_header>
30378 _ACEOF
30379 if { (ac_try="$ac_cpp conftest.$ac_ext"
30380 case "(($ac_try" in
30381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382   *) ac_try_echo=$ac_try;;
30383 esac
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30386   ac_status=$?
30387   grep -v '^ *+' conftest.er1 >conftest.err
30388   rm -f conftest.er1
30389   cat conftest.err >&5
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); } >/dev/null; then
30392   if test -s conftest.err; then
30393     ac_cpp_err=$ac_c_preproc_warn_flag
30394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30395   else
30396     ac_cpp_err=
30397   fi
30398 else
30399   ac_cpp_err=yes
30400 fi
30401 if test -z "$ac_cpp_err"; then
30402   ac_header_preproc=yes
30403 else
30404   echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30406
30407   ac_header_preproc=no
30408 fi
30409
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30413
30414 # So?  What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416   yes:no: )
30417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30421     ac_header_preproc=yes
30422     ;;
30423   no:yes:* )
30424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30436     ( cat <<\_ASBOX
30437 ## ----------------------------------- ##
30438 ## Report this to llvmbugs@cs.uiuc.edu ##
30439 ## ----------------------------------- ##
30440 _ASBOX
30441      ) | sed "s/^/$as_me: WARNING:     /" >&2
30442     ;;
30443 esac
30444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30447   echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449   eval "$as_ac_Header=\$ac_header_preproc"
30450 fi
30451 ac_res=`eval echo '${'$as_ac_Header'}'`
30452                { echo "$as_me:$LINENO: result: $ac_res" >&5
30453 echo "${ECHO_T}$ac_res" >&6; }
30454
30455 fi
30456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30457   cat >>confdefs.h <<_ACEOF
30458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30459 _ACEOF
30460
30461 fi
30462
30463 done
30464
30465
30466
30467
30468
30469 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30470 do
30471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30473   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30476   echo $ECHO_N "(cached) $ECHO_C" >&6
30477 fi
30478 ac_res=`eval echo '${'$as_ac_Header'}'`
30479                { echo "$as_me:$LINENO: result: $ac_res" >&5
30480 echo "${ECHO_T}$ac_res" >&6; }
30481 else
30482   # Is the header compilable?
30483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30485 cat >conftest.$ac_ext <<_ACEOF
30486 /* confdefs.h.  */
30487 _ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h.  */
30491 $ac_includes_default
30492 #include <$ac_header>
30493 _ACEOF
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498   *) ac_try_echo=$ac_try;;
30499 esac
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501   (eval "$ac_compile") 2>conftest.er1
30502   ac_status=$?
30503   grep -v '^ *+' conftest.er1 >conftest.err
30504   rm -f conftest.er1
30505   cat conftest.err >&5
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); } &&
30508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30509   { (case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_try") 2>&5
30515   ac_status=$?
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); }; } &&
30518          { ac_try='test -s conftest.$ac_objext'
30519   { (case "(($ac_try" in
30520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521   *) ac_try_echo=$ac_try;;
30522 esac
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524   (eval "$ac_try") 2>&5
30525   ac_status=$?
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); }; }; then
30528   ac_header_compiler=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_header_compiler=no
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30538 echo "${ECHO_T}$ac_header_compiler" >&6; }
30539
30540 # Is the header present?
30541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30543 cat >conftest.$ac_ext <<_ACEOF
30544 /* confdefs.h.  */
30545 _ACEOF
30546 cat confdefs.h >>conftest.$ac_ext
30547 cat >>conftest.$ac_ext <<_ACEOF
30548 /* end confdefs.h.  */
30549 #include <$ac_header>
30550 _ACEOF
30551 if { (ac_try="$ac_cpp conftest.$ac_ext"
30552 case "(($ac_try" in
30553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554   *) ac_try_echo=$ac_try;;
30555 esac
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30558   ac_status=$?
30559   grep -v '^ *+' conftest.er1 >conftest.err
30560   rm -f conftest.er1
30561   cat conftest.err >&5
30562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563   (exit $ac_status); } >/dev/null; then
30564   if test -s conftest.err; then
30565     ac_cpp_err=$ac_c_preproc_warn_flag
30566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30567   else
30568     ac_cpp_err=
30569   fi
30570 else
30571   ac_cpp_err=yes
30572 fi
30573 if test -z "$ac_cpp_err"; then
30574   ac_header_preproc=yes
30575 else
30576   echo "$as_me: failed program was:" >&5
30577 sed 's/^/| /' conftest.$ac_ext >&5
30578
30579   ac_header_preproc=no
30580 fi
30581
30582 rm -f conftest.err conftest.$ac_ext
30583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30584 echo "${ECHO_T}$ac_header_preproc" >&6; }
30585
30586 # So?  What about this header?
30587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30588   yes:no: )
30589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30593     ac_header_preproc=yes
30594     ;;
30595   no:yes:* )
30596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30608     ( cat <<\_ASBOX
30609 ## ----------------------------------- ##
30610 ## Report this to llvmbugs@cs.uiuc.edu ##
30611 ## ----------------------------------- ##
30612 _ASBOX
30613      ) | sed "s/^/$as_me: WARNING:     /" >&2
30614     ;;
30615 esac
30616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30619   echo $ECHO_N "(cached) $ECHO_C" >&6
30620 else
30621   eval "$as_ac_Header=\$ac_header_preproc"
30622 fi
30623 ac_res=`eval echo '${'$as_ac_Header'}'`
30624                { echo "$as_me:$LINENO: result: $ac_res" >&5
30625 echo "${ECHO_T}$ac_res" >&6; }
30626
30627 fi
30628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30629   cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30631 _ACEOF
30632
30633 fi
30634
30635 done
30636
30637 if test "$ENABLE_THREADS" -eq 1 ; then
30638
30639 for ac_header in pthread.h
30640 do
30641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30646   echo $ECHO_N "(cached) $ECHO_C" >&6
30647 fi
30648 ac_res=`eval echo '${'$as_ac_Header'}'`
30649                { echo "$as_me:$LINENO: result: $ac_res" >&5
30650 echo "${ECHO_T}$ac_res" >&6; }
30651 else
30652   # Is the header compilable?
30653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30655 cat >conftest.$ac_ext <<_ACEOF
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 $ac_includes_default
30662 #include <$ac_header>
30663 _ACEOF
30664 rm -f conftest.$ac_objext
30665 if { (ac_try="$ac_compile"
30666 case "(($ac_try" in
30667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668   *) ac_try_echo=$ac_try;;
30669 esac
30670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671   (eval "$ac_compile") 2>conftest.er1
30672   ac_status=$?
30673   grep -v '^ *+' conftest.er1 >conftest.err
30674   rm -f conftest.er1
30675   cat conftest.err >&5
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } &&
30678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30679   { (case "(($ac_try" in
30680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681   *) ac_try_echo=$ac_try;;
30682 esac
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684   (eval "$ac_try") 2>&5
30685   ac_status=$?
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); }; } &&
30688          { ac_try='test -s conftest.$ac_objext'
30689   { (case "(($ac_try" in
30690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30691   *) ac_try_echo=$ac_try;;
30692 esac
30693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694   (eval "$ac_try") 2>&5
30695   ac_status=$?
30696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697   (exit $ac_status); }; }; then
30698   ac_header_compiler=yes
30699 else
30700   echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.$ac_ext >&5
30702
30703         ac_header_compiler=no
30704 fi
30705
30706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30708 echo "${ECHO_T}$ac_header_compiler" >&6; }
30709
30710 # Is the header present?
30711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30713 cat >conftest.$ac_ext <<_ACEOF
30714 /* confdefs.h.  */
30715 _ACEOF
30716 cat confdefs.h >>conftest.$ac_ext
30717 cat >>conftest.$ac_ext <<_ACEOF
30718 /* end confdefs.h.  */
30719 #include <$ac_header>
30720 _ACEOF
30721 if { (ac_try="$ac_cpp conftest.$ac_ext"
30722 case "(($ac_try" in
30723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724   *) ac_try_echo=$ac_try;;
30725 esac
30726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30728   ac_status=$?
30729   grep -v '^ *+' conftest.er1 >conftest.err
30730   rm -f conftest.er1
30731   cat conftest.err >&5
30732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733   (exit $ac_status); } >/dev/null; then
30734   if test -s conftest.err; then
30735     ac_cpp_err=$ac_c_preproc_warn_flag
30736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30737   else
30738     ac_cpp_err=
30739   fi
30740 else
30741   ac_cpp_err=yes
30742 fi
30743 if test -z "$ac_cpp_err"; then
30744   ac_header_preproc=yes
30745 else
30746   echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30748
30749   ac_header_preproc=no
30750 fi
30751
30752 rm -f conftest.err conftest.$ac_ext
30753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30754 echo "${ECHO_T}$ac_header_preproc" >&6; }
30755
30756 # So?  What about this header?
30757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30758   yes:no: )
30759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30763     ac_header_preproc=yes
30764     ;;
30765   no:yes:* )
30766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30778     ( cat <<\_ASBOX
30779 ## ----------------------------------- ##
30780 ## Report this to llvmbugs@cs.uiuc.edu ##
30781 ## ----------------------------------- ##
30782 _ASBOX
30783      ) | sed "s/^/$as_me: WARNING:     /" >&2
30784     ;;
30785 esac
30786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30789   echo $ECHO_N "(cached) $ECHO_C" >&6
30790 else
30791   eval "$as_ac_Header=\$ac_header_preproc"
30792 fi
30793 ac_res=`eval echo '${'$as_ac_Header'}'`
30794                { echo "$as_me:$LINENO: result: $ac_res" >&5
30795 echo "${ECHO_T}$ac_res" >&6; }
30796
30797 fi
30798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30799   cat >>confdefs.h <<_ACEOF
30800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30801 _ACEOF
30802  HAVE_PTHREAD=1
30803
30804 else
30805   HAVE_PTHREAD=0
30806
30807 fi
30808
30809 done
30810
30811 else
30812   HAVE_PTHREAD=0
30813
30814 fi
30815
30816 if test "$llvm_cv_enable_libffi" = "yes" ; then
30817
30818
30819 for ac_header in ffi.h ffi/ffi.h
30820 do
30821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30823   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 fi
30828 ac_res=`eval echo '${'$as_ac_Header'}'`
30829                { echo "$as_me:$LINENO: result: $ac_res" >&5
30830 echo "${ECHO_T}$ac_res" >&6; }
30831 else
30832   # Is the header compilable?
30833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30835 cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841 $ac_includes_default
30842 #include <$ac_header>
30843 _ACEOF
30844 rm -f conftest.$ac_objext
30845 if { (ac_try="$ac_compile"
30846 case "(($ac_try" in
30847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30848   *) ac_try_echo=$ac_try;;
30849 esac
30850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851   (eval "$ac_compile") 2>conftest.er1
30852   ac_status=$?
30853   grep -v '^ *+' conftest.er1 >conftest.err
30854   rm -f conftest.er1
30855   cat conftest.err >&5
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); } &&
30858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30859   { (case "(($ac_try" in
30860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861   *) ac_try_echo=$ac_try;;
30862 esac
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864   (eval "$ac_try") 2>&5
30865   ac_status=$?
30866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867   (exit $ac_status); }; } &&
30868          { ac_try='test -s conftest.$ac_objext'
30869   { (case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_try") 2>&5
30875   ac_status=$?
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); }; }; then
30878   ac_header_compiler=yes
30879 else
30880   echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.$ac_ext >&5
30882
30883         ac_header_compiler=no
30884 fi
30885
30886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30888 echo "${ECHO_T}$ac_header_compiler" >&6; }
30889
30890 # Is the header present?
30891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30893 cat >conftest.$ac_ext <<_ACEOF
30894 /* confdefs.h.  */
30895 _ACEOF
30896 cat confdefs.h >>conftest.$ac_ext
30897 cat >>conftest.$ac_ext <<_ACEOF
30898 /* end confdefs.h.  */
30899 #include <$ac_header>
30900 _ACEOF
30901 if { (ac_try="$ac_cpp conftest.$ac_ext"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30908   ac_status=$?
30909   grep -v '^ *+' conftest.er1 >conftest.err
30910   rm -f conftest.er1
30911   cat conftest.err >&5
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); } >/dev/null; then
30914   if test -s conftest.err; then
30915     ac_cpp_err=$ac_c_preproc_warn_flag
30916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30917   else
30918     ac_cpp_err=
30919   fi
30920 else
30921   ac_cpp_err=yes
30922 fi
30923 if test -z "$ac_cpp_err"; then
30924   ac_header_preproc=yes
30925 else
30926   echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30928
30929   ac_header_preproc=no
30930 fi
30931
30932 rm -f conftest.err conftest.$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30934 echo "${ECHO_T}$ac_header_preproc" >&6; }
30935
30936 # So?  What about this header?
30937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30938   yes:no: )
30939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30943     ac_header_preproc=yes
30944     ;;
30945   no:yes:* )
30946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30958     ( cat <<\_ASBOX
30959 ## ----------------------------------- ##
30960 ## Report this to llvmbugs@cs.uiuc.edu ##
30961 ## ----------------------------------- ##
30962 _ASBOX
30963      ) | sed "s/^/$as_me: WARNING:     /" >&2
30964     ;;
30965 esac
30966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30969   echo $ECHO_N "(cached) $ECHO_C" >&6
30970 else
30971   eval "$as_ac_Header=\$ac_header_preproc"
30972 fi
30973 ac_res=`eval echo '${'$as_ac_Header'}'`
30974                { echo "$as_me:$LINENO: result: $ac_res" >&5
30975 echo "${ECHO_T}$ac_res" >&6; }
30976
30977 fi
30978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30979   cat >>confdefs.h <<_ACEOF
30980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30981 _ACEOF
30982
30983 fi
30984
30985 done
30986
30987 fi
30988
30989
30990
30991   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30992 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30993 if test "${ac_cv_huge_val_sanity+set}" = set; then
30994   echo $ECHO_N "(cached) $ECHO_C" >&6
30995 else
30996
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     CXXFLAGS=-pedantic
31004     if test "$cross_compiling" = yes; then
31005   ac_cv_huge_val_sanity=yes
31006 else
31007   cat >conftest.$ac_ext <<_ACEOF
31008 /* confdefs.h.  */
31009 _ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h.  */
31013 #include <math.h>
31014 int
31015 main ()
31016 {
31017 double x = HUGE_VAL; return x != x;
31018   ;
31019   return 0;
31020 }
31021 _ACEOF
31022 rm -f conftest$ac_exeext
31023 if { (ac_try="$ac_link"
31024 case "(($ac_try" in
31025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026   *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029   (eval "$ac_link") 2>&5
31030   ac_status=$?
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
31042   ac_cv_huge_val_sanity=yes
31043 else
31044   echo "$as_me: program exited with status $ac_status" >&5
31045 echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31047
31048 ( exit $ac_status )
31049 ac_cv_huge_val_sanity=no
31050 fi
31051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31052 fi
31053
31054
31055     ac_ext=c
31056 ac_cpp='$CPP $CPPFLAGS'
31057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31060
31061
31062 fi
31063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31065   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31066
31067
31068 { echo "$as_me:$LINENO: checking for pid_t" >&5
31069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31070 if test "${ac_cv_type_pid_t+set}" = set; then
31071   echo $ECHO_N "(cached) $ECHO_C" >&6
31072 else
31073   cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079 $ac_includes_default
31080 typedef pid_t ac__type_new_;
31081 int
31082 main ()
31083 {
31084 if ((ac__type_new_ *) 0)
31085   return 0;
31086 if (sizeof (ac__type_new_))
31087   return 0;
31088   ;
31089   return 0;
31090 }
31091 _ACEOF
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096   *) ac_try_echo=$ac_try;;
31097 esac
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099   (eval "$ac_compile") 2>conftest.er1
31100   ac_status=$?
31101   grep -v '^ *+' conftest.er1 >conftest.err
31102   rm -f conftest.er1
31103   cat conftest.err >&5
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); } &&
31106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107   { (case "(($ac_try" in
31108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109   *) ac_try_echo=$ac_try;;
31110 esac
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112   (eval "$ac_try") 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; } &&
31116          { ac_try='test -s conftest.$ac_objext'
31117   { (case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_try") 2>&5
31123   ac_status=$?
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); }; }; then
31126   ac_cv_type_pid_t=yes
31127 else
31128   echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.$ac_ext >&5
31130
31131         ac_cv_type_pid_t=no
31132 fi
31133
31134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31135 fi
31136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31138 if test $ac_cv_type_pid_t = yes; then
31139   :
31140 else
31141
31142 cat >>confdefs.h <<_ACEOF
31143 #define pid_t int
31144 _ACEOF
31145
31146 fi
31147
31148 { echo "$as_me:$LINENO: checking for size_t" >&5
31149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31150 if test "${ac_cv_type_size_t+set}" = set; then
31151   echo $ECHO_N "(cached) $ECHO_C" >&6
31152 else
31153   cat >conftest.$ac_ext <<_ACEOF
31154 /* confdefs.h.  */
31155 _ACEOF
31156 cat confdefs.h >>conftest.$ac_ext
31157 cat >>conftest.$ac_ext <<_ACEOF
31158 /* end confdefs.h.  */
31159 $ac_includes_default
31160 typedef size_t ac__type_new_;
31161 int
31162 main ()
31163 {
31164 if ((ac__type_new_ *) 0)
31165   return 0;
31166 if (sizeof (ac__type_new_))
31167   return 0;
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 rm -f conftest.$ac_objext
31173 if { (ac_try="$ac_compile"
31174 case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_compile") 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } &&
31186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; } &&
31196          { ac_try='test -s conftest.$ac_objext'
31197   { (case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_try") 2>&5
31203   ac_status=$?
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); }; }; then
31206   ac_cv_type_size_t=yes
31207 else
31208   echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31210
31211         ac_cv_type_size_t=no
31212 fi
31213
31214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31215 fi
31216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31218 if test $ac_cv_type_size_t = yes; then
31219   :
31220 else
31221
31222 cat >>confdefs.h <<_ACEOF
31223 #define size_t unsigned int
31224 _ACEOF
31225
31226 fi
31227
31228 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31229 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31230 if test "${ac_cv_type_signal+set}" = set; then
31231   echo $ECHO_N "(cached) $ECHO_C" >&6
31232 else
31233   cat >conftest.$ac_ext <<_ACEOF
31234 /* confdefs.h.  */
31235 _ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h.  */
31239 #include <sys/types.h>
31240 #include <signal.h>
31241
31242 int
31243 main ()
31244 {
31245 return *(signal (0, 0)) (0) == 1;
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 rm -f conftest.$ac_objext
31251 if { (ac_try="$ac_compile"
31252 case "(($ac_try" in
31253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254   *) ac_try_echo=$ac_try;;
31255 esac
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257   (eval "$ac_compile") 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265   { (case "(($ac_try" in
31266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267   *) ac_try_echo=$ac_try;;
31268 esac
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270   (eval "$ac_try") 2>&5
31271   ac_status=$?
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); }; } &&
31274          { ac_try='test -s conftest.$ac_objext'
31275   { (case "(($ac_try" in
31276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277   *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280   (eval "$ac_try") 2>&5
31281   ac_status=$?
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); }; }; then
31284   ac_cv_type_signal=int
31285 else
31286   echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31288
31289         ac_cv_type_signal=void
31290 fi
31291
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 fi
31294 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31295 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31296
31297 cat >>confdefs.h <<_ACEOF
31298 #define RETSIGTYPE $ac_cv_type_signal
31299 _ACEOF
31300
31301
31302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31304 if test "${ac_cv_struct_tm+set}" = set; then
31305   echo $ECHO_N "(cached) $ECHO_C" >&6
31306 else
31307   cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h.  */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h.  */
31313 #include <sys/types.h>
31314 #include <time.h>
31315
31316 int
31317 main ()
31318 {
31319 struct tm *tp; tp->tm_sec;
31320   ;
31321   return 0;
31322 }
31323 _ACEOF
31324 rm -f conftest.$ac_objext
31325 if { (ac_try="$ac_compile"
31326 case "(($ac_try" in
31327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328   *) ac_try_echo=$ac_try;;
31329 esac
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331   (eval "$ac_compile") 2>conftest.er1
31332   ac_status=$?
31333   grep -v '^ *+' conftest.er1 >conftest.err
31334   rm -f conftest.er1
31335   cat conftest.err >&5
31336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337   (exit $ac_status); } &&
31338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339   { (case "(($ac_try" in
31340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341   *) ac_try_echo=$ac_try;;
31342 esac
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344   (eval "$ac_try") 2>&5
31345   ac_status=$?
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); }; } &&
31348          { ac_try='test -s conftest.$ac_objext'
31349   { (case "(($ac_try" in
31350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351   *) ac_try_echo=$ac_try;;
31352 esac
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354   (eval "$ac_try") 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; }; then
31358   ac_cv_struct_tm=time.h
31359 else
31360   echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31362
31363         ac_cv_struct_tm=sys/time.h
31364 fi
31365
31366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31367 fi
31368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31370 if test $ac_cv_struct_tm = sys/time.h; then
31371
31372 cat >>confdefs.h <<\_ACEOF
31373 #define TM_IN_SYS_TIME 1
31374 _ACEOF
31375
31376 fi
31377
31378 { echo "$as_me:$LINENO: checking for int64_t" >&5
31379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31380 if test "${ac_cv_type_int64_t+set}" = set; then
31381   echo $ECHO_N "(cached) $ECHO_C" >&6
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 $ac_includes_default
31390 typedef int64_t ac__type_new_;
31391 int
31392 main ()
31393 {
31394 if ((ac__type_new_ *) 0)
31395   return 0;
31396 if (sizeof (ac__type_new_))
31397   return 0;
31398   ;
31399   return 0;
31400 }
31401 _ACEOF
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406   *) ac_try_echo=$ac_try;;
31407 esac
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409   (eval "$ac_compile") 2>conftest.er1
31410   ac_status=$?
31411   grep -v '^ *+' conftest.er1 >conftest.err
31412   rm -f conftest.er1
31413   cat conftest.err >&5
31414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415   (exit $ac_status); } &&
31416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31417   { (case "(($ac_try" in
31418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419   *) ac_try_echo=$ac_try;;
31420 esac
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422   (eval "$ac_try") 2>&5
31423   ac_status=$?
31424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); }; } &&
31426          { ac_try='test -s conftest.$ac_objext'
31427   { (case "(($ac_try" in
31428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429   *) ac_try_echo=$ac_try;;
31430 esac
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432   (eval "$ac_try") 2>&5
31433   ac_status=$?
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); }; }; then
31436   ac_cv_type_int64_t=yes
31437 else
31438   echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441         ac_cv_type_int64_t=no
31442 fi
31443
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31445 fi
31446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31448 if test $ac_cv_type_int64_t = yes; then
31449
31450 cat >>confdefs.h <<_ACEOF
31451 #define HAVE_INT64_T 1
31452 _ACEOF
31453
31454
31455 else
31456   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31457 echo "$as_me: error: Type int64_t required but not found" >&2;}
31458    { (exit 1); exit 1; }; }
31459 fi
31460
31461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31463 if test "${ac_cv_type_uint64_t+set}" = set; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 else
31466   cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h.  */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h.  */
31472 $ac_includes_default
31473 typedef uint64_t ac__type_new_;
31474 int
31475 main ()
31476 {
31477 if ((ac__type_new_ *) 0)
31478   return 0;
31479 if (sizeof (ac__type_new_))
31480   return 0;
31481   ;
31482   return 0;
31483 }
31484 _ACEOF
31485 rm -f conftest.$ac_objext
31486 if { (ac_try="$ac_compile"
31487 case "(($ac_try" in
31488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489   *) ac_try_echo=$ac_try;;
31490 esac
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492   (eval "$ac_compile") 2>conftest.er1
31493   ac_status=$?
31494   grep -v '^ *+' conftest.er1 >conftest.err
31495   rm -f conftest.er1
31496   cat conftest.err >&5
31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498   (exit $ac_status); } &&
31499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500   { (case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_try") 2>&5
31506   ac_status=$?
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); }; } &&
31509          { ac_try='test -s conftest.$ac_objext'
31510   { (case "(($ac_try" in
31511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512   *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515   (eval "$ac_try") 2>&5
31516   ac_status=$?
31517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518   (exit $ac_status); }; }; then
31519   ac_cv_type_uint64_t=yes
31520 else
31521   echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31523
31524         ac_cv_type_uint64_t=no
31525 fi
31526
31527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528 fi
31529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31531 if test $ac_cv_type_uint64_t = yes; then
31532
31533 cat >>confdefs.h <<_ACEOF
31534 #define HAVE_UINT64_T 1
31535 _ACEOF
31536
31537
31538 else
31539   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31541 if test "${ac_cv_type_u_int64_t+set}" = set; then
31542   echo $ECHO_N "(cached) $ECHO_C" >&6
31543 else
31544   cat >conftest.$ac_ext <<_ACEOF
31545 /* confdefs.h.  */
31546 _ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h.  */
31550 $ac_includes_default
31551 typedef u_int64_t ac__type_new_;
31552 int
31553 main ()
31554 {
31555 if ((ac__type_new_ *) 0)
31556   return 0;
31557 if (sizeof (ac__type_new_))
31558   return 0;
31559   ;
31560   return 0;
31561 }
31562 _ACEOF
31563 rm -f conftest.$ac_objext
31564 if { (ac_try="$ac_compile"
31565 case "(($ac_try" in
31566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567   *) ac_try_echo=$ac_try;;
31568 esac
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570   (eval "$ac_compile") 2>conftest.er1
31571   ac_status=$?
31572   grep -v '^ *+' conftest.er1 >conftest.err
31573   rm -f conftest.er1
31574   cat conftest.err >&5
31575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576   (exit $ac_status); } &&
31577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578   { (case "(($ac_try" in
31579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580   *) ac_try_echo=$ac_try;;
31581 esac
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583   (eval "$ac_try") 2>&5
31584   ac_status=$?
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); }; } &&
31587          { ac_try='test -s conftest.$ac_objext'
31588   { (case "(($ac_try" in
31589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590   *) ac_try_echo=$ac_try;;
31591 esac
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593   (eval "$ac_try") 2>&5
31594   ac_status=$?
31595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596   (exit $ac_status); }; }; then
31597   ac_cv_type_u_int64_t=yes
31598 else
31599   echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31601
31602         ac_cv_type_u_int64_t=no
31603 fi
31604
31605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31606 fi
31607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31609 if test $ac_cv_type_u_int64_t = yes; then
31610
31611 cat >>confdefs.h <<_ACEOF
31612 #define HAVE_U_INT64_T 1
31613 _ACEOF
31614
31615
31616 else
31617   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31619    { (exit 1); exit 1; }; }
31620 fi
31621
31622 fi
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31634 do
31635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31639   echo $ECHO_N "(cached) $ECHO_C" >&6
31640 else
31641   cat >conftest.$ac_ext <<_ACEOF
31642 /* confdefs.h.  */
31643 _ACEOF
31644 cat confdefs.h >>conftest.$ac_ext
31645 cat >>conftest.$ac_ext <<_ACEOF
31646 /* end confdefs.h.  */
31647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31649 #define $ac_func innocuous_$ac_func
31650
31651 /* System header to define __stub macros and hopefully few prototypes,
31652     which can conflict with char $ac_func (); below.
31653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31654     <limits.h> exists even on freestanding compilers.  */
31655
31656 #ifdef __STDC__
31657 # include <limits.h>
31658 #else
31659 # include <assert.h>
31660 #endif
31661
31662 #undef $ac_func
31663
31664 /* Override any GCC internal prototype to avoid an error.
31665    Use char because int might match the return type of a GCC
31666    builtin and then its argument prototype would still apply.  */
31667 #ifdef __cplusplus
31668 extern "C"
31669 #endif
31670 char $ac_func ();
31671 /* The GNU C library defines this for functions which it implements
31672     to always fail with ENOSYS.  Some functions are actually named
31673     something starting with __ and the normal name is an alias.  */
31674 #if defined __stub_$ac_func || defined __stub___$ac_func
31675 choke me
31676 #endif
31677
31678 int
31679 main ()
31680 {
31681 return $ac_func ();
31682   ;
31683   return 0;
31684 }
31685 _ACEOF
31686 rm -f conftest.$ac_objext conftest$ac_exeext
31687 if { (ac_try="$ac_link"
31688 case "(($ac_try" in
31689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690   *) ac_try_echo=$ac_try;;
31691 esac
31692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693   (eval "$ac_link") 2>conftest.er1
31694   ac_status=$?
31695   grep -v '^ *+' conftest.er1 >conftest.err
31696   rm -f conftest.er1
31697   cat conftest.err >&5
31698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699   (exit $ac_status); } &&
31700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31701   { (case "(($ac_try" in
31702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703   *) ac_try_echo=$ac_try;;
31704 esac
31705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706   (eval "$ac_try") 2>&5
31707   ac_status=$?
31708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709   (exit $ac_status); }; } &&
31710          { ac_try='test -s conftest$ac_exeext'
31711   { (case "(($ac_try" in
31712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713   *) ac_try_echo=$ac_try;;
31714 esac
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716   (eval "$ac_try") 2>&5
31717   ac_status=$?
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); }; }; then
31720   eval "$as_ac_var=yes"
31721 else
31722   echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31724
31725         eval "$as_ac_var=no"
31726 fi
31727
31728 rm -f core conftest.err conftest.$ac_objext \
31729       conftest$ac_exeext conftest.$ac_ext
31730 fi
31731 ac_res=`eval echo '${'$as_ac_var'}'`
31732                { echo "$as_me:$LINENO: result: $ac_res" >&5
31733 echo "${ECHO_T}$ac_res" >&6; }
31734 if test `eval echo '${'$as_ac_var'}'` = yes; then
31735   cat >>confdefs.h <<_ACEOF
31736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31737 _ACEOF
31738
31739 fi
31740 done
31741
31742
31743
31744
31745
31746 for ac_func in powf fmodf strtof round
31747 do
31748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31752   echo $ECHO_N "(cached) $ECHO_C" >&6
31753 else
31754   cat >conftest.$ac_ext <<_ACEOF
31755 /* confdefs.h.  */
31756 _ACEOF
31757 cat confdefs.h >>conftest.$ac_ext
31758 cat >>conftest.$ac_ext <<_ACEOF
31759 /* end confdefs.h.  */
31760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31762 #define $ac_func innocuous_$ac_func
31763
31764 /* System header to define __stub macros and hopefully few prototypes,
31765     which can conflict with char $ac_func (); below.
31766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31767     <limits.h> exists even on freestanding compilers.  */
31768
31769 #ifdef __STDC__
31770 # include <limits.h>
31771 #else
31772 # include <assert.h>
31773 #endif
31774
31775 #undef $ac_func
31776
31777 /* Override any GCC internal prototype to avoid an error.
31778    Use char because int might match the return type of a GCC
31779    builtin and then its argument prototype would still apply.  */
31780 #ifdef __cplusplus
31781 extern "C"
31782 #endif
31783 char $ac_func ();
31784 /* The GNU C library defines this for functions which it implements
31785     to always fail with ENOSYS.  Some functions are actually named
31786     something starting with __ and the normal name is an alias.  */
31787 #if defined __stub_$ac_func || defined __stub___$ac_func
31788 choke me
31789 #endif
31790
31791 int
31792 main ()
31793 {
31794 return $ac_func ();
31795   ;
31796   return 0;
31797 }
31798 _ACEOF
31799 rm -f conftest.$ac_objext conftest$ac_exeext
31800 if { (ac_try="$ac_link"
31801 case "(($ac_try" in
31802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803   *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806   (eval "$ac_link") 2>conftest.er1
31807   ac_status=$?
31808   grep -v '^ *+' conftest.er1 >conftest.err
31809   rm -f conftest.er1
31810   cat conftest.err >&5
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); } &&
31813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31814   { (case "(($ac_try" in
31815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816   *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819   (eval "$ac_try") 2>&5
31820   ac_status=$?
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); }; } &&
31823          { ac_try='test -s conftest$ac_exeext'
31824   { (case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829   (eval "$ac_try") 2>&5
31830   ac_status=$?
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); }; }; then
31833   eval "$as_ac_var=yes"
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838         eval "$as_ac_var=no"
31839 fi
31840
31841 rm -f core conftest.err conftest.$ac_objext \
31842       conftest$ac_exeext conftest.$ac_ext
31843 fi
31844 ac_res=`eval echo '${'$as_ac_var'}'`
31845                { echo "$as_me:$LINENO: result: $ac_res" >&5
31846 echo "${ECHO_T}$ac_res" >&6; }
31847 if test `eval echo '${'$as_ac_var'}'` = yes; then
31848   cat >>confdefs.h <<_ACEOF
31849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31850 _ACEOF
31851
31852 fi
31853 done
31854
31855
31856
31857
31858
31859
31860 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31861 do
31862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866   echo $ECHO_N "(cached) $ECHO_C" >&6
31867 else
31868   cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31876 #define $ac_func innocuous_$ac_func
31877
31878 /* System header to define __stub macros and hopefully few prototypes,
31879     which can conflict with char $ac_func (); below.
31880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881     <limits.h> exists even on freestanding compilers.  */
31882
31883 #ifdef __STDC__
31884 # include <limits.h>
31885 #else
31886 # include <assert.h>
31887 #endif
31888
31889 #undef $ac_func
31890
31891 /* Override any GCC internal prototype to avoid an error.
31892    Use char because int might match the return type of a GCC
31893    builtin and then its argument prototype would still apply.  */
31894 #ifdef __cplusplus
31895 extern "C"
31896 #endif
31897 char $ac_func ();
31898 /* The GNU C library defines this for functions which it implements
31899     to always fail with ENOSYS.  Some functions are actually named
31900     something starting with __ and the normal name is an alias.  */
31901 #if defined __stub_$ac_func || defined __stub___$ac_func
31902 choke me
31903 #endif
31904
31905 int
31906 main ()
31907 {
31908 return $ac_func ();
31909   ;
31910   return 0;
31911 }
31912 _ACEOF
31913 rm -f conftest.$ac_objext conftest$ac_exeext
31914 if { (ac_try="$ac_link"
31915 case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_link") 2>conftest.er1
31921   ac_status=$?
31922   grep -v '^ *+' conftest.er1 >conftest.err
31923   rm -f conftest.er1
31924   cat conftest.err >&5
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } &&
31927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928   { (case "(($ac_try" in
31929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930   *) ac_try_echo=$ac_try;;
31931 esac
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933   (eval "$ac_try") 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; } &&
31937          { ac_try='test -s conftest$ac_exeext'
31938   { (case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_try") 2>&5
31944   ac_status=$?
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); }; }; then
31947   eval "$as_ac_var=yes"
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952         eval "$as_ac_var=no"
31953 fi
31954
31955 rm -f core conftest.err conftest.$ac_objext \
31956       conftest$ac_exeext conftest.$ac_ext
31957 fi
31958 ac_res=`eval echo '${'$as_ac_var'}'`
31959                { echo "$as_me:$LINENO: result: $ac_res" >&5
31960 echo "${ECHO_T}$ac_res" >&6; }
31961 if test `eval echo '${'$as_ac_var'}'` = yes; then
31962   cat >>confdefs.h <<_ACEOF
31963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964 _ACEOF
31965
31966 fi
31967 done
31968
31969
31970
31971
31972 for ac_func in isatty mkdtemp mkstemp
31973 do
31974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31978   echo $ECHO_N "(cached) $ECHO_C" >&6
31979 else
31980   cat >conftest.$ac_ext <<_ACEOF
31981 /* confdefs.h.  */
31982 _ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h.  */
31986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31988 #define $ac_func innocuous_$ac_func
31989
31990 /* System header to define __stub macros and hopefully few prototypes,
31991     which can conflict with char $ac_func (); below.
31992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31993     <limits.h> exists even on freestanding compilers.  */
31994
31995 #ifdef __STDC__
31996 # include <limits.h>
31997 #else
31998 # include <assert.h>
31999 #endif
32000
32001 #undef $ac_func
32002
32003 /* Override any GCC internal prototype to avoid an error.
32004    Use char because int might match the return type of a GCC
32005    builtin and then its argument prototype would still apply.  */
32006 #ifdef __cplusplus
32007 extern "C"
32008 #endif
32009 char $ac_func ();
32010 /* The GNU C library defines this for functions which it implements
32011     to always fail with ENOSYS.  Some functions are actually named
32012     something starting with __ and the normal name is an alias.  */
32013 #if defined __stub_$ac_func || defined __stub___$ac_func
32014 choke me
32015 #endif
32016
32017 int
32018 main ()
32019 {
32020 return $ac_func ();
32021   ;
32022   return 0;
32023 }
32024 _ACEOF
32025 rm -f conftest.$ac_objext conftest$ac_exeext
32026 if { (ac_try="$ac_link"
32027 case "(($ac_try" in
32028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029   *) ac_try_echo=$ac_try;;
32030 esac
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032   (eval "$ac_link") 2>conftest.er1
32033   ac_status=$?
32034   grep -v '^ *+' conftest.er1 >conftest.err
32035   rm -f conftest.er1
32036   cat conftest.err >&5
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); } &&
32039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32040   { (case "(($ac_try" in
32041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042   *) ac_try_echo=$ac_try;;
32043 esac
32044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045   (eval "$ac_try") 2>&5
32046   ac_status=$?
32047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048   (exit $ac_status); }; } &&
32049          { ac_try='test -s conftest$ac_exeext'
32050   { (case "(($ac_try" in
32051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052   *) ac_try_echo=$ac_try;;
32053 esac
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055   (eval "$ac_try") 2>&5
32056   ac_status=$?
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); }; }; then
32059   eval "$as_ac_var=yes"
32060 else
32061   echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.$ac_ext >&5
32063
32064         eval "$as_ac_var=no"
32065 fi
32066
32067 rm -f core conftest.err conftest.$ac_objext \
32068       conftest$ac_exeext conftest.$ac_ext
32069 fi
32070 ac_res=`eval echo '${'$as_ac_var'}'`
32071                { echo "$as_me:$LINENO: result: $ac_res" >&5
32072 echo "${ECHO_T}$ac_res" >&6; }
32073 if test `eval echo '${'$as_ac_var'}'` = yes; then
32074   cat >>confdefs.h <<_ACEOF
32075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32076 _ACEOF
32077
32078 fi
32079 done
32080
32081
32082
32083
32084
32085
32086 for ac_func in mktemp realpath sbrk setrlimit strdup
32087 do
32088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32092   echo $ECHO_N "(cached) $ECHO_C" >&6
32093 else
32094   cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32102 #define $ac_func innocuous_$ac_func
32103
32104 /* System header to define __stub macros and hopefully few prototypes,
32105     which can conflict with char $ac_func (); below.
32106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107     <limits.h> exists even on freestanding compilers.  */
32108
32109 #ifdef __STDC__
32110 # include <limits.h>
32111 #else
32112 # include <assert.h>
32113 #endif
32114
32115 #undef $ac_func
32116
32117 /* Override any GCC internal prototype to avoid an error.
32118    Use char because int might match the return type of a GCC
32119    builtin and then its argument prototype would still apply.  */
32120 #ifdef __cplusplus
32121 extern "C"
32122 #endif
32123 char $ac_func ();
32124 /* The GNU C library defines this for functions which it implements
32125     to always fail with ENOSYS.  Some functions are actually named
32126     something starting with __ and the normal name is an alias.  */
32127 #if defined __stub_$ac_func || defined __stub___$ac_func
32128 choke me
32129 #endif
32130
32131 int
32132 main ()
32133 {
32134 return $ac_func ();
32135   ;
32136   return 0;
32137 }
32138 _ACEOF
32139 rm -f conftest.$ac_objext conftest$ac_exeext
32140 if { (ac_try="$ac_link"
32141 case "(($ac_try" in
32142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143   *) ac_try_echo=$ac_try;;
32144 esac
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146   (eval "$ac_link") 2>conftest.er1
32147   ac_status=$?
32148   grep -v '^ *+' conftest.er1 >conftest.err
32149   rm -f conftest.er1
32150   cat conftest.err >&5
32151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152   (exit $ac_status); } &&
32153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154   { (case "(($ac_try" in
32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156   *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159   (eval "$ac_try") 2>&5
32160   ac_status=$?
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); }; } &&
32163          { ac_try='test -s conftest$ac_exeext'
32164   { (case "(($ac_try" in
32165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166   *) ac_try_echo=$ac_try;;
32167 esac
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169   (eval "$ac_try") 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; }; then
32173   eval "$as_ac_var=yes"
32174 else
32175   echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32177
32178         eval "$as_ac_var=no"
32179 fi
32180
32181 rm -f core conftest.err conftest.$ac_objext \
32182       conftest$ac_exeext conftest.$ac_ext
32183 fi
32184 ac_res=`eval echo '${'$as_ac_var'}'`
32185                { echo "$as_me:$LINENO: result: $ac_res" >&5
32186 echo "${ECHO_T}$ac_res" >&6; }
32187 if test `eval echo '${'$as_ac_var'}'` = yes; then
32188   cat >>confdefs.h <<_ACEOF
32189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32190 _ACEOF
32191
32192 fi
32193 done
32194
32195
32196
32197
32198
32199 for ac_func in strerror strerror_r strerror_s setenv
32200 do
32201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32205   echo $ECHO_N "(cached) $ECHO_C" >&6
32206 else
32207   cat >conftest.$ac_ext <<_ACEOF
32208 /* confdefs.h.  */
32209 _ACEOF
32210 cat confdefs.h >>conftest.$ac_ext
32211 cat >>conftest.$ac_ext <<_ACEOF
32212 /* end confdefs.h.  */
32213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32215 #define $ac_func innocuous_$ac_func
32216
32217 /* System header to define __stub macros and hopefully few prototypes,
32218     which can conflict with char $ac_func (); below.
32219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32220     <limits.h> exists even on freestanding compilers.  */
32221
32222 #ifdef __STDC__
32223 # include <limits.h>
32224 #else
32225 # include <assert.h>
32226 #endif
32227
32228 #undef $ac_func
32229
32230 /* Override any GCC internal prototype to avoid an error.
32231    Use char because int might match the return type of a GCC
32232    builtin and then its argument prototype would still apply.  */
32233 #ifdef __cplusplus
32234 extern "C"
32235 #endif
32236 char $ac_func ();
32237 /* The GNU C library defines this for functions which it implements
32238     to always fail with ENOSYS.  Some functions are actually named
32239     something starting with __ and the normal name is an alias.  */
32240 #if defined __stub_$ac_func || defined __stub___$ac_func
32241 choke me
32242 #endif
32243
32244 int
32245 main ()
32246 {
32247 return $ac_func ();
32248   ;
32249   return 0;
32250 }
32251 _ACEOF
32252 rm -f conftest.$ac_objext conftest$ac_exeext
32253 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32260   ac_status=$?
32261   grep -v '^ *+' conftest.er1 >conftest.err
32262   rm -f conftest.er1
32263   cat conftest.err >&5
32264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265   (exit $ac_status); } &&
32266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32267   { (case "(($ac_try" in
32268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269   *) ac_try_echo=$ac_try;;
32270 esac
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272   (eval "$ac_try") 2>&5
32273   ac_status=$?
32274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275   (exit $ac_status); }; } &&
32276          { ac_try='test -s conftest$ac_exeext'
32277   { (case "(($ac_try" in
32278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279   *) ac_try_echo=$ac_try;;
32280 esac
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282   (eval "$ac_try") 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; }; then
32286   eval "$as_ac_var=yes"
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.$ac_ext >&5
32290
32291         eval "$as_ac_var=no"
32292 fi
32293
32294 rm -f core conftest.err conftest.$ac_objext \
32295       conftest$ac_exeext conftest.$ac_ext
32296 fi
32297 ac_res=`eval echo '${'$as_ac_var'}'`
32298                { echo "$as_me:$LINENO: result: $ac_res" >&5
32299 echo "${ECHO_T}$ac_res" >&6; }
32300 if test `eval echo '${'$as_ac_var'}'` = yes; then
32301   cat >>confdefs.h <<_ACEOF
32302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32303 _ACEOF
32304
32305 fi
32306 done
32307
32308
32309
32310
32311
32312 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32313 do
32314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32318   echo $ECHO_N "(cached) $ECHO_C" >&6
32319 else
32320   cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h.  */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h.  */
32326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32328 #define $ac_func innocuous_$ac_func
32329
32330 /* System header to define __stub macros and hopefully few prototypes,
32331     which can conflict with char $ac_func (); below.
32332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32333     <limits.h> exists even on freestanding compilers.  */
32334
32335 #ifdef __STDC__
32336 # include <limits.h>
32337 #else
32338 # include <assert.h>
32339 #endif
32340
32341 #undef $ac_func
32342
32343 /* Override any GCC internal prototype to avoid an error.
32344    Use char because int might match the return type of a GCC
32345    builtin and then its argument prototype would still apply.  */
32346 #ifdef __cplusplus
32347 extern "C"
32348 #endif
32349 char $ac_func ();
32350 /* The GNU C library defines this for functions which it implements
32351     to always fail with ENOSYS.  Some functions are actually named
32352     something starting with __ and the normal name is an alias.  */
32353 #if defined __stub_$ac_func || defined __stub___$ac_func
32354 choke me
32355 #endif
32356
32357 int
32358 main ()
32359 {
32360 return $ac_func ();
32361   ;
32362   return 0;
32363 }
32364 _ACEOF
32365 rm -f conftest.$ac_objext conftest$ac_exeext
32366 if { (ac_try="$ac_link"
32367 case "(($ac_try" in
32368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32369   *) ac_try_echo=$ac_try;;
32370 esac
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372   (eval "$ac_link") 2>conftest.er1
32373   ac_status=$?
32374   grep -v '^ *+' conftest.er1 >conftest.err
32375   rm -f conftest.er1
32376   cat conftest.err >&5
32377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378   (exit $ac_status); } &&
32379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32380   { (case "(($ac_try" in
32381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382   *) ac_try_echo=$ac_try;;
32383 esac
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385   (eval "$ac_try") 2>&5
32386   ac_status=$?
32387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388   (exit $ac_status); }; } &&
32389          { ac_try='test -s conftest$ac_exeext'
32390   { (case "(($ac_try" in
32391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32392   *) ac_try_echo=$ac_try;;
32393 esac
32394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395   (eval "$ac_try") 2>&5
32396   ac_status=$?
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); }; }; then
32399   eval "$as_ac_var=yes"
32400 else
32401   echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32403
32404         eval "$as_ac_var=no"
32405 fi
32406
32407 rm -f core conftest.err conftest.$ac_objext \
32408       conftest$ac_exeext conftest.$ac_ext
32409 fi
32410 ac_res=`eval echo '${'$as_ac_var'}'`
32411                { echo "$as_me:$LINENO: result: $ac_res" >&5
32412 echo "${ECHO_T}$ac_res" >&6; }
32413 if test `eval echo '${'$as_ac_var'}'` = yes; then
32414   cat >>confdefs.h <<_ACEOF
32415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32416 _ACEOF
32417
32418 fi
32419 done
32420
32421
32422
32423
32424
32425 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32426 do
32427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433   cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32441 #define $ac_func innocuous_$ac_func
32442
32443 /* System header to define __stub macros and hopefully few prototypes,
32444     which can conflict with char $ac_func (); below.
32445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32446     <limits.h> exists even on freestanding compilers.  */
32447
32448 #ifdef __STDC__
32449 # include <limits.h>
32450 #else
32451 # include <assert.h>
32452 #endif
32453
32454 #undef $ac_func
32455
32456 /* Override any GCC internal prototype to avoid an error.
32457    Use char because int might match the return type of a GCC
32458    builtin and then its argument prototype would still apply.  */
32459 #ifdef __cplusplus
32460 extern "C"
32461 #endif
32462 char $ac_func ();
32463 /* The GNU C library defines this for functions which it implements
32464     to always fail with ENOSYS.  Some functions are actually named
32465     something starting with __ and the normal name is an alias.  */
32466 #if defined __stub_$ac_func || defined __stub___$ac_func
32467 choke me
32468 #endif
32469
32470 int
32471 main ()
32472 {
32473 return $ac_func ();
32474   ;
32475   return 0;
32476 }
32477 _ACEOF
32478 rm -f conftest.$ac_objext conftest$ac_exeext
32479 if { (ac_try="$ac_link"
32480 case "(($ac_try" in
32481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482   *) ac_try_echo=$ac_try;;
32483 esac
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485   (eval "$ac_link") 2>conftest.er1
32486   ac_status=$?
32487   grep -v '^ *+' conftest.er1 >conftest.err
32488   rm -f conftest.er1
32489   cat conftest.err >&5
32490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491   (exit $ac_status); } &&
32492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32493   { (case "(($ac_try" in
32494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32495   *) ac_try_echo=$ac_try;;
32496 esac
32497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32498   (eval "$ac_try") 2>&5
32499   ac_status=$?
32500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501   (exit $ac_status); }; } &&
32502          { ac_try='test -s conftest$ac_exeext'
32503   { (case "(($ac_try" in
32504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505   *) ac_try_echo=$ac_try;;
32506 esac
32507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508   (eval "$ac_try") 2>&5
32509   ac_status=$?
32510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); }; }; then
32512   eval "$as_ac_var=yes"
32513 else
32514   echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517         eval "$as_ac_var=no"
32518 fi
32519
32520 rm -f core conftest.err conftest.$ac_objext \
32521       conftest$ac_exeext conftest.$ac_ext
32522 fi
32523 ac_res=`eval echo '${'$as_ac_var'}'`
32524                { echo "$as_me:$LINENO: result: $ac_res" >&5
32525 echo "${ECHO_T}$ac_res" >&6; }
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527   cat >>confdefs.h <<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 _ACEOF
32530
32531 fi
32532 done
32533
32534 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32535 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32536 if test "${llvm_cv_c_printf_a+set}" = set; then
32537   echo $ECHO_N "(cached) $ECHO_C" >&6
32538 else
32539   ac_ext=c
32540 ac_cpp='$CPP $CPPFLAGS'
32541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32544
32545  if test "$cross_compiling" = yes; then
32546   llvmac_cv_c_printf_a=no
32547 else
32548   cat >conftest.$ac_ext <<_ACEOF
32549
32550   /* confdefs.h.  */
32551 _ACEOF
32552 cat confdefs.h >>conftest.$ac_ext
32553 cat >>conftest.$ac_ext <<_ACEOF
32554 /* end confdefs.h.  */
32555
32556 #include <stdio.h>
32557 #include <stdlib.h>
32558
32559 int
32560 main ()
32561 {
32562
32563 volatile double A, B;
32564 char Buffer[100];
32565 A = 1;
32566 A /= 10.0;
32567 sprintf(Buffer, "%a", A);
32568 B = atof(Buffer);
32569 if (A != B)
32570   return (1);
32571 if (A != 0x1.999999999999ap-4)
32572   return (1);
32573 return (0);
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest$ac_exeext
32579 if { (ac_try="$ac_link"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_link") 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32589   { (case "(($ac_try" in
32590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591   *) ac_try_echo=$ac_try;;
32592 esac
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594   (eval "$ac_try") 2>&5
32595   ac_status=$?
32596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597   (exit $ac_status); }; }; then
32598   llvm_cv_c_printf_a=yes
32599 else
32600   echo "$as_me: program exited with status $ac_status" >&5
32601 echo "$as_me: failed program was:" >&5
32602 sed 's/^/| /' conftest.$ac_ext >&5
32603
32604 ( exit $ac_status )
32605 llvmac_cv_c_printf_a=no
32606 fi
32607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32608 fi
32609
32610
32611  ac_ext=c
32612 ac_cpp='$CPP $CPPFLAGS'
32613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32616
32617 fi
32618 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32619 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32620  if test "$llvm_cv_c_printf_a" = "yes"; then
32621
32622 cat >>confdefs.h <<\_ACEOF
32623 #define HAVE_PRINTF_A 1
32624 _ACEOF
32625
32626  fi
32627
32628 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32629 # for constant arguments.  Useless!
32630 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32631 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32632 if test "${ac_cv_working_alloca_h+set}" = set; then
32633   echo $ECHO_N "(cached) $ECHO_C" >&6
32634 else
32635   cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641 #include <alloca.h>
32642 int
32643 main ()
32644 {
32645 char *p = (char *) alloca (2 * sizeof (int));
32646                           if (p) return 0;
32647   ;
32648   return 0;
32649 }
32650 _ACEOF
32651 rm -f conftest.$ac_objext conftest$ac_exeext
32652 if { (ac_try="$ac_link"
32653 case "(($ac_try" in
32654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32655   *) ac_try_echo=$ac_try;;
32656 esac
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658   (eval "$ac_link") 2>conftest.er1
32659   ac_status=$?
32660   grep -v '^ *+' conftest.er1 >conftest.err
32661   rm -f conftest.er1
32662   cat conftest.err >&5
32663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664   (exit $ac_status); } &&
32665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32666   { (case "(($ac_try" in
32667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668   *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671   (eval "$ac_try") 2>&5
32672   ac_status=$?
32673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674   (exit $ac_status); }; } &&
32675          { ac_try='test -s conftest$ac_exeext'
32676   { (case "(($ac_try" in
32677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32678   *) ac_try_echo=$ac_try;;
32679 esac
32680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681   (eval "$ac_try") 2>&5
32682   ac_status=$?
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); }; }; then
32685   ac_cv_working_alloca_h=yes
32686 else
32687   echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32689
32690         ac_cv_working_alloca_h=no
32691 fi
32692
32693 rm -f core conftest.err conftest.$ac_objext \
32694       conftest$ac_exeext conftest.$ac_ext
32695 fi
32696 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32697 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32698 if test $ac_cv_working_alloca_h = yes; then
32699
32700 cat >>confdefs.h <<\_ACEOF
32701 #define HAVE_ALLOCA_H 1
32702 _ACEOF
32703
32704 fi
32705
32706 { echo "$as_me:$LINENO: checking for alloca" >&5
32707 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32708 if test "${ac_cv_func_alloca_works+set}" = set; then
32709   echo $ECHO_N "(cached) $ECHO_C" >&6
32710 else
32711   cat >conftest.$ac_ext <<_ACEOF
32712 /* confdefs.h.  */
32713 _ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h.  */
32717 #ifdef __GNUC__
32718 # define alloca __builtin_alloca
32719 #else
32720 # ifdef _MSC_VER
32721 #  include <malloc.h>
32722 #  define alloca _alloca
32723 # else
32724 #  if HAVE_ALLOCA_H
32725 #   include <alloca.h>
32726 #  else
32727 #   ifdef _AIX
32728  #pragma alloca
32729 #   else
32730 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32731 char *alloca ();
32732 #    endif
32733 #   endif
32734 #  endif
32735 # endif
32736 #endif
32737
32738 int
32739 main ()
32740 {
32741 char *p = (char *) alloca (1);
32742                                     if (p) return 0;
32743   ;
32744   return 0;
32745 }
32746 _ACEOF
32747 rm -f conftest.$ac_objext conftest$ac_exeext
32748 if { (ac_try="$ac_link"
32749 case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_link") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } &&
32761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32762   { (case "(($ac_try" in
32763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764   *) ac_try_echo=$ac_try;;
32765 esac
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767   (eval "$ac_try") 2>&5
32768   ac_status=$?
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); }; } &&
32771          { ac_try='test -s conftest$ac_exeext'
32772   { (case "(($ac_try" in
32773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774   *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777   (eval "$ac_try") 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   ac_cv_func_alloca_works=yes
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786         ac_cv_func_alloca_works=no
32787 fi
32788
32789 rm -f core conftest.err conftest.$ac_objext \
32790       conftest$ac_exeext conftest.$ac_ext
32791 fi
32792 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32793 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32794
32795 if test $ac_cv_func_alloca_works = yes; then
32796
32797 cat >>confdefs.h <<\_ACEOF
32798 #define HAVE_ALLOCA 1
32799 _ACEOF
32800
32801 else
32802   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32803 # that cause trouble.  Some versions do not even contain alloca or
32804 # contain a buggy version.  If you still want to use their alloca,
32805 # use ar to extract alloca.o from them instead of compiling alloca.c.
32806
32807 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32808
32809 cat >>confdefs.h <<\_ACEOF
32810 #define C_ALLOCA 1
32811 _ACEOF
32812
32813
32814 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32815 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32816 if test "${ac_cv_os_cray+set}" = set; then
32817   echo $ECHO_N "(cached) $ECHO_C" >&6
32818 else
32819   cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825 #if defined CRAY && ! defined CRAY2
32826 webecray
32827 #else
32828 wenotbecray
32829 #endif
32830
32831 _ACEOF
32832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32833   $EGREP "webecray" >/dev/null 2>&1; then
32834   ac_cv_os_cray=yes
32835 else
32836   ac_cv_os_cray=no
32837 fi
32838 rm -f conftest*
32839
32840 fi
32841 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32842 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32843 if test $ac_cv_os_cray = yes; then
32844   for ac_func in _getb67 GETB67 getb67; do
32845     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32849   echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32859 #define $ac_func innocuous_$ac_func
32860
32861 /* System header to define __stub macros and hopefully few prototypes,
32862     which can conflict with char $ac_func (); below.
32863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32864     <limits.h> exists even on freestanding compilers.  */
32865
32866 #ifdef __STDC__
32867 # include <limits.h>
32868 #else
32869 # include <assert.h>
32870 #endif
32871
32872 #undef $ac_func
32873
32874 /* Override any GCC internal prototype to avoid an error.
32875    Use char because int might match the return type of a GCC
32876    builtin and then its argument prototype would still apply.  */
32877 #ifdef __cplusplus
32878 extern "C"
32879 #endif
32880 char $ac_func ();
32881 /* The GNU C library defines this for functions which it implements
32882     to always fail with ENOSYS.  Some functions are actually named
32883     something starting with __ and the normal name is an alias.  */
32884 #if defined __stub_$ac_func || defined __stub___$ac_func
32885 choke me
32886 #endif
32887
32888 int
32889 main ()
32890 {
32891 return $ac_func ();
32892   ;
32893   return 0;
32894 }
32895 _ACEOF
32896 rm -f conftest.$ac_objext conftest$ac_exeext
32897 if { (ac_try="$ac_link"
32898 case "(($ac_try" in
32899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900   *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903   (eval "$ac_link") 2>conftest.er1
32904   ac_status=$?
32905   grep -v '^ *+' conftest.er1 >conftest.err
32906   rm -f conftest.er1
32907   cat conftest.err >&5
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); } &&
32910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911   { (case "(($ac_try" in
32912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913   *) ac_try_echo=$ac_try;;
32914 esac
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916   (eval "$ac_try") 2>&5
32917   ac_status=$?
32918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919   (exit $ac_status); }; } &&
32920          { ac_try='test -s conftest$ac_exeext'
32921   { (case "(($ac_try" in
32922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923   *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926   (eval "$ac_try") 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; }; then
32930   eval "$as_ac_var=yes"
32931 else
32932   echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32934
32935         eval "$as_ac_var=no"
32936 fi
32937
32938 rm -f core conftest.err conftest.$ac_objext \
32939       conftest$ac_exeext conftest.$ac_ext
32940 fi
32941 ac_res=`eval echo '${'$as_ac_var'}'`
32942                { echo "$as_me:$LINENO: result: $ac_res" >&5
32943 echo "${ECHO_T}$ac_res" >&6; }
32944 if test `eval echo '${'$as_ac_var'}'` = yes; then
32945
32946 cat >>confdefs.h <<_ACEOF
32947 #define CRAY_STACKSEG_END $ac_func
32948 _ACEOF
32949
32950     break
32951 fi
32952
32953   done
32954 fi
32955
32956 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32957 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32958 if test "${ac_cv_c_stack_direction+set}" = set; then
32959   echo $ECHO_N "(cached) $ECHO_C" >&6
32960 else
32961   if test "$cross_compiling" = yes; then
32962   ac_cv_c_stack_direction=0
32963 else
32964   cat >conftest.$ac_ext <<_ACEOF
32965 /* confdefs.h.  */
32966 _ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h.  */
32970 $ac_includes_default
32971 int
32972 find_stack_direction ()
32973 {
32974   static char *addr = 0;
32975   auto char dummy;
32976   if (addr == 0)
32977     {
32978       addr = &dummy;
32979       return find_stack_direction ();
32980     }
32981   else
32982     return (&dummy > addr) ? 1 : -1;
32983 }
32984
32985 int
32986 main ()
32987 {
32988   return find_stack_direction () < 0;
32989 }
32990 _ACEOF
32991 rm -f conftest$ac_exeext
32992 if { (ac_try="$ac_link"
32993 case "(($ac_try" in
32994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995   *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998   (eval "$ac_link") 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33002   { (case "(($ac_try" in
33003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004   *) ac_try_echo=$ac_try;;
33005 esac
33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007   (eval "$ac_try") 2>&5
33008   ac_status=$?
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); }; }; then
33011   ac_cv_c_stack_direction=1
33012 else
33013   echo "$as_me: program exited with status $ac_status" >&5
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33016
33017 ( exit $ac_status )
33018 ac_cv_c_stack_direction=-1
33019 fi
33020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33021 fi
33022
33023
33024 fi
33025 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33026 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33027
33028 cat >>confdefs.h <<_ACEOF
33029 #define STACK_DIRECTION $ac_cv_c_stack_direction
33030 _ACEOF
33031
33032
33033 fi
33034
33035
33036 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33037 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33038 if test "${ac_cv_func_rand48+set}" = set; then
33039   echo $ECHO_N "(cached) $ECHO_C" >&6
33040 else
33041   ac_ext=cpp
33042 ac_cpp='$CXXCPP $CPPFLAGS'
33043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33046
33047    cat >conftest.$ac_ext <<_ACEOF
33048 /* confdefs.h.  */
33049 _ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h.  */
33053 #include <stdlib.h>
33054 int
33055 main ()
33056 {
33057 srand48(0);lrand48();drand48();
33058   ;
33059   return 0;
33060 }
33061 _ACEOF
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33066   *) ac_try_echo=$ac_try;;
33067 esac
33068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069   (eval "$ac_compile") 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } &&
33076          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33077   { (case "(($ac_try" in
33078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33079   *) ac_try_echo=$ac_try;;
33080 esac
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082   (eval "$ac_try") 2>&5
33083   ac_status=$?
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); }; } &&
33086          { ac_try='test -s conftest.$ac_objext'
33087   { (case "(($ac_try" in
33088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089   *) ac_try_echo=$ac_try;;
33090 esac
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092   (eval "$ac_try") 2>&5
33093   ac_status=$?
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); }; }; then
33096   ac_cv_func_rand48=yes
33097 else
33098   echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.$ac_ext >&5
33100
33101         ac_cv_func_rand48=no
33102 fi
33103
33104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33105   ac_ext=c
33106 ac_cpp='$CPP $CPPFLAGS'
33107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33110
33111 fi
33112 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33113 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33114
33115 if test "$ac_cv_func_rand48" = "yes" ; then
33116
33117 cat >>confdefs.h <<\_ACEOF
33118 #define HAVE_RAND48 1
33119 _ACEOF
33120
33121 fi
33122
33123
33124 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33125 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33126 if test "${ac_cv_cxx_namespaces+set}" = set; then
33127   echo $ECHO_N "(cached) $ECHO_C" >&6
33128 else
33129   ac_ext=cpp
33130 ac_cpp='$CXXCPP $CPPFLAGS'
33131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33134
33135  cat >conftest.$ac_ext <<_ACEOF
33136 /* confdefs.h.  */
33137 _ACEOF
33138 cat confdefs.h >>conftest.$ac_ext
33139 cat >>conftest.$ac_ext <<_ACEOF
33140 /* end confdefs.h.  */
33141 namespace Outer { namespace Inner { int i = 0; }}
33142 int
33143 main ()
33144 {
33145 using namespace Outer::Inner; return i;
33146   ;
33147   return 0;
33148 }
33149 _ACEOF
33150 rm -f conftest.$ac_objext
33151 if { (ac_try="$ac_compile"
33152 case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157   (eval "$ac_compile") 2>conftest.er1
33158   ac_status=$?
33159   grep -v '^ *+' conftest.er1 >conftest.err
33160   rm -f conftest.er1
33161   cat conftest.err >&5
33162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163   (exit $ac_status); } &&
33164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33165   { (case "(($ac_try" in
33166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167   *) ac_try_echo=$ac_try;;
33168 esac
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170   (eval "$ac_try") 2>&5
33171   ac_status=$?
33172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173   (exit $ac_status); }; } &&
33174          { ac_try='test -s conftest.$ac_objext'
33175   { (case "(($ac_try" in
33176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33177   *) ac_try_echo=$ac_try;;
33178 esac
33179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180   (eval "$ac_try") 2>&5
33181   ac_status=$?
33182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183   (exit $ac_status); }; }; then
33184   ac_cv_cxx_namespaces=yes
33185 else
33186   echo "$as_me: failed program was:" >&5
33187 sed 's/^/| /' conftest.$ac_ext >&5
33188
33189         ac_cv_cxx_namespaces=no
33190 fi
33191
33192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33193  ac_ext=c
33194 ac_cpp='$CPP $CPPFLAGS'
33195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33198
33199
33200 fi
33201 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33202 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33203 if test "$ac_cv_cxx_namespaces" = yes; then
33204
33205 cat >>confdefs.h <<\_ACEOF
33206 #define HAVE_NAMESPACES
33207 _ACEOF
33208
33209 fi
33210
33211 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33212 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33213 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33214   echo $ECHO_N "(cached) $ECHO_C" >&6
33215 else
33216
33217   ac_ext=cpp
33218 ac_cpp='$CXXCPP $CPPFLAGS'
33219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33222
33223   cat >conftest.$ac_ext <<_ACEOF
33224 /* confdefs.h.  */
33225 _ACEOF
33226 cat confdefs.h >>conftest.$ac_ext
33227 cat >>conftest.$ac_ext <<_ACEOF
33228 /* end confdefs.h.  */
33229 #include <iterator>
33230 #ifdef HAVE_NAMESPACES
33231 using namespace std;
33232 #endif
33233 int
33234 main ()
33235 {
33236 iterator<int,int,int> t; return 0;
33237   ;
33238   return 0;
33239 }
33240 _ACEOF
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245   *) ac_try_echo=$ac_try;;
33246 esac
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248   (eval "$ac_compile") 2>conftest.er1
33249   ac_status=$?
33250   grep -v '^ *+' conftest.er1 >conftest.err
33251   rm -f conftest.er1
33252   cat conftest.err >&5
33253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254   (exit $ac_status); } &&
33255          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256   { (case "(($ac_try" in
33257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258   *) ac_try_echo=$ac_try;;
33259 esac
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261   (eval "$ac_try") 2>&5
33262   ac_status=$?
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); }; } &&
33265          { ac_try='test -s conftest.$ac_objext'
33266   { (case "(($ac_try" in
33267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268   *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271   (eval "$ac_try") 2>&5
33272   ac_status=$?
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); }; }; then
33275   ac_cv_cxx_have_std_iterator=yes
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280         ac_cv_cxx_have_std_iterator=no
33281 fi
33282
33283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33284   ac_ext=c
33285 ac_cpp='$CPP $CPPFLAGS'
33286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33289
33290
33291 fi
33292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33293 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33294 if test "$ac_cv_cxx_have_std_iterator" = yes
33295 then
33296
33297 cat >>confdefs.h <<\_ACEOF
33298 #define HAVE_STD_ITERATOR 1
33299 _ACEOF
33300
33301 else
33302
33303 cat >>confdefs.h <<\_ACEOF
33304 #define HAVE_STD_ITERATOR 0
33305 _ACEOF
33306
33307 fi
33308
33309 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33310 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33311 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33312   echo $ECHO_N "(cached) $ECHO_C" >&6
33313 else
33314
33315   ac_ext=cpp
33316 ac_cpp='$CXXCPP $CPPFLAGS'
33317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33320
33321   cat >conftest.$ac_ext <<_ACEOF
33322 /* confdefs.h.  */
33323 _ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h.  */
33327 #include <iterator>
33328 #ifdef HAVE_NAMESPACES
33329 using namespace std;
33330 #endif
33331 int
33332 main ()
33333 {
33334 bidirectional_iterator<int,int> t; return 0;
33335   ;
33336   return 0;
33337 }
33338 _ACEOF
33339 rm -f conftest.$ac_objext
33340 if { (ac_try="$ac_compile"
33341 case "(($ac_try" in
33342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33343   *) ac_try_echo=$ac_try;;
33344 esac
33345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33346   (eval "$ac_compile") 2>conftest.er1
33347   ac_status=$?
33348   grep -v '^ *+' conftest.er1 >conftest.err
33349   rm -f conftest.er1
33350   cat conftest.err >&5
33351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352   (exit $ac_status); } &&
33353          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33354   { (case "(($ac_try" in
33355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33356   *) ac_try_echo=$ac_try;;
33357 esac
33358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33359   (eval "$ac_try") 2>&5
33360   ac_status=$?
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); }; } &&
33363          { ac_try='test -s conftest.$ac_objext'
33364   { (case "(($ac_try" in
33365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366   *) ac_try_echo=$ac_try;;
33367 esac
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369   (eval "$ac_try") 2>&5
33370   ac_status=$?
33371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372   (exit $ac_status); }; }; then
33373   ac_cv_cxx_have_bi_iterator=yes
33374 else
33375   echo "$as_me: failed program was:" >&5
33376 sed 's/^/| /' conftest.$ac_ext >&5
33377
33378         ac_cv_cxx_have_bi_iterator=no
33379 fi
33380
33381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33382   ac_ext=c
33383 ac_cpp='$CPP $CPPFLAGS'
33384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33387
33388
33389 fi
33390 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33391 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33392 if test "$ac_cv_cxx_have_bi_iterator" = yes
33393 then
33394
33395 cat >>confdefs.h <<\_ACEOF
33396 #define HAVE_BI_ITERATOR 1
33397 _ACEOF
33398
33399 else
33400
33401 cat >>confdefs.h <<\_ACEOF
33402 #define HAVE_BI_ITERATOR 0
33403 _ACEOF
33404
33405 fi
33406
33407 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33408 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33409 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33410   echo $ECHO_N "(cached) $ECHO_C" >&6
33411 else
33412
33413   ac_ext=cpp
33414 ac_cpp='$CXXCPP $CPPFLAGS'
33415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33418
33419   cat >conftest.$ac_ext <<_ACEOF
33420 /* confdefs.h.  */
33421 _ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h.  */
33425 #include <iterator>
33426 #ifdef HAVE_NAMESPACES
33427 using namespace std;
33428 #endif
33429 int
33430 main ()
33431 {
33432 forward_iterator<int,int> t; return 0;
33433   ;
33434   return 0;
33435 }
33436 _ACEOF
33437 rm -f conftest.$ac_objext
33438 if { (ac_try="$ac_compile"
33439 case "(($ac_try" in
33440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441   *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444   (eval "$ac_compile") 2>conftest.er1
33445   ac_status=$?
33446   grep -v '^ *+' conftest.er1 >conftest.err
33447   rm -f conftest.er1
33448   cat conftest.err >&5
33449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450   (exit $ac_status); } &&
33451          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452   { (case "(($ac_try" in
33453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454   *) ac_try_echo=$ac_try;;
33455 esac
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457   (eval "$ac_try") 2>&5
33458   ac_status=$?
33459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460   (exit $ac_status); }; } &&
33461          { ac_try='test -s conftest.$ac_objext'
33462   { (case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_try") 2>&5
33468   ac_status=$?
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); }; }; then
33471   ac_cv_cxx_have_fwd_iterator=yes
33472 else
33473   echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.$ac_ext >&5
33475
33476         ac_cv_cxx_have_fwd_iterator=no
33477 fi
33478
33479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33480   ac_ext=c
33481 ac_cpp='$CPP $CPPFLAGS'
33482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33485
33486
33487 fi
33488 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33489 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33490 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33491 then
33492
33493 cat >>confdefs.h <<\_ACEOF
33494 #define HAVE_FWD_ITERATOR 1
33495 _ACEOF
33496
33497 else
33498
33499 cat >>confdefs.h <<\_ACEOF
33500 #define HAVE_FWD_ITERATOR 0
33501 _ACEOF
33502
33503 fi
33504
33505
33506 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33507 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33508 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33509   echo $ECHO_N "(cached) $ECHO_C" >&6
33510 else
33511   ac_ext=cpp
33512 ac_cpp='$CXXCPP $CPPFLAGS'
33513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33516
33517    cat >conftest.$ac_ext <<_ACEOF
33518 /* confdefs.h.  */
33519 _ACEOF
33520 cat confdefs.h >>conftest.$ac_ext
33521 cat >>conftest.$ac_ext <<_ACEOF
33522 /* end confdefs.h.  */
33523 #include <math.h>
33524 int
33525 main ()
33526 {
33527 float f; isnan(f);
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536   *) ac_try_echo=$ac_try;;
33537 esac
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539   (eval "$ac_compile") 2>conftest.er1
33540   ac_status=$?
33541   grep -v '^ *+' conftest.er1 >conftest.err
33542   rm -f conftest.er1
33543   cat conftest.err >&5
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } &&
33546          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547   { (case "(($ac_try" in
33548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549   *) ac_try_echo=$ac_try;;
33550 esac
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552   (eval "$ac_try") 2>&5
33553   ac_status=$?
33554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555   (exit $ac_status); }; } &&
33556          { ac_try='test -s conftest.$ac_objext'
33557   { (case "(($ac_try" in
33558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559   *) ac_try_echo=$ac_try;;
33560 esac
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562   (eval "$ac_try") 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; }; then
33566   ac_cv_func_isnan_in_math_h=yes
33567 else
33568   echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571         ac_cv_func_isnan_in_math_h=no
33572 fi
33573
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575   ac_ext=c
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33580
33581 fi
33582 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33583 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33584
33585
33586 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33587
33588 cat >>confdefs.h <<\_ACEOF
33589 #define HAVE_ISNAN_IN_MATH_H 1
33590 _ACEOF
33591
33592 fi
33593
33594 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33595 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33596 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33597   echo $ECHO_N "(cached) $ECHO_C" >&6
33598 else
33599   ac_ext=cpp
33600 ac_cpp='$CXXCPP $CPPFLAGS'
33601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33604
33605    cat >conftest.$ac_ext <<_ACEOF
33606 /* confdefs.h.  */
33607 _ACEOF
33608 cat confdefs.h >>conftest.$ac_ext
33609 cat >>conftest.$ac_ext <<_ACEOF
33610 /* end confdefs.h.  */
33611 #include <cmath>
33612 int
33613 main ()
33614 {
33615 float f; isnan(f);
33616   ;
33617   return 0;
33618 }
33619 _ACEOF
33620 rm -f conftest.$ac_objext
33621 if { (ac_try="$ac_compile"
33622 case "(($ac_try" in
33623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624   *) ac_try_echo=$ac_try;;
33625 esac
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627   (eval "$ac_compile") 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } &&
33634          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33635   { (case "(($ac_try" in
33636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637   *) ac_try_echo=$ac_try;;
33638 esac
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640   (eval "$ac_try") 2>&5
33641   ac_status=$?
33642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643   (exit $ac_status); }; } &&
33644          { ac_try='test -s conftest.$ac_objext'
33645   { (case "(($ac_try" in
33646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33647   *) ac_try_echo=$ac_try;;
33648 esac
33649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650   (eval "$ac_try") 2>&5
33651   ac_status=$?
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); }; }; then
33654   ac_cv_func_isnan_in_cmath=yes
33655 else
33656   echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.$ac_ext >&5
33658
33659         ac_cv_func_isnan_in_cmath=no
33660 fi
33661
33662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33663   ac_ext=c
33664 ac_cpp='$CPP $CPPFLAGS'
33665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33668
33669 fi
33670 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33671 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33672
33673 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33674
33675 cat >>confdefs.h <<\_ACEOF
33676 #define HAVE_ISNAN_IN_CMATH 1
33677 _ACEOF
33678
33679 fi
33680
33681 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33682 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33683 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33684   echo $ECHO_N "(cached) $ECHO_C" >&6
33685 else
33686   ac_ext=cpp
33687 ac_cpp='$CXXCPP $CPPFLAGS'
33688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33691
33692    cat >conftest.$ac_ext <<_ACEOF
33693 /* confdefs.h.  */
33694 _ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h.  */
33698 #include <cmath>
33699 int
33700 main ()
33701 {
33702 float f; std::isnan(f);
33703   ;
33704   return 0;
33705 }
33706 _ACEOF
33707 rm -f conftest.$ac_objext
33708 if { (ac_try="$ac_compile"
33709 case "(($ac_try" in
33710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711   *) ac_try_echo=$ac_try;;
33712 esac
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714   (eval "$ac_compile") 2>conftest.er1
33715   ac_status=$?
33716   grep -v '^ *+' conftest.er1 >conftest.err
33717   rm -f conftest.er1
33718   cat conftest.err >&5
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } &&
33721          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33722   { (case "(($ac_try" in
33723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724   *) ac_try_echo=$ac_try;;
33725 esac
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727   (eval "$ac_try") 2>&5
33728   ac_status=$?
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); }; } &&
33731          { ac_try='test -s conftest.$ac_objext'
33732   { (case "(($ac_try" in
33733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33734   *) ac_try_echo=$ac_try;;
33735 esac
33736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33737   (eval "$ac_try") 2>&5
33738   ac_status=$?
33739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740   (exit $ac_status); }; }; then
33741   ac_cv_func_std_isnan_in_cmath=yes
33742 else
33743   echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33745
33746         ac_cv_func_std_isnan_in_cmath=no
33747 fi
33748
33749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33750   ac_ext=c
33751 ac_cpp='$CPP $CPPFLAGS'
33752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33755
33756 fi
33757 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33758 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33759
33760 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33761
33762 cat >>confdefs.h <<\_ACEOF
33763 #define HAVE_STD_ISNAN_IN_CMATH 1
33764 _ACEOF
33765
33766 fi
33767
33768
33769 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33770 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33771 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33772   echo $ECHO_N "(cached) $ECHO_C" >&6
33773 else
33774   ac_ext=cpp
33775 ac_cpp='$CXXCPP $CPPFLAGS'
33776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33779
33780    cat >conftest.$ac_ext <<_ACEOF
33781 /* confdefs.h.  */
33782 _ACEOF
33783 cat confdefs.h >>conftest.$ac_ext
33784 cat >>conftest.$ac_ext <<_ACEOF
33785 /* end confdefs.h.  */
33786 #include <math.h>
33787 int
33788 main ()
33789 {
33790 float f; isinf(f);
33791   ;
33792   return 0;
33793 }
33794 _ACEOF
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799   *) ac_try_echo=$ac_try;;
33800 esac
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802   (eval "$ac_compile") 2>conftest.er1
33803   ac_status=$?
33804   grep -v '^ *+' conftest.er1 >conftest.err
33805   rm -f conftest.er1
33806   cat conftest.err >&5
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); } &&
33809          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33810   { (case "(($ac_try" in
33811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812   *) ac_try_echo=$ac_try;;
33813 esac
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815   (eval "$ac_try") 2>&5
33816   ac_status=$?
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); }; } &&
33819          { ac_try='test -s conftest.$ac_objext'
33820   { (case "(($ac_try" in
33821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822   *) ac_try_echo=$ac_try;;
33823 esac
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825   (eval "$ac_try") 2>&5
33826   ac_status=$?
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); }; }; then
33829   ac_cv_func_isinf_in_math_h=yes
33830 else
33831   echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33833
33834         ac_cv_func_isinf_in_math_h=no
33835 fi
33836
33837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33838   ac_ext=c
33839 ac_cpp='$CPP $CPPFLAGS'
33840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33843
33844 fi
33845 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33846 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33847
33848 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33849
33850 cat >>confdefs.h <<\_ACEOF
33851 #define HAVE_ISINF_IN_MATH_H 1
33852 _ACEOF
33853
33854 fi
33855
33856 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33857 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33858 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   ac_ext=cpp
33862 ac_cpp='$CXXCPP $CPPFLAGS'
33863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33866
33867    cat >conftest.$ac_ext <<_ACEOF
33868 /* confdefs.h.  */
33869 _ACEOF
33870 cat confdefs.h >>conftest.$ac_ext
33871 cat >>conftest.$ac_ext <<_ACEOF
33872 /* end confdefs.h.  */
33873 #include <cmath>
33874 int
33875 main ()
33876 {
33877 float f; isinf(f);
33878   ;
33879   return 0;
33880 }
33881 _ACEOF
33882 rm -f conftest.$ac_objext
33883 if { (ac_try="$ac_compile"
33884 case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_compile") 2>conftest.er1
33890   ac_status=$?
33891   grep -v '^ *+' conftest.er1 >conftest.err
33892   rm -f conftest.er1
33893   cat conftest.err >&5
33894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895   (exit $ac_status); } &&
33896          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33897   { (case "(($ac_try" in
33898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899   *) ac_try_echo=$ac_try;;
33900 esac
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902   (eval "$ac_try") 2>&5
33903   ac_status=$?
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); }; } &&
33906          { ac_try='test -s conftest.$ac_objext'
33907   { (case "(($ac_try" in
33908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909   *) ac_try_echo=$ac_try;;
33910 esac
33911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912   (eval "$ac_try") 2>&5
33913   ac_status=$?
33914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915   (exit $ac_status); }; }; then
33916   ac_cv_func_isinf_in_cmath=yes
33917 else
33918   echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33920
33921         ac_cv_func_isinf_in_cmath=no
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33925   ac_ext=c
33926 ac_cpp='$CPP $CPPFLAGS'
33927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33930
33931 fi
33932 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33933 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33934
33935 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33936
33937 cat >>confdefs.h <<\_ACEOF
33938 #define HAVE_ISINF_IN_CMATH 1
33939 _ACEOF
33940
33941 fi
33942
33943 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33944 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33945 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33946   echo $ECHO_N "(cached) $ECHO_C" >&6
33947 else
33948   ac_ext=cpp
33949 ac_cpp='$CXXCPP $CPPFLAGS'
33950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33953
33954    cat >conftest.$ac_ext <<_ACEOF
33955 /* confdefs.h.  */
33956 _ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h.  */
33960 #include <cmath>
33961 int
33962 main ()
33963 {
33964 float f; std::isinf(f)}
33965   ;
33966   return 0;
33967 }
33968 _ACEOF
33969 rm -f conftest.$ac_objext
33970 if { (ac_try="$ac_compile"
33971 case "(($ac_try" in
33972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33973   *) ac_try_echo=$ac_try;;
33974 esac
33975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33976   (eval "$ac_compile") 2>conftest.er1
33977   ac_status=$?
33978   grep -v '^ *+' conftest.er1 >conftest.err
33979   rm -f conftest.er1
33980   cat conftest.err >&5
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); } &&
33983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33984   { (case "(($ac_try" in
33985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33986   *) ac_try_echo=$ac_try;;
33987 esac
33988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33989   (eval "$ac_try") 2>&5
33990   ac_status=$?
33991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992   (exit $ac_status); }; } &&
33993          { ac_try='test -s conftest.$ac_objext'
33994   { (case "(($ac_try" in
33995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33996   *) ac_try_echo=$ac_try;;
33997 esac
33998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33999   (eval "$ac_try") 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; }; then
34003   ac_cv_func_std_isinf_in_cmath=yes
34004 else
34005   echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.$ac_ext >&5
34007
34008         ac_cv_func_std_isinf_in_cmath=no
34009 fi
34010
34011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34012   ac_ext=c
34013 ac_cpp='$CPP $CPPFLAGS'
34014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34017
34018 fi
34019 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34020 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34021
34022 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34023
34024 cat >>confdefs.h <<\_ACEOF
34025 #define HAVE_STD_ISINF_IN_CMATH 1
34026 _ACEOF
34027
34028 fi
34029
34030 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34031 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34032 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34033   echo $ECHO_N "(cached) $ECHO_C" >&6
34034 else
34035   ac_ext=cpp
34036 ac_cpp='$CXXCPP $CPPFLAGS'
34037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34040
34041    cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h.  */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h.  */
34047 #include <ieeefp.h>
34048 int
34049 main ()
34050 {
34051 float f; finite(f);
34052   ;
34053   return 0;
34054 }
34055 _ACEOF
34056 rm -f conftest.$ac_objext
34057 if { (ac_try="$ac_compile"
34058 case "(($ac_try" in
34059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060   *) ac_try_echo=$ac_try;;
34061 esac
34062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063   (eval "$ac_compile") 2>conftest.er1
34064   ac_status=$?
34065   grep -v '^ *+' conftest.er1 >conftest.err
34066   rm -f conftest.er1
34067   cat conftest.err >&5
34068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069   (exit $ac_status); } &&
34070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34071   { (case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_try") 2>&5
34077   ac_status=$?
34078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079   (exit $ac_status); }; } &&
34080          { ac_try='test -s conftest.$ac_objext'
34081   { (case "(($ac_try" in
34082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34083   *) ac_try_echo=$ac_try;;
34084 esac
34085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34086   (eval "$ac_try") 2>&5
34087   ac_status=$?
34088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089   (exit $ac_status); }; }; then
34090   ac_cv_func_finite_in_ieeefp_h=yes
34091 else
34092   echo "$as_me: failed program was:" >&5
34093 sed 's/^/| /' conftest.$ac_ext >&5
34094
34095         ac_cv_func_finite_in_ieeefp_h=no
34096 fi
34097
34098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34099   ac_ext=c
34100 ac_cpp='$CPP $CPPFLAGS'
34101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34104
34105 fi
34106 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34107 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34108
34109 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34110
34111 cat >>confdefs.h <<\_ACEOF
34112 #define HAVE_FINITE_IN_IEEEFP_H 1
34113 _ACEOF
34114
34115 fi
34116
34117
34118
34119 if test "$llvm_cv_platform_type" = "Unix" ; then
34120
34121
34122 for ac_header in stdlib.h unistd.h
34123 do
34124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34126   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34129   echo $ECHO_N "(cached) $ECHO_C" >&6
34130 fi
34131 ac_res=`eval echo '${'$as_ac_Header'}'`
34132                { echo "$as_me:$LINENO: result: $ac_res" >&5
34133 echo "${ECHO_T}$ac_res" >&6; }
34134 else
34135   # Is the header compilable?
34136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34138 cat >conftest.$ac_ext <<_ACEOF
34139 /* confdefs.h.  */
34140 _ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h.  */
34144 $ac_includes_default
34145 #include <$ac_header>
34146 _ACEOF
34147 rm -f conftest.$ac_objext
34148 if { (ac_try="$ac_compile"
34149 case "(($ac_try" in
34150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34151   *) ac_try_echo=$ac_try;;
34152 esac
34153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154   (eval "$ac_compile") 2>conftest.er1
34155   ac_status=$?
34156   grep -v '^ *+' conftest.er1 >conftest.err
34157   rm -f conftest.er1
34158   cat conftest.err >&5
34159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160   (exit $ac_status); } &&
34161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34162   { (case "(($ac_try" in
34163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164   *) ac_try_echo=$ac_try;;
34165 esac
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167   (eval "$ac_try") 2>&5
34168   ac_status=$?
34169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170   (exit $ac_status); }; } &&
34171          { ac_try='test -s conftest.$ac_objext'
34172   { (case "(($ac_try" in
34173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174   *) ac_try_echo=$ac_try;;
34175 esac
34176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177   (eval "$ac_try") 2>&5
34178   ac_status=$?
34179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180   (exit $ac_status); }; }; then
34181   ac_header_compiler=yes
34182 else
34183   echo "$as_me: failed program was:" >&5
34184 sed 's/^/| /' conftest.$ac_ext >&5
34185
34186         ac_header_compiler=no
34187 fi
34188
34189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34191 echo "${ECHO_T}$ac_header_compiler" >&6; }
34192
34193 # Is the header present?
34194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34196 cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202 #include <$ac_header>
34203 _ACEOF
34204 if { (ac_try="$ac_cpp conftest.$ac_ext"
34205 case "(($ac_try" in
34206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207   *) ac_try_echo=$ac_try;;
34208 esac
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34211   ac_status=$?
34212   grep -v '^ *+' conftest.er1 >conftest.err
34213   rm -f conftest.er1
34214   cat conftest.err >&5
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } >/dev/null; then
34217   if test -s conftest.err; then
34218     ac_cpp_err=$ac_c_preproc_warn_flag
34219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34220   else
34221     ac_cpp_err=
34222   fi
34223 else
34224   ac_cpp_err=yes
34225 fi
34226 if test -z "$ac_cpp_err"; then
34227   ac_header_preproc=yes
34228 else
34229   echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34231
34232   ac_header_preproc=no
34233 fi
34234
34235 rm -f conftest.err conftest.$ac_ext
34236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34237 echo "${ECHO_T}$ac_header_preproc" >&6; }
34238
34239 # So?  What about this header?
34240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34241   yes:no: )
34242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34246     ac_header_preproc=yes
34247     ;;
34248   no:yes:* )
34249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34261     ( cat <<\_ASBOX
34262 ## ----------------------------------- ##
34263 ## Report this to llvmbugs@cs.uiuc.edu ##
34264 ## ----------------------------------- ##
34265 _ASBOX
34266      ) | sed "s/^/$as_me: WARNING:     /" >&2
34267     ;;
34268 esac
34269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34272   echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274   eval "$as_ac_Header=\$ac_header_preproc"
34275 fi
34276 ac_res=`eval echo '${'$as_ac_Header'}'`
34277                { echo "$as_me:$LINENO: result: $ac_res" >&5
34278 echo "${ECHO_T}$ac_res" >&6; }
34279
34280 fi
34281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34282   cat >>confdefs.h <<_ACEOF
34283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34284 _ACEOF
34285
34286 fi
34287
34288 done
34289
34290
34291 for ac_func in getpagesize
34292 do
34293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34297   echo $ECHO_N "(cached) $ECHO_C" >&6
34298 else
34299   cat >conftest.$ac_ext <<_ACEOF
34300 /* confdefs.h.  */
34301 _ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h.  */
34305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34307 #define $ac_func innocuous_$ac_func
34308
34309 /* System header to define __stub macros and hopefully few prototypes,
34310     which can conflict with char $ac_func (); below.
34311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34312     <limits.h> exists even on freestanding compilers.  */
34313
34314 #ifdef __STDC__
34315 # include <limits.h>
34316 #else
34317 # include <assert.h>
34318 #endif
34319
34320 #undef $ac_func
34321
34322 /* Override any GCC internal prototype to avoid an error.
34323    Use char because int might match the return type of a GCC
34324    builtin and then its argument prototype would still apply.  */
34325 #ifdef __cplusplus
34326 extern "C"
34327 #endif
34328 char $ac_func ();
34329 /* The GNU C library defines this for functions which it implements
34330     to always fail with ENOSYS.  Some functions are actually named
34331     something starting with __ and the normal name is an alias.  */
34332 #if defined __stub_$ac_func || defined __stub___$ac_func
34333 choke me
34334 #endif
34335
34336 int
34337 main ()
34338 {
34339 return $ac_func ();
34340   ;
34341   return 0;
34342 }
34343 _ACEOF
34344 rm -f conftest.$ac_objext conftest$ac_exeext
34345 if { (ac_try="$ac_link"
34346 case "(($ac_try" in
34347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348   *) ac_try_echo=$ac_try;;
34349 esac
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351   (eval "$ac_link") 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } &&
34358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34359   { (case "(($ac_try" in
34360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361   *) ac_try_echo=$ac_try;;
34362 esac
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364   (eval "$ac_try") 2>&5
34365   ac_status=$?
34366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367   (exit $ac_status); }; } &&
34368          { ac_try='test -s conftest$ac_exeext'
34369   { (case "(($ac_try" in
34370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34371   *) ac_try_echo=$ac_try;;
34372 esac
34373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374   (eval "$ac_try") 2>&5
34375   ac_status=$?
34376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377   (exit $ac_status); }; }; then
34378   eval "$as_ac_var=yes"
34379 else
34380   echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34382
34383         eval "$as_ac_var=no"
34384 fi
34385
34386 rm -f core conftest.err conftest.$ac_objext \
34387       conftest$ac_exeext conftest.$ac_ext
34388 fi
34389 ac_res=`eval echo '${'$as_ac_var'}'`
34390                { echo "$as_me:$LINENO: result: $ac_res" >&5
34391 echo "${ECHO_T}$ac_res" >&6; }
34392 if test `eval echo '${'$as_ac_var'}'` = yes; then
34393   cat >>confdefs.h <<_ACEOF
34394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34395 _ACEOF
34396
34397 fi
34398 done
34399
34400 { echo "$as_me:$LINENO: checking for working mmap" >&5
34401 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34402 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34403   echo $ECHO_N "(cached) $ECHO_C" >&6
34404 else
34405   if test "$cross_compiling" = yes; then
34406   ac_cv_func_mmap_fixed_mapped=no
34407 else
34408   cat >conftest.$ac_ext <<_ACEOF
34409 /* confdefs.h.  */
34410 _ACEOF
34411 cat confdefs.h >>conftest.$ac_ext
34412 cat >>conftest.$ac_ext <<_ACEOF
34413 /* end confdefs.h.  */
34414 $ac_includes_default
34415 /* malloc might have been renamed as rpl_malloc. */
34416 #undef malloc
34417
34418 /* Thanks to Mike Haertel and Jim Avera for this test.
34419    Here is a matrix of mmap possibilities:
34420         mmap private not fixed
34421         mmap private fixed at somewhere currently unmapped
34422         mmap private fixed at somewhere already mapped
34423         mmap shared not fixed
34424         mmap shared fixed at somewhere currently unmapped
34425         mmap shared fixed at somewhere already mapped
34426    For private mappings, we should verify that changes cannot be read()
34427    back from the file, nor mmap's back from the file at a different
34428    address.  (There have been systems where private was not correctly
34429    implemented like the infamous i386 svr4.0, and systems where the
34430    VM page cache was not coherent with the file system buffer cache
34431    like early versions of FreeBSD and possibly contemporary NetBSD.)
34432    For shared mappings, we should conversely verify that changes get
34433    propagated back to all the places they're supposed to be.
34434
34435    Grep wants private fixed already mapped.
34436    The main things grep needs to know about mmap are:
34437    * does it exist and is it safe to write into the mmap'd area
34438    * how to use it (BSD variants)  */
34439
34440 #include <fcntl.h>
34441 #include <sys/mman.h>
34442
34443 #if !STDC_HEADERS && !HAVE_STDLIB_H
34444 char *malloc ();
34445 #endif
34446
34447 /* This mess was copied from the GNU getpagesize.h.  */
34448 #if !HAVE_GETPAGESIZE
34449 /* Assume that all systems that can run configure have sys/param.h.  */
34450 # if !HAVE_SYS_PARAM_H
34451 #  define HAVE_SYS_PARAM_H 1
34452 # endif
34453
34454 # ifdef _SC_PAGESIZE
34455 #  define getpagesize() sysconf(_SC_PAGESIZE)
34456 # else /* no _SC_PAGESIZE */
34457 #  if HAVE_SYS_PARAM_H
34458 #   include <sys/param.h>
34459 #   ifdef EXEC_PAGESIZE
34460 #    define getpagesize() EXEC_PAGESIZE
34461 #   else /* no EXEC_PAGESIZE */
34462 #    ifdef NBPG
34463 #     define getpagesize() NBPG * CLSIZE
34464 #     ifndef CLSIZE
34465 #      define CLSIZE 1
34466 #     endif /* no CLSIZE */
34467 #    else /* no NBPG */
34468 #     ifdef NBPC
34469 #      define getpagesize() NBPC
34470 #     else /* no NBPC */
34471 #      ifdef PAGESIZE
34472 #       define getpagesize() PAGESIZE
34473 #      endif /* PAGESIZE */
34474 #     endif /* no NBPC */
34475 #    endif /* no NBPG */
34476 #   endif /* no EXEC_PAGESIZE */
34477 #  else /* no HAVE_SYS_PARAM_H */
34478 #   define getpagesize() 8192   /* punt totally */
34479 #  endif /* no HAVE_SYS_PARAM_H */
34480 # endif /* no _SC_PAGESIZE */
34481
34482 #endif /* no HAVE_GETPAGESIZE */
34483
34484 int
34485 main ()
34486 {
34487   char *data, *data2, *data3;
34488   int i, pagesize;
34489   int fd;
34490
34491   pagesize = getpagesize ();
34492
34493   /* First, make a file with some known garbage in it. */
34494   data = (char *) malloc (pagesize);
34495   if (!data)
34496     return 1;
34497   for (i = 0; i < pagesize; ++i)
34498     *(data + i) = rand ();
34499   umask (0);
34500   fd = creat ("conftest.mmap", 0600);
34501   if (fd < 0)
34502     return 1;
34503   if (write (fd, data, pagesize) != pagesize)
34504     return 1;
34505   close (fd);
34506
34507   /* Next, try to mmap the file at a fixed address which already has
34508      something else allocated at it.  If we can, also make sure that
34509      we see the same garbage.  */
34510   fd = open ("conftest.mmap", O_RDWR);
34511   if (fd < 0)
34512     return 1;
34513   data2 = (char *) malloc (2 * pagesize);
34514   if (!data2)
34515     return 1;
34516   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34517   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34518                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34519     return 1;
34520   for (i = 0; i < pagesize; ++i)
34521     if (*(data + i) != *(data2 + i))
34522       return 1;
34523
34524   /* Finally, make sure that changes to the mapped area do not
34525      percolate back to the file as seen by read().  (This is a bug on
34526      some variants of i386 svr4.0.)  */
34527   for (i = 0; i < pagesize; ++i)
34528     *(data2 + i) = *(data2 + i) + 1;
34529   data3 = (char *) malloc (pagesize);
34530   if (!data3)
34531     return 1;
34532   if (read (fd, data3, pagesize) != pagesize)
34533     return 1;
34534   for (i = 0; i < pagesize; ++i)
34535     if (*(data + i) != *(data3 + i))
34536       return 1;
34537   close (fd);
34538   return 0;
34539 }
34540 _ACEOF
34541 rm -f conftest$ac_exeext
34542 if { (ac_try="$ac_link"
34543 case "(($ac_try" in
34544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545   *) ac_try_echo=$ac_try;;
34546 esac
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548   (eval "$ac_link") 2>&5
34549   ac_status=$?
34550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34552   { (case "(($ac_try" in
34553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34554   *) ac_try_echo=$ac_try;;
34555 esac
34556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34557   (eval "$ac_try") 2>&5
34558   ac_status=$?
34559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560   (exit $ac_status); }; }; then
34561   ac_cv_func_mmap_fixed_mapped=yes
34562 else
34563   echo "$as_me: program exited with status $ac_status" >&5
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 ( exit $ac_status )
34568 ac_cv_func_mmap_fixed_mapped=no
34569 fi
34570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34571 fi
34572
34573
34574 fi
34575 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34576 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34577 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34578
34579 cat >>confdefs.h <<\_ACEOF
34580 #define HAVE_MMAP 1
34581 _ACEOF
34582
34583 fi
34584 rm -f conftest.mmap
34585
34586   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34587 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34588 if test "${ac_cv_func_mmap_file+set}" = set; then
34589   echo $ECHO_N "(cached) $ECHO_C" >&6
34590 else
34591    ac_ext=c
34592 ac_cpp='$CPP $CPPFLAGS'
34593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34596
34597   if test "$cross_compiling" = yes; then
34598   ac_cv_func_mmap_file=no
34599 else
34600   cat >conftest.$ac_ext <<_ACEOF
34601
34602     /* confdefs.h.  */
34603 _ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h.  */
34607
34608 #include <sys/types.h>
34609 #include <sys/mman.h>
34610 #include <fcntl.h>
34611
34612 int
34613 main ()
34614 {
34615
34616   int fd;
34617   fd = creat ("foo",0777);
34618   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34619   unlink ("foo");
34620   return (fd != (int) MAP_FAILED);
34621   ;
34622   return 0;
34623 }
34624 _ACEOF
34625 rm -f conftest$ac_exeext
34626 if { (ac_try="$ac_link"
34627 case "(($ac_try" in
34628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629   *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632   (eval "$ac_link") 2>&5
34633   ac_status=$?
34634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34636   { (case "(($ac_try" in
34637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34638   *) ac_try_echo=$ac_try;;
34639 esac
34640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641   (eval "$ac_try") 2>&5
34642   ac_status=$?
34643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644   (exit $ac_status); }; }; then
34645   ac_cv_func_mmap_file=yes
34646 else
34647   echo "$as_me: program exited with status $ac_status" >&5
34648 echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.$ac_ext >&5
34650
34651 ( exit $ac_status )
34652 ac_cv_func_mmap_file=no
34653 fi
34654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34655 fi
34656
34657
34658   ac_ext=c
34659 ac_cpp='$CPP $CPPFLAGS'
34660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34663
34664
34665 fi
34666 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34667 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34668 if test "$ac_cv_func_mmap_file" = yes; then
34669
34670 cat >>confdefs.h <<\_ACEOF
34671 #define HAVE_MMAP_FILE
34672 _ACEOF
34673
34674    MMAP_FILE=yes
34675
34676 fi
34677
34678   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34679 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34680 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34681   echo $ECHO_N "(cached) $ECHO_C" >&6
34682 else
34683   if test "$llvm_cv_os_type" = "Interix" ; then
34684    ac_cv_need_dev_zero_for_mmap=yes
34685  else
34686    ac_cv_need_dev_zero_for_mmap=no
34687  fi
34688
34689 fi
34690 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34691 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34692 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34693
34694 cat >>confdefs.h <<\_ACEOF
34695 #define NEED_DEV_ZERO_FOR_MMAP 1
34696 _ACEOF
34697
34698 fi
34699
34700   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34701   then
34702     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34703 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34704   fi
34705   if test "$ac_cv_func_mmap_file" = "no"
34706   then
34707     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34708 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34709   fi
34710 fi
34711
34712 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34713 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34714 cat >conftest.$ac_ext <<_ACEOF
34715 /* confdefs.h.  */
34716 _ACEOF
34717 cat confdefs.h >>conftest.$ac_ext
34718 cat >>conftest.$ac_ext <<_ACEOF
34719 /* end confdefs.h.  */
34720 int main() {
34721         volatile unsigned long val = 1;
34722         __sync_synchronize();
34723         __sync_val_compare_and_swap(&val, 1, 0);
34724         __sync_add_and_fetch(&val, 1);
34725         __sync_sub_and_fetch(&val, 1);
34726         return 0;
34727       }
34728
34729 _ACEOF
34730 rm -f conftest.$ac_objext conftest$ac_exeext
34731 if { (ac_try="$ac_link"
34732 case "(($ac_try" in
34733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34734   *) ac_try_echo=$ac_try;;
34735 esac
34736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34737   (eval "$ac_link") 2>conftest.er1
34738   ac_status=$?
34739   grep -v '^ *+' conftest.er1 >conftest.err
34740   rm -f conftest.er1
34741   cat conftest.err >&5
34742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743   (exit $ac_status); } &&
34744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34745   { (case "(($ac_try" in
34746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34747   *) ac_try_echo=$ac_try;;
34748 esac
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750   (eval "$ac_try") 2>&5
34751   ac_status=$?
34752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753   (exit $ac_status); }; } &&
34754          { ac_try='test -s conftest$ac_exeext'
34755   { (case "(($ac_try" in
34756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34757   *) ac_try_echo=$ac_try;;
34758 esac
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760   (eval "$ac_try") 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; }; then
34764   { echo "$as_me:$LINENO: result: yes" >&5
34765 echo "${ECHO_T}yes" >&6; }
34766
34767 cat >>confdefs.h <<\_ACEOF
34768 #define LLVM_MULTITHREADED 1
34769 _ACEOF
34770
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775         { echo "$as_me:$LINENO: result: no" >&5
34776 echo "${ECHO_T}no" >&6; }
34777
34778 cat >>confdefs.h <<\_ACEOF
34779 #define LLVM_MULTITHREADED 0
34780 _ACEOF
34781
34782   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34783 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34784 fi
34785
34786 rm -f core conftest.err conftest.$ac_objext \
34787       conftest$ac_exeext conftest.$ac_ext
34788
34789
34790
34791 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34792   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34793 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34794 if test "${llvm_cv_linux_mixed+set}" = set; then
34795   echo $ECHO_N "(cached) $ECHO_C" >&6
34796 else
34797    ac_ext=c
34798 ac_cpp='$CPP $CPPFLAGS'
34799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34802
34803   cat >conftest.$ac_ext <<_ACEOF
34804 /* confdefs.h.  */
34805 _ACEOF
34806 cat confdefs.h >>conftest.$ac_ext
34807 cat >>conftest.$ac_ext <<_ACEOF
34808 /* end confdefs.h.  */
34809 #ifndef __x86_64__
34810        error: Not x86-64 even if uname says so!
34811       #endif
34812
34813 int
34814 main ()
34815 {
34816
34817   ;
34818   return 0;
34819 }
34820 _ACEOF
34821 rm -f conftest.$ac_objext
34822 if { (ac_try="$ac_compile"
34823 case "(($ac_try" in
34824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34825   *) ac_try_echo=$ac_try;;
34826 esac
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828   (eval "$ac_compile") 2>conftest.er1
34829   ac_status=$?
34830   grep -v '^ *+' conftest.er1 >conftest.err
34831   rm -f conftest.er1
34832   cat conftest.err >&5
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } &&
34835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836   { (case "(($ac_try" in
34837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34838   *) ac_try_echo=$ac_try;;
34839 esac
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841   (eval "$ac_try") 2>&5
34842   ac_status=$?
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); }; } &&
34845          { ac_try='test -s conftest.$ac_objext'
34846   { (case "(($ac_try" in
34847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848   *) ac_try_echo=$ac_try;;
34849 esac
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851   (eval "$ac_try") 2>&5
34852   ac_status=$?
34853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854   (exit $ac_status); }; }; then
34855   llvm_cv_linux_mixed=no
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860         llvm_cv_linux_mixed=yes
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864   ac_ext=c
34865 ac_cpp='$CPP $CPPFLAGS'
34866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34869
34870
34871 fi
34872 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34873 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34874
34875   if test "$llvm_cv_linux_mixed" = "yes"; then
34876     llvm_cv_target_arch="x86"
34877     ARCH="x86"
34878   fi
34879 fi
34880
34881
34882 for ac_func in __dso_handle
34883 do
34884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34888   echo $ECHO_N "(cached) $ECHO_C" >&6
34889 else
34890   cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34898 #define $ac_func innocuous_$ac_func
34899
34900 /* System header to define __stub macros and hopefully few prototypes,
34901     which can conflict with char $ac_func (); below.
34902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34903     <limits.h> exists even on freestanding compilers.  */
34904
34905 #ifdef __STDC__
34906 # include <limits.h>
34907 #else
34908 # include <assert.h>
34909 #endif
34910
34911 #undef $ac_func
34912
34913 /* Override any GCC internal prototype to avoid an error.
34914    Use char because int might match the return type of a GCC
34915    builtin and then its argument prototype would still apply.  */
34916 #ifdef __cplusplus
34917 extern "C"
34918 #endif
34919 char $ac_func ();
34920 /* The GNU C library defines this for functions which it implements
34921     to always fail with ENOSYS.  Some functions are actually named
34922     something starting with __ and the normal name is an alias.  */
34923 #if defined __stub_$ac_func || defined __stub___$ac_func
34924 choke me
34925 #endif
34926
34927 int
34928 main ()
34929 {
34930 return $ac_func ();
34931   ;
34932   return 0;
34933 }
34934 _ACEOF
34935 rm -f conftest.$ac_objext conftest$ac_exeext
34936 if { (ac_try="$ac_link"
34937 case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942   (eval "$ac_link") 2>conftest.er1
34943   ac_status=$?
34944   grep -v '^ *+' conftest.er1 >conftest.err
34945   rm -f conftest.er1
34946   cat conftest.err >&5
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); } &&
34949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34950   { (case "(($ac_try" in
34951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952   *) ac_try_echo=$ac_try;;
34953 esac
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955   (eval "$ac_try") 2>&5
34956   ac_status=$?
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); }; } &&
34959          { ac_try='test -s conftest$ac_exeext'
34960   { (case "(($ac_try" in
34961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962   *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965   (eval "$ac_try") 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969   eval "$as_ac_var=yes"
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974         eval "$as_ac_var=no"
34975 fi
34976
34977 rm -f core conftest.err conftest.$ac_objext \
34978       conftest$ac_exeext conftest.$ac_ext
34979 fi
34980 ac_res=`eval echo '${'$as_ac_var'}'`
34981                { echo "$as_me:$LINENO: result: $ac_res" >&5
34982 echo "${ECHO_T}$ac_res" >&6; }
34983 if test `eval echo '${'$as_ac_var'}'` = yes; then
34984   cat >>confdefs.h <<_ACEOF
34985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34986 _ACEOF
34987
34988 fi
34989 done
34990
34991
34992 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34993 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34994 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34995   echo $ECHO_N "(cached) $ECHO_C" >&6
34996 else
34997   llvm_cv_llvmgcc_sanity="no"
34998 if test -x "$LLVMGCC" ; then
34999   cp /dev/null conftest.c
35000   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35001       grep 'target datalayout =' > /dev/null 2>&1
35002   if test $? -eq 0 ; then
35003     llvm_cv_llvmgcc_sanity="yes"
35004   fi
35005   rm conftest.c
35006 fi
35007 fi
35008 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35009 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35010
35011 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35012   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35013 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35014   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35015   LLVMCC1=$llvmcc1path
35016
35017   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35018   LLVMCC1PLUS=$llvmcc1pluspath
35019
35020   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35021   LLVMGCCDIR=$llvmgccdir
35022
35023   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35024   LLVMGCCLIBEXEC=$llvmgcclibexec
35025
35026   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35027   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35028   LLVMGCC_VERSION=$llvmgccversion
35029
35030   LLVMGCC_MAJVERS=$llvmgccmajvers
35031
35032   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35033   LLVMGCC_LANGS=$llvmgcclangs
35034
35035   { echo "$as_me:$LINENO: result: ok" >&5
35036 echo "${ECHO_T}ok" >&6; }
35037 fi
35038
35039 SHLIBEXT=$libltdl_cv_shlibext
35040
35041
35042 # Translate the various configuration directories and other basic
35043 # information into substitutions that will end up in Makefile.config.in
35044 # that these configured values can be used by the makefiles
35045 if test "${prefix}" = "NONE" ; then
35046   prefix="/usr/local"
35047 fi
35048 eval LLVM_PREFIX="${prefix}";
35049 eval LLVM_BINDIR="${prefix}/bin";
35050 eval LLVM_LIBDIR="${prefix}/lib";
35051 eval LLVM_DATADIR="${prefix}/share/llvm";
35052 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35053 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35054 eval LLVM_INCLUDEDIR="${prefix}/include";
35055 eval LLVM_INFODIR="${prefix}/info";
35056 eval LLVM_MANDIR="${prefix}/man";
35057 LLVM_CONFIGTIME=`date`
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069 # Place the various directores into the config.h file as #defines so that we
35070 # can know about the installation paths within LLVM.
35071
35072 cat >>confdefs.h <<_ACEOF
35073 #define LLVM_PREFIX "$LLVM_PREFIX"
35074 _ACEOF
35075
35076
35077 cat >>confdefs.h <<_ACEOF
35078 #define LLVM_BINDIR "$LLVM_BINDIR"
35079 _ACEOF
35080
35081
35082 cat >>confdefs.h <<_ACEOF
35083 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35084 _ACEOF
35085
35086
35087 cat >>confdefs.h <<_ACEOF
35088 #define LLVM_DATADIR "$LLVM_DATADIR"
35089 _ACEOF
35090
35091
35092 cat >>confdefs.h <<_ACEOF
35093 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35094 _ACEOF
35095
35096
35097 cat >>confdefs.h <<_ACEOF
35098 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35099 _ACEOF
35100
35101
35102 cat >>confdefs.h <<_ACEOF
35103 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35104 _ACEOF
35105
35106
35107 cat >>confdefs.h <<_ACEOF
35108 #define LLVM_INFODIR "$LLVM_INFODIR"
35109 _ACEOF
35110
35111
35112 cat >>confdefs.h <<_ACEOF
35113 #define LLVM_MANDIR "$LLVM_MANDIR"
35114 _ACEOF
35115
35116
35117 cat >>confdefs.h <<_ACEOF
35118 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35119 _ACEOF
35120
35121
35122 cat >>confdefs.h <<_ACEOF
35123 #define LLVM_HOSTTRIPLE "$host"
35124 _ACEOF
35125
35126
35127 # Determine which bindings to build.
35128 if test "$BINDINGS_TO_BUILD" = auto ; then
35129   BINDINGS_TO_BUILD=""
35130   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35131     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35132   fi
35133 fi
35134 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35135
35136
35137 # This isn't really configurey, but it avoids having to repeat the list in
35138 # other files.
35139 ALL_BINDINGS=ocaml
35140
35141
35142 # Do any work necessary to ensure that bindings have what they need.
35143 binding_prereqs_failed=0
35144 for a_binding in $BINDINGS_TO_BUILD ; do
35145   case "$a_binding" in
35146   ocaml)
35147     if test "x$OCAMLC" = x ; then
35148       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35149 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35150       binding_prereqs_failed=1
35151     fi
35152     if test "x$OCAMLDEP" = x ; then
35153       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35155       binding_prereqs_failed=1
35156     fi
35157     if test "x$OCAMLOPT" = x ; then
35158       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35160           fi
35161     if test "x$with_ocaml_libdir" != xauto ; then
35162       OCAML_LIBDIR=$with_ocaml_libdir
35163
35164     else
35165       ocaml_stdlib="`"$OCAMLC" -where`"
35166       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35167       then
35168         # ocaml stdlib is beneath our prefix; use stdlib
35169         OCAML_LIBDIR=$ocaml_stdlib
35170
35171       else
35172         # ocaml stdlib is outside our prefix; use libdir/ocaml
35173         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35174
35175       fi
35176     fi
35177     ;;
35178   esac
35179 done
35180 if test "$binding_prereqs_failed" = 1 ; then
35181   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35182 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35183    { (exit 1); exit 1; }; }
35184 fi
35185
35186 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35187 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35188 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35189   echo $ECHO_N "(cached) $ECHO_C" >&6
35190 else
35191    ac_ext=cpp
35192 ac_cpp='$CXXCPP $CPPFLAGS'
35193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35196
35197   oldcxxflags="$CXXFLAGS"
35198   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35199   cat >conftest.$ac_ext <<_ACEOF
35200 /* confdefs.h.  */
35201 _ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h.  */
35205
35206 int
35207 main ()
35208 {
35209
35210   ;
35211   return 0;
35212 }
35213 _ACEOF
35214 rm -f conftest.$ac_objext
35215 if { (ac_try="$ac_compile"
35216 case "(($ac_try" in
35217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35218   *) ac_try_echo=$ac_try;;
35219 esac
35220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221   (eval "$ac_compile") 2>conftest.er1
35222   ac_status=$?
35223   grep -v '^ *+' conftest.er1 >conftest.err
35224   rm -f conftest.er1
35225   cat conftest.err >&5
35226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227   (exit $ac_status); } &&
35228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35229   { (case "(($ac_try" in
35230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35231   *) ac_try_echo=$ac_try;;
35232 esac
35233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234   (eval "$ac_try") 2>&5
35235   ac_status=$?
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); }; } &&
35238          { ac_try='test -s conftest.$ac_objext'
35239   { (case "(($ac_try" in
35240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241   *) ac_try_echo=$ac_try;;
35242 esac
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244   (eval "$ac_try") 2>&5
35245   ac_status=$?
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); }; }; then
35248   llvm_cv_cxx_visibility_inlines_hidden=yes
35249 else
35250   echo "$as_me: failed program was:" >&5
35251 sed 's/^/| /' conftest.$ac_ext >&5
35252
35253         llvm_cv_cxx_visibility_inlines_hidden=no
35254 fi
35255
35256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35257   CXXFLAGS="$oldcxxflags"
35258   ac_ext=c
35259 ac_cpp='$CPP $CPPFLAGS'
35260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35263
35264
35265 fi
35266 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35267 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35268 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35269   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35270
35271 else
35272   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35273
35274 fi
35275
35276
35277 if test "$llvm_cv_link_use_r" = "yes" ; then
35278   RPATH="-Wl,-R"
35279 else
35280   RPATH="-Wl,-rpath"
35281 fi
35282
35283
35284 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35285   RDYNAMIC="-Wl,-export-dynamic"
35286 else
35287   RDYNAMIC=""
35288 fi
35289
35290
35291
35292 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35293
35294 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35295
35296 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35297
35298 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35299
35300 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35301
35302
35303 ac_config_files="$ac_config_files Makefile.config"
35304
35305
35306 ac_config_files="$ac_config_files llvm.spec"
35307
35308
35309 ac_config_files="$ac_config_files docs/doxygen.cfg"
35310
35311
35312 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35313
35314
35315 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35316
35317
35318 ac_config_commands="$ac_config_commands setup"
35319
35320 ac_config_commands="$ac_config_commands Makefile"
35321
35322
35323 ac_config_commands="$ac_config_commands Makefile.common"
35324
35325
35326 ac_config_commands="$ac_config_commands examples/Makefile"
35327
35328
35329 ac_config_commands="$ac_config_commands lib/Makefile"
35330
35331
35332 ac_config_commands="$ac_config_commands runtime/Makefile"
35333
35334
35335 ac_config_commands="$ac_config_commands test/Makefile"
35336
35337
35338 ac_config_commands="$ac_config_commands test/Makefile.tests"
35339
35340
35341 ac_config_commands="$ac_config_commands unittests/Makefile"
35342
35343
35344 ac_config_commands="$ac_config_commands tools/Makefile"
35345
35346
35347 ac_config_commands="$ac_config_commands utils/Makefile"
35348
35349
35350 ac_config_commands="$ac_config_commands projects/Makefile"
35351
35352
35353 ac_config_commands="$ac_config_commands bindings/Makefile"
35354
35355
35356 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35357
35358
35359
35360 cat >confcache <<\_ACEOF
35361 # This file is a shell script that caches the results of configure
35362 # tests run on this system so they can be shared between configure
35363 # scripts and configure runs, see configure's option --config-cache.
35364 # It is not useful on other systems.  If it contains results you don't
35365 # want to keep, you may remove or edit it.
35366 #
35367 # config.status only pays attention to the cache file if you give it
35368 # the --recheck option to rerun configure.
35369 #
35370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35372 # following values.
35373
35374 _ACEOF
35375
35376 # The following way of writing the cache mishandles newlines in values,
35377 # but we know of no workaround that is simple, portable, and efficient.
35378 # So, we kill variables containing newlines.
35379 # Ultrix sh set writes to stderr and can't be redirected directly,
35380 # and sets the high bit in the cache file unless we assign to the vars.
35381 (
35382   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35383     eval ac_val=\$$ac_var
35384     case $ac_val in #(
35385     *${as_nl}*)
35386       case $ac_var in #(
35387       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35388 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35389       esac
35390       case $ac_var in #(
35391       _ | IFS | as_nl) ;; #(
35392       *) $as_unset $ac_var ;;
35393       esac ;;
35394     esac
35395   done
35396
35397   (set) 2>&1 |
35398     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35399     *${as_nl}ac_space=\ *)
35400       # `set' does not quote correctly, so add quotes (double-quote
35401       # substitution turns \\\\ into \\, and sed turns \\ into \).
35402       sed -n \
35403         "s/'/'\\\\''/g;
35404           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35405       ;; #(
35406     *)
35407       # `set' quotes correctly as required by POSIX, so do not add quotes.
35408       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35409       ;;
35410     esac |
35411     sort
35412 ) |
35413   sed '
35414      /^ac_cv_env_/b end
35415      t clear
35416      :clear
35417      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35418      t end
35419      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35420      :end' >>confcache
35421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35422   if test -w "$cache_file"; then
35423     test "x$cache_file" != "x/dev/null" &&
35424       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35425 echo "$as_me: updating cache $cache_file" >&6;}
35426     cat confcache >$cache_file
35427   else
35428     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35429 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35430   fi
35431 fi
35432 rm -f confcache
35433
35434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35435 # Let make expand exec_prefix.
35436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35437
35438 DEFS=-DHAVE_CONFIG_H
35439
35440 ac_libobjs=
35441 ac_ltlibobjs=
35442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35443   # 1. Remove the extension, and $U if already installed.
35444   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35445   ac_i=`echo "$ac_i" | sed "$ac_script"`
35446   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35447   #    will be set to the directory where LIBOBJS objects are built.
35448   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35449   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35450 done
35451 LIBOBJS=$ac_libobjs
35452
35453 LTLIBOBJS=$ac_ltlibobjs
35454
35455
35456 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35457   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35458 Usually this means the macro was only invoked conditionally." >&5
35459 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35460 Usually this means the macro was only invoked conditionally." >&2;}
35461    { (exit 1); exit 1; }; }
35462 fi
35463 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35464   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35465 Usually this means the macro was only invoked conditionally." >&5
35466 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35467 Usually this means the macro was only invoked conditionally." >&2;}
35468    { (exit 1); exit 1; }; }
35469 fi
35470
35471 : ${CONFIG_STATUS=./config.status}
35472 ac_clean_files_save=$ac_clean_files
35473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35474 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35475 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35476 cat >$CONFIG_STATUS <<_ACEOF
35477 #! $SHELL
35478 # Generated by $as_me.
35479 # Run this file to recreate the current configuration.
35480 # Compiler output produced by configure, useful for debugging
35481 # configure, is in config.log if it exists.
35482
35483 debug=false
35484 ac_cs_recheck=false
35485 ac_cs_silent=false
35486 SHELL=\${CONFIG_SHELL-$SHELL}
35487 _ACEOF
35488
35489 cat >>$CONFIG_STATUS <<\_ACEOF
35490 ## --------------------- ##
35491 ## M4sh Initialization.  ##
35492 ## --------------------- ##
35493
35494 # Be Bourne compatible
35495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35496   emulate sh
35497   NULLCMD=:
35498   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35499   # is contrary to our usage.  Disable this feature.
35500   alias -g '${1+"$@"}'='"$@"'
35501   setopt NO_GLOB_SUBST
35502 else
35503   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35504 fi
35505 BIN_SH=xpg4; export BIN_SH # for Tru64
35506 DUALCASE=1; export DUALCASE # for MKS sh
35507
35508
35509 # PATH needs CR
35510 # Avoid depending upon Character Ranges.
35511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35514 as_cr_digits='0123456789'
35515 as_cr_alnum=$as_cr_Letters$as_cr_digits
35516
35517 # The user is always right.
35518 if test "${PATH_SEPARATOR+set}" != set; then
35519   echo "#! /bin/sh" >conf$$.sh
35520   echo  "exit 0"   >>conf$$.sh
35521   chmod +x conf$$.sh
35522   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35523     PATH_SEPARATOR=';'
35524   else
35525     PATH_SEPARATOR=:
35526   fi
35527   rm -f conf$$.sh
35528 fi
35529
35530 # Support unset when possible.
35531 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35532   as_unset=unset
35533 else
35534   as_unset=false
35535 fi
35536
35537
35538 # IFS
35539 # We need space, tab and new line, in precisely that order.  Quoting is
35540 # there to prevent editors from complaining about space-tab.
35541 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35542 # splitting by setting IFS to empty value.)
35543 as_nl='
35544 '
35545 IFS=" ""        $as_nl"
35546
35547 # Find who we are.  Look in the path if we contain no directory separator.
35548 case $0 in
35549   *[\\/]* ) as_myself=$0 ;;
35550   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35551 for as_dir in $PATH
35552 do
35553   IFS=$as_save_IFS
35554   test -z "$as_dir" && as_dir=.
35555   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35556 done
35557 IFS=$as_save_IFS
35558
35559      ;;
35560 esac
35561 # We did not find ourselves, most probably we were run as `sh COMMAND'
35562 # in which case we are not to be found in the path.
35563 if test "x$as_myself" = x; then
35564   as_myself=$0
35565 fi
35566 if test ! -f "$as_myself"; then
35567   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35568   { (exit 1); exit 1; }
35569 fi
35570
35571 # Work around bugs in pre-3.0 UWIN ksh.
35572 for as_var in ENV MAIL MAILPATH
35573 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35574 done
35575 PS1='$ '
35576 PS2='> '
35577 PS4='+ '
35578
35579 # NLS nuisances.
35580 for as_var in \
35581   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35582   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35583   LC_TELEPHONE LC_TIME
35584 do
35585   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35586     eval $as_var=C; export $as_var
35587   else
35588     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35589   fi
35590 done
35591
35592 # Required to use basename.
35593 if expr a : '\(a\)' >/dev/null 2>&1 &&
35594    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35595   as_expr=expr
35596 else
35597   as_expr=false
35598 fi
35599
35600 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35601   as_basename=basename
35602 else
35603   as_basename=false
35604 fi
35605
35606
35607 # Name of the executable.
35608 as_me=`$as_basename -- "$0" ||
35609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35610          X"$0" : 'X\(//\)$' \| \
35611          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35612 echo X/"$0" |
35613     sed '/^.*\/\([^/][^/]*\)\/*$/{
35614             s//\1/
35615             q
35616           }
35617           /^X\/\(\/\/\)$/{
35618             s//\1/
35619             q
35620           }
35621           /^X\/\(\/\).*/{
35622             s//\1/
35623             q
35624           }
35625           s/.*/./; q'`
35626
35627 # CDPATH.
35628 $as_unset CDPATH
35629
35630
35631
35632   as_lineno_1=$LINENO
35633   as_lineno_2=$LINENO
35634   test "x$as_lineno_1" != "x$as_lineno_2" &&
35635   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35636
35637   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35638   # uniformly replaced by the line number.  The first 'sed' inserts a
35639   # line-number line after each line using $LINENO; the second 'sed'
35640   # does the real work.  The second script uses 'N' to pair each
35641   # line-number line with the line containing $LINENO, and appends
35642   # trailing '-' during substitution so that $LINENO is not a special
35643   # case at line end.
35644   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35645   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35646   # E. McMahon (1931-1989) for sed's syntax.  :-)
35647   sed -n '
35648     p
35649     /[$]LINENO/=
35650   ' <$as_myself |
35651     sed '
35652       s/[$]LINENO.*/&-/
35653       t lineno
35654       b
35655       :lineno
35656       N
35657       :loop
35658       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35659       t loop
35660       s/-\n.*//
35661     ' >$as_me.lineno &&
35662   chmod +x "$as_me.lineno" ||
35663     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35664    { (exit 1); exit 1; }; }
35665
35666   # Don't try to exec as it changes $[0], causing all sort of problems
35667   # (the dirname of $[0] is not the place where we might find the
35668   # original and so on.  Autoconf is especially sensitive to this).
35669   . "./$as_me.lineno"
35670   # Exit status is that of the last command.
35671   exit
35672 }
35673
35674
35675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35676   as_dirname=dirname
35677 else
35678   as_dirname=false
35679 fi
35680
35681 ECHO_C= ECHO_N= ECHO_T=
35682 case `echo -n x` in
35683 -n*)
35684   case `echo 'x\c'` in
35685   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35686   *)   ECHO_C='\c';;
35687   esac;;
35688 *)
35689   ECHO_N='-n';;
35690 esac
35691
35692 if expr a : '\(a\)' >/dev/null 2>&1 &&
35693    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35694   as_expr=expr
35695 else
35696   as_expr=false
35697 fi
35698
35699 rm -f conf$$ conf$$.exe conf$$.file
35700 if test -d conf$$.dir; then
35701   rm -f conf$$.dir/conf$$.file
35702 else
35703   rm -f conf$$.dir
35704   mkdir conf$$.dir
35705 fi
35706 echo >conf$$.file
35707 if ln -s conf$$.file conf$$ 2>/dev/null; then
35708   as_ln_s='ln -s'
35709   # ... but there are two gotchas:
35710   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35711   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35712   # In both cases, we have to default to `cp -p'.
35713   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35714     as_ln_s='cp -p'
35715 elif ln conf$$.file conf$$ 2>/dev/null; then
35716   as_ln_s=ln
35717 else
35718   as_ln_s='cp -p'
35719 fi
35720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35721 rmdir conf$$.dir 2>/dev/null
35722
35723 if mkdir -p . 2>/dev/null; then
35724   as_mkdir_p=:
35725 else
35726   test -d ./-p && rmdir ./-p
35727   as_mkdir_p=false
35728 fi
35729
35730 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35731 # systems may use methods other than mode bits to determine executability.
35732 cat >conf$$.file <<_ASEOF
35733 #! /bin/sh
35734 exit 0
35735 _ASEOF
35736 chmod +x conf$$.file
35737 if test -x conf$$.file >/dev/null 2>&1; then
35738   as_executable_p="test -x"
35739 else
35740   as_executable_p=:
35741 fi
35742 rm -f conf$$.file
35743
35744 # Sed expression to map a string onto a valid CPP name.
35745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35746
35747 # Sed expression to map a string onto a valid variable name.
35748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35749
35750
35751 exec 6>&1
35752
35753 # Save the log message, to keep $[0] and so on meaningful, and to
35754 # report actual input values of CONFIG_FILES etc. instead of their
35755 # values after options handling.
35756 ac_log="
35757 This file was extended by llvm $as_me 2.7svn, which was
35758 generated by GNU Autoconf 2.60.  Invocation command line was
35759
35760   CONFIG_FILES    = $CONFIG_FILES
35761   CONFIG_HEADERS  = $CONFIG_HEADERS
35762   CONFIG_LINKS    = $CONFIG_LINKS
35763   CONFIG_COMMANDS = $CONFIG_COMMANDS
35764   $ $0 $@
35765
35766 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35767 "
35768
35769 _ACEOF
35770
35771 cat >>$CONFIG_STATUS <<_ACEOF
35772 # Files that config.status was made for.
35773 config_files="$ac_config_files"
35774 config_headers="$ac_config_headers"
35775 config_commands="$ac_config_commands"
35776
35777 _ACEOF
35778
35779 cat >>$CONFIG_STATUS <<\_ACEOF
35780 ac_cs_usage="\
35781 \`$as_me' instantiates files from templates according to the
35782 current configuration.
35783
35784 Usage: $0 [OPTIONS] [FILE]...
35785
35786   -h, --help       print this help, then exit
35787   -V, --version    print version number, then exit
35788   -q, --quiet      do not print progress messages
35789   -d, --debug      don't remove temporary files
35790       --recheck    update $as_me by reconfiguring in the same conditions
35791   --file=FILE[:TEMPLATE]
35792                    instantiate the configuration file FILE
35793   --header=FILE[:TEMPLATE]
35794                    instantiate the configuration header FILE
35795
35796 Configuration files:
35797 $config_files
35798
35799 Configuration headers:
35800 $config_headers
35801
35802 Configuration commands:
35803 $config_commands
35804
35805 Report bugs to <bug-autoconf@gnu.org>."
35806
35807 _ACEOF
35808 cat >>$CONFIG_STATUS <<_ACEOF
35809 ac_cs_version="\\
35810 llvm config.status 2.7svn
35811 configured by $0, generated by GNU Autoconf 2.60,
35812   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35813
35814 Copyright (C) 2006 Free Software Foundation, Inc.
35815 This config.status script is free software; the Free Software Foundation
35816 gives unlimited permission to copy, distribute and modify it."
35817
35818 ac_pwd='$ac_pwd'
35819 srcdir='$srcdir'
35820 INSTALL='$INSTALL'
35821 _ACEOF
35822
35823 cat >>$CONFIG_STATUS <<\_ACEOF
35824 # If no file are specified by the user, then we need to provide default
35825 # value.  By we need to know if files were specified by the user.
35826 ac_need_defaults=:
35827 while test $# != 0
35828 do
35829   case $1 in
35830   --*=*)
35831     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35832     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35833     ac_shift=:
35834     ;;
35835   *)
35836     ac_option=$1
35837     ac_optarg=$2
35838     ac_shift=shift
35839     ;;
35840   esac
35841
35842   case $ac_option in
35843   # Handling of the options.
35844   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35845     ac_cs_recheck=: ;;
35846   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35847     echo "$ac_cs_version"; exit ;;
35848   --debug | --debu | --deb | --de | --d | -d )
35849     debug=: ;;
35850   --file | --fil | --fi | --f )
35851     $ac_shift
35852     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35853     ac_need_defaults=false;;
35854   --header | --heade | --head | --hea )
35855     $ac_shift
35856     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35857     ac_need_defaults=false;;
35858   --he | --h)
35859     # Conflict between --help and --header
35860     { echo "$as_me: error: ambiguous option: $1
35861 Try \`$0 --help' for more information." >&2
35862    { (exit 1); exit 1; }; };;
35863   --help | --hel | -h )
35864     echo "$ac_cs_usage"; exit ;;
35865   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35866   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35867     ac_cs_silent=: ;;
35868
35869   # This is an error.
35870   -*) { echo "$as_me: error: unrecognized option: $1
35871 Try \`$0 --help' for more information." >&2
35872    { (exit 1); exit 1; }; } ;;
35873
35874   *) ac_config_targets="$ac_config_targets $1"
35875      ac_need_defaults=false ;;
35876
35877   esac
35878   shift
35879 done
35880
35881 ac_configure_extra_args=
35882
35883 if $ac_cs_silent; then
35884   exec 6>/dev/null
35885   ac_configure_extra_args="$ac_configure_extra_args --silent"
35886 fi
35887
35888 _ACEOF
35889 cat >>$CONFIG_STATUS <<_ACEOF
35890 if \$ac_cs_recheck; then
35891   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35892   CONFIG_SHELL=$SHELL
35893   export CONFIG_SHELL
35894   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35895 fi
35896
35897 _ACEOF
35898 cat >>$CONFIG_STATUS <<\_ACEOF
35899 exec 5>>config.log
35900 {
35901   echo
35902   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35903 ## Running $as_me. ##
35904 _ASBOX
35905   echo "$ac_log"
35906 } >&5
35907
35908 _ACEOF
35909 cat >>$CONFIG_STATUS <<_ACEOF
35910 #
35911 # INIT-COMMANDS
35912 #
35913 llvm_src="${srcdir}"
35914
35915 _ACEOF
35916
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35918
35919 # Handling of arguments.
35920 for ac_config_target in $ac_config_targets
35921 do
35922   case $ac_config_target in
35923     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35924     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35925     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35926     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35927     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
35928     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35929     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35930     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35931     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35932     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35933     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35934     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35935     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35936     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35937     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35938     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35939     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35940     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35941     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35942     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35943     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35944     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35945     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35946     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35947
35948   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35949 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35950    { (exit 1); exit 1; }; };;
35951   esac
35952 done
35953
35954
35955 # If the user did not use the arguments to specify the items to instantiate,
35956 # then the envvar interface is used.  Set only those that are not.
35957 # We use the long form for the default assignment because of an extremely
35958 # bizarre bug on SunOS 4.1.3.
35959 if $ac_need_defaults; then
35960   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35961   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35962   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35963 fi
35964
35965 # Have a temporary directory for convenience.  Make it in the build tree
35966 # simply because there is no reason against having it here, and in addition,
35967 # creating and moving files from /tmp can sometimes cause problems.
35968 # Hook for its removal unless debugging.
35969 # Note that there is a small window in which the directory will not be cleaned:
35970 # after its creation but before its name has been assigned to `$tmp'.
35971 $debug ||
35972 {
35973   tmp=
35974   trap 'exit_status=$?
35975   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35976 ' 0
35977   trap '{ (exit 1); exit 1; }' 1 2 13 15
35978 }
35979 # Create a (secure) tmp directory for tmp files.
35980
35981 {
35982   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35983   test -n "$tmp" && test -d "$tmp"
35984 }  ||
35985 {
35986   tmp=./conf$$-$RANDOM
35987   (umask 077 && mkdir "$tmp")
35988 } ||
35989 {
35990    echo "$me: cannot create a temporary directory in ." >&2
35991    { (exit 1); exit 1; }
35992 }
35993
35994 #
35995 # Set up the sed scripts for CONFIG_FILES section.
35996 #
35997
35998 # No need to generate the scripts if there are no CONFIG_FILES.
35999 # This happens for instance when ./config.status config.h
36000 if test -n "$CONFIG_FILES"; then
36001
36002 _ACEOF
36003
36004
36005
36006 ac_delim='%!_!# '
36007 for ac_last_try in false false false false false :; do
36008   cat >conf$$subs.sed <<_ACEOF
36009 SHELL!$SHELL$ac_delim
36010 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36011 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36012 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36013 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36014 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36015 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36016 exec_prefix!$exec_prefix$ac_delim
36017 prefix!$prefix$ac_delim
36018 program_transform_name!$program_transform_name$ac_delim
36019 bindir!$bindir$ac_delim
36020 sbindir!$sbindir$ac_delim
36021 libexecdir!$libexecdir$ac_delim
36022 datarootdir!$datarootdir$ac_delim
36023 datadir!$datadir$ac_delim
36024 sysconfdir!$sysconfdir$ac_delim
36025 sharedstatedir!$sharedstatedir$ac_delim
36026 localstatedir!$localstatedir$ac_delim
36027 includedir!$includedir$ac_delim
36028 oldincludedir!$oldincludedir$ac_delim
36029 docdir!$docdir$ac_delim
36030 infodir!$infodir$ac_delim
36031 htmldir!$htmldir$ac_delim
36032 dvidir!$dvidir$ac_delim
36033 pdfdir!$pdfdir$ac_delim
36034 psdir!$psdir$ac_delim
36035 libdir!$libdir$ac_delim
36036 localedir!$localedir$ac_delim
36037 mandir!$mandir$ac_delim
36038 DEFS!$DEFS$ac_delim
36039 ECHO_C!$ECHO_C$ac_delim
36040 ECHO_N!$ECHO_N$ac_delim
36041 ECHO_T!$ECHO_T$ac_delim
36042 LIBS!$LIBS$ac_delim
36043 build_alias!$build_alias$ac_delim
36044 host_alias!$host_alias$ac_delim
36045 target_alias!$target_alias$ac_delim
36046 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36047 subdirs!$subdirs$ac_delim
36048 build!$build$ac_delim
36049 build_cpu!$build_cpu$ac_delim
36050 build_vendor!$build_vendor$ac_delim
36051 build_os!$build_os$ac_delim
36052 host!$host$ac_delim
36053 host_cpu!$host_cpu$ac_delim
36054 host_vendor!$host_vendor$ac_delim
36055 host_os!$host_os$ac_delim
36056 target!$target$ac_delim
36057 target_cpu!$target_cpu$ac_delim
36058 target_vendor!$target_vendor$ac_delim
36059 target_os!$target_os$ac_delim
36060 OS!$OS$ac_delim
36061 HOST_OS!$HOST_OS$ac_delim
36062 TARGET_OS!$TARGET_OS$ac_delim
36063 LINKALL!$LINKALL$ac_delim
36064 NOLINKALL!$NOLINKALL$ac_delim
36065 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36066 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36067 ARCH!$ARCH$ac_delim
36068 ENDIAN!$ENDIAN$ac_delim
36069 CC!$CC$ac_delim
36070 CFLAGS!$CFLAGS$ac_delim
36071 LDFLAGS!$LDFLAGS$ac_delim
36072 CPPFLAGS!$CPPFLAGS$ac_delim
36073 ac_ct_CC!$ac_ct_CC$ac_delim
36074 EXEEXT!$EXEEXT$ac_delim
36075 OBJEXT!$OBJEXT$ac_delim
36076 CPP!$CPP$ac_delim
36077 GREP!$GREP$ac_delim
36078 EGREP!$EGREP$ac_delim
36079 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36080 BUILD_CC!$BUILD_CC$ac_delim
36081 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36082 BUILD_CXX!$BUILD_CXX$ac_delim
36083 CVSBUILD!$CVSBUILD$ac_delim
36084 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36085 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36086 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36087 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36088 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36089 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36090 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36091 JIT!$JIT$ac_delim
36092 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36095 ENABLE_PIC!$ENABLE_PIC$ac_delim
36096 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36097 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36099 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36100 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36101 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36102 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36103 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36104 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36105 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36106 _ACEOF
36107
36108   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36109     break
36110   elif $ac_last_try; then
36111     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36112 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36113    { (exit 1); exit 1; }; }
36114   else
36115     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36116   fi
36117 done
36118
36119 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36120 if test -n "$ac_eof"; then
36121   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36122   ac_eof=`expr $ac_eof + 1`
36123 fi
36124
36125 cat >>$CONFIG_STATUS <<_ACEOF
36126 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36128 _ACEOF
36129 sed '
36130 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36131 s/^/s,@/; s/!/@,|#_!!_#|/
36132 :n
36133 t n
36134 s/'"$ac_delim"'$/,g/; t
36135 s/$/\\/; p
36136 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36137 ' >>$CONFIG_STATUS <conf$$subs.sed
36138 rm -f conf$$subs.sed
36139 cat >>$CONFIG_STATUS <<_ACEOF
36140 CEOF$ac_eof
36141 _ACEOF
36142
36143
36144 ac_delim='%!_!# '
36145 for ac_last_try in false false false false false :; do
36146   cat >conf$$subs.sed <<_ACEOF
36147 CXX!$CXX$ac_delim
36148 CXXFLAGS!$CXXFLAGS$ac_delim
36149 ac_ct_CXX!$ac_ct_CXX$ac_delim
36150 NM!$NM$ac_delim
36151 ifGNUmake!$ifGNUmake$ac_delim
36152 LN_S!$LN_S$ac_delim
36153 CMP!$CMP$ac_delim
36154 CP!$CP$ac_delim
36155 DATE!$DATE$ac_delim
36156 FIND!$FIND$ac_delim
36157 MKDIR!$MKDIR$ac_delim
36158 MV!$MV$ac_delim
36159 RANLIB!$RANLIB$ac_delim
36160 RM!$RM$ac_delim
36161 SED!$SED$ac_delim
36162 TAR!$TAR$ac_delim
36163 BINPWD!$BINPWD$ac_delim
36164 GRAPHVIZ!$GRAPHVIZ$ac_delim
36165 DOT!$DOT$ac_delim
36166 FDP!$FDP$ac_delim
36167 NEATO!$NEATO$ac_delim
36168 TWOPI!$TWOPI$ac_delim
36169 CIRCO!$CIRCO$ac_delim
36170 GV!$GV$ac_delim
36171 DOTTY!$DOTTY$ac_delim
36172 PERL!$PERL$ac_delim
36173 HAVE_PERL!$HAVE_PERL$ac_delim
36174 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36175 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36176 INSTALL_DATA!$INSTALL_DATA$ac_delim
36177 BZIP2!$BZIP2$ac_delim
36178 DOXYGEN!$DOXYGEN$ac_delim
36179 GROFF!$GROFF$ac_delim
36180 GZIP!$GZIP$ac_delim
36181 POD2HTML!$POD2HTML$ac_delim
36182 POD2MAN!$POD2MAN$ac_delim
36183 RUNTEST!$RUNTEST$ac_delim
36184 TCLSH!$TCLSH$ac_delim
36185 ZIP!$ZIP$ac_delim
36186 OCAMLC!$OCAMLC$ac_delim
36187 OCAMLOPT!$OCAMLOPT$ac_delim
36188 OCAMLDEP!$OCAMLDEP$ac_delim
36189 OCAMLDOC!$OCAMLDOC$ac_delim
36190 GAS!$GAS$ac_delim
36191 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36192 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36193 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36194 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36195 LIBADD_DL!$LIBADD_DL$ac_delim
36196 ECHO!$ECHO$ac_delim
36197 AR!$AR$ac_delim
36198 STRIP!$STRIP$ac_delim
36199 CXXCPP!$CXXCPP$ac_delim
36200 F77!$F77$ac_delim
36201 FFLAGS!$FFLAGS$ac_delim
36202 ac_ct_F77!$ac_ct_F77$ac_delim
36203 LIBTOOL!$LIBTOOL$ac_delim
36204 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36205 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36206 LLVMGCC!$LLVMGCC$ac_delim
36207 LLVMGXX!$LLVMGXX$ac_delim
36208 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36209 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36210 USE_UDIS86!$USE_UDIS86$ac_delim
36211 USE_OPROFILE!$USE_OPROFILE$ac_delim
36212 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36213 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36214 ALLOCA!$ALLOCA$ac_delim
36215 MMAP_FILE!$MMAP_FILE$ac_delim
36216 LLVMCC1!$LLVMCC1$ac_delim
36217 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36218 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36219 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36220 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36221 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36222 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36223 SHLIBEXT!$SHLIBEXT$ac_delim
36224 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36225 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36226 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36227 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36228 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36229 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36230 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36231 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36232 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36233 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36234 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36235 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36236 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36237 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36238 RPATH!$RPATH$ac_delim
36239 RDYNAMIC!$RDYNAMIC$ac_delim
36240 LIBOBJS!$LIBOBJS$ac_delim
36241 LTLIBOBJS!$LTLIBOBJS$ac_delim
36242 _ACEOF
36243
36244   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
36245     break
36246   elif $ac_last_try; then
36247     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36248 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36249    { (exit 1); exit 1; }; }
36250   else
36251     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36252   fi
36253 done
36254
36255 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36256 if test -n "$ac_eof"; then
36257   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36258   ac_eof=`expr $ac_eof + 1`
36259 fi
36260
36261 cat >>$CONFIG_STATUS <<_ACEOF
36262 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36264 _ACEOF
36265 sed '
36266 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36267 s/^/s,@/; s/!/@,|#_!!_#|/
36268 :n
36269 t n
36270 s/'"$ac_delim"'$/,g/; t
36271 s/$/\\/; p
36272 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36273 ' >>$CONFIG_STATUS <conf$$subs.sed
36274 rm -f conf$$subs.sed
36275 cat >>$CONFIG_STATUS <<_ACEOF
36276 :end
36277 s/|#_!!_#|//g
36278 CEOF$ac_eof
36279 _ACEOF
36280
36281
36282 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36283 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36284 # trailing colons and then remove the whole line if VPATH becomes empty
36285 # (actually we leave an empty line to preserve line numbers).
36286 if test "x$srcdir" = x.; then
36287   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36288 s/:*\$(srcdir):*/:/
36289 s/:*\${srcdir}:*/:/
36290 s/:*@srcdir@:*/:/
36291 s/^\([^=]*=[     ]*\):*/\1/
36292 s/:*$//
36293 s/^[^=]*=[       ]*$//
36294 }'
36295 fi
36296
36297 cat >>$CONFIG_STATUS <<\_ACEOF
36298 fi # test -n "$CONFIG_FILES"
36299
36300
36301 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36302 do
36303   case $ac_tag in
36304   :[FHLC]) ac_mode=$ac_tag; continue;;
36305   esac
36306   case $ac_mode$ac_tag in
36307   :[FHL]*:*);;
36308   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36309 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36310    { (exit 1); exit 1; }; };;
36311   :[FH]-) ac_tag=-:-;;
36312   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36313   esac
36314   ac_save_IFS=$IFS
36315   IFS=:
36316   set x $ac_tag
36317   IFS=$ac_save_IFS
36318   shift
36319   ac_file=$1
36320   shift
36321
36322   case $ac_mode in
36323   :L) ac_source=$1;;
36324   :[FH])
36325     ac_file_inputs=
36326     for ac_f
36327     do
36328       case $ac_f in
36329       -) ac_f="$tmp/stdin";;
36330       *) # Look for the file first in the build tree, then in the source tree
36331          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36332          # because $ac_f cannot contain `:'.
36333          test -f "$ac_f" ||
36334            case $ac_f in
36335            [\\/$]*) false;;
36336            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36337            esac ||
36338            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36339 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36340    { (exit 1); exit 1; }; };;
36341       esac
36342       ac_file_inputs="$ac_file_inputs $ac_f"
36343     done
36344
36345     # Let's still pretend it is `configure' which instantiates (i.e., don't
36346     # use $as_me), people would be surprised to read:
36347     #    /* config.h.  Generated by config.status.  */
36348     configure_input="Generated from "`IFS=:
36349           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36350     if test x"$ac_file" != x-; then
36351       configure_input="$ac_file.  $configure_input"
36352       { echo "$as_me:$LINENO: creating $ac_file" >&5
36353 echo "$as_me: creating $ac_file" >&6;}
36354     fi
36355
36356     case $ac_tag in
36357     *:-:* | *:-) cat >"$tmp/stdin";;
36358     esac
36359     ;;
36360   esac
36361
36362   ac_dir=`$as_dirname -- "$ac_file" ||
36363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36364          X"$ac_file" : 'X\(//\)[^/]' \| \
36365          X"$ac_file" : 'X\(//\)$' \| \
36366          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36367 echo X"$ac_file" |
36368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36369             s//\1/
36370             q
36371           }
36372           /^X\(\/\/\)[^/].*/{
36373             s//\1/
36374             q
36375           }
36376           /^X\(\/\/\)$/{
36377             s//\1/
36378             q
36379           }
36380           /^X\(\/\).*/{
36381             s//\1/
36382             q
36383           }
36384           s/.*/./; q'`
36385   { as_dir="$ac_dir"
36386   case $as_dir in #(
36387   -*) as_dir=./$as_dir;;
36388   esac
36389   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36390     as_dirs=
36391     while :; do
36392       case $as_dir in #(
36393       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36394       *) as_qdir=$as_dir;;
36395       esac
36396       as_dirs="'$as_qdir' $as_dirs"
36397       as_dir=`$as_dirname -- "$as_dir" ||
36398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36399          X"$as_dir" : 'X\(//\)[^/]' \| \
36400          X"$as_dir" : 'X\(//\)$' \| \
36401          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36402 echo X"$as_dir" |
36403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36404             s//\1/
36405             q
36406           }
36407           /^X\(\/\/\)[^/].*/{
36408             s//\1/
36409             q
36410           }
36411           /^X\(\/\/\)$/{
36412             s//\1/
36413             q
36414           }
36415           /^X\(\/\).*/{
36416             s//\1/
36417             q
36418           }
36419           s/.*/./; q'`
36420       test -d "$as_dir" && break
36421     done
36422     test -z "$as_dirs" || eval "mkdir $as_dirs"
36423   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36424 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36425    { (exit 1); exit 1; }; }; }
36426   ac_builddir=.
36427
36428 case "$ac_dir" in
36429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36430 *)
36431   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36432   # A ".." for each directory in $ac_dir_suffix.
36433   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36434   case $ac_top_builddir_sub in
36435   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36436   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36437   esac ;;
36438 esac
36439 ac_abs_top_builddir=$ac_pwd
36440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36441 # for backward compatibility:
36442 ac_top_builddir=$ac_top_build_prefix
36443
36444 case $srcdir in
36445   .)  # We are building in place.
36446     ac_srcdir=.
36447     ac_top_srcdir=$ac_top_builddir_sub
36448     ac_abs_top_srcdir=$ac_pwd ;;
36449   [\\/]* | ?:[\\/]* )  # Absolute name.
36450     ac_srcdir=$srcdir$ac_dir_suffix;
36451     ac_top_srcdir=$srcdir
36452     ac_abs_top_srcdir=$srcdir ;;
36453   *) # Relative name.
36454     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36455     ac_top_srcdir=$ac_top_build_prefix$srcdir
36456     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36457 esac
36458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36459
36460
36461   case $ac_mode in
36462   :F)
36463   #
36464   # CONFIG_FILE
36465   #
36466
36467   case $INSTALL in
36468   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36469   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36470   esac
36471 _ACEOF
36472
36473 cat >>$CONFIG_STATUS <<\_ACEOF
36474 # If the template does not know about datarootdir, expand it.
36475 # FIXME: This hack should be removed a few years after 2.60.
36476 ac_datarootdir_hack=; ac_datarootdir_seen=
36477
36478 case `sed -n '/datarootdir/ {
36479   p
36480   q
36481 }
36482 /@datadir@/p
36483 /@docdir@/p
36484 /@infodir@/p
36485 /@localedir@/p
36486 /@mandir@/p
36487 ' $ac_file_inputs` in
36488 *datarootdir*) ac_datarootdir_seen=yes;;
36489 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36490   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36491 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36492 _ACEOF
36493 cat >>$CONFIG_STATUS <<_ACEOF
36494   ac_datarootdir_hack='
36495   s&@datadir@&$datadir&g
36496   s&@docdir@&$docdir&g
36497   s&@infodir@&$infodir&g
36498   s&@localedir@&$localedir&g
36499   s&@mandir@&$mandir&g
36500     s&\\\${datarootdir}&$datarootdir&g' ;;
36501 esac
36502 _ACEOF
36503
36504 # Neutralize VPATH when `$srcdir' = `.'.
36505 # Shell code in configure.ac might set extrasub.
36506 # FIXME: do we really want to maintain this feature?
36507 cat >>$CONFIG_STATUS <<_ACEOF
36508   sed "$ac_vpsub
36509 $extrasub
36510 _ACEOF
36511 cat >>$CONFIG_STATUS <<\_ACEOF
36512 :t
36513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36514 s&@configure_input@&$configure_input&;t t
36515 s&@top_builddir@&$ac_top_builddir_sub&;t t
36516 s&@srcdir@&$ac_srcdir&;t t
36517 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36518 s&@top_srcdir@&$ac_top_srcdir&;t t
36519 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36520 s&@builddir@&$ac_builddir&;t t
36521 s&@abs_builddir@&$ac_abs_builddir&;t t
36522 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36523 s&@INSTALL@&$ac_INSTALL&;t t
36524 $ac_datarootdir_hack
36525 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36526
36527 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36528   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36529   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36530   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36531 which seems to be undefined.  Please make sure it is defined." >&5
36532 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36533 which seems to be undefined.  Please make sure it is defined." >&2;}
36534
36535   rm -f "$tmp/stdin"
36536   case $ac_file in
36537   -) cat "$tmp/out"; rm -f "$tmp/out";;
36538   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36539   esac
36540  ;;
36541   :H)
36542   #
36543   # CONFIG_HEADER
36544   #
36545 _ACEOF
36546
36547 # Transform confdefs.h into a sed script `conftest.defines', that
36548 # substitutes the proper values into config.h.in to produce config.h.
36549 rm -f conftest.defines conftest.tail
36550 # First, append a space to every undef/define line, to ease matching.
36551 echo 's/$/ /' >conftest.defines
36552 # Then, protect against being on the right side of a sed subst, or in
36553 # an unquoted here document, in config.status.  If some macros were
36554 # called several times there might be several #defines for the same
36555 # symbol, which is useless.  But do not sort them, since the last
36556 # AC_DEFINE must be honored.
36557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36558 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36559 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36560 # PARAMS is the parameter list in the macro definition--in most cases, it's
36561 # just an empty string.
36562 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36563 ac_dB='\\)[      (].*,\\1define\\2'
36564 ac_dC=' '
36565 ac_dD=' ,'
36566
36567 uniq confdefs.h |
36568   sed -n '
36569         t rset
36570         :rset
36571         s/^[     ]*#[    ]*define[       ][      ]*//
36572         t ok
36573         d
36574         :ok
36575         s/[\\&,]/\\&/g
36576         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36577         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36578   ' >>conftest.defines
36579
36580 # Remove the space that was appended to ease matching.
36581 # Then replace #undef with comments.  This is necessary, for
36582 # example, in the case of _POSIX_SOURCE, which is predefined and required
36583 # on some systems where configure will not decide to define it.
36584 # (The regexp can be short, since the line contains either #define or #undef.)
36585 echo 's/ $//
36586 s,^[     #]*u.*,/* & */,' >>conftest.defines
36587
36588 # Break up conftest.defines:
36589 ac_max_sed_lines=50
36590
36591 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36592 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36593 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36594 # et cetera.
36595 ac_in='$ac_file_inputs'
36596 ac_out='"$tmp/out1"'
36597 ac_nxt='"$tmp/out2"'
36598
36599 while :
36600 do
36601   # Write a here document:
36602     cat >>$CONFIG_STATUS <<_ACEOF
36603     # First, check the format of the line:
36604     cat >"\$tmp/defines.sed" <<\\CEOF
36605 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36606 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36607 b
36608 :def
36609 _ACEOF
36610   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36611   echo 'CEOF
36612     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36613   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36614   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36615   grep . conftest.tail >/dev/null || break
36616   rm -f conftest.defines
36617   mv conftest.tail conftest.defines
36618 done
36619 rm -f conftest.defines conftest.tail
36620
36621 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36622 cat >>$CONFIG_STATUS <<\_ACEOF
36623   if test x"$ac_file" != x-; then
36624     echo "/* $configure_input  */" >"$tmp/config.h"
36625     cat "$ac_result" >>"$tmp/config.h"
36626     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36627       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36628 echo "$as_me: $ac_file is unchanged" >&6;}
36629     else
36630       rm -f $ac_file
36631       mv "$tmp/config.h" $ac_file
36632     fi
36633   else
36634     echo "/* $configure_input  */"
36635     cat "$ac_result"
36636   fi
36637   rm -f "$tmp/out12"
36638  ;;
36639
36640   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36641 echo "$as_me: executing $ac_file commands" >&6;}
36642  ;;
36643   esac
36644
36645
36646   case $ac_file$ac_mode in
36647     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36648    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36649     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36650    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36651     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36652    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36653     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36654    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36655     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36656    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36657     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36658    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36659     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36660    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36661     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36662    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36663     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36664    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36665     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36666    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36667     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36668    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36669     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36670    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36671     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36672    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36673
36674   esac
36675 done # for ac_tag
36676
36677
36678 { (exit 0); exit 0; }
36679 _ACEOF
36680 chmod +x $CONFIG_STATUS
36681 ac_clean_files=$ac_clean_files_save
36682
36683
36684 # configure is writing to config.log, and then calls config.status.
36685 # config.status does its own redirection, appending to config.log.
36686 # Unfortunately, on DOS this fails, as config.log is still kept open
36687 # by configure, so config.status won't be able to write to it; its
36688 # output is simply discarded.  So we exec the FD to /dev/null,
36689 # effectively closing config.log, so it can be properly (re)opened and
36690 # appended to by config.status.  When coming back to configure, we
36691 # need to make the FD available again.
36692 if test "$no_create" != yes; then
36693   ac_cs_success=:
36694   ac_config_status_args=
36695   test "$silent" = yes &&
36696     ac_config_status_args="$ac_config_status_args --quiet"
36697   exec 5>/dev/null
36698   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36699   exec 5>>config.log
36700   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36701   # would make configure fail if this is the last instruction.
36702   $ac_cs_success || { (exit 1); exit 1; }
36703 fi
36704
36705 #
36706 # CONFIG_SUBDIRS section.
36707 #
36708 if test "$no_recursion" != yes; then
36709
36710   # Remove --cache-file and --srcdir arguments so they do not pile up.
36711   ac_sub_configure_args=
36712   ac_prev=
36713   eval "set x $ac_configure_args"
36714   shift
36715   for ac_arg
36716   do
36717     if test -n "$ac_prev"; then
36718       ac_prev=
36719       continue
36720     fi
36721     case $ac_arg in
36722     -cache-file | --cache-file | --cache-fil | --cache-fi \
36723     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36724       ac_prev=cache_file ;;
36725     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36726     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36727     | --c=*)
36728       ;;
36729     --config-cache | -C)
36730       ;;
36731     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36732       ac_prev=srcdir ;;
36733     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36734       ;;
36735     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36736       ac_prev=prefix ;;
36737     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36738       ;;
36739     *)
36740       case $ac_arg in
36741       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36742       esac
36743       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36744     esac
36745   done
36746
36747   # Always prepend --prefix to ensure using the same prefix
36748   # in subdir configurations.
36749   ac_arg="--prefix=$prefix"
36750   case $ac_arg in
36751   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36752   esac
36753   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36754
36755   ac_popdir=`pwd`
36756   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36757
36758     # Do not complain, so a configure script can configure whichever
36759     # parts of a large source tree are present.
36760     test -d "$srcdir/$ac_dir" || continue
36761
36762     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36763     echo "$as_me:$LINENO: $ac_msg" >&5
36764     echo "$ac_msg" >&6
36765     { as_dir="$ac_dir"
36766   case $as_dir in #(
36767   -*) as_dir=./$as_dir;;
36768   esac
36769   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36770     as_dirs=
36771     while :; do
36772       case $as_dir in #(
36773       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36774       *) as_qdir=$as_dir;;
36775       esac
36776       as_dirs="'$as_qdir' $as_dirs"
36777       as_dir=`$as_dirname -- "$as_dir" ||
36778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36779          X"$as_dir" : 'X\(//\)[^/]' \| \
36780          X"$as_dir" : 'X\(//\)$' \| \
36781          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36782 echo X"$as_dir" |
36783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36784             s//\1/
36785             q
36786           }
36787           /^X\(\/\/\)[^/].*/{
36788             s//\1/
36789             q
36790           }
36791           /^X\(\/\/\)$/{
36792             s//\1/
36793             q
36794           }
36795           /^X\(\/\).*/{
36796             s//\1/
36797             q
36798           }
36799           s/.*/./; q'`
36800       test -d "$as_dir" && break
36801     done
36802     test -z "$as_dirs" || eval "mkdir $as_dirs"
36803   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36804 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36805    { (exit 1); exit 1; }; }; }
36806     ac_builddir=.
36807
36808 case "$ac_dir" in
36809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36810 *)
36811   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36812   # A ".." for each directory in $ac_dir_suffix.
36813   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36814   case $ac_top_builddir_sub in
36815   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36816   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36817   esac ;;
36818 esac
36819 ac_abs_top_builddir=$ac_pwd
36820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36821 # for backward compatibility:
36822 ac_top_builddir=$ac_top_build_prefix
36823
36824 case $srcdir in
36825   .)  # We are building in place.
36826     ac_srcdir=.
36827     ac_top_srcdir=$ac_top_builddir_sub
36828     ac_abs_top_srcdir=$ac_pwd ;;
36829   [\\/]* | ?:[\\/]* )  # Absolute name.
36830     ac_srcdir=$srcdir$ac_dir_suffix;
36831     ac_top_srcdir=$srcdir
36832     ac_abs_top_srcdir=$srcdir ;;
36833   *) # Relative name.
36834     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36835     ac_top_srcdir=$ac_top_build_prefix$srcdir
36836     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36837 esac
36838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36839
36840
36841     cd "$ac_dir"
36842
36843     # Check for guested configure; otherwise get Cygnus style configure.
36844     if test -f "$ac_srcdir/configure.gnu"; then
36845       ac_sub_configure=$ac_srcdir/configure.gnu
36846     elif test -f "$ac_srcdir/configure"; then
36847       ac_sub_configure=$ac_srcdir/configure
36848     elif test -f "$ac_srcdir/configure.in"; then
36849       # This should be Cygnus configure.
36850       ac_sub_configure=$ac_aux_dir/configure
36851     else
36852       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36853 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36854       ac_sub_configure=
36855     fi
36856
36857     # The recursion is here.
36858     if test -n "$ac_sub_configure"; then
36859       # Make the cache file name correct relative to the subdirectory.
36860       case $cache_file in
36861       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36862       *) # Relative name.
36863         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36864       esac
36865
36866       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36867 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36868       # The eval makes quoting arguments work.
36869       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36870            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36871         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36872 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36873    { (exit 1); exit 1; }; }
36874     fi
36875
36876     cd "$ac_popdir"
36877   done
36878 fi
36879