Add the --with-c-include-dirs to llvm's configure.
[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-c-include-dirs   Colon separated list of directories clang will
1607                           search for headers
1608   --with-binutils-include Specify path to binutils/include/ containing
1609                           plugin-api.h file for gold plugin.
1610   --with-tclinclude       directory where tcl headers are
1611   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1612   --with-pic              try to use only PIC/non-PIC objects [default=use
1613                           both]
1614   --with-tags[=TAGS]      include additional configurations [automatic]
1615   --with-udis86=<path>    Use udis86 external x86 disassembler library
1616   --with-oprofile=<prefix>
1617                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1618
1619 Some influential environment variables:
1620   CC          C compiler command
1621   CFLAGS      C compiler flags
1622   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1623               nonstandard directory <lib dir>
1624   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625               you have headers in a nonstandard directory <include dir>
1626   CPP         C preprocessor
1627   CXX         C++ compiler command
1628   CXXFLAGS    C++ compiler flags
1629   CXXCPP      C++ preprocessor
1630   F77         Fortran 77 compiler command
1631   FFLAGS      Fortran 77 compiler flags
1632
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1635
1636 Report bugs to <llvmbugs@cs.uiuc.edu>.
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642   # If there are subdirs, report their specific --help.
1643   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644     test -d "$ac_dir" || continue
1645     ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1651   # A ".." for each directory in $ac_dir_suffix.
1652   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1653   case $ac_top_builddir_sub in
1654   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656   esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664   .)  # We are building in place.
1665     ac_srcdir=.
1666     ac_top_srcdir=$ac_top_builddir_sub
1667     ac_abs_top_srcdir=$ac_pwd ;;
1668   [\\/]* | ?:[\\/]* )  # Absolute name.
1669     ac_srcdir=$srcdir$ac_dir_suffix;
1670     ac_top_srcdir=$srcdir
1671     ac_abs_top_srcdir=$srcdir ;;
1672   *) # Relative name.
1673     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674     ac_top_srcdir=$ac_top_build_prefix$srcdir
1675     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679     cd "$ac_dir" || { ac_status=$?; continue; }
1680     # Check for guested configure.
1681     if test -f "$ac_srcdir/configure.gnu"; then
1682       echo &&
1683       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684     elif test -f "$ac_srcdir/configure"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure" --help=recursive
1687     else
1688       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689     fi || ac_status=$?
1690     cd "$ac_pwd" || { ac_status=$?; break; }
1691   done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696   cat <<\_ACEOF
1697 llvm configure 2.7svn
1698 generated by GNU Autoconf 2.60
1699
1700 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1701 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704
1705 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1706 _ACEOF
1707   exit
1708 fi
1709 cat >config.log <<_ACEOF
1710 This file contains any messages produced by compilers while
1711 running configure, to aid debugging if configure makes a mistake.
1712
1713 It was created by llvm $as_me 2.7svn, which was
1714 generated by GNU Autoconf 2.60.  Invocation command line was
1715
1716   $ $0 $@
1717
1718 _ACEOF
1719 exec 5>>config.log
1720 {
1721 cat <<_ASUNAME
1722 ## --------- ##
1723 ## Platform. ##
1724 ## --------- ##
1725
1726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731
1732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1734
1735 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1736 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1738 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1739 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1740 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1741 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1742
1743 _ASUNAME
1744
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   echo "PATH: $as_dir"
1751 done
1752 IFS=$as_save_IFS
1753
1754 } >&5
1755
1756 cat >&5 <<_ACEOF
1757
1758
1759 ## ----------- ##
1760 ## Core tests. ##
1761 ## ----------- ##
1762
1763 _ACEOF
1764
1765
1766 # Keep a trace of the command line.
1767 # Strip out --no-create and --no-recursion so they do not pile up.
1768 # Strip out --silent because we don't want to record it for future runs.
1769 # Also quote any args containing shell meta-characters.
1770 # Make two passes to allow for proper duplicate-argument suppression.
1771 ac_configure_args=
1772 ac_configure_args0=
1773 ac_configure_args1=
1774 ac_must_keep_next=false
1775 for ac_pass in 1 2
1776 do
1777   for ac_arg
1778   do
1779     case $ac_arg in
1780     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782     | -silent | --silent | --silen | --sile | --sil)
1783       continue ;;
1784     *\'*)
1785       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786     esac
1787     case $ac_pass in
1788     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789     2)
1790       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791       if test $ac_must_keep_next = true; then
1792         ac_must_keep_next=false # Got value, back to normal.
1793       else
1794         case $ac_arg in
1795           *=* | --config-cache | -C | -disable-* | --disable-* \
1796           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798           | -with-* | --with-* | -without-* | --without-* | --x)
1799             case "$ac_configure_args0 " in
1800               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801             esac
1802             ;;
1803           -* ) ac_must_keep_next=true ;;
1804         esac
1805       fi
1806       ac_configure_args="$ac_configure_args '$ac_arg'"
1807       ;;
1808     esac
1809   done
1810 done
1811 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1813
1814 # When interrupted or exit'd, cleanup temporary files, and complete
1815 # config.log.  We remove comments because anyway the quotes in there
1816 # would cause problems or look ugly.
1817 # WARNING: Use '\'' to represent an apostrophe within the trap.
1818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1819 trap 'exit_status=$?
1820   # Save into config.log some information that might help in debugging.
1821   {
1822     echo
1823
1824     cat <<\_ASBOX
1825 ## ---------------- ##
1826 ## Cache variables. ##
1827 ## ---------------- ##
1828 _ASBOX
1829     echo
1830     # The following way of writing the cache mishandles newlines in values,
1831 (
1832   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833     eval ac_val=\$$ac_var
1834     case $ac_val in #(
1835     *${as_nl}*)
1836       case $ac_var in #(
1837       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1839       esac
1840       case $ac_var in #(
1841       _ | IFS | as_nl) ;; #(
1842       *) $as_unset $ac_var ;;
1843       esac ;;
1844     esac
1845   done
1846   (set) 2>&1 |
1847     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848     *${as_nl}ac_space=\ *)
1849       sed -n \
1850         "s/'\''/'\''\\\\'\'''\''/g;
1851           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852       ;; #(
1853     *)
1854       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855       ;;
1856     esac |
1857     sort
1858 )
1859     echo
1860
1861     cat <<\_ASBOX
1862 ## ----------------- ##
1863 ## Output variables. ##
1864 ## ----------------- ##
1865 _ASBOX
1866     echo
1867     for ac_var in $ac_subst_vars
1868     do
1869       eval ac_val=\$$ac_var
1870       case $ac_val in
1871       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872       esac
1873       echo "$ac_var='\''$ac_val'\''"
1874     done | sort
1875     echo
1876
1877     if test -n "$ac_subst_files"; then
1878       cat <<\_ASBOX
1879 ## ------------------- ##
1880 ## File substitutions. ##
1881 ## ------------------- ##
1882 _ASBOX
1883       echo
1884       for ac_var in $ac_subst_files
1885       do
1886         eval ac_val=\$$ac_var
1887         case $ac_val in
1888         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889         esac
1890         echo "$ac_var='\''$ac_val'\''"
1891       done | sort
1892       echo
1893     fi
1894
1895     if test -s confdefs.h; then
1896       cat <<\_ASBOX
1897 ## ----------- ##
1898 ## confdefs.h. ##
1899 ## ----------- ##
1900 _ASBOX
1901       echo
1902       cat confdefs.h
1903       echo
1904     fi
1905     test "$ac_signal" != 0 &&
1906       echo "$as_me: caught signal $ac_signal"
1907     echo "$as_me: exit $exit_status"
1908   } >&5
1909   rm -f core *.core core.conftest.* &&
1910     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911     exit $exit_status
1912 ' 0
1913 for ac_signal in 1 2 13 15; do
1914   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915 done
1916 ac_signal=0
1917
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1920
1921 # Predefined preprocessor variables.
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_NAME "$PACKAGE_NAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_STRING "$PACKAGE_STRING"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945 _ACEOF
1946
1947
1948 # Let the site file select an alternate cache file if it wants to.
1949 # Prefer explicitly selected file to automatically selected ones.
1950 if test -n "$CONFIG_SITE"; then
1951   set x "$CONFIG_SITE"
1952 elif test "x$prefix" != xNONE; then
1953   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1954 else
1955   set x "$ac_default_prefix/share/config.site" \
1956         "$ac_default_prefix/etc/config.site"
1957 fi
1958 shift
1959 for ac_site_file
1960 do
1961   if test -r "$ac_site_file"; then
1962     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1963 echo "$as_me: loading site script $ac_site_file" >&6;}
1964     sed 's/^/| /' "$ac_site_file" >&5
1965     . "$ac_site_file"
1966   fi
1967 done
1968
1969 if test -r "$cache_file"; then
1970   # Some versions of bash will fail to source /dev/null (special
1971   # files actually), so we avoid doing that.
1972   if test -f "$cache_file"; then
1973     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1974 echo "$as_me: loading cache $cache_file" >&6;}
1975     case $cache_file in
1976       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977       *)                      . "./$cache_file";;
1978     esac
1979   fi
1980 else
1981   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1982 echo "$as_me: creating cache $cache_file" >&6;}
1983   >$cache_file
1984 fi
1985
1986 # Check that the precious variables saved in the cache have kept the same
1987 # value.
1988 ac_cache_corrupted=false
1989 for ac_var in $ac_precious_vars; do
1990   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991   eval ac_new_set=\$ac_env_${ac_var}_set
1992   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993   eval ac_new_val=\$ac_env_${ac_var}_value
1994   case $ac_old_set,$ac_new_set in
1995     set,)
1996       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998       ac_cache_corrupted=: ;;
1999     ,set)
2000       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002       ac_cache_corrupted=: ;;
2003     ,);;
2004     *)
2005       if test "x$ac_old_val" != "x$ac_new_val"; then
2006         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2009 echo "$as_me:   former value:  $ac_old_val" >&2;}
2010         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2011 echo "$as_me:   current value: $ac_new_val" >&2;}
2012         ac_cache_corrupted=:
2013       fi;;
2014   esac
2015   # Pass precious variables to config.status.
2016   if test "$ac_new_set" = set; then
2017     case $ac_new_val in
2018     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019     *) ac_arg=$ac_var=$ac_new_val ;;
2020     esac
2021     case " $ac_configure_args " in
2022       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2023       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024     esac
2025   fi
2026 done
2027 if $ac_cache_corrupted; then
2028   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064
2065
2066
2067 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2068
2069
2070
2071
2072
2073
2074
2075 ac_aux_dir=
2076 for ac_dir in autoconf "$srcdir"/autoconf; do
2077   if test -f "$ac_dir/install-sh"; then
2078     ac_aux_dir=$ac_dir
2079     ac_install_sh="$ac_aux_dir/install-sh -c"
2080     break
2081   elif test -f "$ac_dir/install.sh"; then
2082     ac_aux_dir=$ac_dir
2083     ac_install_sh="$ac_aux_dir/install.sh -c"
2084     break
2085   elif test -f "$ac_dir/shtool"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/shtool install -c"
2088     break
2089   fi
2090 done
2091 if test -z "$ac_aux_dir"; then
2092   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2093 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2094    { (exit 1); exit 1; }; }
2095 fi
2096
2097 # These three variables are undocumented and unsupported,
2098 # and are intended to be withdrawn in a future Autoconf release.
2099 # They can cause serious problems if a builder's source tree is in a directory
2100 # whose full name contains unusual characters.
2101 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2102 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2103 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2104
2105
2106
2107 if test ${srcdir} != "." ; then
2108   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2109     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2110 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2111    { (exit 1); exit 1; }; }
2112   fi
2113 fi
2114
2115 for i in `ls ${srcdir}/projects`
2116 do
2117   if test -d ${srcdir}/projects/${i} ; then
2118     case ${i} in
2119       CVS) ;;
2120       sample)       subdirs="$subdirs projects/sample"
2121     ;;
2122       privbracket)  subdirs="$subdirs projects/privbracket"
2123  ;;
2124       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2125  ;;
2126       # llvm-test is the old name of the test-suite, kept here for backwards
2127       # compatibility
2128       llvm-test)    subdirs="$subdirs projects/llvm-test"
2129  ;;
2130       test-suite)   subdirs="$subdirs projects/test-suite"
2131  ;;
2132       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2133 ;;
2134       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2135   ;;
2136       llvm-java)    subdirs="$subdirs projects/llvm-java"
2137  ;;
2138       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2139    ;;
2140       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2141  ;;
2142       poolalloc)    subdirs="$subdirs projects/poolalloc"
2143  ;;
2144       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2145  ;;
2146       *)
2147         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2148 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2149         ;;
2150     esac
2151   fi
2152 done
2153
2154
2155 # Make sure we can run config.sub.
2156 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2157   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2158 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2159    { (exit 1); exit 1; }; }
2160
2161 { echo "$as_me:$LINENO: checking build system type" >&5
2162 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_build+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   ac_build_alias=$build_alias
2167 test "x$ac_build_alias" = x &&
2168   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2169 test "x$ac_build_alias" = x &&
2170   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2171 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2172    { (exit 1); exit 1; }; }
2173 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2174   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2176    { (exit 1); exit 1; }; }
2177
2178 fi
2179 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2180 echo "${ECHO_T}$ac_cv_build" >&6; }
2181 case $ac_cv_build in
2182 *-*-*) ;;
2183 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2184 echo "$as_me: error: invalid value of canonical build" >&2;}
2185    { (exit 1); exit 1; }; };;
2186 esac
2187 build=$ac_cv_build
2188 ac_save_IFS=$IFS; IFS='-'
2189 set x $ac_cv_build
2190 shift
2191 build_cpu=$1
2192 build_vendor=$2
2193 shift; shift
2194 # Remember, the first character of IFS is used to create $*,
2195 # except with old shells:
2196 build_os=$*
2197 IFS=$ac_save_IFS
2198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2199
2200
2201 { echo "$as_me:$LINENO: checking host system type" >&5
2202 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2203 if test "${ac_cv_host+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test "x$host_alias" = x; then
2207   ac_cv_host=$ac_cv_build
2208 else
2209   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2210     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2211 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2212    { (exit 1); exit 1; }; }
2213 fi
2214
2215 fi
2216 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2217 echo "${ECHO_T}$ac_cv_host" >&6; }
2218 case $ac_cv_host in
2219 *-*-*) ;;
2220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2221 echo "$as_me: error: invalid value of canonical host" >&2;}
2222    { (exit 1); exit 1; }; };;
2223 esac
2224 host=$ac_cv_host
2225 ac_save_IFS=$IFS; IFS='-'
2226 set x $ac_cv_host
2227 shift
2228 host_cpu=$1
2229 host_vendor=$2
2230 shift; shift
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2233 host_os=$*
2234 IFS=$ac_save_IFS
2235 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2236
2237
2238 { echo "$as_me:$LINENO: checking target system type" >&5
2239 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2240 if test "${ac_cv_target+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test "x$target_alias" = x; then
2244   ac_cv_target=$ac_cv_host
2245 else
2246   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2247     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2249    { (exit 1); exit 1; }; }
2250 fi
2251
2252 fi
2253 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2254 echo "${ECHO_T}$ac_cv_target" >&6; }
2255 case $ac_cv_target in
2256 *-*-*) ;;
2257 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2258 echo "$as_me: error: invalid value of canonical target" >&2;}
2259    { (exit 1); exit 1; }; };;
2260 esac
2261 target=$ac_cv_target
2262 ac_save_IFS=$IFS; IFS='-'
2263 set x $ac_cv_target
2264 shift
2265 target_cpu=$1
2266 target_vendor=$2
2267 shift; shift
2268 # Remember, the first character of IFS is used to create $*,
2269 # except with old shells:
2270 target_os=$*
2271 IFS=$ac_save_IFS
2272 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2273
2274
2275 # The aliases save the names the user supplied, while $host etc.
2276 # will get canonicalized.
2277 test -n "$target_alias" &&
2278   test "$program_prefix$program_suffix$program_transform_name" = \
2279     NONENONEs,x,x, &&
2280   program_prefix=${target_alias}-
2281
2282 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2283 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2284 if test "${llvm_cv_os_type+set}" = set; then
2285   echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287   case $host in
2288   *-*-aix*)
2289     llvm_cv_link_all_option="-Wl,--whole-archive"
2290     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291     llvm_cv_os_type="AIX"
2292     llvm_cv_platform_type="Unix" ;;
2293   *-*-irix*)
2294     llvm_cv_link_all_option="-Wl,--whole-archive"
2295     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296     llvm_cv_os_type="IRIX"
2297     llvm_cv_platform_type="Unix" ;;
2298   *-*-cygwin*)
2299     llvm_cv_link_all_option="-Wl,--whole-archive"
2300     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301     llvm_cv_os_type="Cygwin"
2302     llvm_cv_platform_type="Unix" ;;
2303   *-*-darwin*)
2304     llvm_cv_link_all_option="-Wl,-all_load"
2305     llvm_cv_no_link_all_option="-Wl,-noall_load"
2306     llvm_cv_os_type="Darwin"
2307     llvm_cv_platform_type="Unix" ;;
2308   *-*-freebsd*)
2309     llvm_cv_link_all_option="-Wl,--whole-archive"
2310     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311     llvm_cv_os_type="FreeBSD"
2312     llvm_cv_platform_type="Unix" ;;
2313   *-*-openbsd*)
2314     llvm_cv_link_all_option="-Wl,--whole-archive"
2315     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316     llvm_cv_os_type="OpenBSD"
2317     llvm_cv_platform_type="Unix" ;;
2318   *-*-netbsd*)
2319     llvm_cv_link_all_option="-Wl,--whole-archive"
2320     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321     llvm_cv_os_type="NetBSD"
2322     llvm_cv_platform_type="Unix" ;;
2323   *-*-dragonfly*)
2324     llvm_cv_link_all_option="-Wl,--whole-archive"
2325     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326     llvm_cv_os_type="DragonFly"
2327     llvm_cv_platform_type="Unix" ;;
2328   *-*-hpux*)
2329     llvm_cv_link_all_option="-Wl,--whole-archive"
2330     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331     llvm_cv_os_type="HP-UX"
2332     llvm_cv_platform_type="Unix" ;;
2333   *-*-interix*)
2334     llvm_cv_link_all_option="-Wl,--whole-archive"
2335     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336     llvm_cv_os_type="Interix"
2337     llvm_cv_platform_type="Unix" ;;
2338   *-*-linux*)
2339     llvm_cv_link_all_option="-Wl,--whole-archive"
2340     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341     llvm_cv_os_type="Linux"
2342     llvm_cv_platform_type="Unix" ;;
2343   *-*-solaris*)
2344     llvm_cv_link_all_option="-Wl,-z,allextract"
2345     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2346     llvm_cv_os_type="SunOS"
2347     llvm_cv_platform_type="Unix" ;;
2348   *-*-auroraux*)
2349     llvm_cv_link_all_option="-Wl,-z,allextract"
2350     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2351     llvm_cv_os_type="AuroraUX"
2352     llvm_cv_platform_type="Unix" ;;
2353   *-*-win32*)
2354     llvm_cv_link_all_option="-Wl,--whole-archive"
2355     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356     llvm_cv_os_type="Win32"
2357     llvm_cv_platform_type="Win32" ;;
2358   *-*-mingw*)
2359     llvm_cv_link_all_option="-Wl,--whole-archive"
2360     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2361     llvm_cv_os_type="MingW"
2362     llvm_cv_platform_type="Win32" ;;
2363   *-*-haiku*)
2364     llvm_cv_link_all_option="-Wl,--whole-archive"
2365     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2366     llvm_cv_os_type="Haiku"
2367     llvm_cv_platform_type="Unix" ;;
2368   *-unknown-eabi*)
2369     llvm_cv_link_all_option="-Wl,--whole-archive"
2370     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2371     llvm_cv_os_type="Freestanding"
2372     llvm_cv_platform_type="Unix" ;;
2373   *-unknown-elf*)
2374     llvm_cv_link_all_option="-Wl,--whole-archive"
2375     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2376     llvm_cv_os_type="Freestanding"
2377     llvm_cv_platform_type="Unix" ;;
2378   *)
2379     llvm_cv_link_all_option=""
2380     llvm_cv_no_link_all_option=""
2381     llvm_cv_os_type="Unknown"
2382     llvm_cv_platform_type="Unknown" ;;
2383 esac
2384 fi
2385 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2386 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2387
2388 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2389 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2390 if test "${llvm_cv_target_os_type+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   case $target in
2394   *-*-aix*)
2395     llvm_cv_target_os_type="AIX" ;;
2396   *-*-irix*)
2397     llvm_cv_target_os_type="IRIX" ;;
2398   *-*-cygwin*)
2399     llvm_cv_target_os_type="Cygwin" ;;
2400   *-*-darwin*)
2401     llvm_cv_target_os_type="Darwin" ;;
2402   *-*-freebsd*)
2403     llvm_cv_target_os_type="FreeBSD" ;;
2404   *-*-openbsd*)
2405     llvm_cv_target_os_type="OpenBSD" ;;
2406   *-*-netbsd*)
2407     llvm_cv_target_os_type="NetBSD" ;;
2408   *-*-dragonfly*)
2409     llvm_cv_target_os_type="DragonFly" ;;
2410   *-*-hpux*)
2411     llvm_cv_target_os_type="HP-UX" ;;
2412   *-*-interix*)
2413     llvm_cv_target_os_type="Interix" ;;
2414   *-*-linux*)
2415     llvm_cv_target_os_type="Linux" ;;
2416   *-*-solaris*)
2417     llvm_cv_target_os_type="SunOS" ;;
2418   *-*-auroraux*)
2419     llvm_cv_target_os_type="AuroraUX" ;;
2420   *-*-win32*)
2421     llvm_cv_target_os_type="Win32" ;;
2422   *-*-mingw*)
2423     llvm_cv_target_os_type="MingW" ;;
2424   *-*-haiku*)
2425     llvm_cv_target_os_type="Haiku" ;;
2426   *-unknown-eabi*)
2427     llvm_cv_target_os_type="Freestanding" ;;
2428   *)
2429     llvm_cv_target_os_type="Unknown" ;;
2430 esac
2431 fi
2432 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2433 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2434
2435 if test "$llvm_cv_os_type" = "Unknown" ; then
2436   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2437 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2438    { (exit 1); exit 1; }; }
2439 fi
2440
2441 OS=$llvm_cv_os_type
2442
2443 HOST_OS=$llvm_cv_os_type
2444
2445 TARGET_OS=$llvm_cv_target_os_type
2446
2447
2448 LINKALL=$llvm_cv_link_all_option
2449
2450 NOLINKALL=$llvm_cv_no_link_all_option
2451
2452
2453 case $llvm_cv_platform_type in
2454   Unix)
2455
2456 cat >>confdefs.h <<\_ACEOF
2457 #define LLVM_ON_UNIX 1
2458 _ACEOF
2459
2460     LLVM_ON_UNIX=1
2461
2462     LLVM_ON_WIN32=0
2463
2464     ;;
2465   Win32)
2466
2467 cat >>confdefs.h <<\_ACEOF
2468 #define LLVM_ON_WIN32 1
2469 _ACEOF
2470
2471     LLVM_ON_UNIX=0
2472
2473     LLVM_ON_WIN32=1
2474
2475     ;;
2476 esac
2477
2478 { echo "$as_me:$LINENO: checking target architecture" >&5
2479 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2480 if test "${llvm_cv_target_arch+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   case $target in
2484   i?86-*)                 llvm_cv_target_arch="x86" ;;
2485   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2486   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2487   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2488   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2489   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2490   mips-*)                 llvm_cv_target_arch="Mips" ;;
2491   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2492   xcore-*)                llvm_cv_target_arch="XCore" ;;
2493   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2494   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2495   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2496   *)                      llvm_cv_target_arch="Unknown" ;;
2497 esac
2498 fi
2499 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2500 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2501
2502 if test "$llvm_cv_target_arch" = "Unknown" ; then
2503   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2504 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2505 fi
2506
2507 # Determine the LLVM native architecture for the target
2508 case "$llvm_cv_target_arch" in
2509     x86)     LLVM_NATIVE_ARCH="X86" ;;
2510     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2511     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2512 esac
2513
2514 ARCH=$llvm_cv_target_arch
2515
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 if test -n "$ac_tool_prefix"; then
2523   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552   { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560 fi
2561 if test -z "$ac_cv_prog_CC"; then
2562   ac_ct_CC=$CC
2563   # Extract the first word of "gcc", so it can be a program name with args.
2564 set dummy gcc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$ac_ct_CC"; then
2571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2580     ac_cv_prog_ac_ct_CC="gcc"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599   if test "x$ac_ct_CC" = x; then
2600     CC=""
2601   else
2602     case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet.  If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&5
2607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet.  If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612     CC=$ac_ct_CC
2613   fi
2614 else
2615   CC="$ac_cv_prog_CC"
2616 fi
2617
2618 if test -z "$CC"; then
2619           if test -n "$ac_tool_prefix"; then
2620     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$CC"; then
2628   ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_CC="${ac_tool_prefix}cc"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649   { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2651 else
2652   { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2655
2656
2657   fi
2658 fi
2659 if test -z "$CC"; then
2660   # Extract the first word of "cc", so it can be a program name with args.
2661 set dummy cc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$CC"; then
2668   ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670   ac_prog_rejected=no
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676   for ac_exec_ext in '' $ac_executable_extensions; do
2677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2678     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2679        ac_prog_rejected=yes
2680        continue
2681      fi
2682     ac_cv_prog_CC="cc"
2683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684     break 2
2685   fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 if test $ac_prog_rejected = yes; then
2691   # We found a bogon in the path, so make sure we never use it.
2692   set dummy $ac_cv_prog_CC
2693   shift
2694   if test $# != 0; then
2695     # We chose a different compiler from the bogus one.
2696     # However, it has the same basename, so the bogon will be chosen
2697     # first if we set CC to just the basename; use the full file name.
2698     shift
2699     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2700   fi
2701 fi
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706   { echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6; }
2708 else
2709   { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$CC"; then
2716   if test -n "$ac_tool_prefix"; then
2717   for ac_prog in cl.exe
2718   do
2719     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   if test -n "$CC"; then
2727   ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734   for ac_exec_ext in '' $ac_executable_extensions; do
2735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2736     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748   { echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6; }
2750 else
2751   { echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6; }
2753 fi
2754
2755
2756     test -n "$CC" && break
2757   done
2758 fi
2759 if test -z "$CC"; then
2760   ac_ct_CC=$CC
2761   for ac_prog in cl.exe
2762 do
2763   # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   if test -n "$ac_ct_CC"; then
2771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778   for ac_exec_ext in '' $ac_executable_extensions; do
2779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2780     ac_cv_prog_ac_ct_CC="$ac_prog"
2781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785 done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6; }
2794 else
2795   { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2797 fi
2798
2799
2800   test -n "$ac_ct_CC" && break
2801 done
2802
2803   if test "x$ac_ct_CC" = x; then
2804     CC=""
2805   else
2806     case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet.  If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&5
2811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2812 whose name does not start with the host triplet.  If you think this
2813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816     CC=$ac_ct_CC
2817   fi
2818 fi
2819
2820 fi
2821
2822
2823 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828
2829 # Provide some information about the compiler.
2830 echo "$as_me:$LINENO: checking for C compiler version" >&5
2831 ac_compiler=`set X $ac_compile; echo $2`
2832 { (ac_try="$ac_compiler --version >&5"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_compiler --version >&5") 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }
2842 { (ac_try="$ac_compiler -v >&5"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_compiler -v >&5") 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }
2852 { (ac_try="$ac_compiler -V >&5"
2853 case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858   (eval "$ac_compiler -V >&5") 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }
2862
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869
2870 int
2871 main ()
2872 {
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2882 # of exeext.
2883 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2884 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2885 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2886 #
2887 # List of possible output files, starting from the most likely.
2888 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2889 # only as a last resort.  b.out is created by i960 compilers.
2890 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2891 #
2892 # The IRIX 6 linker writes into existing files which may not be
2893 # executable, retaining their permissions.  Remove them first so a
2894 # subsequent execution test works.
2895 ac_rmfiles=
2896 for ac_file in $ac_files
2897 do
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901   esac
2902 done
2903 rm -f $ac_rmfiles
2904
2905 if { (ac_try="$ac_link_default"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_link_default") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; then
2915   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2916 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2917 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2918 # so that the user can short-circuit this test for compilers unknown to
2919 # Autoconf.
2920 for ac_file in $ac_files
2921 do
2922   test -f "$ac_file" || continue
2923   case $ac_file in
2924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2925         ;;
2926     [ab].out )
2927         # We found the default executable, but exeext='' is most
2928         # certainly right.
2929         break;;
2930     *.* )
2931         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2932         then :; else
2933            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934         fi
2935         # We set ac_cv_exeext here because the later test for it is not
2936         # safe: cross compilers may not add the suffix if given an `-o'
2937         # argument, so we may need to know it at that point already.
2938         # Even if this section looks crufty: it has the advantage of
2939         # actually working.
2940         break;;
2941     * )
2942         break;;
2943   esac
2944 done
2945 test "$ac_cv_exeext" = no && ac_cv_exeext=
2946
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955    { (exit 77); exit 77; }; }
2956 fi
2957
2958 ac_exeext=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6; }
2961
2962 # Check that the compiler produces executables we can run.  If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969   if { ac_try='./$ac_file'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979     cross_compiling=no
2980   else
2981     if test "$cross_compiling" = maybe; then
2982         cross_compiling=yes
2983     else
2984         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2985 If you meant to cross compile, use \`--host'.
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&2;}
2990    { (exit 1); exit 1; }; }
2991     fi
2992   fi
2993 fi
2994 { echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6; }
2996
2997 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 # Check that the compiler produces executables we can run.  If not, either
3000 # the compiler is broken, or we cross compile.
3001 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3003 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004 echo "${ECHO_T}$cross_compiling" >&6; }
3005
3006 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3008 if { (ac_try="$ac_link"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_link") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; then
3018   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3020 # work properly (i.e., refer to `conftest.exe'), while it won't with
3021 # `rm'.
3022 for ac_file in conftest.exe conftest conftest.*; do
3023   test -f "$ac_file" || continue
3024   case $ac_file in
3025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3026     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027           break;;
3028     * ) break;;
3029   esac
3030 done
3031 else
3032   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&2;}
3036    { (exit 1); exit 1; }; }
3037 fi
3038
3039 rm -f conftest$ac_cv_exeext
3040 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3041 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3042
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3045 ac_exeext=$EXEEXT
3046 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3047 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3048 if test "${ac_cv_objext+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.o conftest.obj
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; then
3077   for ac_file in conftest.o conftest.obj conftest.*; do
3078   test -f "$ac_file" || continue;
3079   case $ac_file in
3080     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3081     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082        break;;
3083   esac
3084 done
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3092 See \`config.log' for more details." >&2;}
3093    { (exit 1); exit 1; }; }
3094 fi
3095
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3097 fi
3098 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3099 echo "${ECHO_T}$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3101 ac_objext=$OBJEXT
3102 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117 #ifndef __GNUC__
3118        choke me
3119 #endif
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   ac_compiler_gnu=yes
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164         ac_compiler_gnu=no
3165 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169
3170 fi
3171 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3172 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3173 GCC=`test $ac_compiler_gnu = yes && echo yes`
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3177 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_cc_g+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   ac_save_c_werror_flag=$ac_c_werror_flag
3182    ac_c_werror_flag=yes
3183    ac_cv_prog_cc_g=no
3184    CFLAGS="-g"
3185    cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compile") 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215   { (case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_try") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; } &&
3224          { ac_try='test -s conftest.$ac_objext'
3225   { (case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_try") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_prog_cc_g=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239         CFLAGS=""
3240       cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259   *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262   (eval "$ac_compile") 2>conftest.er1
3263   ac_status=$?
3264   grep -v '^ *+' conftest.er1 >conftest.err
3265   rm -f conftest.er1
3266   cat conftest.err >&5
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } &&
3269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3270   { (case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_try") 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; } &&
3279          { ac_try='test -s conftest.$ac_objext'
3280   { (case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_try") 2>&5
3286   ac_status=$?
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); }; }; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294         ac_c_werror_flag=$ac_save_c_werror_flag
3295          CFLAGS="-g"
3296          cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } &&
3325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326   { (case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_try") 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; } &&
3335          { ac_try='test -s conftest.$ac_objext'
3336   { (case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_cv_prog_cc_g=yes
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360    ac_c_werror_flag=$ac_save_c_werror_flag
3361 fi
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365   CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367   if test "$GCC" = yes; then
3368     CFLAGS="-g -O2"
3369   else
3370     CFLAGS="-g"
3371   fi
3372 else
3373   if test "$GCC" = yes; then
3374     CFLAGS="-O2"
3375   else
3376     CFLAGS=
3377   fi
3378 fi
3379 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3380 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   ac_cv_prog_cc_c89=no
3385 ac_save_CC=$CC
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400      char **p;
3401      int i;
3402 {
3403   return p[i];
3404 }
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3406 {
3407   char *s;
3408   va_list v;
3409   va_start (v,p);
3410   s = g (p, va_arg (v,int));
3411   va_end (v);
3412   return s;
3413 }
3414
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3416    function prototypes and stuff, but not '\xHH' hex character constants.
3417    These don't provoke an error unfortunately, instead are silently treated
3418    as 'x'.  The following induces an error, until -std is added to get
3419    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3420    array size at least.  It's necessary to write '\x00'==0 to get something
3421    that's true only with -std.  */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425    inside strings and character constants.  */
3426 #define FOO(x) 'x'
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3435 int
3436 main ()
3437 {
3438 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 do
3446   CC="$ac_save_CC $ac_arg"
3447   rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_compile") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } &&
3461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462   { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; } &&
3471          { ac_try='test -s conftest.$ac_objext'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481   ac_cv_prog_cc_c89=$ac_arg
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486
3487 fi
3488
3489 rm -f core conftest.err conftest.$ac_objext
3490   test "x$ac_cv_prog_cc_c89" != "xno" && break
3491 done
3492 rm -f conftest.$ac_ext
3493 CC=$ac_save_CC
3494
3495 fi
3496 # AC_CACHE_VAL
3497 case "x$ac_cv_prog_cc_c89" in
3498   x)
3499     { echo "$as_me:$LINENO: result: none needed" >&5
3500 echo "${ECHO_T}none needed" >&6; } ;;
3501   xno)
3502     { echo "$as_me:$LINENO: result: unsupported" >&5
3503 echo "${ECHO_T}unsupported" >&6; } ;;
3504   *)
3505     CC="$CC $ac_cv_prog_cc_c89"
3506     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3508 esac
3509
3510
3511 ac_ext=c
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3527   CPP=
3528 fi
3529 if test -z "$CPP"; then
3530   if test "${ac_cv_prog_CPP+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533       # Double quotes because CPP needs to be expanded
3534     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3535     do
3536       ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539   # Use a header file that comes with gcc, so configuring glibc
3540   # with a fresh cross-compiler works.
3541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542   # <limits.h> exists even on freestanding compilers.
3543   # On the NeXT, cc -E runs the code through the compiler's parser,
3544   # not just through cpp. "Syntax error" is here to catch this case.
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 #ifdef __STDC__
3552 # include <limits.h>
3553 #else
3554 # include <assert.h>
3555 #endif
3556                      Syntax error
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   :
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586   # Broken: fails on valid input.
3587 continue
3588 fi
3589
3590 rm -f conftest.err conftest.$ac_ext
3591
3592   # OK, works on sane cases.  Now check whether nonexistent headers
3593   # can be detected and how.
3594   cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } >/dev/null; then
3615   if test -s conftest.err; then
3616     ac_cpp_err=$ac_c_preproc_warn_flag
3617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618   else
3619     ac_cpp_err=
3620   fi
3621 else
3622   ac_cpp_err=yes
3623 fi
3624 if test -z "$ac_cpp_err"; then
3625   # Broken: success on invalid input.
3626 continue
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631   # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3634 fi
3635
3636 rm -f conftest.err conftest.$ac_ext
3637
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3642   break
3643 fi
3644
3645     done
3646     ac_cv_prog_CPP=$CPP
3647
3648 fi
3649   CPP=$ac_cv_prog_CPP
3650 else
3651   ac_cv_prog_CPP=$CPP
3652 fi
3653 { echo "$as_me:$LINENO: result: $CPP" >&5
3654 echo "${ECHO_T}$CPP" >&6; }
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3657 do
3658   # Use a header file that comes with gcc, so configuring glibc
3659   # with a fresh cross-compiler works.
3660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661   # <limits.h> exists even on freestanding compilers.
3662   # On the NeXT, cc -E runs the code through the compiler's parser,
3663   # not just through cpp. "Syntax error" is here to catch this case.
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #ifdef __STDC__
3671 # include <limits.h>
3672 #else
3673 # include <assert.h>
3674 #endif
3675                      Syntax error
3676 _ACEOF
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } >/dev/null; then
3690   if test -s conftest.err; then
3691     ac_cpp_err=$ac_c_preproc_warn_flag
3692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693   else
3694     ac_cpp_err=
3695   fi
3696 else
3697   ac_cpp_err=yes
3698 fi
3699 if test -z "$ac_cpp_err"; then
3700   :
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705   # Broken: fails on valid input.
3706 continue
3707 fi
3708
3709 rm -f conftest.err conftest.$ac_ext
3710
3711   # OK, works on sane cases.  Now check whether nonexistent headers
3712   # can be detected and how.
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719 #include <ac_nonexistent.h>
3720 _ACEOF
3721 if { (ac_try="$ac_cpp conftest.$ac_ext"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3728   ac_status=$?
3729   grep -v '^ *+' conftest.er1 >conftest.err
3730   rm -f conftest.er1
3731   cat conftest.err >&5
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } >/dev/null; then
3734   if test -s conftest.err; then
3735     ac_cpp_err=$ac_c_preproc_warn_flag
3736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737   else
3738     ac_cpp_err=
3739   fi
3740 else
3741   ac_cpp_err=yes
3742 fi
3743 if test -z "$ac_cpp_err"; then
3744   # Broken: success on invalid input.
3745 continue
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750   # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3753 fi
3754
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3761   :
3762 else
3763   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3778 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3779 if test "${ac_cv_path_GREP+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   # Extract the first word of "grep ggrep" to use in msg output
3783 if test -z "$GREP"; then
3784 set dummy grep ggrep; ac_prog_name=$2
3785 if test "${ac_cv_path_GREP+set}" = set; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   ac_path_GREP_found=false
3789 # Loop through the user's path and test for each of PROGNAME-LIST
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_prog in grep ggrep; do
3796   for ac_exec_ext in '' $ac_executable_extensions; do
3797     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3798     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3799     # Check for GNU ac_path_GREP and select it if it is found.
3800   # Check for GNU $ac_path_GREP
3801 case `"$ac_path_GREP" --version 2>&1` in
3802 *GNU*)
3803   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3804 *)
3805   ac_count=0
3806   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807   while :
3808   do
3809     cat "conftest.in" "conftest.in" >"conftest.tmp"
3810     mv "conftest.tmp" "conftest.in"
3811     cp "conftest.in" "conftest.nl"
3812     echo 'GREP' >> "conftest.nl"
3813     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815     ac_count=`expr $ac_count + 1`
3816     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3817       # Best one so far, save it but keep looking for a better one
3818       ac_cv_path_GREP="$ac_path_GREP"
3819       ac_path_GREP_max=$ac_count
3820     fi
3821     # 10*(2^10) chars as input seems more than enough
3822     test $ac_count -gt 10 && break
3823   done
3824   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825 esac
3826
3827
3828     $ac_path_GREP_found && break 3
3829   done
3830 done
3831
3832 done
3833 IFS=$as_save_IFS
3834
3835
3836 fi
3837
3838 GREP="$ac_cv_path_GREP"
3839 if test -z "$GREP"; then
3840   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842    { (exit 1); exit 1; }; }
3843 fi
3844
3845 else
3846   ac_cv_path_GREP=$GREP
3847 fi
3848
3849
3850 fi
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3853  GREP="$ac_cv_path_GREP"
3854
3855
3856 { echo "$as_me:$LINENO: checking for egrep" >&5
3857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3858 if test "${ac_cv_path_EGREP+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3862    then ac_cv_path_EGREP="$GREP -E"
3863    else
3864      # Extract the first word of "egrep" to use in msg output
3865 if test -z "$EGREP"; then
3866 set dummy egrep; ac_prog_name=$2
3867 if test "${ac_cv_path_EGREP+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   ac_path_EGREP_found=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_prog in egrep; do
3878   for ac_exec_ext in '' $ac_executable_extensions; do
3879     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3880     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3881     # Check for GNU ac_path_EGREP and select it if it is found.
3882   # Check for GNU $ac_path_EGREP
3883 case `"$ac_path_EGREP" --version 2>&1` in
3884 *GNU*)
3885   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886 *)
3887   ac_count=0
3888   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889   while :
3890   do
3891     cat "conftest.in" "conftest.in" >"conftest.tmp"
3892     mv "conftest.tmp" "conftest.in"
3893     cp "conftest.in" "conftest.nl"
3894     echo 'EGREP' >> "conftest.nl"
3895     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897     ac_count=`expr $ac_count + 1`
3898     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899       # Best one so far, save it but keep looking for a better one
3900       ac_cv_path_EGREP="$ac_path_EGREP"
3901       ac_path_EGREP_max=$ac_count
3902     fi
3903     # 10*(2^10) chars as input seems more than enough
3904     test $ac_count -gt 10 && break
3905   done
3906   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 esac
3908
3909
3910     $ac_path_EGREP_found && break 3
3911   done
3912 done
3913
3914 done
3915 IFS=$as_save_IFS
3916
3917
3918 fi
3919
3920 EGREP="$ac_cv_path_EGREP"
3921 if test -z "$EGREP"; then
3922   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924    { (exit 1); exit 1; }; }
3925 fi
3926
3927 else
3928   ac_cv_path_EGREP=$EGREP
3929 fi
3930
3931
3932    fi
3933 fi
3934 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3935 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3936  EGREP="$ac_cv_path_EGREP"
3937
3938
3939 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3940 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3941 if test "${ac_cv_header_stdc+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950 #include <stdlib.h>
3951 #include <stdarg.h>
3952 #include <string.h>
3953 #include <float.h>
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_compile") 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } &&
3977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3978   { (case "(($ac_try" in
3979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980   *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983   (eval "$ac_try") 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; } &&
3987          { ac_try='test -s conftest.$ac_objext'
3988   { (case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993   (eval "$ac_try") 2>&5
3994   ac_status=$?
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); }; }; then
3997   ac_cv_header_stdc=yes
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002         ac_cv_header_stdc=no
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006
4007 if test $ac_cv_header_stdc = yes; then
4008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009   cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 #include <string.h>
4016
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019   $EGREP "memchr" >/dev/null 2>&1; then
4020   :
4021 else
4022   ac_cv_header_stdc=no
4023 fi
4024 rm -f conftest*
4025
4026 fi
4027
4028 if test $ac_cv_header_stdc = yes; then
4029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #include <stdlib.h>
4037
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040   $EGREP "free" >/dev/null 2>&1; then
4041   :
4042 else
4043   ac_cv_header_stdc=no
4044 fi
4045 rm -f conftest*
4046
4047 fi
4048
4049 if test $ac_cv_header_stdc = yes; then
4050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051   if test "$cross_compiling" = yes; then
4052   :
4053 else
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 #include <ctype.h>
4061 #include <stdlib.h>
4062 #if ((' ' & 0x0FF) == 0x020)
4063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4065 #else
4066 # define ISLOWER(c) \
4067                    (('a' <= (c) && (c) <= 'i') \
4068                      || ('j' <= (c) && (c) <= 'r') \
4069                      || ('s' <= (c) && (c) <= 'z'))
4070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071 #endif
4072
4073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4074 int
4075 main ()
4076 {
4077   int i;
4078   for (i = 0; i < 256; i++)
4079     if (XOR (islower (i), ISLOWER (i))
4080         || toupper (i) != TOUPPER (i))
4081       return 2;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_link") 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4096   { (case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   :
4106 else
4107   echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 ( exit $ac_status )
4112 ac_cv_header_stdc=no
4113 fi
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4115 fi
4116
4117
4118 fi
4119 fi
4120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4123
4124 cat >>confdefs.h <<\_ACEOF
4125 #define STDC_HEADERS 1
4126 _ACEOF
4127
4128 fi
4129
4130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4141                   inttypes.h stdint.h unistd.h
4142 do
4143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 $ac_includes_default
4156
4157 #include <$ac_header>
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_compile") 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } &&
4173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174   { (case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_try") 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; } &&
4183          { ac_try='test -s conftest.$ac_objext'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; }; then
4193   eval "$as_ac_Header=yes"
4194 else
4195   echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198         eval "$as_ac_Header=no"
4199 fi
4200
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 fi
4203 ac_res=`eval echo '${'$as_ac_Header'}'`
4204                { echo "$as_me:$LINENO: result: $ac_res" >&5
4205 echo "${ECHO_T}$ac_res" >&6; }
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207   cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 fi
4212
4213 done
4214
4215
4216 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4217 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4218 if test "${ac_cv_c_bigendian+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   # See if sys/param.h defines the BYTE_ORDER macro.
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 #include <sys/types.h>
4229 #include <sys/param.h>
4230
4231 int
4232 main ()
4233 {
4234 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4235  bogus endian macros
4236 #endif
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_compile") 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257   { (case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   # It does; now see whether it defined to BIG_ENDIAN or not.
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 #include <sys/types.h>
4284 #include <sys/param.h>
4285
4286 int
4287 main ()
4288 {
4289 #if BYTE_ORDER != BIG_ENDIAN
4290  not big endian
4291 #endif
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_compile") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4312   { (case "(($ac_try" in
4313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314   *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317   (eval "$ac_try") 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest.$ac_objext'
4322   { (case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   ac_cv_c_bigendian=yes
4332 else
4333   echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336         ac_cv_c_bigendian=no
4337 fi
4338
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344         # It does not; compile a test program.
4345 if test "$cross_compiling" = yes; then
4346   # try to guess the endianness by grepping values into an object file
4347   ac_cv_c_bigendian=unknown
4348   cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4360 int
4361 main ()
4362 {
4363  _ascii (); _ebcdic ();
4364   ;
4365   return 0;
4366 }
4367 _ACEOF
4368 rm -f conftest.$ac_objext
4369 if { (ac_try="$ac_compile"
4370 case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375   (eval "$ac_compile") 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4383   { (case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_try") 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; } &&
4392          { ac_try='test -s conftest.$ac_objext'
4393   { (case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398   (eval "$ac_try") 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4403   ac_cv_c_bigendian=yes
4404 fi
4405 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4406   if test "$ac_cv_c_bigendian" = unknown; then
4407     ac_cv_c_bigendian=no
4408   else
4409     # finding both strings is unlikely to happen, but who knows?
4410     ac_cv_c_bigendian=unknown
4411   fi
4412 fi
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 else
4422   cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 $ac_includes_default
4429 int
4430 main ()
4431 {
4432
4433   /* Are we little or big endian?  From Harbison&Steele.  */
4434   union
4435   {
4436     long int l;
4437     char c[sizeof (long int)];
4438   } u;
4439   u.l = 1;
4440   return u.c[sizeof (long int) - 1] == 1;
4441
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest$ac_exeext
4447 if { (ac_try="$ac_link"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_link") 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4457   { (case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_try") 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   ac_cv_c_bigendian=no
4467 else
4468   echo "$as_me: program exited with status $ac_status" >&5
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ( exit $ac_status )
4473 ac_cv_c_bigendian=yes
4474 fi
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4476 fi
4477
4478
4479 fi
4480
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 fi
4483 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4484 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4485 case $ac_cv_c_bigendian in
4486   yes)
4487     ENDIAN=big
4488  ;;
4489   no)
4490     ENDIAN=little
4491  ;;
4492   *)
4493     { { echo "$as_me:$LINENO: error: unknown endianness
4494 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4495 echo "$as_me: error: unknown endianness
4496 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4497    { (exit 1); exit 1; }; } ;;
4498 esac
4499
4500
4501 if test "$cross_compiling" = yes; then
4502   LLVM_CROSS_COMPILING=1
4503
4504
4505 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4506 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4507 if test "${ac_cv_build_exeext+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4511   ac_cv_build_exeext=.exe
4512 else
4513   ac_build_prefix=${build_alias}-
4514
4515   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4516 set dummy ${ac_build_prefix}gcc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   if test -n "$BUILD_CC"; then
4523   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 BUILD_CC=$ac_cv_prog_BUILD_CC
4543 if test -n "$BUILD_CC"; then
4544   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4545 echo "${ECHO_T}$BUILD_CC" >&6; }
4546 else
4547   { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4549 fi
4550
4551
4552   if test -z "$BUILD_CC"; then
4553      # Extract the first word of "gcc", so it can be a program name with args.
4554 set dummy gcc; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   if test -n "$BUILD_CC"; then
4561   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_prog_BUILD_CC="gcc"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 BUILD_CC=$ac_cv_prog_BUILD_CC
4581 if test -n "$BUILD_CC"; then
4582   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4583 echo "${ECHO_T}$BUILD_CC" >&6; }
4584 else
4585   { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4587 fi
4588
4589
4590      if test -z "$BUILD_CC"; then
4591        # Extract the first word of "cc", so it can be a program name with args.
4592 set dummy cc; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if test -n "$BUILD_CC"; then
4599   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4600 else
4601   ac_prog_rejected=no
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607   for ac_exec_ext in '' $ac_executable_extensions; do
4608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4610        ac_prog_rejected=yes
4611        continue
4612      fi
4613     ac_cv_prog_BUILD_CC="cc"
4614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 if test $ac_prog_rejected = yes; then
4622   # We found a bogon in the path, so make sure we never use it.
4623   set dummy $ac_cv_prog_BUILD_CC
4624   shift
4625   if test $# != 0; then
4626     # We chose a different compiler from the bogus one.
4627     # However, it has the same basename, so the bogon will be chosen
4628     # first if we set BUILD_CC to just the basename; use the full file name.
4629     shift
4630     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4631   fi
4632 fi
4633 fi
4634 fi
4635 BUILD_CC=$ac_cv_prog_BUILD_CC
4636 if test -n "$BUILD_CC"; then
4637   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4638 echo "${ECHO_T}$BUILD_CC" >&6; }
4639 else
4640   { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4642 fi
4643
4644
4645      fi
4646   fi
4647   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4648 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4649    { (exit 1); exit 1; }; }
4650   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4651   rm -f conftest*
4652   echo 'int main () { return 0; }' > conftest.$ac_ext
4653   ac_cv_build_exeext=
4654   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4655   (eval $ac_build_link) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; then
4659     for file in conftest.*; do
4660       case $file in
4661       *.c | *.o | *.obj | *.dSYM) ;;
4662       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4663       esac
4664     done
4665   else
4666     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4667 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4668    { (exit 1); exit 1; }; }
4669   fi
4670   rm -f conftest*
4671   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4672 fi
4673 fi
4674
4675 BUILD_EXEEXT=""
4676 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4677 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4678 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4679 ac_build_exeext=$BUILD_EXEEXT
4680
4681   ac_build_prefix=${build_alias}-
4682   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4683 set dummy ${ac_build_prefix}g++; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$BUILD_CXX"; then
4690   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4710 if test -n "$BUILD_CXX"; then
4711   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4712 echo "${ECHO_T}$BUILD_CXX" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717
4718
4719   if test -z "$BUILD_CXX"; then
4720      # Extract the first word of "g++", so it can be a program name with args.
4721 set dummy g++; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$BUILD_CXX"; then
4728   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737     ac_cv_prog_BUILD_CXX="g++"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4748 if test -n "$BUILD_CXX"; then
4749   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4750 echo "${ECHO_T}$BUILD_CXX" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757      if test -z "$BUILD_CXX"; then
4758        # Extract the first word of "c++", so it can be a program name with args.
4759 set dummy c++; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   if test -n "$BUILD_CXX"; then
4766   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4767 else
4768   ac_prog_rejected=no
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774   for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4777        ac_prog_rejected=yes
4778        continue
4779      fi
4780     ac_cv_prog_BUILD_CXX="c++"
4781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782     break 2
4783   fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 if test $ac_prog_rejected = yes; then
4789   # We found a bogon in the path, so make sure we never use it.
4790   set dummy $ac_cv_prog_BUILD_CXX
4791   shift
4792   if test $# != 0; then
4793     # We chose a different compiler from the bogus one.
4794     # However, it has the same basename, so the bogon will be chosen
4795     # first if we set BUILD_CXX to just the basename; use the full file name.
4796     shift
4797     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4798   fi
4799 fi
4800 fi
4801 fi
4802 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4803 if test -n "$BUILD_CXX"; then
4804   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4805 echo "${ECHO_T}$BUILD_CXX" >&6; }
4806 else
4807   { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4809 fi
4810
4811
4812      fi
4813   fi
4814 else
4815   LLVM_CROSS_COMPILING=0
4816
4817 fi
4818
4819 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4820   cvsbuild="yes"
4821   optimize="no"
4822   CVSBUILD=CVSBUILD=1
4823
4824 else
4825   cvsbuild="no"
4826   optimize="yes"
4827 fi
4828
4829
4830 # Check whether --enable-optimized was given.
4831 if test "${enable_optimized+set}" = set; then
4832   enableval=$enable_optimized;
4833 else
4834   enableval=$optimize
4835 fi
4836
4837 if test ${enableval} = "no" ; then
4838   ENABLE_OPTIMIZED=
4839
4840 else
4841   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4842
4843 fi
4844
4845 # Check whether --enable-profiling was given.
4846 if test "${enable_profiling+set}" = set; then
4847   enableval=$enable_profiling;
4848 else
4849   enableval="no"
4850 fi
4851
4852 if test ${enableval} = "no" ; then
4853   ENABLE_PROFILING=
4854
4855 else
4856   ENABLE_PROFILING=ENABLE_PROFILING=1
4857
4858 fi
4859
4860 # Check whether --enable-assertions was given.
4861 if test "${enable_assertions+set}" = set; then
4862   enableval=$enable_assertions;
4863 else
4864   enableval="yes"
4865 fi
4866
4867 if test ${enableval} = "yes" ; then
4868   DISABLE_ASSERTIONS=
4869
4870 else
4871   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4872
4873 fi
4874
4875 # Check whether --enable-expensive-checks was given.
4876 if test "${enable_expensive_checks+set}" = set; then
4877   enableval=$enable_expensive_checks;
4878 else
4879   enableval="no"
4880 fi
4881
4882 if test ${enableval} = "yes" ; then
4883   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4884
4885   EXPENSIVE_CHECKS=yes
4886
4887 else
4888   ENABLE_EXPENSIVE_CHECKS=
4889
4890   EXPENSIVE_CHECKS=no
4891
4892 fi
4893
4894 # Check whether --enable-debug-runtime was given.
4895 if test "${enable_debug_runtime+set}" = set; then
4896   enableval=$enable_debug_runtime;
4897 else
4898   enableval=no
4899 fi
4900
4901 if test ${enableval} = "no" ; then
4902   DEBUG_RUNTIME=
4903
4904 else
4905   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4906
4907 fi
4908
4909 # Check whether --enable-debug-symbols was given.
4910 if test "${enable_debug_symbols+set}" = set; then
4911   enableval=$enable_debug_symbols;
4912 else
4913   enableval=no
4914 fi
4915
4916 if test ${enableval} = "no" ; then
4917   DEBUG_SYMBOLS=
4918
4919 else
4920   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4921
4922 fi
4923
4924 # Check whether --enable-jit was given.
4925 if test "${enable_jit+set}" = set; then
4926   enableval=$enable_jit;
4927 else
4928   enableval=default
4929 fi
4930
4931 if test ${enableval} = "no"
4932 then
4933   JIT=
4934
4935 else
4936   case "$llvm_cv_target_arch" in
4937     x86)         TARGET_HAS_JIT=1
4938  ;;
4939     Sparc)       TARGET_HAS_JIT=0
4940  ;;
4941     PowerPC)     TARGET_HAS_JIT=1
4942  ;;
4943     x86_64)      TARGET_HAS_JIT=1
4944  ;;
4945     Alpha)       TARGET_HAS_JIT=1
4946  ;;
4947     ARM)         TARGET_HAS_JIT=1
4948  ;;
4949     Mips)        TARGET_HAS_JIT=0
4950  ;;
4951     PIC16)       TARGET_HAS_JIT=0
4952  ;;
4953     XCore)       TARGET_HAS_JIT=0
4954  ;;
4955     MSP430)      TARGET_HAS_JIT=0
4956  ;;
4957     SystemZ)     TARGET_HAS_JIT=0
4958  ;;
4959     Blackfin)    TARGET_HAS_JIT=0
4960  ;;
4961     *)           TARGET_HAS_JIT=0
4962  ;;
4963   esac
4964 fi
4965
4966 # Check whether --enable-doxygen was given.
4967 if test "${enable_doxygen+set}" = set; then
4968   enableval=$enable_doxygen;
4969 else
4970   enableval=default
4971 fi
4972
4973 case "$enableval" in
4974   yes) ENABLE_DOXYGEN=1
4975  ;;
4976   no)  ENABLE_DOXYGEN=0
4977  ;;
4978   default) ENABLE_DOXYGEN=0
4979  ;;
4980   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4982    { (exit 1); exit 1; }; } ;;
4983 esac
4984
4985 # Check whether --enable-threads was given.
4986 if test "${enable_threads+set}" = set; then
4987   enableval=$enable_threads;
4988 else
4989   enableval=default
4990 fi
4991
4992 case "$enableval" in
4993   yes) ENABLE_THREADS=1
4994  ;;
4995   no)  ENABLE_THREADS=0
4996  ;;
4997   default) ENABLE_THREADS=1
4998  ;;
4999   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5000 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5001    { (exit 1); exit 1; }; } ;;
5002 esac
5003
5004 cat >>confdefs.h <<_ACEOF
5005 #define ENABLE_THREADS $ENABLE_THREADS
5006 _ACEOF
5007
5008
5009 # Check whether --enable-pic was given.
5010 if test "${enable_pic+set}" = set; then
5011   enableval=$enable_pic;
5012 else
5013   enableval=default
5014 fi
5015
5016 case "$enableval" in
5017   yes) ENABLE_PIC=1
5018  ;;
5019   no)  ENABLE_PIC=0
5020  ;;
5021   default) ENABLE_PIC=1
5022  ;;
5023   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5025    { (exit 1); exit 1; }; } ;;
5026 esac
5027
5028 cat >>confdefs.h <<_ACEOF
5029 #define ENABLE_PIC $ENABLE_PIC
5030 _ACEOF
5031
5032
5033 TARGETS_TO_BUILD=""
5034 # Check whether --enable-targets was given.
5035 if test "${enable_targets+set}" = set; then
5036   enableval=$enable_targets;
5037 else
5038   enableval=all
5039 fi
5040
5041 if test "$enableval" = host-only ; then
5042   enableval=host
5043 fi
5044 case "$enableval" in
5045   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5046   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047       case "$a_target" in
5048         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5049         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5050         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5051         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5052         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5053         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5054         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5055         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5056         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5057         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5058         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5059         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5060         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5061         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5062         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5063         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5064         host) case "$llvm_cv_target_arch" in
5065             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5073             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5074             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5075             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5076             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5077             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5078             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5079 echo "$as_me: error: Can not set target to build" >&2;}
5080    { (exit 1); exit 1; }; } ;;
5081           esac ;;
5082         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5083 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5084    { (exit 1); exit 1; }; } ;;
5085       esac
5086   done
5087   ;;
5088 esac
5089 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5090
5091
5092 # Determine whether we are building LLVM support for the native architecture.
5093 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5094 for a_target in $TARGETS_TO_BUILD; do
5095   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5096     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5097
5098 cat >>confdefs.h <<_ACEOF
5099 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5100 _ACEOF
5101
5102   fi
5103 done
5104
5105 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5106 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5107 LLVM_ENUM_TARGETS=""
5108 LLVM_ENUM_ASM_PRINTERS=""
5109 LLVM_ENUM_ASM_PARSERS=""
5110 for target_to_build in $TARGETS_TO_BUILD; do
5111   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5112   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5113     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5114   fi
5115   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5116     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5117   fi
5118 done
5119
5120
5121
5122
5123 # Check whether --enable-cbe-printf-a was given.
5124 if test "${enable_cbe_printf_a+set}" = set; then
5125   enableval=$enable_cbe_printf_a;
5126 else
5127   enableval=default
5128 fi
5129
5130 case "$enableval" in
5131   yes) ENABLE_CBE_PRINTF_A=1
5132  ;;
5133   no)  ENABLE_CBE_PRINTF_A=0
5134  ;;
5135   default)  ENABLE_CBE_PRINTF_A=1
5136  ;;
5137   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5139    { (exit 1); exit 1; }; } ;;
5140 esac
5141
5142 cat >>confdefs.h <<_ACEOF
5143 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5144 _ACEOF
5145
5146
5147
5148 # Check whether --with-llvmgccdir was given.
5149 if test "${with_llvmgccdir+set}" = set; then
5150   withval=$with_llvmgccdir;
5151 else
5152   withval=default
5153 fi
5154
5155 case "$withval" in
5156   default) WITH_LLVMGCCDIR=default ;;
5157   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5159 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5162
5163
5164 # Check whether --with-llvmgcc was given.
5165 if test "${with_llvmgcc+set}" = set; then
5166   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5167       WITH_LLVMGCCDIR=""
5168 fi
5169
5170
5171
5172 # Check whether --with-llvmgxx was given.
5173 if test "${with_llvmgxx+set}" = set; then
5174   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5175     WITH_LLVMGCCDIR=""
5176 fi
5177
5178
5179 if test -n "$LLVMGCC"; then
5180    LLVMGCCCOMMAND="$LLVMGCC"
5181 fi
5182
5183 if test -n "$LLVMGXX"; then
5184    LLVMGXXCOMMAND="$LLVMGXX"
5185 fi
5186
5187 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5188    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5189 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5190    { (exit 1); exit 1; }; };
5191 fi
5192
5193 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5194    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5195 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5196    { (exit 1); exit 1; }; };
5197 fi
5198
5199
5200 # Check whether --with-optimize-option was given.
5201 if test "${with_optimize_option+set}" = set; then
5202   withval=$with_optimize_option;
5203 else
5204   withval=default
5205 fi
5206
5207 { echo "$as_me:$LINENO: checking optimization flags" >&5
5208 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5209 case "$withval" in
5210   default)
5211     case "$llvm_cv_os_type" in
5212     MingW) optimize_option=-O3 ;;
5213     *)     optimize_option=-O2 ;;
5214     esac ;;
5215   *) optimize_option="$withval" ;;
5216 esac
5217 OPTIMIZE_OPTION=$optimize_option
5218
5219 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5220 echo "${ECHO_T}$optimize_option" >&6; }
5221
5222
5223 # Check whether --with-extra-options was given.
5224 if test "${with_extra_options+set}" = set; then
5225   withval=$with_extra_options;
5226 else
5227   withval=default
5228 fi
5229
5230 case "$withval" in
5231   default) EXTRA_OPTIONS= ;;
5232   *) EXTRA_OPTIONS=$withval ;;
5233 esac
5234 EXTRA_OPTIONS=$EXTRA_OPTIONS
5235
5236
5237 # Check whether --enable-bindings was given.
5238 if test "${enable_bindings+set}" = set; then
5239   enableval=$enable_bindings;
5240 else
5241   enableval=default
5242 fi
5243
5244 BINDINGS_TO_BUILD=""
5245 case "$enableval" in
5246   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5247   all ) BINDINGS_TO_BUILD="ocaml" ;;
5248   none | no) BINDINGS_TO_BUILD="" ;;
5249   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5250       case "$a_binding" in
5251         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5252         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254    { (exit 1); exit 1; }; } ;;
5255       esac
5256   done
5257   ;;
5258 esac
5259
5260
5261 # Check whether --with-ocaml-libdir was given.
5262 if test "${with_ocaml_libdir+set}" = set; then
5263   withval=$with_ocaml_libdir;
5264 else
5265   withval=auto
5266 fi
5267
5268 case "$withval" in
5269   auto) with_ocaml_libdir="$withval" ;;
5270   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5271   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273    { (exit 1); exit 1; }; } ;;
5274 esac
5275
5276
5277 # Check whether --with-c-include-dir was given.
5278 if test "${with_c_include_dir+set}" = set; then
5279   withval=$with_c_include_dir;
5280 else
5281   withval=""
5282 fi
5283
5284
5285 cat >>confdefs.h <<_ACEOF
5286 #define C_INCLUDE_DIRS "$withval"
5287 _ACEOF
5288
5289
5290
5291 # Check whether --with-binutils-include was given.
5292 if test "${with_binutils_include+set}" = set; then
5293   withval=$with_binutils_include;
5294 else
5295   withval=default
5296 fi
5297
5298 case "$withval" in
5299   default) WITH_BINUTILS_INCDIR=default ;;
5300   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5301   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5302 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5303    { (exit 1); exit 1; }; } ;;
5304 esac
5305 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5306   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5307
5308   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5309      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5310      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5311 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5312    { (exit 1); exit 1; }; };
5313   fi
5314 fi
5315
5316 # Check whether --enable-libffi was given.
5317 if test "${enable_libffi+set}" = set; then
5318   enableval=$enable_libffi;
5319 else
5320   enableval=yes
5321 fi
5322
5323 case "$enableval" in
5324   yes) llvm_cv_enable_libffi="yes" ;;
5325   no)  llvm_cv_enable_libffi="no"  ;;
5326   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329 esac
5330
5331 if test "$llvm_cv_os_type" = "Win32" ; then
5332    llvmc_dynamic="yes"
5333 else
5334    llvmc_dynamic="no"
5335 fi
5336
5337 # Check whether --enable-llvmc-dynamic was given.
5338 if test "${enable_llvmc_dynamic+set}" = set; then
5339   enableval=$enable_llvmc_dynamic;
5340 else
5341   enableval=$llvmc_dynamic
5342 fi
5343
5344 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5345    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5346
5347 else
5348    ENABLE_LLVMC_DYNAMIC=
5349
5350 fi
5351
5352 # Check whether --enable-llvmc-dynamic-plugins was given.
5353 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5354   enableval=$enable_llvmc_dynamic_plugins;
5355 else
5356   enableval=yes
5357 fi
5358
5359 if test ${enableval} = "yes" ; then
5360    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5361
5362 else
5363    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5364
5365 fi
5366
5367
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5374 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5375 # On Suns, sometimes $CPP names a directory.
5376 if test -n "$CPP" && test -d "$CPP"; then
5377   CPP=
5378 fi
5379 if test -z "$CPP"; then
5380   if test "${ac_cv_prog_CPP+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383       # Double quotes because CPP needs to be expanded
5384     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5385     do
5386       ac_preproc_ok=false
5387 for ac_c_preproc_warn_flag in '' yes
5388 do
5389   # Use a header file that comes with gcc, so configuring glibc
5390   # with a fresh cross-compiler works.
5391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392   # <limits.h> exists even on freestanding compilers.
5393   # On the NeXT, cc -E runs the code through the compiler's parser,
5394   # not just through cpp. "Syntax error" is here to catch this case.
5395   cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #ifdef __STDC__
5402 # include <limits.h>
5403 #else
5404 # include <assert.h>
5405 #endif
5406                      Syntax error
5407 _ACEOF
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } >/dev/null; then
5421   if test -s conftest.err; then
5422     ac_cpp_err=$ac_c_preproc_warn_flag
5423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424   else
5425     ac_cpp_err=
5426   fi
5427 else
5428   ac_cpp_err=yes
5429 fi
5430 if test -z "$ac_cpp_err"; then
5431   :
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436   # Broken: fails on valid input.
5437 continue
5438 fi
5439
5440 rm -f conftest.err conftest.$ac_ext
5441
5442   # OK, works on sane cases.  Now check whether nonexistent headers
5443   # can be detected and how.
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 #include <ac_nonexistent.h>
5451 _ACEOF
5452 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 case "(($ac_try" in
5454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455   *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459   ac_status=$?
5460   grep -v '^ *+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } >/dev/null; then
5465   if test -s conftest.err; then
5466     ac_cpp_err=$ac_c_preproc_warn_flag
5467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5468   else
5469     ac_cpp_err=
5470   fi
5471 else
5472   ac_cpp_err=yes
5473 fi
5474 if test -z "$ac_cpp_err"; then
5475   # Broken: success on invalid input.
5476 continue
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481   # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5484 fi
5485
5486 rm -f conftest.err conftest.$ac_ext
5487
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then
5492   break
5493 fi
5494
5495     done
5496     ac_cv_prog_CPP=$CPP
5497
5498 fi
5499   CPP=$ac_cv_prog_CPP
5500 else
5501   ac_cv_prog_CPP=$CPP
5502 fi
5503 { echo "$as_me:$LINENO: result: $CPP" >&5
5504 echo "${ECHO_T}$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5507 do
5508   # Use a header file that comes with gcc, so configuring glibc
5509   # with a fresh cross-compiler works.
5510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511   # <limits.h> exists even on freestanding compilers.
5512   # On the NeXT, cc -E runs the code through the compiler's parser,
5513   # not just through cpp. "Syntax error" is here to catch this case.
5514   cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #ifdef __STDC__
5521 # include <limits.h>
5522 #else
5523 # include <assert.h>
5524 #endif
5525                      Syntax error
5526 _ACEOF
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } >/dev/null; then
5540   if test -s conftest.err; then
5541     ac_cpp_err=$ac_c_preproc_warn_flag
5542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543   else
5544     ac_cpp_err=
5545   fi
5546 else
5547   ac_cpp_err=yes
5548 fi
5549 if test -z "$ac_cpp_err"; then
5550   :
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555   # Broken: fails on valid input.
5556 continue
5557 fi
5558
5559 rm -f conftest.err conftest.$ac_ext
5560
5561   # OK, works on sane cases.  Now check whether nonexistent headers
5562   # can be detected and how.
5563   cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569 #include <ac_nonexistent.h>
5570 _ACEOF
5571 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } >/dev/null; then
5584   if test -s conftest.err; then
5585     ac_cpp_err=$ac_c_preproc_warn_flag
5586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5587   else
5588     ac_cpp_err=
5589   fi
5590 else
5591   ac_cpp_err=yes
5592 fi
5593 if test -z "$ac_cpp_err"; then
5594   # Broken: success on invalid input.
5595 continue
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600   # Passes both tests.
5601 ac_preproc_ok=:
5602 break
5603 fi
5604
5605 rm -f conftest.err conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then
5611   :
5612 else
5613   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5614 See \`config.log' for more details." >&5
5615 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5616 See \`config.log' for more details." >&2;}
5617    { (exit 1); exit 1; }; }
5618 fi
5619
5620 ac_ext=c
5621 ac_cpp='$CPP $CPPFLAGS'
5622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5625
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 if test -n "$ac_tool_prefix"; then
5632   for ac_prog in gcc
5633   do
5634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638 if test "${ac_cv_prog_CC+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   if test -n "$CC"; then
5642   ac_cv_prog_CC="$CC" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649   for ac_exec_ext in '' $ac_executable_extensions; do
5650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 CC=$ac_cv_prog_CC
5662 if test -n "$CC"; then
5663   { echo "$as_me:$LINENO: result: $CC" >&5
5664 echo "${ECHO_T}$CC" >&6; }
5665 else
5666   { echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6; }
5668 fi
5669
5670
5671     test -n "$CC" && break
5672   done
5673 fi
5674 if test -z "$CC"; then
5675   ac_ct_CC=$CC
5676   for ac_prog in gcc
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   if test -n "$ac_ct_CC"; then
5686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693   for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_prog_ac_ct_CC="$ac_prog"
5696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700 done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706 if test -n "$ac_ct_CC"; then
5707   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5708 echo "${ECHO_T}$ac_ct_CC" >&6; }
5709 else
5710   { echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6; }
5712 fi
5713
5714
5715   test -n "$ac_ct_CC" && break
5716 done
5717
5718   if test "x$ac_ct_CC" = x; then
5719     CC=""
5720   else
5721     case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5724 whose name does not start with the host triplet.  If you think this
5725 configuration is useful to you, please write to autoconf@gnu.org." >&5
5726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5727 whose name does not start with the host triplet.  If you think this
5728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731     CC=$ac_ct_CC
5732   fi
5733 fi
5734
5735
5736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5737 See \`config.log' for more details." >&5
5738 echo "$as_me: error: no acceptable C compiler found in \$PATH
5739 See \`config.log' for more details." >&2;}
5740    { (exit 1); exit 1; }; }
5741
5742 # Provide some information about the compiler.
5743 echo "$as_me:$LINENO: checking for C compiler version" >&5
5744 ac_compiler=`set X $ac_compile; echo $2`
5745 { (ac_try="$ac_compiler --version >&5"
5746 case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751   (eval "$ac_compiler --version >&5") 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }
5755 { (ac_try="$ac_compiler -v >&5"
5756 case "(($ac_try" in
5757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758   *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761   (eval "$ac_compiler -v >&5") 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }
5765 { (ac_try="$ac_compiler -V >&5"
5766 case "(($ac_try" in
5767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768   *) ac_try_echo=$ac_try;;
5769 esac
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771   (eval "$ac_compiler -V >&5") 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }
5775
5776 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5777 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5778 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787
5788 int
5789 main ()
5790 {
5791 #ifndef __GNUC__
5792        choke me
5793 #endif
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803   *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806   (eval "$ac_compile") 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5814   { (case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_try") 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; } &&
5823          { ac_try='test -s conftest.$ac_objext'
5824   { (case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_try") 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_compiler_gnu=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838         ac_compiler_gnu=no
5839 fi
5840
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5843
5844 fi
5845 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5846 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5847 GCC=`test $ac_compiler_gnu = yes && echo yes`
5848 ac_test_CFLAGS=${CFLAGS+set}
5849 ac_save_CFLAGS=$CFLAGS
5850 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_cc_g+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   ac_save_c_werror_flag=$ac_c_werror_flag
5856    ac_c_werror_flag=yes
5857    ac_cv_prog_cc_g=no
5858    CFLAGS="-g"
5859    cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865
5866 int
5867 main ()
5868 {
5869
5870   ;
5871   return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_compile") 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889   { (case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894   (eval "$ac_try") 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; } &&
5898          { ac_try='test -s conftest.$ac_objext'
5899   { (case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904   (eval "$ac_try") 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; }; then
5908   ac_cv_prog_cc_g=yes
5909 else
5910   echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913         CFLAGS=""
5914       cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 int
5922 main ()
5923 {
5924
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5931 case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936   (eval "$ac_compile") 2>conftest.er1
5937   ac_status=$?
5938   grep -v '^ *+' conftest.er1 >conftest.err
5939   rm -f conftest.er1
5940   cat conftest.err >&5
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } &&
5943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5944   { (case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_try") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; } &&
5953          { ac_try='test -s conftest.$ac_objext'
5954   { (case "(($ac_try" in
5955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956   *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959   (eval "$ac_try") 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }; }; then
5963   :
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968         ac_c_werror_flag=$ac_save_c_werror_flag
5969          CFLAGS="-g"
5970          cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976
5977 int
5978 main ()
5979 {
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992   (eval "$ac_compile") 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6000   { (case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_try") 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; } &&
6009          { ac_try='test -s conftest.$ac_objext'
6010   { (case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_try") 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   ac_cv_prog_cc_g=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024
6025 fi
6026
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 fi
6029
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034    ac_c_werror_flag=$ac_save_c_werror_flag
6035 fi
6036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6038 if test "$ac_test_CFLAGS" = set; then
6039   CFLAGS=$ac_save_CFLAGS
6040 elif test $ac_cv_prog_cc_g = yes; then
6041   if test "$GCC" = yes; then
6042     CFLAGS="-g -O2"
6043   else
6044     CFLAGS="-g"
6045   fi
6046 else
6047   if test "$GCC" = yes; then
6048     CFLAGS="-O2"
6049   else
6050     CFLAGS=
6051   fi
6052 fi
6053 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6054 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_cc_c89+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   ac_cv_prog_cc_c89=no
6059 ac_save_CC=$CC
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066 #include <stdarg.h>
6067 #include <stdio.h>
6068 #include <sys/types.h>
6069 #include <sys/stat.h>
6070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6071 struct buf { int x; };
6072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6073 static char *e (p, i)
6074      char **p;
6075      int i;
6076 {
6077   return p[i];
6078 }
6079 static char *f (char * (*g) (char **, int), char **p, ...)
6080 {
6081   char *s;
6082   va_list v;
6083   va_start (v,p);
6084   s = g (p, va_arg (v,int));
6085   va_end (v);
6086   return s;
6087 }
6088
6089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6090    function prototypes and stuff, but not '\xHH' hex character constants.
6091    These don't provoke an error unfortunately, instead are silently treated
6092    as 'x'.  The following induces an error, until -std is added to get
6093    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6094    array size at least.  It's necessary to write '\x00'==0 to get something
6095    that's true only with -std.  */
6096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6097
6098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6099    inside strings and character constants.  */
6100 #define FOO(x) 'x'
6101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6102
6103 int test (int i, double x);
6104 struct s1 {int (*f) (int a);};
6105 struct s2 {int (*f) (double a);};
6106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6107 int argc;
6108 char **argv;
6109 int
6110 main ()
6111 {
6112 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6118         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6119 do
6120   CC="$ac_save_CC $ac_arg"
6121   rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } &&
6135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136   { (case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_try") 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_try") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   ac_cv_prog_cc_c89=$ac_arg
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext
6164   test "x$ac_cv_prog_cc_c89" != "xno" && break
6165 done
6166 rm -f conftest.$ac_ext
6167 CC=$ac_save_CC
6168
6169 fi
6170 # AC_CACHE_VAL
6171 case "x$ac_cv_prog_cc_c89" in
6172   x)
6173     { echo "$as_me:$LINENO: result: none needed" >&5
6174 echo "${ECHO_T}none needed" >&6; } ;;
6175   xno)
6176     { echo "$as_me:$LINENO: result: unsupported" >&5
6177 echo "${ECHO_T}unsupported" >&6; } ;;
6178   *)
6179     CC="$CC $ac_cv_prog_cc_c89"
6180     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6182 esac
6183
6184
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191 ac_ext=cpp
6192 ac_cpp='$CXXCPP $CPPFLAGS'
6193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196 if test -z "$CXX"; then
6197   if test -n "$CCC"; then
6198     CXX=$CCC
6199   else
6200     if test -n "$ac_tool_prefix"; then
6201   for ac_prog in g++
6202   do
6203     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_CXX+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   if test -n "$CXX"; then
6211   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218   for ac_exec_ext in '' $ac_executable_extensions; do
6219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 CXX=$ac_cv_prog_CXX
6231 if test -n "$CXX"; then
6232   { echo "$as_me:$LINENO: result: $CXX" >&5
6233 echo "${ECHO_T}$CXX" >&6; }
6234 else
6235   { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 fi
6238
6239
6240     test -n "$CXX" && break
6241   done
6242 fi
6243 if test -z "$CXX"; then
6244   ac_ct_CXX=$CXX
6245   for ac_prog in g++
6246 do
6247   # Extract the first word of "$ac_prog", so it can be a program name with args.
6248 set dummy $ac_prog; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   if test -n "$ac_ct_CXX"; then
6255   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262   for ac_exec_ext in '' $ac_executable_extensions; do
6263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6264     ac_cv_prog_ac_ct_CXX="$ac_prog"
6265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6275 if test -n "$ac_ct_CXX"; then
6276   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6278 else
6279   { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6281 fi
6282
6283
6284   test -n "$ac_ct_CXX" && break
6285 done
6286
6287   if test "x$ac_ct_CXX" = x; then
6288     CXX="g++"
6289   else
6290     case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet.  If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet.  If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300     CXX=$ac_ct_CXX
6301   fi
6302 fi
6303
6304   fi
6305 fi
6306 # Provide some information about the compiler.
6307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6308 ac_compiler=`set X $ac_compile; echo $2`
6309 { (ac_try="$ac_compiler --version >&5"
6310 case "(($ac_try" in
6311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312   *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315   (eval "$ac_compiler --version >&5") 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }
6319 { (ac_try="$ac_compiler -v >&5"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_compiler -v >&5") 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }
6329 { (ac_try="$ac_compiler -V >&5"
6330 case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_compiler -V >&5") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }
6339
6340 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6341 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351
6352 int
6353 main ()
6354 {
6355 #ifndef __GNUC__
6356        choke me
6357 #endif
6358
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6365 case "(($ac_try" in
6366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367   *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370   (eval "$ac_compile") 2>conftest.er1
6371   ac_status=$?
6372   grep -v '^ *+' conftest.er1 >conftest.err
6373   rm -f conftest.er1
6374   cat conftest.err >&5
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6378   { (case "(($ac_try" in
6379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380   *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383   (eval "$ac_try") 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; } &&
6387          { ac_try='test -s conftest.$ac_objext'
6388   { (case "(($ac_try" in
6389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390   *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393   (eval "$ac_try") 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; }; then
6397   ac_compiler_gnu=yes
6398 else
6399   echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402         ac_compiler_gnu=no
6403 fi
6404
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6407
6408 fi
6409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6410 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6411 GXX=`test $ac_compiler_gnu = yes && echo yes`
6412 ac_test_CXXFLAGS=${CXXFLAGS+set}
6413 ac_save_CXXFLAGS=$CXXFLAGS
6414 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6415 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_cxx_g+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6420    ac_cxx_werror_flag=yes
6421    ac_cv_prog_cxx_g=no
6422    CXXFLAGS="-g"
6423    cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429
6430 int
6431 main ()
6432 {
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442   *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445   (eval "$ac_compile") 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453   { (case "(($ac_try" in
6454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455   *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458   (eval "$ac_try") 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_try") 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   ac_cv_prog_cxx_g=yes
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477         CXXFLAGS=""
6478       cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484
6485 int
6486 main ()
6487 {
6488
6489   ;
6490   return 0;
6491 }
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497   *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500   (eval "$ac_compile") 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6508   { (case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_try") 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; } &&
6517          { ac_try='test -s conftest.$ac_objext'
6518   { (case "(($ac_try" in
6519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520   *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523   (eval "$ac_try") 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   :
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533          CXXFLAGS="-g"
6534          cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540
6541 int
6542 main ()
6543 {
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553   *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556   (eval "$ac_compile") 2>conftest.er1
6557   ac_status=$?
6558   grep -v '^ *+' conftest.er1 >conftest.err
6559   rm -f conftest.er1
6560   cat conftest.err >&5
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6564   { (case "(($ac_try" in
6565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566   *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569   (eval "$ac_try") 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; } &&
6573          { ac_try='test -s conftest.$ac_objext'
6574   { (case "(($ac_try" in
6575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576   *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579   (eval "$ac_try") 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; }; then
6583   ac_cv_prog_cxx_g=yes
6584 else
6585   echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 fi
6596
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6599 fi
6600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6601 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6602 if test "$ac_test_CXXFLAGS" = set; then
6603   CXXFLAGS=$ac_save_CXXFLAGS
6604 elif test $ac_cv_prog_cxx_g = yes; then
6605   if test "$GXX" = yes; then
6606     CXXFLAGS="-g -O2"
6607   else
6608     CXXFLAGS="-g"
6609   fi
6610 else
6611   if test "$GXX" = yes; then
6612     CXXFLAGS="-O2"
6613   else
6614     CXXFLAGS=
6615   fi
6616 fi
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
6623
6624 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6625 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6626 if test "${lt_cv_path_NM+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$NM"; then
6630   # Let the user override the test.
6631   lt_cv_path_NM="$NM"
6632 else
6633   lt_nm_to_check="${ac_tool_prefix}nm"
6634   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6635     lt_nm_to_check="$lt_nm_to_check nm"
6636   fi
6637   for lt_tmp_nm in $lt_nm_to_check; do
6638     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6639     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6640       IFS="$lt_save_ifs"
6641       test -z "$ac_dir" && ac_dir=.
6642       tmp_nm="$ac_dir/$lt_tmp_nm"
6643       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6644         # Check to see if the nm accepts a BSD-compat flag.
6645         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6646         #   nm: unknown option "B" ignored
6647         # Tru64's nm complains that /dev/null is an invalid object file
6648         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6649         */dev/null* | *'Invalid file or object type'*)
6650           lt_cv_path_NM="$tmp_nm -B"
6651           break
6652           ;;
6653         *)
6654           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6655           */dev/null*)
6656             lt_cv_path_NM="$tmp_nm -p"
6657             break
6658             ;;
6659           *)
6660             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6661             continue # so that we can try to find one that supports BSD flags
6662             ;;
6663           esac
6664           ;;
6665         esac
6666       fi
6667     done
6668     IFS="$lt_save_ifs"
6669   done
6670   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6671 fi
6672 fi
6673 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6674 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6675 NM="$lt_cv_path_NM"
6676
6677
6678
6679 { echo "$as_me:$LINENO: checking for GNU make" >&5
6680 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6681 if test "${llvm_cv_gnu_make_command+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   llvm_cv_gnu_make_command=''
6685  for a in "$MAKE" make gmake gnumake ; do
6686   if test -z "$a" ; then continue ; fi ;
6687   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6688   then
6689    llvm_cv_gnu_make_command=$a ;
6690    break;
6691   fi
6692  done
6693 fi
6694 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6695 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6696  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6697    ifGNUmake='' ;
6698  else
6699    ifGNUmake='#' ;
6700    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6701 echo "${ECHO_T}\"Not found\"" >&6; };
6702  fi
6703
6704
6705 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6707 LN_S=$as_ln_s
6708 if test "$LN_S" = "ln -s"; then
6709   { echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6713 echo "${ECHO_T}no, using $LN_S" >&6; }
6714 fi
6715
6716 # Extract the first word of "cmp", so it can be a program name with args.
6717 set dummy cmp; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_CMP+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $CMP in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6744   ;;
6745 esac
6746 fi
6747 CMP=$ac_cv_path_CMP
6748 if test -n "$CMP"; then
6749   { echo "$as_me:$LINENO: result: $CMP" >&5
6750 echo "${ECHO_T}$CMP" >&6; }
6751 else
6752   { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6754 fi
6755
6756
6757 # Extract the first word of "cp", so it can be a program name with args.
6758 set dummy cp; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_CP+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   case $CP in
6765   [\\/]* | ?:[\\/]*)
6766   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6767   ;;
6768   *)
6769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6785   ;;
6786 esac
6787 fi
6788 CP=$ac_cv_path_CP
6789 if test -n "$CP"; then
6790   { echo "$as_me:$LINENO: result: $CP" >&5
6791 echo "${ECHO_T}$CP" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797
6798 # Extract the first word of "date", so it can be a program name with args.
6799 set dummy date; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_DATE+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $DATE in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6826   ;;
6827 esac
6828 fi
6829 DATE=$ac_cv_path_DATE
6830 if test -n "$DATE"; then
6831   { echo "$as_me:$LINENO: result: $DATE" >&5
6832 echo "${ECHO_T}$DATE" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 # Extract the first word of "find", so it can be a program name with args.
6840 set dummy find; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_FIND+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $FIND in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6867   ;;
6868 esac
6869 fi
6870 FIND=$ac_cv_path_FIND
6871 if test -n "$FIND"; then
6872   { echo "$as_me:$LINENO: result: $FIND" >&5
6873 echo "${ECHO_T}$FIND" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880 # Extract the first word of "grep", so it can be a program name with args.
6881 set dummy grep; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_GREP+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $GREP in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6908   ;;
6909 esac
6910 fi
6911 GREP=$ac_cv_path_GREP
6912 if test -n "$GREP"; then
6913   { echo "$as_me:$LINENO: result: $GREP" >&5
6914 echo "${ECHO_T}$GREP" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 # Extract the first word of "mkdir", so it can be a program name with args.
6922 set dummy mkdir; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_MKDIR+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $MKDIR in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6949   ;;
6950 esac
6951 fi
6952 MKDIR=$ac_cv_path_MKDIR
6953 if test -n "$MKDIR"; then
6954   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6955 echo "${ECHO_T}$MKDIR" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 # Extract the first word of "mv", so it can be a program name with args.
6963 set dummy mv; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_MV+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   case $MV in
6970   [\\/]* | ?:[\\/]*)
6971   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6972   ;;
6973   *)
6974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979   for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6990   ;;
6991 esac
6992 fi
6993 MV=$ac_cv_path_MV
6994 if test -n "$MV"; then
6995   { echo "$as_me:$LINENO: result: $MV" >&5
6996 echo "${ECHO_T}$MV" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002
7003 if test -n "$ac_tool_prefix"; then
7004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_prog_RANLIB+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   if test -n "$RANLIB"; then
7012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 RANLIB=$ac_cv_prog_RANLIB
7032 if test -n "$RANLIB"; then
7033   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7034 echo "${ECHO_T}$RANLIB" >&6; }
7035 else
7036   { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_RANLIB"; then
7043   ac_ct_RANLIB=$RANLIB
7044   # Extract the first word of "ranlib", so it can be a program name with args.
7045 set dummy ranlib; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   if test -n "$ac_ct_RANLIB"; then
7052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_prog_ac_ct_RANLIB="ranlib"
7062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7072 if test -n "$ac_ct_RANLIB"; then
7073   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7075 else
7076   { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7078 fi
7079
7080   if test "x$ac_ct_RANLIB" = x; then
7081     RANLIB=":"
7082   else
7083     case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7086 whose name does not start with the host triplet.  If you think this
7087 configuration is useful to you, please write to autoconf@gnu.org." >&5
7088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet.  If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093     RANLIB=$ac_ct_RANLIB
7094   fi
7095 else
7096   RANLIB="$ac_cv_prog_RANLIB"
7097 fi
7098
7099 # Extract the first word of "rm", so it can be a program name with args.
7100 set dummy rm; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_RM+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   case $RM in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7127   ;;
7128 esac
7129 fi
7130 RM=$ac_cv_path_RM
7131 if test -n "$RM"; then
7132   { echo "$as_me:$LINENO: result: $RM" >&5
7133 echo "${ECHO_T}$RM" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140 # Extract the first word of "sed", so it can be a program name with args.
7141 set dummy sed; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_SED+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   case $SED in
7148   [\\/]* | ?:[\\/]*)
7149   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7150   ;;
7151   *)
7152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157   for ac_exec_ext in '' $ac_executable_extensions; do
7158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7168   ;;
7169 esac
7170 fi
7171 SED=$ac_cv_path_SED
7172 if test -n "$SED"; then
7173   { echo "$as_me:$LINENO: result: $SED" >&5
7174 echo "${ECHO_T}$SED" >&6; }
7175 else
7176   { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7178 fi
7179
7180
7181 # Extract the first word of "tar", so it can be a program name with args.
7182 set dummy tar; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_TAR+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   case $TAR in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7209   ;;
7210 esac
7211 fi
7212 TAR=$ac_cv_path_TAR
7213 if test -n "$TAR"; then
7214   { echo "$as_me:$LINENO: result: $TAR" >&5
7215 echo "${ECHO_T}$TAR" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221
7222 # Extract the first word of "pwd", so it can be a program name with args.
7223 set dummy pwd; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_BINPWD+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   case $BINPWD in
7230   [\\/]* | ?:[\\/]*)
7231   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7232   ;;
7233   *)
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7250   ;;
7251 esac
7252 fi
7253 BINPWD=$ac_cv_path_BINPWD
7254 if test -n "$BINPWD"; then
7255   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7256 echo "${ECHO_T}$BINPWD" >&6; }
7257 else
7258   { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7260 fi
7261
7262
7263
7264 # Extract the first word of "Graphviz", so it can be a program name with args.
7265 set dummy Graphviz; ac_word=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   case $GRAPHVIZ in
7272   [\\/]* | ?:[\\/]*)
7273   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7274   ;;
7275   *)
7276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281   for ac_exec_ext in '' $ac_executable_extensions; do
7282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7283     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7292   ;;
7293 esac
7294 fi
7295 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7296 if test -n "$GRAPHVIZ"; then
7297   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7298 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7299 else
7300   { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7303
7304
7305 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7306
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_GRAPHVIZ 1
7309 _ACEOF
7310
7311     if test "$llvm_cv_os_type" = "MingW" ; then
7312     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7313   fi
7314
7315 cat >>confdefs.h <<_ACEOF
7316 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7317 _ACEOF
7318
7319 fi
7320 # Extract the first word of "dot", so it can be a program name with args.
7321 set dummy dot; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_DOT+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   case $DOT in
7328   [\\/]* | ?:[\\/]*)
7329   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7330   ;;
7331   *)
7332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337   for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7348   ;;
7349 esac
7350 fi
7351 DOT=$ac_cv_path_DOT
7352 if test -n "$DOT"; then
7353   { echo "$as_me:$LINENO: result: $DOT" >&5
7354 echo "${ECHO_T}$DOT" >&6; }
7355 else
7356   { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7358 fi
7359
7360
7361 if test "$DOT" != "echo dot" ; then
7362
7363 cat >>confdefs.h <<\_ACEOF
7364 #define HAVE_DOT 1
7365 _ACEOF
7366
7367     if test "$llvm_cv_os_type" = "MingW" ; then
7368     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7369   fi
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7373 _ACEOF
7374
7375 fi
7376 # Extract the first word of "fdp", so it can be a program name with args.
7377 set dummy fdp; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_FDP+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   case $FDP in
7384   [\\/]* | ?:[\\/]*)
7385   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7386   ;;
7387   *)
7388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   for ac_exec_ext in '' $ac_executable_extensions; do
7394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7404   ;;
7405 esac
7406 fi
7407 FDP=$ac_cv_path_FDP
7408 if test -n "$FDP"; then
7409   { echo "$as_me:$LINENO: result: $FDP" >&5
7410 echo "${ECHO_T}$FDP" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417 if test "$FDP" != "echo fdp" ; then
7418
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_FDP 1
7421 _ACEOF
7422
7423     if test "$llvm_cv_os_type" = "MingW" ; then
7424     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425   fi
7426
7427 cat >>confdefs.h <<_ACEOF
7428 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7429 _ACEOF
7430
7431 fi
7432 # Extract the first word of "neato", so it can be a program name with args.
7433 set dummy neato; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_NEATO+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $NEATO in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7460   ;;
7461 esac
7462 fi
7463 NEATO=$ac_cv_path_NEATO
7464 if test -n "$NEATO"; then
7465   { echo "$as_me:$LINENO: result: $NEATO" >&5
7466 echo "${ECHO_T}$NEATO" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473 if test "$NEATO" != "echo neato" ; then
7474
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_NEATO 1
7477 _ACEOF
7478
7479     if test "$llvm_cv_os_type" = "MingW" ; then
7480     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481   fi
7482
7483 cat >>confdefs.h <<_ACEOF
7484 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7485 _ACEOF
7486
7487 fi
7488 # Extract the first word of "twopi", so it can be a program name with args.
7489 set dummy twopi; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_TWOPI+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $TWOPI in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7516   ;;
7517 esac
7518 fi
7519 TWOPI=$ac_cv_path_TWOPI
7520 if test -n "$TWOPI"; then
7521   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7522 echo "${ECHO_T}$TWOPI" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529 if test "$TWOPI" != "echo twopi" ; then
7530
7531 cat >>confdefs.h <<\_ACEOF
7532 #define HAVE_TWOPI 1
7533 _ACEOF
7534
7535     if test "$llvm_cv_os_type" = "MingW" ; then
7536     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537   fi
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7541 _ACEOF
7542
7543 fi
7544 # Extract the first word of "circo", so it can be a program name with args.
7545 set dummy circo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_CIRCO+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $CIRCO in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7572   ;;
7573 esac
7574 fi
7575 CIRCO=$ac_cv_path_CIRCO
7576 if test -n "$CIRCO"; then
7577   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7578 echo "${ECHO_T}$CIRCO" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 if test "$CIRCO" != "echo circo" ; then
7586
7587 cat >>confdefs.h <<\_ACEOF
7588 #define HAVE_CIRCO 1
7589 _ACEOF
7590
7591     if test "$llvm_cv_os_type" = "MingW" ; then
7592     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593   fi
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7597 _ACEOF
7598
7599 fi
7600 for ac_prog in gv gsview32
7601 do
7602   # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_GV+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   case $GV in
7610   [\\/]* | ?:[\\/]*)
7611   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7612   ;;
7613   *)
7614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619   for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629   ;;
7630 esac
7631 fi
7632 GV=$ac_cv_path_GV
7633 if test -n "$GV"; then
7634   { echo "$as_me:$LINENO: result: $GV" >&5
7635 echo "${ECHO_T}$GV" >&6; }
7636 else
7637   { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7639 fi
7640
7641
7642   test -n "$GV" && break
7643 done
7644 test -n "$GV" || GV="echo gv"
7645
7646 if test "$GV" != "echo gv" ; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_GV 1
7650 _ACEOF
7651
7652     if test "$llvm_cv_os_type" = "MingW" ; then
7653     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654   fi
7655
7656 cat >>confdefs.h <<_ACEOF
7657 #define LLVM_PATH_GV "$GV${EXEEXT}"
7658 _ACEOF
7659
7660 fi
7661 # Extract the first word of "dotty", so it can be a program name with args.
7662 set dummy dotty; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_DOTTY+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   case $DOTTY in
7669   [\\/]* | ?:[\\/]*)
7670   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7671   ;;
7672   *)
7673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7689   ;;
7690 esac
7691 fi
7692 DOTTY=$ac_cv_path_DOTTY
7693 if test -n "$DOTTY"; then
7694   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7695 echo "${ECHO_T}$DOTTY" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702 if test "$DOTTY" != "echo dotty" ; then
7703
7704 cat >>confdefs.h <<\_ACEOF
7705 #define HAVE_DOTTY 1
7706 _ACEOF
7707
7708     if test "$llvm_cv_os_type" = "MingW" ; then
7709     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710   fi
7711
7712 cat >>confdefs.h <<_ACEOF
7713 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7714 _ACEOF
7715
7716 fi
7717
7718
7719 # Extract the first word of "perl", so it can be a program name with args.
7720 set dummy perl; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_PERL+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   case $PERL in
7727   [\\/]* | ?:[\\/]*)
7728   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7729   ;;
7730   *)
7731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736   for ac_exec_ext in '' $ac_executable_extensions; do
7737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7747   ;;
7748 esac
7749 fi
7750 PERL=$ac_cv_path_PERL
7751 if test -n "$PERL"; then
7752   { echo "$as_me:$LINENO: result: $PERL" >&5
7753 echo "${ECHO_T}$PERL" >&6; }
7754 else
7755   { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7757 fi
7758
7759
7760 if test "$PERL" != "none"; then
7761   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7762 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7763   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7764     { echo "$as_me:$LINENO: result: yes" >&5
7765 echo "${ECHO_T}yes" >&6; }
7766   else
7767     PERL=none
7768     { echo "$as_me:$LINENO: result: not found" >&5
7769 echo "${ECHO_T}not found" >&6; }
7770   fi
7771 fi
7772
7773
7774 if test x"$PERL" = xnone; then
7775    HAVE_PERL=0
7776
7777    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7778 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7779    { (exit 1); exit 1; }; }
7780 else
7781    HAVE_PERL=1
7782
7783 fi
7784
7785 # Find a good install program.  We prefer a C program (faster),
7786 # so one script is as good as another.  But avoid the broken or
7787 # incompatible versions:
7788 # SysV /etc/install, /usr/sbin/install
7789 # SunOS /usr/etc/install
7790 # IRIX /sbin/install
7791 # AIX /bin/install
7792 # AmigaOS /C/install, which installs bootblocks on floppy discs
7793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7796 # OS/2's system install, which has a completely different semantic
7797 # ./install, which can be erroneously created by make from ./install.sh.
7798 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7799 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7800 if test -z "$INSTALL"; then
7801 if test "${ac_cv_path_install+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   # Account for people who put trailing slashes in PATH elements.
7810 case $as_dir/ in
7811   ./ | .// | /cC/* | \
7812   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7813   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7814   /usr/ucb/* ) ;;
7815   *)
7816     # OSF1 and SCO ODT 3.0 have their own names for install.
7817     # Don't use installbsd from OSF since it installs stuff as root
7818     # by default.
7819     for ac_prog in ginstall scoinst install; do
7820       for ac_exec_ext in '' $ac_executable_extensions; do
7821         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7822           if test $ac_prog = install &&
7823             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7824             # AIX install.  It has an incompatible calling convention.
7825             :
7826           elif test $ac_prog = install &&
7827             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7828             # program-specific install script used by HP pwplus--don't use.
7829             :
7830           else
7831             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7832             break 3
7833           fi
7834         fi
7835       done
7836     done
7837     ;;
7838 esac
7839 done
7840 IFS=$as_save_IFS
7841
7842
7843 fi
7844   if test "${ac_cv_path_install+set}" = set; then
7845     INSTALL=$ac_cv_path_install
7846   else
7847     # As a last resort, use the slow shell script.  Don't cache a
7848     # value for INSTALL within a source directory, because that will
7849     # break other packages using the cache if that directory is
7850     # removed, or if the value is a relative name.
7851     INSTALL=$ac_install_sh
7852   fi
7853 fi
7854 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7855 echo "${ECHO_T}$INSTALL" >&6; }
7856
7857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7858 # It thinks the first close brace ends the variable substitution.
7859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7860
7861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7862
7863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7864
7865
7866 # Extract the first word of "bzip2", so it can be a program name with args.
7867 set dummy bzip2; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_BZIP2+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   case $BZIP2 in
7874   [\\/]* | ?:[\\/]*)
7875   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7876   ;;
7877   *)
7878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881   IFS=$as_save_IFS
7882   test -z "$as_dir" && as_dir=.
7883   for ac_exec_ext in '' $ac_executable_extensions; do
7884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887     break 2
7888   fi
7889 done
7890 done
7891 IFS=$as_save_IFS
7892
7893   ;;
7894 esac
7895 fi
7896 BZIP2=$ac_cv_path_BZIP2
7897 if test -n "$BZIP2"; then
7898   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7899 echo "${ECHO_T}$BZIP2" >&6; }
7900 else
7901   { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7903 fi
7904
7905
7906 # Extract the first word of "doxygen", so it can be a program name with args.
7907 set dummy doxygen; ac_word=$2
7908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   case $DOXYGEN in
7914   [\\/]* | ?:[\\/]*)
7915   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7916   ;;
7917   *)
7918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7925     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933   ;;
7934 esac
7935 fi
7936 DOXYGEN=$ac_cv_path_DOXYGEN
7937 if test -n "$DOXYGEN"; then
7938   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7939 echo "${ECHO_T}$DOXYGEN" >&6; }
7940 else
7941   { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7943 fi
7944
7945
7946 # Extract the first word of "groff", so it can be a program name with args.
7947 set dummy groff; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_GROFF+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   case $GROFF in
7954   [\\/]* | ?:[\\/]*)
7955   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7956   ;;
7957   *)
7958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973   ;;
7974 esac
7975 fi
7976 GROFF=$ac_cv_path_GROFF
7977 if test -n "$GROFF"; then
7978   { echo "$as_me:$LINENO: result: $GROFF" >&5
7979 echo "${ECHO_T}$GROFF" >&6; }
7980 else
7981   { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7983 fi
7984
7985
7986 # Extract the first word of "gzip", so it can be a program name with args.
7987 set dummy gzip; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_GZIP+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   case $GZIP in
7994   [\\/]* | ?:[\\/]*)
7995   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7996   ;;
7997   *)
7998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003   for ac_exec_ext in '' $ac_executable_extensions; do
8004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013   ;;
8014 esac
8015 fi
8016 GZIP=$ac_cv_path_GZIP
8017 if test -n "$GZIP"; then
8018   { echo "$as_me:$LINENO: result: $GZIP" >&5
8019 echo "${ECHO_T}$GZIP" >&6; }
8020 else
8021   { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8023 fi
8024
8025
8026 # Extract the first word of "pod2html", so it can be a program name with args.
8027 set dummy pod2html; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_POD2HTML+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   case $POD2HTML in
8034   [\\/]* | ?:[\\/]*)
8035   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8036   ;;
8037   *)
8038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053   ;;
8054 esac
8055 fi
8056 POD2HTML=$ac_cv_path_POD2HTML
8057 if test -n "$POD2HTML"; then
8058   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8059 echo "${ECHO_T}$POD2HTML" >&6; }
8060 else
8061   { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8063 fi
8064
8065
8066 # Extract the first word of "pod2man", so it can be a program name with args.
8067 set dummy pod2man; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_path_POD2MAN+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   case $POD2MAN in
8074   [\\/]* | ?:[\\/]*)
8075   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8076   ;;
8077   *)
8078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081   IFS=$as_save_IFS
8082   test -z "$as_dir" && as_dir=.
8083   for ac_exec_ext in '' $ac_executable_extensions; do
8084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8085     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087     break 2
8088   fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093   ;;
8094 esac
8095 fi
8096 POD2MAN=$ac_cv_path_POD2MAN
8097 if test -n "$POD2MAN"; then
8098   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8099 echo "${ECHO_T}$POD2MAN" >&6; }
8100 else
8101   { echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6; }
8103 fi
8104
8105
8106 # Extract the first word of "runtest", so it can be a program name with args.
8107 set dummy runtest; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_path_RUNTEST+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   case $RUNTEST in
8114   [\\/]* | ?:[\\/]*)
8115   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8116   ;;
8117   *)
8118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121   IFS=$as_save_IFS
8122   test -z "$as_dir" && as_dir=.
8123   for ac_exec_ext in '' $ac_executable_extensions; do
8124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8125     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127     break 2
8128   fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133   ;;
8134 esac
8135 fi
8136 RUNTEST=$ac_cv_path_RUNTEST
8137 if test -n "$RUNTEST"; then
8138   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8139 echo "${ECHO_T}$RUNTEST" >&6; }
8140 else
8141   { echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6; }
8143 fi
8144
8145
8146
8147 no_itcl=true
8148 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8149 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8150
8151 # Check whether --with-tclinclude was given.
8152 if test "${with_tclinclude+set}" = set; then
8153   withval=$with_tclinclude; with_tclinclude=${withval}
8154 else
8155   with_tclinclude=''
8156 fi
8157
8158 if test "${ac_cv_path_tclsh+set}" = set; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161
8162 if test x"${with_tclinclude}" != x ; then
8163   if test -f ${with_tclinclude}/tclsh ; then
8164     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8165   elif test -f ${with_tclinclude}/src/tclsh ; then
8166     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8167   else
8168     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8169 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8170    { (exit 1); exit 1; }; }
8171   fi
8172 fi
8173
8174 if test x"${ac_cv_path_tclsh}" = x ; then
8175   { echo "$as_me:$LINENO: result: none" >&5
8176 echo "${ECHO_T}none" >&6; }
8177   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
8178 do
8179   # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_TCLSH+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   case $TCLSH in
8187   [\\/]* | ?:[\\/]*)
8188   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8189   ;;
8190   *)
8191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206   ;;
8207 esac
8208 fi
8209 TCLSH=$ac_cv_path_TCLSH
8210 if test -n "$TCLSH"; then
8211   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8212 echo "${ECHO_T}$TCLSH" >&6; }
8213 else
8214   { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8216 fi
8217
8218
8219   test -n "$TCLSH" && break
8220 done
8221
8222   if test x"${TCLSH}" = x ; then
8223     ac_cv_path_tclsh='';
8224   else
8225     ac_cv_path_tclsh="${TCLSH}";
8226   fi
8227 else
8228   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8229 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8230   TCLSH="${ac_cv_path_tclsh}"
8231
8232 fi
8233
8234 fi
8235
8236 # Extract the first word of "zip", so it can be a program name with args.
8237 set dummy zip; ac_word=$2
8238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8240 if test "${ac_cv_path_ZIP+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   case $ZIP in
8244   [\\/]* | ?:[\\/]*)
8245   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8246   ;;
8247   *)
8248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8250 do
8251   IFS=$as_save_IFS
8252   test -z "$as_dir" && as_dir=.
8253   for ac_exec_ext in '' $ac_executable_extensions; do
8254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8255     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257     break 2
8258   fi
8259 done
8260 done
8261 IFS=$as_save_IFS
8262
8263   ;;
8264 esac
8265 fi
8266 ZIP=$ac_cv_path_ZIP
8267 if test -n "$ZIP"; then
8268   { echo "$as_me:$LINENO: result: $ZIP" >&5
8269 echo "${ECHO_T}$ZIP" >&6; }
8270 else
8271   { echo "$as_me:$LINENO: result: no" >&5
8272 echo "${ECHO_T}no" >&6; }
8273 fi
8274
8275
8276 for ac_prog in ocamlc
8277 do
8278   # Extract the first word of "$ac_prog", so it can be a program name with args.
8279 set dummy $ac_prog; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_OCAMLC+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   case $OCAMLC in
8286   [\\/]* | ?:[\\/]*)
8287   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8288   ;;
8289   *)
8290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295   for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305   ;;
8306 esac
8307 fi
8308 OCAMLC=$ac_cv_path_OCAMLC
8309 if test -n "$OCAMLC"; then
8310   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8311 echo "${ECHO_T}$OCAMLC" >&6; }
8312 else
8313   { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8315 fi
8316
8317
8318   test -n "$OCAMLC" && break
8319 done
8320
8321 for ac_prog in ocamlopt
8322 do
8323   # Extract the first word of "$ac_prog", so it can be a program name with args.
8324 set dummy $ac_prog; ac_word=$2
8325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8327 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   case $OCAMLOPT in
8331   [\\/]* | ?:[\\/]*)
8332   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8333   ;;
8334   *)
8335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340   for ac_exec_ext in '' $ac_executable_extensions; do
8341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8342     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350   ;;
8351 esac
8352 fi
8353 OCAMLOPT=$ac_cv_path_OCAMLOPT
8354 if test -n "$OCAMLOPT"; then
8355   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8356 echo "${ECHO_T}$OCAMLOPT" >&6; }
8357 else
8358   { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8360 fi
8361
8362
8363   test -n "$OCAMLOPT" && break
8364 done
8365
8366 for ac_prog in ocamldep
8367 do
8368   # Extract the first word of "$ac_prog", so it can be a program name with args.
8369 set dummy $ac_prog; ac_word=$2
8370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   case $OCAMLDEP in
8376   [\\/]* | ?:[\\/]*)
8377   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8378   ;;
8379   *)
8380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   test -z "$as_dir" && as_dir=.
8385   for ac_exec_ext in '' $ac_executable_extensions; do
8386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8387     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389     break 2
8390   fi
8391 done
8392 done
8393 IFS=$as_save_IFS
8394
8395   ;;
8396 esac
8397 fi
8398 OCAMLDEP=$ac_cv_path_OCAMLDEP
8399 if test -n "$OCAMLDEP"; then
8400   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8401 echo "${ECHO_T}$OCAMLDEP" >&6; }
8402 else
8403   { echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6; }
8405 fi
8406
8407
8408   test -n "$OCAMLDEP" && break
8409 done
8410
8411 for ac_prog in ocamldoc
8412 do
8413   # Extract the first word of "$ac_prog", so it can be a program name with args.
8414 set dummy $ac_prog; ac_word=$2
8415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8417 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8418   echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420   case $OCAMLDOC in
8421   [\\/]* | ?:[\\/]*)
8422   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8423   ;;
8424   *)
8425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430   for ac_exec_ext in '' $ac_executable_extensions; do
8431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8432     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440   ;;
8441 esac
8442 fi
8443 OCAMLDOC=$ac_cv_path_OCAMLDOC
8444 if test -n "$OCAMLDOC"; then
8445   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8446 echo "${ECHO_T}$OCAMLDOC" >&6; }
8447 else
8448   { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8450 fi
8451
8452
8453   test -n "$OCAMLDOC" && break
8454 done
8455
8456 for ac_prog in gas as
8457 do
8458   # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy $ac_prog; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_GAS+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   case $GAS in
8466   [\\/]* | ?:[\\/]*)
8467   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8468   ;;
8469   *)
8470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475   for ac_exec_ext in '' $ac_executable_extensions; do
8476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485   ;;
8486 esac
8487 fi
8488 GAS=$ac_cv_path_GAS
8489 if test -n "$GAS"; then
8490   { echo "$as_me:$LINENO: result: $GAS" >&5
8491 echo "${ECHO_T}$GAS" >&6; }
8492 else
8493   { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8495 fi
8496
8497
8498   test -n "$GAS" && break
8499 done
8500
8501
8502 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8503 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8504 if test "${llvm_cv_link_use_r+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507    ac_ext=c
8508 ac_cpp='$CPP $CPPFLAGS'
8509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8512
8513   oldcflags="$CFLAGS"
8514   CFLAGS="$CFLAGS -Wl,-R."
8515   cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521
8522 int
8523 main ()
8524 {
8525 int main() { return 0; }
8526   ;
8527   return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534   *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537   (eval "$ac_link") 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545   { (case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_try") 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; } &&
8554          { ac_try='test -s conftest$ac_exeext'
8555   { (case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_try") 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   llvm_cv_link_use_r=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569         llvm_cv_link_use_r=no
8570 fi
8571
8572 rm -f core conftest.err conftest.$ac_objext \
8573       conftest$ac_exeext conftest.$ac_ext
8574   CFLAGS="$oldcflags"
8575   ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581
8582 fi
8583 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8584 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8585 if test "$llvm_cv_link_use_r" = yes ; then
8586
8587 cat >>confdefs.h <<\_ACEOF
8588 #define HAVE_LINK_R 1
8589 _ACEOF
8590
8591   fi
8592
8593
8594 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8595 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8596 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599    ac_ext=c
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605   oldcflags="$CFLAGS"
8606   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8607   cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 int
8615 main ()
8616 {
8617 int main() { return 0; }
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_link") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637   { (case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_try") 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_try") 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   llvm_cv_link_use_export_dynamic=yes
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661         llvm_cv_link_use_export_dynamic=no
8662 fi
8663
8664 rm -f core conftest.err conftest.$ac_objext \
8665       conftest$ac_exeext conftest.$ac_ext
8666   CFLAGS="$oldcflags"
8667   ac_ext=c
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672
8673
8674 fi
8675 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8676 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8677 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8678
8679 cat >>confdefs.h <<\_ACEOF
8680 #define HAVE_LINK_EXPORT_DYNAMIC 1
8681 _ACEOF
8682
8683   fi
8684
8685
8686
8687
8688 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8689 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8690 if test "${ac_cv_c_const+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699
8700 int
8701 main ()
8702 {
8703 /* FIXME: Include the comments suggested by Paul. */
8704 #ifndef __cplusplus
8705   /* Ultrix mips cc rejects this.  */
8706   typedef int charset[2];
8707   const charset x;
8708   /* SunOS 4.1.1 cc rejects this.  */
8709   char const *const *ccp;
8710   char **p;
8711   /* NEC SVR4.0.2 mips cc rejects this.  */
8712   struct point {int x, y;};
8713   static struct point const zero = {0,0};
8714   /* AIX XL C 1.02.0.0 rejects this.
8715      It does not let you subtract one const X* pointer from another in
8716      an arm of an if-expression whose if-part is not a constant
8717      expression */
8718   const char *g = "string";
8719   ccp = &g + (g ? g-g : 0);
8720   /* HPUX 7.0 cc rejects these. */
8721   ++ccp;
8722   p = (char**) ccp;
8723   ccp = (char const *const *) p;
8724   { /* SCO 3.2v4 cc rejects this.  */
8725     char *t;
8726     char const *s = 0 ? (char *) 0 : (char const *) 0;
8727
8728     *t++ = 0;
8729     if (s) return 0;
8730   }
8731   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8732     int x[] = {25, 17};
8733     const int *foo = &x[0];
8734     ++foo;
8735   }
8736   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8737     typedef const int *iptr;
8738     iptr p = 0;
8739     ++p;
8740   }
8741   { /* AIX XL C 1.02.0.0 rejects this saying
8742        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8743     struct s { int j; const int *ap[3]; };
8744     struct s *b; b->j = 5;
8745   }
8746   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8747     const int foo = 10;
8748     if (!foo) return 0;
8749   }
8750   return !x[0] && !zero.x;
8751 #endif
8752
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_compile") 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772   { (case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_try") 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_try") 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_c_const=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796         ac_cv_c_const=no
8797 fi
8798
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8802 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8803 if test $ac_cv_c_const = no; then
8804
8805 cat >>confdefs.h <<\_ACEOF
8806 #define const
8807 _ACEOF
8808
8809 fi
8810
8811
8812
8813
8814
8815
8816 ac_header_dirent=no
8817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8818   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8819 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8820 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830 #include <sys/types.h>
8831 #include <$ac_hdr>
8832
8833 int
8834 main ()
8835 {
8836 if ((DIR *) 0)
8837 return 0;
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849   (eval "$ac_compile") 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_try") 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   eval "$as_ac_Header=yes"
8877 else
8878   echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881         eval "$as_ac_Header=no"
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 fi
8886 ac_res=`eval echo '${'$as_ac_Header'}'`
8887                { echo "$as_me:$LINENO: result: $ac_res" >&5
8888 echo "${ECHO_T}$ac_res" >&6; }
8889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8890   cat >>confdefs.h <<_ACEOF
8891 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8892 _ACEOF
8893
8894 ac_header_dirent=$ac_hdr; break
8895 fi
8896
8897 done
8898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8899 if test $ac_header_dirent = dirent.h; then
8900   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8902 if test "${ac_cv_search_opendir+set}" = set; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   ac_func_search_save_LIBS=$LIBS
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 /* Override any GCC internal prototype to avoid an error.
8914    Use char because int might match the return type of a GCC
8915    builtin and then its argument prototype would still apply.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char opendir ();
8920 int
8921 main ()
8922 {
8923 return opendir ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 for ac_lib in '' dir; do
8929   if test -z "$ac_lib"; then
8930     ac_res="none required"
8931   else
8932     ac_res=-l$ac_lib
8933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8934   fi
8935   rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (ac_try="$ac_link"
8937 case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_link") 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } &&
8949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8950   { (case "(($ac_try" in
8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952   *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955   (eval "$ac_try") 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; } &&
8959          { ac_try='test -s conftest$ac_exeext'
8960   { (case "(($ac_try" in
8961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962   *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965   (eval "$ac_try") 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); }; }; then
8969   ac_cv_search_opendir=$ac_res
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974
8975 fi
8976
8977 rm -f core conftest.err conftest.$ac_objext \
8978       conftest$ac_exeext
8979   if test "${ac_cv_search_opendir+set}" = set; then
8980   break
8981 fi
8982 done
8983 if test "${ac_cv_search_opendir+set}" = set; then
8984   :
8985 else
8986   ac_cv_search_opendir=no
8987 fi
8988 rm conftest.$ac_ext
8989 LIBS=$ac_func_search_save_LIBS
8990 fi
8991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8993 ac_res=$ac_cv_search_opendir
8994 if test "$ac_res" != no; then
8995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8996
8997 fi
8998
8999 else
9000   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9001 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9002 if test "${ac_cv_search_opendir+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_func_search_save_LIBS=$LIBS
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 /* Override any GCC internal prototype to avoid an error.
9014    Use char because int might match the return type of a GCC
9015    builtin and then its argument prototype would still apply.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 char opendir ();
9020 int
9021 main ()
9022 {
9023 return opendir ();
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 for ac_lib in '' x; do
9029   if test -z "$ac_lib"; then
9030     ac_res="none required"
9031   else
9032     ac_res=-l$ac_lib
9033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9034   fi
9035   rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (ac_try="$ac_link"
9037 case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_link") 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } &&
9049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9050   { (case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055   (eval "$ac_try") 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; } &&
9059          { ac_try='test -s conftest$ac_exeext'
9060   { (case "(($ac_try" in
9061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062   *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065   (eval "$ac_try") 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; }; then
9069   ac_cv_search_opendir=$ac_res
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074
9075 fi
9076
9077 rm -f core conftest.err conftest.$ac_objext \
9078       conftest$ac_exeext
9079   if test "${ac_cv_search_opendir+set}" = set; then
9080   break
9081 fi
9082 done
9083 if test "${ac_cv_search_opendir+set}" = set; then
9084   :
9085 else
9086   ac_cv_search_opendir=no
9087 fi
9088 rm conftest.$ac_ext
9089 LIBS=$ac_func_search_save_LIBS
9090 fi
9091 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9092 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9093 ac_res=$ac_cv_search_opendir
9094 if test "$ac_res" != no; then
9095   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9096
9097 fi
9098
9099 fi
9100
9101
9102 for ac_header in dlfcn.h
9103 do
9104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9106   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 fi
9111 ac_res=`eval echo '${'$as_ac_Header'}'`
9112                { echo "$as_me:$LINENO: result: $ac_res" >&5
9113 echo "${ECHO_T}$ac_res" >&6; }
9114 else
9115   # Is the header compilable?
9116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 $ac_includes_default
9125 #include <$ac_header>
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9129 case "(($ac_try" in
9130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131   *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134   (eval "$ac_compile") 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } &&
9141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142   { (case "(($ac_try" in
9143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144   *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147   (eval "$ac_try") 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; } &&
9151          { ac_try='test -s conftest.$ac_objext'
9152   { (case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_try") 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }; }; then
9161   ac_header_compiler=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166         ac_header_compiler=no
9167 fi
9168
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6; }
9172
9173 # Is the header present?
9174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182 #include <$ac_header>
9183 _ACEOF
9184 if { (ac_try="$ac_cpp conftest.$ac_ext"
9185 case "(($ac_try" in
9186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187   *) ac_try_echo=$ac_try;;
9188 esac
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9191   ac_status=$?
9192   grep -v '^ *+' conftest.er1 >conftest.err
9193   rm -f conftest.er1
9194   cat conftest.err >&5
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); } >/dev/null; then
9197   if test -s conftest.err; then
9198     ac_cpp_err=$ac_c_preproc_warn_flag
9199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9200   else
9201     ac_cpp_err=
9202   fi
9203 else
9204   ac_cpp_err=yes
9205 fi
9206 if test -z "$ac_cpp_err"; then
9207   ac_header_preproc=yes
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212   ac_header_preproc=no
9213 fi
9214
9215 rm -f conftest.err conftest.$ac_ext
9216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217 echo "${ECHO_T}$ac_header_preproc" >&6; }
9218
9219 # So?  What about this header?
9220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221   yes:no: )
9222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9226     ac_header_preproc=yes
9227     ;;
9228   no:yes:* )
9229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9241     ( cat <<\_ASBOX
9242 ## ----------------------------------- ##
9243 ## Report this to llvmbugs@cs.uiuc.edu ##
9244 ## ----------------------------------- ##
9245 _ASBOX
9246      ) | sed "s/^/$as_me: WARNING:     /" >&2
9247     ;;
9248 esac
9249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   eval "$as_ac_Header=\$ac_header_preproc"
9255 fi
9256 ac_res=`eval echo '${'$as_ac_Header'}'`
9257                { echo "$as_me:$LINENO: result: $ac_res" >&5
9258 echo "${ECHO_T}$ac_res" >&6; }
9259
9260 fi
9261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262   cat >>confdefs.h <<_ACEOF
9263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 _ACEOF
9265
9266 fi
9267
9268 done
9269
9270 # Check whether --enable-ltdl-install was given.
9271 if test "${enable_ltdl_install+set}" = set; then
9272   enableval=$enable_ltdl_install;
9273 fi
9274
9275
9276
9277
9278 if test x"${enable_ltdl_install-no}" != xno; then
9279   INSTALL_LTDL_TRUE=
9280   INSTALL_LTDL_FALSE='#'
9281 else
9282   INSTALL_LTDL_TRUE='#'
9283   INSTALL_LTDL_FALSE=
9284 fi
9285
9286
9287
9288 if test x"${enable_ltdl_convenience-no}" != xno; then
9289   CONVENIENCE_LTDL_TRUE=
9290   CONVENIENCE_LTDL_FALSE='#'
9291 else
9292   CONVENIENCE_LTDL_TRUE='#'
9293   CONVENIENCE_LTDL_FALSE=
9294 fi
9295
9296
9297 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9298 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9299 library_names_spec=
9300 libname_spec='lib$name'
9301 soname_spec=
9302 shrext_cmds=".so"
9303 postinstall_cmds=
9304 postuninstall_cmds=
9305 finish_cmds=
9306 finish_eval=
9307 shlibpath_var=
9308 shlibpath_overrides_runpath=unknown
9309 version_type=none
9310 dynamic_linker="$host_os ld.so"
9311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9312 if test "$GCC" = yes; then
9313   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9314   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9315     # if the path contains ";" then we assume it to be the separator
9316     # otherwise default to the standard path separator (i.e. ":") - it is
9317     # assumed that no part of a normal pathname contains ";" but that should
9318     # okay in the real world where ";" in dirpaths is itself problematic.
9319     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9320   else
9321     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9322   fi
9323 else
9324   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9325 fi
9326 need_lib_prefix=unknown
9327 hardcode_into_libs=no
9328
9329 # when you set need_version to no, make sure it does not cause -set_version
9330 # flags to be left without arguments
9331 need_version=unknown
9332
9333 case $host_os in
9334 aix3*)
9335   version_type=linux
9336   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9337   shlibpath_var=LIBPATH
9338
9339   # AIX 3 has no versioning support, so we append a major version to the name.
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   ;;
9342
9343 aix4* | aix5*)
9344   version_type=linux
9345   need_lib_prefix=no
9346   need_version=no
9347   hardcode_into_libs=yes
9348   if test "$host_cpu" = ia64; then
9349     # AIX 5 supports IA64
9350     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9351     shlibpath_var=LD_LIBRARY_PATH
9352   else
9353     # With GCC up to 2.95.x, collect2 would create an import file
9354     # for dependence libraries.  The import file would start with
9355     # the line `#! .'.  This would cause the generated library to
9356     # depend on `.', always an invalid library.  This was fixed in
9357     # development snapshots of GCC prior to 3.0.
9358     case $host_os in
9359       aix4 | aix4.[01] | aix4.[01].*)
9360       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9361            echo ' yes '
9362            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9363         :
9364       else
9365         can_build_shared=no
9366       fi
9367       ;;
9368     esac
9369     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9370     # soname into executable. Probably we can add versioning support to
9371     # collect2, so additional links can be useful in future.
9372     if test "$aix_use_runtimelinking" = yes; then
9373       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9374       # instead of lib<name>.a to let people know that these are not
9375       # typical AIX shared libraries.
9376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377     else
9378       # We preserve .a as extension for shared libraries through AIX4.2
9379       # and later when we are not doing run time linking.
9380       library_names_spec='${libname}${release}.a $libname.a'
9381       soname_spec='${libname}${release}${shared_ext}$major'
9382     fi
9383     shlibpath_var=LIBPATH
9384   fi
9385   ;;
9386
9387 amigaos*)
9388   library_names_spec='$libname.ixlibrary $libname.a'
9389   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9390   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'
9391   ;;
9392
9393 beos*)
9394   library_names_spec='${libname}${shared_ext}'
9395   dynamic_linker="$host_os ld.so"
9396   shlibpath_var=LIBRARY_PATH
9397   ;;
9398
9399 bsdi[45]*)
9400   version_type=linux
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9407   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9408   # the default ld.so.conf also contains /usr/contrib/lib and
9409   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9410   # libtool to hard-code these into programs
9411   ;;
9412
9413 cygwin* | mingw* | pw32*)
9414   version_type=windows
9415   shrext_cmds=".dll"
9416   need_version=no
9417   need_lib_prefix=no
9418
9419   case $GCC,$host_os in
9420   yes,cygwin* | yes,mingw* | yes,pw32*)
9421     library_names_spec='$libname.dll.a'
9422     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9423     postinstall_cmds='base_file=`basename \${file}`~
9424       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9425       dldir=$destdir/`dirname \$dlpath`~
9426       test -d \$dldir || mkdir -p \$dldir~
9427       $install_prog $dir/$dlname \$dldir/$dlname~
9428       chmod a+x \$dldir/$dlname'
9429     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430       dlpath=$dir/\$dldll~
9431        $rm \$dlpath'
9432     shlibpath_overrides_runpath=yes
9433
9434     case $host_os in
9435     cygwin*)
9436       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439       ;;
9440     mingw*)
9441       # MinGW DLLs use traditional 'lib' prefix
9442       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9445         # It is most probably a Windows format PATH printed by
9446         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447         # path with ; separators, and with drive letters. We can handle the
9448         # drive letters (cygwin fileutils understands them), so leave them,
9449         # especially as we might pass files found there to a mingw objdump,
9450         # which wouldn't understand a cygwinified path. Ahh.
9451         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452       else
9453         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9454       fi
9455       ;;
9456     pw32*)
9457       # pw32 DLLs use 'pw' prefix rather than 'lib'
9458       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9459       ;;
9460     esac
9461     ;;
9462
9463   *)
9464     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465     ;;
9466   esac
9467   dynamic_linker='Win32 ld.exe'
9468   # FIXME: first we should search . and the directory the executable is in
9469   shlibpath_var=PATH
9470   ;;
9471
9472 darwin* | rhapsody*)
9473   dynamic_linker="$host_os dyld"
9474   version_type=darwin
9475   need_lib_prefix=no
9476   need_version=no
9477   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478   soname_spec='${libname}${release}${major}$shared_ext'
9479   shlibpath_overrides_runpath=yes
9480   shlibpath_var=DYLD_LIBRARY_PATH
9481   shrext_cmds='.dylib'
9482   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9483   if test "$GCC" = yes; then
9484     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"`
9485   else
9486     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9487   fi
9488   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9489   ;;
9490
9491 dgux*)
9492   version_type=linux
9493   need_lib_prefix=no
9494   need_version=no
9495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9496   soname_spec='${libname}${release}${shared_ext}$major'
9497   shlibpath_var=LD_LIBRARY_PATH
9498   ;;
9499
9500 freebsd1*)
9501   dynamic_linker=no
9502   ;;
9503
9504 kfreebsd*-gnu)
9505   version_type=linux
9506   need_lib_prefix=no
9507   need_version=no
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   shlibpath_overrides_runpath=no
9512   hardcode_into_libs=yes
9513   dynamic_linker='GNU ld.so'
9514   ;;
9515
9516 freebsd* | dragonfly*)
9517   # DragonFly does not have aout.  When/if they implement a new
9518   # versioning mechanism, adjust this.
9519   if test -x /usr/bin/objformat; then
9520     objformat=`/usr/bin/objformat`
9521   else
9522     case $host_os in
9523     freebsd[123]*) objformat=aout ;;
9524     *) objformat=elf ;;
9525     esac
9526   fi
9527   version_type=freebsd-$objformat
9528   case $version_type in
9529     freebsd-elf*)
9530       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9531       need_version=no
9532       need_lib_prefix=no
9533       ;;
9534     freebsd-*)
9535       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9536       need_version=yes
9537       ;;
9538   esac
9539   shlibpath_var=LD_LIBRARY_PATH
9540   case $host_os in
9541   freebsd2*)
9542     shlibpath_overrides_runpath=yes
9543     ;;
9544   freebsd3.[01]* | freebsdelf3.[01]*)
9545     shlibpath_overrides_runpath=yes
9546     hardcode_into_libs=yes
9547     ;;
9548   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9549   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9550     shlibpath_overrides_runpath=no
9551     hardcode_into_libs=yes
9552     ;;
9553   freebsd*) # from 4.6 on
9554     shlibpath_overrides_runpath=yes
9555     hardcode_into_libs=yes
9556     ;;
9557   esac
9558   ;;
9559
9560 gnu*)
9561   version_type=linux
9562   need_lib_prefix=no
9563   need_version=no
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9565   soname_spec='${libname}${release}${shared_ext}$major'
9566   shlibpath_var=LD_LIBRARY_PATH
9567   hardcode_into_libs=yes
9568   ;;
9569
9570 hpux9* | hpux10* | hpux11*)
9571   # Give a soname corresponding to the major version so that dld.sl refuses to
9572   # link against other versions.
9573   version_type=sunos
9574   need_lib_prefix=no
9575   need_version=no
9576   case $host_cpu in
9577   ia64*)
9578     shrext_cmds='.so'
9579     hardcode_into_libs=yes
9580     dynamic_linker="$host_os dld.so"
9581     shlibpath_var=LD_LIBRARY_PATH
9582     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584     soname_spec='${libname}${release}${shared_ext}$major'
9585     if test "X$HPUX_IA64_MODE" = X32; then
9586       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9587     else
9588       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9589     fi
9590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9591     ;;
9592    hppa*64*)
9593      shrext_cmds='.sl'
9594      hardcode_into_libs=yes
9595      dynamic_linker="$host_os dld.sl"
9596      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9597      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9598      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599      soname_spec='${libname}${release}${shared_ext}$major'
9600      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9601      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9602      ;;
9603    *)
9604     shrext_cmds='.sl'
9605     dynamic_linker="$host_os dld.sl"
9606     shlibpath_var=SHLIB_PATH
9607     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609     soname_spec='${libname}${release}${shared_ext}$major'
9610     ;;
9611   esac
9612   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9613   postinstall_cmds='chmod 555 $lib'
9614   ;;
9615
9616 interix3*)
9617   version_type=linux
9618   need_lib_prefix=no
9619   need_version=no
9620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621   soname_spec='${libname}${release}${shared_ext}$major'
9622   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9623   shlibpath_var=LD_LIBRARY_PATH
9624   shlibpath_overrides_runpath=no
9625   hardcode_into_libs=yes
9626   ;;
9627
9628 irix5* | irix6* | nonstopux*)
9629   case $host_os in
9630     nonstopux*) version_type=nonstopux ;;
9631     *)
9632         if test "$lt_cv_prog_gnu_ld" = yes; then
9633                 version_type=linux
9634         else
9635                 version_type=irix
9636         fi ;;
9637   esac
9638   need_lib_prefix=no
9639   need_version=no
9640   soname_spec='${libname}${release}${shared_ext}$major'
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9642   case $host_os in
9643   irix5* | nonstopux*)
9644     libsuff= shlibsuff=
9645     ;;
9646   *)
9647     case $LD in # libtool.m4 will add one of these switches to LD
9648     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9649       libsuff= shlibsuff= libmagic=32-bit;;
9650     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9651       libsuff=32 shlibsuff=N32 libmagic=N32;;
9652     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9653       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9654     *) libsuff= shlibsuff= libmagic=never-match;;
9655     esac
9656     ;;
9657   esac
9658   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9659   shlibpath_overrides_runpath=no
9660   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9661   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9662   hardcode_into_libs=yes
9663   ;;
9664
9665 # No shared lib support for Linux oldld, aout, or coff.
9666 linux*oldld* | linux*aout* | linux*coff*)
9667   dynamic_linker=no
9668   ;;
9669
9670 # This must be Linux ELF.
9671 linux*)
9672   version_type=linux
9673   need_lib_prefix=no
9674   need_version=no
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676   soname_spec='${libname}${release}${shared_ext}$major'
9677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9678   shlibpath_var=LD_LIBRARY_PATH
9679   shlibpath_overrides_runpath=no
9680   # This implies no fast_install, which is unacceptable.
9681   # Some rework will be needed to allow for fast_install
9682   # before this can be enabled.
9683   hardcode_into_libs=yes
9684
9685   # Append ld.so.conf contents to the search path
9686   if test -f /etc/ld.so.conf; then
9687     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' ' '`
9688     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9689   fi
9690
9691   # We used to test for /lib/ld.so.1 and disable shared libraries on
9692   # powerpc, because MkLinux only supported shared libraries with the
9693   # GNU dynamic linker.  Since this was broken with cross compilers,
9694   # most powerpc-linux boxes support dynamic linking these days and
9695   # people can always --disable-shared, the test was removed, and we
9696   # assume the GNU/Linux dynamic linker is in use.
9697   dynamic_linker='GNU/Linux ld.so'
9698   ;;
9699
9700 knetbsd*-gnu)
9701   version_type=linux
9702   need_lib_prefix=no
9703   need_version=no
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=no
9708   hardcode_into_libs=yes
9709   dynamic_linker='GNU ld.so'
9710   ;;
9711
9712 netbsd*)
9713   version_type=sunos
9714   need_lib_prefix=no
9715   need_version=no
9716   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9718     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9719     dynamic_linker='NetBSD (a.out) ld.so'
9720   else
9721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722     soname_spec='${libname}${release}${shared_ext}$major'
9723     dynamic_linker='NetBSD ld.elf_so'
9724   fi
9725   shlibpath_var=LD_LIBRARY_PATH
9726   shlibpath_overrides_runpath=yes
9727   hardcode_into_libs=yes
9728   ;;
9729
9730 newsos6)
9731   version_type=linux
9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   shlibpath_overrides_runpath=yes
9735   ;;
9736
9737 nto-qnx*)
9738   version_type=linux
9739   need_lib_prefix=no
9740   need_version=no
9741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742   soname_spec='${libname}${release}${shared_ext}$major'
9743   shlibpath_var=LD_LIBRARY_PATH
9744   shlibpath_overrides_runpath=yes
9745   ;;
9746
9747 openbsd*)
9748   version_type=sunos
9749   sys_lib_dlsearch_path_spec="/usr/lib"
9750   need_lib_prefix=no
9751   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9752   case $host_os in
9753     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9754     *)                         need_version=no  ;;
9755   esac
9756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9758   shlibpath_var=LD_LIBRARY_PATH
9759   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9760     case $host_os in
9761       openbsd2.[89] | openbsd2.[89].*)
9762         shlibpath_overrides_runpath=no
9763         ;;
9764       *)
9765         shlibpath_overrides_runpath=yes
9766         ;;
9767       esac
9768   else
9769     shlibpath_overrides_runpath=yes
9770   fi
9771   ;;
9772
9773 os2*)
9774   libname_spec='$name'
9775   shrext_cmds=".dll"
9776   need_lib_prefix=no
9777   library_names_spec='$libname${shared_ext} $libname.a'
9778   dynamic_linker='OS/2 ld.exe'
9779   shlibpath_var=LIBPATH
9780   ;;
9781
9782 osf3* | osf4* | osf5*)
9783   version_type=osf
9784   need_lib_prefix=no
9785   need_version=no
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788   shlibpath_var=LD_LIBRARY_PATH
9789   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9790   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9791   ;;
9792
9793 solaris*)
9794   version_type=linux
9795   need_lib_prefix=no
9796   need_version=no
9797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798   soname_spec='${libname}${release}${shared_ext}$major'
9799   shlibpath_var=LD_LIBRARY_PATH
9800   shlibpath_overrides_runpath=yes
9801   hardcode_into_libs=yes
9802   # ldd complains unless libraries are executable
9803   postinstall_cmds='chmod +x $lib'
9804   ;;
9805
9806 sunos4*)
9807   version_type=sunos
9808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9809   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9810   shlibpath_var=LD_LIBRARY_PATH
9811   shlibpath_overrides_runpath=yes
9812   if test "$with_gnu_ld" = yes; then
9813     need_lib_prefix=no
9814   fi
9815   need_version=yes
9816   ;;
9817
9818 sysv4 | sysv4.3*)
9819   version_type=linux
9820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821   soname_spec='${libname}${release}${shared_ext}$major'
9822   shlibpath_var=LD_LIBRARY_PATH
9823   case $host_vendor in
9824     sni)
9825       shlibpath_overrides_runpath=no
9826       need_lib_prefix=no
9827       export_dynamic_flag_spec='${wl}-Blargedynsym'
9828       runpath_var=LD_RUN_PATH
9829       ;;
9830     siemens)
9831       need_lib_prefix=no
9832       ;;
9833     motorola)
9834       need_lib_prefix=no
9835       need_version=no
9836       shlibpath_overrides_runpath=no
9837       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9838       ;;
9839   esac
9840   ;;
9841
9842 sysv4*MP*)
9843   if test -d /usr/nec ;then
9844     version_type=linux
9845     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9846     soname_spec='$libname${shared_ext}.$major'
9847     shlibpath_var=LD_LIBRARY_PATH
9848   fi
9849   ;;
9850
9851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9852   version_type=freebsd-elf
9853   need_lib_prefix=no
9854   need_version=no
9855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9856   soname_spec='${libname}${release}${shared_ext}$major'
9857   shlibpath_var=LD_LIBRARY_PATH
9858   hardcode_into_libs=yes
9859   if test "$with_gnu_ld" = yes; then
9860     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9861     shlibpath_overrides_runpath=no
9862   else
9863     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9864     shlibpath_overrides_runpath=yes
9865     case $host_os in
9866       sco3.2v5*)
9867         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9868         ;;
9869     esac
9870   fi
9871   sys_lib_dlsearch_path_spec='/usr/lib'
9872   ;;
9873
9874 uts4*)
9875   version_type=linux
9876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877   soname_spec='${libname}${release}${shared_ext}$major'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   ;;
9880
9881 *)
9882   dynamic_linker=no
9883   ;;
9884 esac
9885 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9886 echo "${ECHO_T}$dynamic_linker" >&6; }
9887 test "$dynamic_linker" = no && can_build_shared=no
9888
9889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9890 if test "$GCC" = yes; then
9891   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9892 fi
9893
9894
9895 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9896 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9897 if test "${libltdl_cv_shlibext+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900
9901 module=yes
9902 eval libltdl_cv_shlibext=$shrext_cmds
9903
9904 fi
9905 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9906 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9907 if test -n "$libltdl_cv_shlibext"; then
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9911 _ACEOF
9912
9913 fi
9914
9915
9916 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9917 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9918 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921   libltdl_cv_shlibpath_var="$shlibpath_var"
9922 fi
9923 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9924 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9925 if test -n "$libltdl_cv_shlibpath_var"; then
9926
9927 cat >>confdefs.h <<_ACEOF
9928 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9929 _ACEOF
9930
9931 fi
9932
9933
9934 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9935 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9936 if test "${libltdl_cv_sys_search_path+set}" = set; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9940 fi
9941 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9942 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9943 if test -n "$libltdl_cv_sys_search_path"; then
9944   sys_search_path=
9945   for dir in $libltdl_cv_sys_search_path; do
9946     if test -z "$sys_search_path"; then
9947       sys_search_path="$dir"
9948     else
9949       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9950     fi
9951   done
9952
9953 cat >>confdefs.h <<_ACEOF
9954 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9955 _ACEOF
9956
9957 fi
9958
9959 { echo "$as_me:$LINENO: checking for objdir" >&5
9960 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9961 if test "${libltdl_cv_objdir+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   libltdl_cv_objdir="$objdir"
9965   if test -n "$objdir"; then
9966     :
9967   else
9968     rm -f .libs 2>/dev/null
9969     mkdir .libs 2>/dev/null
9970     if test -d .libs; then
9971       libltdl_cv_objdir=.libs
9972     else
9973       # MS-DOS does not allow filenames that begin with a dot.
9974       libltdl_cv_objdir=_libs
9975     fi
9976   rmdir .libs 2>/dev/null
9977   fi
9978
9979 fi
9980 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9981 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9982
9983 cat >>confdefs.h <<_ACEOF
9984 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9985 _ACEOF
9986
9987
9988
9989
9990
9991
9992 # Check for command to grab the raw symbol name followed by C symbol from nm.
9993 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9994 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9995 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998
9999 # These are sane defaults that work on at least a few old systems.
10000 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10001
10002 # Character class describing NM global symbol codes.
10003 symcode='[BCDEGRST]'
10004
10005 # Regexp to match symbols that can be accessed directly from C.
10006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10007
10008 # Transform an extracted symbol line into a proper C declaration
10009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10010
10011 # Transform an extracted symbol line into symbol name and symbol address
10012 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'"
10013
10014 # Define system-specific variables.
10015 case $host_os in
10016 aix*)
10017   symcode='[BCDT]'
10018   ;;
10019 cygwin* | mingw* | pw32*)
10020   symcode='[ABCDGISTW]'
10021   ;;
10022 hpux*) # Its linker distinguishes data from code symbols
10023   if test "$host_cpu" = ia64; then
10024     symcode='[ABCDEGRST]'
10025   fi
10026   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10027   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'"
10028   ;;
10029 linux*)
10030   if test "$host_cpu" = ia64; then
10031     symcode='[ABCDGIRSTW]'
10032     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10033     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'"
10034   fi
10035   ;;
10036 irix* | nonstopux*)
10037   symcode='[BCDEGRST]'
10038   ;;
10039 osf*)
10040   symcode='[BCDEGQRST]'
10041   ;;
10042 solaris*)
10043   symcode='[BDRT]'
10044   ;;
10045 sco3.2v5*)
10046   symcode='[DT]'
10047   ;;
10048 sysv4.2uw2*)
10049   symcode='[DT]'
10050   ;;
10051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10052   symcode='[ABDT]'
10053   ;;
10054 sysv4)
10055   symcode='[DFNSTU]'
10056   ;;
10057 esac
10058
10059 # Handle CRLF in mingw tool chain
10060 opt_cr=
10061 case $build_os in
10062 mingw*)
10063   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10064   ;;
10065 esac
10066
10067 # If we're using GNU nm, then use its standard symbol codes.
10068 case `$NM -V 2>&1` in
10069 *GNU* | *'with BFD'*)
10070   symcode='[ABCDGIRSTW]' ;;
10071 esac
10072
10073 # Try without a prefix undercore, then with it.
10074 for ac_symprfx in "" "_"; do
10075
10076   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10077   symxfrm="\\1 $ac_symprfx\\2 \\2"
10078
10079   # Write the raw and C identifiers.
10080   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10081
10082   # Check to see that the pipe works correctly.
10083   pipe_works=no
10084
10085   rm -f conftest*
10086   cat > conftest.$ac_ext <<EOF
10087 #ifdef __cplusplus
10088 extern "C" {
10089 #endif
10090 char nm_test_var;
10091 void nm_test_func(){}
10092 #ifdef __cplusplus
10093 }
10094 #endif
10095 int main(){nm_test_var='a';nm_test_func();return(0);}
10096 EOF
10097
10098   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; then
10103     # Now try to grab the symbols.
10104     nlist=conftest.nm
10105     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10106   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } && test -s "$nlist"; then
10110       # Try sorting and uniquifying the output.
10111       if sort "$nlist" | uniq > "$nlist"T; then
10112         mv -f "$nlist"T "$nlist"
10113       else
10114         rm -f "$nlist"T
10115       fi
10116
10117       # Make sure that we snagged all the symbols we need.
10118       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10119         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10120           cat <<EOF > conftest.$ac_ext
10121 #ifdef __cplusplus
10122 extern "C" {
10123 #endif
10124
10125 EOF
10126           # Now generate the symbol file.
10127           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10128
10129           cat <<EOF >> conftest.$ac_ext
10130 #if defined (__STDC__) && __STDC__
10131 # define lt_ptr_t void *
10132 #else
10133 # define lt_ptr_t char *
10134 # define const
10135 #endif
10136
10137 /* The mapping between symbol names and symbols. */
10138 const struct {
10139   const char *name;
10140   lt_ptr_t address;
10141 }
10142 lt_preloaded_symbols[] =
10143 {
10144 EOF
10145           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10146           cat <<\EOF >> conftest.$ac_ext
10147   {0, (lt_ptr_t) 0}
10148 };
10149
10150 #ifdef __cplusplus
10151 }
10152 #endif
10153 EOF
10154           # Now try linking the two files.
10155           mv conftest.$ac_objext conftstm.$ac_objext
10156           lt_save_LIBS="$LIBS"
10157           lt_save_CFLAGS="$CFLAGS"
10158           LIBS="conftstm.$ac_objext"
10159           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10160           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161   (eval $ac_link) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10165             pipe_works=yes
10166           fi
10167           LIBS="$lt_save_LIBS"
10168           CFLAGS="$lt_save_CFLAGS"
10169         else
10170           echo "cannot find nm_test_func in $nlist" >&5
10171         fi
10172       else
10173         echo "cannot find nm_test_var in $nlist" >&5
10174       fi
10175     else
10176       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10177     fi
10178   else
10179     echo "$progname: failed program was:" >&5
10180     cat conftest.$ac_ext >&5
10181   fi
10182   rm -f conftest* conftst*
10183
10184   # Do not use the global_symbol_pipe unless it works.
10185   if test "$pipe_works" = yes; then
10186     break
10187   else
10188     lt_cv_sys_global_symbol_pipe=
10189   fi
10190 done
10191
10192 fi
10193
10194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10195   lt_cv_sys_global_symbol_to_cdecl=
10196 fi
10197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10198   { echo "$as_me:$LINENO: result: failed" >&5
10199 echo "${ECHO_T}failed" >&6; }
10200 else
10201   { echo "$as_me:$LINENO: result: ok" >&5
10202 echo "${ECHO_T}ok" >&6; }
10203 fi
10204
10205
10206 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10207 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10208 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10212     libltdl_cv_preloaded_symbols=yes
10213   else
10214     libltdl_cv_preloaded_symbols=no
10215   fi
10216
10217 fi
10218 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10219 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10220 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10221
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_PRELOADED_SYMBOLS 1
10224 _ACEOF
10225
10226 fi
10227
10228 LIBADD_DL=
10229
10230 ac_ext=c
10231 ac_cpp='$CPP $CPPFLAGS'
10232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
10236
10237 { echo "$as_me:$LINENO: checking for shl_load" >&5
10238 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10239 if test "${ac_cv_func_shl_load+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10250 #define shl_load innocuous_shl_load
10251
10252 /* System header to define __stub macros and hopefully few prototypes,
10253     which can conflict with char shl_load (); below.
10254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255     <limits.h> exists even on freestanding compilers.  */
10256
10257 #ifdef __STDC__
10258 # include <limits.h>
10259 #else
10260 # include <assert.h>
10261 #endif
10262
10263 #undef shl_load
10264
10265 /* Override any GCC internal prototype to avoid an error.
10266    Use char because int might match the return type of a GCC
10267    builtin and then its argument prototype would still apply.  */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 char shl_load ();
10272 /* The GNU C library defines this for functions which it implements
10273     to always fail with ENOSYS.  Some functions are actually named
10274     something starting with __ and the normal name is an alias.  */
10275 #if defined __stub_shl_load || defined __stub___shl_load
10276 choke me
10277 #endif
10278
10279 int
10280 main ()
10281 {
10282 return shl_load ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_link") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302   { (case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_try") 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; } &&
10311          { ac_try='test -s conftest$ac_exeext'
10312   { (case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_try") 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; }; then
10321   ac_cv_func_shl_load=yes
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326         ac_cv_func_shl_load=no
10327 fi
10328
10329 rm -f core conftest.err conftest.$ac_objext \
10330       conftest$ac_exeext conftest.$ac_ext
10331 fi
10332 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10334 if test $ac_cv_func_shl_load = yes; then
10335
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_SHL_LOAD 1
10338 _ACEOF
10339
10340 else
10341   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldld  $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any GCC internal prototype to avoid an error.
10356    Use char because int might match the return type of a GCC
10357    builtin and then its argument prototype would still apply.  */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 char shl_load ();
10362 int
10363 main ()
10364 {
10365 return shl_load ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377   (eval "$ac_link") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } &&
10384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385   { (case "(($ac_try" in
10386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387   *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390   (eval "$ac_try") 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; } &&
10394          { ac_try='test -s conftest$ac_exeext'
10395   { (case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_try") 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; }; then
10404   ac_cv_lib_dld_shl_load=yes
10405 else
10406   echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409         ac_cv_lib_dld_shl_load=no
10410 fi
10411
10412 rm -f core conftest.err conftest.$ac_objext \
10413       conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10415 fi
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10418 if test $ac_cv_lib_dld_shl_load = yes; then
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SHL_LOAD 1
10422 _ACEOF
10423
10424         LIBADD_DL="$LIBADD_DL -ldld"
10425 else
10426   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10429   echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431   ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-ldl  $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439
10440 /* Override any GCC internal prototype to avoid an error.
10441    Use char because int might match the return type of a GCC
10442    builtin and then its argument prototype would still apply.  */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char dlopen ();
10447 int
10448 main ()
10449 {
10450 return dlopen ();
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462   (eval "$ac_link") 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470   { (case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475   (eval "$ac_try") 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; } &&
10479          { ac_try='test -s conftest$ac_exeext'
10480   { (case "(($ac_try" in
10481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482   *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485   (eval "$ac_try") 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   ac_cv_lib_dl_dlopen=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494         ac_cv_lib_dl_dlopen=no
10495 fi
10496
10497 rm -f core conftest.err conftest.$ac_objext \
10498       conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10500 fi
10501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10503 if test $ac_cv_lib_dl_dlopen = yes; then
10504
10505 cat >>confdefs.h <<\_ACEOF
10506 #define HAVE_LIBDL 1
10507 _ACEOF
10508
10509                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10510 else
10511   cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517 #if HAVE_DLFCN_H
10518 #  include <dlfcn.h>
10519 #endif
10520
10521 int
10522 main ()
10523 {
10524 dlopen(0, 0);
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533   *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536   (eval "$ac_link") 2>conftest.er1
10537   ac_status=$?
10538   grep -v '^ *+' conftest.er1 >conftest.err
10539   rm -f conftest.er1
10540   cat conftest.err >&5
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544   { (case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_try") 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest$ac_exeext'
10554   { (case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_try") 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_LIBDL 1
10566 _ACEOF
10567  libltdl_cv_func_dlopen="yes"
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10573 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10574 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lsvld  $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585
10586 /* Override any GCC internal prototype to avoid an error.
10587    Use char because int might match the return type of a GCC
10588    builtin and then its argument prototype would still apply.  */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char dlopen ();
10593 int
10594 main ()
10595 {
10596 return dlopen ();
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_link") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616   { (case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_try") 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest$ac_exeext'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_lib_svld_dlopen=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_cv_lib_svld_dlopen=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext \
10644       conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10649 if test $ac_cv_lib_svld_dlopen = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_LIBDL 1
10653 _ACEOF
10654
10655                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10656 else
10657   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10658 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10659 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldld  $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672    Use char because int might match the return type of a GCC
10673    builtin and then its argument prototype would still apply.  */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dld_link ();
10678 int
10679 main ()
10680 {
10681 return dld_link ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_link") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } &&
10700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701   { (case "(($ac_try" in
10702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703   *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706   (eval "$ac_try") 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; } &&
10710          { ac_try='test -s conftest$ac_exeext'
10711   { (case "(($ac_try" in
10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713   *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716   (eval "$ac_try") 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_cv_lib_dld_dld_link=yes
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         ac_cv_lib_dld_dld_link=no
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext \
10729       conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10731 fi
10732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10733 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10734 if test $ac_cv_lib_dld_dld_link = yes; then
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_DLD 1
10738 _ACEOF
10739
10740                 LIBADD_DL="$LIBADD_DL -ldld"
10741 else
10742   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10743 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10744 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10745   echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747   cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10755 #define _dyld_func_lookup innocuous__dyld_func_lookup
10756
10757 /* System header to define __stub macros and hopefully few prototypes,
10758     which can conflict with char _dyld_func_lookup (); below.
10759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10760     <limits.h> exists even on freestanding compilers.  */
10761
10762 #ifdef __STDC__
10763 # include <limits.h>
10764 #else
10765 # include <assert.h>
10766 #endif
10767
10768 #undef _dyld_func_lookup
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771    Use char because int might match the return type of a GCC
10772    builtin and then its argument prototype would still apply.  */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char _dyld_func_lookup ();
10777 /* The GNU C library defines this for functions which it implements
10778     to always fail with ENOSYS.  Some functions are actually named
10779     something starting with __ and the normal name is an alias.  */
10780 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10781 choke me
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787 return _dyld_func_lookup ();
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_link") 2>conftest.er1
10800   ac_status=$?
10801   grep -v '^ *+' conftest.er1 >conftest.err
10802   rm -f conftest.er1
10803   cat conftest.err >&5
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } &&
10806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807   { (case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_try") 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; } &&
10816          { ac_try='test -s conftest$ac_exeext'
10817   { (case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822   (eval "$ac_try") 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   ac_cv_func__dyld_func_lookup=yes
10827 else
10828   echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10830
10831         ac_cv_func__dyld_func_lookup=no
10832 fi
10833
10834 rm -f core conftest.err conftest.$ac_objext \
10835       conftest$ac_exeext conftest.$ac_ext
10836 fi
10837 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10838 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10839 if test $ac_cv_func__dyld_func_lookup = yes; then
10840
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_DYLD 1
10843 _ACEOF
10844
10845 fi
10846
10847
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856 rm -f core conftest.err conftest.$ac_objext \
10857       conftest$ac_exeext conftest.$ac_ext
10858
10859 fi
10860
10861
10862 fi
10863
10864
10865 fi
10866
10867
10868 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10869 then
10870   lt_save_LIBS="$LIBS"
10871   LIBS="$LIBS $LIBADD_DL"
10872
10873 for ac_func in dlerror
10874 do
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10889 #define $ac_func innocuous_$ac_func
10890
10891 /* System header to define __stub macros and hopefully few prototypes,
10892     which can conflict with char $ac_func (); below.
10893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894     <limits.h> exists even on freestanding compilers.  */
10895
10896 #ifdef __STDC__
10897 # include <limits.h>
10898 #else
10899 # include <assert.h>
10900 #endif
10901
10902 #undef $ac_func
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905    Use char because int might match the return type of a GCC
10906    builtin and then its argument prototype would still apply.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char $ac_func ();
10911 /* The GNU C library defines this for functions which it implements
10912     to always fail with ENOSYS.  Some functions are actually named
10913     something starting with __ and the normal name is an alias.  */
10914 #if defined __stub_$ac_func || defined __stub___$ac_func
10915 choke me
10916 #endif
10917
10918 int
10919 main ()
10920 {
10921 return $ac_func ();
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (ac_try="$ac_link"
10928 case "(($ac_try" in
10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930   *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933   (eval "$ac_link") 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } &&
10940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; } &&
10950          { ac_try='test -s conftest$ac_exeext'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_try") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   eval "$as_ac_var=yes"
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965         eval "$as_ac_var=no"
10966 fi
10967
10968 rm -f core conftest.err conftest.$ac_objext \
10969       conftest$ac_exeext conftest.$ac_ext
10970 fi
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972                { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975   cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10978
10979 fi
10980 done
10981
10982   LIBS="$lt_save_LIBS"
10983 fi
10984 ac_ext=c
10985 ac_cpp='$CPP $CPPFLAGS'
10986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989
10990
10991
10992 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10993 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10994 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   ac_cv_sys_symbol_underscore=no
10998   cat > conftest.$ac_ext <<EOF
10999 void nm_test_func(){}
11000 int main(){nm_test_func;return 0;}
11001 EOF
11002   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003   (eval $ac_compile) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; then
11007     # Now try to grab the symbols.
11008     ac_nlist=conftest.nm
11009     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11010   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } && test -s "$ac_nlist"; then
11014       # See whether the symbols have a leading underscore.
11015       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11016         ac_cv_sys_symbol_underscore=yes
11017       else
11018         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11019           :
11020         else
11021           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11022         fi
11023       fi
11024     else
11025       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11026     fi
11027   else
11028     echo "configure: failed program was:" >&5
11029     cat conftest.c >&5
11030   fi
11031   rm -rf conftest*
11032
11033 fi
11034 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11035 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11036
11037
11038 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11039   if test x"$libltdl_cv_func_dlopen" = xyes ||
11040      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11041         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11042 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11043 if test "${libltdl_cv_need_uscore+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   libltdl_cv_need_uscore=unknown
11047           save_LIBS="$LIBS"
11048           LIBS="$LIBS $LIBADD_DL"
11049           if test "$cross_compiling" = yes; then :
11050   libltdl_cv_need_uscore=cross
11051 else
11052   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11053   lt_status=$lt_dlunknown
11054   cat > conftest.$ac_ext <<EOF
11055 #line 11055 "configure"
11056 #include "confdefs.h"
11057
11058 #if HAVE_DLFCN_H
11059 #include <dlfcn.h>
11060 #endif
11061
11062 #include <stdio.h>
11063
11064 #ifdef RTLD_GLOBAL
11065 #  define LT_DLGLOBAL           RTLD_GLOBAL
11066 #else
11067 #  ifdef DL_GLOBAL
11068 #    define LT_DLGLOBAL         DL_GLOBAL
11069 #  else
11070 #    define LT_DLGLOBAL         0
11071 #  endif
11072 #endif
11073
11074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11075    find out it does not work in some platform. */
11076 #ifndef LT_DLLAZY_OR_NOW
11077 #  ifdef RTLD_LAZY
11078 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11079 #  else
11080 #    ifdef DL_LAZY
11081 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11082 #    else
11083 #      ifdef RTLD_NOW
11084 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11085 #      else
11086 #        ifdef DL_NOW
11087 #          define LT_DLLAZY_OR_NOW      DL_NOW
11088 #        else
11089 #          define LT_DLLAZY_OR_NOW      0
11090 #        endif
11091 #      endif
11092 #    endif
11093 #  endif
11094 #endif
11095
11096 #ifdef __cplusplus
11097 extern "C" void exit (int);
11098 #endif
11099
11100 void fnord() { int i=42;}
11101 int main ()
11102 {
11103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104   int status = $lt_dlunknown;
11105
11106   if (self)
11107     {
11108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11109       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110       /* dlclose (self); */
11111     }
11112   else
11113     puts (dlerror ());
11114
11115     exit (status);
11116 }
11117 EOF
11118   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119   (eval $ac_link) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11123     (./conftest; exit; ) >&5 2>/dev/null
11124     lt_status=$?
11125     case x$lt_status in
11126       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11127       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11128       x$lt_dlunknown|x*)  ;;
11129     esac
11130   else :
11131     # compilation failed
11132
11133   fi
11134 fi
11135 rm -fr conftest*
11136
11137           LIBS="$save_LIBS"
11138
11139 fi
11140 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11141 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11142   fi
11143 fi
11144
11145 if test x"$libltdl_cv_need_uscore" = xyes; then
11146
11147 cat >>confdefs.h <<\_ACEOF
11148 #define NEED_USCORE 1
11149 _ACEOF
11150
11151 fi
11152
11153
11154 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11155 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11156 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   # PORTME does your system automatically load deplibs for dlopen?
11160   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11161   # For now, we just catch OSes we know something about -- in the
11162   # future, we'll try test this programmatically.
11163   libltdl_cv_sys_dlopen_deplibs=unknown
11164   case "$host_os" in
11165   aix3*|aix4.1.*|aix4.2.*)
11166     # Unknown whether this is true for these versions of AIX, but
11167     # we want this `case' here to explicitly catch those versions.
11168     libltdl_cv_sys_dlopen_deplibs=unknown
11169     ;;
11170   aix[45]*)
11171     libltdl_cv_sys_dlopen_deplibs=yes
11172     ;;
11173   darwin*)
11174     # Assuming the user has installed a libdl from somewhere, this is true
11175     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11176     libltdl_cv_sys_dlopen_deplibs=yes
11177     ;;
11178   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11179     # GNU and its variants, using gnu ld.so (Glibc)
11180     libltdl_cv_sys_dlopen_deplibs=yes
11181     ;;
11182   hpux10*|hpux11*)
11183     libltdl_cv_sys_dlopen_deplibs=yes
11184     ;;
11185   interix*)
11186     libltdl_cv_sys_dlopen_deplibs=yes
11187     ;;
11188   irix[12345]*|irix6.[01]*)
11189     # Catch all versions of IRIX before 6.2, and indicate that we don't
11190     # know how it worked for any of those versions.
11191     libltdl_cv_sys_dlopen_deplibs=unknown
11192     ;;
11193   irix*)
11194     # The case above catches anything before 6.2, and it's known that
11195     # at 6.2 and later dlopen does load deplibs.
11196     libltdl_cv_sys_dlopen_deplibs=yes
11197     ;;
11198   netbsd*)
11199     libltdl_cv_sys_dlopen_deplibs=yes
11200     ;;
11201   openbsd*)
11202     libltdl_cv_sys_dlopen_deplibs=yes
11203     ;;
11204   osf[1234]*)
11205     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11206     # it did *not* use an RPATH in a shared library to find objects the
11207     # library depends on, so we explictly say `no'.
11208     libltdl_cv_sys_dlopen_deplibs=no
11209     ;;
11210   osf5.0|osf5.0a|osf5.1)
11211     # dlopen *does* load deplibs and with the right loader patch applied
11212     # it even uses RPATH in a shared library to search for shared objects
11213     # that the library depends on, but there's no easy way to know if that
11214     # patch is installed.  Since this is the case, all we can really
11215     # say is unknown -- it depends on the patch being installed.  If
11216     # it is, this changes to `yes'.  Without it, it would be `no'.
11217     libltdl_cv_sys_dlopen_deplibs=unknown
11218     ;;
11219   osf*)
11220     # the two cases above should catch all versions of osf <= 5.1.  Read
11221     # the comments above for what we know about them.
11222     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11223     # is used to find them so we can finally say `yes'.
11224     libltdl_cv_sys_dlopen_deplibs=yes
11225     ;;
11226   solaris*)
11227     libltdl_cv_sys_dlopen_deplibs=yes
11228     ;;
11229   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11230     libltdl_cv_sys_dlopen_deplibs=yes
11231     ;;
11232   esac
11233
11234 fi
11235 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11236 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11237 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define LTDL_DLOPEN_DEPLIBS 1
11241 _ACEOF
11242
11243 fi
11244
11245
11246 for ac_header in argz.h
11247 do
11248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 fi
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256                { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258 else
11259   # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 $ac_includes_default
11269 #include <$ac_header>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_compile") 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286   { (case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_try") 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); }; } &&
11295          { ac_try='test -s conftest.$ac_objext'
11296   { (case "(($ac_try" in
11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298   *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301   (eval "$ac_try") 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305   ac_header_compiler=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310         ac_header_compiler=no
11311 fi
11312
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11316
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h.  */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h.  */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } >/dev/null; then
11341   if test -s conftest.err; then
11342     ac_cpp_err=$ac_c_preproc_warn_flag
11343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344   else
11345     ac_cpp_err=
11346   fi
11347 else
11348   ac_cpp_err=yes
11349 fi
11350 if test -z "$ac_cpp_err"; then
11351   ac_header_preproc=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356   ac_header_preproc=no
11357 fi
11358
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11362
11363 # So?  What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365   yes:no: )
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370     ac_header_preproc=yes
11371     ;;
11372   no:yes:* )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385     ( cat <<\_ASBOX
11386 ## ----------------------------------- ##
11387 ## Report this to llvmbugs@cs.uiuc.edu ##
11388 ## ----------------------------------- ##
11389 _ASBOX
11390      ) | sed "s/^/$as_me: WARNING:     /" >&2
11391     ;;
11392 esac
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396   echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398   eval "$as_ac_Header=\$ac_header_preproc"
11399 fi
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401                { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403
11404 fi
11405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406   cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411
11412 done
11413
11414
11415 { echo "$as_me:$LINENO: checking for error_t" >&5
11416 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11417 if test "${ac_cv_type_error_t+set}" = set; then
11418   echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420   cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h.  */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h.  */
11426 #if HAVE_ARGZ_H
11427 #  include <argz.h>
11428 #endif
11429
11430 typedef error_t ac__type_new_;
11431 int
11432 main ()
11433 {
11434 if ((ac__type_new_ *) 0)
11435   return 0;
11436 if (sizeof (ac__type_new_))
11437   return 0;
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_compile") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457   { (case "(($ac_try" in
11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459   *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462   (eval "$ac_try") 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; } &&
11466          { ac_try='test -s conftest.$ac_objext'
11467   { (case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_try") 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   ac_cv_type_error_t=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481         ac_cv_type_error_t=no
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 fi
11486 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11487 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11488 if test $ac_cv_type_error_t = yes; then
11489
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_ERROR_T 1
11492 _ACEOF
11493
11494
11495 else
11496
11497 cat >>confdefs.h <<\_ACEOF
11498 #define error_t int
11499 _ACEOF
11500
11501 fi
11502
11503
11504
11505
11506
11507
11508
11509 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11510 do
11511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517   cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11525 #define $ac_func innocuous_$ac_func
11526
11527 /* System header to define __stub macros and hopefully few prototypes,
11528     which can conflict with char $ac_func (); below.
11529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530     <limits.h> exists even on freestanding compilers.  */
11531
11532 #ifdef __STDC__
11533 # include <limits.h>
11534 #else
11535 # include <assert.h>
11536 #endif
11537
11538 #undef $ac_func
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541    Use char because int might match the return type of a GCC
11542    builtin and then its argument prototype would still apply.  */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char $ac_func ();
11547 /* The GNU C library defines this for functions which it implements
11548     to always fail with ENOSYS.  Some functions are actually named
11549     something starting with __ and the normal name is an alias.  */
11550 #if defined __stub_$ac_func || defined __stub___$ac_func
11551 choke me
11552 #endif
11553
11554 int
11555 main ()
11556 {
11557 return $ac_func ();
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_link") 2>conftest.er1
11570   ac_status=$?
11571   grep -v '^ *+' conftest.er1 >conftest.err
11572   rm -f conftest.er1
11573   cat conftest.err >&5
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } &&
11576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577   { (case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_try") 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; } &&
11586          { ac_try='test -s conftest$ac_exeext'
11587   { (case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592   (eval "$ac_try") 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   eval "$as_ac_var=yes"
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601         eval "$as_ac_var=no"
11602 fi
11603
11604 rm -f core conftest.err conftest.$ac_objext \
11605       conftest$ac_exeext conftest.$ac_ext
11606 fi
11607 ac_res=`eval echo '${'$as_ac_var'}'`
11608                { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611   cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 _ACEOF
11614
11615 fi
11616 done
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11646                   stdio.h unistd.h
11647 do
11648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 fi
11655 ac_res=`eval echo '${'$as_ac_Header'}'`
11656                { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658 else
11659   # Is the header compilable?
11660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668 $ac_includes_default
11669 #include <$ac_header>
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_compile") 2>conftest.er1
11679   ac_status=$?
11680   grep -v '^ *+' conftest.er1 >conftest.err
11681   rm -f conftest.er1
11682   cat conftest.err >&5
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } &&
11685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686   { (case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691   (eval "$ac_try") 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_try") 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; }; then
11705   ac_header_compiler=yes
11706 else
11707   echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11709
11710         ac_header_compiler=no
11711 fi
11712
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6; }
11716
11717 # Is the header present?
11718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 #include <$ac_header>
11727 _ACEOF
11728 if { (ac_try="$ac_cpp conftest.$ac_ext"
11729 case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11735   ac_status=$?
11736   grep -v '^ *+' conftest.er1 >conftest.err
11737   rm -f conftest.er1
11738   cat conftest.err >&5
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } >/dev/null; then
11741   if test -s conftest.err; then
11742     ac_cpp_err=$ac_c_preproc_warn_flag
11743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11744   else
11745     ac_cpp_err=
11746   fi
11747 else
11748   ac_cpp_err=yes
11749 fi
11750 if test -z "$ac_cpp_err"; then
11751   ac_header_preproc=yes
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756   ac_header_preproc=no
11757 fi
11758
11759 rm -f conftest.err conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11761 echo "${ECHO_T}$ac_header_preproc" >&6; }
11762
11763 # So?  What about this header?
11764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765   yes:no: )
11766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11770     ac_header_preproc=yes
11771     ;;
11772   no:yes:* )
11773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11785     ( cat <<\_ASBOX
11786 ## ----------------------------------- ##
11787 ## Report this to llvmbugs@cs.uiuc.edu ##
11788 ## ----------------------------------- ##
11789 _ASBOX
11790      ) | sed "s/^/$as_me: WARNING:     /" >&2
11791     ;;
11792 esac
11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   eval "$as_ac_Header=\$ac_header_preproc"
11799 fi
11800 ac_res=`eval echo '${'$as_ac_Header'}'`
11801                { echo "$as_me:$LINENO: result: $ac_res" >&5
11802 echo "${ECHO_T}$ac_res" >&6; }
11803
11804 fi
11805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11806   cat >>confdefs.h <<_ACEOF
11807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11808 _ACEOF
11809
11810 fi
11811
11812 done
11813
11814
11815
11816
11817
11818 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11819 do
11820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 fi
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828                { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11830 else
11831   # Is the header compilable?
11832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 $ac_includes_default
11841 #include <$ac_header>
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850   (eval "$ac_compile") 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858   { (case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863   (eval "$ac_try") 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; } &&
11867          { ac_try='test -s conftest.$ac_objext'
11868   { (case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_try") 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_header_compiler=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882         ac_header_compiler=no
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 echo "${ECHO_T}$ac_header_compiler" >&6; }
11888
11889 # Is the header present?
11890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 #include <$ac_header>
11899 _ACEOF
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } >/dev/null; then
11913   if test -s conftest.err; then
11914     ac_cpp_err=$ac_c_preproc_warn_flag
11915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11916   else
11917     ac_cpp_err=
11918   fi
11919 else
11920   ac_cpp_err=yes
11921 fi
11922 if test -z "$ac_cpp_err"; then
11923   ac_header_preproc=yes
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928   ac_header_preproc=no
11929 fi
11930
11931 rm -f conftest.err conftest.$ac_ext
11932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11933 echo "${ECHO_T}$ac_header_preproc" >&6; }
11934
11935 # So?  What about this header?
11936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11937   yes:no: )
11938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11942     ac_header_preproc=yes
11943     ;;
11944   no:yes:* )
11945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11957     ( cat <<\_ASBOX
11958 ## ----------------------------------- ##
11959 ## Report this to llvmbugs@cs.uiuc.edu ##
11960 ## ----------------------------------- ##
11961 _ASBOX
11962      ) | sed "s/^/$as_me: WARNING:     /" >&2
11963     ;;
11964 esac
11965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   eval "$as_ac_Header=\$ac_header_preproc"
11971 fi
11972 ac_res=`eval echo '${'$as_ac_Header'}'`
11973                { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975
11976 fi
11977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11978   cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11980 _ACEOF
11981
11982 fi
11983
11984 done
11985
11986
11987
11988 for ac_header in string.h strings.h
11989 do
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 fi
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998                { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 else
12001   # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010 $ac_includes_default
12011 #include <$ac_header>
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_compile") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028   { (case "(($ac_try" in
12029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030   *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033   (eval "$ac_try") 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_header_compiler=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         ac_header_compiler=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12058
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 #include <$ac_header>
12069 _ACEOF
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } >/dev/null; then
12083   if test -s conftest.err; then
12084     ac_cpp_err=$ac_c_preproc_warn_flag
12085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086   else
12087     ac_cpp_err=
12088   fi
12089 else
12090   ac_cpp_err=yes
12091 fi
12092 if test -z "$ac_cpp_err"; then
12093   ac_header_preproc=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098   ac_header_preproc=no
12099 fi
12100
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12104
12105 # So?  What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107   yes:no: )
12108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112     ac_header_preproc=yes
12113     ;;
12114   no:yes:* )
12115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127     ( cat <<\_ASBOX
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12131 _ASBOX
12132      ) | sed "s/^/$as_me: WARNING:     /" >&2
12133     ;;
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   eval "$as_ac_Header=\$ac_header_preproc"
12141 fi
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143                { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12145
12146 fi
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148   cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12151  break
12152 fi
12153
12154 done
12155
12156
12157
12158
12159 for ac_func in strchr index
12160 do
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12175 #define $ac_func innocuous_$ac_func
12176
12177 /* System header to define __stub macros and hopefully few prototypes,
12178     which can conflict with char $ac_func (); below.
12179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180     <limits.h> exists even on freestanding compilers.  */
12181
12182 #ifdef __STDC__
12183 # include <limits.h>
12184 #else
12185 # include <assert.h>
12186 #endif
12187
12188 #undef $ac_func
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char $ac_func ();
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined __stub_$ac_func || defined __stub___$ac_func
12201 choke me
12202 #endif
12203
12204 int
12205 main ()
12206 {
12207 return $ac_func ();
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_link") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227   { (case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_try") 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest$ac_exeext'
12237   { (case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_try") 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246   eval "$as_ac_var=yes"
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251         eval "$as_ac_var=no"
12252 fi
12253
12254 rm -f core conftest.err conftest.$ac_objext \
12255       conftest$ac_exeext conftest.$ac_ext
12256 fi
12257 ac_res=`eval echo '${'$as_ac_var'}'`
12258                { echo "$as_me:$LINENO: result: $ac_res" >&5
12259 echo "${ECHO_T}$ac_res" >&6; }
12260 if test `eval echo '${'$as_ac_var'}'` = yes; then
12261   cat >>confdefs.h <<_ACEOF
12262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263 _ACEOF
12264  break
12265 fi
12266 done
12267
12268
12269
12270 for ac_func in strrchr rindex
12271 do
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276   echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278   cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12286 #define $ac_func innocuous_$ac_func
12287
12288 /* System header to define __stub macros and hopefully few prototypes,
12289     which can conflict with char $ac_func (); below.
12290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291     <limits.h> exists even on freestanding compilers.  */
12292
12293 #ifdef __STDC__
12294 # include <limits.h>
12295 #else
12296 # include <assert.h>
12297 #endif
12298
12299 #undef $ac_func
12300
12301 /* Override any GCC internal prototype to avoid an error.
12302    Use char because int might match the return type of a GCC
12303    builtin and then its argument prototype would still apply.  */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char $ac_func ();
12308 /* The GNU C library defines this for functions which it implements
12309     to always fail with ENOSYS.  Some functions are actually named
12310     something starting with __ and the normal name is an alias.  */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12312 choke me
12313 #endif
12314
12315 int
12316 main ()
12317 {
12318 return $ac_func ();
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_link") 2>conftest.er1
12331   ac_status=$?
12332   grep -v '^ *+' conftest.er1 >conftest.err
12333   rm -f conftest.er1
12334   cat conftest.err >&5
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); } &&
12337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338   { (case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_try") 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; } &&
12347          { ac_try='test -s conftest$ac_exeext'
12348   { (case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_try") 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   eval "$as_ac_var=yes"
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362         eval "$as_ac_var=no"
12363 fi
12364
12365 rm -f core conftest.err conftest.$ac_objext \
12366       conftest$ac_exeext conftest.$ac_ext
12367 fi
12368 ac_res=`eval echo '${'$as_ac_var'}'`
12369                { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372   cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 _ACEOF
12375  break
12376 fi
12377 done
12378
12379
12380
12381 for ac_func in memcpy bcopy
12382 do
12383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12397 #define $ac_func innocuous_$ac_func
12398
12399 /* System header to define __stub macros and hopefully few prototypes,
12400     which can conflict with char $ac_func (); below.
12401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402     <limits.h> exists even on freestanding compilers.  */
12403
12404 #ifdef __STDC__
12405 # include <limits.h>
12406 #else
12407 # include <assert.h>
12408 #endif
12409
12410 #undef $ac_func
12411
12412 /* Override any GCC internal prototype to avoid an error.
12413    Use char because int might match the return type of a GCC
12414    builtin and then its argument prototype would still apply.  */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char $ac_func ();
12419 /* The GNU C library defines this for functions which it implements
12420     to always fail with ENOSYS.  Some functions are actually named
12421     something starting with __ and the normal name is an alias.  */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12423 choke me
12424 #endif
12425
12426 int
12427 main ()
12428 {
12429 return $ac_func ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_link") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449   { (case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_try") 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest$ac_exeext'
12459   { (case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_try") 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   eval "$as_ac_var=yes"
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473         eval "$as_ac_var=no"
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext \
12477       conftest$ac_exeext conftest.$ac_ext
12478 fi
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480                { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483   cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485 _ACEOF
12486  break
12487 fi
12488 done
12489
12490
12491
12492 for ac_func in memmove strcmp
12493 do
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500   cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12508 #define $ac_func innocuous_$ac_func
12509
12510 /* System header to define __stub macros and hopefully few prototypes,
12511     which can conflict with char $ac_func (); below.
12512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513     <limits.h> exists even on freestanding compilers.  */
12514
12515 #ifdef __STDC__
12516 # include <limits.h>
12517 #else
12518 # include <assert.h>
12519 #endif
12520
12521 #undef $ac_func
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524    Use char because int might match the return type of a GCC
12525    builtin and then its argument prototype would still apply.  */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char $ac_func ();
12530 /* The GNU C library defines this for functions which it implements
12531     to always fail with ENOSYS.  Some functions are actually named
12532     something starting with __ and the normal name is an alias.  */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12534 choke me
12535 #endif
12536
12537 int
12538 main ()
12539 {
12540 return $ac_func ();
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_link") 2>conftest.er1
12553   ac_status=$?
12554   grep -v '^ *+' conftest.er1 >conftest.err
12555   rm -f conftest.er1
12556   cat conftest.err >&5
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } &&
12559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560   { (case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_try") 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; } &&
12569          { ac_try='test -s conftest$ac_exeext'
12570   { (case "(($ac_try" in
12571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572   *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575   (eval "$ac_try") 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); }; }; then
12579   eval "$as_ac_var=yes"
12580 else
12581   echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584         eval "$as_ac_var=no"
12585 fi
12586
12587 rm -f core conftest.err conftest.$ac_objext \
12588       conftest$ac_exeext conftest.$ac_ext
12589 fi
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591                { echo "$as_me:$LINENO: result: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594   cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 _ACEOF
12597
12598 fi
12599 done
12600
12601
12602
12603
12604 for ac_func in closedir opendir readdir
12605 do
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12610   echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612   cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12620 #define $ac_func innocuous_$ac_func
12621
12622 /* System header to define __stub macros and hopefully few prototypes,
12623     which can conflict with char $ac_func (); below.
12624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625     <limits.h> exists even on freestanding compilers.  */
12626
12627 #ifdef __STDC__
12628 # include <limits.h>
12629 #else
12630 # include <assert.h>
12631 #endif
12632
12633 #undef $ac_func
12634
12635 /* Override any GCC internal prototype to avoid an error.
12636    Use char because int might match the return type of a GCC
12637    builtin and then its argument prototype would still apply.  */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char $ac_func ();
12642 /* The GNU C library defines this for functions which it implements
12643     to always fail with ENOSYS.  Some functions are actually named
12644     something starting with __ and the normal name is an alias.  */
12645 #if defined __stub_$ac_func || defined __stub___$ac_func
12646 choke me
12647 #endif
12648
12649 int
12650 main ()
12651 {
12652 return $ac_func ();
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664   (eval "$ac_link") 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } &&
12671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672   { (case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677   (eval "$ac_try") 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; } &&
12681          { ac_try='test -s conftest$ac_exeext'
12682   { (case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_try") 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   eval "$as_ac_var=yes"
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696         eval "$as_ac_var=no"
12697 fi
12698
12699 rm -f core conftest.err conftest.$ac_objext \
12700       conftest$ac_exeext conftest.$ac_ext
12701 fi
12702 ac_res=`eval echo '${'$as_ac_var'}'`
12703                { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 if test `eval echo '${'$as_ac_var'}'` = yes; then
12706   cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12708 _ACEOF
12709
12710 fi
12711 done
12712
12713
12714 # Check whether --enable-shared was given.
12715 if test "${enable_shared+set}" = set; then
12716   enableval=$enable_shared; p=${PACKAGE-default}
12717     case $enableval in
12718     yes) enable_shared=yes ;;
12719     no) enable_shared=no ;;
12720     *)
12721       enable_shared=no
12722       # Look at the argument we got.  We use all the common list separators.
12723       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12724       for pkg in $enableval; do
12725         IFS="$lt_save_ifs"
12726         if test "X$pkg" = "X$p"; then
12727           enable_shared=yes
12728         fi
12729       done
12730       IFS="$lt_save_ifs"
12731       ;;
12732     esac
12733 else
12734   enable_shared=yes
12735 fi
12736
12737
12738 # Check whether --enable-static was given.
12739 if test "${enable_static+set}" = set; then
12740   enableval=$enable_static; p=${PACKAGE-default}
12741     case $enableval in
12742     yes) enable_static=yes ;;
12743     no) enable_static=no ;;
12744     *)
12745      enable_static=no
12746       # Look at the argument we got.  We use all the common list separators.
12747       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12748       for pkg in $enableval; do
12749         IFS="$lt_save_ifs"
12750         if test "X$pkg" = "X$p"; then
12751           enable_static=yes
12752         fi
12753       done
12754       IFS="$lt_save_ifs"
12755       ;;
12756     esac
12757 else
12758   enable_static=yes
12759 fi
12760
12761
12762 # Check whether --enable-fast-install was given.
12763 if test "${enable_fast_install+set}" = set; then
12764   enableval=$enable_fast_install; p=${PACKAGE-default}
12765     case $enableval in
12766     yes) enable_fast_install=yes ;;
12767     no) enable_fast_install=no ;;
12768     *)
12769       enable_fast_install=no
12770       # Look at the argument we got.  We use all the common list separators.
12771       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12772       for pkg in $enableval; do
12773         IFS="$lt_save_ifs"
12774         if test "X$pkg" = "X$p"; then
12775           enable_fast_install=yes
12776         fi
12777       done
12778       IFS="$lt_save_ifs"
12779       ;;
12780     esac
12781 else
12782   enable_fast_install=yes
12783 fi
12784
12785
12786 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12787 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12788 if test "${lt_cv_path_SED+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   # Loop through the user's path and test for sed and gsed.
12792 # Then use that list of sed's as ones to test for truncation.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796   IFS=$as_save_IFS
12797   test -z "$as_dir" && as_dir=.
12798   for lt_ac_prog in sed gsed; do
12799     for ac_exec_ext in '' $ac_executable_extensions; do
12800       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12801         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12802       fi
12803     done
12804   done
12805 done
12806 lt_ac_max=0
12807 lt_ac_count=0
12808 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12809 # along with /bin/sed that truncates output.
12810 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12811   test ! -f $lt_ac_sed && continue
12812   cat /dev/null > conftest.in
12813   lt_ac_count=0
12814   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12815   # Check for GNU sed and select it if it is found.
12816   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12817     lt_cv_path_SED=$lt_ac_sed
12818     break
12819   fi
12820   while true; do
12821     cat conftest.in conftest.in >conftest.tmp
12822     mv conftest.tmp conftest.in
12823     cp conftest.in conftest.nl
12824     echo >>conftest.nl
12825     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12826     cmp -s conftest.out conftest.nl || break
12827     # 10000 chars as input seems more than enough
12828     test $lt_ac_count -gt 10 && break
12829     lt_ac_count=`expr $lt_ac_count + 1`
12830     if test $lt_ac_count -gt $lt_ac_max; then
12831       lt_ac_max=$lt_ac_count
12832       lt_cv_path_SED=$lt_ac_sed
12833     fi
12834   done
12835 done
12836
12837 fi
12838
12839 SED=$lt_cv_path_SED
12840 { echo "$as_me:$LINENO: result: $SED" >&5
12841 echo "${ECHO_T}$SED" >&6; }
12842
12843
12844 # Check whether --with-gnu-ld was given.
12845 if test "${with_gnu_ld+set}" = set; then
12846   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12847 else
12848   with_gnu_ld=no
12849 fi
12850
12851 ac_prog=ld
12852 if test "$GCC" = yes; then
12853   # Check if gcc -print-prog-name=ld gives a path.
12854   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12855 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12856   case $host in
12857   *-*-mingw*)
12858     # gcc leaves a trailing carriage return which upsets mingw
12859     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12860   *)
12861     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12862   esac
12863   case $ac_prog in
12864     # Accept absolute paths.
12865     [\\/]* | ?:[\\/]*)
12866       re_direlt='/[^/][^/]*/\.\./'
12867       # Canonicalize the pathname of ld
12868       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12869       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12870         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12871       done
12872       test -z "$LD" && LD="$ac_prog"
12873       ;;
12874   "")
12875     # If it fails, then pretend we aren't using GCC.
12876     ac_prog=ld
12877     ;;
12878   *)
12879     # If it is relative, then search for the first ld in PATH.
12880     with_gnu_ld=unknown
12881     ;;
12882   esac
12883 elif test "$with_gnu_ld" = yes; then
12884   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12885 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12886 else
12887   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12888 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12889 fi
12890 if test "${lt_cv_path_LD+set}" = set; then
12891   echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893   if test -z "$LD"; then
12894   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12895   for ac_dir in $PATH; do
12896     IFS="$lt_save_ifs"
12897     test -z "$ac_dir" && ac_dir=.
12898     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12899       lt_cv_path_LD="$ac_dir/$ac_prog"
12900       # Check to see if the program is GNU ld.  I'd rather use --version,
12901       # but apparently some variants of GNU ld only accept -v.
12902       # Break only if it was the GNU/non-GNU ld that we prefer.
12903       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12904       *GNU* | *'with BFD'*)
12905         test "$with_gnu_ld" != no && break
12906         ;;
12907       *)
12908         test "$with_gnu_ld" != yes && break
12909         ;;
12910       esac
12911     fi
12912   done
12913   IFS="$lt_save_ifs"
12914 else
12915   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12916 fi
12917 fi
12918
12919 LD="$lt_cv_path_LD"
12920 if test -n "$LD"; then
12921   { echo "$as_me:$LINENO: result: $LD" >&5
12922 echo "${ECHO_T}$LD" >&6; }
12923 else
12924   { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12926 fi
12927 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12928 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12929    { (exit 1); exit 1; }; }
12930 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12931 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12936 case `$LD -v 2>&1 </dev/null` in
12937 *GNU* | *'with BFD'*)
12938   lt_cv_prog_gnu_ld=yes
12939   ;;
12940 *)
12941   lt_cv_prog_gnu_ld=no
12942   ;;
12943 esac
12944 fi
12945 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12946 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12947 with_gnu_ld=$lt_cv_prog_gnu_ld
12948
12949
12950 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12951 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12952 if test "${lt_cv_ld_reload_flag+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   lt_cv_ld_reload_flag='-r'
12956 fi
12957 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12958 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12959 reload_flag=$lt_cv_ld_reload_flag
12960 case $reload_flag in
12961 "" | " "*) ;;
12962 *) reload_flag=" $reload_flag" ;;
12963 esac
12964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12965 case $host_os in
12966   darwin*)
12967     if test "$GCC" = yes; then
12968       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12969     else
12970       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12971     fi
12972     ;;
12973 esac
12974
12975 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12977 if test "${lt_cv_deplibs_check_method+set}" = set; then
12978   echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980   lt_cv_file_magic_cmd='$MAGIC_CMD'
12981 lt_cv_file_magic_test_file=
12982 lt_cv_deplibs_check_method='unknown'
12983 # Need to set the preceding variable on all platforms that support
12984 # interlibrary dependencies.
12985 # 'none' -- dependencies not supported.
12986 # `unknown' -- same as none, but documents that we really don't know.
12987 # 'pass_all' -- all dependencies passed with no checks.
12988 # 'test_compile' -- check by making test program.
12989 # 'file_magic [[regex]]' -- check by looking for files in library path
12990 # which responds to the $file_magic_cmd with a given extended regex.
12991 # If you have `file' or equivalent on your system and you're not sure
12992 # whether `pass_all' will *always* work, you probably want this one.
12993
12994 case $host_os in
12995 aix4* | aix5*)
12996   lt_cv_deplibs_check_method=pass_all
12997   ;;
12998
12999 beos*)
13000   lt_cv_deplibs_check_method=pass_all
13001   ;;
13002
13003 bsdi[45]*)
13004   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13005   lt_cv_file_magic_cmd='/usr/bin/file -L'
13006   lt_cv_file_magic_test_file=/shlib/libc.so
13007   ;;
13008
13009 cygwin*)
13010   # func_win32_libid is a shell function defined in ltmain.sh
13011   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13012   lt_cv_file_magic_cmd='func_win32_libid'
13013   ;;
13014
13015 mingw* | pw32*)
13016   # Base MSYS/MinGW do not provide the 'file' command needed by
13017   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13018   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13019   lt_cv_file_magic_cmd='$OBJDUMP -f'
13020   ;;
13021
13022 darwin* | rhapsody*)
13023   lt_cv_deplibs_check_method=pass_all
13024   ;;
13025
13026 freebsd* | kfreebsd*-gnu | dragonfly*)
13027   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028     case $host_cpu in
13029     i*86 )
13030       # Not sure whether the presence of OpenBSD here was a mistake.
13031       # Let's accept both of them until this is cleared up.
13032       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13033       lt_cv_file_magic_cmd=/usr/bin/file
13034       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13035       ;;
13036     esac
13037   else
13038     lt_cv_deplibs_check_method=pass_all
13039   fi
13040   ;;
13041
13042 gnu*)
13043   lt_cv_deplibs_check_method=pass_all
13044   ;;
13045
13046 hpux10.20* | hpux11*)
13047   lt_cv_file_magic_cmd=/usr/bin/file
13048   case $host_cpu in
13049   ia64*)
13050     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13051     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13052     ;;
13053   hppa*64*)
13054     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]'
13055     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13056     ;;
13057   *)
13058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13059     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13060     ;;
13061   esac
13062   ;;
13063
13064 interix3*)
13065   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13066   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13067   ;;
13068
13069 irix5* | irix6* | nonstopux*)
13070   case $LD in
13071   *-32|*"-32 ") libmagic=32-bit;;
13072   *-n32|*"-n32 ") libmagic=N32;;
13073   *-64|*"-64 ") libmagic=64-bit;;
13074   *) libmagic=never-match;;
13075   esac
13076   lt_cv_deplibs_check_method=pass_all
13077   ;;
13078
13079 # This must be Linux ELF.
13080 linux*)
13081   lt_cv_deplibs_check_method=pass_all
13082   ;;
13083
13084 netbsd*)
13085   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13086     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13087   else
13088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13089   fi
13090   ;;
13091
13092 newos6*)
13093   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13094   lt_cv_file_magic_cmd=/usr/bin/file
13095   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13096   ;;
13097
13098 nto-qnx*)
13099   lt_cv_deplibs_check_method=unknown
13100   ;;
13101
13102 openbsd*)
13103   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13105   else
13106     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13107   fi
13108   ;;
13109
13110 osf3* | osf4* | osf5*)
13111   lt_cv_deplibs_check_method=pass_all
13112   ;;
13113
13114 solaris*)
13115   lt_cv_deplibs_check_method=pass_all
13116   ;;
13117
13118 sysv4 | sysv4.3*)
13119   case $host_vendor in
13120   motorola)
13121     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]'
13122     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13123     ;;
13124   ncr)
13125     lt_cv_deplibs_check_method=pass_all
13126     ;;
13127   sequent)
13128     lt_cv_file_magic_cmd='/bin/file'
13129     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13130     ;;
13131   sni)
13132     lt_cv_file_magic_cmd='/bin/file'
13133     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13134     lt_cv_file_magic_test_file=/lib/libc.so
13135     ;;
13136   siemens)
13137     lt_cv_deplibs_check_method=pass_all
13138     ;;
13139   pc)
13140     lt_cv_deplibs_check_method=pass_all
13141     ;;
13142   esac
13143   ;;
13144
13145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13146   lt_cv_deplibs_check_method=pass_all
13147   ;;
13148 esac
13149
13150 fi
13151 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13152 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13153 file_magic_cmd=$lt_cv_file_magic_cmd
13154 deplibs_check_method=$lt_cv_deplibs_check_method
13155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13156
13157
13158
13159 # If no C compiler was specified, use CC.
13160 LTCC=${LTCC-"$CC"}
13161
13162 # If no C compiler flags were specified, use CFLAGS.
13163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13164
13165 # Allow CC to be a program name with arguments.
13166 compiler=$CC
13167
13168 # Check whether --enable-libtool-lock was given.
13169 if test "${enable_libtool_lock+set}" = set; then
13170   enableval=$enable_libtool_lock;
13171 fi
13172
13173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13174
13175 # Some flags need to be propagated to the compiler or linker for good
13176 # libtool support.
13177 case $host in
13178 ia64-*-hpux*)
13179   # Find out which ABI we are using.
13180   echo 'int i;' > conftest.$ac_ext
13181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182   (eval $ac_compile) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; then
13186     case `/usr/bin/file conftest.$ac_objext` in
13187     *ELF-32*)
13188       HPUX_IA64_MODE="32"
13189       ;;
13190     *ELF-64*)
13191       HPUX_IA64_MODE="64"
13192       ;;
13193     esac
13194   fi
13195   rm -rf conftest*
13196   ;;
13197 *-*-irix6*)
13198   # Find out which ABI we are using.
13199   echo '#line 13199 "configure"' > conftest.$ac_ext
13200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201   (eval $ac_compile) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; then
13205    if test "$lt_cv_prog_gnu_ld" = yes; then
13206     case `/usr/bin/file conftest.$ac_objext` in
13207     *32-bit*)
13208       LD="${LD-ld} -melf32bsmip"
13209       ;;
13210     *N32*)
13211       LD="${LD-ld} -melf32bmipn32"
13212       ;;
13213     *64-bit*)
13214       LD="${LD-ld} -melf64bmip"
13215       ;;
13216     esac
13217    else
13218     case `/usr/bin/file conftest.$ac_objext` in
13219     *32-bit*)
13220       LD="${LD-ld} -32"
13221       ;;
13222     *N32*)
13223       LD="${LD-ld} -n32"
13224       ;;
13225     *64-bit*)
13226       LD="${LD-ld} -64"
13227       ;;
13228     esac
13229    fi
13230   fi
13231   rm -rf conftest*
13232   ;;
13233
13234 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13235   # Find out which ABI we are using.
13236   echo 'int i;' > conftest.$ac_ext
13237   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; then
13242     case `/usr/bin/file conftest.o` in
13243     *32-bit*)
13244       case $host in
13245         x86_64-*linux*)
13246           LD="${LD-ld} -m elf_i386"
13247           ;;
13248         ppc64-*linux*|powerpc64-*linux*)
13249           LD="${LD-ld} -m elf32ppclinux"
13250           ;;
13251         s390x-*linux*)
13252           LD="${LD-ld} -m elf_s390"
13253           ;;
13254         sparc64-*linux*)
13255           LD="${LD-ld} -m elf32_sparc"
13256           ;;
13257       esac
13258       ;;
13259     *64-bit*)
13260       case $host in
13261         x86_64-*linux*)
13262           LD="${LD-ld} -m elf_x86_64"
13263           ;;
13264         ppc*-*linux*|powerpc*-*linux*)
13265           LD="${LD-ld} -m elf64ppc"
13266           ;;
13267         s390*-*linux*)
13268           LD="${LD-ld} -m elf64_s390"
13269           ;;
13270         sparc*-*linux*)
13271           LD="${LD-ld} -m elf64_sparc"
13272           ;;
13273       esac
13274       ;;
13275     esac
13276   fi
13277   rm -rf conftest*
13278   ;;
13279
13280 *-*-sco3.2v5*)
13281   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13282   SAVE_CFLAGS="$CFLAGS"
13283   CFLAGS="$CFLAGS -belf"
13284   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13285 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13286 if test "${lt_cv_cc_needs_belf+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   ac_ext=c
13290 ac_cpp='$CPP $CPPFLAGS'
13291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13294
13295      cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301
13302 int
13303 main ()
13304 {
13305
13306   ;
13307   return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314   *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317   (eval "$ac_link") 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325   { (case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_try") 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; } &&
13334          { ac_try='test -s conftest$ac_exeext'
13335   { (case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_try") 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   lt_cv_cc_needs_belf=yes
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349         lt_cv_cc_needs_belf=no
13350 fi
13351
13352 rm -f core conftest.err conftest.$ac_objext \
13353       conftest$ac_exeext conftest.$ac_ext
13354      ac_ext=c
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359
13360 fi
13361 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13362 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13363   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13364     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13365     CFLAGS="$SAVE_CFLAGS"
13366   fi
13367   ;;
13368 sparc*-*solaris*)
13369   # Find out which ABI we are using.
13370   echo 'int i;' > conftest.$ac_ext
13371   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372   (eval $ac_compile) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; then
13376     case `/usr/bin/file conftest.o` in
13377     *64-bit*)
13378       case $lt_cv_prog_gnu_ld in
13379       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13380       *)    LD="${LD-ld} -64" ;;
13381       esac
13382       ;;
13383     esac
13384   fi
13385   rm -rf conftest*
13386   ;;
13387
13388
13389 esac
13390
13391 need_locks="$enable_libtool_lock"
13392
13393
13394
13395
13396 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13397     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13398     (test "X$CXX" != "Xg++"))) ; then
13399   ac_ext=cpp
13400 ac_cpp='$CXXCPP $CPPFLAGS'
13401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13404 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13405 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13406 if test -z "$CXXCPP"; then
13407   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410       # Double quotes because CXXCPP needs to be expanded
13411     for CXXCPP in "$CXX -E" "/lib/cpp"
13412     do
13413       ac_preproc_ok=false
13414 for ac_cxx_preproc_warn_flag in '' yes
13415 do
13416   # Use a header file that comes with gcc, so configuring glibc
13417   # with a fresh cross-compiler works.
13418   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419   # <limits.h> exists even on freestanding compilers.
13420   # On the NeXT, cc -E runs the code through the compiler's parser,
13421   # not just through cpp. "Syntax error" is here to catch this case.
13422   cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428 #ifdef __STDC__
13429 # include <limits.h>
13430 #else
13431 # include <assert.h>
13432 #endif
13433                      Syntax error
13434 _ACEOF
13435 if { (ac_try="$ac_cpp conftest.$ac_ext"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } >/dev/null; then
13448   if test -s conftest.err; then
13449     ac_cpp_err=$ac_cxx_preproc_warn_flag
13450     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13451   else
13452     ac_cpp_err=
13453   fi
13454 else
13455   ac_cpp_err=yes
13456 fi
13457 if test -z "$ac_cpp_err"; then
13458   :
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463   # Broken: fails on valid input.
13464 continue
13465 fi
13466
13467 rm -f conftest.err conftest.$ac_ext
13468
13469   # OK, works on sane cases.  Now check whether nonexistent headers
13470   # can be detected and how.
13471   cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 #include <ac_nonexistent.h>
13478 _ACEOF
13479 if { (ac_try="$ac_cpp conftest.$ac_ext"
13480 case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } >/dev/null; then
13492   if test -s conftest.err; then
13493     ac_cpp_err=$ac_cxx_preproc_warn_flag
13494     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13495   else
13496     ac_cpp_err=
13497   fi
13498 else
13499   ac_cpp_err=yes
13500 fi
13501 if test -z "$ac_cpp_err"; then
13502   # Broken: success on invalid input.
13503 continue
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508   # Passes both tests.
13509 ac_preproc_ok=:
13510 break
13511 fi
13512
13513 rm -f conftest.err conftest.$ac_ext
13514
13515 done
13516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13517 rm -f conftest.err conftest.$ac_ext
13518 if $ac_preproc_ok; then
13519   break
13520 fi
13521
13522     done
13523     ac_cv_prog_CXXCPP=$CXXCPP
13524
13525 fi
13526   CXXCPP=$ac_cv_prog_CXXCPP
13527 else
13528   ac_cv_prog_CXXCPP=$CXXCPP
13529 fi
13530 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13531 echo "${ECHO_T}$CXXCPP" >&6; }
13532 ac_preproc_ok=false
13533 for ac_cxx_preproc_warn_flag in '' yes
13534 do
13535   # Use a header file that comes with gcc, so configuring glibc
13536   # with a fresh cross-compiler works.
13537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13538   # <limits.h> exists even on freestanding compilers.
13539   # On the NeXT, cc -E runs the code through the compiler's parser,
13540   # not just through cpp. "Syntax error" is here to catch this case.
13541   cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 #ifdef __STDC__
13548 # include <limits.h>
13549 #else
13550 # include <assert.h>
13551 #endif
13552                      Syntax error
13553 _ACEOF
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } >/dev/null; then
13567   if test -s conftest.err; then
13568     ac_cpp_err=$ac_cxx_preproc_warn_flag
13569     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13570   else
13571     ac_cpp_err=
13572   fi
13573 else
13574   ac_cpp_err=yes
13575 fi
13576 if test -z "$ac_cpp_err"; then
13577   :
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582   # Broken: fails on valid input.
13583 continue
13584 fi
13585
13586 rm -f conftest.err conftest.$ac_ext
13587
13588   # OK, works on sane cases.  Now check whether nonexistent headers
13589   # can be detected and how.
13590   cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596 #include <ac_nonexistent.h>
13597 _ACEOF
13598 if { (ac_try="$ac_cpp conftest.$ac_ext"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } >/dev/null; then
13611   if test -s conftest.err; then
13612     ac_cpp_err=$ac_cxx_preproc_warn_flag
13613     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13614   else
13615     ac_cpp_err=
13616   fi
13617 else
13618   ac_cpp_err=yes
13619 fi
13620 if test -z "$ac_cpp_err"; then
13621   # Broken: success on invalid input.
13622 continue
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627   # Passes both tests.
13628 ac_preproc_ok=:
13629 break
13630 fi
13631
13632 rm -f conftest.err conftest.$ac_ext
13633
13634 done
13635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13636 rm -f conftest.err conftest.$ac_ext
13637 if $ac_preproc_ok; then
13638   :
13639 else
13640   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13641 See \`config.log' for more details." >&5
13642 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13643 See \`config.log' for more details." >&2;}
13644    { (exit 1); exit 1; }; }
13645 fi
13646
13647 ac_ext=cpp
13648 ac_cpp='$CXXCPP $CPPFLAGS'
13649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13652
13653 fi
13654
13655
13656 ac_ext=f
13657 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13658 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13660 if test -n "$ac_tool_prefix"; then
13661   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
13662   do
13663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13667 if test "${ac_cv_prog_F77+set}" = set; then
13668   echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670   if test -n "$F77"; then
13671   ac_cv_prog_F77="$F77" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676   IFS=$as_save_IFS
13677   test -z "$as_dir" && as_dir=.
13678   for ac_exec_ext in '' $ac_executable_extensions; do
13679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13680     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13682     break 2
13683   fi
13684 done
13685 done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 F77=$ac_cv_prog_F77
13691 if test -n "$F77"; then
13692   { echo "$as_me:$LINENO: result: $F77" >&5
13693 echo "${ECHO_T}$F77" >&6; }
13694 else
13695   { echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6; }
13697 fi
13698
13699
13700     test -n "$F77" && break
13701   done
13702 fi
13703 if test -z "$F77"; then
13704   ac_ct_F77=$F77
13705   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
13706 do
13707   # Extract the first word of "$ac_prog", so it can be a program name with args.
13708 set dummy $ac_prog; ac_word=$2
13709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13711 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   if test -n "$ac_ct_F77"; then
13715   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13716 else
13717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718 for as_dir in $PATH
13719 do
13720   IFS=$as_save_IFS
13721   test -z "$as_dir" && as_dir=.
13722   for ac_exec_ext in '' $ac_executable_extensions; do
13723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13724     ac_cv_prog_ac_ct_F77="$ac_prog"
13725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13726     break 2
13727   fi
13728 done
13729 done
13730 IFS=$as_save_IFS
13731
13732 fi
13733 fi
13734 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13735 if test -n "$ac_ct_F77"; then
13736   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13737 echo "${ECHO_T}$ac_ct_F77" >&6; }
13738 else
13739   { echo "$as_me:$LINENO: result: no" >&5
13740 echo "${ECHO_T}no" >&6; }
13741 fi
13742
13743
13744   test -n "$ac_ct_F77" && break
13745 done
13746
13747   if test "x$ac_ct_F77" = x; then
13748     F77=""
13749   else
13750     case $cross_compiling:$ac_tool_warned in
13751 yes:)
13752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13753 whose name does not start with the host triplet.  If you think this
13754 configuration is useful to you, please write to autoconf@gnu.org." >&5
13755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13756 whose name does not start with the host triplet.  If you think this
13757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13758 ac_tool_warned=yes ;;
13759 esac
13760     F77=$ac_ct_F77
13761   fi
13762 fi
13763
13764
13765 # Provide some information about the compiler.
13766 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13767 ac_compiler=`set X $ac_compile; echo $2`
13768 { (ac_try="$ac_compiler --version >&5"
13769 case "(($ac_try" in
13770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771   *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774   (eval "$ac_compiler --version >&5") 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }
13778 { (ac_try="$ac_compiler -v >&5"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784   (eval "$ac_compiler -v >&5") 2>&5
13785   ac_status=$?
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); }
13788 { (ac_try="$ac_compiler -V >&5"
13789 case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_compiler -V >&5") 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }
13798 rm -f a.out
13799
13800 # If we don't use `.F' as extension, the preprocessor is not run on the
13801 # input file.  (Note that this only needs to work for GNU compilers.)
13802 ac_save_ext=$ac_ext
13803 ac_ext=F
13804 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13805 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13806 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   cat >conftest.$ac_ext <<_ACEOF
13810       program main
13811 #ifndef __GNUC__
13812        choke me
13813 #endif
13814
13815       end
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (ac_try="$ac_compile"
13819 case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_compile") 2>conftest.er1
13825   ac_status=$?
13826   grep -v '^ *+' conftest.er1 >conftest.err
13827   rm -f conftest.er1
13828   cat conftest.err >&5
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); } &&
13831          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832   { (case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_try") 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; } &&
13841          { ac_try='test -s conftest.$ac_objext'
13842   { (case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_try") 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851   ac_compiler_gnu=yes
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856         ac_compiler_gnu=no
13857 fi
13858
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13861
13862 fi
13863 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13864 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13865 ac_ext=$ac_save_ext
13866 ac_test_FFLAGS=${FFLAGS+set}
13867 ac_save_FFLAGS=$FFLAGS
13868 FFLAGS=
13869 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13870 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13871 if test "${ac_cv_prog_f77_g+set}" = set; then
13872   echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874   FFLAGS=-g
13875 cat >conftest.$ac_ext <<_ACEOF
13876       program main
13877
13878       end
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887   (eval "$ac_compile") 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13895   { (case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_try") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; } &&
13904          { ac_try='test -s conftest.$ac_objext'
13905   { (case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_try") 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; }; then
13914   ac_cv_prog_f77_g=yes
13915 else
13916   echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919         ac_cv_prog_f77_g=no
13920 fi
13921
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923
13924 fi
13925 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13926 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13927 if test "$ac_test_FFLAGS" = set; then
13928   FFLAGS=$ac_save_FFLAGS
13929 elif test $ac_cv_prog_f77_g = yes; then
13930   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13931     FFLAGS="-g -O2"
13932   else
13933     FFLAGS="-g"
13934   fi
13935 else
13936   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13937     FFLAGS="-O2"
13938   else
13939     FFLAGS=
13940   fi
13941 fi
13942
13943 G77=`test $ac_compiler_gnu = yes && echo yes`
13944 ac_ext=c
13945 ac_cpp='$CPP $CPPFLAGS'
13946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949
13950
13951
13952 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13953
13954 # find the maximum length of command line arguments
13955 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13956 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13957 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960     i=0
13961   teststring="ABCD"
13962
13963   case $build_os in
13964   msdosdjgpp*)
13965     # On DJGPP, this test can blow up pretty badly due to problems in libc
13966     # (any single argument exceeding 2000 bytes causes a buffer overrun
13967     # during glob expansion).  Even if it were fixed, the result of this
13968     # check would be larger than it should be.
13969     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13970     ;;
13971
13972   gnu*)
13973     # Under GNU Hurd, this test is not required because there is
13974     # no limit to the length of command line arguments.
13975     # Libtool will interpret -1 as no limit whatsoever
13976     lt_cv_sys_max_cmd_len=-1;
13977     ;;
13978
13979   cygwin* | mingw*)
13980     # On Win9x/ME, this test blows up -- it succeeds, but takes
13981     # about 5 minutes as the teststring grows exponentially.
13982     # Worse, since 9x/ME are not pre-emptively multitasking,
13983     # you end up with a "frozen" computer, even though with patience
13984     # the test eventually succeeds (with a max line length of 256k).
13985     # Instead, let's just punt: use the minimum linelength reported by
13986     # all of the supported platforms: 8192 (on NT/2K/XP).
13987     lt_cv_sys_max_cmd_len=8192;
13988     ;;
13989
13990   amigaos*)
13991     # On AmigaOS with pdksh, this test takes hours, literally.
13992     # So we just punt and use a minimum line length of 8192.
13993     lt_cv_sys_max_cmd_len=8192;
13994     ;;
13995
13996   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13997     # This has been around since 386BSD, at least.  Likely further.
13998     if test -x /sbin/sysctl; then
13999       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14000     elif test -x /usr/sbin/sysctl; then
14001       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14002     else
14003       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14004     fi
14005     # And add a safety zone
14006     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14007     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14008     ;;
14009
14010   interix*)
14011     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14012     lt_cv_sys_max_cmd_len=196608
14013     ;;
14014
14015   osf*)
14016     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14017     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14018     # nice to cause kernel panics so lets avoid the loop below.
14019     # First set a reasonable default.
14020     lt_cv_sys_max_cmd_len=16384
14021     #
14022     if test -x /sbin/sysconfig; then
14023       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14024         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14025       esac
14026     fi
14027     ;;
14028   sco3.2v5*)
14029     lt_cv_sys_max_cmd_len=102400
14030     ;;
14031   sysv5* | sco5v6* | sysv4.2uw2*)
14032     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14033     if test -n "$kargmax"; then
14034       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
14035     else
14036       lt_cv_sys_max_cmd_len=32768
14037     fi
14038     ;;
14039   *)
14040     # If test is not a shell built-in, we'll probably end up computing a
14041     # maximum length that is only half of the actual maximum length, but
14042     # we can't tell.
14043     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14044     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14045                = "XX$teststring") >/dev/null 2>&1 &&
14046             new_result=`expr "X$teststring" : ".*" 2>&1` &&
14047             lt_cv_sys_max_cmd_len=$new_result &&
14048             test $i != 17 # 1/2 MB should be enough
14049     do
14050       i=`expr $i + 1`
14051       teststring=$teststring$teststring
14052     done
14053     teststring=
14054     # Add a significant safety factor because C++ compilers can tack on massive
14055     # amounts of additional arguments before passing them to the linker.
14056     # It appears as though 1/2 is a usable value.
14057     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14058     ;;
14059   esac
14060
14061 fi
14062
14063 if test -n $lt_cv_sys_max_cmd_len ; then
14064   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14065 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14066 else
14067   { echo "$as_me:$LINENO: result: none" >&5
14068 echo "${ECHO_T}none" >&6; }
14069 fi
14070
14071
14072
14073
14074 # Check for command to grab the raw symbol name followed by C symbol from nm.
14075 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14076 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14077 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080
14081 # These are sane defaults that work on at least a few old systems.
14082 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14083
14084 # Character class describing NM global symbol codes.
14085 symcode='[BCDEGRST]'
14086
14087 # Regexp to match symbols that can be accessed directly from C.
14088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14089
14090 # Transform an extracted symbol line into a proper C declaration
14091 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14092
14093 # Transform an extracted symbol line into symbol name and symbol address
14094 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'"
14095
14096 # Define system-specific variables.
14097 case $host_os in
14098 aix*)
14099   symcode='[BCDT]'
14100   ;;
14101 cygwin* | mingw* | pw32*)
14102   symcode='[ABCDGISTW]'
14103   ;;
14104 hpux*) # Its linker distinguishes data from code symbols
14105   if test "$host_cpu" = ia64; then
14106     symcode='[ABCDEGRST]'
14107   fi
14108   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14109   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'"
14110   ;;
14111 linux*)
14112   if test "$host_cpu" = ia64; then
14113     symcode='[ABCDGIRSTW]'
14114     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14115     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'"
14116   fi
14117   ;;
14118 irix* | nonstopux*)
14119   symcode='[BCDEGRST]'
14120   ;;
14121 osf*)
14122   symcode='[BCDEGQRST]'
14123   ;;
14124 solaris*)
14125   symcode='[BDRT]'
14126   ;;
14127 sco3.2v5*)
14128   symcode='[DT]'
14129   ;;
14130 sysv4.2uw2*)
14131   symcode='[DT]'
14132   ;;
14133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14134   symcode='[ABDT]'
14135   ;;
14136 sysv4)
14137   symcode='[DFNSTU]'
14138   ;;
14139 esac
14140
14141 # Handle CRLF in mingw tool chain
14142 opt_cr=
14143 case $build_os in
14144 mingw*)
14145   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14146   ;;
14147 esac
14148
14149 # If we're using GNU nm, then use its standard symbol codes.
14150 case `$NM -V 2>&1` in
14151 *GNU* | *'with BFD'*)
14152   symcode='[ABCDGIRSTW]' ;;
14153 esac
14154
14155 # Try without a prefix undercore, then with it.
14156 for ac_symprfx in "" "_"; do
14157
14158   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14159   symxfrm="\\1 $ac_symprfx\\2 \\2"
14160
14161   # Write the raw and C identifiers.
14162   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14163
14164   # Check to see that the pipe works correctly.
14165   pipe_works=no
14166
14167   rm -f conftest*
14168   cat > conftest.$ac_ext <<EOF
14169 #ifdef __cplusplus
14170 extern "C" {
14171 #endif
14172 char nm_test_var;
14173 void nm_test_func(){}
14174 #ifdef __cplusplus
14175 }
14176 #endif
14177 int main(){nm_test_var='a';nm_test_func();return(0);}
14178 EOF
14179
14180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181   (eval $ac_compile) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; then
14185     # Now try to grab the symbols.
14186     nlist=conftest.nm
14187     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14188   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } && test -s "$nlist"; then
14192       # Try sorting and uniquifying the output.
14193       if sort "$nlist" | uniq > "$nlist"T; then
14194         mv -f "$nlist"T "$nlist"
14195       else
14196         rm -f "$nlist"T
14197       fi
14198
14199       # Make sure that we snagged all the symbols we need.
14200       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14201         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14202           cat <<EOF > conftest.$ac_ext
14203 #ifdef __cplusplus
14204 extern "C" {
14205 #endif
14206
14207 EOF
14208           # Now generate the symbol file.
14209           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14210
14211           cat <<EOF >> conftest.$ac_ext
14212 #if defined (__STDC__) && __STDC__
14213 # define lt_ptr_t void *
14214 #else
14215 # define lt_ptr_t char *
14216 # define const
14217 #endif
14218
14219 /* The mapping between symbol names and symbols. */
14220 const struct {
14221   const char *name;
14222   lt_ptr_t address;
14223 }
14224 lt_preloaded_symbols[] =
14225 {
14226 EOF
14227           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14228           cat <<\EOF >> conftest.$ac_ext
14229   {0, (lt_ptr_t) 0}
14230 };
14231
14232 #ifdef __cplusplus
14233 }
14234 #endif
14235 EOF
14236           # Now try linking the two files.
14237           mv conftest.$ac_objext conftstm.$ac_objext
14238           lt_save_LIBS="$LIBS"
14239           lt_save_CFLAGS="$CFLAGS"
14240           LIBS="conftstm.$ac_objext"
14241           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14242           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243   (eval $ac_link) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14247             pipe_works=yes
14248           fi
14249           LIBS="$lt_save_LIBS"
14250           CFLAGS="$lt_save_CFLAGS"
14251         else
14252           echo "cannot find nm_test_func in $nlist" >&5
14253         fi
14254       else
14255         echo "cannot find nm_test_var in $nlist" >&5
14256       fi
14257     else
14258       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14259     fi
14260   else
14261     echo "$progname: failed program was:" >&5
14262     cat conftest.$ac_ext >&5
14263   fi
14264   rm -f conftest* conftst*
14265
14266   # Do not use the global_symbol_pipe unless it works.
14267   if test "$pipe_works" = yes; then
14268     break
14269   else
14270     lt_cv_sys_global_symbol_pipe=
14271   fi
14272 done
14273
14274 fi
14275
14276 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14277   lt_cv_sys_global_symbol_to_cdecl=
14278 fi
14279 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14280   { echo "$as_me:$LINENO: result: failed" >&5
14281 echo "${ECHO_T}failed" >&6; }
14282 else
14283   { echo "$as_me:$LINENO: result: ok" >&5
14284 echo "${ECHO_T}ok" >&6; }
14285 fi
14286
14287 { echo "$as_me:$LINENO: checking for objdir" >&5
14288 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14289 if test "${lt_cv_objdir+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   rm -f .libs 2>/dev/null
14293 mkdir .libs 2>/dev/null
14294 if test -d .libs; then
14295   lt_cv_objdir=.libs
14296 else
14297   # MS-DOS does not allow filenames that begin with a dot.
14298   lt_cv_objdir=_libs
14299 fi
14300 rmdir .libs 2>/dev/null
14301 fi
14302 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14303 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14304 objdir=$lt_cv_objdir
14305
14306
14307
14308
14309
14310 case $host_os in
14311 aix3*)
14312   # AIX sometimes has problems with the GCC collect2 program.  For some
14313   # reason, if we set the COLLECT_NAMES environment variable, the problems
14314   # vanish in a puff of smoke.
14315   if test "X${COLLECT_NAMES+set}" != Xset; then
14316     COLLECT_NAMES=
14317     export COLLECT_NAMES
14318   fi
14319   ;;
14320 esac
14321
14322 # Sed substitution that helps us do robust quoting.  It backslashifies
14323 # metacharacters that are still active within double-quoted strings.
14324 Xsed='sed -e 1s/^X//'
14325 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14326
14327 # Same as above, but do not quote variable references.
14328 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14329
14330 # Sed substitution to delay expansion of an escaped shell variable in a
14331 # double_quote_subst'ed string.
14332 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14333
14334 # Sed substitution to avoid accidental globbing in evaled expressions
14335 no_glob_subst='s/\*/\\\*/g'
14336
14337 # Constants:
14338 rm="rm -f"
14339
14340 # Global variables:
14341 default_ofile=mklib
14342 can_build_shared=yes
14343
14344 # All known linkers require a `.a' archive for static linking (except MSVC,
14345 # which needs '.lib').
14346 libext=a
14347 ltmain="$ac_aux_dir/ltmain.sh"
14348 ofile="$default_ofile"
14349 with_gnu_ld="$lt_cv_prog_gnu_ld"
14350
14351 if test -n "$ac_tool_prefix"; then
14352   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14353 set dummy ${ac_tool_prefix}ar; ac_word=$2
14354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14356 if test "${ac_cv_prog_AR+set}" = set; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   if test -n "$AR"; then
14360   ac_cv_prog_AR="$AR" # Let the user override the test.
14361 else
14362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14363 for as_dir in $PATH
14364 do
14365   IFS=$as_save_IFS
14366   test -z "$as_dir" && as_dir=.
14367   for ac_exec_ext in '' $ac_executable_extensions; do
14368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14369     ac_cv_prog_AR="${ac_tool_prefix}ar"
14370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14371     break 2
14372   fi
14373 done
14374 done
14375 IFS=$as_save_IFS
14376
14377 fi
14378 fi
14379 AR=$ac_cv_prog_AR
14380 if test -n "$AR"; then
14381   { echo "$as_me:$LINENO: result: $AR" >&5
14382 echo "${ECHO_T}$AR" >&6; }
14383 else
14384   { echo "$as_me:$LINENO: result: no" >&5
14385 echo "${ECHO_T}no" >&6; }
14386 fi
14387
14388
14389 fi
14390 if test -z "$ac_cv_prog_AR"; then
14391   ac_ct_AR=$AR
14392   # Extract the first word of "ar", so it can be a program name with args.
14393 set dummy ar; ac_word=$2
14394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14397   echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399   if test -n "$ac_ct_AR"; then
14400   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14401 else
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14404 do
14405   IFS=$as_save_IFS
14406   test -z "$as_dir" && as_dir=.
14407   for ac_exec_ext in '' $ac_executable_extensions; do
14408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14409     ac_cv_prog_ac_ct_AR="ar"
14410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411     break 2
14412   fi
14413 done
14414 done
14415 IFS=$as_save_IFS
14416
14417 fi
14418 fi
14419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14420 if test -n "$ac_ct_AR"; then
14421   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14422 echo "${ECHO_T}$ac_ct_AR" >&6; }
14423 else
14424   { echo "$as_me:$LINENO: result: no" >&5
14425 echo "${ECHO_T}no" >&6; }
14426 fi
14427
14428   if test "x$ac_ct_AR" = x; then
14429     AR="false"
14430   else
14431     case $cross_compiling:$ac_tool_warned in
14432 yes:)
14433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14434 whose name does not start with the host triplet.  If you think this
14435 configuration is useful to you, please write to autoconf@gnu.org." >&5
14436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14437 whose name does not start with the host triplet.  If you think this
14438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14439 ac_tool_warned=yes ;;
14440 esac
14441     AR=$ac_ct_AR
14442   fi
14443 else
14444   AR="$ac_cv_prog_AR"
14445 fi
14446
14447 if test -n "$ac_tool_prefix"; then
14448   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14452 if test "${ac_cv_prog_RANLIB+set}" = set; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455   if test -n "$RANLIB"; then
14456   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14457 else
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14460 do
14461   IFS=$as_save_IFS
14462   test -z "$as_dir" && as_dir=.
14463   for ac_exec_ext in '' $ac_executable_extensions; do
14464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14465     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467     break 2
14468   fi
14469 done
14470 done
14471 IFS=$as_save_IFS
14472
14473 fi
14474 fi
14475 RANLIB=$ac_cv_prog_RANLIB
14476 if test -n "$RANLIB"; then
14477   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14478 echo "${ECHO_T}$RANLIB" >&6; }
14479 else
14480   { echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6; }
14482 fi
14483
14484
14485 fi
14486 if test -z "$ac_cv_prog_RANLIB"; then
14487   ac_ct_RANLIB=$RANLIB
14488   # Extract the first word of "ranlib", so it can be a program name with args.
14489 set dummy ranlib; ac_word=$2
14490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14493   echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495   if test -n "$ac_ct_RANLIB"; then
14496   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14500 do
14501   IFS=$as_save_IFS
14502   test -z "$as_dir" && as_dir=.
14503   for ac_exec_ext in '' $ac_executable_extensions; do
14504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14505     ac_cv_prog_ac_ct_RANLIB="ranlib"
14506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14507     break 2
14508   fi
14509 done
14510 done
14511 IFS=$as_save_IFS
14512
14513 fi
14514 fi
14515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14516 if test -n "$ac_ct_RANLIB"; then
14517   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14518 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14519 else
14520   { echo "$as_me:$LINENO: result: no" >&5
14521 echo "${ECHO_T}no" >&6; }
14522 fi
14523
14524   if test "x$ac_ct_RANLIB" = x; then
14525     RANLIB=":"
14526   else
14527     case $cross_compiling:$ac_tool_warned in
14528 yes:)
14529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14530 whose name does not start with the host triplet.  If you think this
14531 configuration is useful to you, please write to autoconf@gnu.org." >&5
14532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14533 whose name does not start with the host triplet.  If you think this
14534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14535 ac_tool_warned=yes ;;
14536 esac
14537     RANLIB=$ac_ct_RANLIB
14538   fi
14539 else
14540   RANLIB="$ac_cv_prog_RANLIB"
14541 fi
14542
14543 if test -n "$ac_tool_prefix"; then
14544   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14545 set dummy ${ac_tool_prefix}strip; ac_word=$2
14546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14548 if test "${ac_cv_prog_STRIP+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   if test -n "$STRIP"; then
14552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557   IFS=$as_save_IFS
14558   test -z "$as_dir" && as_dir=.
14559   for ac_exec_ext in '' $ac_executable_extensions; do
14560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14561     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14563     break 2
14564   fi
14565 done
14566 done
14567 IFS=$as_save_IFS
14568
14569 fi
14570 fi
14571 STRIP=$ac_cv_prog_STRIP
14572 if test -n "$STRIP"; then
14573   { echo "$as_me:$LINENO: result: $STRIP" >&5
14574 echo "${ECHO_T}$STRIP" >&6; }
14575 else
14576   { echo "$as_me:$LINENO: result: no" >&5
14577 echo "${ECHO_T}no" >&6; }
14578 fi
14579
14580
14581 fi
14582 if test -z "$ac_cv_prog_STRIP"; then
14583   ac_ct_STRIP=$STRIP
14584   # Extract the first word of "strip", so it can be a program name with args.
14585 set dummy strip; ac_word=$2
14586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14589   echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591   if test -n "$ac_ct_STRIP"; then
14592   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14593 else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14596 do
14597   IFS=$as_save_IFS
14598   test -z "$as_dir" && as_dir=.
14599   for ac_exec_ext in '' $ac_executable_extensions; do
14600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14601     ac_cv_prog_ac_ct_STRIP="strip"
14602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14603     break 2
14604   fi
14605 done
14606 done
14607 IFS=$as_save_IFS
14608
14609 fi
14610 fi
14611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14612 if test -n "$ac_ct_STRIP"; then
14613   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14614 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14615 else
14616   { echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6; }
14618 fi
14619
14620   if test "x$ac_ct_STRIP" = x; then
14621     STRIP=":"
14622   else
14623     case $cross_compiling:$ac_tool_warned in
14624 yes:)
14625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14626 whose name does not start with the host triplet.  If you think this
14627 configuration is useful to you, please write to autoconf@gnu.org." >&5
14628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14629 whose name does not start with the host triplet.  If you think this
14630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14631 ac_tool_warned=yes ;;
14632 esac
14633     STRIP=$ac_ct_STRIP
14634   fi
14635 else
14636   STRIP="$ac_cv_prog_STRIP"
14637 fi
14638
14639
14640 old_CC="$CC"
14641 old_CFLAGS="$CFLAGS"
14642
14643 # Set sane defaults for various variables
14644 test -z "$AR" && AR=ar
14645 test -z "$AR_FLAGS" && AR_FLAGS=cru
14646 test -z "$AS" && AS=as
14647 test -z "$CC" && CC=cc
14648 test -z "$LTCC" && LTCC=$CC
14649 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14650 test -z "$DLLTOOL" && DLLTOOL=dlltool
14651 test -z "$LD" && LD=ld
14652 test -z "$LN_S" && LN_S="ln -s"
14653 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14654 test -z "$NM" && NM=nm
14655 test -z "$SED" && SED=sed
14656 test -z "$OBJDUMP" && OBJDUMP=objdump
14657 test -z "$RANLIB" && RANLIB=:
14658 test -z "$STRIP" && STRIP=:
14659 test -z "$ac_objext" && ac_objext=o
14660
14661 # Determine commands to create old-style static archives.
14662 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14663 old_postinstall_cmds='chmod 644 $oldlib'
14664 old_postuninstall_cmds=
14665
14666 if test -n "$RANLIB"; then
14667   case $host_os in
14668   openbsd*)
14669     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14670     ;;
14671   *)
14672     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14673     ;;
14674   esac
14675   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14676 fi
14677
14678 for cc_temp in $compiler""; do
14679   case $cc_temp in
14680     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14681     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14682     \-*) ;;
14683     *) break;;
14684   esac
14685 done
14686 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14687
14688
14689 # Only perform the check for file, if the check method requires it
14690 case $deplibs_check_method in
14691 file_magic*)
14692   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14693     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14694 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   case $MAGIC_CMD in
14699 [\\/*] |  ?:[\\/]*)
14700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14701   ;;
14702 *)
14703   lt_save_MAGIC_CMD="$MAGIC_CMD"
14704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14706   for ac_dir in $ac_dummy; do
14707     IFS="$lt_save_ifs"
14708     test -z "$ac_dir" && ac_dir=.
14709     if test -f $ac_dir/${ac_tool_prefix}file; then
14710       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14711       if test -n "$file_magic_test_file"; then
14712         case $deplibs_check_method in
14713         "file_magic "*)
14714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14717             $EGREP "$file_magic_regex" > /dev/null; then
14718             :
14719           else
14720             cat <<EOF 1>&2
14721
14722 *** Warning: the command libtool uses to detect shared libraries,
14723 *** $file_magic_cmd, produces output that libtool cannot recognize.
14724 *** The result is that libtool may fail to recognize shared libraries
14725 *** as such.  This will affect the creation of libtool libraries that
14726 *** depend on shared libraries, but programs linked with such libtool
14727 *** libraries will work regardless of this problem.  Nevertheless, you
14728 *** may want to report the problem to your system manager and/or to
14729 *** bug-libtool@gnu.org
14730
14731 EOF
14732           fi ;;
14733         esac
14734       fi
14735       break
14736     fi
14737   done
14738   IFS="$lt_save_ifs"
14739   MAGIC_CMD="$lt_save_MAGIC_CMD"
14740   ;;
14741 esac
14742 fi
14743
14744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14745 if test -n "$MAGIC_CMD"; then
14746   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14747 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14748 else
14749   { echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6; }
14751 fi
14752
14753 if test -z "$lt_cv_path_MAGIC_CMD"; then
14754   if test -n "$ac_tool_prefix"; then
14755     { echo "$as_me:$LINENO: checking for file" >&5
14756 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14757 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760   case $MAGIC_CMD in
14761 [\\/*] |  ?:[\\/]*)
14762   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14763   ;;
14764 *)
14765   lt_save_MAGIC_CMD="$MAGIC_CMD"
14766   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14767   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768   for ac_dir in $ac_dummy; do
14769     IFS="$lt_save_ifs"
14770     test -z "$ac_dir" && ac_dir=.
14771     if test -f $ac_dir/file; then
14772       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14773       if test -n "$file_magic_test_file"; then
14774         case $deplibs_check_method in
14775         "file_magic "*)
14776           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14777           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14778           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779             $EGREP "$file_magic_regex" > /dev/null; then
14780             :
14781           else
14782             cat <<EOF 1>&2
14783
14784 *** Warning: the command libtool uses to detect shared libraries,
14785 *** $file_magic_cmd, produces output that libtool cannot recognize.
14786 *** The result is that libtool may fail to recognize shared libraries
14787 *** as such.  This will affect the creation of libtool libraries that
14788 *** depend on shared libraries, but programs linked with such libtool
14789 *** libraries will work regardless of this problem.  Nevertheless, you
14790 *** may want to report the problem to your system manager and/or to
14791 *** bug-libtool@gnu.org
14792
14793 EOF
14794           fi ;;
14795         esac
14796       fi
14797       break
14798     fi
14799   done
14800   IFS="$lt_save_ifs"
14801   MAGIC_CMD="$lt_save_MAGIC_CMD"
14802   ;;
14803 esac
14804 fi
14805
14806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14807 if test -n "$MAGIC_CMD"; then
14808   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14809 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14810 else
14811   { echo "$as_me:$LINENO: result: no" >&5
14812 echo "${ECHO_T}no" >&6; }
14813 fi
14814
14815   else
14816     MAGIC_CMD=:
14817   fi
14818 fi
14819
14820   fi
14821   ;;
14822 esac
14823
14824 enable_dlopen=yes
14825 enable_win32_dll=no
14826
14827 # Check whether --enable-libtool-lock was given.
14828 if test "${enable_libtool_lock+set}" = set; then
14829   enableval=$enable_libtool_lock;
14830 fi
14831
14832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14833
14834
14835 # Check whether --with-pic was given.
14836 if test "${with_pic+set}" = set; then
14837   withval=$with_pic; pic_mode="$withval"
14838 else
14839   pic_mode=default
14840 fi
14841
14842 test -z "$pic_mode" && pic_mode=default
14843
14844 # Use C for the default configuration in the libtool script
14845 tagname=
14846 lt_save_CC="$CC"
14847 ac_ext=c
14848 ac_cpp='$CPP $CPPFLAGS'
14849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852
14853
14854 # Source file extension for C test sources.
14855 ac_ext=c
14856
14857 # Object file extension for compiled C test sources.
14858 objext=o
14859 objext=$objext
14860
14861 # Code to be used in simple compile tests
14862 lt_simple_compile_test_code="int some_variable = 0;\n"
14863
14864 # Code to be used in simple link tests
14865 lt_simple_link_test_code='int main(){return(0);}\n'
14866
14867
14868 # If no C compiler was specified, use CC.
14869 LTCC=${LTCC-"$CC"}
14870
14871 # If no C compiler flags were specified, use CFLAGS.
14872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14873
14874 # Allow CC to be a program name with arguments.
14875 compiler=$CC
14876
14877
14878 # save warnings/boilerplate of simple test code
14879 ac_outfile=conftest.$ac_objext
14880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14882 _lt_compiler_boilerplate=`cat conftest.err`
14883 $rm conftest*
14884
14885 ac_outfile=conftest.$ac_objext
14886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14888 _lt_linker_boilerplate=`cat conftest.err`
14889 $rm conftest*
14890
14891
14892
14893 lt_prog_compiler_no_builtin_flag=
14894
14895 if test "$GCC" = yes; then
14896   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14897
14898
14899 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14900 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14902   echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904   lt_cv_prog_compiler_rtti_exceptions=no
14905   ac_outfile=conftest.$ac_objext
14906    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14907    lt_compiler_flag="-fno-rtti -fno-exceptions"
14908    # Insert the option either (1) after the last *FLAGS variable, or
14909    # (2) before a word containing "conftest.", or (3) at the end.
14910    # Note that $ac_compile itself does not contain backslashes and begins
14911    # with a dollar sign (not a hyphen), so the echo should work correctly.
14912    # The option is referenced via a variable to avoid confusing sed.
14913    lt_compile=`echo "$ac_compile" | $SED \
14914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14916    -e 's:$: $lt_compiler_flag:'`
14917    (eval echo "\"\$as_me:14917: $lt_compile\"" >&5)
14918    (eval "$lt_compile" 2>conftest.err)
14919    ac_status=$?
14920    cat conftest.err >&5
14921    echo "$as_me:14921: \$? = $ac_status" >&5
14922    if (exit $ac_status) && test -s "$ac_outfile"; then
14923      # The compiler can only warn and ignore the option if not recognized
14924      # So say no if there are warnings other than the usual output.
14925      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14926      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14927      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14928        lt_cv_prog_compiler_rtti_exceptions=yes
14929      fi
14930    fi
14931    $rm conftest*
14932
14933 fi
14934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14935 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14936
14937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14938     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14939 else
14940     :
14941 fi
14942
14943 fi
14944
14945 lt_prog_compiler_wl=
14946 lt_prog_compiler_pic=
14947 lt_prog_compiler_static=
14948
14949 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14950 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14951
14952   if test "$GCC" = yes; then
14953     lt_prog_compiler_wl='-Wl,'
14954     lt_prog_compiler_static='-static'
14955
14956     case $host_os in
14957       aix*)
14958       # All AIX code is PIC.
14959       if test "$host_cpu" = ia64; then
14960         # AIX 5 now supports IA64 processor
14961         lt_prog_compiler_static='-Bstatic'
14962       fi
14963       ;;
14964
14965     amigaos*)
14966       # FIXME: we need at least 68020 code to build shared libraries, but
14967       # adding the `-m68020' flag to GCC prevents building anything better,
14968       # like `-m68040'.
14969       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14970       ;;
14971
14972     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14973       # PIC is the default for these OSes.
14974       ;;
14975
14976     mingw* | pw32* | os2*)
14977       # This hack is so that the source file can tell whether it is being
14978       # built for inclusion in a dll (and should export symbols for example).
14979       lt_prog_compiler_pic='-DDLL_EXPORT'
14980       ;;
14981
14982     darwin* | rhapsody*)
14983       # PIC is the default on this platform
14984       # Common symbols not allowed in MH_DYLIB files
14985       lt_prog_compiler_pic='-fno-common'
14986       ;;
14987
14988     interix3*)
14989       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14990       # Instead, we relocate shared libraries at runtime.
14991       ;;
14992
14993     msdosdjgpp*)
14994       # Just because we use GCC doesn't mean we suddenly get shared libraries
14995       # on systems that don't support them.
14996       lt_prog_compiler_can_build_shared=no
14997       enable_shared=no
14998       ;;
14999
15000     sysv4*MP*)
15001       if test -d /usr/nec; then
15002         lt_prog_compiler_pic=-Kconform_pic
15003       fi
15004       ;;
15005
15006     hpux*)
15007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15008       # not for PA HP-UX.
15009       case $host_cpu in
15010       hppa*64*|ia64*)
15011         # +Z the default
15012         ;;
15013       *)
15014         lt_prog_compiler_pic='-fPIC'
15015         ;;
15016       esac
15017       ;;
15018
15019     *)
15020       lt_prog_compiler_pic='-fPIC'
15021       ;;
15022     esac
15023   else
15024     # PORTME Check for flag to pass linker flags through the system compiler.
15025     case $host_os in
15026     aix*)
15027       lt_prog_compiler_wl='-Wl,'
15028       if test "$host_cpu" = ia64; then
15029         # AIX 5 now supports IA64 processor
15030         lt_prog_compiler_static='-Bstatic'
15031       else
15032         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15033       fi
15034       ;;
15035       darwin*)
15036         # PIC is the default on this platform
15037         # Common symbols not allowed in MH_DYLIB files
15038        case $cc_basename in
15039          xlc*)
15040          lt_prog_compiler_pic='-qnocommon'
15041          lt_prog_compiler_wl='-Wl,'
15042          ;;
15043        esac
15044        ;;
15045
15046     mingw* | pw32* | os2*)
15047       # This hack is so that the source file can tell whether it is being
15048       # built for inclusion in a dll (and should export symbols for example).
15049       lt_prog_compiler_pic='-DDLL_EXPORT'
15050       ;;
15051
15052     hpux9* | hpux10* | hpux11*)
15053       lt_prog_compiler_wl='-Wl,'
15054       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15055       # not for PA HP-UX.
15056       case $host_cpu in
15057       hppa*64*|ia64*)
15058         # +Z the default
15059         ;;
15060       *)
15061         lt_prog_compiler_pic='+Z'
15062         ;;
15063       esac
15064       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15065       lt_prog_compiler_static='${wl}-a ${wl}archive'
15066       ;;
15067
15068     irix5* | irix6* | nonstopux*)
15069       lt_prog_compiler_wl='-Wl,'
15070       # PIC (with -KPIC) is the default.
15071       lt_prog_compiler_static='-non_shared'
15072       ;;
15073
15074     newsos6)
15075       lt_prog_compiler_pic='-KPIC'
15076       lt_prog_compiler_static='-Bstatic'
15077       ;;
15078
15079     linux*)
15080       case $cc_basename in
15081       icc* | ecc*)
15082         lt_prog_compiler_wl='-Wl,'
15083         lt_prog_compiler_pic='-KPIC'
15084         lt_prog_compiler_static='-static'
15085         ;;
15086       pgcc* | pgf77* | pgf90* | pgf95*)
15087         # Portland Group compilers (*not* the Pentium gcc compiler,
15088         # which looks to be a dead project)
15089         lt_prog_compiler_wl='-Wl,'
15090         lt_prog_compiler_pic='-fpic'
15091         lt_prog_compiler_static='-Bstatic'
15092         ;;
15093       ccc*)
15094         lt_prog_compiler_wl='-Wl,'
15095         # All Alpha code is PIC.
15096         lt_prog_compiler_static='-non_shared'
15097         ;;
15098       esac
15099       ;;
15100
15101     osf3* | osf4* | osf5*)
15102       lt_prog_compiler_wl='-Wl,'
15103       # All OSF/1 code is PIC.
15104       lt_prog_compiler_static='-non_shared'
15105       ;;
15106
15107     solaris*)
15108       lt_prog_compiler_pic='-KPIC'
15109       lt_prog_compiler_static='-Bstatic'
15110       case $cc_basename in
15111       f77* | f90* | f95*)
15112         lt_prog_compiler_wl='-Qoption ld ';;
15113       *)
15114         lt_prog_compiler_wl='-Wl,';;
15115       esac
15116       ;;
15117
15118     sunos4*)
15119       lt_prog_compiler_wl='-Qoption ld '
15120       lt_prog_compiler_pic='-PIC'
15121       lt_prog_compiler_static='-Bstatic'
15122       ;;
15123
15124     sysv4 | sysv4.2uw2* | sysv4.3*)
15125       lt_prog_compiler_wl='-Wl,'
15126       lt_prog_compiler_pic='-KPIC'
15127       lt_prog_compiler_static='-Bstatic'
15128       ;;
15129
15130     sysv4*MP*)
15131       if test -d /usr/nec ;then
15132         lt_prog_compiler_pic='-Kconform_pic'
15133         lt_prog_compiler_static='-Bstatic'
15134       fi
15135       ;;
15136
15137     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15138       lt_prog_compiler_wl='-Wl,'
15139       lt_prog_compiler_pic='-KPIC'
15140       lt_prog_compiler_static='-Bstatic'
15141       ;;
15142
15143     unicos*)
15144       lt_prog_compiler_wl='-Wl,'
15145       lt_prog_compiler_can_build_shared=no
15146       ;;
15147
15148     uts4*)
15149       lt_prog_compiler_pic='-pic'
15150       lt_prog_compiler_static='-Bstatic'
15151       ;;
15152
15153     *)
15154       lt_prog_compiler_can_build_shared=no
15155       ;;
15156     esac
15157   fi
15158
15159 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15161
15162 #
15163 # Check to make sure the PIC flag actually works.
15164 #
15165 if test -n "$lt_prog_compiler_pic"; then
15166
15167 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15168 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15169 if test "${lt_prog_compiler_pic_works+set}" = set; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172   lt_prog_compiler_pic_works=no
15173   ac_outfile=conftest.$ac_objext
15174    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15175    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15176    # Insert the option either (1) after the last *FLAGS variable, or
15177    # (2) before a word containing "conftest.", or (3) at the end.
15178    # Note that $ac_compile itself does not contain backslashes and begins
15179    # with a dollar sign (not a hyphen), so the echo should work correctly.
15180    # The option is referenced via a variable to avoid confusing sed.
15181    lt_compile=`echo "$ac_compile" | $SED \
15182    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15183    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15184    -e 's:$: $lt_compiler_flag:'`
15185    (eval echo "\"\$as_me:15185: $lt_compile\"" >&5)
15186    (eval "$lt_compile" 2>conftest.err)
15187    ac_status=$?
15188    cat conftest.err >&5
15189    echo "$as_me:15189: \$? = $ac_status" >&5
15190    if (exit $ac_status) && test -s "$ac_outfile"; then
15191      # The compiler can only warn and ignore the option if not recognized
15192      # So say no if there are warnings other than the usual output.
15193      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15194      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15195      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15196        lt_prog_compiler_pic_works=yes
15197      fi
15198    fi
15199    $rm conftest*
15200
15201 fi
15202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15203 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15204
15205 if test x"$lt_prog_compiler_pic_works" = xyes; then
15206     case $lt_prog_compiler_pic in
15207      "" | " "*) ;;
15208      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15209      esac
15210 else
15211     lt_prog_compiler_pic=
15212      lt_prog_compiler_can_build_shared=no
15213 fi
15214
15215 fi
15216 case $host_os in
15217   # For platforms which do not support PIC, -DPIC is meaningless:
15218   *djgpp*)
15219     lt_prog_compiler_pic=
15220     ;;
15221   *)
15222     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15223     ;;
15224 esac
15225
15226 #
15227 # Check to make sure the static flag actually works.
15228 #
15229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15230 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15232 if test "${lt_prog_compiler_static_works+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   lt_prog_compiler_static_works=no
15236    save_LDFLAGS="$LDFLAGS"
15237    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15238    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15239    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15240      # The linker can only warn and ignore the option if not recognized
15241      # So say no if there are warnings
15242      if test -s conftest.err; then
15243        # Append any errors to the config.log.
15244        cat conftest.err 1>&5
15245        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15246        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15247        if diff conftest.exp conftest.er2 >/dev/null; then
15248          lt_prog_compiler_static_works=yes
15249        fi
15250      else
15251        lt_prog_compiler_static_works=yes
15252      fi
15253    fi
15254    $rm conftest*
15255    LDFLAGS="$save_LDFLAGS"
15256
15257 fi
15258 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15259 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15260
15261 if test x"$lt_prog_compiler_static_works" = xyes; then
15262     :
15263 else
15264     lt_prog_compiler_static=
15265 fi
15266
15267
15268 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15269 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15270 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   lt_cv_prog_compiler_c_o=no
15274    $rm -r conftest 2>/dev/null
15275    mkdir conftest
15276    cd conftest
15277    mkdir out
15278    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15279
15280    lt_compiler_flag="-o out/conftest2.$ac_objext"
15281    # Insert the option either (1) after the last *FLAGS variable, or
15282    # (2) before a word containing "conftest.", or (3) at the end.
15283    # Note that $ac_compile itself does not contain backslashes and begins
15284    # with a dollar sign (not a hyphen), so the echo should work correctly.
15285    lt_compile=`echo "$ac_compile" | $SED \
15286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15288    -e 's:$: $lt_compiler_flag:'`
15289    (eval echo "\"\$as_me:15289: $lt_compile\"" >&5)
15290    (eval "$lt_compile" 2>out/conftest.err)
15291    ac_status=$?
15292    cat out/conftest.err >&5
15293    echo "$as_me:15293: \$? = $ac_status" >&5
15294    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15295    then
15296      # The compiler can only warn and ignore the option if not recognized
15297      # So say no if there are warnings
15298      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15299      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15300      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15301        lt_cv_prog_compiler_c_o=yes
15302      fi
15303    fi
15304    chmod u+w . 2>&5
15305    $rm conftest*
15306    # SGI C++ compiler will create directory out/ii_files/ for
15307    # template instantiation
15308    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15309    $rm out/* && rmdir out
15310    cd ..
15311    rmdir conftest
15312    $rm conftest*
15313
15314 fi
15315 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15317
15318
15319 hard_links="nottested"
15320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15321   # do not overwrite the value of need_locks provided by the user
15322   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15324   hard_links=yes
15325   $rm conftest*
15326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327   touch conftest.a
15328   ln conftest.a conftest.b 2>&5 || hard_links=no
15329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330   { echo "$as_me:$LINENO: result: $hard_links" >&5
15331 echo "${ECHO_T}$hard_links" >&6; }
15332   if test "$hard_links" = no; then
15333     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15335     need_locks=warn
15336   fi
15337 else
15338   need_locks=no
15339 fi
15340
15341 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15343
15344   runpath_var=
15345   allow_undefined_flag=
15346   enable_shared_with_static_runtimes=no
15347   archive_cmds=
15348   archive_expsym_cmds=
15349   old_archive_From_new_cmds=
15350   old_archive_from_expsyms_cmds=
15351   export_dynamic_flag_spec=
15352   whole_archive_flag_spec=
15353   thread_safe_flag_spec=
15354   hardcode_libdir_flag_spec=
15355   hardcode_libdir_flag_spec_ld=
15356   hardcode_libdir_separator=
15357   hardcode_direct=no
15358   hardcode_minus_L=no
15359   hardcode_shlibpath_var=unsupported
15360   link_all_deplibs=unknown
15361   hardcode_automatic=no
15362   module_cmds=
15363   module_expsym_cmds=
15364   always_export_symbols=no
15365   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15366   # include_expsyms should be a list of space-separated symbols to be *always*
15367   # included in the symbol list
15368   include_expsyms=
15369   # exclude_expsyms can be an extended regexp of symbols to exclude
15370   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15371   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15372   # as well as any symbol that contains `d'.
15373   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15374   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375   # platforms (ab)use it in PIC code, but their linkers get confused if
15376   # the symbol is explicitly referenced.  Since portable code cannot
15377   # rely on this symbol name, it's probably fine to never include it in
15378   # preloaded symbol tables.
15379   extract_expsyms_cmds=
15380   # Just being paranoid about ensuring that cc_basename is set.
15381   for cc_temp in $compiler""; do
15382   case $cc_temp in
15383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15385     \-*) ;;
15386     *) break;;
15387   esac
15388 done
15389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15390
15391   case $host_os in
15392   cygwin* | mingw* | pw32*)
15393     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15394     # When not using gcc, we currently assume that we are using
15395     # Microsoft Visual C++.
15396     if test "$GCC" != yes; then
15397       with_gnu_ld=no
15398     fi
15399     ;;
15400   interix*)
15401     # we just hope/assume this is gcc and not c89 (= MSVC++)
15402     with_gnu_ld=yes
15403     ;;
15404   openbsd*)
15405     with_gnu_ld=no
15406     ;;
15407   esac
15408
15409   ld_shlibs=yes
15410   if test "$with_gnu_ld" = yes; then
15411     # If archive_cmds runs LD, not CC, wlarc should be empty
15412     wlarc='${wl}'
15413
15414     # Set some defaults for GNU ld with shared library support. These
15415     # are reset later if shared libraries are not supported. Putting them
15416     # here allows them to be overridden if necessary.
15417     runpath_var=LD_RUN_PATH
15418     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15419     export_dynamic_flag_spec='${wl}--export-dynamic'
15420     # ancient GNU ld didn't support --whole-archive et. al.
15421     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15422         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15423       else
15424         whole_archive_flag_spec=
15425     fi
15426     supports_anon_versioning=no
15427     case `$LD -v 2>/dev/null` in
15428       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15429       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15430       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15431       *\ 2.11.*) ;; # other 2.11 versions
15432       *) supports_anon_versioning=yes ;;
15433     esac
15434
15435     # See if GNU ld supports shared libraries.
15436     case $host_os in
15437     aix3* | aix4* | aix5*)
15438       # On AIX/PPC, the GNU linker is very broken
15439       if test "$host_cpu" != ia64; then
15440         ld_shlibs=no
15441         cat <<EOF 1>&2
15442
15443 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15444 *** to be unable to reliably create shared libraries on AIX.
15445 *** Therefore, libtool is disabling shared libraries support.  If you
15446 *** really care for shared libraries, you may want to modify your PATH
15447 *** so that a non-GNU linker is found, and then restart.
15448
15449 EOF
15450       fi
15451       ;;
15452
15453     amigaos*)
15454       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)'
15455       hardcode_libdir_flag_spec='-L$libdir'
15456       hardcode_minus_L=yes
15457
15458       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15459       # that the semantics of dynamic libraries on AmigaOS, at least up
15460       # to version 4, is to share data among multiple programs linked
15461       # with the same dynamic library.  Since this doesn't match the
15462       # behavior of shared libraries on other platforms, we can't use
15463       # them.
15464       ld_shlibs=no
15465       ;;
15466
15467     beos*)
15468       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469         allow_undefined_flag=unsupported
15470         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15471         # support --undefined.  This deserves some investigation.  FIXME
15472         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473       else
15474         ld_shlibs=no
15475       fi
15476       ;;
15477
15478     cygwin* | mingw* | pw32*)
15479       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15480       # as there is no search path for DLLs.
15481       hardcode_libdir_flag_spec='-L$libdir'
15482       allow_undefined_flag=unsupported
15483       always_export_symbols=no
15484       enable_shared_with_static_runtimes=yes
15485       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15486
15487       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15488         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15489         # If the export-symbols file already is a .def file (1st line
15490         # is EXPORTS), use it as is; otherwise, prepend...
15491         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15492           cp $export_symbols $output_objdir/$soname.def;
15493         else
15494           echo EXPORTS > $output_objdir/$soname.def;
15495           cat $export_symbols >> $output_objdir/$soname.def;
15496         fi~
15497         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15498       else
15499         ld_shlibs=no
15500       fi
15501       ;;
15502
15503     interix3*)
15504       hardcode_direct=no
15505       hardcode_shlibpath_var=no
15506       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15507       export_dynamic_flag_spec='${wl}-E'
15508       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15509       # Instead, shared libraries are loaded at an image base (0x10000000 by
15510       # default) and relocated if they conflict, which is a slow very memory
15511       # consuming and fragmenting process.  To avoid this, we pick a random,
15512       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15513       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15514       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15515       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'
15516       ;;
15517
15518     linux*)
15519       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15520         tmp_addflag=
15521         case $cc_basename,$host_cpu in
15522         pgcc*)                          # Portland Group C compiler
15523           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'
15524           tmp_addflag=' $pic_flag'
15525           ;;
15526         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15527           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'
15528           tmp_addflag=' $pic_flag -Mnomain' ;;
15529         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15530           tmp_addflag=' -i_dynamic' ;;
15531         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15532           tmp_addflag=' -i_dynamic -nofor_main' ;;
15533         ifc* | ifort*)                  # Intel Fortran compiler
15534           tmp_addflag=' -nofor_main' ;;
15535         esac
15536         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537
15538         if test $supports_anon_versioning = yes; then
15539           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15540   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15541   $echo "local: *; };" >> $output_objdir/$libname.ver~
15542           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15543         fi
15544       else
15545         ld_shlibs=no
15546       fi
15547       ;;
15548
15549     netbsd*)
15550       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15552         wlarc=
15553       else
15554         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15555         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15556       fi
15557       ;;
15558
15559     solaris*)
15560       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15561         ld_shlibs=no
15562         cat <<EOF 1>&2
15563
15564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15565 *** create shared libraries on Solaris systems.  Therefore, libtool
15566 *** is disabling shared libraries support.  We urge you to upgrade GNU
15567 *** binutils to release 2.9.1 or newer.  Another option is to modify
15568 *** your PATH or compiler configuration so that the native linker is
15569 *** used, and then restart.
15570
15571 EOF
15572       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15573         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15575       else
15576         ld_shlibs=no
15577       fi
15578       ;;
15579
15580     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15581       case `$LD -v 2>&1` in
15582         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15583         ld_shlibs=no
15584         cat <<_LT_EOF 1>&2
15585
15586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15587 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15588 *** is disabling shared libraries support.  We urge you to upgrade GNU
15589 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15590 *** your PATH or compiler configuration so that the native linker is
15591 *** used, and then restart.
15592
15593 _LT_EOF
15594         ;;
15595         *)
15596           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15597             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15598             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15599             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15600           else
15601             ld_shlibs=no
15602           fi
15603         ;;
15604       esac
15605       ;;
15606
15607     sunos4*)
15608       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15609       wlarc=
15610       hardcode_direct=yes
15611       hardcode_shlibpath_var=no
15612       ;;
15613
15614     *)
15615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15616         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15617         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15618       else
15619         ld_shlibs=no
15620       fi
15621       ;;
15622     esac
15623
15624     if test "$ld_shlibs" = no; then
15625       runpath_var=
15626       hardcode_libdir_flag_spec=
15627       export_dynamic_flag_spec=
15628       whole_archive_flag_spec=
15629     fi
15630   else
15631     # PORTME fill in a description of your system's linker (not GNU ld)
15632     case $host_os in
15633     aix3*)
15634       allow_undefined_flag=unsupported
15635       always_export_symbols=yes
15636       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'
15637       # Note: this linker hardcodes the directories in LIBPATH if there
15638       # are no directories specified by -L.
15639       hardcode_minus_L=yes
15640       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15641         # Neither direct hardcoding nor static linking is supported with a
15642         # broken collect2.
15643         hardcode_direct=unsupported
15644       fi
15645       ;;
15646
15647     aix4* | aix5*)
15648       if test "$host_cpu" = ia64; then
15649         # On IA64, the linker does run time linking by default, so we don't
15650         # have to do anything special.
15651         aix_use_runtimelinking=no
15652         exp_sym_flag='-Bexport'
15653         no_entry_flag=""
15654       else
15655         # If we're using GNU nm, then we don't want the "-C" option.
15656         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15657         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15658           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'
15659         else
15660           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'
15661         fi
15662         aix_use_runtimelinking=no
15663
15664         # Test if we are trying to use run time linking or normal
15665         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15666         # need to do runtime linking.
15667         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15668           for ld_flag in $LDFLAGS; do
15669           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15670             aix_use_runtimelinking=yes
15671             break
15672           fi
15673           done
15674           ;;
15675         esac
15676
15677         exp_sym_flag='-bexport'
15678         no_entry_flag='-bnoentry'
15679       fi
15680
15681       # When large executables or shared objects are built, AIX ld can
15682       # have problems creating the table of contents.  If linking a library
15683       # or program results in "error TOC overflow" add -mminimal-toc to
15684       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15685       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15686
15687       archive_cmds=''
15688       hardcode_direct=yes
15689       hardcode_libdir_separator=':'
15690       link_all_deplibs=yes
15691
15692       if test "$GCC" = yes; then
15693         case $host_os in aix4.[012]|aix4.[012].*)
15694         # We only want to do this on AIX 4.2 and lower, the check
15695         # below for broken collect2 doesn't work under 4.3+
15696           collect2name=`${CC} -print-prog-name=collect2`
15697           if test -f "$collect2name" && \
15698            strings "$collect2name" | grep resolve_lib_name >/dev/null
15699           then
15700           # We have reworked collect2
15701           hardcode_direct=yes
15702           else
15703           # We have old collect2
15704           hardcode_direct=unsupported
15705           # It fails to find uninstalled libraries when the uninstalled
15706           # path is not listed in the libpath.  Setting hardcode_minus_L
15707           # to unsupported forces relinking
15708           hardcode_minus_L=yes
15709           hardcode_libdir_flag_spec='-L$libdir'
15710           hardcode_libdir_separator=
15711           fi
15712           ;;
15713         esac
15714         shared_flag='-shared'
15715         if test "$aix_use_runtimelinking" = yes; then
15716           shared_flag="$shared_flag "'${wl}-G'
15717         fi
15718       else
15719         # not using gcc
15720         if test "$host_cpu" = ia64; then
15721         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15722         # chokes on -Wl,-G. The following line is correct:
15723           shared_flag='-G'
15724         else
15725           if test "$aix_use_runtimelinking" = yes; then
15726             shared_flag='${wl}-G'
15727           else
15728             shared_flag='${wl}-bM:SRE'
15729           fi
15730         fi
15731       fi
15732
15733       # It seems that -bexpall does not export symbols beginning with
15734       # underscore (_), so it is better to generate a list of symbols to export.
15735       always_export_symbols=yes
15736       if test "$aix_use_runtimelinking" = yes; then
15737         # Warning - without using the other runtime loading flags (-brtl),
15738         # -berok will link without error, but may produce a broken library.
15739         allow_undefined_flag='-berok'
15740        # Determine the default libpath from the value encoded in an empty executable.
15741        cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h.  */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h.  */
15747
15748 int
15749 main ()
15750 {
15751
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (ac_try="$ac_link"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_link") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771   { (case "(($ac_try" in
15772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773   *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776   (eval "$ac_try") 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; } &&
15780          { ac_try='test -s conftest$ac_exeext'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790
15791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15792 }'`
15793 # Check for a 64-bit object if we didn't find anything.
15794 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; }
15795 }'`; fi
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800
15801 fi
15802
15803 rm -f core conftest.err conftest.$ac_objext \
15804       conftest$ac_exeext conftest.$ac_ext
15805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15806
15807        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15808         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"
15809        else
15810         if test "$host_cpu" = ia64; then
15811           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15812           allow_undefined_flag="-z nodefs"
15813           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"
15814         else
15815          # Determine the default libpath from the value encoded in an empty executable.
15816          cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822
15823 int
15824 main ()
15825 {
15826
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (ac_try="$ac_link"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_link") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest$ac_exeext'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865
15866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15867 }'`
15868 # Check for a 64-bit object if we didn't find anything.
15869 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; }
15870 }'`; fi
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875
15876 fi
15877
15878 rm -f core conftest.err conftest.$ac_objext \
15879       conftest$ac_exeext conftest.$ac_ext
15880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15881
15882          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15883           # Warning - without using the other run time loading flags,
15884           # -berok will link without error, but may produce a broken library.
15885           no_undefined_flag=' ${wl}-bernotok'
15886           allow_undefined_flag=' ${wl}-berok'
15887           # Exported symbols can be pulled into shared objects from archives
15888           whole_archive_flag_spec='$convenience'
15889           archive_cmds_need_lc=yes
15890           # This is similar to how AIX traditionally builds its shared libraries.
15891           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'
15892         fi
15893       fi
15894       ;;
15895
15896     amigaos*)
15897       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)'
15898       hardcode_libdir_flag_spec='-L$libdir'
15899       hardcode_minus_L=yes
15900       # see comment about different semantics on the GNU ld section
15901       ld_shlibs=no
15902       ;;
15903
15904     bsdi[45]*)
15905       export_dynamic_flag_spec=-rdynamic
15906       ;;
15907
15908     cygwin* | mingw* | pw32*)
15909       # When not using gcc, we currently assume that we are using
15910       # Microsoft Visual C++.
15911       # hardcode_libdir_flag_spec is actually meaningless, as there is
15912       # no search path for DLLs.
15913       hardcode_libdir_flag_spec=' '
15914       allow_undefined_flag=unsupported
15915       # Tell ltmain to make .lib files, not .a files.
15916       libext=lib
15917       # Tell ltmain to make .dll files, not .so files.
15918       shrext_cmds=".dll"
15919       # FIXME: Setting linknames here is a bad hack.
15920       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15921       # The linker will automatically build a .lib file if we build a DLL.
15922       old_archive_From_new_cmds='true'
15923       # FIXME: Should let the user specify the lib program.
15924       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15925       fix_srcfile_path='`cygpath -w "$srcfile"`'
15926       enable_shared_with_static_runtimes=yes
15927       ;;
15928
15929     darwin* | rhapsody*)
15930       case $host_os in
15931         rhapsody* | darwin1.[012])
15932          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15933          ;;
15934        *) # Darwin 1.3 on
15935          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15936            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15937          else
15938            case ${MACOSX_DEPLOYMENT_TARGET} in
15939              10.[012])
15940                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15941                ;;
15942              10.*)
15943                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15944                ;;
15945            esac
15946          fi
15947          ;;
15948       esac
15949       archive_cmds_need_lc=no
15950       hardcode_direct=no
15951       hardcode_automatic=yes
15952       hardcode_shlibpath_var=unsupported
15953       whole_archive_flag_spec=''
15954       link_all_deplibs=yes
15955     if test "$GCC" = yes ; then
15956         output_verbose_link_cmd='echo'
15957         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15958       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15959       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15960       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}'
15961       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}'
15962     else
15963       case $cc_basename in
15964         xlc*)
15965          output_verbose_link_cmd='echo'
15966          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15967          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15968           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15969          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}'
15970           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}'
15971           ;;
15972        *)
15973          ld_shlibs=no
15974           ;;
15975       esac
15976     fi
15977       ;;
15978
15979     dgux*)
15980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15981       hardcode_libdir_flag_spec='-L$libdir'
15982       hardcode_shlibpath_var=no
15983       ;;
15984
15985     freebsd1*)
15986       ld_shlibs=no
15987       ;;
15988
15989     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15990     # support.  Future versions do this automatically, but an explicit c++rt0.o
15991     # does not break anything, and helps significantly (at the cost of a little
15992     # extra space).
15993     freebsd2.2*)
15994       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15995       hardcode_libdir_flag_spec='-R$libdir'
15996       hardcode_direct=yes
15997       hardcode_shlibpath_var=no
15998       ;;
15999
16000     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16001     freebsd2*)
16002       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003       hardcode_direct=yes
16004       hardcode_minus_L=yes
16005       hardcode_shlibpath_var=no
16006       ;;
16007
16008     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16009     freebsd* | kfreebsd*-gnu | dragonfly*)
16010       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16011       hardcode_libdir_flag_spec='-R$libdir'
16012       hardcode_direct=yes
16013       hardcode_shlibpath_var=no
16014       ;;
16015
16016     hpux9*)
16017       if test "$GCC" = yes; then
16018         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'
16019       else
16020         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'
16021       fi
16022       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16023       hardcode_libdir_separator=:
16024       hardcode_direct=yes
16025
16026       # hardcode_minus_L: Not really in the search PATH,
16027       # but as the default location of the library.
16028       hardcode_minus_L=yes
16029       export_dynamic_flag_spec='${wl}-E'
16030       ;;
16031
16032     hpux10*)
16033       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16034         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16035       else
16036         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16037       fi
16038       if test "$with_gnu_ld" = no; then
16039         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16040         hardcode_libdir_separator=:
16041
16042         hardcode_direct=yes
16043         export_dynamic_flag_spec='${wl}-E'
16044
16045         # hardcode_minus_L: Not really in the search PATH,
16046         # but as the default location of the library.
16047         hardcode_minus_L=yes
16048       fi
16049       ;;
16050
16051     hpux11*)
16052       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16053         case $host_cpu in
16054         hppa*64*)
16055           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056           ;;
16057         ia64*)
16058           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16059           ;;
16060         *)
16061           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16062           ;;
16063         esac
16064       else
16065         case $host_cpu in
16066         hppa*64*)
16067           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16068           ;;
16069         ia64*)
16070           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16071           ;;
16072         *)
16073           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16074           ;;
16075         esac
16076       fi
16077       if test "$with_gnu_ld" = no; then
16078         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16079         hardcode_libdir_separator=:
16080
16081         case $host_cpu in
16082         hppa*64*|ia64*)
16083           hardcode_libdir_flag_spec_ld='+b $libdir'
16084           hardcode_direct=no
16085           hardcode_shlibpath_var=no
16086           ;;
16087         *)
16088           hardcode_direct=yes
16089           export_dynamic_flag_spec='${wl}-E'
16090
16091           # hardcode_minus_L: Not really in the search PATH,
16092           # but as the default location of the library.
16093           hardcode_minus_L=yes
16094           ;;
16095         esac
16096       fi
16097       ;;
16098
16099     irix5* | irix6* | nonstopux*)
16100       if test "$GCC" = yes; then
16101         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'
16102       else
16103         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'
16104         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16105       fi
16106       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16107       hardcode_libdir_separator=:
16108       link_all_deplibs=yes
16109       ;;
16110
16111     netbsd*)
16112       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16114       else
16115         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16116       fi
16117       hardcode_libdir_flag_spec='-R$libdir'
16118       hardcode_direct=yes
16119       hardcode_shlibpath_var=no
16120       ;;
16121
16122     newsos6)
16123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124       hardcode_direct=yes
16125       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16126       hardcode_libdir_separator=:
16127       hardcode_shlibpath_var=no
16128       ;;
16129
16130     openbsd*)
16131       hardcode_direct=yes
16132       hardcode_shlibpath_var=no
16133       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16134         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16135         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16136         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16137         export_dynamic_flag_spec='${wl}-E'
16138       else
16139        case $host_os in
16140          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16141            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142            hardcode_libdir_flag_spec='-R$libdir'
16143            ;;
16144          *)
16145            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16147            ;;
16148        esac
16149       fi
16150       ;;
16151
16152     os2*)
16153       hardcode_libdir_flag_spec='-L$libdir'
16154       hardcode_minus_L=yes
16155       allow_undefined_flag=unsupported
16156       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'
16157       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16158       ;;
16159
16160     osf3*)
16161       if test "$GCC" = yes; then
16162         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16163         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'
16164       else
16165         allow_undefined_flag=' -expect_unresolved \*'
16166         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'
16167       fi
16168       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16169       hardcode_libdir_separator=:
16170       ;;
16171
16172     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16173       if test "$GCC" = yes; then
16174         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16175         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'
16176         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16177       else
16178         allow_undefined_flag=' -expect_unresolved \*'
16179         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'
16180         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16181         $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'
16182
16183         # Both c and cxx compiler support -rpath directly
16184         hardcode_libdir_flag_spec='-rpath $libdir'
16185       fi
16186       hardcode_libdir_separator=:
16187       ;;
16188
16189     solaris*)
16190       no_undefined_flag=' -z text'
16191       if test "$GCC" = yes; then
16192         wlarc='${wl}'
16193         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16196       else
16197         wlarc=''
16198         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16200         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16201       fi
16202       hardcode_libdir_flag_spec='-R$libdir'
16203       hardcode_shlibpath_var=no
16204       case $host_os in
16205       solaris2.[0-5] | solaris2.[0-5].*) ;;
16206       *)
16207         # The compiler driver will combine linker options so we
16208         # cannot just pass the convience library names through
16209         # without $wl, iff we do not link with $LD.
16210         # Luckily, gcc supports the same syntax we need for Sun Studio.
16211         # Supported since Solaris 2.6 (maybe 2.5.1?)
16212         case $wlarc in
16213         '')
16214           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16215         *)
16216           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' ;;
16217         esac ;;
16218       esac
16219       link_all_deplibs=yes
16220       ;;
16221
16222     sunos4*)
16223       if test "x$host_vendor" = xsequent; then
16224         # Use $CC to link under sequent, because it throws in some extra .o
16225         # files that make .init and .fini sections work.
16226         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16227       else
16228         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16229       fi
16230       hardcode_libdir_flag_spec='-L$libdir'
16231       hardcode_direct=yes
16232       hardcode_minus_L=yes
16233       hardcode_shlibpath_var=no
16234       ;;
16235
16236     sysv4)
16237       case $host_vendor in
16238         sni)
16239           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240           hardcode_direct=yes # is this really true???
16241         ;;
16242         siemens)
16243           ## LD is ld it makes a PLAMLIB
16244           ## CC just makes a GrossModule.
16245           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16246           reload_cmds='$CC -r -o $output$reload_objs'
16247           hardcode_direct=no
16248         ;;
16249         motorola)
16250           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16252         ;;
16253       esac
16254       runpath_var='LD_RUN_PATH'
16255       hardcode_shlibpath_var=no
16256       ;;
16257
16258     sysv4.3*)
16259       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16260       hardcode_shlibpath_var=no
16261       export_dynamic_flag_spec='-Bexport'
16262       ;;
16263
16264     sysv4*MP*)
16265       if test -d /usr/nec; then
16266         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267         hardcode_shlibpath_var=no
16268         runpath_var=LD_RUN_PATH
16269         hardcode_runpath_var=yes
16270         ld_shlibs=yes
16271       fi
16272       ;;
16273
16274     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16275       no_undefined_flag='${wl}-z,text'
16276       archive_cmds_need_lc=no
16277       hardcode_shlibpath_var=no
16278       runpath_var='LD_RUN_PATH'
16279
16280       if test "$GCC" = yes; then
16281         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16283       else
16284         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16286       fi
16287       ;;
16288
16289     sysv5* | sco3.2v5* | sco5v6*)
16290       # Note: We can NOT use -z defs as we might desire, because we do not
16291       # link with -lc, and that would cause any symbols used from libc to
16292       # always be unresolved, which means just about no library would
16293       # ever link correctly.  If we're not using GNU ld we use -z text
16294       # though, which does catch some bad symbols but isn't as heavy-handed
16295       # as -z defs.
16296       no_undefined_flag='${wl}-z,text'
16297       allow_undefined_flag='${wl}-z,nodefs'
16298       archive_cmds_need_lc=no
16299       hardcode_shlibpath_var=no
16300       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16301       hardcode_libdir_separator=':'
16302       link_all_deplibs=yes
16303       export_dynamic_flag_spec='${wl}-Bexport'
16304       runpath_var='LD_RUN_PATH'
16305
16306       if test "$GCC" = yes; then
16307         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16309       else
16310         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16311         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16312       fi
16313       ;;
16314
16315     uts4*)
16316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317       hardcode_libdir_flag_spec='-L$libdir'
16318       hardcode_shlibpath_var=no
16319       ;;
16320
16321     *)
16322       ld_shlibs=no
16323       ;;
16324     esac
16325   fi
16326
16327 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16328 echo "${ECHO_T}$ld_shlibs" >&6; }
16329 test "$ld_shlibs" = no && can_build_shared=no
16330
16331 #
16332 # Do we need to explicitly link libc?
16333 #
16334 case "x$archive_cmds_need_lc" in
16335 x|xyes)
16336   # Assume -lc should be added
16337   archive_cmds_need_lc=yes
16338
16339   if test "$enable_shared" = yes && test "$GCC" = yes; then
16340     case $archive_cmds in
16341     *'~'*)
16342       # FIXME: we may have to deal with multi-command sequences.
16343       ;;
16344     '$CC '*)
16345       # Test whether the compiler implicitly links with -lc since on some
16346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16347       # to ld, don't add -lc before -lgcc.
16348       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16350       $rm conftest*
16351       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16352
16353       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16354   (eval $ac_compile) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } 2>conftest.err; then
16358         soname=conftest
16359         lib=conftest
16360         libobjs=conftest.$ac_objext
16361         deplibs=
16362         wl=$lt_prog_compiler_wl
16363         pic_flag=$lt_prog_compiler_pic
16364         compiler_flags=-v
16365         linker_flags=-v
16366         verstring=
16367         output_objdir=.
16368         libname=conftest
16369         lt_save_allow_undefined_flag=$allow_undefined_flag
16370         allow_undefined_flag=
16371         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16372   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16373   ac_status=$?
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); }
16376         then
16377           archive_cmds_need_lc=no
16378         else
16379           archive_cmds_need_lc=yes
16380         fi
16381         allow_undefined_flag=$lt_save_allow_undefined_flag
16382       else
16383         cat conftest.err 1>&5
16384       fi
16385       $rm conftest*
16386       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16387 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16388       ;;
16389     esac
16390   fi
16391   ;;
16392 esac
16393
16394 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16395 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16396 library_names_spec=
16397 libname_spec='lib$name'
16398 soname_spec=
16399 shrext_cmds=".so"
16400 postinstall_cmds=
16401 postuninstall_cmds=
16402 finish_cmds=
16403 finish_eval=
16404 shlibpath_var=
16405 shlibpath_overrides_runpath=unknown
16406 version_type=none
16407 dynamic_linker="$host_os ld.so"
16408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16409 if test "$GCC" = yes; then
16410   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16411   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16412     # if the path contains ";" then we assume it to be the separator
16413     # otherwise default to the standard path separator (i.e. ":") - it is
16414     # assumed that no part of a normal pathname contains ";" but that should
16415     # okay in the real world where ";" in dirpaths is itself problematic.
16416     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16417   else
16418     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16419   fi
16420 else
16421   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16422 fi
16423 need_lib_prefix=unknown
16424 hardcode_into_libs=no
16425
16426 # when you set need_version to no, make sure it does not cause -set_version
16427 # flags to be left without arguments
16428 need_version=unknown
16429
16430 case $host_os in
16431 aix3*)
16432   version_type=linux
16433   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16434   shlibpath_var=LIBPATH
16435
16436   # AIX 3 has no versioning support, so we append a major version to the name.
16437   soname_spec='${libname}${release}${shared_ext}$major'
16438   ;;
16439
16440 aix4* | aix5*)
16441   version_type=linux
16442   need_lib_prefix=no
16443   need_version=no
16444   hardcode_into_libs=yes
16445   if test "$host_cpu" = ia64; then
16446     # AIX 5 supports IA64
16447     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16448     shlibpath_var=LD_LIBRARY_PATH
16449   else
16450     # With GCC up to 2.95.x, collect2 would create an import file
16451     # for dependence libraries.  The import file would start with
16452     # the line `#! .'.  This would cause the generated library to
16453     # depend on `.', always an invalid library.  This was fixed in
16454     # development snapshots of GCC prior to 3.0.
16455     case $host_os in
16456       aix4 | aix4.[01] | aix4.[01].*)
16457       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16458            echo ' yes '
16459            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16460         :
16461       else
16462         can_build_shared=no
16463       fi
16464       ;;
16465     esac
16466     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16467     # soname into executable. Probably we can add versioning support to
16468     # collect2, so additional links can be useful in future.
16469     if test "$aix_use_runtimelinking" = yes; then
16470       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16471       # instead of lib<name>.a to let people know that these are not
16472       # typical AIX shared libraries.
16473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474     else
16475       # We preserve .a as extension for shared libraries through AIX4.2
16476       # and later when we are not doing run time linking.
16477       library_names_spec='${libname}${release}.a $libname.a'
16478       soname_spec='${libname}${release}${shared_ext}$major'
16479     fi
16480     shlibpath_var=LIBPATH
16481   fi
16482   ;;
16483
16484 amigaos*)
16485   library_names_spec='$libname.ixlibrary $libname.a'
16486   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16487   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'
16488   ;;
16489
16490 beos*)
16491   library_names_spec='${libname}${shared_ext}'
16492   dynamic_linker="$host_os ld.so"
16493   shlibpath_var=LIBRARY_PATH
16494   ;;
16495
16496 bsdi[45]*)
16497   version_type=linux
16498   need_version=no
16499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500   soname_spec='${libname}${release}${shared_ext}$major'
16501   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16502   shlibpath_var=LD_LIBRARY_PATH
16503   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16504   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16505   # the default ld.so.conf also contains /usr/contrib/lib and
16506   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16507   # libtool to hard-code these into programs
16508   ;;
16509
16510 cygwin* | mingw* | pw32*)
16511   version_type=windows
16512   shrext_cmds=".dll"
16513   need_version=no
16514   need_lib_prefix=no
16515
16516   case $GCC,$host_os in
16517   yes,cygwin* | yes,mingw* | yes,pw32*)
16518     library_names_spec='$libname.dll.a'
16519     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16520     postinstall_cmds='base_file=`basename \${file}`~
16521       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16522       dldir=$destdir/`dirname \$dlpath`~
16523       test -d \$dldir || mkdir -p \$dldir~
16524       $install_prog $dir/$dlname \$dldir/$dlname~
16525       chmod a+x \$dldir/$dlname'
16526     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527       dlpath=$dir/\$dldll~
16528        $rm \$dlpath'
16529     shlibpath_overrides_runpath=yes
16530
16531     case $host_os in
16532     cygwin*)
16533       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16536       ;;
16537     mingw*)
16538       # MinGW DLLs use traditional 'lib' prefix
16539       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542         # It is most probably a Windows format PATH printed by
16543         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544         # path with ; separators, and with drive letters. We can handle the
16545         # drive letters (cygwin fileutils understands them), so leave them,
16546         # especially as we might pass files found there to a mingw objdump,
16547         # which wouldn't understand a cygwinified path. Ahh.
16548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16549       else
16550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16551       fi
16552       ;;
16553     pw32*)
16554       # pw32 DLLs use 'pw' prefix rather than 'lib'
16555       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16556       ;;
16557     esac
16558     ;;
16559
16560   *)
16561     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16562     ;;
16563   esac
16564   dynamic_linker='Win32 ld.exe'
16565   # FIXME: first we should search . and the directory the executable is in
16566   shlibpath_var=PATH
16567   ;;
16568
16569 darwin* | rhapsody*)
16570   dynamic_linker="$host_os dyld"
16571   version_type=darwin
16572   need_lib_prefix=no
16573   need_version=no
16574   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16575   soname_spec='${libname}${release}${major}$shared_ext'
16576   shlibpath_overrides_runpath=yes
16577   shlibpath_var=DYLD_LIBRARY_PATH
16578   shrext_cmds='.dylib'
16579   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16580   if test "$GCC" = yes; then
16581     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"`
16582   else
16583     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16584   fi
16585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16586   ;;
16587
16588 dgux*)
16589   version_type=linux
16590   need_lib_prefix=no
16591   need_version=no
16592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593   soname_spec='${libname}${release}${shared_ext}$major'
16594   shlibpath_var=LD_LIBRARY_PATH
16595   ;;
16596
16597 freebsd1*)
16598   dynamic_linker=no
16599   ;;
16600
16601 kfreebsd*-gnu)
16602   version_type=linux
16603   need_lib_prefix=no
16604   need_version=no
16605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606   soname_spec='${libname}${release}${shared_ext}$major'
16607   shlibpath_var=LD_LIBRARY_PATH
16608   shlibpath_overrides_runpath=no
16609   hardcode_into_libs=yes
16610   dynamic_linker='GNU ld.so'
16611   ;;
16612
16613 freebsd* | dragonfly*)
16614   # DragonFly does not have aout.  When/if they implement a new
16615   # versioning mechanism, adjust this.
16616   if test -x /usr/bin/objformat; then
16617     objformat=`/usr/bin/objformat`
16618   else
16619     case $host_os in
16620     freebsd[123]*) objformat=aout ;;
16621     *) objformat=elf ;;
16622     esac
16623   fi
16624   version_type=freebsd-$objformat
16625   case $version_type in
16626     freebsd-elf*)
16627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628       need_version=no
16629       need_lib_prefix=no
16630       ;;
16631     freebsd-*)
16632       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633       need_version=yes
16634       ;;
16635   esac
16636   shlibpath_var=LD_LIBRARY_PATH
16637   case $host_os in
16638   freebsd2*)
16639     shlibpath_overrides_runpath=yes
16640     ;;
16641   freebsd3.[01]* | freebsdelf3.[01]*)
16642     shlibpath_overrides_runpath=yes
16643     hardcode_into_libs=yes
16644     ;;
16645   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16646   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16647     shlibpath_overrides_runpath=no
16648     hardcode_into_libs=yes
16649     ;;
16650   freebsd*) # from 4.6 on
16651     shlibpath_overrides_runpath=yes
16652     hardcode_into_libs=yes
16653     ;;
16654   esac
16655   ;;
16656
16657 gnu*)
16658   version_type=linux
16659   need_lib_prefix=no
16660   need_version=no
16661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16662   soname_spec='${libname}${release}${shared_ext}$major'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   hardcode_into_libs=yes
16665   ;;
16666
16667 hpux9* | hpux10* | hpux11*)
16668   # Give a soname corresponding to the major version so that dld.sl refuses to
16669   # link against other versions.
16670   version_type=sunos
16671   need_lib_prefix=no
16672   need_version=no
16673   case $host_cpu in
16674   ia64*)
16675     shrext_cmds='.so'
16676     hardcode_into_libs=yes
16677     dynamic_linker="$host_os dld.so"
16678     shlibpath_var=LD_LIBRARY_PATH
16679     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681     soname_spec='${libname}${release}${shared_ext}$major'
16682     if test "X$HPUX_IA64_MODE" = X32; then
16683       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16684     else
16685       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16686     fi
16687     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16688     ;;
16689    hppa*64*)
16690      shrext_cmds='.sl'
16691      hardcode_into_libs=yes
16692      dynamic_linker="$host_os dld.sl"
16693      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16694      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16695      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696      soname_spec='${libname}${release}${shared_ext}$major'
16697      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16698      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16699      ;;
16700    *)
16701     shrext_cmds='.sl'
16702     dynamic_linker="$host_os dld.sl"
16703     shlibpath_var=SHLIB_PATH
16704     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706     soname_spec='${libname}${release}${shared_ext}$major'
16707     ;;
16708   esac
16709   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16710   postinstall_cmds='chmod 555 $lib'
16711   ;;
16712
16713 interix3*)
16714   version_type=linux
16715   need_lib_prefix=no
16716   need_version=no
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16718   soname_spec='${libname}${release}${shared_ext}$major'
16719   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16720   shlibpath_var=LD_LIBRARY_PATH
16721   shlibpath_overrides_runpath=no
16722   hardcode_into_libs=yes
16723   ;;
16724
16725 irix5* | irix6* | nonstopux*)
16726   case $host_os in
16727     nonstopux*) version_type=nonstopux ;;
16728     *)
16729         if test "$lt_cv_prog_gnu_ld" = yes; then
16730                 version_type=linux
16731         else
16732                 version_type=irix
16733         fi ;;
16734   esac
16735   need_lib_prefix=no
16736   need_version=no
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16739   case $host_os in
16740   irix5* | nonstopux*)
16741     libsuff= shlibsuff=
16742     ;;
16743   *)
16744     case $LD in # libtool.m4 will add one of these switches to LD
16745     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16746       libsuff= shlibsuff= libmagic=32-bit;;
16747     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16748       libsuff=32 shlibsuff=N32 libmagic=N32;;
16749     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16750       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16751     *) libsuff= shlibsuff= libmagic=never-match;;
16752     esac
16753     ;;
16754   esac
16755   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16756   shlibpath_overrides_runpath=no
16757   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16758   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16759   hardcode_into_libs=yes
16760   ;;
16761
16762 # No shared lib support for Linux oldld, aout, or coff.
16763 linux*oldld* | linux*aout* | linux*coff*)
16764   dynamic_linker=no
16765   ;;
16766
16767 # This must be Linux ELF.
16768 linux*)
16769   version_type=linux
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   shlibpath_overrides_runpath=no
16777   # This implies no fast_install, which is unacceptable.
16778   # Some rework will be needed to allow for fast_install
16779   # before this can be enabled.
16780   hardcode_into_libs=yes
16781
16782   # Append ld.so.conf contents to the search path
16783   if test -f /etc/ld.so.conf; then
16784     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' ' '`
16785     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16786   fi
16787
16788   # We used to test for /lib/ld.so.1 and disable shared libraries on
16789   # powerpc, because MkLinux only supported shared libraries with the
16790   # GNU dynamic linker.  Since this was broken with cross compilers,
16791   # most powerpc-linux boxes support dynamic linking these days and
16792   # people can always --disable-shared, the test was removed, and we
16793   # assume the GNU/Linux dynamic linker is in use.
16794   dynamic_linker='GNU/Linux ld.so'
16795   ;;
16796
16797 knetbsd*-gnu)
16798   version_type=linux
16799   need_lib_prefix=no
16800   need_version=no
16801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16802   soname_spec='${libname}${release}${shared_ext}$major'
16803   shlibpath_var=LD_LIBRARY_PATH
16804   shlibpath_overrides_runpath=no
16805   hardcode_into_libs=yes
16806   dynamic_linker='GNU ld.so'
16807   ;;
16808
16809 netbsd*)
16810   version_type=sunos
16811   need_lib_prefix=no
16812   need_version=no
16813   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16815     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16816     dynamic_linker='NetBSD (a.out) ld.so'
16817   else
16818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16819     soname_spec='${libname}${release}${shared_ext}$major'
16820     dynamic_linker='NetBSD ld.elf_so'
16821   fi
16822   shlibpath_var=LD_LIBRARY_PATH
16823   shlibpath_overrides_runpath=yes
16824   hardcode_into_libs=yes
16825   ;;
16826
16827 newsos6)
16828   version_type=linux
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830   shlibpath_var=LD_LIBRARY_PATH
16831   shlibpath_overrides_runpath=yes
16832   ;;
16833
16834 nto-qnx*)
16835   version_type=linux
16836   need_lib_prefix=no
16837   need_version=no
16838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839   soname_spec='${libname}${release}${shared_ext}$major'
16840   shlibpath_var=LD_LIBRARY_PATH
16841   shlibpath_overrides_runpath=yes
16842   ;;
16843
16844 openbsd*)
16845   version_type=sunos
16846   sys_lib_dlsearch_path_spec="/usr/lib"
16847   need_lib_prefix=no
16848   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16849   case $host_os in
16850     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16851     *)                         need_version=no  ;;
16852   esac
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16855   shlibpath_var=LD_LIBRARY_PATH
16856   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16857     case $host_os in
16858       openbsd2.[89] | openbsd2.[89].*)
16859         shlibpath_overrides_runpath=no
16860         ;;
16861       *)
16862         shlibpath_overrides_runpath=yes
16863         ;;
16864       esac
16865   else
16866     shlibpath_overrides_runpath=yes
16867   fi
16868   ;;
16869
16870 os2*)
16871   libname_spec='$name'
16872   shrext_cmds=".dll"
16873   need_lib_prefix=no
16874   library_names_spec='$libname${shared_ext} $libname.a'
16875   dynamic_linker='OS/2 ld.exe'
16876   shlibpath_var=LIBPATH
16877   ;;
16878
16879 osf3* | osf4* | osf5*)
16880   version_type=osf
16881   need_lib_prefix=no
16882   need_version=no
16883   soname_spec='${libname}${release}${shared_ext}$major'
16884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885   shlibpath_var=LD_LIBRARY_PATH
16886   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16887   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16888   ;;
16889
16890 solaris*)
16891   version_type=linux
16892   need_lib_prefix=no
16893   need_version=no
16894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895   soname_spec='${libname}${release}${shared_ext}$major'
16896   shlibpath_var=LD_LIBRARY_PATH
16897   shlibpath_overrides_runpath=yes
16898   hardcode_into_libs=yes
16899   # ldd complains unless libraries are executable
16900   postinstall_cmds='chmod +x $lib'
16901   ;;
16902
16903 sunos4*)
16904   version_type=sunos
16905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16906   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16907   shlibpath_var=LD_LIBRARY_PATH
16908   shlibpath_overrides_runpath=yes
16909   if test "$with_gnu_ld" = yes; then
16910     need_lib_prefix=no
16911   fi
16912   need_version=yes
16913   ;;
16914
16915 sysv4 | sysv4.3*)
16916   version_type=linux
16917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918   soname_spec='${libname}${release}${shared_ext}$major'
16919   shlibpath_var=LD_LIBRARY_PATH
16920   case $host_vendor in
16921     sni)
16922       shlibpath_overrides_runpath=no
16923       need_lib_prefix=no
16924       export_dynamic_flag_spec='${wl}-Blargedynsym'
16925       runpath_var=LD_RUN_PATH
16926       ;;
16927     siemens)
16928       need_lib_prefix=no
16929       ;;
16930     motorola)
16931       need_lib_prefix=no
16932       need_version=no
16933       shlibpath_overrides_runpath=no
16934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16935       ;;
16936   esac
16937   ;;
16938
16939 sysv4*MP*)
16940   if test -d /usr/nec ;then
16941     version_type=linux
16942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16943     soname_spec='$libname${shared_ext}.$major'
16944     shlibpath_var=LD_LIBRARY_PATH
16945   fi
16946   ;;
16947
16948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16949   version_type=freebsd-elf
16950   need_lib_prefix=no
16951   need_version=no
16952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16953   soname_spec='${libname}${release}${shared_ext}$major'
16954   shlibpath_var=LD_LIBRARY_PATH
16955   hardcode_into_libs=yes
16956   if test "$with_gnu_ld" = yes; then
16957     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16958     shlibpath_overrides_runpath=no
16959   else
16960     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16961     shlibpath_overrides_runpath=yes
16962     case $host_os in
16963       sco3.2v5*)
16964         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16965         ;;
16966     esac
16967   fi
16968   sys_lib_dlsearch_path_spec='/usr/lib'
16969   ;;
16970
16971 uts4*)
16972   version_type=linux
16973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   shlibpath_var=LD_LIBRARY_PATH
16976   ;;
16977
16978 *)
16979   dynamic_linker=no
16980   ;;
16981 esac
16982 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16983 echo "${ECHO_T}$dynamic_linker" >&6; }
16984 test "$dynamic_linker" = no && can_build_shared=no
16985
16986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16987 if test "$GCC" = yes; then
16988   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16989 fi
16990
16991 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16993 hardcode_action=
16994 if test -n "$hardcode_libdir_flag_spec" || \
16995    test -n "$runpath_var" || \
16996    test "X$hardcode_automatic" = "Xyes" ; then
16997
16998   # We can hardcode non-existant directories.
16999   if test "$hardcode_direct" != no &&
17000      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17001      # have to relink, otherwise we might link with an installed library
17002      # when we should be linking with a yet-to-be-installed one
17003      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17004      test "$hardcode_minus_L" != no; then
17005     # Linking always hardcodes the temporary library directory.
17006     hardcode_action=relink
17007   else
17008     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17009     hardcode_action=immediate
17010   fi
17011 else
17012   # We cannot hardcode anything, or else we can only hardcode existing
17013   # directories.
17014   hardcode_action=unsupported
17015 fi
17016 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17017 echo "${ECHO_T}$hardcode_action" >&6; }
17018
17019 if test "$hardcode_action" = relink; then
17020   # Fast installation is not supported
17021   enable_fast_install=no
17022 elif test "$shlibpath_overrides_runpath" = yes ||
17023      test "$enable_shared" = no; then
17024   # Fast installation is not necessary
17025   enable_fast_install=needless
17026 fi
17027
17028 striplib=
17029 old_striplib=
17030 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17031 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17032 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17033   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17034   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17035   { echo "$as_me:$LINENO: result: yes" >&5
17036 echo "${ECHO_T}yes" >&6; }
17037 else
17038 # FIXME - insert some real tests, host_os isn't really good enough
17039   case $host_os in
17040    darwin*)
17041        if test -n "$STRIP" ; then
17042          striplib="$STRIP -x"
17043          { echo "$as_me:$LINENO: result: yes" >&5
17044 echo "${ECHO_T}yes" >&6; }
17045        else
17046   { echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6; }
17048 fi
17049        ;;
17050    *)
17051   { echo "$as_me:$LINENO: result: no" >&5
17052 echo "${ECHO_T}no" >&6; }
17053     ;;
17054   esac
17055 fi
17056
17057 if test "x$enable_dlopen" != xyes; then
17058   enable_dlopen=unknown
17059   enable_dlopen_self=unknown
17060   enable_dlopen_self_static=unknown
17061 else
17062   lt_cv_dlopen=no
17063   lt_cv_dlopen_libs=
17064
17065   case $host_os in
17066   beos*)
17067     lt_cv_dlopen="load_add_on"
17068     lt_cv_dlopen_libs=
17069     lt_cv_dlopen_self=yes
17070     ;;
17071
17072   mingw* | pw32*)
17073     lt_cv_dlopen="LoadLibrary"
17074     lt_cv_dlopen_libs=
17075    ;;
17076
17077   cygwin*)
17078     lt_cv_dlopen="dlopen"
17079     lt_cv_dlopen_libs=
17080    ;;
17081
17082   darwin*)
17083   # if libdl is installed we need to link against it
17084     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17087   echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089   ac_check_lib_save_LIBS=$LIBS
17090 LIBS="-ldl  $LIBS"
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097
17098 /* Override any GCC internal prototype to avoid an error.
17099    Use char because int might match the return type of a GCC
17100    builtin and then its argument prototype would still apply.  */
17101 #ifdef __cplusplus
17102 extern "C"
17103 #endif
17104 char dlopen ();
17105 int
17106 main ()
17107 {
17108 return dlopen ();
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_link") 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128   { (case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_try") 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest$ac_exeext'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_lib_dl_dlopen=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152         ac_cv_lib_dl_dlopen=no
17153 fi
17154
17155 rm -f core conftest.err conftest.$ac_objext \
17156       conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17158 fi
17159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17161 if test $ac_cv_lib_dl_dlopen = yes; then
17162   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17163 else
17164
17165     lt_cv_dlopen="dyld"
17166     lt_cv_dlopen_libs=
17167     lt_cv_dlopen_self=yes
17168
17169 fi
17170
17171    ;;
17172
17173   *)
17174     { echo "$as_me:$LINENO: checking for shl_load" >&5
17175 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17176 if test "${ac_cv_func_shl_load+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179   cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17187 #define shl_load innocuous_shl_load
17188
17189 /* System header to define __stub macros and hopefully few prototypes,
17190     which can conflict with char shl_load (); below.
17191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192     <limits.h> exists even on freestanding compilers.  */
17193
17194 #ifdef __STDC__
17195 # include <limits.h>
17196 #else
17197 # include <assert.h>
17198 #endif
17199
17200 #undef shl_load
17201
17202 /* Override any GCC internal prototype to avoid an error.
17203    Use char because int might match the return type of a GCC
17204    builtin and then its argument prototype would still apply.  */
17205 #ifdef __cplusplus
17206 extern "C"
17207 #endif
17208 char shl_load ();
17209 /* The GNU C library defines this for functions which it implements
17210     to always fail with ENOSYS.  Some functions are actually named
17211     something starting with __ and the normal name is an alias.  */
17212 #if defined __stub_shl_load || defined __stub___shl_load
17213 choke me
17214 #endif
17215
17216 int
17217 main ()
17218 {
17219 return shl_load ();
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_link") 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239   { (case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_try") 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } &&
17248          { ac_try='test -s conftest$ac_exeext'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_cv_func_shl_load=yes
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263         ac_cv_func_shl_load=no
17264 fi
17265
17266 rm -f core conftest.err conftest.$ac_objext \
17267       conftest$ac_exeext conftest.$ac_ext
17268 fi
17269 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17270 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17271 if test $ac_cv_func_shl_load = yes; then
17272   lt_cv_dlopen="shl_load"
17273 else
17274   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17275 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17276 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-ldld  $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h.  */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h.  */
17287
17288 /* Override any GCC internal prototype to avoid an error.
17289    Use char because int might match the return type of a GCC
17290    builtin and then its argument prototype would still apply.  */
17291 #ifdef __cplusplus
17292 extern "C"
17293 #endif
17294 char shl_load ();
17295 int
17296 main ()
17297 {
17298 return shl_load ();
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_link") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } &&
17317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; } &&
17327          { ac_try='test -s conftest$ac_exeext'
17328   { (case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_try") 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_lib_dld_shl_load=yes
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342         ac_cv_lib_dld_shl_load=no
17343 fi
17344
17345 rm -f core conftest.err conftest.$ac_objext \
17346       conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17348 fi
17349 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17350 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17351 if test $ac_cv_lib_dld_shl_load = yes; then
17352   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17353 else
17354   { echo "$as_me:$LINENO: checking for dlopen" >&5
17355 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17356 if test "${ac_cv_func_dlopen+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17367 #define dlopen innocuous_dlopen
17368
17369 /* System header to define __stub macros and hopefully few prototypes,
17370     which can conflict with char dlopen (); below.
17371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372     <limits.h> exists even on freestanding compilers.  */
17373
17374 #ifdef __STDC__
17375 # include <limits.h>
17376 #else
17377 # include <assert.h>
17378 #endif
17379
17380 #undef dlopen
17381
17382 /* Override any GCC internal prototype to avoid an error.
17383    Use char because int might match the return type of a GCC
17384    builtin and then its argument prototype would still apply.  */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 char dlopen ();
17389 /* The GNU C library defines this for functions which it implements
17390     to always fail with ENOSYS.  Some functions are actually named
17391     something starting with __ and the normal name is an alias.  */
17392 #if defined __stub_dlopen || defined __stub___dlopen
17393 choke me
17394 #endif
17395
17396 int
17397 main ()
17398 {
17399 return dlopen ();
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_link") 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419   { (case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_try") 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest$ac_exeext'
17429   { (case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_try") 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438   ac_cv_func_dlopen=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         ac_cv_func_dlopen=no
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext \
17447       conftest$ac_exeext conftest.$ac_ext
17448 fi
17449 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17451 if test $ac_cv_func_dlopen = yes; then
17452   lt_cv_dlopen="dlopen"
17453 else
17454   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17457   echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459   ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-ldl  $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h.  */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h.  */
17467
17468 /* Override any GCC internal prototype to avoid an error.
17469    Use char because int might match the return type of a GCC
17470    builtin and then its argument prototype would still apply.  */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 char dlopen ();
17475 int
17476 main ()
17477 {
17478 return dlopen ();
17479   ;
17480   return 0;
17481 }
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487   *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490   (eval "$ac_link") 2>conftest.er1
17491   ac_status=$?
17492   grep -v '^ *+' conftest.er1 >conftest.err
17493   rm -f conftest.er1
17494   cat conftest.err >&5
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } &&
17497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498   { (case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_try") 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; } &&
17507          { ac_try='test -s conftest$ac_exeext'
17508   { (case "(($ac_try" in
17509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510   *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513   (eval "$ac_try") 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_cv_lib_dl_dlopen=yes
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522         ac_cv_lib_dl_dlopen=no
17523 fi
17524
17525 rm -f core conftest.err conftest.$ac_objext \
17526       conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17528 fi
17529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17531 if test $ac_cv_lib_dl_dlopen = yes; then
17532   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17533 else
17534   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17537   echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539   ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lsvld  $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547
17548 /* Override any GCC internal prototype to avoid an error.
17549    Use char because int might match the return type of a GCC
17550    builtin and then its argument prototype would still apply.  */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char dlopen ();
17555 int
17556 main ()
17557 {
17558 return dlopen ();
17559   ;
17560   return 0;
17561 }
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567   *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570   (eval "$ac_link") 2>conftest.er1
17571   ac_status=$?
17572   grep -v '^ *+' conftest.er1 >conftest.err
17573   rm -f conftest.er1
17574   cat conftest.err >&5
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); } &&
17577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578   { (case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_try") 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; } &&
17587          { ac_try='test -s conftest$ac_exeext'
17588   { (case "(($ac_try" in
17589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590   *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593   (eval "$ac_try") 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597   ac_cv_lib_svld_dlopen=yes
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602         ac_cv_lib_svld_dlopen=no
17603 fi
17604
17605 rm -f core conftest.err conftest.$ac_objext \
17606       conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17608 fi
17609 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17611 if test $ac_cv_lib_svld_dlopen = yes; then
17612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17613 else
17614   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17617   echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619   ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-ldld  $LIBS"
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627
17628 /* Override any GCC internal prototype to avoid an error.
17629    Use char because int might match the return type of a GCC
17630    builtin and then its argument prototype would still apply.  */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char dld_link ();
17635 int
17636 main ()
17637 {
17638 return dld_link ();
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_link") 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658   { (case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_try") 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; } &&
17667          { ac_try='test -s conftest$ac_exeext'
17668   { (case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_try") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   ac_cv_lib_dld_dld_link=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682         ac_cv_lib_dld_dld_link=no
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17688 fi
17689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17691 if test $ac_cv_lib_dld_dld_link = yes; then
17692   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17693 fi
17694
17695
17696 fi
17697
17698
17699 fi
17700
17701
17702 fi
17703
17704
17705 fi
17706
17707
17708 fi
17709
17710     ;;
17711   esac
17712
17713   if test "x$lt_cv_dlopen" != xno; then
17714     enable_dlopen=yes
17715   else
17716     enable_dlopen=no
17717   fi
17718
17719   case $lt_cv_dlopen in
17720   dlopen)
17721     save_CPPFLAGS="$CPPFLAGS"
17722     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17723
17724     save_LDFLAGS="$LDFLAGS"
17725     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17726
17727     save_LIBS="$LIBS"
17728     LIBS="$lt_cv_dlopen_libs $LIBS"
17729
17730     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17732 if test "${lt_cv_dlopen_self+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735           if test "$cross_compiling" = yes; then :
17736   lt_cv_dlopen_self=cross
17737 else
17738   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17739   lt_status=$lt_dlunknown
17740   cat > conftest.$ac_ext <<EOF
17741 #line 17741 "configure"
17742 #include "confdefs.h"
17743
17744 #if HAVE_DLFCN_H
17745 #include <dlfcn.h>
17746 #endif
17747
17748 #include <stdio.h>
17749
17750 #ifdef RTLD_GLOBAL
17751 #  define LT_DLGLOBAL           RTLD_GLOBAL
17752 #else
17753 #  ifdef DL_GLOBAL
17754 #    define LT_DLGLOBAL         DL_GLOBAL
17755 #  else
17756 #    define LT_DLGLOBAL         0
17757 #  endif
17758 #endif
17759
17760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17761    find out it does not work in some platform. */
17762 #ifndef LT_DLLAZY_OR_NOW
17763 #  ifdef RTLD_LAZY
17764 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17765 #  else
17766 #    ifdef DL_LAZY
17767 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17768 #    else
17769 #      ifdef RTLD_NOW
17770 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17771 #      else
17772 #        ifdef DL_NOW
17773 #          define LT_DLLAZY_OR_NOW      DL_NOW
17774 #        else
17775 #          define LT_DLLAZY_OR_NOW      0
17776 #        endif
17777 #      endif
17778 #    endif
17779 #  endif
17780 #endif
17781
17782 #ifdef __cplusplus
17783 extern "C" void exit (int);
17784 #endif
17785
17786 void fnord() { int i=42;}
17787 int main ()
17788 {
17789   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17790   int status = $lt_dlunknown;
17791
17792   if (self)
17793     {
17794       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17795       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17796       /* dlclose (self); */
17797     }
17798   else
17799     puts (dlerror ());
17800
17801     exit (status);
17802 }
17803 EOF
17804   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805   (eval $ac_link) 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17809     (./conftest; exit; ) >&5 2>/dev/null
17810     lt_status=$?
17811     case x$lt_status in
17812       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17813       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17814       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17815     esac
17816   else :
17817     # compilation failed
17818     lt_cv_dlopen_self=no
17819   fi
17820 fi
17821 rm -fr conftest*
17822
17823
17824 fi
17825 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17827
17828     if test "x$lt_cv_dlopen_self" = xyes; then
17829       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17830       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17832 if test "${lt_cv_dlopen_self_static+set}" = set; then
17833   echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835           if test "$cross_compiling" = yes; then :
17836   lt_cv_dlopen_self_static=cross
17837 else
17838   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17839   lt_status=$lt_dlunknown
17840   cat > conftest.$ac_ext <<EOF
17841 #line 17841 "configure"
17842 #include "confdefs.h"
17843
17844 #if HAVE_DLFCN_H
17845 #include <dlfcn.h>
17846 #endif
17847
17848 #include <stdio.h>
17849
17850 #ifdef RTLD_GLOBAL
17851 #  define LT_DLGLOBAL           RTLD_GLOBAL
17852 #else
17853 #  ifdef DL_GLOBAL
17854 #    define LT_DLGLOBAL         DL_GLOBAL
17855 #  else
17856 #    define LT_DLGLOBAL         0
17857 #  endif
17858 #endif
17859
17860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17861    find out it does not work in some platform. */
17862 #ifndef LT_DLLAZY_OR_NOW
17863 #  ifdef RTLD_LAZY
17864 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17865 #  else
17866 #    ifdef DL_LAZY
17867 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17868 #    else
17869 #      ifdef RTLD_NOW
17870 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17871 #      else
17872 #        ifdef DL_NOW
17873 #          define LT_DLLAZY_OR_NOW      DL_NOW
17874 #        else
17875 #          define LT_DLLAZY_OR_NOW      0
17876 #        endif
17877 #      endif
17878 #    endif
17879 #  endif
17880 #endif
17881
17882 #ifdef __cplusplus
17883 extern "C" void exit (int);
17884 #endif
17885
17886 void fnord() { int i=42;}
17887 int main ()
17888 {
17889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17890   int status = $lt_dlunknown;
17891
17892   if (self)
17893     {
17894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17895       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17896       /* dlclose (self); */
17897     }
17898   else
17899     puts (dlerror ());
17900
17901     exit (status);
17902 }
17903 EOF
17904   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905   (eval $ac_link) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17909     (./conftest; exit; ) >&5 2>/dev/null
17910     lt_status=$?
17911     case x$lt_status in
17912       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17913       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17914       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17915     esac
17916   else :
17917     # compilation failed
17918     lt_cv_dlopen_self_static=no
17919   fi
17920 fi
17921 rm -fr conftest*
17922
17923
17924 fi
17925 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17927     fi
17928
17929     CPPFLAGS="$save_CPPFLAGS"
17930     LDFLAGS="$save_LDFLAGS"
17931     LIBS="$save_LIBS"
17932     ;;
17933   esac
17934
17935   case $lt_cv_dlopen_self in
17936   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17937   *) enable_dlopen_self=unknown ;;
17938   esac
17939
17940   case $lt_cv_dlopen_self_static in
17941   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17942   *) enable_dlopen_self_static=unknown ;;
17943   esac
17944 fi
17945
17946
17947 # Report which library types will actually be built
17948 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17949 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17950 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17951 echo "${ECHO_T}$can_build_shared" >&6; }
17952
17953 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17954 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17955 test "$can_build_shared" = "no" && enable_shared=no
17956
17957 # On AIX, shared libraries and static libraries use the same namespace, and
17958 # are all built from PIC.
17959 case $host_os in
17960 aix3*)
17961   test "$enable_shared" = yes && enable_static=no
17962   if test -n "$RANLIB"; then
17963     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17964     postinstall_cmds='$RANLIB $lib'
17965   fi
17966   ;;
17967
17968 aix4* | aix5*)
17969   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17970     test "$enable_shared" = yes && enable_static=no
17971   fi
17972     ;;
17973 esac
17974 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17975 echo "${ECHO_T}$enable_shared" >&6; }
17976
17977 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17979 # Make sure either enable_shared or enable_static is yes.
17980 test "$enable_shared" = yes || enable_static=yes
17981 { echo "$as_me:$LINENO: result: $enable_static" >&5
17982 echo "${ECHO_T}$enable_static" >&6; }
17983
17984 # The else clause should only fire when bootstrapping the
17985 # libtool distribution, otherwise you forgot to ship ltmain.sh
17986 # with your package, and you will get complaints that there are
17987 # no rules to generate ltmain.sh.
17988 if test -f "$ltmain"; then
17989   # See if we are running on zsh, and set the options which allow our commands through
17990   # without removal of \ escapes.
17991   if test -n "${ZSH_VERSION+set}" ; then
17992     setopt NO_GLOB_SUBST
17993   fi
17994   # Now quote all the things that may contain metacharacters while being
17995   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17996   # variables and quote the copies for generation of the libtool script.
17997   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17998     SED SHELL STRIP \
17999     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18000     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18001     deplibs_check_method reload_flag reload_cmds need_locks \
18002     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18003     lt_cv_sys_global_symbol_to_c_name_address \
18004     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18005     old_postinstall_cmds old_postuninstall_cmds \
18006     compiler \
18007     CC \
18008     LD \
18009     lt_prog_compiler_wl \
18010     lt_prog_compiler_pic \
18011     lt_prog_compiler_static \
18012     lt_prog_compiler_no_builtin_flag \
18013     export_dynamic_flag_spec \
18014     thread_safe_flag_spec \
18015     whole_archive_flag_spec \
18016     enable_shared_with_static_runtimes \
18017     old_archive_cmds \
18018     old_archive_from_new_cmds \
18019     predep_objects \
18020     postdep_objects \
18021     predeps \
18022     postdeps \
18023     compiler_lib_search_path \
18024     archive_cmds \
18025     archive_expsym_cmds \
18026     postinstall_cmds \
18027     postuninstall_cmds \
18028     old_archive_from_expsyms_cmds \
18029     allow_undefined_flag \
18030     no_undefined_flag \
18031     export_symbols_cmds \
18032     hardcode_libdir_flag_spec \
18033     hardcode_libdir_flag_spec_ld \
18034     hardcode_libdir_separator \
18035     hardcode_automatic \
18036     module_cmds \
18037     module_expsym_cmds \
18038     lt_cv_prog_compiler_c_o \
18039     exclude_expsyms \
18040     include_expsyms; do
18041
18042     case $var in
18043     old_archive_cmds | \
18044     old_archive_from_new_cmds | \
18045     archive_cmds | \
18046     archive_expsym_cmds | \
18047     module_cmds | \
18048     module_expsym_cmds | \
18049     old_archive_from_expsyms_cmds | \
18050     export_symbols_cmds | \
18051     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18052     postinstall_cmds | postuninstall_cmds | \
18053     old_postinstall_cmds | old_postuninstall_cmds | \
18054     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18055       # Double-quote double-evaled strings.
18056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18057       ;;
18058     *)
18059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18060       ;;
18061     esac
18062   done
18063
18064   case $lt_echo in
18065   *'\$0 --fallback-echo"')
18066     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18067     ;;
18068   esac
18069
18070 cfgfile="${ofile}T"
18071   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18072   $rm -f "$cfgfile"
18073   { echo "$as_me:$LINENO: creating $ofile" >&5
18074 echo "$as_me: creating $ofile" >&6;}
18075
18076   cat <<__EOF__ >> "$cfgfile"
18077 #! $SHELL
18078
18079 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18080 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18082 #
18083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18084 # Free Software Foundation, Inc.
18085 #
18086 # This file is part of GNU Libtool:
18087 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18088 #
18089 # This program is free software; you can redistribute it and/or modify
18090 # it under the terms of the GNU General Public License as published by
18091 # the Free Software Foundation; either version 2 of the License, or
18092 # (at your option) any later version.
18093 #
18094 # This program is distributed in the hope that it will be useful, but
18095 # WITHOUT ANY WARRANTY; without even the implied warranty of
18096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18097 # General Public License for more details.
18098 #
18099 # You should have received a copy of the GNU General Public License
18100 # along with this program; if not, write to the Free Software
18101 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18102 #
18103 # As a special exception to the GNU General Public License, if you
18104 # distribute this file as part of a program that contains a
18105 # configuration script generated by Autoconf, you may include it under
18106 # the same distribution terms that you use for the rest of that program.
18107
18108 # A sed program that does not truncate output.
18109 SED=$lt_SED
18110
18111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18112 Xsed="$SED -e 1s/^X//"
18113
18114 # The HP-UX ksh and POSIX shell print the target directory to stdout
18115 # if CDPATH is set.
18116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18117
18118 # The names of the tagged configurations supported by this script.
18119 available_tags=
18120
18121 # ### BEGIN LIBTOOL CONFIG
18122
18123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18124
18125 # Shell to use when invoking shell scripts.
18126 SHELL=$lt_SHELL
18127
18128 # Whether or not to build shared libraries.
18129 build_libtool_libs=$enable_shared
18130
18131 # Whether or not to build static libraries.
18132 build_old_libs=$enable_static
18133
18134 # Whether or not to add -lc for building shared libraries.
18135 build_libtool_need_lc=$archive_cmds_need_lc
18136
18137 # Whether or not to disallow shared libs when runtime libs are static
18138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18139
18140 # Whether or not to optimize for fast installation.
18141 fast_install=$enable_fast_install
18142
18143 # The host system.
18144 host_alias=$host_alias
18145 host=$host
18146 host_os=$host_os
18147
18148 # The build system.
18149 build_alias=$build_alias
18150 build=$build
18151 build_os=$build_os
18152
18153 # An echo program that does not interpret backslashes.
18154 echo=$lt_echo
18155
18156 # The archiver.
18157 AR=$lt_AR
18158 AR_FLAGS=$lt_AR_FLAGS
18159
18160 # A C compiler.
18161 LTCC=$lt_LTCC
18162
18163 # LTCC compiler flags.
18164 LTCFLAGS=$lt_LTCFLAGS
18165
18166 # A language-specific compiler.
18167 CC=$lt_compiler
18168
18169 # Is the compiler the GNU C compiler?
18170 with_gcc=$GCC
18171
18172 # An ERE matcher.
18173 EGREP=$lt_EGREP
18174
18175 # The linker used to build libraries.
18176 LD=$lt_LD
18177
18178 # Whether we need hard or soft links.
18179 LN_S=$lt_LN_S
18180
18181 # A BSD-compatible nm program.
18182 NM=$lt_NM
18183
18184 # A symbol stripping program
18185 STRIP=$lt_STRIP
18186
18187 # Used to examine libraries when file_magic_cmd begins "file"
18188 MAGIC_CMD=$MAGIC_CMD
18189
18190 # Used on cygwin: DLL creation program.
18191 DLLTOOL="$DLLTOOL"
18192
18193 # Used on cygwin: object dumper.
18194 OBJDUMP="$OBJDUMP"
18195
18196 # Used on cygwin: assembler.
18197 AS="$AS"
18198
18199 # The name of the directory that contains temporary libtool files.
18200 objdir=$objdir
18201
18202 # How to create reloadable object files.
18203 reload_flag=$lt_reload_flag
18204 reload_cmds=$lt_reload_cmds
18205
18206 # How to pass a linker flag through the compiler.
18207 wl=$lt_lt_prog_compiler_wl
18208
18209 # Object file suffix (normally "o").
18210 objext="$ac_objext"
18211
18212 # Old archive suffix (normally "a").
18213 libext="$libext"
18214
18215 # Shared library suffix (normally ".so").
18216 shrext_cmds='$shrext_cmds'
18217
18218 # Executable file suffix (normally "").
18219 exeext="$exeext"
18220
18221 # Additional compiler flags for building library objects.
18222 pic_flag=$lt_lt_prog_compiler_pic
18223 pic_mode=$pic_mode
18224
18225 # What is the maximum length of a command?
18226 max_cmd_len=$lt_cv_sys_max_cmd_len
18227
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18230
18231 # Must we lock files when doing compilation?
18232 need_locks=$lt_need_locks
18233
18234 # Do we need the lib prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18236
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18239
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18242
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18245
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18248
18249 # Compiler flag to prevent dynamic linking.
18250 link_static_flag=$lt_lt_prog_compiler_static
18251
18252 # Compiler flag to turn off builtin functions.
18253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18254
18255 # Compiler flag to allow reflexive dlopens.
18256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18257
18258 # Compiler flag to generate shared objects directly from archives.
18259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18260
18261 # Compiler flag to generate thread-safe objects.
18262 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18263
18264 # Library versioning type.
18265 version_type=$version_type
18266
18267 # Format of library name prefix.
18268 libname_spec=$lt_libname_spec
18269
18270 # List of archive names.  First name is the real one, the rest are links.
18271 # The last name is the one that the linker finds with -lNAME.
18272 library_names_spec=$lt_library_names_spec
18273
18274 # The coded name of the library, if different from the real name.
18275 soname_spec=$lt_soname_spec
18276
18277 # Commands used to build and install an old-style archive.
18278 RANLIB=$lt_RANLIB
18279 old_archive_cmds=$lt_old_archive_cmds
18280 old_postinstall_cmds=$lt_old_postinstall_cmds
18281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18282
18283 # Create an old-style archive from a shared archive.
18284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18285
18286 # Create a temporary old-style archive to link instead of a shared archive.
18287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18288
18289 # Commands used to build and install a shared archive.
18290 archive_cmds=$lt_archive_cmds
18291 archive_expsym_cmds=$lt_archive_expsym_cmds
18292 postinstall_cmds=$lt_postinstall_cmds
18293 postuninstall_cmds=$lt_postuninstall_cmds
18294
18295 # Commands used to build a loadable module (assumed same as above if empty)
18296 module_cmds=$lt_module_cmds
18297 module_expsym_cmds=$lt_module_expsym_cmds
18298
18299 # Commands to strip libraries.
18300 old_striplib=$lt_old_striplib
18301 striplib=$lt_striplib
18302
18303 # Dependencies to place before the objects being linked to create a
18304 # shared library.
18305 predep_objects=$lt_predep_objects
18306
18307 # Dependencies to place after the objects being linked to create a
18308 # shared library.
18309 postdep_objects=$lt_postdep_objects
18310
18311 # Dependencies to place before the objects being linked to create a
18312 # shared library.
18313 predeps=$lt_predeps
18314
18315 # Dependencies to place after the objects being linked to create a
18316 # shared library.
18317 postdeps=$lt_postdeps
18318
18319 # The library search path used internally by the compiler when linking
18320 # a shared library.
18321 compiler_lib_search_path=$lt_compiler_lib_search_path
18322
18323 # Method to check whether dependent libraries are shared objects.
18324 deplibs_check_method=$lt_deplibs_check_method
18325
18326 # Command to use when deplibs_check_method == file_magic.
18327 file_magic_cmd=$lt_file_magic_cmd
18328
18329 # Flag that allows shared libraries with undefined symbols to be built.
18330 allow_undefined_flag=$lt_allow_undefined_flag
18331
18332 # Flag that forces no undefined symbols.
18333 no_undefined_flag=$lt_no_undefined_flag
18334
18335 # Commands used to finish a libtool library installation in a directory.
18336 finish_cmds=$lt_finish_cmds
18337
18338 # Same as above, but a single script fragment to be evaled but not shown.
18339 finish_eval=$lt_finish_eval
18340
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18343
18344 # Transform the output of nm in a proper C declaration
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18346
18347 # Transform the output of nm in a C name address pair
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18349
18350 # This is the shared library runtime path variable.
18351 runpath_var=$runpath_var
18352
18353 # This is the shared library path variable.
18354 shlibpath_var=$shlibpath_var
18355
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18358
18359 # How to hardcode a shared library path into an executable.
18360 hardcode_action=$hardcode_action
18361
18362 # Whether we should hardcode library paths into libraries.
18363 hardcode_into_libs=$hardcode_into_libs
18364
18365 # Flag to hardcode \$libdir into a binary during linking.
18366 # This must work even if \$libdir does not exist.
18367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18368
18369 # If ld is used when linking, flag to hardcode \$libdir into
18370 # a binary during linking. This must work even if \$libdir does
18371 # not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18373
18374 # Whether we need a single -rpath flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18376
18377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_direct=$hardcode_direct
18380
18381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_minus_L=$hardcode_minus_L
18384
18385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386 # the resulting binary.
18387 hardcode_shlibpath_var=$hardcode_shlibpath_var
18388
18389 # Set to yes if building a shared library automatically hardcodes DIR into the library
18390 # and all subsequent libraries and executables linked against it.
18391 hardcode_automatic=$hardcode_automatic
18392
18393 # Variables whose values should be saved in libtool wrapper scripts and
18394 # restored at relink time.
18395 variables_saved_for_relink="$variables_saved_for_relink"
18396
18397 # Whether libtool must link a program against all its dependency libraries.
18398 link_all_deplibs=$link_all_deplibs
18399
18400 # Compile-time system search path for libraries
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403 # Run-time system search path for libraries
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406 # Fix the shell variable \$srcfile for the compiler.
18407 fix_srcfile_path="$fix_srcfile_path"
18408
18409 # Set to yes if exported symbols are required.
18410 always_export_symbols=$always_export_symbols
18411
18412 # The commands to list exported symbols.
18413 export_symbols_cmds=$lt_export_symbols_cmds
18414
18415 # The commands to extract the exported symbol list from a shared archive.
18416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18417
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms
18420
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms
18423
18424 # ### END LIBTOOL CONFIG
18425
18426 __EOF__
18427
18428
18429   case $host_os in
18430   aix3*)
18431     cat <<\EOF >> "$cfgfile"
18432
18433 # AIX sometimes has problems with the GCC collect2 program.  For some
18434 # reason, if we set the COLLECT_NAMES environment variable, the problems
18435 # vanish in a puff of smoke.
18436 if test "X${COLLECT_NAMES+set}" != Xset; then
18437   COLLECT_NAMES=
18438   export COLLECT_NAMES
18439 fi
18440 EOF
18441     ;;
18442   esac
18443
18444   # We use sed instead of cat because bash on DJGPP gets confused if
18445   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18446   # text mode, it properly converts lines to CR/LF.  This bash problem
18447   # is reportedly fixed, but why not run on old versions too?
18448   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18449
18450   mv -f "$cfgfile" "$ofile" || \
18451     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18452   chmod +x "$ofile"
18453
18454 else
18455   # If there is no Makefile yet, we rely on a make rule to execute
18456   # `config.status --recheck' to rerun these tests and create the
18457   # libtool script then.
18458   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18459   if test -f "$ltmain_in"; then
18460     test -f Makefile && make "$ltmain"
18461   fi
18462 fi
18463
18464
18465 ac_ext=c
18466 ac_cpp='$CPP $CPPFLAGS'
18467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18470
18471 CC="$lt_save_CC"
18472
18473
18474 # Check whether --with-tags was given.
18475 if test "${with_tags+set}" = set; then
18476   withval=$with_tags; tagnames="$withval"
18477 fi
18478
18479
18480 if test -f "$ltmain" && test -n "$tagnames"; then
18481   if test ! -f "${ofile}"; then
18482     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18483 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18484   fi
18485
18486   if test -z "$LTCC"; then
18487     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18488     if test -z "$LTCC"; then
18489       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18490 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18491     else
18492       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18493 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18494     fi
18495   fi
18496   if test -z "$LTCFLAGS"; then
18497     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18498   fi
18499
18500   # Extract list of available tagged configurations in $ofile.
18501   # Note that this assumes the entire list is on one line.
18502   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18503
18504   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18505   for tagname in $tagnames; do
18506     IFS="$lt_save_ifs"
18507     # Check whether tagname contains only valid characters
18508     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18509     "") ;;
18510     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18511 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18512    { (exit 1); exit 1; }; }
18513         ;;
18514     esac
18515
18516     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18517     then
18518       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18519 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18520    { (exit 1); exit 1; }; }
18521     fi
18522
18523     # Update the list of available tags.
18524     if test -n "$tagname"; then
18525       echo appending configuration tag \"$tagname\" to $ofile
18526
18527       case $tagname in
18528       CXX)
18529         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18530             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18531             (test "X$CXX" != "Xg++"))) ; then
18532           ac_ext=cpp
18533 ac_cpp='$CXXCPP $CPPFLAGS'
18534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18537
18538
18539
18540
18541 archive_cmds_need_lc_CXX=no
18542 allow_undefined_flag_CXX=
18543 always_export_symbols_CXX=no
18544 archive_expsym_cmds_CXX=
18545 export_dynamic_flag_spec_CXX=
18546 hardcode_direct_CXX=no
18547 hardcode_libdir_flag_spec_CXX=
18548 hardcode_libdir_flag_spec_ld_CXX=
18549 hardcode_libdir_separator_CXX=
18550 hardcode_minus_L_CXX=no
18551 hardcode_shlibpath_var_CXX=unsupported
18552 hardcode_automatic_CXX=no
18553 module_cmds_CXX=
18554 module_expsym_cmds_CXX=
18555 link_all_deplibs_CXX=unknown
18556 old_archive_cmds_CXX=$old_archive_cmds
18557 no_undefined_flag_CXX=
18558 whole_archive_flag_spec_CXX=
18559 enable_shared_with_static_runtimes_CXX=no
18560
18561 # Dependencies to place before and after the object being linked:
18562 predep_objects_CXX=
18563 postdep_objects_CXX=
18564 predeps_CXX=
18565 postdeps_CXX=
18566 compiler_lib_search_path_CXX=
18567
18568 # Source file extension for C++ test sources.
18569 ac_ext=cpp
18570
18571 # Object file extension for compiled C++ test sources.
18572 objext=o
18573 objext_CXX=$objext
18574
18575 # Code to be used in simple compile tests
18576 lt_simple_compile_test_code="int some_variable = 0;\n"
18577
18578 # Code to be used in simple link tests
18579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18580
18581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18582
18583 # If no C compiler was specified, use CC.
18584 LTCC=${LTCC-"$CC"}
18585
18586 # If no C compiler flags were specified, use CFLAGS.
18587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18588
18589 # Allow CC to be a program name with arguments.
18590 compiler=$CC
18591
18592
18593 # save warnings/boilerplate of simple test code
18594 ac_outfile=conftest.$ac_objext
18595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18597 _lt_compiler_boilerplate=`cat conftest.err`
18598 $rm conftest*
18599
18600 ac_outfile=conftest.$ac_objext
18601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18603 _lt_linker_boilerplate=`cat conftest.err`
18604 $rm conftest*
18605
18606
18607 # Allow CC to be a program name with arguments.
18608 lt_save_CC=$CC
18609 lt_save_LD=$LD
18610 lt_save_GCC=$GCC
18611 GCC=$GXX
18612 lt_save_with_gnu_ld=$with_gnu_ld
18613 lt_save_path_LD=$lt_cv_path_LD
18614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18615   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18616 else
18617   $as_unset lt_cv_prog_gnu_ld
18618 fi
18619 if test -n "${lt_cv_path_LDCXX+set}"; then
18620   lt_cv_path_LD=$lt_cv_path_LDCXX
18621 else
18622   $as_unset lt_cv_path_LD
18623 fi
18624 test -z "${LDCXX+set}" || LD=$LDCXX
18625 CC=${CXX-"c++"}
18626 compiler=$CC
18627 compiler_CXX=$CC
18628 for cc_temp in $compiler""; do
18629   case $cc_temp in
18630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18632     \-*) ;;
18633     *) break;;
18634   esac
18635 done
18636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18637
18638
18639 # We don't want -fno-exception wen compiling C++ code, so set the
18640 # no_builtin_flag separately
18641 if test "$GXX" = yes; then
18642   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18643 else
18644   lt_prog_compiler_no_builtin_flag_CXX=
18645 fi
18646
18647 if test "$GXX" = yes; then
18648   # Set up default GNU C++ configuration
18649
18650
18651 # Check whether --with-gnu-ld was given.
18652 if test "${with_gnu_ld+set}" = set; then
18653   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18654 else
18655   with_gnu_ld=no
18656 fi
18657
18658 ac_prog=ld
18659 if test "$GCC" = yes; then
18660   # Check if gcc -print-prog-name=ld gives a path.
18661   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18663   case $host in
18664   *-*-mingw*)
18665     # gcc leaves a trailing carriage return which upsets mingw
18666     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18667   *)
18668     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18669   esac
18670   case $ac_prog in
18671     # Accept absolute paths.
18672     [\\/]* | ?:[\\/]*)
18673       re_direlt='/[^/][^/]*/\.\./'
18674       # Canonicalize the pathname of ld
18675       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18676       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18677         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18678       done
18679       test -z "$LD" && LD="$ac_prog"
18680       ;;
18681   "")
18682     # If it fails, then pretend we aren't using GCC.
18683     ac_prog=ld
18684     ;;
18685   *)
18686     # If it is relative, then search for the first ld in PATH.
18687     with_gnu_ld=unknown
18688     ;;
18689   esac
18690 elif test "$with_gnu_ld" = yes; then
18691   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18693 else
18694   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18696 fi
18697 if test "${lt_cv_path_LD+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700   if test -z "$LD"; then
18701   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18702   for ac_dir in $PATH; do
18703     IFS="$lt_save_ifs"
18704     test -z "$ac_dir" && ac_dir=.
18705     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18706       lt_cv_path_LD="$ac_dir/$ac_prog"
18707       # Check to see if the program is GNU ld.  I'd rather use --version,
18708       # but apparently some variants of GNU ld only accept -v.
18709       # Break only if it was the GNU/non-GNU ld that we prefer.
18710       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18711       *GNU* | *'with BFD'*)
18712         test "$with_gnu_ld" != no && break
18713         ;;
18714       *)
18715         test "$with_gnu_ld" != yes && break
18716         ;;
18717       esac
18718     fi
18719   done
18720   IFS="$lt_save_ifs"
18721 else
18722   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18723 fi
18724 fi
18725
18726 LD="$lt_cv_path_LD"
18727 if test -n "$LD"; then
18728   { echo "$as_me:$LINENO: result: $LD" >&5
18729 echo "${ECHO_T}$LD" >&6; }
18730 else
18731   { echo "$as_me:$LINENO: result: no" >&5
18732 echo "${ECHO_T}no" >&6; }
18733 fi
18734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18736    { (exit 1); exit 1; }; }
18737 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18743 case `$LD -v 2>&1 </dev/null` in
18744 *GNU* | *'with BFD'*)
18745   lt_cv_prog_gnu_ld=yes
18746   ;;
18747 *)
18748   lt_cv_prog_gnu_ld=no
18749   ;;
18750 esac
18751 fi
18752 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18754 with_gnu_ld=$lt_cv_prog_gnu_ld
18755
18756
18757
18758   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18759   # archiving commands below assume that GNU ld is being used.
18760   if test "$with_gnu_ld" = yes; then
18761     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18762     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'
18763
18764     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18765     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766
18767     # If archive_cmds runs LD, not CC, wlarc should be empty
18768     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18769     #     investigate it a little bit more. (MM)
18770     wlarc='${wl}'
18771
18772     # ancient GNU ld didn't support --whole-archive et. al.
18773     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18774         grep 'no-whole-archive' > /dev/null; then
18775       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18776     else
18777       whole_archive_flag_spec_CXX=
18778     fi
18779   else
18780     with_gnu_ld=no
18781     wlarc=
18782
18783     # A generic and very simple default shared library creation
18784     # command for GNU C++ for the case where it uses the native
18785     # linker, instead of GNU ld.  If possible, this setting should
18786     # overridden to take advantage of the native linker features on
18787     # the platform it is being used on.
18788     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18789   fi
18790
18791   # Commands to make compiler produce verbose output that lists
18792   # what "hidden" libraries, object files and flags are used when
18793   # linking a shared library.
18794   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18795
18796 else
18797   GXX=no
18798   with_gnu_ld=no
18799   wlarc=
18800 fi
18801
18802 # PORTME: fill in a description of your system's C++ link characteristics
18803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18805 ld_shlibs_CXX=yes
18806 case $host_os in
18807   aix3*)
18808     # FIXME: insert proper C++ library support
18809     ld_shlibs_CXX=no
18810     ;;
18811   aix4* | aix5*)
18812     if test "$host_cpu" = ia64; then
18813       # On IA64, the linker does run time linking by default, so we don't
18814       # have to do anything special.
18815       aix_use_runtimelinking=no
18816       exp_sym_flag='-Bexport'
18817       no_entry_flag=""
18818     else
18819       aix_use_runtimelinking=no
18820
18821       # Test if we are trying to use run time linking or normal
18822       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18823       # need to do runtime linking.
18824       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18825         for ld_flag in $LDFLAGS; do
18826           case $ld_flag in
18827           *-brtl*)
18828             aix_use_runtimelinking=yes
18829             break
18830             ;;
18831           esac
18832         done
18833         ;;
18834       esac
18835
18836       exp_sym_flag='-bexport'
18837       no_entry_flag='-bnoentry'
18838     fi
18839
18840     # When large executables or shared objects are built, AIX ld can
18841     # have problems creating the table of contents.  If linking a library
18842     # or program results in "error TOC overflow" add -mminimal-toc to
18843     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18844     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18845
18846     archive_cmds_CXX=''
18847     hardcode_direct_CXX=yes
18848     hardcode_libdir_separator_CXX=':'
18849     link_all_deplibs_CXX=yes
18850
18851     if test "$GXX" = yes; then
18852       case $host_os in aix4.[012]|aix4.[012].*)
18853       # We only want to do this on AIX 4.2 and lower, the check
18854       # below for broken collect2 doesn't work under 4.3+
18855         collect2name=`${CC} -print-prog-name=collect2`
18856         if test -f "$collect2name" && \
18857            strings "$collect2name" | grep resolve_lib_name >/dev/null
18858         then
18859           # We have reworked collect2
18860           hardcode_direct_CXX=yes
18861         else
18862           # We have old collect2
18863           hardcode_direct_CXX=unsupported
18864           # It fails to find uninstalled libraries when the uninstalled
18865           # path is not listed in the libpath.  Setting hardcode_minus_L
18866           # to unsupported forces relinking
18867           hardcode_minus_L_CXX=yes
18868           hardcode_libdir_flag_spec_CXX='-L$libdir'
18869           hardcode_libdir_separator_CXX=
18870         fi
18871         ;;
18872       esac
18873       shared_flag='-shared'
18874       if test "$aix_use_runtimelinking" = yes; then
18875         shared_flag="$shared_flag "'${wl}-G'
18876       fi
18877     else
18878       # not using gcc
18879       if test "$host_cpu" = ia64; then
18880         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18881         # chokes on -Wl,-G. The following line is correct:
18882         shared_flag='-G'
18883       else
18884         if test "$aix_use_runtimelinking" = yes; then
18885           shared_flag='${wl}-G'
18886         else
18887           shared_flag='${wl}-bM:SRE'
18888         fi
18889       fi
18890     fi
18891
18892     # It seems that -bexpall does not export symbols beginning with
18893     # underscore (_), so it is better to generate a list of symbols to export.
18894     always_export_symbols_CXX=yes
18895     if test "$aix_use_runtimelinking" = yes; then
18896       # Warning - without using the other runtime loading flags (-brtl),
18897       # -berok will link without error, but may produce a broken library.
18898       allow_undefined_flag_CXX='-berok'
18899       # Determine the default libpath from the value encoded in an empty executable.
18900       cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906
18907 int
18908 main ()
18909 {
18910
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_link") 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; } &&
18939          { ac_try='test -s conftest$ac_exeext'
18940   { (case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_try") 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949
18950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18951 }'`
18952 # Check for a 64-bit object if we didn't find anything.
18953 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; }
18954 }'`; fi
18955 else
18956   echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959
18960 fi
18961
18962 rm -f core conftest.err conftest.$ac_objext \
18963       conftest$ac_exeext conftest.$ac_ext
18964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18965
18966       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18967
18968       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"
18969      else
18970       if test "$host_cpu" = ia64; then
18971         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18972         allow_undefined_flag_CXX="-z nodefs"
18973         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"
18974       else
18975         # Determine the default libpath from the value encoded in an empty executable.
18976         cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h.  */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h.  */
18982
18983 int
18984 main ()
18985 {
18986
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (ac_try="$ac_link"
18993 case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_link") 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } &&
19005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19006   { (case "(($ac_try" in
19007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008   *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011   (eval "$ac_try") 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; } &&
19015          { ac_try='test -s conftest$ac_exeext'
19016   { (case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_try") 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; }; then
19025
19026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19027 }'`
19028 # Check for a 64-bit object if we didn't find anything.
19029 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; }
19030 }'`; fi
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext \
19039       conftest$ac_exeext conftest.$ac_ext
19040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19041
19042         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19043         # Warning - without using the other run time loading flags,
19044         # -berok will link without error, but may produce a broken library.
19045         no_undefined_flag_CXX=' ${wl}-bernotok'
19046         allow_undefined_flag_CXX=' ${wl}-berok'
19047         # Exported symbols can be pulled into shared objects from archives
19048         whole_archive_flag_spec_CXX='$convenience'
19049         archive_cmds_need_lc_CXX=yes
19050         # This is similar to how AIX traditionally builds its shared libraries.
19051         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'
19052       fi
19053     fi
19054     ;;
19055
19056   beos*)
19057     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058       allow_undefined_flag_CXX=unsupported
19059       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19060       # support --undefined.  This deserves some investigation.  FIXME
19061       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062     else
19063       ld_shlibs_CXX=no
19064     fi
19065     ;;
19066
19067   chorus*)
19068     case $cc_basename in
19069       *)
19070         # FIXME: insert proper C++ library support
19071         ld_shlibs_CXX=no
19072         ;;
19073     esac
19074     ;;
19075
19076   cygwin* | mingw* | pw32*)
19077     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19078     # as there is no search path for DLLs.
19079     hardcode_libdir_flag_spec_CXX='-L$libdir'
19080     allow_undefined_flag_CXX=unsupported
19081     always_export_symbols_CXX=no
19082     enable_shared_with_static_runtimes_CXX=yes
19083
19084     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19085       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'
19086       # If the export-symbols file already is a .def file (1st line
19087       # is EXPORTS), use it as is; otherwise, prepend...
19088       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19089         cp $export_symbols $output_objdir/$soname.def;
19090       else
19091         echo EXPORTS > $output_objdir/$soname.def;
19092         cat $export_symbols >> $output_objdir/$soname.def;
19093       fi~
19094       $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'
19095     else
19096       ld_shlibs_CXX=no
19097     fi
19098   ;;
19099       darwin* | rhapsody*)
19100         case $host_os in
19101         rhapsody* | darwin1.[012])
19102          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19103          ;;
19104        *) # Darwin 1.3 on
19105          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19106            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19107          else
19108            case ${MACOSX_DEPLOYMENT_TARGET} in
19109              10.[012])
19110                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19111                ;;
19112              10.*)
19113                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19114                ;;
19115            esac
19116          fi
19117          ;;
19118         esac
19119       archive_cmds_need_lc_CXX=no
19120       hardcode_direct_CXX=no
19121       hardcode_automatic_CXX=yes
19122       hardcode_shlibpath_var_CXX=unsupported
19123       whole_archive_flag_spec_CXX=''
19124       link_all_deplibs_CXX=yes
19125
19126     if test "$GXX" = yes ; then
19127       lt_int_apple_cc_single_mod=no
19128       output_verbose_link_cmd='echo'
19129       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19130        lt_int_apple_cc_single_mod=yes
19131       fi
19132       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19133        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19134       else
19135           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'
19136         fi
19137         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19138         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19139           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19140             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}'
19141           else
19142             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}'
19143           fi
19144             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}'
19145       else
19146       case $cc_basename in
19147         xlc*)
19148          output_verbose_link_cmd='echo'
19149           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'
19150           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19151           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19152           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}'
19153           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}'
19154           ;;
19155        *)
19156          ld_shlibs_CXX=no
19157           ;;
19158       esac
19159       fi
19160         ;;
19161
19162   dgux*)
19163     case $cc_basename in
19164       ec++*)
19165         # FIXME: insert proper C++ library support
19166         ld_shlibs_CXX=no
19167         ;;
19168       ghcx*)
19169         # Green Hills C++ Compiler
19170         # FIXME: insert proper C++ library support
19171         ld_shlibs_CXX=no
19172         ;;
19173       *)
19174         # FIXME: insert proper C++ library support
19175         ld_shlibs_CXX=no
19176         ;;
19177     esac
19178     ;;
19179   freebsd[12]*)
19180     # C++ shared libraries reported to be fairly broken before switch to ELF
19181     ld_shlibs_CXX=no
19182     ;;
19183   freebsd-elf*)
19184     archive_cmds_need_lc_CXX=no
19185     ;;
19186   freebsd* | kfreebsd*-gnu | dragonfly*)
19187     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19188     # conventions
19189     ld_shlibs_CXX=yes
19190     ;;
19191   gnu*)
19192     ;;
19193   hpux9*)
19194     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19195     hardcode_libdir_separator_CXX=:
19196     export_dynamic_flag_spec_CXX='${wl}-E'
19197     hardcode_direct_CXX=yes
19198     hardcode_minus_L_CXX=yes # Not in the search PATH,
19199                                 # but as the default
19200                                 # location of the library.
19201
19202     case $cc_basename in
19203     CC*)
19204       # FIXME: insert proper C++ library support
19205       ld_shlibs_CXX=no
19206       ;;
19207     aCC*)
19208       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'
19209       # Commands to make compiler produce verbose output that lists
19210       # what "hidden" libraries, object files and flags are used when
19211       # linking a shared library.
19212       #
19213       # There doesn't appear to be a way to prevent this compiler from
19214       # explicitly linking system object files so we need to strip them
19215       # from the output so that they don't get included in the library
19216       # dependencies.
19217       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'
19218       ;;
19219     *)
19220       if test "$GXX" = yes; then
19221         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'
19222       else
19223         # FIXME: insert proper C++ library support
19224         ld_shlibs_CXX=no
19225       fi
19226       ;;
19227     esac
19228     ;;
19229   hpux10*|hpux11*)
19230     if test $with_gnu_ld = no; then
19231       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19232       hardcode_libdir_separator_CXX=:
19233
19234       case $host_cpu in
19235       hppa*64*|ia64*)
19236         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19237         ;;
19238       *)
19239         export_dynamic_flag_spec_CXX='${wl}-E'
19240         ;;
19241       esac
19242     fi
19243     case $host_cpu in
19244     hppa*64*|ia64*)
19245       hardcode_direct_CXX=no
19246       hardcode_shlibpath_var_CXX=no
19247       ;;
19248     *)
19249       hardcode_direct_CXX=yes
19250       hardcode_minus_L_CXX=yes # Not in the search PATH,
19251                                               # but as the default
19252                                               # location of the library.
19253       ;;
19254     esac
19255
19256     case $cc_basename in
19257       CC*)
19258         # FIXME: insert proper C++ library support
19259         ld_shlibs_CXX=no
19260         ;;
19261       aCC*)
19262         case $host_cpu in
19263         hppa*64*)
19264           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19265           ;;
19266         ia64*)
19267           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19268           ;;
19269         *)
19270           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19271           ;;
19272         esac
19273         # Commands to make compiler produce verbose output that lists
19274         # what "hidden" libraries, object files and flags are used when
19275         # linking a shared library.
19276         #
19277         # There doesn't appear to be a way to prevent this compiler from
19278         # explicitly linking system object files so we need to strip them
19279         # from the output so that they don't get included in the library
19280         # dependencies.
19281         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'
19282         ;;
19283       *)
19284         if test "$GXX" = yes; then
19285           if test $with_gnu_ld = no; then
19286             case $host_cpu in
19287             hppa*64*)
19288               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19289               ;;
19290             ia64*)
19291               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19292               ;;
19293             *)
19294               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'
19295               ;;
19296             esac
19297           fi
19298         else
19299           # FIXME: insert proper C++ library support
19300           ld_shlibs_CXX=no
19301         fi
19302         ;;
19303     esac
19304     ;;
19305   interix3*)
19306     hardcode_direct_CXX=no
19307     hardcode_shlibpath_var_CXX=no
19308     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19309     export_dynamic_flag_spec_CXX='${wl}-E'
19310     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19311     # Instead, shared libraries are loaded at an image base (0x10000000 by
19312     # default) and relocated if they conflict, which is a slow very memory
19313     # consuming and fragmenting process.  To avoid this, we pick a random,
19314     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19315     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19316     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'
19317     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'
19318     ;;
19319   irix5* | irix6*)
19320     case $cc_basename in
19321       CC*)
19322         # SGI C++
19323         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'
19324
19325         # Archives containing C++ object files must be created using
19326         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19327         # necessary to make sure instantiated templates are included
19328         # in the archive.
19329         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19330         ;;
19331       *)
19332         if test "$GXX" = yes; then
19333           if test "$with_gnu_ld" = no; then
19334             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'
19335           else
19336             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'
19337           fi
19338         fi
19339         link_all_deplibs_CXX=yes
19340         ;;
19341     esac
19342     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19343     hardcode_libdir_separator_CXX=:
19344     ;;
19345   linux*)
19346     case $cc_basename in
19347       KCC*)
19348         # Kuck and Associates, Inc. (KAI) C++ Compiler
19349
19350         # KCC will only create a shared library if the output file
19351         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19352         # to its proper name (with version) after linking.
19353         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'
19354         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'
19355         # Commands to make compiler produce verbose output that lists
19356         # what "hidden" libraries, object files and flags are used when
19357         # linking a shared library.
19358         #
19359         # There doesn't appear to be a way to prevent this compiler from
19360         # explicitly linking system object files so we need to strip them
19361         # from the output so that they don't get included in the library
19362         # dependencies.
19363         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'
19364
19365         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19366         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19367
19368         # Archives containing C++ object files must be created using
19369         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19370         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19371         ;;
19372       icpc*)
19373         # Intel C++
19374         with_gnu_ld=yes
19375         # version 8.0 and above of icpc choke on multiply defined symbols
19376         # if we add $predep_objects and $postdep_objects, however 7.1 and
19377         # earlier do not add the objects themselves.
19378         case `$CC -V 2>&1` in
19379         *"Version 7."*)
19380           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381           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'
19382           ;;
19383         *)  # Version 8.0 or newer
19384           tmp_idyn=
19385           case $host_cpu in
19386             ia64*) tmp_idyn=' -i_dynamic';;
19387           esac
19388           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389           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'
19390           ;;
19391         esac
19392         archive_cmds_need_lc_CXX=no
19393         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19394         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19395         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19396         ;;
19397       pgCC*)
19398         # Portland Group C++ compiler
19399         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19400         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'
19401
19402         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19403         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19404         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'
19405         ;;
19406       cxx*)
19407         # Compaq C++
19408         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19409         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'
19410
19411         runpath_var=LD_RUN_PATH
19412         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19413         hardcode_libdir_separator_CXX=:
19414
19415         # Commands to make compiler produce verbose output that lists
19416         # what "hidden" libraries, object files and flags are used when
19417         # linking a shared library.
19418         #
19419         # There doesn't appear to be a way to prevent this compiler from
19420         # explicitly linking system object files so we need to strip them
19421         # from the output so that they don't get included in the library
19422         # dependencies.
19423         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'
19424         ;;
19425     esac
19426     ;;
19427   lynxos*)
19428     # FIXME: insert proper C++ library support
19429     ld_shlibs_CXX=no
19430     ;;
19431   m88k*)
19432     # FIXME: insert proper C++ library support
19433     ld_shlibs_CXX=no
19434     ;;
19435   mvs*)
19436     case $cc_basename in
19437       cxx*)
19438         # FIXME: insert proper C++ library support
19439         ld_shlibs_CXX=no
19440         ;;
19441       *)
19442         # FIXME: insert proper C++ library support
19443         ld_shlibs_CXX=no
19444         ;;
19445     esac
19446     ;;
19447   netbsd*)
19448     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19449       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19450       wlarc=
19451       hardcode_libdir_flag_spec_CXX='-R$libdir'
19452       hardcode_direct_CXX=yes
19453       hardcode_shlibpath_var_CXX=no
19454     fi
19455     # Workaround some broken pre-1.5 toolchains
19456     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19457     ;;
19458   openbsd2*)
19459     # C++ shared libraries are fairly broken
19460     ld_shlibs_CXX=no
19461     ;;
19462   openbsd*)
19463     hardcode_direct_CXX=yes
19464     hardcode_shlibpath_var_CXX=no
19465     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19466     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19467     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19469       export_dynamic_flag_spec_CXX='${wl}-E'
19470       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19471     fi
19472     output_verbose_link_cmd='echo'
19473     ;;
19474   osf3*)
19475     case $cc_basename in
19476       KCC*)
19477         # Kuck and Associates, Inc. (KAI) C++ Compiler
19478
19479         # KCC will only create a shared library if the output file
19480         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19481         # to its proper name (with version) after linking.
19482         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'
19483
19484         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19485         hardcode_libdir_separator_CXX=:
19486
19487         # Archives containing C++ object files must be created using
19488         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19489         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19490
19491         ;;
19492       RCC*)
19493         # Rational C++ 2.4.1
19494         # FIXME: insert proper C++ library support
19495         ld_shlibs_CXX=no
19496         ;;
19497       cxx*)
19498         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19499         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'
19500
19501         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19502         hardcode_libdir_separator_CXX=:
19503
19504         # Commands to make compiler produce verbose output that lists
19505         # what "hidden" libraries, object files and flags are used when
19506         # linking a shared library.
19507         #
19508         # There doesn't appear to be a way to prevent this compiler from
19509         # explicitly linking system object files so we need to strip them
19510         # from the output so that they don't get included in the library
19511         # dependencies.
19512         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'
19513         ;;
19514       *)
19515         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19516           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19517           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'
19518
19519           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19520           hardcode_libdir_separator_CXX=:
19521
19522           # Commands to make compiler produce verbose output that lists
19523           # what "hidden" libraries, object files and flags are used when
19524           # linking a shared library.
19525           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19526
19527         else
19528           # FIXME: insert proper C++ library support
19529           ld_shlibs_CXX=no
19530         fi
19531         ;;
19532     esac
19533     ;;
19534   osf4* | osf5*)
19535     case $cc_basename in
19536       KCC*)
19537         # Kuck and Associates, Inc. (KAI) C++ Compiler
19538
19539         # KCC will only create a shared library if the output file
19540         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19541         # to its proper name (with version) after linking.
19542         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'
19543
19544         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19545         hardcode_libdir_separator_CXX=:
19546
19547         # Archives containing C++ object files must be created using
19548         # the KAI C++ compiler.
19549         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19550         ;;
19551       RCC*)
19552         # Rational C++ 2.4.1
19553         # FIXME: insert proper C++ library support
19554         ld_shlibs_CXX=no
19555         ;;
19556       cxx*)
19557         allow_undefined_flag_CXX=' -expect_unresolved \*'
19558         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'
19559         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19560           echo "-hidden">> $lib.exp~
19561           $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~
19562           $rm $lib.exp'
19563
19564         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19565         hardcode_libdir_separator_CXX=:
19566
19567         # Commands to make compiler produce verbose output that lists
19568         # what "hidden" libraries, object files and flags are used when
19569         # linking a shared library.
19570         #
19571         # There doesn't appear to be a way to prevent this compiler from
19572         # explicitly linking system object files so we need to strip them
19573         # from the output so that they don't get included in the library
19574         # dependencies.
19575         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'
19576         ;;
19577       *)
19578         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19579           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19580          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'
19581
19582           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19583           hardcode_libdir_separator_CXX=:
19584
19585           # Commands to make compiler produce verbose output that lists
19586           # what "hidden" libraries, object files and flags are used when
19587           # linking a shared library.
19588           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19589
19590         else
19591           # FIXME: insert proper C++ library support
19592           ld_shlibs_CXX=no
19593         fi
19594         ;;
19595     esac
19596     ;;
19597   psos*)
19598     # FIXME: insert proper C++ library support
19599     ld_shlibs_CXX=no
19600     ;;
19601   sunos4*)
19602     case $cc_basename in
19603       CC*)
19604         # Sun C++ 4.x
19605         # FIXME: insert proper C++ library support
19606         ld_shlibs_CXX=no
19607         ;;
19608       lcc*)
19609         # Lucid
19610         # FIXME: insert proper C++ library support
19611         ld_shlibs_CXX=no
19612         ;;
19613       *)
19614         # FIXME: insert proper C++ library support
19615         ld_shlibs_CXX=no
19616         ;;
19617     esac
19618     ;;
19619   solaris*)
19620     case $cc_basename in
19621       CC*)
19622         # Sun C++ 4.2, 5.x and Centerline C++
19623         archive_cmds_need_lc_CXX=yes
19624         no_undefined_flag_CXX=' -zdefs'
19625         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19626         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19627         $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'
19628
19629         hardcode_libdir_flag_spec_CXX='-R$libdir'
19630         hardcode_shlibpath_var_CXX=no
19631         case $host_os in
19632           solaris2.[0-5] | solaris2.[0-5].*) ;;
19633           *)
19634             # The C++ compiler is used as linker so we must use $wl
19635             # flag to pass the commands to the underlying system
19636             # linker. We must also pass each convience library through
19637             # to the system linker between allextract/defaultextract.
19638             # The C++ compiler will combine linker options so we
19639             # cannot just pass the convience library names through
19640             # without $wl.
19641             # Supported since Solaris 2.6 (maybe 2.5.1?)
19642             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'
19643             ;;
19644         esac
19645         link_all_deplibs_CXX=yes
19646
19647         output_verbose_link_cmd='echo'
19648
19649         # Archives containing C++ object files must be created using
19650         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19651         # necessary to make sure instantiated templates are included
19652         # in the archive.
19653         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19654         ;;
19655       gcx*)
19656         # Green Hills C++ Compiler
19657         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19658
19659         # The C++ compiler must be used to create the archive.
19660         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19661         ;;
19662       *)
19663         # GNU C++ compiler with Solaris linker
19664         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19665           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19666           if $CC --version | grep -v '^2\.7' > /dev/null; then
19667             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19668             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19669                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19670
19671             # Commands to make compiler produce verbose output that lists
19672             # what "hidden" libraries, object files and flags are used when
19673             # linking a shared library.
19674             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19675           else
19676             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19677             # platform.
19678             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19679             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19680                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19681
19682             # Commands to make compiler produce verbose output that lists
19683             # what "hidden" libraries, object files and flags are used when
19684             # linking a shared library.
19685             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19686           fi
19687
19688           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19689         fi
19690         ;;
19691     esac
19692     ;;
19693   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19694     no_undefined_flag_CXX='${wl}-z,text'
19695     archive_cmds_need_lc_CXX=no
19696     hardcode_shlibpath_var_CXX=no
19697     runpath_var='LD_RUN_PATH'
19698
19699     case $cc_basename in
19700       CC*)
19701         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19702         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19703         ;;
19704       *)
19705         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707         ;;
19708     esac
19709     ;;
19710   sysv5* | sco3.2v5* | sco5v6*)
19711     # Note: We can NOT use -z defs as we might desire, because we do not
19712     # link with -lc, and that would cause any symbols used from libc to
19713     # always be unresolved, which means just about no library would
19714     # ever link correctly.  If we're not using GNU ld we use -z text
19715     # though, which does catch some bad symbols but isn't as heavy-handed
19716     # as -z defs.
19717     # For security reasons, it is highly recommended that you always
19718     # use absolute paths for naming shared libraries, and exclude the
19719     # DT_RUNPATH tag from executables and libraries.  But doing so
19720     # requires that you compile everything twice, which is a pain.
19721     # So that behaviour is only enabled if SCOABSPATH is set to a
19722     # non-empty value in the environment.  Most likely only useful for
19723     # creating official distributions of packages.
19724     # This is a hack until libtool officially supports absolute path
19725     # names for shared libraries.
19726     no_undefined_flag_CXX='${wl}-z,text'
19727     allow_undefined_flag_CXX='${wl}-z,nodefs'
19728     archive_cmds_need_lc_CXX=no
19729     hardcode_shlibpath_var_CXX=no
19730     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19731     hardcode_libdir_separator_CXX=':'
19732     link_all_deplibs_CXX=yes
19733     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19734     runpath_var='LD_RUN_PATH'
19735
19736     case $cc_basename in
19737       CC*)
19738         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19739         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19740         ;;
19741       *)
19742         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19743         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19744         ;;
19745     esac
19746     ;;
19747   tandem*)
19748     case $cc_basename in
19749       NCC*)
19750         # NonStop-UX NCC 3.20
19751         # FIXME: insert proper C++ library support
19752         ld_shlibs_CXX=no
19753         ;;
19754       *)
19755         # FIXME: insert proper C++ library support
19756         ld_shlibs_CXX=no
19757         ;;
19758     esac
19759     ;;
19760   vxworks*)
19761     # FIXME: insert proper C++ library support
19762     ld_shlibs_CXX=no
19763     ;;
19764   *)
19765     # FIXME: insert proper C++ library support
19766     ld_shlibs_CXX=no
19767     ;;
19768 esac
19769 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19770 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19771 test "$ld_shlibs_CXX" = no && can_build_shared=no
19772
19773 GCC_CXX="$GXX"
19774 LD_CXX="$LD"
19775
19776
19777 cat > conftest.$ac_ext <<EOF
19778 class Foo
19779 {
19780 public:
19781   Foo (void) { a = 0; }
19782 private:
19783   int a;
19784 };
19785 EOF
19786
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788   (eval $ac_compile) 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; then
19792   # Parse the compiler output and extract the necessary
19793   # objects, libraries and library flags.
19794
19795   # Sentinel used to keep track of whether or not we are before
19796   # the conftest object file.
19797   pre_test_object_deps_done=no
19798
19799   # The `*' in the case matches for architectures that use `case' in
19800   # $output_verbose_cmd can trigger glob expansion during the loop
19801   # eval without this substitution.
19802   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19803
19804   for p in `eval $output_verbose_link_cmd`; do
19805     case $p in
19806
19807     -L* | -R* | -l*)
19808        # Some compilers place space between "-{L,R}" and the path.
19809        # Remove the space.
19810        if test $p = "-L" \
19811           || test $p = "-R"; then
19812          prev=$p
19813          continue
19814        else
19815          prev=
19816        fi
19817
19818        if test "$pre_test_object_deps_done" = no; then
19819          case $p in
19820          -L* | -R*)
19821            # Internal compiler library paths should come after those
19822            # provided the user.  The postdeps already come after the
19823            # user supplied libs so there is no need to process them.
19824            if test -z "$compiler_lib_search_path_CXX"; then
19825              compiler_lib_search_path_CXX="${prev}${p}"
19826            else
19827              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19828            fi
19829            ;;
19830          # The "-l" case would never come before the object being
19831          # linked, so don't bother handling this case.
19832          esac
19833        else
19834          if test -z "$postdeps_CXX"; then
19835            postdeps_CXX="${prev}${p}"
19836          else
19837            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19838          fi
19839        fi
19840        ;;
19841
19842     *.$objext)
19843        # This assumes that the test object file only shows up
19844        # once in the compiler output.
19845        if test "$p" = "conftest.$objext"; then
19846          pre_test_object_deps_done=yes
19847          continue
19848        fi
19849
19850        if test "$pre_test_object_deps_done" = no; then
19851          if test -z "$predep_objects_CXX"; then
19852            predep_objects_CXX="$p"
19853          else
19854            predep_objects_CXX="$predep_objects_CXX $p"
19855          fi
19856        else
19857          if test -z "$postdep_objects_CXX"; then
19858            postdep_objects_CXX="$p"
19859          else
19860            postdep_objects_CXX="$postdep_objects_CXX $p"
19861          fi
19862        fi
19863        ;;
19864
19865     *) ;; # Ignore the rest.
19866
19867     esac
19868   done
19869
19870   # Clean up.
19871   rm -f a.out a.exe
19872 else
19873   echo "libtool.m4: error: problem compiling CXX test program"
19874 fi
19875
19876 $rm -f confest.$objext
19877
19878 # PORTME: override above test on systems where it is broken
19879 case $host_os in
19880 interix3*)
19881   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19882   # hack all around it, let's just trust "g++" to DTRT.
19883   predep_objects_CXX=
19884   postdep_objects_CXX=
19885   postdeps_CXX=
19886   ;;
19887
19888 solaris*)
19889   case $cc_basename in
19890   CC*)
19891     # Adding this requires a known-good setup of shared libraries for
19892     # Sun compiler versions before 5.6, else PIC objects from an old
19893     # archive will be linked into the output, leading to subtle bugs.
19894     postdeps_CXX='-lCstd -lCrun'
19895     ;;
19896   esac
19897   ;;
19898 esac
19899
19900
19901 case " $postdeps_CXX " in
19902 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19903 esac
19904
19905 lt_prog_compiler_wl_CXX=
19906 lt_prog_compiler_pic_CXX=
19907 lt_prog_compiler_static_CXX=
19908
19909 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19911
19912   # C++ specific cases for pic, static, wl, etc.
19913   if test "$GXX" = yes; then
19914     lt_prog_compiler_wl_CXX='-Wl,'
19915     lt_prog_compiler_static_CXX='-static'
19916
19917     case $host_os in
19918     aix*)
19919       # All AIX code is PIC.
19920       if test "$host_cpu" = ia64; then
19921         # AIX 5 now supports IA64 processor
19922         lt_prog_compiler_static_CXX='-Bstatic'
19923       fi
19924       ;;
19925     amigaos*)
19926       # FIXME: we need at least 68020 code to build shared libraries, but
19927       # adding the `-m68020' flag to GCC prevents building anything better,
19928       # like `-m68040'.
19929       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19930       ;;
19931     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19932       # PIC is the default for these OSes.
19933       ;;
19934     mingw* | os2* | pw32*)
19935       # This hack is so that the source file can tell whether it is being
19936       # built for inclusion in a dll (and should export symbols for example).
19937       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19938       ;;
19939     darwin* | rhapsody*)
19940       # PIC is the default on this platform
19941       # Common symbols not allowed in MH_DYLIB files
19942       lt_prog_compiler_pic_CXX='-fno-common'
19943       ;;
19944     *djgpp*)
19945       # DJGPP does not support shared libraries at all
19946       lt_prog_compiler_pic_CXX=
19947       ;;
19948     interix3*)
19949       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19950       # Instead, we relocate shared libraries at runtime.
19951       ;;
19952     sysv4*MP*)
19953       if test -d /usr/nec; then
19954         lt_prog_compiler_pic_CXX=-Kconform_pic
19955       fi
19956       ;;
19957     hpux*)
19958       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19959       # not for PA HP-UX.
19960       case $host_cpu in
19961       hppa*64*|ia64*)
19962         ;;
19963       *)
19964         lt_prog_compiler_pic_CXX='-fPIC'
19965         ;;
19966       esac
19967       ;;
19968     *)
19969       lt_prog_compiler_pic_CXX='-fPIC'
19970       ;;
19971     esac
19972   else
19973     case $host_os in
19974       aix4* | aix5*)
19975         # All AIX code is PIC.
19976         if test "$host_cpu" = ia64; then
19977           # AIX 5 now supports IA64 processor
19978           lt_prog_compiler_static_CXX='-Bstatic'
19979         else
19980           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19981         fi
19982         ;;
19983       chorus*)
19984         case $cc_basename in
19985         cxch68*)
19986           # Green Hills C++ Compiler
19987           # _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"
19988           ;;
19989         esac
19990         ;;
19991        darwin*)
19992          # PIC is the default on this platform
19993          # Common symbols not allowed in MH_DYLIB files
19994          case $cc_basename in
19995            xlc*)
19996            lt_prog_compiler_pic_CXX='-qnocommon'
19997            lt_prog_compiler_wl_CXX='-Wl,'
19998            ;;
19999          esac
20000        ;;
20001       dgux*)
20002         case $cc_basename in
20003           ec++*)
20004             lt_prog_compiler_pic_CXX='-KPIC'
20005             ;;
20006           ghcx*)
20007             # Green Hills C++ Compiler
20008             lt_prog_compiler_pic_CXX='-pic'
20009             ;;
20010           *)
20011             ;;
20012         esac
20013         ;;
20014       freebsd* | kfreebsd*-gnu | dragonfly*)
20015         # FreeBSD uses GNU C++
20016         ;;
20017       hpux9* | hpux10* | hpux11*)
20018         case $cc_basename in
20019           CC*)
20020             lt_prog_compiler_wl_CXX='-Wl,'
20021             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20022             if test "$host_cpu" != ia64; then
20023               lt_prog_compiler_pic_CXX='+Z'
20024             fi
20025             ;;
20026           aCC*)
20027             lt_prog_compiler_wl_CXX='-Wl,'
20028             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20029             case $host_cpu in
20030             hppa*64*|ia64*)
20031               # +Z the default
20032               ;;
20033             *)
20034               lt_prog_compiler_pic_CXX='+Z'
20035               ;;
20036             esac
20037             ;;
20038           *)
20039             ;;
20040         esac
20041         ;;
20042       interix*)
20043         # This is c89, which is MS Visual C++ (no shared libs)
20044         # Anyone wants to do a port?
20045         ;;
20046       irix5* | irix6* | nonstopux*)
20047         case $cc_basename in
20048           CC*)
20049             lt_prog_compiler_wl_CXX='-Wl,'
20050             lt_prog_compiler_static_CXX='-non_shared'
20051             # CC pic flag -KPIC is the default.
20052             ;;
20053           *)
20054             ;;
20055         esac
20056         ;;
20057       linux*)
20058         case $cc_basename in
20059           KCC*)
20060             # KAI C++ Compiler
20061             lt_prog_compiler_wl_CXX='--backend -Wl,'
20062             lt_prog_compiler_pic_CXX='-fPIC'
20063             ;;
20064           icpc* | ecpc*)
20065             # Intel C++
20066             lt_prog_compiler_wl_CXX='-Wl,'
20067             lt_prog_compiler_pic_CXX='-KPIC'
20068             lt_prog_compiler_static_CXX='-static'
20069             ;;
20070           pgCC*)
20071             # Portland Group C++ compiler.
20072             lt_prog_compiler_wl_CXX='-Wl,'
20073             lt_prog_compiler_pic_CXX='-fpic'
20074             lt_prog_compiler_static_CXX='-Bstatic'
20075             ;;
20076           cxx*)
20077             # Compaq C++
20078             # Make sure the PIC flag is empty.  It appears that all Alpha
20079             # Linux and Compaq Tru64 Unix objects are PIC.
20080             lt_prog_compiler_pic_CXX=
20081             lt_prog_compiler_static_CXX='-non_shared'
20082             ;;
20083           *)
20084             ;;
20085         esac
20086         ;;
20087       lynxos*)
20088         ;;
20089       m88k*)
20090         ;;
20091       mvs*)
20092         case $cc_basename in
20093           cxx*)
20094             lt_prog_compiler_pic_CXX='-W c,exportall'
20095             ;;
20096           *)
20097             ;;
20098         esac
20099         ;;
20100       netbsd*)
20101         ;;
20102       osf3* | osf4* | osf5*)
20103         case $cc_basename in
20104           KCC*)
20105             lt_prog_compiler_wl_CXX='--backend -Wl,'
20106             ;;
20107           RCC*)
20108             # Rational C++ 2.4.1
20109             lt_prog_compiler_pic_CXX='-pic'
20110             ;;
20111           cxx*)
20112             # Digital/Compaq C++
20113             lt_prog_compiler_wl_CXX='-Wl,'
20114             # Make sure the PIC flag is empty.  It appears that all Alpha
20115             # Linux and Compaq Tru64 Unix objects are PIC.
20116             lt_prog_compiler_pic_CXX=
20117             lt_prog_compiler_static_CXX='-non_shared'
20118             ;;
20119           *)
20120             ;;
20121         esac
20122         ;;
20123       psos*)
20124         ;;
20125       solaris*)
20126         case $cc_basename in
20127           CC*)
20128             # Sun C++ 4.2, 5.x and Centerline C++
20129             lt_prog_compiler_pic_CXX='-KPIC'
20130             lt_prog_compiler_static_CXX='-Bstatic'
20131             lt_prog_compiler_wl_CXX='-Qoption ld '
20132             ;;
20133           gcx*)
20134             # Green Hills C++ Compiler
20135             lt_prog_compiler_pic_CXX='-PIC'
20136             ;;
20137           *)
20138             ;;
20139         esac
20140         ;;
20141       sunos4*)
20142         case $cc_basename in
20143           CC*)
20144             # Sun C++ 4.x
20145             lt_prog_compiler_pic_CXX='-pic'
20146             lt_prog_compiler_static_CXX='-Bstatic'
20147             ;;
20148           lcc*)
20149             # Lucid
20150             lt_prog_compiler_pic_CXX='-pic'
20151             ;;
20152           *)
20153             ;;
20154         esac
20155         ;;
20156       tandem*)
20157         case $cc_basename in
20158           NCC*)
20159             # NonStop-UX NCC 3.20
20160             lt_prog_compiler_pic_CXX='-KPIC'
20161             ;;
20162           *)
20163             ;;
20164         esac
20165         ;;
20166       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20167         case $cc_basename in
20168           CC*)
20169             lt_prog_compiler_wl_CXX='-Wl,'
20170             lt_prog_compiler_pic_CXX='-KPIC'
20171             lt_prog_compiler_static_CXX='-Bstatic'
20172             ;;
20173         esac
20174         ;;
20175       vxworks*)
20176         ;;
20177       *)
20178         lt_prog_compiler_can_build_shared_CXX=no
20179         ;;
20180     esac
20181   fi
20182
20183 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20184 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20185
20186 #
20187 # Check to make sure the PIC flag actually works.
20188 #
20189 if test -n "$lt_prog_compiler_pic_CXX"; then
20190
20191 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20192 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20193 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   lt_prog_compiler_pic_works_CXX=no
20197   ac_outfile=conftest.$ac_objext
20198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20199    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20200    # Insert the option either (1) after the last *FLAGS variable, or
20201    # (2) before a word containing "conftest.", or (3) at the end.
20202    # Note that $ac_compile itself does not contain backslashes and begins
20203    # with a dollar sign (not a hyphen), so the echo should work correctly.
20204    # The option is referenced via a variable to avoid confusing sed.
20205    lt_compile=`echo "$ac_compile" | $SED \
20206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20208    -e 's:$: $lt_compiler_flag:'`
20209    (eval echo "\"\$as_me:20209: $lt_compile\"" >&5)
20210    (eval "$lt_compile" 2>conftest.err)
20211    ac_status=$?
20212    cat conftest.err >&5
20213    echo "$as_me:20213: \$? = $ac_status" >&5
20214    if (exit $ac_status) && test -s "$ac_outfile"; then
20215      # The compiler can only warn and ignore the option if not recognized
20216      # So say no if there are warnings other than the usual output.
20217      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20218      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20219      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20220        lt_prog_compiler_pic_works_CXX=yes
20221      fi
20222    fi
20223    $rm conftest*
20224
20225 fi
20226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20227 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20228
20229 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20230     case $lt_prog_compiler_pic_CXX in
20231      "" | " "*) ;;
20232      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20233      esac
20234 else
20235     lt_prog_compiler_pic_CXX=
20236      lt_prog_compiler_can_build_shared_CXX=no
20237 fi
20238
20239 fi
20240 case $host_os in
20241   # For platforms which do not support PIC, -DPIC is meaningless:
20242   *djgpp*)
20243     lt_prog_compiler_pic_CXX=
20244     ;;
20245   *)
20246     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20247     ;;
20248 esac
20249
20250 #
20251 # Check to make sure the static flag actually works.
20252 #
20253 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20254 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20255 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20256 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259   lt_prog_compiler_static_works_CXX=no
20260    save_LDFLAGS="$LDFLAGS"
20261    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20262    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20263    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20264      # The linker can only warn and ignore the option if not recognized
20265      # So say no if there are warnings
20266      if test -s conftest.err; then
20267        # Append any errors to the config.log.
20268        cat conftest.err 1>&5
20269        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20270        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20271        if diff conftest.exp conftest.er2 >/dev/null; then
20272          lt_prog_compiler_static_works_CXX=yes
20273        fi
20274      else
20275        lt_prog_compiler_static_works_CXX=yes
20276      fi
20277    fi
20278    $rm conftest*
20279    LDFLAGS="$save_LDFLAGS"
20280
20281 fi
20282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20283 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20284
20285 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20286     :
20287 else
20288     lt_prog_compiler_static_CXX=
20289 fi
20290
20291
20292 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20294 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   lt_cv_prog_compiler_c_o_CXX=no
20298    $rm -r conftest 2>/dev/null
20299    mkdir conftest
20300    cd conftest
20301    mkdir out
20302    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20303
20304    lt_compiler_flag="-o out/conftest2.$ac_objext"
20305    # Insert the option either (1) after the last *FLAGS variable, or
20306    # (2) before a word containing "conftest.", or (3) at the end.
20307    # Note that $ac_compile itself does not contain backslashes and begins
20308    # with a dollar sign (not a hyphen), so the echo should work correctly.
20309    lt_compile=`echo "$ac_compile" | $SED \
20310    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20311    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20312    -e 's:$: $lt_compiler_flag:'`
20313    (eval echo "\"\$as_me:20313: $lt_compile\"" >&5)
20314    (eval "$lt_compile" 2>out/conftest.err)
20315    ac_status=$?
20316    cat out/conftest.err >&5
20317    echo "$as_me:20317: \$? = $ac_status" >&5
20318    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20319    then
20320      # The compiler can only warn and ignore the option if not recognized
20321      # So say no if there are warnings
20322      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20323      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20324      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20325        lt_cv_prog_compiler_c_o_CXX=yes
20326      fi
20327    fi
20328    chmod u+w . 2>&5
20329    $rm conftest*
20330    # SGI C++ compiler will create directory out/ii_files/ for
20331    # template instantiation
20332    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20333    $rm out/* && rmdir out
20334    cd ..
20335    rmdir conftest
20336    $rm conftest*
20337
20338 fi
20339 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20341
20342
20343 hard_links="nottested"
20344 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20345   # do not overwrite the value of need_locks provided by the user
20346   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20348   hard_links=yes
20349   $rm conftest*
20350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20351   touch conftest.a
20352   ln conftest.a conftest.b 2>&5 || hard_links=no
20353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20354   { echo "$as_me:$LINENO: result: $hard_links" >&5
20355 echo "${ECHO_T}$hard_links" >&6; }
20356   if test "$hard_links" = no; then
20357     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20359     need_locks=warn
20360   fi
20361 else
20362   need_locks=no
20363 fi
20364
20365 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20367
20368   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20369   case $host_os in
20370   aix4* | aix5*)
20371     # If we're using GNU nm, then we don't want the "-C" option.
20372     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20373     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20374       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'
20375     else
20376       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'
20377     fi
20378     ;;
20379   pw32*)
20380     export_symbols_cmds_CXX="$ltdll_cmds"
20381   ;;
20382   cygwin* | mingw*)
20383     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'
20384   ;;
20385   *)
20386     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20387   ;;
20388   esac
20389
20390 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20391 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20392 test "$ld_shlibs_CXX" = no && can_build_shared=no
20393
20394 #
20395 # Do we need to explicitly link libc?
20396 #
20397 case "x$archive_cmds_need_lc_CXX" in
20398 x|xyes)
20399   # Assume -lc should be added
20400   archive_cmds_need_lc_CXX=yes
20401
20402   if test "$enable_shared" = yes && test "$GCC" = yes; then
20403     case $archive_cmds_CXX in
20404     *'~'*)
20405       # FIXME: we may have to deal with multi-command sequences.
20406       ;;
20407     '$CC '*)
20408       # Test whether the compiler implicitly links with -lc since on some
20409       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20410       # to ld, don't add -lc before -lgcc.
20411       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20413       $rm conftest*
20414       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20415
20416       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417   (eval $ac_compile) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); } 2>conftest.err; then
20421         soname=conftest
20422         lib=conftest
20423         libobjs=conftest.$ac_objext
20424         deplibs=
20425         wl=$lt_prog_compiler_wl_CXX
20426         pic_flag=$lt_prog_compiler_pic_CXX
20427         compiler_flags=-v
20428         linker_flags=-v
20429         verstring=
20430         output_objdir=.
20431         libname=conftest
20432         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20433         allow_undefined_flag_CXX=
20434         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20435   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }
20439         then
20440           archive_cmds_need_lc_CXX=no
20441         else
20442           archive_cmds_need_lc_CXX=yes
20443         fi
20444         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20445       else
20446         cat conftest.err 1>&5
20447       fi
20448       $rm conftest*
20449       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20450 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20451       ;;
20452     esac
20453   fi
20454   ;;
20455 esac
20456
20457 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20459 library_names_spec=
20460 libname_spec='lib$name'
20461 soname_spec=
20462 shrext_cmds=".so"
20463 postinstall_cmds=
20464 postuninstall_cmds=
20465 finish_cmds=
20466 finish_eval=
20467 shlibpath_var=
20468 shlibpath_overrides_runpath=unknown
20469 version_type=none
20470 dynamic_linker="$host_os ld.so"
20471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20472 if test "$GCC" = yes; then
20473   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20474   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20475     # if the path contains ";" then we assume it to be the separator
20476     # otherwise default to the standard path separator (i.e. ":") - it is
20477     # assumed that no part of a normal pathname contains ";" but that should
20478     # okay in the real world where ";" in dirpaths is itself problematic.
20479     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20480   else
20481     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20482   fi
20483 else
20484   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20485 fi
20486 need_lib_prefix=unknown
20487 hardcode_into_libs=no
20488
20489 # when you set need_version to no, make sure it does not cause -set_version
20490 # flags to be left without arguments
20491 need_version=unknown
20492
20493 case $host_os in
20494 aix3*)
20495   version_type=linux
20496   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20497   shlibpath_var=LIBPATH
20498
20499   # AIX 3 has no versioning support, so we append a major version to the name.
20500   soname_spec='${libname}${release}${shared_ext}$major'
20501   ;;
20502
20503 aix4* | aix5*)
20504   version_type=linux
20505   need_lib_prefix=no
20506   need_version=no
20507   hardcode_into_libs=yes
20508   if test "$host_cpu" = ia64; then
20509     # AIX 5 supports IA64
20510     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20511     shlibpath_var=LD_LIBRARY_PATH
20512   else
20513     # With GCC up to 2.95.x, collect2 would create an import file
20514     # for dependence libraries.  The import file would start with
20515     # the line `#! .'.  This would cause the generated library to
20516     # depend on `.', always an invalid library.  This was fixed in
20517     # development snapshots of GCC prior to 3.0.
20518     case $host_os in
20519       aix4 | aix4.[01] | aix4.[01].*)
20520       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20521            echo ' yes '
20522            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20523         :
20524       else
20525         can_build_shared=no
20526       fi
20527       ;;
20528     esac
20529     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20530     # soname into executable. Probably we can add versioning support to
20531     # collect2, so additional links can be useful in future.
20532     if test "$aix_use_runtimelinking" = yes; then
20533       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20534       # instead of lib<name>.a to let people know that these are not
20535       # typical AIX shared libraries.
20536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537     else
20538       # We preserve .a as extension for shared libraries through AIX4.2
20539       # and later when we are not doing run time linking.
20540       library_names_spec='${libname}${release}.a $libname.a'
20541       soname_spec='${libname}${release}${shared_ext}$major'
20542     fi
20543     shlibpath_var=LIBPATH
20544   fi
20545   ;;
20546
20547 amigaos*)
20548   library_names_spec='$libname.ixlibrary $libname.a'
20549   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20550   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'
20551   ;;
20552
20553 beos*)
20554   library_names_spec='${libname}${shared_ext}'
20555   dynamic_linker="$host_os ld.so"
20556   shlibpath_var=LIBRARY_PATH
20557   ;;
20558
20559 bsdi[45]*)
20560   version_type=linux
20561   need_version=no
20562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20563   soname_spec='${libname}${release}${shared_ext}$major'
20564   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20565   shlibpath_var=LD_LIBRARY_PATH
20566   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20567   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20568   # the default ld.so.conf also contains /usr/contrib/lib and
20569   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20570   # libtool to hard-code these into programs
20571   ;;
20572
20573 cygwin* | mingw* | pw32*)
20574   version_type=windows
20575   shrext_cmds=".dll"
20576   need_version=no
20577   need_lib_prefix=no
20578
20579   case $GCC,$host_os in
20580   yes,cygwin* | yes,mingw* | yes,pw32*)
20581     library_names_spec='$libname.dll.a'
20582     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20583     postinstall_cmds='base_file=`basename \${file}`~
20584       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20585       dldir=$destdir/`dirname \$dlpath`~
20586       test -d \$dldir || mkdir -p \$dldir~
20587       $install_prog $dir/$dlname \$dldir/$dlname~
20588       chmod a+x \$dldir/$dlname'
20589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20590       dlpath=$dir/\$dldll~
20591        $rm \$dlpath'
20592     shlibpath_overrides_runpath=yes
20593
20594     case $host_os in
20595     cygwin*)
20596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20599       ;;
20600     mingw*)
20601       # MinGW DLLs use traditional 'lib' prefix
20602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20604       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20605         # It is most probably a Windows format PATH printed by
20606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20607         # path with ; separators, and with drive letters. We can handle the
20608         # drive letters (cygwin fileutils understands them), so leave them,
20609         # especially as we might pass files found there to a mingw objdump,
20610         # which wouldn't understand a cygwinified path. Ahh.
20611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20612       else
20613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20614       fi
20615       ;;
20616     pw32*)
20617       # pw32 DLLs use 'pw' prefix rather than 'lib'
20618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20619       ;;
20620     esac
20621     ;;
20622
20623   *)
20624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20625     ;;
20626   esac
20627   dynamic_linker='Win32 ld.exe'
20628   # FIXME: first we should search . and the directory the executable is in
20629   shlibpath_var=PATH
20630   ;;
20631
20632 darwin* | rhapsody*)
20633   dynamic_linker="$host_os dyld"
20634   version_type=darwin
20635   need_lib_prefix=no
20636   need_version=no
20637   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20638   soname_spec='${libname}${release}${major}$shared_ext'
20639   shlibpath_overrides_runpath=yes
20640   shlibpath_var=DYLD_LIBRARY_PATH
20641   shrext_cmds='.dylib'
20642   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20643   if test "$GCC" = yes; then
20644     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"`
20645   else
20646     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20647   fi
20648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20649   ;;
20650
20651 dgux*)
20652   version_type=linux
20653   need_lib_prefix=no
20654   need_version=no
20655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20656   soname_spec='${libname}${release}${shared_ext}$major'
20657   shlibpath_var=LD_LIBRARY_PATH
20658   ;;
20659
20660 freebsd1*)
20661   dynamic_linker=no
20662   ;;
20663
20664 kfreebsd*-gnu)
20665   version_type=linux
20666   need_lib_prefix=no
20667   need_version=no
20668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20669   soname_spec='${libname}${release}${shared_ext}$major'
20670   shlibpath_var=LD_LIBRARY_PATH
20671   shlibpath_overrides_runpath=no
20672   hardcode_into_libs=yes
20673   dynamic_linker='GNU ld.so'
20674   ;;
20675
20676 freebsd* | dragonfly*)
20677   # DragonFly does not have aout.  When/if they implement a new
20678   # versioning mechanism, adjust this.
20679   if test -x /usr/bin/objformat; then
20680     objformat=`/usr/bin/objformat`
20681   else
20682     case $host_os in
20683     freebsd[123]*) objformat=aout ;;
20684     *) objformat=elf ;;
20685     esac
20686   fi
20687   version_type=freebsd-$objformat
20688   case $version_type in
20689     freebsd-elf*)
20690       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20691       need_version=no
20692       need_lib_prefix=no
20693       ;;
20694     freebsd-*)
20695       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20696       need_version=yes
20697       ;;
20698   esac
20699   shlibpath_var=LD_LIBRARY_PATH
20700   case $host_os in
20701   freebsd2*)
20702     shlibpath_overrides_runpath=yes
20703     ;;
20704   freebsd3.[01]* | freebsdelf3.[01]*)
20705     shlibpath_overrides_runpath=yes
20706     hardcode_into_libs=yes
20707     ;;
20708   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20709   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20710     shlibpath_overrides_runpath=no
20711     hardcode_into_libs=yes
20712     ;;
20713   freebsd*) # from 4.6 on
20714     shlibpath_overrides_runpath=yes
20715     hardcode_into_libs=yes
20716     ;;
20717   esac
20718   ;;
20719
20720 gnu*)
20721   version_type=linux
20722   need_lib_prefix=no
20723   need_version=no
20724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20725   soname_spec='${libname}${release}${shared_ext}$major'
20726   shlibpath_var=LD_LIBRARY_PATH
20727   hardcode_into_libs=yes
20728   ;;
20729
20730 hpux9* | hpux10* | hpux11*)
20731   # Give a soname corresponding to the major version so that dld.sl refuses to
20732   # link against other versions.
20733   version_type=sunos
20734   need_lib_prefix=no
20735   need_version=no
20736   case $host_cpu in
20737   ia64*)
20738     shrext_cmds='.so'
20739     hardcode_into_libs=yes
20740     dynamic_linker="$host_os dld.so"
20741     shlibpath_var=LD_LIBRARY_PATH
20742     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744     soname_spec='${libname}${release}${shared_ext}$major'
20745     if test "X$HPUX_IA64_MODE" = X32; then
20746       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20747     else
20748       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20749     fi
20750     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20751     ;;
20752    hppa*64*)
20753      shrext_cmds='.sl'
20754      hardcode_into_libs=yes
20755      dynamic_linker="$host_os dld.sl"
20756      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20757      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20758      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20759      soname_spec='${libname}${release}${shared_ext}$major'
20760      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20761      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20762      ;;
20763    *)
20764     shrext_cmds='.sl'
20765     dynamic_linker="$host_os dld.sl"
20766     shlibpath_var=SHLIB_PATH
20767     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769     soname_spec='${libname}${release}${shared_ext}$major'
20770     ;;
20771   esac
20772   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20773   postinstall_cmds='chmod 555 $lib'
20774   ;;
20775
20776 interix3*)
20777   version_type=linux
20778   need_lib_prefix=no
20779   need_version=no
20780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20781   soname_spec='${libname}${release}${shared_ext}$major'
20782   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20783   shlibpath_var=LD_LIBRARY_PATH
20784   shlibpath_overrides_runpath=no
20785   hardcode_into_libs=yes
20786   ;;
20787
20788 irix5* | irix6* | nonstopux*)
20789   case $host_os in
20790     nonstopux*) version_type=nonstopux ;;
20791     *)
20792         if test "$lt_cv_prog_gnu_ld" = yes; then
20793                 version_type=linux
20794         else
20795                 version_type=irix
20796         fi ;;
20797   esac
20798   need_lib_prefix=no
20799   need_version=no
20800   soname_spec='${libname}${release}${shared_ext}$major'
20801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802   case $host_os in
20803   irix5* | nonstopux*)
20804     libsuff= shlibsuff=
20805     ;;
20806   *)
20807     case $LD in # libtool.m4 will add one of these switches to LD
20808     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20809       libsuff= shlibsuff= libmagic=32-bit;;
20810     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20811       libsuff=32 shlibsuff=N32 libmagic=N32;;
20812     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20813       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20814     *) libsuff= shlibsuff= libmagic=never-match;;
20815     esac
20816     ;;
20817   esac
20818   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20819   shlibpath_overrides_runpath=no
20820   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20821   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20822   hardcode_into_libs=yes
20823   ;;
20824
20825 # No shared lib support for Linux oldld, aout, or coff.
20826 linux*oldld* | linux*aout* | linux*coff*)
20827   dynamic_linker=no
20828   ;;
20829
20830 # This must be Linux ELF.
20831 linux*)
20832   version_type=linux
20833   need_lib_prefix=no
20834   need_version=no
20835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836   soname_spec='${libname}${release}${shared_ext}$major'
20837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20838   shlibpath_var=LD_LIBRARY_PATH
20839   shlibpath_overrides_runpath=no
20840   # This implies no fast_install, which is unacceptable.
20841   # Some rework will be needed to allow for fast_install
20842   # before this can be enabled.
20843   hardcode_into_libs=yes
20844
20845   # Append ld.so.conf contents to the search path
20846   if test -f /etc/ld.so.conf; then
20847     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' ' '`
20848     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20849   fi
20850
20851   # We used to test for /lib/ld.so.1 and disable shared libraries on
20852   # powerpc, because MkLinux only supported shared libraries with the
20853   # GNU dynamic linker.  Since this was broken with cross compilers,
20854   # most powerpc-linux boxes support dynamic linking these days and
20855   # people can always --disable-shared, the test was removed, and we
20856   # assume the GNU/Linux dynamic linker is in use.
20857   dynamic_linker='GNU/Linux ld.so'
20858   ;;
20859
20860 knetbsd*-gnu)
20861   version_type=linux
20862   need_lib_prefix=no
20863   need_version=no
20864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20865   soname_spec='${libname}${release}${shared_ext}$major'
20866   shlibpath_var=LD_LIBRARY_PATH
20867   shlibpath_overrides_runpath=no
20868   hardcode_into_libs=yes
20869   dynamic_linker='GNU ld.so'
20870   ;;
20871
20872 netbsd*)
20873   version_type=sunos
20874   need_lib_prefix=no
20875   need_version=no
20876   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20878     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20879     dynamic_linker='NetBSD (a.out) ld.so'
20880   else
20881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20882     soname_spec='${libname}${release}${shared_ext}$major'
20883     dynamic_linker='NetBSD ld.elf_so'
20884   fi
20885   shlibpath_var=LD_LIBRARY_PATH
20886   shlibpath_overrides_runpath=yes
20887   hardcode_into_libs=yes
20888   ;;
20889
20890 newsos6)
20891   version_type=linux
20892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893   shlibpath_var=LD_LIBRARY_PATH
20894   shlibpath_overrides_runpath=yes
20895   ;;
20896
20897 nto-qnx*)
20898   version_type=linux
20899   need_lib_prefix=no
20900   need_version=no
20901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902   soname_spec='${libname}${release}${shared_ext}$major'
20903   shlibpath_var=LD_LIBRARY_PATH
20904   shlibpath_overrides_runpath=yes
20905   ;;
20906
20907 openbsd*)
20908   version_type=sunos
20909   sys_lib_dlsearch_path_spec="/usr/lib"
20910   need_lib_prefix=no
20911   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20912   case $host_os in
20913     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20914     *)                         need_version=no  ;;
20915   esac
20916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20918   shlibpath_var=LD_LIBRARY_PATH
20919   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20920     case $host_os in
20921       openbsd2.[89] | openbsd2.[89].*)
20922         shlibpath_overrides_runpath=no
20923         ;;
20924       *)
20925         shlibpath_overrides_runpath=yes
20926         ;;
20927       esac
20928   else
20929     shlibpath_overrides_runpath=yes
20930   fi
20931   ;;
20932
20933 os2*)
20934   libname_spec='$name'
20935   shrext_cmds=".dll"
20936   need_lib_prefix=no
20937   library_names_spec='$libname${shared_ext} $libname.a'
20938   dynamic_linker='OS/2 ld.exe'
20939   shlibpath_var=LIBPATH
20940   ;;
20941
20942 osf3* | osf4* | osf5*)
20943   version_type=osf
20944   need_lib_prefix=no
20945   need_version=no
20946   soname_spec='${libname}${release}${shared_ext}$major'
20947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948   shlibpath_var=LD_LIBRARY_PATH
20949   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20950   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20951   ;;
20952
20953 solaris*)
20954   version_type=linux
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   shlibpath_overrides_runpath=yes
20961   hardcode_into_libs=yes
20962   # ldd complains unless libraries are executable
20963   postinstall_cmds='chmod +x $lib'
20964   ;;
20965
20966 sunos4*)
20967   version_type=sunos
20968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20970   shlibpath_var=LD_LIBRARY_PATH
20971   shlibpath_overrides_runpath=yes
20972   if test "$with_gnu_ld" = yes; then
20973     need_lib_prefix=no
20974   fi
20975   need_version=yes
20976   ;;
20977
20978 sysv4 | sysv4.3*)
20979   version_type=linux
20980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981   soname_spec='${libname}${release}${shared_ext}$major'
20982   shlibpath_var=LD_LIBRARY_PATH
20983   case $host_vendor in
20984     sni)
20985       shlibpath_overrides_runpath=no
20986       need_lib_prefix=no
20987       export_dynamic_flag_spec='${wl}-Blargedynsym'
20988       runpath_var=LD_RUN_PATH
20989       ;;
20990     siemens)
20991       need_lib_prefix=no
20992       ;;
20993     motorola)
20994       need_lib_prefix=no
20995       need_version=no
20996       shlibpath_overrides_runpath=no
20997       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20998       ;;
20999   esac
21000   ;;
21001
21002 sysv4*MP*)
21003   if test -d /usr/nec ;then
21004     version_type=linux
21005     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21006     soname_spec='$libname${shared_ext}.$major'
21007     shlibpath_var=LD_LIBRARY_PATH
21008   fi
21009   ;;
21010
21011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21012   version_type=freebsd-elf
21013   need_lib_prefix=no
21014   need_version=no
21015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21016   soname_spec='${libname}${release}${shared_ext}$major'
21017   shlibpath_var=LD_LIBRARY_PATH
21018   hardcode_into_libs=yes
21019   if test "$with_gnu_ld" = yes; then
21020     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21021     shlibpath_overrides_runpath=no
21022   else
21023     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21024     shlibpath_overrides_runpath=yes
21025     case $host_os in
21026       sco3.2v5*)
21027         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21028         ;;
21029     esac
21030   fi
21031   sys_lib_dlsearch_path_spec='/usr/lib'
21032   ;;
21033
21034 uts4*)
21035   version_type=linux
21036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037   soname_spec='${libname}${release}${shared_ext}$major'
21038   shlibpath_var=LD_LIBRARY_PATH
21039   ;;
21040
21041 *)
21042   dynamic_linker=no
21043   ;;
21044 esac
21045 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21046 echo "${ECHO_T}$dynamic_linker" >&6; }
21047 test "$dynamic_linker" = no && can_build_shared=no
21048
21049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21050 if test "$GCC" = yes; then
21051   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21052 fi
21053
21054 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21056 hardcode_action_CXX=
21057 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21058    test -n "$runpath_var_CXX" || \
21059    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21060
21061   # We can hardcode non-existant directories.
21062   if test "$hardcode_direct_CXX" != no &&
21063      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21064      # have to relink, otherwise we might link with an installed library
21065      # when we should be linking with a yet-to-be-installed one
21066      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21067      test "$hardcode_minus_L_CXX" != no; then
21068     # Linking always hardcodes the temporary library directory.
21069     hardcode_action_CXX=relink
21070   else
21071     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21072     hardcode_action_CXX=immediate
21073   fi
21074 else
21075   # We cannot hardcode anything, or else we can only hardcode existing
21076   # directories.
21077   hardcode_action_CXX=unsupported
21078 fi
21079 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21080 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21081
21082 if test "$hardcode_action_CXX" = relink; then
21083   # Fast installation is not supported
21084   enable_fast_install=no
21085 elif test "$shlibpath_overrides_runpath" = yes ||
21086      test "$enable_shared" = no; then
21087   # Fast installation is not necessary
21088   enable_fast_install=needless
21089 fi
21090
21091
21092 # The else clause should only fire when bootstrapping the
21093 # libtool distribution, otherwise you forgot to ship ltmain.sh
21094 # with your package, and you will get complaints that there are
21095 # no rules to generate ltmain.sh.
21096 if test -f "$ltmain"; then
21097   # See if we are running on zsh, and set the options which allow our commands through
21098   # without removal of \ escapes.
21099   if test -n "${ZSH_VERSION+set}" ; then
21100     setopt NO_GLOB_SUBST
21101   fi
21102   # Now quote all the things that may contain metacharacters while being
21103   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21104   # variables and quote the copies for generation of the libtool script.
21105   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21106     SED SHELL STRIP \
21107     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21108     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21109     deplibs_check_method reload_flag reload_cmds need_locks \
21110     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21111     lt_cv_sys_global_symbol_to_c_name_address \
21112     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21113     old_postinstall_cmds old_postuninstall_cmds \
21114     compiler_CXX \
21115     CC_CXX \
21116     LD_CXX \
21117     lt_prog_compiler_wl_CXX \
21118     lt_prog_compiler_pic_CXX \
21119     lt_prog_compiler_static_CXX \
21120     lt_prog_compiler_no_builtin_flag_CXX \
21121     export_dynamic_flag_spec_CXX \
21122     thread_safe_flag_spec_CXX \
21123     whole_archive_flag_spec_CXX \
21124     enable_shared_with_static_runtimes_CXX \
21125     old_archive_cmds_CXX \
21126     old_archive_from_new_cmds_CXX \
21127     predep_objects_CXX \
21128     postdep_objects_CXX \
21129     predeps_CXX \
21130     postdeps_CXX \
21131     compiler_lib_search_path_CXX \
21132     archive_cmds_CXX \
21133     archive_expsym_cmds_CXX \
21134     postinstall_cmds_CXX \
21135     postuninstall_cmds_CXX \
21136     old_archive_from_expsyms_cmds_CXX \
21137     allow_undefined_flag_CXX \
21138     no_undefined_flag_CXX \
21139     export_symbols_cmds_CXX \
21140     hardcode_libdir_flag_spec_CXX \
21141     hardcode_libdir_flag_spec_ld_CXX \
21142     hardcode_libdir_separator_CXX \
21143     hardcode_automatic_CXX \
21144     module_cmds_CXX \
21145     module_expsym_cmds_CXX \
21146     lt_cv_prog_compiler_c_o_CXX \
21147     exclude_expsyms_CXX \
21148     include_expsyms_CXX; do
21149
21150     case $var in
21151     old_archive_cmds_CXX | \
21152     old_archive_from_new_cmds_CXX | \
21153     archive_cmds_CXX | \
21154     archive_expsym_cmds_CXX | \
21155     module_cmds_CXX | \
21156     module_expsym_cmds_CXX | \
21157     old_archive_from_expsyms_cmds_CXX | \
21158     export_symbols_cmds_CXX | \
21159     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21160     postinstall_cmds | postuninstall_cmds | \
21161     old_postinstall_cmds | old_postuninstall_cmds | \
21162     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21163       # Double-quote double-evaled strings.
21164       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21165       ;;
21166     *)
21167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21168       ;;
21169     esac
21170   done
21171
21172   case $lt_echo in
21173   *'\$0 --fallback-echo"')
21174     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21175     ;;
21176   esac
21177
21178 cfgfile="$ofile"
21179
21180   cat <<__EOF__ >> "$cfgfile"
21181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21182
21183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21184
21185 # Shell to use when invoking shell scripts.
21186 SHELL=$lt_SHELL
21187
21188 # Whether or not to build shared libraries.
21189 build_libtool_libs=$enable_shared
21190
21191 # Whether or not to build static libraries.
21192 build_old_libs=$enable_static
21193
21194 # Whether or not to add -lc for building shared libraries.
21195 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21196
21197 # Whether or not to disallow shared libs when runtime libs are static
21198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21199
21200 # Whether or not to optimize for fast installation.
21201 fast_install=$enable_fast_install
21202
21203 # The host system.
21204 host_alias=$host_alias
21205 host=$host
21206 host_os=$host_os
21207
21208 # The build system.
21209 build_alias=$build_alias
21210 build=$build
21211 build_os=$build_os
21212
21213 # An echo program that does not interpret backslashes.
21214 echo=$lt_echo
21215
21216 # The archiver.
21217 AR=$lt_AR
21218 AR_FLAGS=$lt_AR_FLAGS
21219
21220 # A C compiler.
21221 LTCC=$lt_LTCC
21222
21223 # LTCC compiler flags.
21224 LTCFLAGS=$lt_LTCFLAGS
21225
21226 # A language-specific compiler.
21227 CC=$lt_compiler_CXX
21228
21229 # Is the compiler the GNU C compiler?
21230 with_gcc=$GCC_CXX
21231
21232 # An ERE matcher.
21233 EGREP=$lt_EGREP
21234
21235 # The linker used to build libraries.
21236 LD=$lt_LD_CXX
21237
21238 # Whether we need hard or soft links.
21239 LN_S=$lt_LN_S
21240
21241 # A BSD-compatible nm program.
21242 NM=$lt_NM
21243
21244 # A symbol stripping program
21245 STRIP=$lt_STRIP
21246
21247 # Used to examine libraries when file_magic_cmd begins "file"
21248 MAGIC_CMD=$MAGIC_CMD
21249
21250 # Used on cygwin: DLL creation program.
21251 DLLTOOL="$DLLTOOL"
21252
21253 # Used on cygwin: object dumper.
21254 OBJDUMP="$OBJDUMP"
21255
21256 # Used on cygwin: assembler.
21257 AS="$AS"
21258
21259 # The name of the directory that contains temporary libtool files.
21260 objdir=$objdir
21261
21262 # How to create reloadable object files.
21263 reload_flag=$lt_reload_flag
21264 reload_cmds=$lt_reload_cmds
21265
21266 # How to pass a linker flag through the compiler.
21267 wl=$lt_lt_prog_compiler_wl_CXX
21268
21269 # Object file suffix (normally "o").
21270 objext="$ac_objext"
21271
21272 # Old archive suffix (normally "a").
21273 libext="$libext"
21274
21275 # Shared library suffix (normally ".so").
21276 shrext_cmds='$shrext_cmds'
21277
21278 # Executable file suffix (normally "").
21279 exeext="$exeext"
21280
21281 # Additional compiler flags for building library objects.
21282 pic_flag=$lt_lt_prog_compiler_pic_CXX
21283 pic_mode=$pic_mode
21284
21285 # What is the maximum length of a command?
21286 max_cmd_len=$lt_cv_sys_max_cmd_len
21287
21288 # Does compiler simultaneously support -c and -o options?
21289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21290
21291 # Must we lock files when doing compilation?
21292 need_locks=$lt_need_locks
21293
21294 # Do we need the lib prefix for modules?
21295 need_lib_prefix=$need_lib_prefix
21296
21297 # Do we need a version for libraries?
21298 need_version=$need_version
21299
21300 # Whether dlopen is supported.
21301 dlopen_support=$enable_dlopen
21302
21303 # Whether dlopen of programs is supported.
21304 dlopen_self=$enable_dlopen_self
21305
21306 # Whether dlopen of statically linked programs is supported.
21307 dlopen_self_static=$enable_dlopen_self_static
21308
21309 # Compiler flag to prevent dynamic linking.
21310 link_static_flag=$lt_lt_prog_compiler_static_CXX
21311
21312 # Compiler flag to turn off builtin functions.
21313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21314
21315 # Compiler flag to allow reflexive dlopens.
21316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21317
21318 # Compiler flag to generate shared objects directly from archives.
21319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21320
21321 # Compiler flag to generate thread-safe objects.
21322 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21323
21324 # Library versioning type.
21325 version_type=$version_type
21326
21327 # Format of library name prefix.
21328 libname_spec=$lt_libname_spec
21329
21330 # List of archive names.  First name is the real one, the rest are links.
21331 # The last name is the one that the linker finds with -lNAME.
21332 library_names_spec=$lt_library_names_spec
21333
21334 # The coded name of the library, if different from the real name.
21335 soname_spec=$lt_soname_spec
21336
21337 # Commands used to build and install an old-style archive.
21338 RANLIB=$lt_RANLIB
21339 old_archive_cmds=$lt_old_archive_cmds_CXX
21340 old_postinstall_cmds=$lt_old_postinstall_cmds
21341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21342
21343 # Create an old-style archive from a shared archive.
21344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21345
21346 # Create a temporary old-style archive to link instead of a shared archive.
21347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21348
21349 # Commands used to build and install a shared archive.
21350 archive_cmds=$lt_archive_cmds_CXX
21351 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21352 postinstall_cmds=$lt_postinstall_cmds
21353 postuninstall_cmds=$lt_postuninstall_cmds
21354
21355 # Commands used to build a loadable module (assumed same as above if empty)
21356 module_cmds=$lt_module_cmds_CXX
21357 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21358
21359 # Commands to strip libraries.
21360 old_striplib=$lt_old_striplib
21361 striplib=$lt_striplib
21362
21363 # Dependencies to place before the objects being linked to create a
21364 # shared library.
21365 predep_objects=$lt_predep_objects_CXX
21366
21367 # Dependencies to place after the objects being linked to create a
21368 # shared library.
21369 postdep_objects=$lt_postdep_objects_CXX
21370
21371 # Dependencies to place before the objects being linked to create a
21372 # shared library.
21373 predeps=$lt_predeps_CXX
21374
21375 # Dependencies to place after the objects being linked to create a
21376 # shared library.
21377 postdeps=$lt_postdeps_CXX
21378
21379 # The library search path used internally by the compiler when linking
21380 # a shared library.
21381 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21382
21383 # Method to check whether dependent libraries are shared objects.
21384 deplibs_check_method=$lt_deplibs_check_method
21385
21386 # Command to use when deplibs_check_method == file_magic.
21387 file_magic_cmd=$lt_file_magic_cmd
21388
21389 # Flag that allows shared libraries with undefined symbols to be built.
21390 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21391
21392 # Flag that forces no undefined symbols.
21393 no_undefined_flag=$lt_no_undefined_flag_CXX
21394
21395 # Commands used to finish a libtool library installation in a directory.
21396 finish_cmds=$lt_finish_cmds
21397
21398 # Same as above, but a single script fragment to be evaled but not shown.
21399 finish_eval=$lt_finish_eval
21400
21401 # Take the output of nm and produce a listing of raw symbols and C names.
21402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21403
21404 # Transform the output of nm in a proper C declaration
21405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21406
21407 # Transform the output of nm in a C name address pair
21408 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21409
21410 # This is the shared library runtime path variable.
21411 runpath_var=$runpath_var
21412
21413 # This is the shared library path variable.
21414 shlibpath_var=$shlibpath_var
21415
21416 # Is shlibpath searched before the hard-coded library search path?
21417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21418
21419 # How to hardcode a shared library path into an executable.
21420 hardcode_action=$hardcode_action_CXX
21421
21422 # Whether we should hardcode library paths into libraries.
21423 hardcode_into_libs=$hardcode_into_libs
21424
21425 # Flag to hardcode \$libdir into a binary during linking.
21426 # This must work even if \$libdir does not exist.
21427 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21428
21429 # If ld is used when linking, flag to hardcode \$libdir into
21430 # a binary during linking. This must work even if \$libdir does
21431 # not exist.
21432 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21433
21434 # Whether we need a single -rpath flag with a separated argument.
21435 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21436
21437 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21438 # resulting binary.
21439 hardcode_direct=$hardcode_direct_CXX
21440
21441 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21442 # resulting binary.
21443 hardcode_minus_L=$hardcode_minus_L_CXX
21444
21445 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21446 # the resulting binary.
21447 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21448
21449 # Set to yes if building a shared library automatically hardcodes DIR into the library
21450 # and all subsequent libraries and executables linked against it.
21451 hardcode_automatic=$hardcode_automatic_CXX
21452
21453 # Variables whose values should be saved in libtool wrapper scripts and
21454 # restored at relink time.
21455 variables_saved_for_relink="$variables_saved_for_relink"
21456
21457 # Whether libtool must link a program against all its dependency libraries.
21458 link_all_deplibs=$link_all_deplibs_CXX
21459
21460 # Compile-time system search path for libraries
21461 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21462
21463 # Run-time system search path for libraries
21464 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21465
21466 # Fix the shell variable \$srcfile for the compiler.
21467 fix_srcfile_path="$fix_srcfile_path_CXX"
21468
21469 # Set to yes if exported symbols are required.
21470 always_export_symbols=$always_export_symbols_CXX
21471
21472 # The commands to list exported symbols.
21473 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21474
21475 # The commands to extract the exported symbol list from a shared archive.
21476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21477
21478 # Symbols that should not be listed in the preloaded symbols.
21479 exclude_expsyms=$lt_exclude_expsyms_CXX
21480
21481 # Symbols that must always be exported.
21482 include_expsyms=$lt_include_expsyms_CXX
21483
21484 # ### END LIBTOOL TAG CONFIG: $tagname
21485
21486 __EOF__
21487
21488
21489 else
21490   # If there is no Makefile yet, we rely on a make rule to execute
21491   # `config.status --recheck' to rerun these tests and create the
21492   # libtool script then.
21493   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21494   if test -f "$ltmain_in"; then
21495     test -f Makefile && make "$ltmain"
21496   fi
21497 fi
21498
21499
21500 ac_ext=c
21501 ac_cpp='$CPP $CPPFLAGS'
21502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505
21506 CC=$lt_save_CC
21507 LDCXX=$LD
21508 LD=$lt_save_LD
21509 GCC=$lt_save_GCC
21510 with_gnu_ldcxx=$with_gnu_ld
21511 with_gnu_ld=$lt_save_with_gnu_ld
21512 lt_cv_path_LDCXX=$lt_cv_path_LD
21513 lt_cv_path_LD=$lt_save_path_LD
21514 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21515 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21516
21517         else
21518           tagname=""
21519         fi
21520         ;;
21521
21522       F77)
21523         if test -n "$F77" && test "X$F77" != "Xno"; then
21524
21525 ac_ext=f
21526 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21527 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21529
21530
21531 archive_cmds_need_lc_F77=no
21532 allow_undefined_flag_F77=
21533 always_export_symbols_F77=no
21534 archive_expsym_cmds_F77=
21535 export_dynamic_flag_spec_F77=
21536 hardcode_direct_F77=no
21537 hardcode_libdir_flag_spec_F77=
21538 hardcode_libdir_flag_spec_ld_F77=
21539 hardcode_libdir_separator_F77=
21540 hardcode_minus_L_F77=no
21541 hardcode_automatic_F77=no
21542 module_cmds_F77=
21543 module_expsym_cmds_F77=
21544 link_all_deplibs_F77=unknown
21545 old_archive_cmds_F77=$old_archive_cmds
21546 no_undefined_flag_F77=
21547 whole_archive_flag_spec_F77=
21548 enable_shared_with_static_runtimes_F77=no
21549
21550 # Source file extension for f77 test sources.
21551 ac_ext=f
21552
21553 # Object file extension for compiled f77 test sources.
21554 objext=o
21555 objext_F77=$objext
21556
21557 # Code to be used in simple compile tests
21558 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21559
21560 # Code to be used in simple link tests
21561 lt_simple_link_test_code="      program t\n      end\n"
21562
21563 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21564
21565 # If no C compiler was specified, use CC.
21566 LTCC=${LTCC-"$CC"}
21567
21568 # If no C compiler flags were specified, use CFLAGS.
21569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21570
21571 # Allow CC to be a program name with arguments.
21572 compiler=$CC
21573
21574
21575 # save warnings/boilerplate of simple test code
21576 ac_outfile=conftest.$ac_objext
21577 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21579 _lt_compiler_boilerplate=`cat conftest.err`
21580 $rm conftest*
21581
21582 ac_outfile=conftest.$ac_objext
21583 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21585 _lt_linker_boilerplate=`cat conftest.err`
21586 $rm conftest*
21587
21588
21589 # Allow CC to be a program name with arguments.
21590 lt_save_CC="$CC"
21591 CC=${F77-"f77"}
21592 compiler=$CC
21593 compiler_F77=$CC
21594 for cc_temp in $compiler""; do
21595   case $cc_temp in
21596     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21597     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21598     \-*) ;;
21599     *) break;;
21600   esac
21601 done
21602 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21603
21604
21605 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21606 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21607 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21608 echo "${ECHO_T}$can_build_shared" >&6; }
21609
21610 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21611 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21612 test "$can_build_shared" = "no" && enable_shared=no
21613
21614 # On AIX, shared libraries and static libraries use the same namespace, and
21615 # are all built from PIC.
21616 case $host_os in
21617 aix3*)
21618   test "$enable_shared" = yes && enable_static=no
21619   if test -n "$RANLIB"; then
21620     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21621     postinstall_cmds='$RANLIB $lib'
21622   fi
21623   ;;
21624 aix4* | aix5*)
21625   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21626     test "$enable_shared" = yes && enable_static=no
21627   fi
21628   ;;
21629 esac
21630 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21631 echo "${ECHO_T}$enable_shared" >&6; }
21632
21633 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21635 # Make sure either enable_shared or enable_static is yes.
21636 test "$enable_shared" = yes || enable_static=yes
21637 { echo "$as_me:$LINENO: result: $enable_static" >&5
21638 echo "${ECHO_T}$enable_static" >&6; }
21639
21640 GCC_F77="$G77"
21641 LD_F77="$LD"
21642
21643 lt_prog_compiler_wl_F77=
21644 lt_prog_compiler_pic_F77=
21645 lt_prog_compiler_static_F77=
21646
21647 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21649
21650   if test "$GCC" = yes; then
21651     lt_prog_compiler_wl_F77='-Wl,'
21652     lt_prog_compiler_static_F77='-static'
21653
21654     case $host_os in
21655       aix*)
21656       # All AIX code is PIC.
21657       if test "$host_cpu" = ia64; then
21658         # AIX 5 now supports IA64 processor
21659         lt_prog_compiler_static_F77='-Bstatic'
21660       fi
21661       ;;
21662
21663     amigaos*)
21664       # FIXME: we need at least 68020 code to build shared libraries, but
21665       # adding the `-m68020' flag to GCC prevents building anything better,
21666       # like `-m68040'.
21667       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21668       ;;
21669
21670     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21671       # PIC is the default for these OSes.
21672       ;;
21673
21674     mingw* | pw32* | os2*)
21675       # This hack is so that the source file can tell whether it is being
21676       # built for inclusion in a dll (and should export symbols for example).
21677       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21678       ;;
21679
21680     darwin* | rhapsody*)
21681       # PIC is the default on this platform
21682       # Common symbols not allowed in MH_DYLIB files
21683       lt_prog_compiler_pic_F77='-fno-common'
21684       ;;
21685
21686     interix3*)
21687       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21688       # Instead, we relocate shared libraries at runtime.
21689       ;;
21690
21691     msdosdjgpp*)
21692       # Just because we use GCC doesn't mean we suddenly get shared libraries
21693       # on systems that don't support them.
21694       lt_prog_compiler_can_build_shared_F77=no
21695       enable_shared=no
21696       ;;
21697
21698     sysv4*MP*)
21699       if test -d /usr/nec; then
21700         lt_prog_compiler_pic_F77=-Kconform_pic
21701       fi
21702       ;;
21703
21704     hpux*)
21705       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21706       # not for PA HP-UX.
21707       case $host_cpu in
21708       hppa*64*|ia64*)
21709         # +Z the default
21710         ;;
21711       *)
21712         lt_prog_compiler_pic_F77='-fPIC'
21713         ;;
21714       esac
21715       ;;
21716
21717     *)
21718       lt_prog_compiler_pic_F77='-fPIC'
21719       ;;
21720     esac
21721   else
21722     # PORTME Check for flag to pass linker flags through the system compiler.
21723     case $host_os in
21724     aix*)
21725       lt_prog_compiler_wl_F77='-Wl,'
21726       if test "$host_cpu" = ia64; then
21727         # AIX 5 now supports IA64 processor
21728         lt_prog_compiler_static_F77='-Bstatic'
21729       else
21730         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21731       fi
21732       ;;
21733       darwin*)
21734         # PIC is the default on this platform
21735         # Common symbols not allowed in MH_DYLIB files
21736        case $cc_basename in
21737          xlc*)
21738          lt_prog_compiler_pic_F77='-qnocommon'
21739          lt_prog_compiler_wl_F77='-Wl,'
21740          ;;
21741        esac
21742        ;;
21743
21744     mingw* | pw32* | os2*)
21745       # This hack is so that the source file can tell whether it is being
21746       # built for inclusion in a dll (and should export symbols for example).
21747       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21748       ;;
21749
21750     hpux9* | hpux10* | hpux11*)
21751       lt_prog_compiler_wl_F77='-Wl,'
21752       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21753       # not for PA HP-UX.
21754       case $host_cpu in
21755       hppa*64*|ia64*)
21756         # +Z the default
21757         ;;
21758       *)
21759         lt_prog_compiler_pic_F77='+Z'
21760         ;;
21761       esac
21762       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21763       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21764       ;;
21765
21766     irix5* | irix6* | nonstopux*)
21767       lt_prog_compiler_wl_F77='-Wl,'
21768       # PIC (with -KPIC) is the default.
21769       lt_prog_compiler_static_F77='-non_shared'
21770       ;;
21771
21772     newsos6)
21773       lt_prog_compiler_pic_F77='-KPIC'
21774       lt_prog_compiler_static_F77='-Bstatic'
21775       ;;
21776
21777     linux*)
21778       case $cc_basename in
21779       icc* | ecc*)
21780         lt_prog_compiler_wl_F77='-Wl,'
21781         lt_prog_compiler_pic_F77='-KPIC'
21782         lt_prog_compiler_static_F77='-static'
21783         ;;
21784       pgcc* | pgf77* | pgf90* | pgf95*)
21785         # Portland Group compilers (*not* the Pentium gcc compiler,
21786         # which looks to be a dead project)
21787         lt_prog_compiler_wl_F77='-Wl,'
21788         lt_prog_compiler_pic_F77='-fpic'
21789         lt_prog_compiler_static_F77='-Bstatic'
21790         ;;
21791       ccc*)
21792         lt_prog_compiler_wl_F77='-Wl,'
21793         # All Alpha code is PIC.
21794         lt_prog_compiler_static_F77='-non_shared'
21795         ;;
21796       esac
21797       ;;
21798
21799     osf3* | osf4* | osf5*)
21800       lt_prog_compiler_wl_F77='-Wl,'
21801       # All OSF/1 code is PIC.
21802       lt_prog_compiler_static_F77='-non_shared'
21803       ;;
21804
21805     solaris*)
21806       lt_prog_compiler_pic_F77='-KPIC'
21807       lt_prog_compiler_static_F77='-Bstatic'
21808       case $cc_basename in
21809       f77* | f90* | f95*)
21810         lt_prog_compiler_wl_F77='-Qoption ld ';;
21811       *)
21812         lt_prog_compiler_wl_F77='-Wl,';;
21813       esac
21814       ;;
21815
21816     sunos4*)
21817       lt_prog_compiler_wl_F77='-Qoption ld '
21818       lt_prog_compiler_pic_F77='-PIC'
21819       lt_prog_compiler_static_F77='-Bstatic'
21820       ;;
21821
21822     sysv4 | sysv4.2uw2* | sysv4.3*)
21823       lt_prog_compiler_wl_F77='-Wl,'
21824       lt_prog_compiler_pic_F77='-KPIC'
21825       lt_prog_compiler_static_F77='-Bstatic'
21826       ;;
21827
21828     sysv4*MP*)
21829       if test -d /usr/nec ;then
21830         lt_prog_compiler_pic_F77='-Kconform_pic'
21831         lt_prog_compiler_static_F77='-Bstatic'
21832       fi
21833       ;;
21834
21835     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21836       lt_prog_compiler_wl_F77='-Wl,'
21837       lt_prog_compiler_pic_F77='-KPIC'
21838       lt_prog_compiler_static_F77='-Bstatic'
21839       ;;
21840
21841     unicos*)
21842       lt_prog_compiler_wl_F77='-Wl,'
21843       lt_prog_compiler_can_build_shared_F77=no
21844       ;;
21845
21846     uts4*)
21847       lt_prog_compiler_pic_F77='-pic'
21848       lt_prog_compiler_static_F77='-Bstatic'
21849       ;;
21850
21851     *)
21852       lt_prog_compiler_can_build_shared_F77=no
21853       ;;
21854     esac
21855   fi
21856
21857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21858 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21859
21860 #
21861 # Check to make sure the PIC flag actually works.
21862 #
21863 if test -n "$lt_prog_compiler_pic_F77"; then
21864
21865 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21866 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21867 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21868   echo $ECHO_N "(cached) $ECHO_C" >&6
21869 else
21870   lt_prog_compiler_pic_works_F77=no
21871   ac_outfile=conftest.$ac_objext
21872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21873    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21874    # Insert the option either (1) after the last *FLAGS variable, or
21875    # (2) before a word containing "conftest.", or (3) at the end.
21876    # Note that $ac_compile itself does not contain backslashes and begins
21877    # with a dollar sign (not a hyphen), so the echo should work correctly.
21878    # The option is referenced via a variable to avoid confusing sed.
21879    lt_compile=`echo "$ac_compile" | $SED \
21880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21882    -e 's:$: $lt_compiler_flag:'`
21883    (eval echo "\"\$as_me:21883: $lt_compile\"" >&5)
21884    (eval "$lt_compile" 2>conftest.err)
21885    ac_status=$?
21886    cat conftest.err >&5
21887    echo "$as_me:21887: \$? = $ac_status" >&5
21888    if (exit $ac_status) && test -s "$ac_outfile"; then
21889      # The compiler can only warn and ignore the option if not recognized
21890      # So say no if there are warnings other than the usual output.
21891      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21892      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21893      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21894        lt_prog_compiler_pic_works_F77=yes
21895      fi
21896    fi
21897    $rm conftest*
21898
21899 fi
21900 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21901 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21902
21903 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21904     case $lt_prog_compiler_pic_F77 in
21905      "" | " "*) ;;
21906      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21907      esac
21908 else
21909     lt_prog_compiler_pic_F77=
21910      lt_prog_compiler_can_build_shared_F77=no
21911 fi
21912
21913 fi
21914 case $host_os in
21915   # For platforms which do not support PIC, -DPIC is meaningless:
21916   *djgpp*)
21917     lt_prog_compiler_pic_F77=
21918     ;;
21919   *)
21920     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21921     ;;
21922 esac
21923
21924 #
21925 # Check to make sure the static flag actually works.
21926 #
21927 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21928 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21930 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933   lt_prog_compiler_static_works_F77=no
21934    save_LDFLAGS="$LDFLAGS"
21935    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21936    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21937    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21938      # The linker can only warn and ignore the option if not recognized
21939      # So say no if there are warnings
21940      if test -s conftest.err; then
21941        # Append any errors to the config.log.
21942        cat conftest.err 1>&5
21943        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21944        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21945        if diff conftest.exp conftest.er2 >/dev/null; then
21946          lt_prog_compiler_static_works_F77=yes
21947        fi
21948      else
21949        lt_prog_compiler_static_works_F77=yes
21950      fi
21951    fi
21952    $rm conftest*
21953    LDFLAGS="$save_LDFLAGS"
21954
21955 fi
21956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21957 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21958
21959 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21960     :
21961 else
21962     lt_prog_compiler_static_F77=
21963 fi
21964
21965
21966 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21968 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   lt_cv_prog_compiler_c_o_F77=no
21972    $rm -r conftest 2>/dev/null
21973    mkdir conftest
21974    cd conftest
21975    mkdir out
21976    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21977
21978    lt_compiler_flag="-o out/conftest2.$ac_objext"
21979    # Insert the option either (1) after the last *FLAGS variable, or
21980    # (2) before a word containing "conftest.", or (3) at the end.
21981    # Note that $ac_compile itself does not contain backslashes and begins
21982    # with a dollar sign (not a hyphen), so the echo should work correctly.
21983    lt_compile=`echo "$ac_compile" | $SED \
21984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21986    -e 's:$: $lt_compiler_flag:'`
21987    (eval echo "\"\$as_me:21987: $lt_compile\"" >&5)
21988    (eval "$lt_compile" 2>out/conftest.err)
21989    ac_status=$?
21990    cat out/conftest.err >&5
21991    echo "$as_me:21991: \$? = $ac_status" >&5
21992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21993    then
21994      # The compiler can only warn and ignore the option if not recognized
21995      # So say no if there are warnings
21996      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21999        lt_cv_prog_compiler_c_o_F77=yes
22000      fi
22001    fi
22002    chmod u+w . 2>&5
22003    $rm conftest*
22004    # SGI C++ compiler will create directory out/ii_files/ for
22005    # template instantiation
22006    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22007    $rm out/* && rmdir out
22008    cd ..
22009    rmdir conftest
22010    $rm conftest*
22011
22012 fi
22013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22015
22016
22017 hard_links="nottested"
22018 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22019   # do not overwrite the value of need_locks provided by the user
22020   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22022   hard_links=yes
22023   $rm conftest*
22024   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22025   touch conftest.a
22026   ln conftest.a conftest.b 2>&5 || hard_links=no
22027   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22028   { echo "$as_me:$LINENO: result: $hard_links" >&5
22029 echo "${ECHO_T}$hard_links" >&6; }
22030   if test "$hard_links" = no; then
22031     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22033     need_locks=warn
22034   fi
22035 else
22036   need_locks=no
22037 fi
22038
22039 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22041
22042   runpath_var=
22043   allow_undefined_flag_F77=
22044   enable_shared_with_static_runtimes_F77=no
22045   archive_cmds_F77=
22046   archive_expsym_cmds_F77=
22047   old_archive_From_new_cmds_F77=
22048   old_archive_from_expsyms_cmds_F77=
22049   export_dynamic_flag_spec_F77=
22050   whole_archive_flag_spec_F77=
22051   thread_safe_flag_spec_F77=
22052   hardcode_libdir_flag_spec_F77=
22053   hardcode_libdir_flag_spec_ld_F77=
22054   hardcode_libdir_separator_F77=
22055   hardcode_direct_F77=no
22056   hardcode_minus_L_F77=no
22057   hardcode_shlibpath_var_F77=unsupported
22058   link_all_deplibs_F77=unknown
22059   hardcode_automatic_F77=no
22060   module_cmds_F77=
22061   module_expsym_cmds_F77=
22062   always_export_symbols_F77=no
22063   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22064   # include_expsyms should be a list of space-separated symbols to be *always*
22065   # included in the symbol list
22066   include_expsyms_F77=
22067   # exclude_expsyms can be an extended regexp of symbols to exclude
22068   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22069   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22070   # as well as any symbol that contains `d'.
22071   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22072   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22073   # platforms (ab)use it in PIC code, but their linkers get confused if
22074   # the symbol is explicitly referenced.  Since portable code cannot
22075   # rely on this symbol name, it's probably fine to never include it in
22076   # preloaded symbol tables.
22077   extract_expsyms_cmds=
22078   # Just being paranoid about ensuring that cc_basename is set.
22079   for cc_temp in $compiler""; do
22080   case $cc_temp in
22081     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22082     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22083     \-*) ;;
22084     *) break;;
22085   esac
22086 done
22087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22088
22089   case $host_os in
22090   cygwin* | mingw* | pw32*)
22091     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22092     # When not using gcc, we currently assume that we are using
22093     # Microsoft Visual C++.
22094     if test "$GCC" != yes; then
22095       with_gnu_ld=no
22096     fi
22097     ;;
22098   interix*)
22099     # we just hope/assume this is gcc and not c89 (= MSVC++)
22100     with_gnu_ld=yes
22101     ;;
22102   openbsd*)
22103     with_gnu_ld=no
22104     ;;
22105   esac
22106
22107   ld_shlibs_F77=yes
22108   if test "$with_gnu_ld" = yes; then
22109     # If archive_cmds runs LD, not CC, wlarc should be empty
22110     wlarc='${wl}'
22111
22112     # Set some defaults for GNU ld with shared library support. These
22113     # are reset later if shared libraries are not supported. Putting them
22114     # here allows them to be overridden if necessary.
22115     runpath_var=LD_RUN_PATH
22116     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22117     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22118     # ancient GNU ld didn't support --whole-archive et. al.
22119     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22120         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22121       else
22122         whole_archive_flag_spec_F77=
22123     fi
22124     supports_anon_versioning=no
22125     case `$LD -v 2>/dev/null` in
22126       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22127       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22128       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22129       *\ 2.11.*) ;; # other 2.11 versions
22130       *) supports_anon_versioning=yes ;;
22131     esac
22132
22133     # See if GNU ld supports shared libraries.
22134     case $host_os in
22135     aix3* | aix4* | aix5*)
22136       # On AIX/PPC, the GNU linker is very broken
22137       if test "$host_cpu" != ia64; then
22138         ld_shlibs_F77=no
22139         cat <<EOF 1>&2
22140
22141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22142 *** to be unable to reliably create shared libraries on AIX.
22143 *** Therefore, libtool is disabling shared libraries support.  If you
22144 *** really care for shared libraries, you may want to modify your PATH
22145 *** so that a non-GNU linker is found, and then restart.
22146
22147 EOF
22148       fi
22149       ;;
22150
22151     amigaos*)
22152       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)'
22153       hardcode_libdir_flag_spec_F77='-L$libdir'
22154       hardcode_minus_L_F77=yes
22155
22156       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22157       # that the semantics of dynamic libraries on AmigaOS, at least up
22158       # to version 4, is to share data among multiple programs linked
22159       # with the same dynamic library.  Since this doesn't match the
22160       # behavior of shared libraries on other platforms, we can't use
22161       # them.
22162       ld_shlibs_F77=no
22163       ;;
22164
22165     beos*)
22166       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22167         allow_undefined_flag_F77=unsupported
22168         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22169         # support --undefined.  This deserves some investigation.  FIXME
22170         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171       else
22172         ld_shlibs_F77=no
22173       fi
22174       ;;
22175
22176     cygwin* | mingw* | pw32*)
22177       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22178       # as there is no search path for DLLs.
22179       hardcode_libdir_flag_spec_F77='-L$libdir'
22180       allow_undefined_flag_F77=unsupported
22181       always_export_symbols_F77=no
22182       enable_shared_with_static_runtimes_F77=yes
22183       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22184
22185       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22186         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22187         # If the export-symbols file already is a .def file (1st line
22188         # is EXPORTS), use it as is; otherwise, prepend...
22189         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22190           cp $export_symbols $output_objdir/$soname.def;
22191         else
22192           echo EXPORTS > $output_objdir/$soname.def;
22193           cat $export_symbols >> $output_objdir/$soname.def;
22194         fi~
22195         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22196       else
22197         ld_shlibs_F77=no
22198       fi
22199       ;;
22200
22201     interix3*)
22202       hardcode_direct_F77=no
22203       hardcode_shlibpath_var_F77=no
22204       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22205       export_dynamic_flag_spec_F77='${wl}-E'
22206       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22207       # Instead, shared libraries are loaded at an image base (0x10000000 by
22208       # default) and relocated if they conflict, which is a slow very memory
22209       # consuming and fragmenting process.  To avoid this, we pick a random,
22210       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22211       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22212       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'
22213       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'
22214       ;;
22215
22216     linux*)
22217       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22218         tmp_addflag=
22219         case $cc_basename,$host_cpu in
22220         pgcc*)                          # Portland Group C compiler
22221           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'
22222           tmp_addflag=' $pic_flag'
22223           ;;
22224         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22225           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'
22226           tmp_addflag=' $pic_flag -Mnomain' ;;
22227         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22228           tmp_addflag=' -i_dynamic' ;;
22229         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22230           tmp_addflag=' -i_dynamic -nofor_main' ;;
22231         ifc* | ifort*)                  # Intel Fortran compiler
22232           tmp_addflag=' -nofor_main' ;;
22233         esac
22234         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235
22236         if test $supports_anon_versioning = yes; then
22237           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22238   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22239   $echo "local: *; };" >> $output_objdir/$libname.ver~
22240           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22241         fi
22242       else
22243         ld_shlibs_F77=no
22244       fi
22245       ;;
22246
22247     netbsd*)
22248       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22249         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22250         wlarc=
22251       else
22252         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22253         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22254       fi
22255       ;;
22256
22257     solaris*)
22258       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22259         ld_shlibs_F77=no
22260         cat <<EOF 1>&2
22261
22262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22263 *** create shared libraries on Solaris systems.  Therefore, libtool
22264 *** is disabling shared libraries support.  We urge you to upgrade GNU
22265 *** binutils to release 2.9.1 or newer.  Another option is to modify
22266 *** your PATH or compiler configuration so that the native linker is
22267 *** used, and then restart.
22268
22269 EOF
22270       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22271         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22272         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22273       else
22274         ld_shlibs_F77=no
22275       fi
22276       ;;
22277
22278     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22279       case `$LD -v 2>&1` in
22280         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22281         ld_shlibs_F77=no
22282         cat <<_LT_EOF 1>&2
22283
22284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22285 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22286 *** is disabling shared libraries support.  We urge you to upgrade GNU
22287 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22288 *** your PATH or compiler configuration so that the native linker is
22289 *** used, and then restart.
22290
22291 _LT_EOF
22292         ;;
22293         *)
22294           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22295             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22296             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22297             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22298           else
22299             ld_shlibs_F77=no
22300           fi
22301         ;;
22302       esac
22303       ;;
22304
22305     sunos4*)
22306       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22307       wlarc=
22308       hardcode_direct_F77=yes
22309       hardcode_shlibpath_var_F77=no
22310       ;;
22311
22312     *)
22313       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22314         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22316       else
22317         ld_shlibs_F77=no
22318       fi
22319       ;;
22320     esac
22321
22322     if test "$ld_shlibs_F77" = no; then
22323       runpath_var=
22324       hardcode_libdir_flag_spec_F77=
22325       export_dynamic_flag_spec_F77=
22326       whole_archive_flag_spec_F77=
22327     fi
22328   else
22329     # PORTME fill in a description of your system's linker (not GNU ld)
22330     case $host_os in
22331     aix3*)
22332       allow_undefined_flag_F77=unsupported
22333       always_export_symbols_F77=yes
22334       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'
22335       # Note: this linker hardcodes the directories in LIBPATH if there
22336       # are no directories specified by -L.
22337       hardcode_minus_L_F77=yes
22338       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22339         # Neither direct hardcoding nor static linking is supported with a
22340         # broken collect2.
22341         hardcode_direct_F77=unsupported
22342       fi
22343       ;;
22344
22345     aix4* | aix5*)
22346       if test "$host_cpu" = ia64; then
22347         # On IA64, the linker does run time linking by default, so we don't
22348         # have to do anything special.
22349         aix_use_runtimelinking=no
22350         exp_sym_flag='-Bexport'
22351         no_entry_flag=""
22352       else
22353         # If we're using GNU nm, then we don't want the "-C" option.
22354         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22355         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22356           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'
22357         else
22358           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'
22359         fi
22360         aix_use_runtimelinking=no
22361
22362         # Test if we are trying to use run time linking or normal
22363         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22364         # need to do runtime linking.
22365         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22366           for ld_flag in $LDFLAGS; do
22367           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22368             aix_use_runtimelinking=yes
22369             break
22370           fi
22371           done
22372           ;;
22373         esac
22374
22375         exp_sym_flag='-bexport'
22376         no_entry_flag='-bnoentry'
22377       fi
22378
22379       # When large executables or shared objects are built, AIX ld can
22380       # have problems creating the table of contents.  If linking a library
22381       # or program results in "error TOC overflow" add -mminimal-toc to
22382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22384
22385       archive_cmds_F77=''
22386       hardcode_direct_F77=yes
22387       hardcode_libdir_separator_F77=':'
22388       link_all_deplibs_F77=yes
22389
22390       if test "$GCC" = yes; then
22391         case $host_os in aix4.[012]|aix4.[012].*)
22392         # We only want to do this on AIX 4.2 and lower, the check
22393         # below for broken collect2 doesn't work under 4.3+
22394           collect2name=`${CC} -print-prog-name=collect2`
22395           if test -f "$collect2name" && \
22396            strings "$collect2name" | grep resolve_lib_name >/dev/null
22397           then
22398           # We have reworked collect2
22399           hardcode_direct_F77=yes
22400           else
22401           # We have old collect2
22402           hardcode_direct_F77=unsupported
22403           # It fails to find uninstalled libraries when the uninstalled
22404           # path is not listed in the libpath.  Setting hardcode_minus_L
22405           # to unsupported forces relinking
22406           hardcode_minus_L_F77=yes
22407           hardcode_libdir_flag_spec_F77='-L$libdir'
22408           hardcode_libdir_separator_F77=
22409           fi
22410           ;;
22411         esac
22412         shared_flag='-shared'
22413         if test "$aix_use_runtimelinking" = yes; then
22414           shared_flag="$shared_flag "'${wl}-G'
22415         fi
22416       else
22417         # not using gcc
22418         if test "$host_cpu" = ia64; then
22419         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22420         # chokes on -Wl,-G. The following line is correct:
22421           shared_flag='-G'
22422         else
22423           if test "$aix_use_runtimelinking" = yes; then
22424             shared_flag='${wl}-G'
22425           else
22426             shared_flag='${wl}-bM:SRE'
22427           fi
22428         fi
22429       fi
22430
22431       # It seems that -bexpall does not export symbols beginning with
22432       # underscore (_), so it is better to generate a list of symbols to export.
22433       always_export_symbols_F77=yes
22434       if test "$aix_use_runtimelinking" = yes; then
22435         # Warning - without using the other runtime loading flags (-brtl),
22436         # -berok will link without error, but may produce a broken library.
22437         allow_undefined_flag_F77='-berok'
22438        # Determine the default libpath from the value encoded in an empty executable.
22439        cat >conftest.$ac_ext <<_ACEOF
22440       program main
22441
22442       end
22443 _ACEOF
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (ac_try="$ac_link"
22446 case "(($ac_try" in
22447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448   *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451   (eval "$ac_link") 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } &&
22458          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22459   { (case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_try") 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; } &&
22468          { ac_try='test -s conftest$ac_exeext'
22469   { (case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_try") 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); }; }; then
22478
22479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22480 }'`
22481 # Check for a 64-bit object if we didn't find anything.
22482 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; }
22483 }'`; fi
22484 else
22485   echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488
22489 fi
22490
22491 rm -f core conftest.err conftest.$ac_objext \
22492       conftest$ac_exeext conftest.$ac_ext
22493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22494
22495        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22496         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"
22497        else
22498         if test "$host_cpu" = ia64; then
22499           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22500           allow_undefined_flag_F77="-z nodefs"
22501           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"
22502         else
22503          # Determine the default libpath from the value encoded in an empty executable.
22504          cat >conftest.$ac_ext <<_ACEOF
22505       program main
22506
22507       end
22508 _ACEOF
22509 rm -f conftest.$ac_objext conftest$ac_exeext
22510 if { (ac_try="$ac_link"
22511 case "(($ac_try" in
22512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513   *) ac_try_echo=$ac_try;;
22514 esac
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516   (eval "$ac_link") 2>conftest.er1
22517   ac_status=$?
22518   grep -v '^ *+' conftest.er1 >conftest.err
22519   rm -f conftest.er1
22520   cat conftest.err >&5
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); } &&
22523          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22524   { (case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_try") 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); }; } &&
22533          { ac_try='test -s conftest$ac_exeext'
22534   { (case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_try") 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543
22544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22545 }'`
22546 # Check for a 64-bit object if we didn't find anything.
22547 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; }
22548 }'`; fi
22549 else
22550   echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22552
22553
22554 fi
22555
22556 rm -f core conftest.err conftest.$ac_objext \
22557       conftest$ac_exeext conftest.$ac_ext
22558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22559
22560          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22561           # Warning - without using the other run time loading flags,
22562           # -berok will link without error, but may produce a broken library.
22563           no_undefined_flag_F77=' ${wl}-bernotok'
22564           allow_undefined_flag_F77=' ${wl}-berok'
22565           # Exported symbols can be pulled into shared objects from archives
22566           whole_archive_flag_spec_F77='$convenience'
22567           archive_cmds_need_lc_F77=yes
22568           # This is similar to how AIX traditionally builds its shared libraries.
22569           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'
22570         fi
22571       fi
22572       ;;
22573
22574     amigaos*)
22575       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)'
22576       hardcode_libdir_flag_spec_F77='-L$libdir'
22577       hardcode_minus_L_F77=yes
22578       # see comment about different semantics on the GNU ld section
22579       ld_shlibs_F77=no
22580       ;;
22581
22582     bsdi[45]*)
22583       export_dynamic_flag_spec_F77=-rdynamic
22584       ;;
22585
22586     cygwin* | mingw* | pw32*)
22587       # When not using gcc, we currently assume that we are using
22588       # Microsoft Visual C++.
22589       # hardcode_libdir_flag_spec is actually meaningless, as there is
22590       # no search path for DLLs.
22591       hardcode_libdir_flag_spec_F77=' '
22592       allow_undefined_flag_F77=unsupported
22593       # Tell ltmain to make .lib files, not .a files.
22594       libext=lib
22595       # Tell ltmain to make .dll files, not .so files.
22596       shrext_cmds=".dll"
22597       # FIXME: Setting linknames here is a bad hack.
22598       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22599       # The linker will automatically build a .lib file if we build a DLL.
22600       old_archive_From_new_cmds_F77='true'
22601       # FIXME: Should let the user specify the lib program.
22602       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22603       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22604       enable_shared_with_static_runtimes_F77=yes
22605       ;;
22606
22607     darwin* | rhapsody*)
22608       case $host_os in
22609         rhapsody* | darwin1.[012])
22610          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22611          ;;
22612        *) # Darwin 1.3 on
22613          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22614            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22615          else
22616            case ${MACOSX_DEPLOYMENT_TARGET} in
22617              10.[012])
22618                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22619                ;;
22620              10.*)
22621                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22622                ;;
22623            esac
22624          fi
22625          ;;
22626       esac
22627       archive_cmds_need_lc_F77=no
22628       hardcode_direct_F77=no
22629       hardcode_automatic_F77=yes
22630       hardcode_shlibpath_var_F77=unsupported
22631       whole_archive_flag_spec_F77=''
22632       link_all_deplibs_F77=yes
22633     if test "$GCC" = yes ; then
22634         output_verbose_link_cmd='echo'
22635         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22636       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22637       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22638       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}'
22639       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}'
22640     else
22641       case $cc_basename in
22642         xlc*)
22643          output_verbose_link_cmd='echo'
22644          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22645          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22646           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22647          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}'
22648           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}'
22649           ;;
22650        *)
22651          ld_shlibs_F77=no
22652           ;;
22653       esac
22654     fi
22655       ;;
22656
22657     dgux*)
22658       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22659       hardcode_libdir_flag_spec_F77='-L$libdir'
22660       hardcode_shlibpath_var_F77=no
22661       ;;
22662
22663     freebsd1*)
22664       ld_shlibs_F77=no
22665       ;;
22666
22667     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22668     # support.  Future versions do this automatically, but an explicit c++rt0.o
22669     # does not break anything, and helps significantly (at the cost of a little
22670     # extra space).
22671     freebsd2.2*)
22672       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22673       hardcode_libdir_flag_spec_F77='-R$libdir'
22674       hardcode_direct_F77=yes
22675       hardcode_shlibpath_var_F77=no
22676       ;;
22677
22678     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22679     freebsd2*)
22680       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22681       hardcode_direct_F77=yes
22682       hardcode_minus_L_F77=yes
22683       hardcode_shlibpath_var_F77=no
22684       ;;
22685
22686     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22687     freebsd* | kfreebsd*-gnu | dragonfly*)
22688       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22689       hardcode_libdir_flag_spec_F77='-R$libdir'
22690       hardcode_direct_F77=yes
22691       hardcode_shlibpath_var_F77=no
22692       ;;
22693
22694     hpux9*)
22695       if test "$GCC" = yes; then
22696         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'
22697       else
22698         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'
22699       fi
22700       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22701       hardcode_libdir_separator_F77=:
22702       hardcode_direct_F77=yes
22703
22704       # hardcode_minus_L: Not really in the search PATH,
22705       # but as the default location of the library.
22706       hardcode_minus_L_F77=yes
22707       export_dynamic_flag_spec_F77='${wl}-E'
22708       ;;
22709
22710     hpux10*)
22711       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22712         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22713       else
22714         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22715       fi
22716       if test "$with_gnu_ld" = no; then
22717         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22718         hardcode_libdir_separator_F77=:
22719
22720         hardcode_direct_F77=yes
22721         export_dynamic_flag_spec_F77='${wl}-E'
22722
22723         # hardcode_minus_L: Not really in the search PATH,
22724         # but as the default location of the library.
22725         hardcode_minus_L_F77=yes
22726       fi
22727       ;;
22728
22729     hpux11*)
22730       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22731         case $host_cpu in
22732         hppa*64*)
22733           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22734           ;;
22735         ia64*)
22736           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22737           ;;
22738         *)
22739           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22740           ;;
22741         esac
22742       else
22743         case $host_cpu in
22744         hppa*64*)
22745           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22746           ;;
22747         ia64*)
22748           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22749           ;;
22750         *)
22751           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22752           ;;
22753         esac
22754       fi
22755       if test "$with_gnu_ld" = no; then
22756         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22757         hardcode_libdir_separator_F77=:
22758
22759         case $host_cpu in
22760         hppa*64*|ia64*)
22761           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22762           hardcode_direct_F77=no
22763           hardcode_shlibpath_var_F77=no
22764           ;;
22765         *)
22766           hardcode_direct_F77=yes
22767           export_dynamic_flag_spec_F77='${wl}-E'
22768
22769           # hardcode_minus_L: Not really in the search PATH,
22770           # but as the default location of the library.
22771           hardcode_minus_L_F77=yes
22772           ;;
22773         esac
22774       fi
22775       ;;
22776
22777     irix5* | irix6* | nonstopux*)
22778       if test "$GCC" = yes; then
22779         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'
22780       else
22781         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'
22782         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22783       fi
22784       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22785       hardcode_libdir_separator_F77=:
22786       link_all_deplibs_F77=yes
22787       ;;
22788
22789     netbsd*)
22790       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22791         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22792       else
22793         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22794       fi
22795       hardcode_libdir_flag_spec_F77='-R$libdir'
22796       hardcode_direct_F77=yes
22797       hardcode_shlibpath_var_F77=no
22798       ;;
22799
22800     newsos6)
22801       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22802       hardcode_direct_F77=yes
22803       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22804       hardcode_libdir_separator_F77=:
22805       hardcode_shlibpath_var_F77=no
22806       ;;
22807
22808     openbsd*)
22809       hardcode_direct_F77=yes
22810       hardcode_shlibpath_var_F77=no
22811       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22812         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22813         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22814         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22815         export_dynamic_flag_spec_F77='${wl}-E'
22816       else
22817        case $host_os in
22818          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22819            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22820            hardcode_libdir_flag_spec_F77='-R$libdir'
22821            ;;
22822          *)
22823            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22824            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22825            ;;
22826        esac
22827       fi
22828       ;;
22829
22830     os2*)
22831       hardcode_libdir_flag_spec_F77='-L$libdir'
22832       hardcode_minus_L_F77=yes
22833       allow_undefined_flag_F77=unsupported
22834       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'
22835       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22836       ;;
22837
22838     osf3*)
22839       if test "$GCC" = yes; then
22840         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22841         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'
22842       else
22843         allow_undefined_flag_F77=' -expect_unresolved \*'
22844         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'
22845       fi
22846       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847       hardcode_libdir_separator_F77=:
22848       ;;
22849
22850     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22851       if test "$GCC" = yes; then
22852         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22853         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'
22854         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22855       else
22856         allow_undefined_flag_F77=' -expect_unresolved \*'
22857         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'
22858         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~
22859         $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'
22860
22861         # Both c and cxx compiler support -rpath directly
22862         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22863       fi
22864       hardcode_libdir_separator_F77=:
22865       ;;
22866
22867     solaris*)
22868       no_undefined_flag_F77=' -z text'
22869       if test "$GCC" = yes; then
22870         wlarc='${wl}'
22871         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22872         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22873           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22874       else
22875         wlarc=''
22876         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22877         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22878         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22879       fi
22880       hardcode_libdir_flag_spec_F77='-R$libdir'
22881       hardcode_shlibpath_var_F77=no
22882       case $host_os in
22883       solaris2.[0-5] | solaris2.[0-5].*) ;;
22884       *)
22885         # The compiler driver will combine linker options so we
22886         # cannot just pass the convience library names through
22887         # without $wl, iff we do not link with $LD.
22888         # Luckily, gcc supports the same syntax we need for Sun Studio.
22889         # Supported since Solaris 2.6 (maybe 2.5.1?)
22890         case $wlarc in
22891         '')
22892           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22893         *)
22894           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' ;;
22895         esac ;;
22896       esac
22897       link_all_deplibs_F77=yes
22898       ;;
22899
22900     sunos4*)
22901       if test "x$host_vendor" = xsequent; then
22902         # Use $CC to link under sequent, because it throws in some extra .o
22903         # files that make .init and .fini sections work.
22904         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22905       else
22906         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22907       fi
22908       hardcode_libdir_flag_spec_F77='-L$libdir'
22909       hardcode_direct_F77=yes
22910       hardcode_minus_L_F77=yes
22911       hardcode_shlibpath_var_F77=no
22912       ;;
22913
22914     sysv4)
22915       case $host_vendor in
22916         sni)
22917           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22918           hardcode_direct_F77=yes # is this really true???
22919         ;;
22920         siemens)
22921           ## LD is ld it makes a PLAMLIB
22922           ## CC just makes a GrossModule.
22923           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22924           reload_cmds_F77='$CC -r -o $output$reload_objs'
22925           hardcode_direct_F77=no
22926         ;;
22927         motorola)
22928           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22930         ;;
22931       esac
22932       runpath_var='LD_RUN_PATH'
22933       hardcode_shlibpath_var_F77=no
22934       ;;
22935
22936     sysv4.3*)
22937       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22938       hardcode_shlibpath_var_F77=no
22939       export_dynamic_flag_spec_F77='-Bexport'
22940       ;;
22941
22942     sysv4*MP*)
22943       if test -d /usr/nec; then
22944         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945         hardcode_shlibpath_var_F77=no
22946         runpath_var=LD_RUN_PATH
22947         hardcode_runpath_var=yes
22948         ld_shlibs_F77=yes
22949       fi
22950       ;;
22951
22952     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22953       no_undefined_flag_F77='${wl}-z,text'
22954       archive_cmds_need_lc_F77=no
22955       hardcode_shlibpath_var_F77=no
22956       runpath_var='LD_RUN_PATH'
22957
22958       if test "$GCC" = yes; then
22959         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22960         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22961       else
22962         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22963         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22964       fi
22965       ;;
22966
22967     sysv5* | sco3.2v5* | sco5v6*)
22968       # Note: We can NOT use -z defs as we might desire, because we do not
22969       # link with -lc, and that would cause any symbols used from libc to
22970       # always be unresolved, which means just about no library would
22971       # ever link correctly.  If we're not using GNU ld we use -z text
22972       # though, which does catch some bad symbols but isn't as heavy-handed
22973       # as -z defs.
22974       no_undefined_flag_F77='${wl}-z,text'
22975       allow_undefined_flag_F77='${wl}-z,nodefs'
22976       archive_cmds_need_lc_F77=no
22977       hardcode_shlibpath_var_F77=no
22978       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22979       hardcode_libdir_separator_F77=':'
22980       link_all_deplibs_F77=yes
22981       export_dynamic_flag_spec_F77='${wl}-Bexport'
22982       runpath_var='LD_RUN_PATH'
22983
22984       if test "$GCC" = yes; then
22985         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22986         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22987       else
22988         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22990       fi
22991       ;;
22992
22993     uts4*)
22994       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22995       hardcode_libdir_flag_spec_F77='-L$libdir'
22996       hardcode_shlibpath_var_F77=no
22997       ;;
22998
22999     *)
23000       ld_shlibs_F77=no
23001       ;;
23002     esac
23003   fi
23004
23005 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23006 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23007 test "$ld_shlibs_F77" = no && can_build_shared=no
23008
23009 #
23010 # Do we need to explicitly link libc?
23011 #
23012 case "x$archive_cmds_need_lc_F77" in
23013 x|xyes)
23014   # Assume -lc should be added
23015   archive_cmds_need_lc_F77=yes
23016
23017   if test "$enable_shared" = yes && test "$GCC" = yes; then
23018     case $archive_cmds_F77 in
23019     *'~'*)
23020       # FIXME: we may have to deal with multi-command sequences.
23021       ;;
23022     '$CC '*)
23023       # Test whether the compiler implicitly links with -lc since on some
23024       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23025       # to ld, don't add -lc before -lgcc.
23026       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23028       $rm conftest*
23029       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23030
23031       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032   (eval $ac_compile) 2>&5
23033   ac_status=$?
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); } 2>conftest.err; then
23036         soname=conftest
23037         lib=conftest
23038         libobjs=conftest.$ac_objext
23039         deplibs=
23040         wl=$lt_prog_compiler_wl_F77
23041         pic_flag=$lt_prog_compiler_pic_F77
23042         compiler_flags=-v
23043         linker_flags=-v
23044         verstring=
23045         output_objdir=.
23046         libname=conftest
23047         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23048         allow_undefined_flag_F77=
23049         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23050   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }
23054         then
23055           archive_cmds_need_lc_F77=no
23056         else
23057           archive_cmds_need_lc_F77=yes
23058         fi
23059         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23060       else
23061         cat conftest.err 1>&5
23062       fi
23063       $rm conftest*
23064       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23065 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23066       ;;
23067     esac
23068   fi
23069   ;;
23070 esac
23071
23072 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23074 library_names_spec=
23075 libname_spec='lib$name'
23076 soname_spec=
23077 shrext_cmds=".so"
23078 postinstall_cmds=
23079 postuninstall_cmds=
23080 finish_cmds=
23081 finish_eval=
23082 shlibpath_var=
23083 shlibpath_overrides_runpath=unknown
23084 version_type=none
23085 dynamic_linker="$host_os ld.so"
23086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23087 if test "$GCC" = yes; then
23088   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23089   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23090     # if the path contains ";" then we assume it to be the separator
23091     # otherwise default to the standard path separator (i.e. ":") - it is
23092     # assumed that no part of a normal pathname contains ";" but that should
23093     # okay in the real world where ";" in dirpaths is itself problematic.
23094     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23095   else
23096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23097   fi
23098 else
23099   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23100 fi
23101 need_lib_prefix=unknown
23102 hardcode_into_libs=no
23103
23104 # when you set need_version to no, make sure it does not cause -set_version
23105 # flags to be left without arguments
23106 need_version=unknown
23107
23108 case $host_os in
23109 aix3*)
23110   version_type=linux
23111   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23112   shlibpath_var=LIBPATH
23113
23114   # AIX 3 has no versioning support, so we append a major version to the name.
23115   soname_spec='${libname}${release}${shared_ext}$major'
23116   ;;
23117
23118 aix4* | aix5*)
23119   version_type=linux
23120   need_lib_prefix=no
23121   need_version=no
23122   hardcode_into_libs=yes
23123   if test "$host_cpu" = ia64; then
23124     # AIX 5 supports IA64
23125     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23126     shlibpath_var=LD_LIBRARY_PATH
23127   else
23128     # With GCC up to 2.95.x, collect2 would create an import file
23129     # for dependence libraries.  The import file would start with
23130     # the line `#! .'.  This would cause the generated library to
23131     # depend on `.', always an invalid library.  This was fixed in
23132     # development snapshots of GCC prior to 3.0.
23133     case $host_os in
23134       aix4 | aix4.[01] | aix4.[01].*)
23135       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23136            echo ' yes '
23137            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23138         :
23139       else
23140         can_build_shared=no
23141       fi
23142       ;;
23143     esac
23144     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23145     # soname into executable. Probably we can add versioning support to
23146     # collect2, so additional links can be useful in future.
23147     if test "$aix_use_runtimelinking" = yes; then
23148       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23149       # instead of lib<name>.a to let people know that these are not
23150       # typical AIX shared libraries.
23151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152     else
23153       # We preserve .a as extension for shared libraries through AIX4.2
23154       # and later when we are not doing run time linking.
23155       library_names_spec='${libname}${release}.a $libname.a'
23156       soname_spec='${libname}${release}${shared_ext}$major'
23157     fi
23158     shlibpath_var=LIBPATH
23159   fi
23160   ;;
23161
23162 amigaos*)
23163   library_names_spec='$libname.ixlibrary $libname.a'
23164   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23165   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'
23166   ;;
23167
23168 beos*)
23169   library_names_spec='${libname}${shared_ext}'
23170   dynamic_linker="$host_os ld.so"
23171   shlibpath_var=LIBRARY_PATH
23172   ;;
23173
23174 bsdi[45]*)
23175   version_type=linux
23176   need_version=no
23177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23178   soname_spec='${libname}${release}${shared_ext}$major'
23179   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23180   shlibpath_var=LD_LIBRARY_PATH
23181   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23182   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23183   # the default ld.so.conf also contains /usr/contrib/lib and
23184   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23185   # libtool to hard-code these into programs
23186   ;;
23187
23188 cygwin* | mingw* | pw32*)
23189   version_type=windows
23190   shrext_cmds=".dll"
23191   need_version=no
23192   need_lib_prefix=no
23193
23194   case $GCC,$host_os in
23195   yes,cygwin* | yes,mingw* | yes,pw32*)
23196     library_names_spec='$libname.dll.a'
23197     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23198     postinstall_cmds='base_file=`basename \${file}`~
23199       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23200       dldir=$destdir/`dirname \$dlpath`~
23201       test -d \$dldir || mkdir -p \$dldir~
23202       $install_prog $dir/$dlname \$dldir/$dlname~
23203       chmod a+x \$dldir/$dlname'
23204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23205       dlpath=$dir/\$dldll~
23206        $rm \$dlpath'
23207     shlibpath_overrides_runpath=yes
23208
23209     case $host_os in
23210     cygwin*)
23211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23212       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23213       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23214       ;;
23215     mingw*)
23216       # MinGW DLLs use traditional 'lib' prefix
23217       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23218       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23219       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23220         # It is most probably a Windows format PATH printed by
23221         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23222         # path with ; separators, and with drive letters. We can handle the
23223         # drive letters (cygwin fileutils understands them), so leave them,
23224         # especially as we might pass files found there to a mingw objdump,
23225         # which wouldn't understand a cygwinified path. Ahh.
23226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23227       else
23228         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23229       fi
23230       ;;
23231     pw32*)
23232       # pw32 DLLs use 'pw' prefix rather than 'lib'
23233       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23234       ;;
23235     esac
23236     ;;
23237
23238   *)
23239     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23240     ;;
23241   esac
23242   dynamic_linker='Win32 ld.exe'
23243   # FIXME: first we should search . and the directory the executable is in
23244   shlibpath_var=PATH
23245   ;;
23246
23247 darwin* | rhapsody*)
23248   dynamic_linker="$host_os dyld"
23249   version_type=darwin
23250   need_lib_prefix=no
23251   need_version=no
23252   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23253   soname_spec='${libname}${release}${major}$shared_ext'
23254   shlibpath_overrides_runpath=yes
23255   shlibpath_var=DYLD_LIBRARY_PATH
23256   shrext_cmds='.dylib'
23257   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23258   if test "$GCC" = yes; then
23259     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"`
23260   else
23261     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23262   fi
23263   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23264   ;;
23265
23266 dgux*)
23267   version_type=linux
23268   need_lib_prefix=no
23269   need_version=no
23270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23271   soname_spec='${libname}${release}${shared_ext}$major'
23272   shlibpath_var=LD_LIBRARY_PATH
23273   ;;
23274
23275 freebsd1*)
23276   dynamic_linker=no
23277   ;;
23278
23279 kfreebsd*-gnu)
23280   version_type=linux
23281   need_lib_prefix=no
23282   need_version=no
23283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23284   soname_spec='${libname}${release}${shared_ext}$major'
23285   shlibpath_var=LD_LIBRARY_PATH
23286   shlibpath_overrides_runpath=no
23287   hardcode_into_libs=yes
23288   dynamic_linker='GNU ld.so'
23289   ;;
23290
23291 freebsd* | dragonfly*)
23292   # DragonFly does not have aout.  When/if they implement a new
23293   # versioning mechanism, adjust this.
23294   if test -x /usr/bin/objformat; then
23295     objformat=`/usr/bin/objformat`
23296   else
23297     case $host_os in
23298     freebsd[123]*) objformat=aout ;;
23299     *) objformat=elf ;;
23300     esac
23301   fi
23302   version_type=freebsd-$objformat
23303   case $version_type in
23304     freebsd-elf*)
23305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23306       need_version=no
23307       need_lib_prefix=no
23308       ;;
23309     freebsd-*)
23310       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23311       need_version=yes
23312       ;;
23313   esac
23314   shlibpath_var=LD_LIBRARY_PATH
23315   case $host_os in
23316   freebsd2*)
23317     shlibpath_overrides_runpath=yes
23318     ;;
23319   freebsd3.[01]* | freebsdelf3.[01]*)
23320     shlibpath_overrides_runpath=yes
23321     hardcode_into_libs=yes
23322     ;;
23323   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23324   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23325     shlibpath_overrides_runpath=no
23326     hardcode_into_libs=yes
23327     ;;
23328   freebsd*) # from 4.6 on
23329     shlibpath_overrides_runpath=yes
23330     hardcode_into_libs=yes
23331     ;;
23332   esac
23333   ;;
23334
23335 gnu*)
23336   version_type=linux
23337   need_lib_prefix=no
23338   need_version=no
23339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23340   soname_spec='${libname}${release}${shared_ext}$major'
23341   shlibpath_var=LD_LIBRARY_PATH
23342   hardcode_into_libs=yes
23343   ;;
23344
23345 hpux9* | hpux10* | hpux11*)
23346   # Give a soname corresponding to the major version so that dld.sl refuses to
23347   # link against other versions.
23348   version_type=sunos
23349   need_lib_prefix=no
23350   need_version=no
23351   case $host_cpu in
23352   ia64*)
23353     shrext_cmds='.so'
23354     hardcode_into_libs=yes
23355     dynamic_linker="$host_os dld.so"
23356     shlibpath_var=LD_LIBRARY_PATH
23357     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23359     soname_spec='${libname}${release}${shared_ext}$major'
23360     if test "X$HPUX_IA64_MODE" = X32; then
23361       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23362     else
23363       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23364     fi
23365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23366     ;;
23367    hppa*64*)
23368      shrext_cmds='.sl'
23369      hardcode_into_libs=yes
23370      dynamic_linker="$host_os dld.sl"
23371      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23372      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23374      soname_spec='${libname}${release}${shared_ext}$major'
23375      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23376      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23377      ;;
23378    *)
23379     shrext_cmds='.sl'
23380     dynamic_linker="$host_os dld.sl"
23381     shlibpath_var=SHLIB_PATH
23382     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23384     soname_spec='${libname}${release}${shared_ext}$major'
23385     ;;
23386   esac
23387   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23388   postinstall_cmds='chmod 555 $lib'
23389   ;;
23390
23391 interix3*)
23392   version_type=linux
23393   need_lib_prefix=no
23394   need_version=no
23395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23396   soname_spec='${libname}${release}${shared_ext}$major'
23397   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23398   shlibpath_var=LD_LIBRARY_PATH
23399   shlibpath_overrides_runpath=no
23400   hardcode_into_libs=yes
23401   ;;
23402
23403 irix5* | irix6* | nonstopux*)
23404   case $host_os in
23405     nonstopux*) version_type=nonstopux ;;
23406     *)
23407         if test "$lt_cv_prog_gnu_ld" = yes; then
23408                 version_type=linux
23409         else
23410                 version_type=irix
23411         fi ;;
23412   esac
23413   need_lib_prefix=no
23414   need_version=no
23415   soname_spec='${libname}${release}${shared_ext}$major'
23416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23417   case $host_os in
23418   irix5* | nonstopux*)
23419     libsuff= shlibsuff=
23420     ;;
23421   *)
23422     case $LD in # libtool.m4 will add one of these switches to LD
23423     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23424       libsuff= shlibsuff= libmagic=32-bit;;
23425     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23426       libsuff=32 shlibsuff=N32 libmagic=N32;;
23427     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23428       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23429     *) libsuff= shlibsuff= libmagic=never-match;;
23430     esac
23431     ;;
23432   esac
23433   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23434   shlibpath_overrides_runpath=no
23435   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23436   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23437   hardcode_into_libs=yes
23438   ;;
23439
23440 # No shared lib support for Linux oldld, aout, or coff.
23441 linux*oldld* | linux*aout* | linux*coff*)
23442   dynamic_linker=no
23443   ;;
23444
23445 # This must be Linux ELF.
23446 linux*)
23447   version_type=linux
23448   need_lib_prefix=no
23449   need_version=no
23450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451   soname_spec='${libname}${release}${shared_ext}$major'
23452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23453   shlibpath_var=LD_LIBRARY_PATH
23454   shlibpath_overrides_runpath=no
23455   # This implies no fast_install, which is unacceptable.
23456   # Some rework will be needed to allow for fast_install
23457   # before this can be enabled.
23458   hardcode_into_libs=yes
23459
23460   # Append ld.so.conf contents to the search path
23461   if test -f /etc/ld.so.conf; then
23462     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' ' '`
23463     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23464   fi
23465
23466   # We used to test for /lib/ld.so.1 and disable shared libraries on
23467   # powerpc, because MkLinux only supported shared libraries with the
23468   # GNU dynamic linker.  Since this was broken with cross compilers,
23469   # most powerpc-linux boxes support dynamic linking these days and
23470   # people can always --disable-shared, the test was removed, and we
23471   # assume the GNU/Linux dynamic linker is in use.
23472   dynamic_linker='GNU/Linux ld.so'
23473   ;;
23474
23475 knetbsd*-gnu)
23476   version_type=linux
23477   need_lib_prefix=no
23478   need_version=no
23479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23480   soname_spec='${libname}${release}${shared_ext}$major'
23481   shlibpath_var=LD_LIBRARY_PATH
23482   shlibpath_overrides_runpath=no
23483   hardcode_into_libs=yes
23484   dynamic_linker='GNU ld.so'
23485   ;;
23486
23487 netbsd*)
23488   version_type=sunos
23489   need_lib_prefix=no
23490   need_version=no
23491   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23493     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23494     dynamic_linker='NetBSD (a.out) ld.so'
23495   else
23496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23497     soname_spec='${libname}${release}${shared_ext}$major'
23498     dynamic_linker='NetBSD ld.elf_so'
23499   fi
23500   shlibpath_var=LD_LIBRARY_PATH
23501   shlibpath_overrides_runpath=yes
23502   hardcode_into_libs=yes
23503   ;;
23504
23505 newsos6)
23506   version_type=linux
23507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508   shlibpath_var=LD_LIBRARY_PATH
23509   shlibpath_overrides_runpath=yes
23510   ;;
23511
23512 nto-qnx*)
23513   version_type=linux
23514   need_lib_prefix=no
23515   need_version=no
23516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23517   soname_spec='${libname}${release}${shared_ext}$major'
23518   shlibpath_var=LD_LIBRARY_PATH
23519   shlibpath_overrides_runpath=yes
23520   ;;
23521
23522 openbsd*)
23523   version_type=sunos
23524   sys_lib_dlsearch_path_spec="/usr/lib"
23525   need_lib_prefix=no
23526   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23527   case $host_os in
23528     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23529     *)                         need_version=no  ;;
23530   esac
23531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23533   shlibpath_var=LD_LIBRARY_PATH
23534   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23535     case $host_os in
23536       openbsd2.[89] | openbsd2.[89].*)
23537         shlibpath_overrides_runpath=no
23538         ;;
23539       *)
23540         shlibpath_overrides_runpath=yes
23541         ;;
23542       esac
23543   else
23544     shlibpath_overrides_runpath=yes
23545   fi
23546   ;;
23547
23548 os2*)
23549   libname_spec='$name'
23550   shrext_cmds=".dll"
23551   need_lib_prefix=no
23552   library_names_spec='$libname${shared_ext} $libname.a'
23553   dynamic_linker='OS/2 ld.exe'
23554   shlibpath_var=LIBPATH
23555   ;;
23556
23557 osf3* | osf4* | osf5*)
23558   version_type=osf
23559   need_lib_prefix=no
23560   need_version=no
23561   soname_spec='${libname}${release}${shared_ext}$major'
23562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23563   shlibpath_var=LD_LIBRARY_PATH
23564   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23565   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23566   ;;
23567
23568 solaris*)
23569   version_type=linux
23570   need_lib_prefix=no
23571   need_version=no
23572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23573   soname_spec='${libname}${release}${shared_ext}$major'
23574   shlibpath_var=LD_LIBRARY_PATH
23575   shlibpath_overrides_runpath=yes
23576   hardcode_into_libs=yes
23577   # ldd complains unless libraries are executable
23578   postinstall_cmds='chmod +x $lib'
23579   ;;
23580
23581 sunos4*)
23582   version_type=sunos
23583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23584   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23585   shlibpath_var=LD_LIBRARY_PATH
23586   shlibpath_overrides_runpath=yes
23587   if test "$with_gnu_ld" = yes; then
23588     need_lib_prefix=no
23589   fi
23590   need_version=yes
23591   ;;
23592
23593 sysv4 | sysv4.3*)
23594   version_type=linux
23595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23596   soname_spec='${libname}${release}${shared_ext}$major'
23597   shlibpath_var=LD_LIBRARY_PATH
23598   case $host_vendor in
23599     sni)
23600       shlibpath_overrides_runpath=no
23601       need_lib_prefix=no
23602       export_dynamic_flag_spec='${wl}-Blargedynsym'
23603       runpath_var=LD_RUN_PATH
23604       ;;
23605     siemens)
23606       need_lib_prefix=no
23607       ;;
23608     motorola)
23609       need_lib_prefix=no
23610       need_version=no
23611       shlibpath_overrides_runpath=no
23612       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23613       ;;
23614   esac
23615   ;;
23616
23617 sysv4*MP*)
23618   if test -d /usr/nec ;then
23619     version_type=linux
23620     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23621     soname_spec='$libname${shared_ext}.$major'
23622     shlibpath_var=LD_LIBRARY_PATH
23623   fi
23624   ;;
23625
23626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23627   version_type=freebsd-elf
23628   need_lib_prefix=no
23629   need_version=no
23630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23631   soname_spec='${libname}${release}${shared_ext}$major'
23632   shlibpath_var=LD_LIBRARY_PATH
23633   hardcode_into_libs=yes
23634   if test "$with_gnu_ld" = yes; then
23635     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23636     shlibpath_overrides_runpath=no
23637   else
23638     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23639     shlibpath_overrides_runpath=yes
23640     case $host_os in
23641       sco3.2v5*)
23642         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23643         ;;
23644     esac
23645   fi
23646   sys_lib_dlsearch_path_spec='/usr/lib'
23647   ;;
23648
23649 uts4*)
23650   version_type=linux
23651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23652   soname_spec='${libname}${release}${shared_ext}$major'
23653   shlibpath_var=LD_LIBRARY_PATH
23654   ;;
23655
23656 *)
23657   dynamic_linker=no
23658   ;;
23659 esac
23660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23661 echo "${ECHO_T}$dynamic_linker" >&6; }
23662 test "$dynamic_linker" = no && can_build_shared=no
23663
23664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23665 if test "$GCC" = yes; then
23666   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23667 fi
23668
23669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23671 hardcode_action_F77=
23672 if test -n "$hardcode_libdir_flag_spec_F77" || \
23673    test -n "$runpath_var_F77" || \
23674    test "X$hardcode_automatic_F77" = "Xyes" ; then
23675
23676   # We can hardcode non-existant directories.
23677   if test "$hardcode_direct_F77" != no &&
23678      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23679      # have to relink, otherwise we might link with an installed library
23680      # when we should be linking with a yet-to-be-installed one
23681      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23682      test "$hardcode_minus_L_F77" != no; then
23683     # Linking always hardcodes the temporary library directory.
23684     hardcode_action_F77=relink
23685   else
23686     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23687     hardcode_action_F77=immediate
23688   fi
23689 else
23690   # We cannot hardcode anything, or else we can only hardcode existing
23691   # directories.
23692   hardcode_action_F77=unsupported
23693 fi
23694 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23695 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23696
23697 if test "$hardcode_action_F77" = relink; then
23698   # Fast installation is not supported
23699   enable_fast_install=no
23700 elif test "$shlibpath_overrides_runpath" = yes ||
23701      test "$enable_shared" = no; then
23702   # Fast installation is not necessary
23703   enable_fast_install=needless
23704 fi
23705
23706
23707 # The else clause should only fire when bootstrapping the
23708 # libtool distribution, otherwise you forgot to ship ltmain.sh
23709 # with your package, and you will get complaints that there are
23710 # no rules to generate ltmain.sh.
23711 if test -f "$ltmain"; then
23712   # See if we are running on zsh, and set the options which allow our commands through
23713   # without removal of \ escapes.
23714   if test -n "${ZSH_VERSION+set}" ; then
23715     setopt NO_GLOB_SUBST
23716   fi
23717   # Now quote all the things that may contain metacharacters while being
23718   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23719   # variables and quote the copies for generation of the libtool script.
23720   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23721     SED SHELL STRIP \
23722     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23723     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23724     deplibs_check_method reload_flag reload_cmds need_locks \
23725     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23726     lt_cv_sys_global_symbol_to_c_name_address \
23727     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23728     old_postinstall_cmds old_postuninstall_cmds \
23729     compiler_F77 \
23730     CC_F77 \
23731     LD_F77 \
23732     lt_prog_compiler_wl_F77 \
23733     lt_prog_compiler_pic_F77 \
23734     lt_prog_compiler_static_F77 \
23735     lt_prog_compiler_no_builtin_flag_F77 \
23736     export_dynamic_flag_spec_F77 \
23737     thread_safe_flag_spec_F77 \
23738     whole_archive_flag_spec_F77 \
23739     enable_shared_with_static_runtimes_F77 \
23740     old_archive_cmds_F77 \
23741     old_archive_from_new_cmds_F77 \
23742     predep_objects_F77 \
23743     postdep_objects_F77 \
23744     predeps_F77 \
23745     postdeps_F77 \
23746     compiler_lib_search_path_F77 \
23747     archive_cmds_F77 \
23748     archive_expsym_cmds_F77 \
23749     postinstall_cmds_F77 \
23750     postuninstall_cmds_F77 \
23751     old_archive_from_expsyms_cmds_F77 \
23752     allow_undefined_flag_F77 \
23753     no_undefined_flag_F77 \
23754     export_symbols_cmds_F77 \
23755     hardcode_libdir_flag_spec_F77 \
23756     hardcode_libdir_flag_spec_ld_F77 \
23757     hardcode_libdir_separator_F77 \
23758     hardcode_automatic_F77 \
23759     module_cmds_F77 \
23760     module_expsym_cmds_F77 \
23761     lt_cv_prog_compiler_c_o_F77 \
23762     exclude_expsyms_F77 \
23763     include_expsyms_F77; do
23764
23765     case $var in
23766     old_archive_cmds_F77 | \
23767     old_archive_from_new_cmds_F77 | \
23768     archive_cmds_F77 | \
23769     archive_expsym_cmds_F77 | \
23770     module_cmds_F77 | \
23771     module_expsym_cmds_F77 | \
23772     old_archive_from_expsyms_cmds_F77 | \
23773     export_symbols_cmds_F77 | \
23774     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23775     postinstall_cmds | postuninstall_cmds | \
23776     old_postinstall_cmds | old_postuninstall_cmds | \
23777     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23778       # Double-quote double-evaled strings.
23779       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23780       ;;
23781     *)
23782       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23783       ;;
23784     esac
23785   done
23786
23787   case $lt_echo in
23788   *'\$0 --fallback-echo"')
23789     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23790     ;;
23791   esac
23792
23793 cfgfile="$ofile"
23794
23795   cat <<__EOF__ >> "$cfgfile"
23796 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23797
23798 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23799
23800 # Shell to use when invoking shell scripts.
23801 SHELL=$lt_SHELL
23802
23803 # Whether or not to build shared libraries.
23804 build_libtool_libs=$enable_shared
23805
23806 # Whether or not to build static libraries.
23807 build_old_libs=$enable_static
23808
23809 # Whether or not to add -lc for building shared libraries.
23810 build_libtool_need_lc=$archive_cmds_need_lc_F77
23811
23812 # Whether or not to disallow shared libs when runtime libs are static
23813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23814
23815 # Whether or not to optimize for fast installation.
23816 fast_install=$enable_fast_install
23817
23818 # The host system.
23819 host_alias=$host_alias
23820 host=$host
23821 host_os=$host_os
23822
23823 # The build system.
23824 build_alias=$build_alias
23825 build=$build
23826 build_os=$build_os
23827
23828 # An echo program that does not interpret backslashes.
23829 echo=$lt_echo
23830
23831 # The archiver.
23832 AR=$lt_AR
23833 AR_FLAGS=$lt_AR_FLAGS
23834
23835 # A C compiler.
23836 LTCC=$lt_LTCC
23837
23838 # LTCC compiler flags.
23839 LTCFLAGS=$lt_LTCFLAGS
23840
23841 # A language-specific compiler.
23842 CC=$lt_compiler_F77
23843
23844 # Is the compiler the GNU C compiler?
23845 with_gcc=$GCC_F77
23846
23847 # An ERE matcher.
23848 EGREP=$lt_EGREP
23849
23850 # The linker used to build libraries.
23851 LD=$lt_LD_F77
23852
23853 # Whether we need hard or soft links.
23854 LN_S=$lt_LN_S
23855
23856 # A BSD-compatible nm program.
23857 NM=$lt_NM
23858
23859 # A symbol stripping program
23860 STRIP=$lt_STRIP
23861
23862 # Used to examine libraries when file_magic_cmd begins "file"
23863 MAGIC_CMD=$MAGIC_CMD
23864
23865 # Used on cygwin: DLL creation program.
23866 DLLTOOL="$DLLTOOL"
23867
23868 # Used on cygwin: object dumper.
23869 OBJDUMP="$OBJDUMP"
23870
23871 # Used on cygwin: assembler.
23872 AS="$AS"
23873
23874 # The name of the directory that contains temporary libtool files.
23875 objdir=$objdir
23876
23877 # How to create reloadable object files.
23878 reload_flag=$lt_reload_flag
23879 reload_cmds=$lt_reload_cmds
23880
23881 # How to pass a linker flag through the compiler.
23882 wl=$lt_lt_prog_compiler_wl_F77
23883
23884 # Object file suffix (normally "o").
23885 objext="$ac_objext"
23886
23887 # Old archive suffix (normally "a").
23888 libext="$libext"
23889
23890 # Shared library suffix (normally ".so").
23891 shrext_cmds='$shrext_cmds'
23892
23893 # Executable file suffix (normally "").
23894 exeext="$exeext"
23895
23896 # Additional compiler flags for building library objects.
23897 pic_flag=$lt_lt_prog_compiler_pic_F77
23898 pic_mode=$pic_mode
23899
23900 # What is the maximum length of a command?
23901 max_cmd_len=$lt_cv_sys_max_cmd_len
23902
23903 # Does compiler simultaneously support -c and -o options?
23904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23905
23906 # Must we lock files when doing compilation?
23907 need_locks=$lt_need_locks
23908
23909 # Do we need the lib prefix for modules?
23910 need_lib_prefix=$need_lib_prefix
23911
23912 # Do we need a version for libraries?
23913 need_version=$need_version
23914
23915 # Whether dlopen is supported.
23916 dlopen_support=$enable_dlopen
23917
23918 # Whether dlopen of programs is supported.
23919 dlopen_self=$enable_dlopen_self
23920
23921 # Whether dlopen of statically linked programs is supported.
23922 dlopen_self_static=$enable_dlopen_self_static
23923
23924 # Compiler flag to prevent dynamic linking.
23925 link_static_flag=$lt_lt_prog_compiler_static_F77
23926
23927 # Compiler flag to turn off builtin functions.
23928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23929
23930 # Compiler flag to allow reflexive dlopens.
23931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23932
23933 # Compiler flag to generate shared objects directly from archives.
23934 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23935
23936 # Compiler flag to generate thread-safe objects.
23937 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23938
23939 # Library versioning type.
23940 version_type=$version_type
23941
23942 # Format of library name prefix.
23943 libname_spec=$lt_libname_spec
23944
23945 # List of archive names.  First name is the real one, the rest are links.
23946 # The last name is the one that the linker finds with -lNAME.
23947 library_names_spec=$lt_library_names_spec
23948
23949 # The coded name of the library, if different from the real name.
23950 soname_spec=$lt_soname_spec
23951
23952 # Commands used to build and install an old-style archive.
23953 RANLIB=$lt_RANLIB
23954 old_archive_cmds=$lt_old_archive_cmds_F77
23955 old_postinstall_cmds=$lt_old_postinstall_cmds
23956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23957
23958 # Create an old-style archive from a shared archive.
23959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23960
23961 # Create a temporary old-style archive to link instead of a shared archive.
23962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23963
23964 # Commands used to build and install a shared archive.
23965 archive_cmds=$lt_archive_cmds_F77
23966 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23967 postinstall_cmds=$lt_postinstall_cmds
23968 postuninstall_cmds=$lt_postuninstall_cmds
23969
23970 # Commands used to build a loadable module (assumed same as above if empty)
23971 module_cmds=$lt_module_cmds_F77
23972 module_expsym_cmds=$lt_module_expsym_cmds_F77
23973
23974 # Commands to strip libraries.
23975 old_striplib=$lt_old_striplib
23976 striplib=$lt_striplib
23977
23978 # Dependencies to place before the objects being linked to create a
23979 # shared library.
23980 predep_objects=$lt_predep_objects_F77
23981
23982 # Dependencies to place after the objects being linked to create a
23983 # shared library.
23984 postdep_objects=$lt_postdep_objects_F77
23985
23986 # Dependencies to place before the objects being linked to create a
23987 # shared library.
23988 predeps=$lt_predeps_F77
23989
23990 # Dependencies to place after the objects being linked to create a
23991 # shared library.
23992 postdeps=$lt_postdeps_F77
23993
23994 # The library search path used internally by the compiler when linking
23995 # a shared library.
23996 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23997
23998 # Method to check whether dependent libraries are shared objects.
23999 deplibs_check_method=$lt_deplibs_check_method
24000
24001 # Command to use when deplibs_check_method == file_magic.
24002 file_magic_cmd=$lt_file_magic_cmd
24003
24004 # Flag that allows shared libraries with undefined symbols to be built.
24005 allow_undefined_flag=$lt_allow_undefined_flag_F77
24006
24007 # Flag that forces no undefined symbols.
24008 no_undefined_flag=$lt_no_undefined_flag_F77
24009
24010 # Commands used to finish a libtool library installation in a directory.
24011 finish_cmds=$lt_finish_cmds
24012
24013 # Same as above, but a single script fragment to be evaled but not shown.
24014 finish_eval=$lt_finish_eval
24015
24016 # Take the output of nm and produce a listing of raw symbols and C names.
24017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24018
24019 # Transform the output of nm in a proper C declaration
24020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24021
24022 # Transform the output of nm in a C name address pair
24023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24024
24025 # This is the shared library runtime path variable.
24026 runpath_var=$runpath_var
24027
24028 # This is the shared library path variable.
24029 shlibpath_var=$shlibpath_var
24030
24031 # Is shlibpath searched before the hard-coded library search path?
24032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24033
24034 # How to hardcode a shared library path into an executable.
24035 hardcode_action=$hardcode_action_F77
24036
24037 # Whether we should hardcode library paths into libraries.
24038 hardcode_into_libs=$hardcode_into_libs
24039
24040 # Flag to hardcode \$libdir into a binary during linking.
24041 # This must work even if \$libdir does not exist.
24042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24043
24044 # If ld is used when linking, flag to hardcode \$libdir into
24045 # a binary during linking. This must work even if \$libdir does
24046 # not exist.
24047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24048
24049 # Whether we need a single -rpath flag with a separated argument.
24050 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24051
24052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24053 # resulting binary.
24054 hardcode_direct=$hardcode_direct_F77
24055
24056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24057 # resulting binary.
24058 hardcode_minus_L=$hardcode_minus_L_F77
24059
24060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24061 # the resulting binary.
24062 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24063
24064 # Set to yes if building a shared library automatically hardcodes DIR into the library
24065 # and all subsequent libraries and executables linked against it.
24066 hardcode_automatic=$hardcode_automatic_F77
24067
24068 # Variables whose values should be saved in libtool wrapper scripts and
24069 # restored at relink time.
24070 variables_saved_for_relink="$variables_saved_for_relink"
24071
24072 # Whether libtool must link a program against all its dependency libraries.
24073 link_all_deplibs=$link_all_deplibs_F77
24074
24075 # Compile-time system search path for libraries
24076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24077
24078 # Run-time system search path for libraries
24079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24080
24081 # Fix the shell variable \$srcfile for the compiler.
24082 fix_srcfile_path="$fix_srcfile_path_F77"
24083
24084 # Set to yes if exported symbols are required.
24085 always_export_symbols=$always_export_symbols_F77
24086
24087 # The commands to list exported symbols.
24088 export_symbols_cmds=$lt_export_symbols_cmds_F77
24089
24090 # The commands to extract the exported symbol list from a shared archive.
24091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24092
24093 # Symbols that should not be listed in the preloaded symbols.
24094 exclude_expsyms=$lt_exclude_expsyms_F77
24095
24096 # Symbols that must always be exported.
24097 include_expsyms=$lt_include_expsyms_F77
24098
24099 # ### END LIBTOOL TAG CONFIG: $tagname
24100
24101 __EOF__
24102
24103
24104 else
24105   # If there is no Makefile yet, we rely on a make rule to execute
24106   # `config.status --recheck' to rerun these tests and create the
24107   # libtool script then.
24108   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24109   if test -f "$ltmain_in"; then
24110     test -f Makefile && make "$ltmain"
24111   fi
24112 fi
24113
24114
24115 ac_ext=c
24116 ac_cpp='$CPP $CPPFLAGS'
24117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24120
24121 CC="$lt_save_CC"
24122
24123         else
24124           tagname=""
24125         fi
24126         ;;
24127
24128       GCJ)
24129         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24130           ac_ext=c
24131 ac_cpp='$CPP $CPPFLAGS'
24132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24135
24136
24137 # Source file extension for Java test sources.
24138 ac_ext=java
24139
24140 # Object file extension for compiled Java test sources.
24141 objext=o
24142 objext_GCJ=$objext
24143
24144 # Code to be used in simple compile tests
24145 lt_simple_compile_test_code="class foo {}\n"
24146
24147 # Code to be used in simple link tests
24148 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24149
24150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24151
24152 # If no C compiler was specified, use CC.
24153 LTCC=${LTCC-"$CC"}
24154
24155 # If no C compiler flags were specified, use CFLAGS.
24156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24157
24158 # Allow CC to be a program name with arguments.
24159 compiler=$CC
24160
24161
24162 # save warnings/boilerplate of simple test code
24163 ac_outfile=conftest.$ac_objext
24164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24166 _lt_compiler_boilerplate=`cat conftest.err`
24167 $rm conftest*
24168
24169 ac_outfile=conftest.$ac_objext
24170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24172 _lt_linker_boilerplate=`cat conftest.err`
24173 $rm conftest*
24174
24175
24176 # Allow CC to be a program name with arguments.
24177 lt_save_CC="$CC"
24178 CC=${GCJ-"gcj"}
24179 compiler=$CC
24180 compiler_GCJ=$CC
24181 for cc_temp in $compiler""; do
24182   case $cc_temp in
24183     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24184     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24185     \-*) ;;
24186     *) break;;
24187   esac
24188 done
24189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24190
24191
24192 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24193 archive_cmds_need_lc_GCJ=no
24194
24195 old_archive_cmds_GCJ=$old_archive_cmds
24196
24197
24198 lt_prog_compiler_no_builtin_flag_GCJ=
24199
24200 if test "$GCC" = yes; then
24201   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24202
24203
24204 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24205 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24206 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   lt_cv_prog_compiler_rtti_exceptions=no
24210   ac_outfile=conftest.$ac_objext
24211    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24212    lt_compiler_flag="-fno-rtti -fno-exceptions"
24213    # Insert the option either (1) after the last *FLAGS variable, or
24214    # (2) before a word containing "conftest.", or (3) at the end.
24215    # Note that $ac_compile itself does not contain backslashes and begins
24216    # with a dollar sign (not a hyphen), so the echo should work correctly.
24217    # The option is referenced via a variable to avoid confusing sed.
24218    lt_compile=`echo "$ac_compile" | $SED \
24219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24221    -e 's:$: $lt_compiler_flag:'`
24222    (eval echo "\"\$as_me:24222: $lt_compile\"" >&5)
24223    (eval "$lt_compile" 2>conftest.err)
24224    ac_status=$?
24225    cat conftest.err >&5
24226    echo "$as_me:24226: \$? = $ac_status" >&5
24227    if (exit $ac_status) && test -s "$ac_outfile"; then
24228      # The compiler can only warn and ignore the option if not recognized
24229      # So say no if there are warnings other than the usual output.
24230      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24231      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24232      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24233        lt_cv_prog_compiler_rtti_exceptions=yes
24234      fi
24235    fi
24236    $rm conftest*
24237
24238 fi
24239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24240 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24241
24242 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24243     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24244 else
24245     :
24246 fi
24247
24248 fi
24249
24250 lt_prog_compiler_wl_GCJ=
24251 lt_prog_compiler_pic_GCJ=
24252 lt_prog_compiler_static_GCJ=
24253
24254 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24256
24257   if test "$GCC" = yes; then
24258     lt_prog_compiler_wl_GCJ='-Wl,'
24259     lt_prog_compiler_static_GCJ='-static'
24260
24261     case $host_os in
24262       aix*)
24263       # All AIX code is PIC.
24264       if test "$host_cpu" = ia64; then
24265         # AIX 5 now supports IA64 processor
24266         lt_prog_compiler_static_GCJ='-Bstatic'
24267       fi
24268       ;;
24269
24270     amigaos*)
24271       # FIXME: we need at least 68020 code to build shared libraries, but
24272       # adding the `-m68020' flag to GCC prevents building anything better,
24273       # like `-m68040'.
24274       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24275       ;;
24276
24277     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24278       # PIC is the default for these OSes.
24279       ;;
24280
24281     mingw* | pw32* | os2*)
24282       # This hack is so that the source file can tell whether it is being
24283       # built for inclusion in a dll (and should export symbols for example).
24284       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24285       ;;
24286
24287     darwin* | rhapsody*)
24288       # PIC is the default on this platform
24289       # Common symbols not allowed in MH_DYLIB files
24290       lt_prog_compiler_pic_GCJ='-fno-common'
24291       ;;
24292
24293     interix3*)
24294       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24295       # Instead, we relocate shared libraries at runtime.
24296       ;;
24297
24298     msdosdjgpp*)
24299       # Just because we use GCC doesn't mean we suddenly get shared libraries
24300       # on systems that don't support them.
24301       lt_prog_compiler_can_build_shared_GCJ=no
24302       enable_shared=no
24303       ;;
24304
24305     sysv4*MP*)
24306       if test -d /usr/nec; then
24307         lt_prog_compiler_pic_GCJ=-Kconform_pic
24308       fi
24309       ;;
24310
24311     hpux*)
24312       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24313       # not for PA HP-UX.
24314       case $host_cpu in
24315       hppa*64*|ia64*)
24316         # +Z the default
24317         ;;
24318       *)
24319         lt_prog_compiler_pic_GCJ='-fPIC'
24320         ;;
24321       esac
24322       ;;
24323
24324     *)
24325       lt_prog_compiler_pic_GCJ='-fPIC'
24326       ;;
24327     esac
24328   else
24329     # PORTME Check for flag to pass linker flags through the system compiler.
24330     case $host_os in
24331     aix*)
24332       lt_prog_compiler_wl_GCJ='-Wl,'
24333       if test "$host_cpu" = ia64; then
24334         # AIX 5 now supports IA64 processor
24335         lt_prog_compiler_static_GCJ='-Bstatic'
24336       else
24337         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24338       fi
24339       ;;
24340       darwin*)
24341         # PIC is the default on this platform
24342         # Common symbols not allowed in MH_DYLIB files
24343        case $cc_basename in
24344          xlc*)
24345          lt_prog_compiler_pic_GCJ='-qnocommon'
24346          lt_prog_compiler_wl_GCJ='-Wl,'
24347          ;;
24348        esac
24349        ;;
24350
24351     mingw* | pw32* | os2*)
24352       # This hack is so that the source file can tell whether it is being
24353       # built for inclusion in a dll (and should export symbols for example).
24354       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24355       ;;
24356
24357     hpux9* | hpux10* | hpux11*)
24358       lt_prog_compiler_wl_GCJ='-Wl,'
24359       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24360       # not for PA HP-UX.
24361       case $host_cpu in
24362       hppa*64*|ia64*)
24363         # +Z the default
24364         ;;
24365       *)
24366         lt_prog_compiler_pic_GCJ='+Z'
24367         ;;
24368       esac
24369       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24370       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24371       ;;
24372
24373     irix5* | irix6* | nonstopux*)
24374       lt_prog_compiler_wl_GCJ='-Wl,'
24375       # PIC (with -KPIC) is the default.
24376       lt_prog_compiler_static_GCJ='-non_shared'
24377       ;;
24378
24379     newsos6)
24380       lt_prog_compiler_pic_GCJ='-KPIC'
24381       lt_prog_compiler_static_GCJ='-Bstatic'
24382       ;;
24383
24384     linux*)
24385       case $cc_basename in
24386       icc* | ecc*)
24387         lt_prog_compiler_wl_GCJ='-Wl,'
24388         lt_prog_compiler_pic_GCJ='-KPIC'
24389         lt_prog_compiler_static_GCJ='-static'
24390         ;;
24391       pgcc* | pgf77* | pgf90* | pgf95*)
24392         # Portland Group compilers (*not* the Pentium gcc compiler,
24393         # which looks to be a dead project)
24394         lt_prog_compiler_wl_GCJ='-Wl,'
24395         lt_prog_compiler_pic_GCJ='-fpic'
24396         lt_prog_compiler_static_GCJ='-Bstatic'
24397         ;;
24398       ccc*)
24399         lt_prog_compiler_wl_GCJ='-Wl,'
24400         # All Alpha code is PIC.
24401         lt_prog_compiler_static_GCJ='-non_shared'
24402         ;;
24403       esac
24404       ;;
24405
24406     osf3* | osf4* | osf5*)
24407       lt_prog_compiler_wl_GCJ='-Wl,'
24408       # All OSF/1 code is PIC.
24409       lt_prog_compiler_static_GCJ='-non_shared'
24410       ;;
24411
24412     solaris*)
24413       lt_prog_compiler_pic_GCJ='-KPIC'
24414       lt_prog_compiler_static_GCJ='-Bstatic'
24415       case $cc_basename in
24416       f77* | f90* | f95*)
24417         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24418       *)
24419         lt_prog_compiler_wl_GCJ='-Wl,';;
24420       esac
24421       ;;
24422
24423     sunos4*)
24424       lt_prog_compiler_wl_GCJ='-Qoption ld '
24425       lt_prog_compiler_pic_GCJ='-PIC'
24426       lt_prog_compiler_static_GCJ='-Bstatic'
24427       ;;
24428
24429     sysv4 | sysv4.2uw2* | sysv4.3*)
24430       lt_prog_compiler_wl_GCJ='-Wl,'
24431       lt_prog_compiler_pic_GCJ='-KPIC'
24432       lt_prog_compiler_static_GCJ='-Bstatic'
24433       ;;
24434
24435     sysv4*MP*)
24436       if test -d /usr/nec ;then
24437         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24438         lt_prog_compiler_static_GCJ='-Bstatic'
24439       fi
24440       ;;
24441
24442     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24443       lt_prog_compiler_wl_GCJ='-Wl,'
24444       lt_prog_compiler_pic_GCJ='-KPIC'
24445       lt_prog_compiler_static_GCJ='-Bstatic'
24446       ;;
24447
24448     unicos*)
24449       lt_prog_compiler_wl_GCJ='-Wl,'
24450       lt_prog_compiler_can_build_shared_GCJ=no
24451       ;;
24452
24453     uts4*)
24454       lt_prog_compiler_pic_GCJ='-pic'
24455       lt_prog_compiler_static_GCJ='-Bstatic'
24456       ;;
24457
24458     *)
24459       lt_prog_compiler_can_build_shared_GCJ=no
24460       ;;
24461     esac
24462   fi
24463
24464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24465 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24466
24467 #
24468 # Check to make sure the PIC flag actually works.
24469 #
24470 if test -n "$lt_prog_compiler_pic_GCJ"; then
24471
24472 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24474 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   lt_prog_compiler_pic_works_GCJ=no
24478   ac_outfile=conftest.$ac_objext
24479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24480    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24481    # Insert the option either (1) after the last *FLAGS variable, or
24482    # (2) before a word containing "conftest.", or (3) at the end.
24483    # Note that $ac_compile itself does not contain backslashes and begins
24484    # with a dollar sign (not a hyphen), so the echo should work correctly.
24485    # The option is referenced via a variable to avoid confusing sed.
24486    lt_compile=`echo "$ac_compile" | $SED \
24487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24489    -e 's:$: $lt_compiler_flag:'`
24490    (eval echo "\"\$as_me:24490: $lt_compile\"" >&5)
24491    (eval "$lt_compile" 2>conftest.err)
24492    ac_status=$?
24493    cat conftest.err >&5
24494    echo "$as_me:24494: \$? = $ac_status" >&5
24495    if (exit $ac_status) && test -s "$ac_outfile"; then
24496      # The compiler can only warn and ignore the option if not recognized
24497      # So say no if there are warnings other than the usual output.
24498      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24499      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24500      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24501        lt_prog_compiler_pic_works_GCJ=yes
24502      fi
24503    fi
24504    $rm conftest*
24505
24506 fi
24507 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24508 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24509
24510 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24511     case $lt_prog_compiler_pic_GCJ in
24512      "" | " "*) ;;
24513      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24514      esac
24515 else
24516     lt_prog_compiler_pic_GCJ=
24517      lt_prog_compiler_can_build_shared_GCJ=no
24518 fi
24519
24520 fi
24521 case $host_os in
24522   # For platforms which do not support PIC, -DPIC is meaningless:
24523   *djgpp*)
24524     lt_prog_compiler_pic_GCJ=
24525     ;;
24526   *)
24527     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24528     ;;
24529 esac
24530
24531 #
24532 # Check to make sure the static flag actually works.
24533 #
24534 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24535 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24537 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24538   echo $ECHO_N "(cached) $ECHO_C" >&6
24539 else
24540   lt_prog_compiler_static_works_GCJ=no
24541    save_LDFLAGS="$LDFLAGS"
24542    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24543    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24544    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24545      # The linker can only warn and ignore the option if not recognized
24546      # So say no if there are warnings
24547      if test -s conftest.err; then
24548        # Append any errors to the config.log.
24549        cat conftest.err 1>&5
24550        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24551        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24552        if diff conftest.exp conftest.er2 >/dev/null; then
24553          lt_prog_compiler_static_works_GCJ=yes
24554        fi
24555      else
24556        lt_prog_compiler_static_works_GCJ=yes
24557      fi
24558    fi
24559    $rm conftest*
24560    LDFLAGS="$save_LDFLAGS"
24561
24562 fi
24563 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24564 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24565
24566 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24567     :
24568 else
24569     lt_prog_compiler_static_GCJ=
24570 fi
24571
24572
24573 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24575 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578   lt_cv_prog_compiler_c_o_GCJ=no
24579    $rm -r conftest 2>/dev/null
24580    mkdir conftest
24581    cd conftest
24582    mkdir out
24583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24584
24585    lt_compiler_flag="-o out/conftest2.$ac_objext"
24586    # Insert the option either (1) after the last *FLAGS variable, or
24587    # (2) before a word containing "conftest.", or (3) at the end.
24588    # Note that $ac_compile itself does not contain backslashes and begins
24589    # with a dollar sign (not a hyphen), so the echo should work correctly.
24590    lt_compile=`echo "$ac_compile" | $SED \
24591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24593    -e 's:$: $lt_compiler_flag:'`
24594    (eval echo "\"\$as_me:24594: $lt_compile\"" >&5)
24595    (eval "$lt_compile" 2>out/conftest.err)
24596    ac_status=$?
24597    cat out/conftest.err >&5
24598    echo "$as_me:24598: \$? = $ac_status" >&5
24599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24600    then
24601      # The compiler can only warn and ignore the option if not recognized
24602      # So say no if there are warnings
24603      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24604      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24605      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24606        lt_cv_prog_compiler_c_o_GCJ=yes
24607      fi
24608    fi
24609    chmod u+w . 2>&5
24610    $rm conftest*
24611    # SGI C++ compiler will create directory out/ii_files/ for
24612    # template instantiation
24613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24614    $rm out/* && rmdir out
24615    cd ..
24616    rmdir conftest
24617    $rm conftest*
24618
24619 fi
24620 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24622
24623
24624 hard_links="nottested"
24625 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24626   # do not overwrite the value of need_locks provided by the user
24627   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24629   hard_links=yes
24630   $rm conftest*
24631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24632   touch conftest.a
24633   ln conftest.a conftest.b 2>&5 || hard_links=no
24634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24635   { echo "$as_me:$LINENO: result: $hard_links" >&5
24636 echo "${ECHO_T}$hard_links" >&6; }
24637   if test "$hard_links" = no; then
24638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24640     need_locks=warn
24641   fi
24642 else
24643   need_locks=no
24644 fi
24645
24646 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24648
24649   runpath_var=
24650   allow_undefined_flag_GCJ=
24651   enable_shared_with_static_runtimes_GCJ=no
24652   archive_cmds_GCJ=
24653   archive_expsym_cmds_GCJ=
24654   old_archive_From_new_cmds_GCJ=
24655   old_archive_from_expsyms_cmds_GCJ=
24656   export_dynamic_flag_spec_GCJ=
24657   whole_archive_flag_spec_GCJ=
24658   thread_safe_flag_spec_GCJ=
24659   hardcode_libdir_flag_spec_GCJ=
24660   hardcode_libdir_flag_spec_ld_GCJ=
24661   hardcode_libdir_separator_GCJ=
24662   hardcode_direct_GCJ=no
24663   hardcode_minus_L_GCJ=no
24664   hardcode_shlibpath_var_GCJ=unsupported
24665   link_all_deplibs_GCJ=unknown
24666   hardcode_automatic_GCJ=no
24667   module_cmds_GCJ=
24668   module_expsym_cmds_GCJ=
24669   always_export_symbols_GCJ=no
24670   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24671   # include_expsyms should be a list of space-separated symbols to be *always*
24672   # included in the symbol list
24673   include_expsyms_GCJ=
24674   # exclude_expsyms can be an extended regexp of symbols to exclude
24675   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24676   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24677   # as well as any symbol that contains `d'.
24678   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24679   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24680   # platforms (ab)use it in PIC code, but their linkers get confused if
24681   # the symbol is explicitly referenced.  Since portable code cannot
24682   # rely on this symbol name, it's probably fine to never include it in
24683   # preloaded symbol tables.
24684   extract_expsyms_cmds=
24685   # Just being paranoid about ensuring that cc_basename is set.
24686   for cc_temp in $compiler""; do
24687   case $cc_temp in
24688     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24689     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24690     \-*) ;;
24691     *) break;;
24692   esac
24693 done
24694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24695
24696   case $host_os in
24697   cygwin* | mingw* | pw32*)
24698     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24699     # When not using gcc, we currently assume that we are using
24700     # Microsoft Visual C++.
24701     if test "$GCC" != yes; then
24702       with_gnu_ld=no
24703     fi
24704     ;;
24705   interix*)
24706     # we just hope/assume this is gcc and not c89 (= MSVC++)
24707     with_gnu_ld=yes
24708     ;;
24709   openbsd*)
24710     with_gnu_ld=no
24711     ;;
24712   esac
24713
24714   ld_shlibs_GCJ=yes
24715   if test "$with_gnu_ld" = yes; then
24716     # If archive_cmds runs LD, not CC, wlarc should be empty
24717     wlarc='${wl}'
24718
24719     # Set some defaults for GNU ld with shared library support. These
24720     # are reset later if shared libraries are not supported. Putting them
24721     # here allows them to be overridden if necessary.
24722     runpath_var=LD_RUN_PATH
24723     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24724     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24725     # ancient GNU ld didn't support --whole-archive et. al.
24726     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24727         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24728       else
24729         whole_archive_flag_spec_GCJ=
24730     fi
24731     supports_anon_versioning=no
24732     case `$LD -v 2>/dev/null` in
24733       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24734       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24735       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24736       *\ 2.11.*) ;; # other 2.11 versions
24737       *) supports_anon_versioning=yes ;;
24738     esac
24739
24740     # See if GNU ld supports shared libraries.
24741     case $host_os in
24742     aix3* | aix4* | aix5*)
24743       # On AIX/PPC, the GNU linker is very broken
24744       if test "$host_cpu" != ia64; then
24745         ld_shlibs_GCJ=no
24746         cat <<EOF 1>&2
24747
24748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24749 *** to be unable to reliably create shared libraries on AIX.
24750 *** Therefore, libtool is disabling shared libraries support.  If you
24751 *** really care for shared libraries, you may want to modify your PATH
24752 *** so that a non-GNU linker is found, and then restart.
24753
24754 EOF
24755       fi
24756       ;;
24757
24758     amigaos*)
24759       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)'
24760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761       hardcode_minus_L_GCJ=yes
24762
24763       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24764       # that the semantics of dynamic libraries on AmigaOS, at least up
24765       # to version 4, is to share data among multiple programs linked
24766       # with the same dynamic library.  Since this doesn't match the
24767       # behavior of shared libraries on other platforms, we can't use
24768       # them.
24769       ld_shlibs_GCJ=no
24770       ;;
24771
24772     beos*)
24773       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24774         allow_undefined_flag_GCJ=unsupported
24775         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24776         # support --undefined.  This deserves some investigation.  FIXME
24777         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778       else
24779         ld_shlibs_GCJ=no
24780       fi
24781       ;;
24782
24783     cygwin* | mingw* | pw32*)
24784       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24785       # as there is no search path for DLLs.
24786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24787       allow_undefined_flag_GCJ=unsupported
24788       always_export_symbols_GCJ=no
24789       enable_shared_with_static_runtimes_GCJ=yes
24790       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24791
24792       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24793         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24794         # If the export-symbols file already is a .def file (1st line
24795         # is EXPORTS), use it as is; otherwise, prepend...
24796         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24797           cp $export_symbols $output_objdir/$soname.def;
24798         else
24799           echo EXPORTS > $output_objdir/$soname.def;
24800           cat $export_symbols >> $output_objdir/$soname.def;
24801         fi~
24802         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24803       else
24804         ld_shlibs_GCJ=no
24805       fi
24806       ;;
24807
24808     interix3*)
24809       hardcode_direct_GCJ=no
24810       hardcode_shlibpath_var_GCJ=no
24811       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24812       export_dynamic_flag_spec_GCJ='${wl}-E'
24813       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24814       # Instead, shared libraries are loaded at an image base (0x10000000 by
24815       # default) and relocated if they conflict, which is a slow very memory
24816       # consuming and fragmenting process.  To avoid this, we pick a random,
24817       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24818       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24819       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'
24820       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'
24821       ;;
24822
24823     linux*)
24824       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24825         tmp_addflag=
24826         case $cc_basename,$host_cpu in
24827         pgcc*)                          # Portland Group C compiler
24828           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'
24829           tmp_addflag=' $pic_flag'
24830           ;;
24831         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24832           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'
24833           tmp_addflag=' $pic_flag -Mnomain' ;;
24834         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24835           tmp_addflag=' -i_dynamic' ;;
24836         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24837           tmp_addflag=' -i_dynamic -nofor_main' ;;
24838         ifc* | ifort*)                  # Intel Fortran compiler
24839           tmp_addflag=' -nofor_main' ;;
24840         esac
24841         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842
24843         if test $supports_anon_versioning = yes; then
24844           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24845   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24846   $echo "local: *; };" >> $output_objdir/$libname.ver~
24847           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24848         fi
24849       else
24850         ld_shlibs_GCJ=no
24851       fi
24852       ;;
24853
24854     netbsd*)
24855       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24856         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24857         wlarc=
24858       else
24859         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24860         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24861       fi
24862       ;;
24863
24864     solaris*)
24865       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24866         ld_shlibs_GCJ=no
24867         cat <<EOF 1>&2
24868
24869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24870 *** create shared libraries on Solaris systems.  Therefore, libtool
24871 *** is disabling shared libraries support.  We urge you to upgrade GNU
24872 *** binutils to release 2.9.1 or newer.  Another option is to modify
24873 *** your PATH or compiler configuration so that the native linker is
24874 *** used, and then restart.
24875
24876 EOF
24877       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24878         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24879         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24880       else
24881         ld_shlibs_GCJ=no
24882       fi
24883       ;;
24884
24885     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24886       case `$LD -v 2>&1` in
24887         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24888         ld_shlibs_GCJ=no
24889         cat <<_LT_EOF 1>&2
24890
24891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24892 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24893 *** is disabling shared libraries support.  We urge you to upgrade GNU
24894 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24895 *** your PATH or compiler configuration so that the native linker is
24896 *** used, and then restart.
24897
24898 _LT_EOF
24899         ;;
24900         *)
24901           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24902             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24903             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24904             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24905           else
24906             ld_shlibs_GCJ=no
24907           fi
24908         ;;
24909       esac
24910       ;;
24911
24912     sunos4*)
24913       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24914       wlarc=
24915       hardcode_direct_GCJ=yes
24916       hardcode_shlibpath_var_GCJ=no
24917       ;;
24918
24919     *)
24920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24921         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24922         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24923       else
24924         ld_shlibs_GCJ=no
24925       fi
24926       ;;
24927     esac
24928
24929     if test "$ld_shlibs_GCJ" = no; then
24930       runpath_var=
24931       hardcode_libdir_flag_spec_GCJ=
24932       export_dynamic_flag_spec_GCJ=
24933       whole_archive_flag_spec_GCJ=
24934     fi
24935   else
24936     # PORTME fill in a description of your system's linker (not GNU ld)
24937     case $host_os in
24938     aix3*)
24939       allow_undefined_flag_GCJ=unsupported
24940       always_export_symbols_GCJ=yes
24941       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'
24942       # Note: this linker hardcodes the directories in LIBPATH if there
24943       # are no directories specified by -L.
24944       hardcode_minus_L_GCJ=yes
24945       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24946         # Neither direct hardcoding nor static linking is supported with a
24947         # broken collect2.
24948         hardcode_direct_GCJ=unsupported
24949       fi
24950       ;;
24951
24952     aix4* | aix5*)
24953       if test "$host_cpu" = ia64; then
24954         # On IA64, the linker does run time linking by default, so we don't
24955         # have to do anything special.
24956         aix_use_runtimelinking=no
24957         exp_sym_flag='-Bexport'
24958         no_entry_flag=""
24959       else
24960         # If we're using GNU nm, then we don't want the "-C" option.
24961         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24962         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24963           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'
24964         else
24965           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'
24966         fi
24967         aix_use_runtimelinking=no
24968
24969         # Test if we are trying to use run time linking or normal
24970         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24971         # need to do runtime linking.
24972         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24973           for ld_flag in $LDFLAGS; do
24974           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24975             aix_use_runtimelinking=yes
24976             break
24977           fi
24978           done
24979           ;;
24980         esac
24981
24982         exp_sym_flag='-bexport'
24983         no_entry_flag='-bnoentry'
24984       fi
24985
24986       # When large executables or shared objects are built, AIX ld can
24987       # have problems creating the table of contents.  If linking a library
24988       # or program results in "error TOC overflow" add -mminimal-toc to
24989       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24990       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24991
24992       archive_cmds_GCJ=''
24993       hardcode_direct_GCJ=yes
24994       hardcode_libdir_separator_GCJ=':'
24995       link_all_deplibs_GCJ=yes
24996
24997       if test "$GCC" = yes; then
24998         case $host_os in aix4.[012]|aix4.[012].*)
24999         # We only want to do this on AIX 4.2 and lower, the check
25000         # below for broken collect2 doesn't work under 4.3+
25001           collect2name=`${CC} -print-prog-name=collect2`
25002           if test -f "$collect2name" && \
25003            strings "$collect2name" | grep resolve_lib_name >/dev/null
25004           then
25005           # We have reworked collect2
25006           hardcode_direct_GCJ=yes
25007           else
25008           # We have old collect2
25009           hardcode_direct_GCJ=unsupported
25010           # It fails to find uninstalled libraries when the uninstalled
25011           # path is not listed in the libpath.  Setting hardcode_minus_L
25012           # to unsupported forces relinking
25013           hardcode_minus_L_GCJ=yes
25014           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25015           hardcode_libdir_separator_GCJ=
25016           fi
25017           ;;
25018         esac
25019         shared_flag='-shared'
25020         if test "$aix_use_runtimelinking" = yes; then
25021           shared_flag="$shared_flag "'${wl}-G'
25022         fi
25023       else
25024         # not using gcc
25025         if test "$host_cpu" = ia64; then
25026         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25027         # chokes on -Wl,-G. The following line is correct:
25028           shared_flag='-G'
25029         else
25030           if test "$aix_use_runtimelinking" = yes; then
25031             shared_flag='${wl}-G'
25032           else
25033             shared_flag='${wl}-bM:SRE'
25034           fi
25035         fi
25036       fi
25037
25038       # It seems that -bexpall does not export symbols beginning with
25039       # underscore (_), so it is better to generate a list of symbols to export.
25040       always_export_symbols_GCJ=yes
25041       if test "$aix_use_runtimelinking" = yes; then
25042         # Warning - without using the other runtime loading flags (-brtl),
25043         # -berok will link without error, but may produce a broken library.
25044         allow_undefined_flag_GCJ='-berok'
25045        # Determine the default libpath from the value encoded in an empty executable.
25046        cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h.  */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h.  */
25052
25053 int
25054 main ()
25055 {
25056
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (ac_try="$ac_link"
25063 case "(($ac_try" in
25064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065   *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068   (eval "$ac_link") 2>conftest.er1
25069   ac_status=$?
25070   grep -v '^ *+' conftest.er1 >conftest.err
25071   rm -f conftest.er1
25072   cat conftest.err >&5
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); } &&
25075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25076   { (case "(($ac_try" in
25077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078   *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081   (eval "$ac_try") 2>&5
25082   ac_status=$?
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); }; } &&
25085          { ac_try='test -s conftest$ac_exeext'
25086   { (case "(($ac_try" in
25087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088   *) ac_try_echo=$ac_try;;
25089 esac
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091   (eval "$ac_try") 2>&5
25092   ac_status=$?
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); }; }; then
25095
25096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25097 }'`
25098 # Check for a 64-bit object if we didn't find anything.
25099 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; }
25100 }'`; fi
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105
25106 fi
25107
25108 rm -f core conftest.err conftest.$ac_objext \
25109       conftest$ac_exeext conftest.$ac_ext
25110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25111
25112        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25113         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"
25114        else
25115         if test "$host_cpu" = ia64; then
25116           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25117           allow_undefined_flag_GCJ="-z nodefs"
25118           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"
25119         else
25120          # Determine the default libpath from the value encoded in an empty executable.
25121          cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h.  */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h.  */
25127
25128 int
25129 main ()
25130 {
25131
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (ac_try="$ac_link"
25138 case "(($ac_try" in
25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140   *) ac_try_echo=$ac_try;;
25141 esac
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143   (eval "$ac_link") 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } &&
25150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25151   { (case "(($ac_try" in
25152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153   *) ac_try_echo=$ac_try;;
25154 esac
25155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156   (eval "$ac_try") 2>&5
25157   ac_status=$?
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); }; } &&
25160          { ac_try='test -s conftest$ac_exeext'
25161   { (case "(($ac_try" in
25162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163   *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166   (eval "$ac_try") 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; }; then
25170
25171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25172 }'`
25173 # Check for a 64-bit object if we didn't find anything.
25174 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; }
25175 }'`; fi
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180
25181 fi
25182
25183 rm -f core conftest.err conftest.$ac_objext \
25184       conftest$ac_exeext conftest.$ac_ext
25185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25186
25187          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25188           # Warning - without using the other run time loading flags,
25189           # -berok will link without error, but may produce a broken library.
25190           no_undefined_flag_GCJ=' ${wl}-bernotok'
25191           allow_undefined_flag_GCJ=' ${wl}-berok'
25192           # Exported symbols can be pulled into shared objects from archives
25193           whole_archive_flag_spec_GCJ='$convenience'
25194           archive_cmds_need_lc_GCJ=yes
25195           # This is similar to how AIX traditionally builds its shared libraries.
25196           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'
25197         fi
25198       fi
25199       ;;
25200
25201     amigaos*)
25202       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)'
25203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204       hardcode_minus_L_GCJ=yes
25205       # see comment about different semantics on the GNU ld section
25206       ld_shlibs_GCJ=no
25207       ;;
25208
25209     bsdi[45]*)
25210       export_dynamic_flag_spec_GCJ=-rdynamic
25211       ;;
25212
25213     cygwin* | mingw* | pw32*)
25214       # When not using gcc, we currently assume that we are using
25215       # Microsoft Visual C++.
25216       # hardcode_libdir_flag_spec is actually meaningless, as there is
25217       # no search path for DLLs.
25218       hardcode_libdir_flag_spec_GCJ=' '
25219       allow_undefined_flag_GCJ=unsupported
25220       # Tell ltmain to make .lib files, not .a files.
25221       libext=lib
25222       # Tell ltmain to make .dll files, not .so files.
25223       shrext_cmds=".dll"
25224       # FIXME: Setting linknames here is a bad hack.
25225       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25226       # The linker will automatically build a .lib file if we build a DLL.
25227       old_archive_From_new_cmds_GCJ='true'
25228       # FIXME: Should let the user specify the lib program.
25229       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25230       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25231       enable_shared_with_static_runtimes_GCJ=yes
25232       ;;
25233
25234     darwin* | rhapsody*)
25235       case $host_os in
25236         rhapsody* | darwin1.[012])
25237          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25238          ;;
25239        *) # Darwin 1.3 on
25240          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25241            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25242          else
25243            case ${MACOSX_DEPLOYMENT_TARGET} in
25244              10.[012])
25245                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25246                ;;
25247              10.*)
25248                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25249                ;;
25250            esac
25251          fi
25252          ;;
25253       esac
25254       archive_cmds_need_lc_GCJ=no
25255       hardcode_direct_GCJ=no
25256       hardcode_automatic_GCJ=yes
25257       hardcode_shlibpath_var_GCJ=unsupported
25258       whole_archive_flag_spec_GCJ=''
25259       link_all_deplibs_GCJ=yes
25260     if test "$GCC" = yes ; then
25261         output_verbose_link_cmd='echo'
25262         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25263       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25264       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25265       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}'
25266       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}'
25267     else
25268       case $cc_basename in
25269         xlc*)
25270          output_verbose_link_cmd='echo'
25271          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25272          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25273           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25274          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}'
25275           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}'
25276           ;;
25277        *)
25278          ld_shlibs_GCJ=no
25279           ;;
25280       esac
25281     fi
25282       ;;
25283
25284     dgux*)
25285       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25287       hardcode_shlibpath_var_GCJ=no
25288       ;;
25289
25290     freebsd1*)
25291       ld_shlibs_GCJ=no
25292       ;;
25293
25294     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25295     # support.  Future versions do this automatically, but an explicit c++rt0.o
25296     # does not break anything, and helps significantly (at the cost of a little
25297     # extra space).
25298     freebsd2.2*)
25299       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25300       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25301       hardcode_direct_GCJ=yes
25302       hardcode_shlibpath_var_GCJ=no
25303       ;;
25304
25305     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25306     freebsd2*)
25307       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25308       hardcode_direct_GCJ=yes
25309       hardcode_minus_L_GCJ=yes
25310       hardcode_shlibpath_var_GCJ=no
25311       ;;
25312
25313     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25314     freebsd* | kfreebsd*-gnu | dragonfly*)
25315       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25316       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25317       hardcode_direct_GCJ=yes
25318       hardcode_shlibpath_var_GCJ=no
25319       ;;
25320
25321     hpux9*)
25322       if test "$GCC" = yes; then
25323         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'
25324       else
25325         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'
25326       fi
25327       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25328       hardcode_libdir_separator_GCJ=:
25329       hardcode_direct_GCJ=yes
25330
25331       # hardcode_minus_L: Not really in the search PATH,
25332       # but as the default location of the library.
25333       hardcode_minus_L_GCJ=yes
25334       export_dynamic_flag_spec_GCJ='${wl}-E'
25335       ;;
25336
25337     hpux10*)
25338       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25339         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25340       else
25341         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25342       fi
25343       if test "$with_gnu_ld" = no; then
25344         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25345         hardcode_libdir_separator_GCJ=:
25346
25347         hardcode_direct_GCJ=yes
25348         export_dynamic_flag_spec_GCJ='${wl}-E'
25349
25350         # hardcode_minus_L: Not really in the search PATH,
25351         # but as the default location of the library.
25352         hardcode_minus_L_GCJ=yes
25353       fi
25354       ;;
25355
25356     hpux11*)
25357       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25358         case $host_cpu in
25359         hppa*64*)
25360           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25361           ;;
25362         ia64*)
25363           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25364           ;;
25365         *)
25366           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25367           ;;
25368         esac
25369       else
25370         case $host_cpu in
25371         hppa*64*)
25372           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25373           ;;
25374         ia64*)
25375           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25376           ;;
25377         *)
25378           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25379           ;;
25380         esac
25381       fi
25382       if test "$with_gnu_ld" = no; then
25383         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25384         hardcode_libdir_separator_GCJ=:
25385
25386         case $host_cpu in
25387         hppa*64*|ia64*)
25388           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25389           hardcode_direct_GCJ=no
25390           hardcode_shlibpath_var_GCJ=no
25391           ;;
25392         *)
25393           hardcode_direct_GCJ=yes
25394           export_dynamic_flag_spec_GCJ='${wl}-E'
25395
25396           # hardcode_minus_L: Not really in the search PATH,
25397           # but as the default location of the library.
25398           hardcode_minus_L_GCJ=yes
25399           ;;
25400         esac
25401       fi
25402       ;;
25403
25404     irix5* | irix6* | nonstopux*)
25405       if test "$GCC" = yes; then
25406         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'
25407       else
25408         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'
25409         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25410       fi
25411       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25412       hardcode_libdir_separator_GCJ=:
25413       link_all_deplibs_GCJ=yes
25414       ;;
25415
25416     netbsd*)
25417       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25418         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25419       else
25420         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25421       fi
25422       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25423       hardcode_direct_GCJ=yes
25424       hardcode_shlibpath_var_GCJ=no
25425       ;;
25426
25427     newsos6)
25428       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25429       hardcode_direct_GCJ=yes
25430       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25431       hardcode_libdir_separator_GCJ=:
25432       hardcode_shlibpath_var_GCJ=no
25433       ;;
25434
25435     openbsd*)
25436       hardcode_direct_GCJ=yes
25437       hardcode_shlibpath_var_GCJ=no
25438       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25439         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25440         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25441         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25442         export_dynamic_flag_spec_GCJ='${wl}-E'
25443       else
25444        case $host_os in
25445          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25446            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25447            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25448            ;;
25449          *)
25450            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25451            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25452            ;;
25453        esac
25454       fi
25455       ;;
25456
25457     os2*)
25458       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25459       hardcode_minus_L_GCJ=yes
25460       allow_undefined_flag_GCJ=unsupported
25461       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'
25462       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25463       ;;
25464
25465     osf3*)
25466       if test "$GCC" = yes; then
25467         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25468         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'
25469       else
25470         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25471         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'
25472       fi
25473       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25474       hardcode_libdir_separator_GCJ=:
25475       ;;
25476
25477     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25478       if test "$GCC" = yes; then
25479         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25480         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'
25481         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25482       else
25483         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25484         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'
25485         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~
25486         $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'
25487
25488         # Both c and cxx compiler support -rpath directly
25489         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25490       fi
25491       hardcode_libdir_separator_GCJ=:
25492       ;;
25493
25494     solaris*)
25495       no_undefined_flag_GCJ=' -z text'
25496       if test "$GCC" = yes; then
25497         wlarc='${wl}'
25498         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25499         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25500           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25501       else
25502         wlarc=''
25503         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25504         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25505         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25506       fi
25507       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25508       hardcode_shlibpath_var_GCJ=no
25509       case $host_os in
25510       solaris2.[0-5] | solaris2.[0-5].*) ;;
25511       *)
25512         # The compiler driver will combine linker options so we
25513         # cannot just pass the convience library names through
25514         # without $wl, iff we do not link with $LD.
25515         # Luckily, gcc supports the same syntax we need for Sun Studio.
25516         # Supported since Solaris 2.6 (maybe 2.5.1?)
25517         case $wlarc in
25518         '')
25519           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25520         *)
25521           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' ;;
25522         esac ;;
25523       esac
25524       link_all_deplibs_GCJ=yes
25525       ;;
25526
25527     sunos4*)
25528       if test "x$host_vendor" = xsequent; then
25529         # Use $CC to link under sequent, because it throws in some extra .o
25530         # files that make .init and .fini sections work.
25531         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25532       else
25533         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25534       fi
25535       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25536       hardcode_direct_GCJ=yes
25537       hardcode_minus_L_GCJ=yes
25538       hardcode_shlibpath_var_GCJ=no
25539       ;;
25540
25541     sysv4)
25542       case $host_vendor in
25543         sni)
25544           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25545           hardcode_direct_GCJ=yes # is this really true???
25546         ;;
25547         siemens)
25548           ## LD is ld it makes a PLAMLIB
25549           ## CC just makes a GrossModule.
25550           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25551           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25552           hardcode_direct_GCJ=no
25553         ;;
25554         motorola)
25555           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25557         ;;
25558       esac
25559       runpath_var='LD_RUN_PATH'
25560       hardcode_shlibpath_var_GCJ=no
25561       ;;
25562
25563     sysv4.3*)
25564       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25565       hardcode_shlibpath_var_GCJ=no
25566       export_dynamic_flag_spec_GCJ='-Bexport'
25567       ;;
25568
25569     sysv4*MP*)
25570       if test -d /usr/nec; then
25571         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572         hardcode_shlibpath_var_GCJ=no
25573         runpath_var=LD_RUN_PATH
25574         hardcode_runpath_var=yes
25575         ld_shlibs_GCJ=yes
25576       fi
25577       ;;
25578
25579     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25580       no_undefined_flag_GCJ='${wl}-z,text'
25581       archive_cmds_need_lc_GCJ=no
25582       hardcode_shlibpath_var_GCJ=no
25583       runpath_var='LD_RUN_PATH'
25584
25585       if test "$GCC" = yes; then
25586         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25587         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25588       else
25589         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25590         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25591       fi
25592       ;;
25593
25594     sysv5* | sco3.2v5* | sco5v6*)
25595       # Note: We can NOT use -z defs as we might desire, because we do not
25596       # link with -lc, and that would cause any symbols used from libc to
25597       # always be unresolved, which means just about no library would
25598       # ever link correctly.  If we're not using GNU ld we use -z text
25599       # though, which does catch some bad symbols but isn't as heavy-handed
25600       # as -z defs.
25601       no_undefined_flag_GCJ='${wl}-z,text'
25602       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25603       archive_cmds_need_lc_GCJ=no
25604       hardcode_shlibpath_var_GCJ=no
25605       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25606       hardcode_libdir_separator_GCJ=':'
25607       link_all_deplibs_GCJ=yes
25608       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25609       runpath_var='LD_RUN_PATH'
25610
25611       if test "$GCC" = yes; then
25612         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25613         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25614       else
25615         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25616         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25617       fi
25618       ;;
25619
25620     uts4*)
25621       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25623       hardcode_shlibpath_var_GCJ=no
25624       ;;
25625
25626     *)
25627       ld_shlibs_GCJ=no
25628       ;;
25629     esac
25630   fi
25631
25632 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25633 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25634 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25635
25636 #
25637 # Do we need to explicitly link libc?
25638 #
25639 case "x$archive_cmds_need_lc_GCJ" in
25640 x|xyes)
25641   # Assume -lc should be added
25642   archive_cmds_need_lc_GCJ=yes
25643
25644   if test "$enable_shared" = yes && test "$GCC" = yes; then
25645     case $archive_cmds_GCJ in
25646     *'~'*)
25647       # FIXME: we may have to deal with multi-command sequences.
25648       ;;
25649     '$CC '*)
25650       # Test whether the compiler implicitly links with -lc since on some
25651       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25652       # to ld, don't add -lc before -lgcc.
25653       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25655       $rm conftest*
25656       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25657
25658       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25659   (eval $ac_compile) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } 2>conftest.err; then
25663         soname=conftest
25664         lib=conftest
25665         libobjs=conftest.$ac_objext
25666         deplibs=
25667         wl=$lt_prog_compiler_wl_GCJ
25668         pic_flag=$lt_prog_compiler_pic_GCJ
25669         compiler_flags=-v
25670         linker_flags=-v
25671         verstring=
25672         output_objdir=.
25673         libname=conftest
25674         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25675         allow_undefined_flag_GCJ=
25676         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25677   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25678   ac_status=$?
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); }
25681         then
25682           archive_cmds_need_lc_GCJ=no
25683         else
25684           archive_cmds_need_lc_GCJ=yes
25685         fi
25686         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25687       else
25688         cat conftest.err 1>&5
25689       fi
25690       $rm conftest*
25691       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25692 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25693       ;;
25694     esac
25695   fi
25696   ;;
25697 esac
25698
25699 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25700 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25701 library_names_spec=
25702 libname_spec='lib$name'
25703 soname_spec=
25704 shrext_cmds=".so"
25705 postinstall_cmds=
25706 postuninstall_cmds=
25707 finish_cmds=
25708 finish_eval=
25709 shlibpath_var=
25710 shlibpath_overrides_runpath=unknown
25711 version_type=none
25712 dynamic_linker="$host_os ld.so"
25713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25714 if test "$GCC" = yes; then
25715   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25716   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25717     # if the path contains ";" then we assume it to be the separator
25718     # otherwise default to the standard path separator (i.e. ":") - it is
25719     # assumed that no part of a normal pathname contains ";" but that should
25720     # okay in the real world where ";" in dirpaths is itself problematic.
25721     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25722   else
25723     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25724   fi
25725 else
25726   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25727 fi
25728 need_lib_prefix=unknown
25729 hardcode_into_libs=no
25730
25731 # when you set need_version to no, make sure it does not cause -set_version
25732 # flags to be left without arguments
25733 need_version=unknown
25734
25735 case $host_os in
25736 aix3*)
25737   version_type=linux
25738   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25739   shlibpath_var=LIBPATH
25740
25741   # AIX 3 has no versioning support, so we append a major version to the name.
25742   soname_spec='${libname}${release}${shared_ext}$major'
25743   ;;
25744
25745 aix4* | aix5*)
25746   version_type=linux
25747   need_lib_prefix=no
25748   need_version=no
25749   hardcode_into_libs=yes
25750   if test "$host_cpu" = ia64; then
25751     # AIX 5 supports IA64
25752     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25753     shlibpath_var=LD_LIBRARY_PATH
25754   else
25755     # With GCC up to 2.95.x, collect2 would create an import file
25756     # for dependence libraries.  The import file would start with
25757     # the line `#! .'.  This would cause the generated library to
25758     # depend on `.', always an invalid library.  This was fixed in
25759     # development snapshots of GCC prior to 3.0.
25760     case $host_os in
25761       aix4 | aix4.[01] | aix4.[01].*)
25762       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25763            echo ' yes '
25764            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25765         :
25766       else
25767         can_build_shared=no
25768       fi
25769       ;;
25770     esac
25771     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25772     # soname into executable. Probably we can add versioning support to
25773     # collect2, so additional links can be useful in future.
25774     if test "$aix_use_runtimelinking" = yes; then
25775       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25776       # instead of lib<name>.a to let people know that these are not
25777       # typical AIX shared libraries.
25778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779     else
25780       # We preserve .a as extension for shared libraries through AIX4.2
25781       # and later when we are not doing run time linking.
25782       library_names_spec='${libname}${release}.a $libname.a'
25783       soname_spec='${libname}${release}${shared_ext}$major'
25784     fi
25785     shlibpath_var=LIBPATH
25786   fi
25787   ;;
25788
25789 amigaos*)
25790   library_names_spec='$libname.ixlibrary $libname.a'
25791   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25792   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'
25793   ;;
25794
25795 beos*)
25796   library_names_spec='${libname}${shared_ext}'
25797   dynamic_linker="$host_os ld.so"
25798   shlibpath_var=LIBRARY_PATH
25799   ;;
25800
25801 bsdi[45]*)
25802   version_type=linux
25803   need_version=no
25804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25805   soname_spec='${libname}${release}${shared_ext}$major'
25806   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25807   shlibpath_var=LD_LIBRARY_PATH
25808   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25809   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25810   # the default ld.so.conf also contains /usr/contrib/lib and
25811   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25812   # libtool to hard-code these into programs
25813   ;;
25814
25815 cygwin* | mingw* | pw32*)
25816   version_type=windows
25817   shrext_cmds=".dll"
25818   need_version=no
25819   need_lib_prefix=no
25820
25821   case $GCC,$host_os in
25822   yes,cygwin* | yes,mingw* | yes,pw32*)
25823     library_names_spec='$libname.dll.a'
25824     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25825     postinstall_cmds='base_file=`basename \${file}`~
25826       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25827       dldir=$destdir/`dirname \$dlpath`~
25828       test -d \$dldir || mkdir -p \$dldir~
25829       $install_prog $dir/$dlname \$dldir/$dlname~
25830       chmod a+x \$dldir/$dlname'
25831     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25832       dlpath=$dir/\$dldll~
25833        $rm \$dlpath'
25834     shlibpath_overrides_runpath=yes
25835
25836     case $host_os in
25837     cygwin*)
25838       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25839       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25840       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25841       ;;
25842     mingw*)
25843       # MinGW DLLs use traditional 'lib' prefix
25844       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25845       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25846       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25847         # It is most probably a Windows format PATH printed by
25848         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25849         # path with ; separators, and with drive letters. We can handle the
25850         # drive letters (cygwin fileutils understands them), so leave them,
25851         # especially as we might pass files found there to a mingw objdump,
25852         # which wouldn't understand a cygwinified path. Ahh.
25853         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25854       else
25855         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25856       fi
25857       ;;
25858     pw32*)
25859       # pw32 DLLs use 'pw' prefix rather than 'lib'
25860       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25861       ;;
25862     esac
25863     ;;
25864
25865   *)
25866     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25867     ;;
25868   esac
25869   dynamic_linker='Win32 ld.exe'
25870   # FIXME: first we should search . and the directory the executable is in
25871   shlibpath_var=PATH
25872   ;;
25873
25874 darwin* | rhapsody*)
25875   dynamic_linker="$host_os dyld"
25876   version_type=darwin
25877   need_lib_prefix=no
25878   need_version=no
25879   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25880   soname_spec='${libname}${release}${major}$shared_ext'
25881   shlibpath_overrides_runpath=yes
25882   shlibpath_var=DYLD_LIBRARY_PATH
25883   shrext_cmds='.dylib'
25884   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25885   if test "$GCC" = yes; then
25886     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"`
25887   else
25888     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25889   fi
25890   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25891   ;;
25892
25893 dgux*)
25894   version_type=linux
25895   need_lib_prefix=no
25896   need_version=no
25897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25898   soname_spec='${libname}${release}${shared_ext}$major'
25899   shlibpath_var=LD_LIBRARY_PATH
25900   ;;
25901
25902 freebsd1*)
25903   dynamic_linker=no
25904   ;;
25905
25906 kfreebsd*-gnu)
25907   version_type=linux
25908   need_lib_prefix=no
25909   need_version=no
25910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25911   soname_spec='${libname}${release}${shared_ext}$major'
25912   shlibpath_var=LD_LIBRARY_PATH
25913   shlibpath_overrides_runpath=no
25914   hardcode_into_libs=yes
25915   dynamic_linker='GNU ld.so'
25916   ;;
25917
25918 freebsd* | dragonfly*)
25919   # DragonFly does not have aout.  When/if they implement a new
25920   # versioning mechanism, adjust this.
25921   if test -x /usr/bin/objformat; then
25922     objformat=`/usr/bin/objformat`
25923   else
25924     case $host_os in
25925     freebsd[123]*) objformat=aout ;;
25926     *) objformat=elf ;;
25927     esac
25928   fi
25929   version_type=freebsd-$objformat
25930   case $version_type in
25931     freebsd-elf*)
25932       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25933       need_version=no
25934       need_lib_prefix=no
25935       ;;
25936     freebsd-*)
25937       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25938       need_version=yes
25939       ;;
25940   esac
25941   shlibpath_var=LD_LIBRARY_PATH
25942   case $host_os in
25943   freebsd2*)
25944     shlibpath_overrides_runpath=yes
25945     ;;
25946   freebsd3.[01]* | freebsdelf3.[01]*)
25947     shlibpath_overrides_runpath=yes
25948     hardcode_into_libs=yes
25949     ;;
25950   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25951   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25952     shlibpath_overrides_runpath=no
25953     hardcode_into_libs=yes
25954     ;;
25955   freebsd*) # from 4.6 on
25956     shlibpath_overrides_runpath=yes
25957     hardcode_into_libs=yes
25958     ;;
25959   esac
25960   ;;
25961
25962 gnu*)
25963   version_type=linux
25964   need_lib_prefix=no
25965   need_version=no
25966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25967   soname_spec='${libname}${release}${shared_ext}$major'
25968   shlibpath_var=LD_LIBRARY_PATH
25969   hardcode_into_libs=yes
25970   ;;
25971
25972 hpux9* | hpux10* | hpux11*)
25973   # Give a soname corresponding to the major version so that dld.sl refuses to
25974   # link against other versions.
25975   version_type=sunos
25976   need_lib_prefix=no
25977   need_version=no
25978   case $host_cpu in
25979   ia64*)
25980     shrext_cmds='.so'
25981     hardcode_into_libs=yes
25982     dynamic_linker="$host_os dld.so"
25983     shlibpath_var=LD_LIBRARY_PATH
25984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25986     soname_spec='${libname}${release}${shared_ext}$major'
25987     if test "X$HPUX_IA64_MODE" = X32; then
25988       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25989     else
25990       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25991     fi
25992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25993     ;;
25994    hppa*64*)
25995      shrext_cmds='.sl'
25996      hardcode_into_libs=yes
25997      dynamic_linker="$host_os dld.sl"
25998      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25999      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26001      soname_spec='${libname}${release}${shared_ext}$major'
26002      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26003      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26004      ;;
26005    *)
26006     shrext_cmds='.sl'
26007     dynamic_linker="$host_os dld.sl"
26008     shlibpath_var=SHLIB_PATH
26009     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26011     soname_spec='${libname}${release}${shared_ext}$major'
26012     ;;
26013   esac
26014   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26015   postinstall_cmds='chmod 555 $lib'
26016   ;;
26017
26018 interix3*)
26019   version_type=linux
26020   need_lib_prefix=no
26021   need_version=no
26022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26023   soname_spec='${libname}${release}${shared_ext}$major'
26024   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26025   shlibpath_var=LD_LIBRARY_PATH
26026   shlibpath_overrides_runpath=no
26027   hardcode_into_libs=yes
26028   ;;
26029
26030 irix5* | irix6* | nonstopux*)
26031   case $host_os in
26032     nonstopux*) version_type=nonstopux ;;
26033     *)
26034         if test "$lt_cv_prog_gnu_ld" = yes; then
26035                 version_type=linux
26036         else
26037                 version_type=irix
26038         fi ;;
26039   esac
26040   need_lib_prefix=no
26041   need_version=no
26042   soname_spec='${libname}${release}${shared_ext}$major'
26043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26044   case $host_os in
26045   irix5* | nonstopux*)
26046     libsuff= shlibsuff=
26047     ;;
26048   *)
26049     case $LD in # libtool.m4 will add one of these switches to LD
26050     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26051       libsuff= shlibsuff= libmagic=32-bit;;
26052     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26053       libsuff=32 shlibsuff=N32 libmagic=N32;;
26054     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26055       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26056     *) libsuff= shlibsuff= libmagic=never-match;;
26057     esac
26058     ;;
26059   esac
26060   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26061   shlibpath_overrides_runpath=no
26062   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26063   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26064   hardcode_into_libs=yes
26065   ;;
26066
26067 # No shared lib support for Linux oldld, aout, or coff.
26068 linux*oldld* | linux*aout* | linux*coff*)
26069   dynamic_linker=no
26070   ;;
26071
26072 # This must be Linux ELF.
26073 linux*)
26074   version_type=linux
26075   need_lib_prefix=no
26076   need_version=no
26077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078   soname_spec='${libname}${release}${shared_ext}$major'
26079   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26080   shlibpath_var=LD_LIBRARY_PATH
26081   shlibpath_overrides_runpath=no
26082   # This implies no fast_install, which is unacceptable.
26083   # Some rework will be needed to allow for fast_install
26084   # before this can be enabled.
26085   hardcode_into_libs=yes
26086
26087   # Append ld.so.conf contents to the search path
26088   if test -f /etc/ld.so.conf; then
26089     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' ' '`
26090     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26091   fi
26092
26093   # We used to test for /lib/ld.so.1 and disable shared libraries on
26094   # powerpc, because MkLinux only supported shared libraries with the
26095   # GNU dynamic linker.  Since this was broken with cross compilers,
26096   # most powerpc-linux boxes support dynamic linking these days and
26097   # people can always --disable-shared, the test was removed, and we
26098   # assume the GNU/Linux dynamic linker is in use.
26099   dynamic_linker='GNU/Linux ld.so'
26100   ;;
26101
26102 knetbsd*-gnu)
26103   version_type=linux
26104   need_lib_prefix=no
26105   need_version=no
26106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26107   soname_spec='${libname}${release}${shared_ext}$major'
26108   shlibpath_var=LD_LIBRARY_PATH
26109   shlibpath_overrides_runpath=no
26110   hardcode_into_libs=yes
26111   dynamic_linker='GNU ld.so'
26112   ;;
26113
26114 netbsd*)
26115   version_type=sunos
26116   need_lib_prefix=no
26117   need_version=no
26118   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26120     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26121     dynamic_linker='NetBSD (a.out) ld.so'
26122   else
26123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26124     soname_spec='${libname}${release}${shared_ext}$major'
26125     dynamic_linker='NetBSD ld.elf_so'
26126   fi
26127   shlibpath_var=LD_LIBRARY_PATH
26128   shlibpath_overrides_runpath=yes
26129   hardcode_into_libs=yes
26130   ;;
26131
26132 newsos6)
26133   version_type=linux
26134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135   shlibpath_var=LD_LIBRARY_PATH
26136   shlibpath_overrides_runpath=yes
26137   ;;
26138
26139 nto-qnx*)
26140   version_type=linux
26141   need_lib_prefix=no
26142   need_version=no
26143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26144   soname_spec='${libname}${release}${shared_ext}$major'
26145   shlibpath_var=LD_LIBRARY_PATH
26146   shlibpath_overrides_runpath=yes
26147   ;;
26148
26149 openbsd*)
26150   version_type=sunos
26151   sys_lib_dlsearch_path_spec="/usr/lib"
26152   need_lib_prefix=no
26153   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26154   case $host_os in
26155     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26156     *)                         need_version=no  ;;
26157   esac
26158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26160   shlibpath_var=LD_LIBRARY_PATH
26161   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26162     case $host_os in
26163       openbsd2.[89] | openbsd2.[89].*)
26164         shlibpath_overrides_runpath=no
26165         ;;
26166       *)
26167         shlibpath_overrides_runpath=yes
26168         ;;
26169       esac
26170   else
26171     shlibpath_overrides_runpath=yes
26172   fi
26173   ;;
26174
26175 os2*)
26176   libname_spec='$name'
26177   shrext_cmds=".dll"
26178   need_lib_prefix=no
26179   library_names_spec='$libname${shared_ext} $libname.a'
26180   dynamic_linker='OS/2 ld.exe'
26181   shlibpath_var=LIBPATH
26182   ;;
26183
26184 osf3* | osf4* | osf5*)
26185   version_type=osf
26186   need_lib_prefix=no
26187   need_version=no
26188   soname_spec='${libname}${release}${shared_ext}$major'
26189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26190   shlibpath_var=LD_LIBRARY_PATH
26191   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26192   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26193   ;;
26194
26195 solaris*)
26196   version_type=linux
26197   need_lib_prefix=no
26198   need_version=no
26199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26200   soname_spec='${libname}${release}${shared_ext}$major'
26201   shlibpath_var=LD_LIBRARY_PATH
26202   shlibpath_overrides_runpath=yes
26203   hardcode_into_libs=yes
26204   # ldd complains unless libraries are executable
26205   postinstall_cmds='chmod +x $lib'
26206   ;;
26207
26208 sunos4*)
26209   version_type=sunos
26210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26211   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26212   shlibpath_var=LD_LIBRARY_PATH
26213   shlibpath_overrides_runpath=yes
26214   if test "$with_gnu_ld" = yes; then
26215     need_lib_prefix=no
26216   fi
26217   need_version=yes
26218   ;;
26219
26220 sysv4 | sysv4.3*)
26221   version_type=linux
26222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26223   soname_spec='${libname}${release}${shared_ext}$major'
26224   shlibpath_var=LD_LIBRARY_PATH
26225   case $host_vendor in
26226     sni)
26227       shlibpath_overrides_runpath=no
26228       need_lib_prefix=no
26229       export_dynamic_flag_spec='${wl}-Blargedynsym'
26230       runpath_var=LD_RUN_PATH
26231       ;;
26232     siemens)
26233       need_lib_prefix=no
26234       ;;
26235     motorola)
26236       need_lib_prefix=no
26237       need_version=no
26238       shlibpath_overrides_runpath=no
26239       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26240       ;;
26241   esac
26242   ;;
26243
26244 sysv4*MP*)
26245   if test -d /usr/nec ;then
26246     version_type=linux
26247     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26248     soname_spec='$libname${shared_ext}.$major'
26249     shlibpath_var=LD_LIBRARY_PATH
26250   fi
26251   ;;
26252
26253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26254   version_type=freebsd-elf
26255   need_lib_prefix=no
26256   need_version=no
26257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26258   soname_spec='${libname}${release}${shared_ext}$major'
26259   shlibpath_var=LD_LIBRARY_PATH
26260   hardcode_into_libs=yes
26261   if test "$with_gnu_ld" = yes; then
26262     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26263     shlibpath_overrides_runpath=no
26264   else
26265     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26266     shlibpath_overrides_runpath=yes
26267     case $host_os in
26268       sco3.2v5*)
26269         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26270         ;;
26271     esac
26272   fi
26273   sys_lib_dlsearch_path_spec='/usr/lib'
26274   ;;
26275
26276 uts4*)
26277   version_type=linux
26278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26279   soname_spec='${libname}${release}${shared_ext}$major'
26280   shlibpath_var=LD_LIBRARY_PATH
26281   ;;
26282
26283 *)
26284   dynamic_linker=no
26285   ;;
26286 esac
26287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26288 echo "${ECHO_T}$dynamic_linker" >&6; }
26289 test "$dynamic_linker" = no && can_build_shared=no
26290
26291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26292 if test "$GCC" = yes; then
26293   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26294 fi
26295
26296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26298 hardcode_action_GCJ=
26299 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26300    test -n "$runpath_var_GCJ" || \
26301    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26302
26303   # We can hardcode non-existant directories.
26304   if test "$hardcode_direct_GCJ" != no &&
26305      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26306      # have to relink, otherwise we might link with an installed library
26307      # when we should be linking with a yet-to-be-installed one
26308      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26309      test "$hardcode_minus_L_GCJ" != no; then
26310     # Linking always hardcodes the temporary library directory.
26311     hardcode_action_GCJ=relink
26312   else
26313     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26314     hardcode_action_GCJ=immediate
26315   fi
26316 else
26317   # We cannot hardcode anything, or else we can only hardcode existing
26318   # directories.
26319   hardcode_action_GCJ=unsupported
26320 fi
26321 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26322 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26323
26324 if test "$hardcode_action_GCJ" = relink; then
26325   # Fast installation is not supported
26326   enable_fast_install=no
26327 elif test "$shlibpath_overrides_runpath" = yes ||
26328      test "$enable_shared" = no; then
26329   # Fast installation is not necessary
26330   enable_fast_install=needless
26331 fi
26332
26333
26334 # The else clause should only fire when bootstrapping the
26335 # libtool distribution, otherwise you forgot to ship ltmain.sh
26336 # with your package, and you will get complaints that there are
26337 # no rules to generate ltmain.sh.
26338 if test -f "$ltmain"; then
26339   # See if we are running on zsh, and set the options which allow our commands through
26340   # without removal of \ escapes.
26341   if test -n "${ZSH_VERSION+set}" ; then
26342     setopt NO_GLOB_SUBST
26343   fi
26344   # Now quote all the things that may contain metacharacters while being
26345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26346   # variables and quote the copies for generation of the libtool script.
26347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26348     SED SHELL STRIP \
26349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26351     deplibs_check_method reload_flag reload_cmds need_locks \
26352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26353     lt_cv_sys_global_symbol_to_c_name_address \
26354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26355     old_postinstall_cmds old_postuninstall_cmds \
26356     compiler_GCJ \
26357     CC_GCJ \
26358     LD_GCJ \
26359     lt_prog_compiler_wl_GCJ \
26360     lt_prog_compiler_pic_GCJ \
26361     lt_prog_compiler_static_GCJ \
26362     lt_prog_compiler_no_builtin_flag_GCJ \
26363     export_dynamic_flag_spec_GCJ \
26364     thread_safe_flag_spec_GCJ \
26365     whole_archive_flag_spec_GCJ \
26366     enable_shared_with_static_runtimes_GCJ \
26367     old_archive_cmds_GCJ \
26368     old_archive_from_new_cmds_GCJ \
26369     predep_objects_GCJ \
26370     postdep_objects_GCJ \
26371     predeps_GCJ \
26372     postdeps_GCJ \
26373     compiler_lib_search_path_GCJ \
26374     archive_cmds_GCJ \
26375     archive_expsym_cmds_GCJ \
26376     postinstall_cmds_GCJ \
26377     postuninstall_cmds_GCJ \
26378     old_archive_from_expsyms_cmds_GCJ \
26379     allow_undefined_flag_GCJ \
26380     no_undefined_flag_GCJ \
26381     export_symbols_cmds_GCJ \
26382     hardcode_libdir_flag_spec_GCJ \
26383     hardcode_libdir_flag_spec_ld_GCJ \
26384     hardcode_libdir_separator_GCJ \
26385     hardcode_automatic_GCJ \
26386     module_cmds_GCJ \
26387     module_expsym_cmds_GCJ \
26388     lt_cv_prog_compiler_c_o_GCJ \
26389     exclude_expsyms_GCJ \
26390     include_expsyms_GCJ; do
26391
26392     case $var in
26393     old_archive_cmds_GCJ | \
26394     old_archive_from_new_cmds_GCJ | \
26395     archive_cmds_GCJ | \
26396     archive_expsym_cmds_GCJ | \
26397     module_cmds_GCJ | \
26398     module_expsym_cmds_GCJ | \
26399     old_archive_from_expsyms_cmds_GCJ | \
26400     export_symbols_cmds_GCJ | \
26401     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26402     postinstall_cmds | postuninstall_cmds | \
26403     old_postinstall_cmds | old_postuninstall_cmds | \
26404     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26405       # Double-quote double-evaled strings.
26406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26407       ;;
26408     *)
26409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26410       ;;
26411     esac
26412   done
26413
26414   case $lt_echo in
26415   *'\$0 --fallback-echo"')
26416     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26417     ;;
26418   esac
26419
26420 cfgfile="$ofile"
26421
26422   cat <<__EOF__ >> "$cfgfile"
26423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26424
26425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26426
26427 # Shell to use when invoking shell scripts.
26428 SHELL=$lt_SHELL
26429
26430 # Whether or not to build shared libraries.
26431 build_libtool_libs=$enable_shared
26432
26433 # Whether or not to build static libraries.
26434 build_old_libs=$enable_static
26435
26436 # Whether or not to add -lc for building shared libraries.
26437 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26438
26439 # Whether or not to disallow shared libs when runtime libs are static
26440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26441
26442 # Whether or not to optimize for fast installation.
26443 fast_install=$enable_fast_install
26444
26445 # The host system.
26446 host_alias=$host_alias
26447 host=$host
26448 host_os=$host_os
26449
26450 # The build system.
26451 build_alias=$build_alias
26452 build=$build
26453 build_os=$build_os
26454
26455 # An echo program that does not interpret backslashes.
26456 echo=$lt_echo
26457
26458 # The archiver.
26459 AR=$lt_AR
26460 AR_FLAGS=$lt_AR_FLAGS
26461
26462 # A C compiler.
26463 LTCC=$lt_LTCC
26464
26465 # LTCC compiler flags.
26466 LTCFLAGS=$lt_LTCFLAGS
26467
26468 # A language-specific compiler.
26469 CC=$lt_compiler_GCJ
26470
26471 # Is the compiler the GNU C compiler?
26472 with_gcc=$GCC_GCJ
26473
26474 # An ERE matcher.
26475 EGREP=$lt_EGREP
26476
26477 # The linker used to build libraries.
26478 LD=$lt_LD_GCJ
26479
26480 # Whether we need hard or soft links.
26481 LN_S=$lt_LN_S
26482
26483 # A BSD-compatible nm program.
26484 NM=$lt_NM
26485
26486 # A symbol stripping program
26487 STRIP=$lt_STRIP
26488
26489 # Used to examine libraries when file_magic_cmd begins "file"
26490 MAGIC_CMD=$MAGIC_CMD
26491
26492 # Used on cygwin: DLL creation program.
26493 DLLTOOL="$DLLTOOL"
26494
26495 # Used on cygwin: object dumper.
26496 OBJDUMP="$OBJDUMP"
26497
26498 # Used on cygwin: assembler.
26499 AS="$AS"
26500
26501 # The name of the directory that contains temporary libtool files.
26502 objdir=$objdir
26503
26504 # How to create reloadable object files.
26505 reload_flag=$lt_reload_flag
26506 reload_cmds=$lt_reload_cmds
26507
26508 # How to pass a linker flag through the compiler.
26509 wl=$lt_lt_prog_compiler_wl_GCJ
26510
26511 # Object file suffix (normally "o").
26512 objext="$ac_objext"
26513
26514 # Old archive suffix (normally "a").
26515 libext="$libext"
26516
26517 # Shared library suffix (normally ".so").
26518 shrext_cmds='$shrext_cmds'
26519
26520 # Executable file suffix (normally "").
26521 exeext="$exeext"
26522
26523 # Additional compiler flags for building library objects.
26524 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26525 pic_mode=$pic_mode
26526
26527 # What is the maximum length of a command?
26528 max_cmd_len=$lt_cv_sys_max_cmd_len
26529
26530 # Does compiler simultaneously support -c and -o options?
26531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26532
26533 # Must we lock files when doing compilation?
26534 need_locks=$lt_need_locks
26535
26536 # Do we need the lib prefix for modules?
26537 need_lib_prefix=$need_lib_prefix
26538
26539 # Do we need a version for libraries?
26540 need_version=$need_version
26541
26542 # Whether dlopen is supported.
26543 dlopen_support=$enable_dlopen
26544
26545 # Whether dlopen of programs is supported.
26546 dlopen_self=$enable_dlopen_self
26547
26548 # Whether dlopen of statically linked programs is supported.
26549 dlopen_self_static=$enable_dlopen_self_static
26550
26551 # Compiler flag to prevent dynamic linking.
26552 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26553
26554 # Compiler flag to turn off builtin functions.
26555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26556
26557 # Compiler flag to allow reflexive dlopens.
26558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26559
26560 # Compiler flag to generate shared objects directly from archives.
26561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26562
26563 # Compiler flag to generate thread-safe objects.
26564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26565
26566 # Library versioning type.
26567 version_type=$version_type
26568
26569 # Format of library name prefix.
26570 libname_spec=$lt_libname_spec
26571
26572 # List of archive names.  First name is the real one, the rest are links.
26573 # The last name is the one that the linker finds with -lNAME.
26574 library_names_spec=$lt_library_names_spec
26575
26576 # The coded name of the library, if different from the real name.
26577 soname_spec=$lt_soname_spec
26578
26579 # Commands used to build and install an old-style archive.
26580 RANLIB=$lt_RANLIB
26581 old_archive_cmds=$lt_old_archive_cmds_GCJ
26582 old_postinstall_cmds=$lt_old_postinstall_cmds
26583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26584
26585 # Create an old-style archive from a shared archive.
26586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26587
26588 # Create a temporary old-style archive to link instead of a shared archive.
26589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26590
26591 # Commands used to build and install a shared archive.
26592 archive_cmds=$lt_archive_cmds_GCJ
26593 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26594 postinstall_cmds=$lt_postinstall_cmds
26595 postuninstall_cmds=$lt_postuninstall_cmds
26596
26597 # Commands used to build a loadable module (assumed same as above if empty)
26598 module_cmds=$lt_module_cmds_GCJ
26599 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26600
26601 # Commands to strip libraries.
26602 old_striplib=$lt_old_striplib
26603 striplib=$lt_striplib
26604
26605 # Dependencies to place before the objects being linked to create a
26606 # shared library.
26607 predep_objects=$lt_predep_objects_GCJ
26608
26609 # Dependencies to place after the objects being linked to create a
26610 # shared library.
26611 postdep_objects=$lt_postdep_objects_GCJ
26612
26613 # Dependencies to place before the objects being linked to create a
26614 # shared library.
26615 predeps=$lt_predeps_GCJ
26616
26617 # Dependencies to place after the objects being linked to create a
26618 # shared library.
26619 postdeps=$lt_postdeps_GCJ
26620
26621 # The library search path used internally by the compiler when linking
26622 # a shared library.
26623 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26624
26625 # Method to check whether dependent libraries are shared objects.
26626 deplibs_check_method=$lt_deplibs_check_method
26627
26628 # Command to use when deplibs_check_method == file_magic.
26629 file_magic_cmd=$lt_file_magic_cmd
26630
26631 # Flag that allows shared libraries with undefined symbols to be built.
26632 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26633
26634 # Flag that forces no undefined symbols.
26635 no_undefined_flag=$lt_no_undefined_flag_GCJ
26636
26637 # Commands used to finish a libtool library installation in a directory.
26638 finish_cmds=$lt_finish_cmds
26639
26640 # Same as above, but a single script fragment to be evaled but not shown.
26641 finish_eval=$lt_finish_eval
26642
26643 # Take the output of nm and produce a listing of raw symbols and C names.
26644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26645
26646 # Transform the output of nm in a proper C declaration
26647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26648
26649 # Transform the output of nm in a C name address pair
26650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26651
26652 # This is the shared library runtime path variable.
26653 runpath_var=$runpath_var
26654
26655 # This is the shared library path variable.
26656 shlibpath_var=$shlibpath_var
26657
26658 # Is shlibpath searched before the hard-coded library search path?
26659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26660
26661 # How to hardcode a shared library path into an executable.
26662 hardcode_action=$hardcode_action_GCJ
26663
26664 # Whether we should hardcode library paths into libraries.
26665 hardcode_into_libs=$hardcode_into_libs
26666
26667 # Flag to hardcode \$libdir into a binary during linking.
26668 # This must work even if \$libdir does not exist.
26669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26670
26671 # If ld is used when linking, flag to hardcode \$libdir into
26672 # a binary during linking. This must work even if \$libdir does
26673 # not exist.
26674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26675
26676 # Whether we need a single -rpath flag with a separated argument.
26677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26678
26679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26680 # resulting binary.
26681 hardcode_direct=$hardcode_direct_GCJ
26682
26683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26684 # resulting binary.
26685 hardcode_minus_L=$hardcode_minus_L_GCJ
26686
26687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26688 # the resulting binary.
26689 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26690
26691 # Set to yes if building a shared library automatically hardcodes DIR into the library
26692 # and all subsequent libraries and executables linked against it.
26693 hardcode_automatic=$hardcode_automatic_GCJ
26694
26695 # Variables whose values should be saved in libtool wrapper scripts and
26696 # restored at relink time.
26697 variables_saved_for_relink="$variables_saved_for_relink"
26698
26699 # Whether libtool must link a program against all its dependency libraries.
26700 link_all_deplibs=$link_all_deplibs_GCJ
26701
26702 # Compile-time system search path for libraries
26703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26704
26705 # Run-time system search path for libraries
26706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26707
26708 # Fix the shell variable \$srcfile for the compiler.
26709 fix_srcfile_path="$fix_srcfile_path_GCJ"
26710
26711 # Set to yes if exported symbols are required.
26712 always_export_symbols=$always_export_symbols_GCJ
26713
26714 # The commands to list exported symbols.
26715 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26716
26717 # The commands to extract the exported symbol list from a shared archive.
26718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26719
26720 # Symbols that should not be listed in the preloaded symbols.
26721 exclude_expsyms=$lt_exclude_expsyms_GCJ
26722
26723 # Symbols that must always be exported.
26724 include_expsyms=$lt_include_expsyms_GCJ
26725
26726 # ### END LIBTOOL TAG CONFIG: $tagname
26727
26728 __EOF__
26729
26730
26731 else
26732   # If there is no Makefile yet, we rely on a make rule to execute
26733   # `config.status --recheck' to rerun these tests and create the
26734   # libtool script then.
26735   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26736   if test -f "$ltmain_in"; then
26737     test -f Makefile && make "$ltmain"
26738   fi
26739 fi
26740
26741
26742 ac_ext=c
26743 ac_cpp='$CPP $CPPFLAGS'
26744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26747
26748 CC="$lt_save_CC"
26749
26750         else
26751           tagname=""
26752         fi
26753         ;;
26754
26755       RC)
26756         ac_ext=c
26757 ac_cpp='$CPP $CPPFLAGS'
26758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26761
26762
26763 # Source file extension for RC test sources.
26764 ac_ext=rc
26765
26766 # Object file extension for compiled RC test sources.
26767 objext=o
26768 objext_RC=$objext
26769
26770 # Code to be used in simple compile tests
26771 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26772
26773 # Code to be used in simple link tests
26774 lt_simple_link_test_code="$lt_simple_compile_test_code"
26775
26776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26777
26778 # If no C compiler was specified, use CC.
26779 LTCC=${LTCC-"$CC"}
26780
26781 # If no C compiler flags were specified, use CFLAGS.
26782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26783
26784 # Allow CC to be a program name with arguments.
26785 compiler=$CC
26786
26787
26788 # save warnings/boilerplate of simple test code
26789 ac_outfile=conftest.$ac_objext
26790 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26792 _lt_compiler_boilerplate=`cat conftest.err`
26793 $rm conftest*
26794
26795 ac_outfile=conftest.$ac_objext
26796 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26798 _lt_linker_boilerplate=`cat conftest.err`
26799 $rm conftest*
26800
26801
26802 # Allow CC to be a program name with arguments.
26803 lt_save_CC="$CC"
26804 CC=${RC-"windres"}
26805 compiler=$CC
26806 compiler_RC=$CC
26807 for cc_temp in $compiler""; do
26808   case $cc_temp in
26809     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26810     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26811     \-*) ;;
26812     *) break;;
26813   esac
26814 done
26815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26816
26817 lt_cv_prog_compiler_c_o_RC=yes
26818
26819 # The else clause should only fire when bootstrapping the
26820 # libtool distribution, otherwise you forgot to ship ltmain.sh
26821 # with your package, and you will get complaints that there are
26822 # no rules to generate ltmain.sh.
26823 if test -f "$ltmain"; then
26824   # See if we are running on zsh, and set the options which allow our commands through
26825   # without removal of \ escapes.
26826   if test -n "${ZSH_VERSION+set}" ; then
26827     setopt NO_GLOB_SUBST
26828   fi
26829   # Now quote all the things that may contain metacharacters while being
26830   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26831   # variables and quote the copies for generation of the libtool script.
26832   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26833     SED SHELL STRIP \
26834     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26835     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26836     deplibs_check_method reload_flag reload_cmds need_locks \
26837     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26838     lt_cv_sys_global_symbol_to_c_name_address \
26839     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26840     old_postinstall_cmds old_postuninstall_cmds \
26841     compiler_RC \
26842     CC_RC \
26843     LD_RC \
26844     lt_prog_compiler_wl_RC \
26845     lt_prog_compiler_pic_RC \
26846     lt_prog_compiler_static_RC \
26847     lt_prog_compiler_no_builtin_flag_RC \
26848     export_dynamic_flag_spec_RC \
26849     thread_safe_flag_spec_RC \
26850     whole_archive_flag_spec_RC \
26851     enable_shared_with_static_runtimes_RC \
26852     old_archive_cmds_RC \
26853     old_archive_from_new_cmds_RC \
26854     predep_objects_RC \
26855     postdep_objects_RC \
26856     predeps_RC \
26857     postdeps_RC \
26858     compiler_lib_search_path_RC \
26859     archive_cmds_RC \
26860     archive_expsym_cmds_RC \
26861     postinstall_cmds_RC \
26862     postuninstall_cmds_RC \
26863     old_archive_from_expsyms_cmds_RC \
26864     allow_undefined_flag_RC \
26865     no_undefined_flag_RC \
26866     export_symbols_cmds_RC \
26867     hardcode_libdir_flag_spec_RC \
26868     hardcode_libdir_flag_spec_ld_RC \
26869     hardcode_libdir_separator_RC \
26870     hardcode_automatic_RC \
26871     module_cmds_RC \
26872     module_expsym_cmds_RC \
26873     lt_cv_prog_compiler_c_o_RC \
26874     exclude_expsyms_RC \
26875     include_expsyms_RC; do
26876
26877     case $var in
26878     old_archive_cmds_RC | \
26879     old_archive_from_new_cmds_RC | \
26880     archive_cmds_RC | \
26881     archive_expsym_cmds_RC | \
26882     module_cmds_RC | \
26883     module_expsym_cmds_RC | \
26884     old_archive_from_expsyms_cmds_RC | \
26885     export_symbols_cmds_RC | \
26886     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26887     postinstall_cmds | postuninstall_cmds | \
26888     old_postinstall_cmds | old_postuninstall_cmds | \
26889     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26890       # Double-quote double-evaled strings.
26891       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26892       ;;
26893     *)
26894       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26895       ;;
26896     esac
26897   done
26898
26899   case $lt_echo in
26900   *'\$0 --fallback-echo"')
26901     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26902     ;;
26903   esac
26904
26905 cfgfile="$ofile"
26906
26907   cat <<__EOF__ >> "$cfgfile"
26908 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26909
26910 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26911
26912 # Shell to use when invoking shell scripts.
26913 SHELL=$lt_SHELL
26914
26915 # Whether or not to build shared libraries.
26916 build_libtool_libs=$enable_shared
26917
26918 # Whether or not to build static libraries.
26919 build_old_libs=$enable_static
26920
26921 # Whether or not to add -lc for building shared libraries.
26922 build_libtool_need_lc=$archive_cmds_need_lc_RC
26923
26924 # Whether or not to disallow shared libs when runtime libs are static
26925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26926
26927 # Whether or not to optimize for fast installation.
26928 fast_install=$enable_fast_install
26929
26930 # The host system.
26931 host_alias=$host_alias
26932 host=$host
26933 host_os=$host_os
26934
26935 # The build system.
26936 build_alias=$build_alias
26937 build=$build
26938 build_os=$build_os
26939
26940 # An echo program that does not interpret backslashes.
26941 echo=$lt_echo
26942
26943 # The archiver.
26944 AR=$lt_AR
26945 AR_FLAGS=$lt_AR_FLAGS
26946
26947 # A C compiler.
26948 LTCC=$lt_LTCC
26949
26950 # LTCC compiler flags.
26951 LTCFLAGS=$lt_LTCFLAGS
26952
26953 # A language-specific compiler.
26954 CC=$lt_compiler_RC
26955
26956 # Is the compiler the GNU C compiler?
26957 with_gcc=$GCC_RC
26958
26959 # An ERE matcher.
26960 EGREP=$lt_EGREP
26961
26962 # The linker used to build libraries.
26963 LD=$lt_LD_RC
26964
26965 # Whether we need hard or soft links.
26966 LN_S=$lt_LN_S
26967
26968 # A BSD-compatible nm program.
26969 NM=$lt_NM
26970
26971 # A symbol stripping program
26972 STRIP=$lt_STRIP
26973
26974 # Used to examine libraries when file_magic_cmd begins "file"
26975 MAGIC_CMD=$MAGIC_CMD
26976
26977 # Used on cygwin: DLL creation program.
26978 DLLTOOL="$DLLTOOL"
26979
26980 # Used on cygwin: object dumper.
26981 OBJDUMP="$OBJDUMP"
26982
26983 # Used on cygwin: assembler.
26984 AS="$AS"
26985
26986 # The name of the directory that contains temporary libtool files.
26987 objdir=$objdir
26988
26989 # How to create reloadable object files.
26990 reload_flag=$lt_reload_flag
26991 reload_cmds=$lt_reload_cmds
26992
26993 # How to pass a linker flag through the compiler.
26994 wl=$lt_lt_prog_compiler_wl_RC
26995
26996 # Object file suffix (normally "o").
26997 objext="$ac_objext"
26998
26999 # Old archive suffix (normally "a").
27000 libext="$libext"
27001
27002 # Shared library suffix (normally ".so").
27003 shrext_cmds='$shrext_cmds'
27004
27005 # Executable file suffix (normally "").
27006 exeext="$exeext"
27007
27008 # Additional compiler flags for building library objects.
27009 pic_flag=$lt_lt_prog_compiler_pic_RC
27010 pic_mode=$pic_mode
27011
27012 # What is the maximum length of a command?
27013 max_cmd_len=$lt_cv_sys_max_cmd_len
27014
27015 # Does compiler simultaneously support -c and -o options?
27016 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27017
27018 # Must we lock files when doing compilation?
27019 need_locks=$lt_need_locks
27020
27021 # Do we need the lib prefix for modules?
27022 need_lib_prefix=$need_lib_prefix
27023
27024 # Do we need a version for libraries?
27025 need_version=$need_version
27026
27027 # Whether dlopen is supported.
27028 dlopen_support=$enable_dlopen
27029
27030 # Whether dlopen of programs is supported.
27031 dlopen_self=$enable_dlopen_self
27032
27033 # Whether dlopen of statically linked programs is supported.
27034 dlopen_self_static=$enable_dlopen_self_static
27035
27036 # Compiler flag to prevent dynamic linking.
27037 link_static_flag=$lt_lt_prog_compiler_static_RC
27038
27039 # Compiler flag to turn off builtin functions.
27040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27041
27042 # Compiler flag to allow reflexive dlopens.
27043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27044
27045 # Compiler flag to generate shared objects directly from archives.
27046 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27047
27048 # Compiler flag to generate thread-safe objects.
27049 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27050
27051 # Library versioning type.
27052 version_type=$version_type
27053
27054 # Format of library name prefix.
27055 libname_spec=$lt_libname_spec
27056
27057 # List of archive names.  First name is the real one, the rest are links.
27058 # The last name is the one that the linker finds with -lNAME.
27059 library_names_spec=$lt_library_names_spec
27060
27061 # The coded name of the library, if different from the real name.
27062 soname_spec=$lt_soname_spec
27063
27064 # Commands used to build and install an old-style archive.
27065 RANLIB=$lt_RANLIB
27066 old_archive_cmds=$lt_old_archive_cmds_RC
27067 old_postinstall_cmds=$lt_old_postinstall_cmds
27068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27069
27070 # Create an old-style archive from a shared archive.
27071 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27072
27073 # Create a temporary old-style archive to link instead of a shared archive.
27074 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27075
27076 # Commands used to build and install a shared archive.
27077 archive_cmds=$lt_archive_cmds_RC
27078 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27079 postinstall_cmds=$lt_postinstall_cmds
27080 postuninstall_cmds=$lt_postuninstall_cmds
27081
27082 # Commands used to build a loadable module (assumed same as above if empty)
27083 module_cmds=$lt_module_cmds_RC
27084 module_expsym_cmds=$lt_module_expsym_cmds_RC
27085
27086 # Commands to strip libraries.
27087 old_striplib=$lt_old_striplib
27088 striplib=$lt_striplib
27089
27090 # Dependencies to place before the objects being linked to create a
27091 # shared library.
27092 predep_objects=$lt_predep_objects_RC
27093
27094 # Dependencies to place after the objects being linked to create a
27095 # shared library.
27096 postdep_objects=$lt_postdep_objects_RC
27097
27098 # Dependencies to place before the objects being linked to create a
27099 # shared library.
27100 predeps=$lt_predeps_RC
27101
27102 # Dependencies to place after the objects being linked to create a
27103 # shared library.
27104 postdeps=$lt_postdeps_RC
27105
27106 # The library search path used internally by the compiler when linking
27107 # a shared library.
27108 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27109
27110 # Method to check whether dependent libraries are shared objects.
27111 deplibs_check_method=$lt_deplibs_check_method
27112
27113 # Command to use when deplibs_check_method == file_magic.
27114 file_magic_cmd=$lt_file_magic_cmd
27115
27116 # Flag that allows shared libraries with undefined symbols to be built.
27117 allow_undefined_flag=$lt_allow_undefined_flag_RC
27118
27119 # Flag that forces no undefined symbols.
27120 no_undefined_flag=$lt_no_undefined_flag_RC
27121
27122 # Commands used to finish a libtool library installation in a directory.
27123 finish_cmds=$lt_finish_cmds
27124
27125 # Same as above, but a single script fragment to be evaled but not shown.
27126 finish_eval=$lt_finish_eval
27127
27128 # Take the output of nm and produce a listing of raw symbols and C names.
27129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27130
27131 # Transform the output of nm in a proper C declaration
27132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27133
27134 # Transform the output of nm in a C name address pair
27135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27136
27137 # This is the shared library runtime path variable.
27138 runpath_var=$runpath_var
27139
27140 # This is the shared library path variable.
27141 shlibpath_var=$shlibpath_var
27142
27143 # Is shlibpath searched before the hard-coded library search path?
27144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27145
27146 # How to hardcode a shared library path into an executable.
27147 hardcode_action=$hardcode_action_RC
27148
27149 # Whether we should hardcode library paths into libraries.
27150 hardcode_into_libs=$hardcode_into_libs
27151
27152 # Flag to hardcode \$libdir into a binary during linking.
27153 # This must work even if \$libdir does not exist.
27154 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27155
27156 # If ld is used when linking, flag to hardcode \$libdir into
27157 # a binary during linking. This must work even if \$libdir does
27158 # not exist.
27159 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27160
27161 # Whether we need a single -rpath flag with a separated argument.
27162 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27163
27164 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27165 # resulting binary.
27166 hardcode_direct=$hardcode_direct_RC
27167
27168 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27169 # resulting binary.
27170 hardcode_minus_L=$hardcode_minus_L_RC
27171
27172 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27173 # the resulting binary.
27174 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27175
27176 # Set to yes if building a shared library automatically hardcodes DIR into the library
27177 # and all subsequent libraries and executables linked against it.
27178 hardcode_automatic=$hardcode_automatic_RC
27179
27180 # Variables whose values should be saved in libtool wrapper scripts and
27181 # restored at relink time.
27182 variables_saved_for_relink="$variables_saved_for_relink"
27183
27184 # Whether libtool must link a program against all its dependency libraries.
27185 link_all_deplibs=$link_all_deplibs_RC
27186
27187 # Compile-time system search path for libraries
27188 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27189
27190 # Run-time system search path for libraries
27191 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27192
27193 # Fix the shell variable \$srcfile for the compiler.
27194 fix_srcfile_path="$fix_srcfile_path_RC"
27195
27196 # Set to yes if exported symbols are required.
27197 always_export_symbols=$always_export_symbols_RC
27198
27199 # The commands to list exported symbols.
27200 export_symbols_cmds=$lt_export_symbols_cmds_RC
27201
27202 # The commands to extract the exported symbol list from a shared archive.
27203 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27204
27205 # Symbols that should not be listed in the preloaded symbols.
27206 exclude_expsyms=$lt_exclude_expsyms_RC
27207
27208 # Symbols that must always be exported.
27209 include_expsyms=$lt_include_expsyms_RC
27210
27211 # ### END LIBTOOL TAG CONFIG: $tagname
27212
27213 __EOF__
27214
27215
27216 else
27217   # If there is no Makefile yet, we rely on a make rule to execute
27218   # `config.status --recheck' to rerun these tests and create the
27219   # libtool script then.
27220   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27221   if test -f "$ltmain_in"; then
27222     test -f Makefile && make "$ltmain"
27223   fi
27224 fi
27225
27226
27227 ac_ext=c
27228 ac_cpp='$CPP $CPPFLAGS'
27229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27232
27233 CC="$lt_save_CC"
27234
27235         ;;
27236
27237       *)
27238         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27239 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27240    { (exit 1); exit 1; }; }
27241         ;;
27242       esac
27243
27244       # Append the new tag name to the list of available tags.
27245       if test -n "$tagname" ; then
27246       available_tags="$available_tags $tagname"
27247     fi
27248     fi
27249   done
27250   IFS="$lt_save_ifs"
27251
27252   # Now substitute the updated list of available tags.
27253   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27254     mv "${ofile}T" "$ofile"
27255     chmod +x "$ofile"
27256   else
27257     rm -f "${ofile}T"
27258     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27259 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27260    { (exit 1); exit 1; }; }
27261   fi
27262 fi
27263
27264
27265
27266 # This can be used to rebuild libtool when needed
27267 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27268
27269 # Always use our own libtool.
27270 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27271
27272 # Prevent multiple expansion
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294 if test "$lt_cv_dlopen_self" = "yes" ; then
27295
27296 cat >>confdefs.h <<\_ACEOF
27297 #define CAN_DLOPEN_SELF 1
27298 _ACEOF
27299
27300 fi
27301
27302
27303 if test "$WITH_LLVMGCCDIR" = "default" ; then
27304   LLVMGCC="llvm-gcc${EXEEXT}"
27305   LLVMGXX="llvm-g++${EXEEXT}"
27306   LLVMGCCCOMMAND="$LLVMGCC"
27307   LLVMGXXCOMMAND="$LLVMGXX"
27308   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27309
27310   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27311
27312   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27313 set dummy $LLVMGCC; ac_word=$2
27314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27316 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27317   echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319   case $LLVMGCC in
27320   [\\/]* | ?:[\\/]*)
27321   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27322   ;;
27323   *)
27324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27325 for as_dir in $PATH
27326 do
27327   IFS=$as_save_IFS
27328   test -z "$as_dir" && as_dir=.
27329   for ac_exec_ext in '' $ac_executable_extensions; do
27330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27331     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27333     break 2
27334   fi
27335 done
27336 done
27337 IFS=$as_save_IFS
27338
27339   ;;
27340 esac
27341 fi
27342 LLVMGCC=$ac_cv_path_LLVMGCC
27343 if test -n "$LLVMGCC"; then
27344   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27345 echo "${ECHO_T}$LLVMGCC" >&6; }
27346 else
27347   { echo "$as_me:$LINENO: result: no" >&5
27348 echo "${ECHO_T}no" >&6; }
27349 fi
27350
27351
27352   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27353 set dummy $LLVMGXX; ac_word=$2
27354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27356 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27357   echo $ECHO_N "(cached) $ECHO_C" >&6
27358 else
27359   case $LLVMGXX in
27360   [\\/]* | ?:[\\/]*)
27361   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27362   ;;
27363   *)
27364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27365 for as_dir in $PATH
27366 do
27367   IFS=$as_save_IFS
27368   test -z "$as_dir" && as_dir=.
27369   for ac_exec_ext in '' $ac_executable_extensions; do
27370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27371     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27373     break 2
27374   fi
27375 done
27376 done
27377 IFS=$as_save_IFS
27378
27379   ;;
27380 esac
27381 fi
27382 LLVMGXX=$ac_cv_path_LLVMGXX
27383 if test -n "$LLVMGXX"; then
27384   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27385 echo "${ECHO_T}$LLVMGXX" >&6; }
27386 else
27387   { echo "$as_me:$LINENO: result: no" >&5
27388 echo "${ECHO_T}no" >&6; }
27389 fi
27390
27391
27392 else
27393   if test -z "$LLVMGCC"; then
27394     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27395     LLVMGCCCOMMAND="$LLVMGCC"
27396   fi
27397   if test -z "$LLVMGXX"; then
27398     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27399     LLVMGXXCOMMAND="$LLVMGXX"
27400   fi
27401
27402   LLVMGCC=$LLVMGCC
27403
27404   LLVMGXX=$LLVMGXX
27405
27406   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27407
27408   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27409
27410 fi
27411
27412
27413 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27414 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27415
27416 ICC=no
27417 IXX=no
27418 case $CC in
27419   icc*|icpc*)
27420     ICC=yes
27421     IXX=yes
27422     ;;
27423    *)
27424     ;;
27425 esac
27426
27427 if test "$GCC" != "yes" && test "$ICC" != "yes"
27428 then
27429   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27430 echo "$as_me: error: gcc|icc required but not found" >&2;}
27431    { (exit 1); exit 1; }; }
27432 fi
27433
27434 if test "$GXX" != "yes" && test "$IXX" != "yes"
27435 then
27436   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27437 echo "$as_me: error: g++|icc required but not found" >&2;}
27438    { (exit 1); exit 1; }; }
27439 fi
27440
27441 if test "$GCC" = "yes"
27442 then
27443   cat >conftest.$ac_ext <<_ACEOF
27444 #if !defined(__GNUC__) || __GNUC__ < 3
27445 #error Unsupported GCC version
27446 #endif
27447
27448 _ACEOF
27449 rm -f conftest.$ac_objext
27450 if { (ac_try="$ac_compile"
27451 case "(($ac_try" in
27452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453   *) ac_try_echo=$ac_try;;
27454 esac
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456   (eval "$ac_compile") 2>conftest.er1
27457   ac_status=$?
27458   grep -v '^ *+' conftest.er1 >conftest.err
27459   rm -f conftest.er1
27460   cat conftest.err >&5
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } &&
27463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464   { (case "(($ac_try" in
27465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466   *) ac_try_echo=$ac_try;;
27467 esac
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469   (eval "$ac_try") 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; } &&
27473          { ac_try='test -s conftest.$ac_objext'
27474   { (case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479   (eval "$ac_try") 2>&5
27480   ac_status=$?
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); }; }; then
27483   :
27484 else
27485   echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27487
27488         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27489 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27490    { (exit 1); exit 1; }; }
27491 fi
27492
27493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27494 fi
27495
27496 if test -z "$llvm_cv_gnu_make_command"
27497 then
27498   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27499 echo "$as_me: error: GNU Make required but not found" >&2;}
27500    { (exit 1); exit 1; }; }
27501 fi
27502
27503 { echo "$as_me:$LINENO: result: ok" >&5
27504 echo "${ECHO_T}ok" >&6; }
27505
27506 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27507 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27508 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27509
27510 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27511
27512 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27513 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27514
27515
27516
27517 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27518 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27519 if test "${ac_cv_lib_m_sin+set}" = set; then
27520   echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522   ac_check_lib_save_LIBS=$LIBS
27523 LIBS="-lm  $LIBS"
27524 cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h.  */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h.  */
27530
27531 /* Override any GCC internal prototype to avoid an error.
27532    Use char because int might match the return type of a GCC
27533    builtin and then its argument prototype would still apply.  */
27534 #ifdef __cplusplus
27535 extern "C"
27536 #endif
27537 char sin ();
27538 int
27539 main ()
27540 {
27541 return sin ();
27542   ;
27543   return 0;
27544 }
27545 _ACEOF
27546 rm -f conftest.$ac_objext conftest$ac_exeext
27547 if { (ac_try="$ac_link"
27548 case "(($ac_try" in
27549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550   *) ac_try_echo=$ac_try;;
27551 esac
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553   (eval "$ac_link") 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } &&
27560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561   { (case "(($ac_try" in
27562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563   *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566   (eval "$ac_try") 2>&5
27567   ac_status=$?
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); }; } &&
27570          { ac_try='test -s conftest$ac_exeext'
27571   { (case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_try") 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_lib_m_sin=yes
27581 else
27582   echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585         ac_cv_lib_m_sin=no
27586 fi
27587
27588 rm -f core conftest.err conftest.$ac_objext \
27589       conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27591 fi
27592 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27593 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27594 if test $ac_cv_lib_m_sin = yes; then
27595   cat >>confdefs.h <<_ACEOF
27596 #define HAVE_LIBM 1
27597 _ACEOF
27598
27599   LIBS="-lm $LIBS"
27600
27601 fi
27602
27603 if test "$llvm_cv_os_type" = "MingW" ; then
27604
27605 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27606 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27607 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27608   echo $ECHO_N "(cached) $ECHO_C" >&6
27609 else
27610   ac_check_lib_save_LIBS=$LIBS
27611 LIBS="-limagehlp  $LIBS"
27612 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h.  */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h.  */
27618
27619
27620 int
27621 main ()
27622 {
27623 return main ();
27624   ;
27625   return 0;
27626 }
27627 _ACEOF
27628 rm -f conftest.$ac_objext conftest$ac_exeext
27629 if { (ac_try="$ac_link"
27630 case "(($ac_try" in
27631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632   *) ac_try_echo=$ac_try;;
27633 esac
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635   (eval "$ac_link") 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } &&
27642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27643   { (case "(($ac_try" in
27644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645   *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648   (eval "$ac_try") 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; } &&
27652          { ac_try='test -s conftest$ac_exeext'
27653   { (case "(($ac_try" in
27654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655   *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658   (eval "$ac_try") 2>&5
27659   ac_status=$?
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); }; }; then
27662   ac_cv_lib_imagehlp_main=yes
27663 else
27664   echo "$as_me: failed program was:" >&5
27665 sed 's/^/| /' conftest.$ac_ext >&5
27666
27667         ac_cv_lib_imagehlp_main=no
27668 fi
27669
27670 rm -f core conftest.err conftest.$ac_objext \
27671       conftest$ac_exeext conftest.$ac_ext
27672 LIBS=$ac_check_lib_save_LIBS
27673 fi
27674 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27675 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27676 if test $ac_cv_lib_imagehlp_main = yes; then
27677   cat >>confdefs.h <<_ACEOF
27678 #define HAVE_LIBIMAGEHLP 1
27679 _ACEOF
27680
27681   LIBS="-limagehlp $LIBS"
27682
27683 fi
27684
27685
27686 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27687 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27688 if test "${ac_cv_lib_psapi_main+set}" = set; then
27689   echo $ECHO_N "(cached) $ECHO_C" >&6
27690 else
27691   ac_check_lib_save_LIBS=$LIBS
27692 LIBS="-lpsapi  $LIBS"
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699
27700
27701 int
27702 main ()
27703 {
27704 return main ();
27705   ;
27706   return 0;
27707 }
27708 _ACEOF
27709 rm -f conftest.$ac_objext conftest$ac_exeext
27710 if { (ac_try="$ac_link"
27711 case "(($ac_try" in
27712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713   *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716   (eval "$ac_link") 2>conftest.er1
27717   ac_status=$?
27718   grep -v '^ *+' conftest.er1 >conftest.err
27719   rm -f conftest.er1
27720   cat conftest.err >&5
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); } &&
27723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27724   { (case "(($ac_try" in
27725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726   *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729   (eval "$ac_try") 2>&5
27730   ac_status=$?
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); }; } &&
27733          { ac_try='test -s conftest$ac_exeext'
27734   { (case "(($ac_try" in
27735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736   *) ac_try_echo=$ac_try;;
27737 esac
27738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739   (eval "$ac_try") 2>&5
27740   ac_status=$?
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); }; }; then
27743   ac_cv_lib_psapi_main=yes
27744 else
27745   echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27747
27748         ac_cv_lib_psapi_main=no
27749 fi
27750
27751 rm -f core conftest.err conftest.$ac_objext \
27752       conftest$ac_exeext conftest.$ac_ext
27753 LIBS=$ac_check_lib_save_LIBS
27754 fi
27755 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27756 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27757 if test $ac_cv_lib_psapi_main = yes; then
27758   cat >>confdefs.h <<_ACEOF
27759 #define HAVE_LIBPSAPI 1
27760 _ACEOF
27761
27762   LIBS="-lpsapi $LIBS"
27763
27764 fi
27765
27766 fi
27767
27768 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27769 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27770 if test "${ac_cv_search_dlopen+set}" = set; then
27771   echo $ECHO_N "(cached) $ECHO_C" >&6
27772 else
27773   ac_func_search_save_LIBS=$LIBS
27774 cat >conftest.$ac_ext <<_ACEOF
27775 /* confdefs.h.  */
27776 _ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h.  */
27780
27781 /* Override any GCC internal prototype to avoid an error.
27782    Use char because int might match the return type of a GCC
27783    builtin and then its argument prototype would still apply.  */
27784 #ifdef __cplusplus
27785 extern "C"
27786 #endif
27787 char dlopen ();
27788 int
27789 main ()
27790 {
27791 return dlopen ();
27792   ;
27793   return 0;
27794 }
27795 _ACEOF
27796 for ac_lib in '' dl; do
27797   if test -z "$ac_lib"; then
27798     ac_res="none required"
27799   else
27800     ac_res=-l$ac_lib
27801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27802   fi
27803   rm -f conftest.$ac_objext conftest$ac_exeext
27804 if { (ac_try="$ac_link"
27805 case "(($ac_try" in
27806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807   *) ac_try_echo=$ac_try;;
27808 esac
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810   (eval "$ac_link") 2>conftest.er1
27811   ac_status=$?
27812   grep -v '^ *+' conftest.er1 >conftest.err
27813   rm -f conftest.er1
27814   cat conftest.err >&5
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); } &&
27817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27818   { (case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_try") 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; } &&
27827          { ac_try='test -s conftest$ac_exeext'
27828   { (case "(($ac_try" in
27829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830   *) ac_try_echo=$ac_try;;
27831 esac
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833   (eval "$ac_try") 2>&5
27834   ac_status=$?
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); }; }; then
27837   ac_cv_search_dlopen=$ac_res
27838 else
27839   echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27841
27842
27843 fi
27844
27845 rm -f core conftest.err conftest.$ac_objext \
27846       conftest$ac_exeext
27847   if test "${ac_cv_search_dlopen+set}" = set; then
27848   break
27849 fi
27850 done
27851 if test "${ac_cv_search_dlopen+set}" = set; then
27852   :
27853 else
27854   ac_cv_search_dlopen=no
27855 fi
27856 rm conftest.$ac_ext
27857 LIBS=$ac_func_search_save_LIBS
27858 fi
27859 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27860 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27861 ac_res=$ac_cv_search_dlopen
27862 if test "$ac_res" != no; then
27863   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27864
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_DLOPEN 1
27867 _ACEOF
27868
27869 else
27870   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27871 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27872 fi
27873
27874
27875 if test "$llvm_cv_enable_libffi" = "yes" ; then
27876   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27877 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27878 if test "${ac_cv_search_ffi_call+set}" = set; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   ac_func_search_save_LIBS=$LIBS
27882 cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h.  */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h.  */
27888
27889 /* Override any GCC internal prototype to avoid an error.
27890    Use char because int might match the return type of a GCC
27891    builtin and then its argument prototype would still apply.  */
27892 #ifdef __cplusplus
27893 extern "C"
27894 #endif
27895 char ffi_call ();
27896 int
27897 main ()
27898 {
27899 return ffi_call ();
27900   ;
27901   return 0;
27902 }
27903 _ACEOF
27904 for ac_lib in '' ffi; do
27905   if test -z "$ac_lib"; then
27906     ac_res="none required"
27907   else
27908     ac_res=-l$ac_lib
27909     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27910   fi
27911   rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (ac_try="$ac_link"
27913 case "(($ac_try" in
27914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915   *) ac_try_echo=$ac_try;;
27916 esac
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918   (eval "$ac_link") 2>conftest.er1
27919   ac_status=$?
27920   grep -v '^ *+' conftest.er1 >conftest.err
27921   rm -f conftest.er1
27922   cat conftest.err >&5
27923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924   (exit $ac_status); } &&
27925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27926   { (case "(($ac_try" in
27927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928   *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931   (eval "$ac_try") 2>&5
27932   ac_status=$?
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); }; } &&
27935          { ac_try='test -s conftest$ac_exeext'
27936   { (case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_try") 2>&5
27942   ac_status=$?
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); }; }; then
27945   ac_cv_search_ffi_call=$ac_res
27946 else
27947   echo "$as_me: failed program was:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27949
27950
27951 fi
27952
27953 rm -f core conftest.err conftest.$ac_objext \
27954       conftest$ac_exeext
27955   if test "${ac_cv_search_ffi_call+set}" = set; then
27956   break
27957 fi
27958 done
27959 if test "${ac_cv_search_ffi_call+set}" = set; then
27960   :
27961 else
27962   ac_cv_search_ffi_call=no
27963 fi
27964 rm conftest.$ac_ext
27965 LIBS=$ac_func_search_save_LIBS
27966 fi
27967 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27968 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27969 ac_res=$ac_cv_search_ffi_call
27970 if test "$ac_res" != no; then
27971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27972
27973 cat >>confdefs.h <<\_ACEOF
27974 #define HAVE_FFI_CALL 1
27975 _ACEOF
27976
27977 else
27978   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27979 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27980 fi
27981
27982 fi
27983
27984 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27985 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27986 if test "${ac_cv_search_mallinfo+set}" = set; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989   ac_func_search_save_LIBS=$LIBS
27990 cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h.  */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h.  */
27996
27997 /* Override any GCC internal prototype to avoid an error.
27998    Use char because int might match the return type of a GCC
27999    builtin and then its argument prototype would still apply.  */
28000 #ifdef __cplusplus
28001 extern "C"
28002 #endif
28003 char mallinfo ();
28004 int
28005 main ()
28006 {
28007 return mallinfo ();
28008   ;
28009   return 0;
28010 }
28011 _ACEOF
28012 for ac_lib in '' malloc; do
28013   if test -z "$ac_lib"; then
28014     ac_res="none required"
28015   else
28016     ac_res=-l$ac_lib
28017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28018   fi
28019   rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (ac_try="$ac_link"
28021 case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026   (eval "$ac_link") 2>conftest.er1
28027   ac_status=$?
28028   grep -v '^ *+' conftest.er1 >conftest.err
28029   rm -f conftest.er1
28030   cat conftest.err >&5
28031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032   (exit $ac_status); } &&
28033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28034   { (case "(($ac_try" in
28035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036   *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039   (eval "$ac_try") 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; } &&
28043          { ac_try='test -s conftest$ac_exeext'
28044   { (case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_try") 2>&5
28050   ac_status=$?
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); }; }; then
28053   ac_cv_search_mallinfo=$ac_res
28054 else
28055   echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28057
28058
28059 fi
28060
28061 rm -f core conftest.err conftest.$ac_objext \
28062       conftest$ac_exeext
28063   if test "${ac_cv_search_mallinfo+set}" = set; then
28064   break
28065 fi
28066 done
28067 if test "${ac_cv_search_mallinfo+set}" = set; then
28068   :
28069 else
28070   ac_cv_search_mallinfo=no
28071 fi
28072 rm conftest.$ac_ext
28073 LIBS=$ac_func_search_save_LIBS
28074 fi
28075 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28076 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28077 ac_res=$ac_cv_search_mallinfo
28078 if test "$ac_res" != no; then
28079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28080
28081 cat >>confdefs.h <<\_ACEOF
28082 #define HAVE_MALLINFO 1
28083 _ACEOF
28084
28085 fi
28086
28087
28088 if test "$ENABLE_THREADS" -eq 1 ; then
28089
28090 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28091 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28092 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   ac_check_lib_save_LIBS=$LIBS
28096 LIBS="-lpthread  $LIBS"
28097 cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103
28104 /* Override any GCC internal prototype to avoid an error.
28105    Use char because int might match the return type of a GCC
28106    builtin and then its argument prototype would still apply.  */
28107 #ifdef __cplusplus
28108 extern "C"
28109 #endif
28110 char pthread_mutex_init ();
28111 int
28112 main ()
28113 {
28114 return pthread_mutex_init ();
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_link") 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } &&
28133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28134   { (case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_try") 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; } &&
28143          { ac_try='test -s conftest$ac_exeext'
28144   { (case "(($ac_try" in
28145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146   *) ac_try_echo=$ac_try;;
28147 esac
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149   (eval "$ac_try") 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); }; }; then
28153   ac_cv_lib_pthread_pthread_mutex_init=yes
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158         ac_cv_lib_pthread_pthread_mutex_init=no
28159 fi
28160
28161 rm -f core conftest.err conftest.$ac_objext \
28162       conftest$ac_exeext conftest.$ac_ext
28163 LIBS=$ac_check_lib_save_LIBS
28164 fi
28165 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28166 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28167 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28168   cat >>confdefs.h <<_ACEOF
28169 #define HAVE_LIBPTHREAD 1
28170 _ACEOF
28171
28172   LIBS="-lpthread $LIBS"
28173
28174 fi
28175
28176   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28177 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28178 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   ac_func_search_save_LIBS=$LIBS
28182 cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h.  */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h.  */
28188
28189 /* Override any GCC internal prototype to avoid an error.
28190    Use char because int might match the return type of a GCC
28191    builtin and then its argument prototype would still apply.  */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char pthread_mutex_lock ();
28196 int
28197 main ()
28198 {
28199 return pthread_mutex_lock ();
28200   ;
28201   return 0;
28202 }
28203 _ACEOF
28204 for ac_lib in '' pthread; do
28205   if test -z "$ac_lib"; then
28206     ac_res="none required"
28207   else
28208     ac_res=-l$ac_lib
28209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28210   fi
28211   rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_link") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } &&
28225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226   { (case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_try") 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest$ac_exeext'
28236   { (case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_try") 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ac_cv_search_pthread_mutex_lock=$ac_res
28246 else
28247   echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28249
28250
28251 fi
28252
28253 rm -f core conftest.err conftest.$ac_objext \
28254       conftest$ac_exeext
28255   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28256   break
28257 fi
28258 done
28259 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28260   :
28261 else
28262   ac_cv_search_pthread_mutex_lock=no
28263 fi
28264 rm conftest.$ac_ext
28265 LIBS=$ac_func_search_save_LIBS
28266 fi
28267 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28268 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28269 ac_res=$ac_cv_search_pthread_mutex_lock
28270 if test "$ac_res" != no; then
28271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28272
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_PTHREAD_MUTEX_LOCK 1
28275 _ACEOF
28276
28277 fi
28278
28279   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28280 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28281 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28282   echo $ECHO_N "(cached) $ECHO_C" >&6
28283 else
28284   ac_func_search_save_LIBS=$LIBS
28285 cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h.  */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h.  */
28291
28292 /* Override any GCC internal prototype to avoid an error.
28293    Use char because int might match the return type of a GCC
28294    builtin and then its argument prototype would still apply.  */
28295 #ifdef __cplusplus
28296 extern "C"
28297 #endif
28298 char pthread_rwlock_init ();
28299 int
28300 main ()
28301 {
28302 return pthread_rwlock_init ();
28303   ;
28304   return 0;
28305 }
28306 _ACEOF
28307 for ac_lib in '' pthread; do
28308   if test -z "$ac_lib"; then
28309     ac_res="none required"
28310   else
28311     ac_res=-l$ac_lib
28312     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28313   fi
28314   rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (ac_try="$ac_link"
28316 case "(($ac_try" in
28317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28318   *) ac_try_echo=$ac_try;;
28319 esac
28320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28321   (eval "$ac_link") 2>conftest.er1
28322   ac_status=$?
28323   grep -v '^ *+' conftest.er1 >conftest.err
28324   rm -f conftest.er1
28325   cat conftest.err >&5
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); } &&
28328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28329   { (case "(($ac_try" in
28330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28331   *) ac_try_echo=$ac_try;;
28332 esac
28333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28334   (eval "$ac_try") 2>&5
28335   ac_status=$?
28336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337   (exit $ac_status); }; } &&
28338          { ac_try='test -s conftest$ac_exeext'
28339   { (case "(($ac_try" in
28340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28341   *) ac_try_echo=$ac_try;;
28342 esac
28343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28344   (eval "$ac_try") 2>&5
28345   ac_status=$?
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; }; then
28348   ac_cv_search_pthread_rwlock_init=$ac_res
28349 else
28350   echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28352
28353
28354 fi
28355
28356 rm -f core conftest.err conftest.$ac_objext \
28357       conftest$ac_exeext
28358   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28359   break
28360 fi
28361 done
28362 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28363   :
28364 else
28365   ac_cv_search_pthread_rwlock_init=no
28366 fi
28367 rm conftest.$ac_ext
28368 LIBS=$ac_func_search_save_LIBS
28369 fi
28370 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28371 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28372 ac_res=$ac_cv_search_pthread_rwlock_init
28373 if test "$ac_res" != no; then
28374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28375
28376 cat >>confdefs.h <<\_ACEOF
28377 #define HAVE_PTHREAD_RWLOCK_INIT 1
28378 _ACEOF
28379
28380 fi
28381
28382   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28383 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28384 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28385   echo $ECHO_N "(cached) $ECHO_C" >&6
28386 else
28387   ac_func_search_save_LIBS=$LIBS
28388 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394
28395 /* Override any GCC internal prototype to avoid an error.
28396    Use char because int might match the return type of a GCC
28397    builtin and then its argument prototype would still apply.  */
28398 #ifdef __cplusplus
28399 extern "C"
28400 #endif
28401 char pthread_getspecific ();
28402 int
28403 main ()
28404 {
28405 return pthread_getspecific ();
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 for ac_lib in '' pthread; do
28411   if test -z "$ac_lib"; then
28412     ac_res="none required"
28413   else
28414     ac_res=-l$ac_lib
28415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28416   fi
28417   rm -f conftest.$ac_objext conftest$ac_exeext
28418 if { (ac_try="$ac_link"
28419 case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_link") 2>conftest.er1
28425   ac_status=$?
28426   grep -v '^ *+' conftest.er1 >conftest.err
28427   rm -f conftest.er1
28428   cat conftest.err >&5
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); } &&
28431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28432   { (case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437   (eval "$ac_try") 2>&5
28438   ac_status=$?
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); }; } &&
28441          { ac_try='test -s conftest$ac_exeext'
28442   { (case "(($ac_try" in
28443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444   *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447   (eval "$ac_try") 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); }; }; then
28451   ac_cv_search_pthread_getspecific=$ac_res
28452 else
28453   echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28455
28456
28457 fi
28458
28459 rm -f core conftest.err conftest.$ac_objext \
28460       conftest$ac_exeext
28461   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28462   break
28463 fi
28464 done
28465 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28466   :
28467 else
28468   ac_cv_search_pthread_getspecific=no
28469 fi
28470 rm conftest.$ac_ext
28471 LIBS=$ac_func_search_save_LIBS
28472 fi
28473 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28474 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28475 ac_res=$ac_cv_search_pthread_getspecific
28476 if test "$ac_res" != no; then
28477   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28478
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_PTHREAD_GETSPECIFIC 1
28481 _ACEOF
28482
28483 fi
28484
28485 fi
28486
28487
28488 # Check whether --with-udis86 was given.
28489 if test "${with_udis86+set}" = set; then
28490   withval=$with_udis86;
28491       USE_UDIS86=1
28492
28493       case "$withval" in
28494         /usr/lib|yes) ;;
28495         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28496       esac
28497
28498 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28499 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28500 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28501   echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503   ac_check_lib_save_LIBS=$LIBS
28504 LIBS="-ludis86  $LIBS"
28505 cat >conftest.$ac_ext <<_ACEOF
28506 /* confdefs.h.  */
28507 _ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h.  */
28511
28512 /* Override any GCC internal prototype to avoid an error.
28513    Use char because int might match the return type of a GCC
28514    builtin and then its argument prototype would still apply.  */
28515 #ifdef __cplusplus
28516 extern "C"
28517 #endif
28518 char ud_init ();
28519 int
28520 main ()
28521 {
28522 return ud_init ();
28523   ;
28524   return 0;
28525 }
28526 _ACEOF
28527 rm -f conftest.$ac_objext conftest$ac_exeext
28528 if { (ac_try="$ac_link"
28529 case "(($ac_try" in
28530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531   *) ac_try_echo=$ac_try;;
28532 esac
28533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534   (eval "$ac_link") 2>conftest.er1
28535   ac_status=$?
28536   grep -v '^ *+' conftest.er1 >conftest.err
28537   rm -f conftest.er1
28538   cat conftest.err >&5
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); } &&
28541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28542   { (case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_try") 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; } &&
28551          { ac_try='test -s conftest$ac_exeext'
28552   { (case "(($ac_try" in
28553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28554   *) ac_try_echo=$ac_try;;
28555 esac
28556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28557   (eval "$ac_try") 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); }; }; then
28561   ac_cv_lib_udis86_ud_init=yes
28562 else
28563   echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566         ac_cv_lib_udis86_ud_init=no
28567 fi
28568
28569 rm -f core conftest.err conftest.$ac_objext \
28570       conftest$ac_exeext conftest.$ac_ext
28571 LIBS=$ac_check_lib_save_LIBS
28572 fi
28573 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28574 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28575 if test $ac_cv_lib_udis86_ud_init = yes; then
28576   cat >>confdefs.h <<_ACEOF
28577 #define HAVE_LIBUDIS86 1
28578 _ACEOF
28579
28580   LIBS="-ludis86 $LIBS"
28581
28582 else
28583
28584         echo "Error! You need to have libudis86 around."
28585         exit -1
28586
28587 fi
28588
28589
28590 else
28591   USE_UDIS86=0
28592
28593 fi
28594
28595
28596 cat >>confdefs.h <<_ACEOF
28597 #define USE_UDIS86 $USE_UDIS86
28598 _ACEOF
28599
28600
28601
28602 # Check whether --with-oprofile was given.
28603 if test "${with_oprofile+set}" = set; then
28604   withval=$with_oprofile;
28605       USE_OPROFILE=1
28606
28607       case "$withval" in
28608         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28609         no) llvm_cv_oppath=
28610             USE_OPROFILE=0
28611  ;;
28612         *) llvm_cv_oppath="${withval}/lib/oprofile"
28613            CPPFLAGS="-I${withval}/include";;
28614       esac
28615       if test -n "$llvm_cv_oppath" ; then
28616         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28617                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28618 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28619 if test "${ac_cv_search_bfd_init+set}" = set; then
28620   echo $ECHO_N "(cached) $ECHO_C" >&6
28621 else
28622   ac_func_search_save_LIBS=$LIBS
28623 cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629
28630 /* Override any GCC internal prototype to avoid an error.
28631    Use char because int might match the return type of a GCC
28632    builtin and then its argument prototype would still apply.  */
28633 #ifdef __cplusplus
28634 extern "C"
28635 #endif
28636 char bfd_init ();
28637 int
28638 main ()
28639 {
28640 return bfd_init ();
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 for ac_lib in '' bfd; do
28646   if test -z "$ac_lib"; then
28647     ac_res="none required"
28648   else
28649     ac_res=-l$ac_lib
28650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28651   fi
28652   rm -f conftest.$ac_objext conftest$ac_exeext
28653 if { (ac_try="$ac_link"
28654 case "(($ac_try" in
28655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656   *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659   (eval "$ac_link") 2>conftest.er1
28660   ac_status=$?
28661   grep -v '^ *+' conftest.er1 >conftest.err
28662   rm -f conftest.er1
28663   cat conftest.err >&5
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); } &&
28666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667   { (case "(($ac_try" in
28668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669   *) ac_try_echo=$ac_try;;
28670 esac
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672   (eval "$ac_try") 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; } &&
28676          { ac_try='test -s conftest$ac_exeext'
28677   { (case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682   (eval "$ac_try") 2>&5
28683   ac_status=$?
28684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); }; }; then
28686   ac_cv_search_bfd_init=$ac_res
28687 else
28688   echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28690
28691
28692 fi
28693
28694 rm -f core conftest.err conftest.$ac_objext \
28695       conftest$ac_exeext
28696   if test "${ac_cv_search_bfd_init+set}" = set; then
28697   break
28698 fi
28699 done
28700 if test "${ac_cv_search_bfd_init+set}" = set; then
28701   :
28702 else
28703   ac_cv_search_bfd_init=no
28704 fi
28705 rm conftest.$ac_ext
28706 LIBS=$ac_func_search_save_LIBS
28707 fi
28708 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28709 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28710 ac_res=$ac_cv_search_bfd_init
28711 if test "$ac_res" != no; then
28712   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28713
28714 fi
28715
28716         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28717 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28718 if test "${ac_cv_search_op_open_agent+set}" = set; then
28719   echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721   ac_func_search_save_LIBS=$LIBS
28722 cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h.  */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h.  */
28728
28729 /* Override any GCC internal prototype to avoid an error.
28730    Use char because int might match the return type of a GCC
28731    builtin and then its argument prototype would still apply.  */
28732 #ifdef __cplusplus
28733 extern "C"
28734 #endif
28735 char op_open_agent ();
28736 int
28737 main ()
28738 {
28739 return op_open_agent ();
28740   ;
28741   return 0;
28742 }
28743 _ACEOF
28744 for ac_lib in '' opagent; do
28745   if test -z "$ac_lib"; then
28746     ac_res="none required"
28747   else
28748     ac_res=-l$ac_lib
28749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28750   fi
28751   rm -f conftest.$ac_objext conftest$ac_exeext
28752 if { (ac_try="$ac_link"
28753 case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758   (eval "$ac_link") 2>conftest.er1
28759   ac_status=$?
28760   grep -v '^ *+' conftest.er1 >conftest.err
28761   rm -f conftest.er1
28762   cat conftest.err >&5
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); } &&
28765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766   { (case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_try") 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; } &&
28775          { ac_try='test -s conftest$ac_exeext'
28776   { (case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_try") 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785   ac_cv_search_op_open_agent=$ac_res
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext \
28794       conftest$ac_exeext
28795   if test "${ac_cv_search_op_open_agent+set}" = set; then
28796   break
28797 fi
28798 done
28799 if test "${ac_cv_search_op_open_agent+set}" = set; then
28800   :
28801 else
28802   ac_cv_search_op_open_agent=no
28803 fi
28804 rm conftest.$ac_ext
28805 LIBS=$ac_func_search_save_LIBS
28806 fi
28807 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28808 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28809 ac_res=$ac_cv_search_op_open_agent
28810 if test "$ac_res" != no; then
28811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28812
28813 else
28814
28815           echo "Error! You need to have libopagent around."
28816           exit -1
28817
28818 fi
28819
28820         if test "${ac_cv_header_opagent_h+set}" = set; then
28821   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28822 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28823 if test "${ac_cv_header_opagent_h+set}" = set; then
28824   echo $ECHO_N "(cached) $ECHO_C" >&6
28825 fi
28826 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28827 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28828 else
28829   # Is the header compilable?
28830 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28831 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h.  */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h.  */
28838 $ac_includes_default
28839 #include <opagent.h>
28840 _ACEOF
28841 rm -f conftest.$ac_objext
28842 if { (ac_try="$ac_compile"
28843 case "(($ac_try" in
28844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845   *) ac_try_echo=$ac_try;;
28846 esac
28847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28848   (eval "$ac_compile") 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } &&
28855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28856   { (case "(($ac_try" in
28857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858   *) ac_try_echo=$ac_try;;
28859 esac
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861   (eval "$ac_try") 2>&5
28862   ac_status=$?
28863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864   (exit $ac_status); }; } &&
28865          { ac_try='test -s conftest.$ac_objext'
28866   { (case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_try") 2>&5
28872   ac_status=$?
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); }; }; then
28875   ac_header_compiler=yes
28876 else
28877   echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28879
28880         ac_header_compiler=no
28881 fi
28882
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28885 echo "${ECHO_T}$ac_header_compiler" >&6; }
28886
28887 # Is the header present?
28888 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28889 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28890 cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h.  */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h.  */
28896 #include <opagent.h>
28897 _ACEOF
28898 if { (ac_try="$ac_cpp conftest.$ac_ext"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28905   ac_status=$?
28906   grep -v '^ *+' conftest.er1 >conftest.err
28907   rm -f conftest.er1
28908   cat conftest.err >&5
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } >/dev/null; then
28911   if test -s conftest.err; then
28912     ac_cpp_err=$ac_c_preproc_warn_flag
28913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28914   else
28915     ac_cpp_err=
28916   fi
28917 else
28918   ac_cpp_err=yes
28919 fi
28920 if test -z "$ac_cpp_err"; then
28921   ac_header_preproc=yes
28922 else
28923   echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926   ac_header_preproc=no
28927 fi
28928
28929 rm -f conftest.err conftest.$ac_ext
28930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931 echo "${ECHO_T}$ac_header_preproc" >&6; }
28932
28933 # So?  What about this header?
28934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28935   yes:no: )
28936     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28937 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28939 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28940     ac_header_preproc=yes
28941     ;;
28942   no:yes:* )
28943     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28944 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28945     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28946 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28948 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28949     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28950 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28951     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28952 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28953     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28954 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28955     ( cat <<\_ASBOX
28956 ## ----------------------------------- ##
28957 ## Report this to llvmbugs@cs.uiuc.edu ##
28958 ## ----------------------------------- ##
28959 _ASBOX
28960      ) | sed "s/^/$as_me: WARNING:     /" >&2
28961     ;;
28962 esac
28963 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28964 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28965 if test "${ac_cv_header_opagent_h+set}" = set; then
28966   echo $ECHO_N "(cached) $ECHO_C" >&6
28967 else
28968   ac_cv_header_opagent_h=$ac_header_preproc
28969 fi
28970 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28971 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28972
28973 fi
28974 if test $ac_cv_header_opagent_h = yes; then
28975   :
28976 else
28977
28978           echo "Error! You need to have opagent.h around."
28979           exit -1
28980
28981 fi
28982
28983
28984       fi
28985
28986 else
28987
28988       USE_OPROFILE=0
28989
28990
28991 fi
28992
28993
28994 cat >>confdefs.h <<_ACEOF
28995 #define USE_OPROFILE $USE_OPROFILE
28996 _ACEOF
28997
28998
28999
29000
29001
29002
29003
29004
29005 ac_header_dirent=no
29006 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29007   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29008 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29009 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29011   echo $ECHO_N "(cached) $ECHO_C" >&6
29012 else
29013   cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019 #include <sys/types.h>
29020 #include <$ac_hdr>
29021
29022 int
29023 main ()
29024 {
29025 if ((DIR *) 0)
29026 return 0;
29027   ;
29028   return 0;
29029 }
29030 _ACEOF
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038   (eval "$ac_compile") 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } &&
29045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046   { (case "(($ac_try" in
29047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048   *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051   (eval "$ac_try") 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; } &&
29055          { ac_try='test -s conftest.$ac_objext'
29056   { (case "(($ac_try" in
29057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058   *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061   (eval "$ac_try") 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); }; }; then
29065   eval "$as_ac_Header=yes"
29066 else
29067   echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29069
29070         eval "$as_ac_Header=no"
29071 fi
29072
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 fi
29075 ac_res=`eval echo '${'$as_ac_Header'}'`
29076                { echo "$as_me:$LINENO: result: $ac_res" >&5
29077 echo "${ECHO_T}$ac_res" >&6; }
29078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079   cat >>confdefs.h <<_ACEOF
29080 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29081 _ACEOF
29082
29083 ac_header_dirent=$ac_hdr; break
29084 fi
29085
29086 done
29087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29088 if test $ac_header_dirent = dirent.h; then
29089   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29090 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29091 if test "${ac_cv_search_opendir+set}" = set; then
29092   echo $ECHO_N "(cached) $ECHO_C" >&6
29093 else
29094   ac_func_search_save_LIBS=$LIBS
29095 cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h.  */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h.  */
29101
29102 /* Override any GCC internal prototype to avoid an error.
29103    Use char because int might match the return type of a GCC
29104    builtin and then its argument prototype would still apply.  */
29105 #ifdef __cplusplus
29106 extern "C"
29107 #endif
29108 char opendir ();
29109 int
29110 main ()
29111 {
29112 return opendir ();
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 for ac_lib in '' dir; do
29118   if test -z "$ac_lib"; then
29119     ac_res="none required"
29120   else
29121     ac_res=-l$ac_lib
29122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29123   fi
29124   rm -f conftest.$ac_objext conftest$ac_exeext
29125 if { (ac_try="$ac_link"
29126 case "(($ac_try" in
29127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128   *) ac_try_echo=$ac_try;;
29129 esac
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131   (eval "$ac_link") 2>conftest.er1
29132   ac_status=$?
29133   grep -v '^ *+' conftest.er1 >conftest.err
29134   rm -f conftest.er1
29135   cat conftest.err >&5
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); } &&
29138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29139   { (case "(($ac_try" in
29140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141   *) ac_try_echo=$ac_try;;
29142 esac
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144   (eval "$ac_try") 2>&5
29145   ac_status=$?
29146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147   (exit $ac_status); }; } &&
29148          { ac_try='test -s conftest$ac_exeext'
29149   { (case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_try") 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); }; }; then
29158   ac_cv_search_opendir=$ac_res
29159 else
29160   echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29162
29163
29164 fi
29165
29166 rm -f core conftest.err conftest.$ac_objext \
29167       conftest$ac_exeext
29168   if test "${ac_cv_search_opendir+set}" = set; then
29169   break
29170 fi
29171 done
29172 if test "${ac_cv_search_opendir+set}" = set; then
29173   :
29174 else
29175   ac_cv_search_opendir=no
29176 fi
29177 rm conftest.$ac_ext
29178 LIBS=$ac_func_search_save_LIBS
29179 fi
29180 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29181 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29182 ac_res=$ac_cv_search_opendir
29183 if test "$ac_res" != no; then
29184   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29185
29186 fi
29187
29188 else
29189   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29191 if test "${ac_cv_search_opendir+set}" = set; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194   ac_func_search_save_LIBS=$LIBS
29195 cat >conftest.$ac_ext <<_ACEOF
29196 /* confdefs.h.  */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h.  */
29201
29202 /* Override any GCC internal prototype to avoid an error.
29203    Use char because int might match the return type of a GCC
29204    builtin and then its argument prototype would still apply.  */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 char opendir ();
29209 int
29210 main ()
29211 {
29212 return opendir ();
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 for ac_lib in '' x; do
29218   if test -z "$ac_lib"; then
29219     ac_res="none required"
29220   else
29221     ac_res=-l$ac_lib
29222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29223   fi
29224   rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_link") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } &&
29238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29239   { (case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_try") 2>&5
29245   ac_status=$?
29246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247   (exit $ac_status); }; } &&
29248          { ac_try='test -s conftest$ac_exeext'
29249   { (case "(($ac_try" in
29250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251   *) ac_try_echo=$ac_try;;
29252 esac
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254   (eval "$ac_try") 2>&5
29255   ac_status=$?
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); }; }; then
29258   ac_cv_search_opendir=$ac_res
29259 else
29260   echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29262
29263
29264 fi
29265
29266 rm -f core conftest.err conftest.$ac_objext \
29267       conftest$ac_exeext
29268   if test "${ac_cv_search_opendir+set}" = set; then
29269   break
29270 fi
29271 done
29272 if test "${ac_cv_search_opendir+set}" = set; then
29273   :
29274 else
29275   ac_cv_search_opendir=no
29276 fi
29277 rm conftest.$ac_ext
29278 LIBS=$ac_func_search_save_LIBS
29279 fi
29280 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29281 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29282 ac_res=$ac_cv_search_opendir
29283 if test "$ac_res" != no; then
29284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29285
29286 fi
29287
29288 fi
29289
29290 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29291 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29292 if test "${ac_cv_header_mmap_anon+set}" = set; then
29293   echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295    ac_ext=c
29296 ac_cpp='$CPP $CPPFLAGS'
29297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29300
29301   cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h.  */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h.  */
29307 #include <sys/mman.h>
29308 #include <unistd.h>
29309 #include <fcntl.h>
29310 int
29311 main ()
29312 {
29313 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325   (eval "$ac_compile") 2>conftest.er1
29326   ac_status=$?
29327   grep -v '^ *+' conftest.er1 >conftest.err
29328   rm -f conftest.er1
29329   cat conftest.err >&5
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); } &&
29332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333   { (case "(($ac_try" in
29334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335   *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338   (eval "$ac_try") 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest.$ac_objext'
29343   { (case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_try") 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); }; }; then
29352   ac_cv_header_mmap_anon=yes
29353 else
29354   echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29356
29357         ac_cv_header_mmap_anon=no
29358 fi
29359
29360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29361   ac_ext=c
29362 ac_cpp='$CPP $CPPFLAGS'
29363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29366
29367
29368 fi
29369 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29370 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29371 if test "$ac_cv_header_mmap_anon" = yes; then
29372
29373 cat >>confdefs.h <<\_ACEOF
29374 #define HAVE_MMAP_ANONYMOUS 1
29375 _ACEOF
29376
29377 fi
29378
29379 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29380 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29381 if test "${ac_cv_header_stat_broken+set}" = set; then
29382   echo $ECHO_N "(cached) $ECHO_C" >&6
29383 else
29384   cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390 #include <sys/types.h>
29391 #include <sys/stat.h>
29392
29393 #if defined S_ISBLK && defined S_IFDIR
29394 # if S_ISBLK (S_IFDIR)
29395 You lose.
29396 # endif
29397 #endif
29398
29399 #if defined S_ISBLK && defined S_IFCHR
29400 # if S_ISBLK (S_IFCHR)
29401 You lose.
29402 # endif
29403 #endif
29404
29405 #if defined S_ISLNK && defined S_IFREG
29406 # if S_ISLNK (S_IFREG)
29407 You lose.
29408 # endif
29409 #endif
29410
29411 #if defined S_ISSOCK && defined S_IFREG
29412 # if S_ISSOCK (S_IFREG)
29413 You lose.
29414 # endif
29415 #endif
29416
29417 _ACEOF
29418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29419   $EGREP "You lose" >/dev/null 2>&1; then
29420   ac_cv_header_stat_broken=yes
29421 else
29422   ac_cv_header_stat_broken=no
29423 fi
29424 rm -f conftest*
29425
29426 fi
29427 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29428 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29429 if test $ac_cv_header_stat_broken = yes; then
29430
29431 cat >>confdefs.h <<\_ACEOF
29432 #define STAT_MACROS_BROKEN 1
29433 _ACEOF
29434
29435 fi
29436
29437 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29439 if test "${ac_cv_header_stdc+set}" = set; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442   cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448 #include <stdlib.h>
29449 #include <stdarg.h>
29450 #include <string.h>
29451 #include <float.h>
29452
29453 int
29454 main ()
29455 {
29456
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext
29462 if { (ac_try="$ac_compile"
29463 case "(($ac_try" in
29464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465   *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468   (eval "$ac_compile") 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } &&
29475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29476   { (case "(($ac_try" in
29477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478   *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481   (eval "$ac_try") 2>&5
29482   ac_status=$?
29483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484   (exit $ac_status); }; } &&
29485          { ac_try='test -s conftest.$ac_objext'
29486   { (case "(($ac_try" in
29487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29488   *) ac_try_echo=$ac_try;;
29489 esac
29490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29491   (eval "$ac_try") 2>&5
29492   ac_status=$?
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); }; }; then
29495   ac_cv_header_stdc=yes
29496 else
29497   echo "$as_me: failed program was:" >&5
29498 sed 's/^/| /' conftest.$ac_ext >&5
29499
29500         ac_cv_header_stdc=no
29501 fi
29502
29503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29504
29505 if test $ac_cv_header_stdc = yes; then
29506   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29507   cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513 #include <string.h>
29514
29515 _ACEOF
29516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29517   $EGREP "memchr" >/dev/null 2>&1; then
29518   :
29519 else
29520   ac_cv_header_stdc=no
29521 fi
29522 rm -f conftest*
29523
29524 fi
29525
29526 if test $ac_cv_header_stdc = yes; then
29527   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29528   cat >conftest.$ac_ext <<_ACEOF
29529 /* confdefs.h.  */
29530 _ACEOF
29531 cat confdefs.h >>conftest.$ac_ext
29532 cat >>conftest.$ac_ext <<_ACEOF
29533 /* end confdefs.h.  */
29534 #include <stdlib.h>
29535
29536 _ACEOF
29537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29538   $EGREP "free" >/dev/null 2>&1; then
29539   :
29540 else
29541   ac_cv_header_stdc=no
29542 fi
29543 rm -f conftest*
29544
29545 fi
29546
29547 if test $ac_cv_header_stdc = yes; then
29548   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29549   if test "$cross_compiling" = yes; then
29550   :
29551 else
29552   cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558 #include <ctype.h>
29559 #include <stdlib.h>
29560 #if ((' ' & 0x0FF) == 0x020)
29561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29563 #else
29564 # define ISLOWER(c) \
29565                    (('a' <= (c) && (c) <= 'i') \
29566                      || ('j' <= (c) && (c) <= 'r') \
29567                      || ('s' <= (c) && (c) <= 'z'))
29568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29569 #endif
29570
29571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29572 int
29573 main ()
29574 {
29575   int i;
29576   for (i = 0; i < 256; i++)
29577     if (XOR (islower (i), ISLOWER (i))
29578         || toupper (i) != TOUPPER (i))
29579       return 2;
29580   return 0;
29581 }
29582 _ACEOF
29583 rm -f conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_link") 2>&5
29591   ac_status=$?
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29594   { (case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599   (eval "$ac_try") 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; }; then
29603   :
29604 else
29605   echo "$as_me: program exited with status $ac_status" >&5
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609 ( exit $ac_status )
29610 ac_cv_header_stdc=no
29611 fi
29612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29613 fi
29614
29615
29616 fi
29617 fi
29618 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29619 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29620 if test $ac_cv_header_stdc = yes; then
29621
29622 cat >>confdefs.h <<\_ACEOF
29623 #define STDC_HEADERS 1
29624 _ACEOF
29625
29626 fi
29627
29628 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29629 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29630 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29631   echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633   cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639 #include <sys/types.h>
29640 #include <sys/wait.h>
29641 #ifndef WEXITSTATUS
29642 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29643 #endif
29644 #ifndef WIFEXITED
29645 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29646 #endif
29647
29648 int
29649 main ()
29650 {
29651   int s;
29652   wait (&s);
29653   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29654   ;
29655   return 0;
29656 }
29657 _ACEOF
29658 rm -f conftest.$ac_objext
29659 if { (ac_try="$ac_compile"
29660 case "(($ac_try" in
29661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662   *) ac_try_echo=$ac_try;;
29663 esac
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665   (eval "$ac_compile") 2>conftest.er1
29666   ac_status=$?
29667   grep -v '^ *+' conftest.er1 >conftest.err
29668   rm -f conftest.er1
29669   cat conftest.err >&5
29670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671   (exit $ac_status); } &&
29672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29673   { (case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_try") 2>&5
29679   ac_status=$?
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); }; } &&
29682          { ac_try='test -s conftest.$ac_objext'
29683   { (case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_try") 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); }; }; then
29692   ac_cv_header_sys_wait_h=yes
29693 else
29694   echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29696
29697         ac_cv_header_sys_wait_h=no
29698 fi
29699
29700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29701 fi
29702 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29703 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29704 if test $ac_cv_header_sys_wait_h = yes; then
29705
29706 cat >>confdefs.h <<\_ACEOF
29707 #define HAVE_SYS_WAIT_H 1
29708 _ACEOF
29709
29710 fi
29711
29712 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29714 if test "${ac_cv_header_time+set}" = set; then
29715   echo $ECHO_N "(cached) $ECHO_C" >&6
29716 else
29717   cat >conftest.$ac_ext <<_ACEOF
29718 /* confdefs.h.  */
29719 _ACEOF
29720 cat confdefs.h >>conftest.$ac_ext
29721 cat >>conftest.$ac_ext <<_ACEOF
29722 /* end confdefs.h.  */
29723 #include <sys/types.h>
29724 #include <sys/time.h>
29725 #include <time.h>
29726
29727 int
29728 main ()
29729 {
29730 if ((struct tm *) 0)
29731 return 0;
29732   ;
29733   return 0;
29734 }
29735 _ACEOF
29736 rm -f conftest.$ac_objext
29737 if { (ac_try="$ac_compile"
29738 case "(($ac_try" in
29739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740   *) ac_try_echo=$ac_try;;
29741 esac
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743   (eval "$ac_compile") 2>conftest.er1
29744   ac_status=$?
29745   grep -v '^ *+' conftest.er1 >conftest.err
29746   rm -f conftest.er1
29747   cat conftest.err >&5
29748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749   (exit $ac_status); } &&
29750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29751   { (case "(($ac_try" in
29752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753   *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756   (eval "$ac_try") 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; } &&
29760          { ac_try='test -s conftest.$ac_objext'
29761   { (case "(($ac_try" in
29762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763   *) ac_try_echo=$ac_try;;
29764 esac
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766   (eval "$ac_try") 2>&5
29767   ac_status=$?
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); }; }; then
29770   ac_cv_header_time=yes
29771 else
29772   echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29774
29775         ac_cv_header_time=no
29776 fi
29777
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29779 fi
29780 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29781 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29782 if test $ac_cv_header_time = yes; then
29783
29784 cat >>confdefs.h <<\_ACEOF
29785 #define TIME_WITH_SYS_TIME 1
29786 _ACEOF
29787
29788 fi
29789
29790
29791
29792
29793
29794
29795
29796
29797 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29798 do
29799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804   echo $ECHO_N "(cached) $ECHO_C" >&6
29805 fi
29806 ac_res=`eval echo '${'$as_ac_Header'}'`
29807                { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29809 else
29810   # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h.  */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h.  */
29819 $ac_includes_default
29820 #include <$ac_header>
29821 _ACEOF
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_compile") 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } &&
29836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29837   { (case "(($ac_try" in
29838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839   *) ac_try_echo=$ac_try;;
29840 esac
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842   (eval "$ac_try") 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest.$ac_objext'
29847   { (case "(($ac_try" in
29848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849   *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852   (eval "$ac_try") 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; }; then
29856   ac_header_compiler=yes
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861         ac_header_compiler=no
29862 fi
29863
29864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866 echo "${ECHO_T}$ac_header_compiler" >&6; }
29867
29868 # Is the header present?
29869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29871 cat >conftest.$ac_ext <<_ACEOF
29872 /* confdefs.h.  */
29873 _ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h.  */
29877 #include <$ac_header>
29878 _ACEOF
29879 if { (ac_try="$ac_cpp conftest.$ac_ext"
29880 case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29886   ac_status=$?
29887   grep -v '^ *+' conftest.er1 >conftest.err
29888   rm -f conftest.er1
29889   cat conftest.err >&5
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } >/dev/null; then
29892   if test -s conftest.err; then
29893     ac_cpp_err=$ac_c_preproc_warn_flag
29894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895   else
29896     ac_cpp_err=
29897   fi
29898 else
29899   ac_cpp_err=yes
29900 fi
29901 if test -z "$ac_cpp_err"; then
29902   ac_header_preproc=yes
29903 else
29904   echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907   ac_header_preproc=no
29908 fi
29909
29910 rm -f conftest.err conftest.$ac_ext
29911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912 echo "${ECHO_T}$ac_header_preproc" >&6; }
29913
29914 # So?  What about this header?
29915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916   yes:no: )
29917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921     ac_header_preproc=yes
29922     ;;
29923   no:yes:* )
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29936     ( cat <<\_ASBOX
29937 ## ----------------------------------- ##
29938 ## Report this to llvmbugs@cs.uiuc.edu ##
29939 ## ----------------------------------- ##
29940 _ASBOX
29941      ) | sed "s/^/$as_me: WARNING:     /" >&2
29942     ;;
29943 esac
29944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29947   echo $ECHO_N "(cached) $ECHO_C" >&6
29948 else
29949   eval "$as_ac_Header=\$ac_header_preproc"
29950 fi
29951 ac_res=`eval echo '${'$as_ac_Header'}'`
29952                { echo "$as_me:$LINENO: result: $ac_res" >&5
29953 echo "${ECHO_T}$ac_res" >&6; }
29954
29955 fi
29956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957   cat >>confdefs.h <<_ACEOF
29958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29959 _ACEOF
29960
29961 fi
29962
29963 done
29964
29965
29966
29967
29968
29969
29970
29971 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29972 do
29973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29978   echo $ECHO_N "(cached) $ECHO_C" >&6
29979 fi
29980 ac_res=`eval echo '${'$as_ac_Header'}'`
29981                { echo "$as_me:$LINENO: result: $ac_res" >&5
29982 echo "${ECHO_T}$ac_res" >&6; }
29983 else
29984   # Is the header compilable?
29985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29987 cat >conftest.$ac_ext <<_ACEOF
29988 /* confdefs.h.  */
29989 _ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h.  */
29993 $ac_includes_default
29994 #include <$ac_header>
29995 _ACEOF
29996 rm -f conftest.$ac_objext
29997 if { (ac_try="$ac_compile"
29998 case "(($ac_try" in
29999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000   *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003   (eval "$ac_compile") 2>conftest.er1
30004   ac_status=$?
30005   grep -v '^ *+' conftest.er1 >conftest.err
30006   rm -f conftest.er1
30007   cat conftest.err >&5
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30011   { (case "(($ac_try" in
30012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013   *) ac_try_echo=$ac_try;;
30014 esac
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016   (eval "$ac_try") 2>&5
30017   ac_status=$?
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); }; } &&
30020          { ac_try='test -s conftest.$ac_objext'
30021   { (case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_try") 2>&5
30027   ac_status=$?
30028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029   (exit $ac_status); }; }; then
30030   ac_header_compiler=yes
30031 else
30032   echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035         ac_header_compiler=no
30036 fi
30037
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30040 echo "${ECHO_T}$ac_header_compiler" >&6; }
30041
30042 # Is the header present?
30043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30045 cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h.  */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h.  */
30051 #include <$ac_header>
30052 _ACEOF
30053 if { (ac_try="$ac_cpp conftest.$ac_ext"
30054 case "(($ac_try" in
30055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056   *) ac_try_echo=$ac_try;;
30057 esac
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30060   ac_status=$?
30061   grep -v '^ *+' conftest.er1 >conftest.err
30062   rm -f conftest.er1
30063   cat conftest.err >&5
30064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); } >/dev/null; then
30066   if test -s conftest.err; then
30067     ac_cpp_err=$ac_c_preproc_warn_flag
30068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30069   else
30070     ac_cpp_err=
30071   fi
30072 else
30073   ac_cpp_err=yes
30074 fi
30075 if test -z "$ac_cpp_err"; then
30076   ac_header_preproc=yes
30077 else
30078   echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30080
30081   ac_header_preproc=no
30082 fi
30083
30084 rm -f conftest.err conftest.$ac_ext
30085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30086 echo "${ECHO_T}$ac_header_preproc" >&6; }
30087
30088 # So?  What about this header?
30089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30090   yes:no: )
30091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30095     ac_header_preproc=yes
30096     ;;
30097   no:yes:* )
30098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30110     ( cat <<\_ASBOX
30111 ## ----------------------------------- ##
30112 ## Report this to llvmbugs@cs.uiuc.edu ##
30113 ## ----------------------------------- ##
30114 _ASBOX
30115      ) | sed "s/^/$as_me: WARNING:     /" >&2
30116     ;;
30117 esac
30118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30121   echo $ECHO_N "(cached) $ECHO_C" >&6
30122 else
30123   eval "$as_ac_Header=\$ac_header_preproc"
30124 fi
30125 ac_res=`eval echo '${'$as_ac_Header'}'`
30126                { echo "$as_me:$LINENO: result: $ac_res" >&5
30127 echo "${ECHO_T}$ac_res" >&6; }
30128
30129 fi
30130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30131   cat >>confdefs.h <<_ACEOF
30132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30133 _ACEOF
30134
30135 fi
30136
30137 done
30138
30139
30140
30141 for ac_header in utime.h windows.h
30142 do
30143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148   echo $ECHO_N "(cached) $ECHO_C" >&6
30149 fi
30150 ac_res=`eval echo '${'$as_ac_Header'}'`
30151                { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30153 else
30154   # Is the header compilable?
30155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157 cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h.  */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h.  */
30163 $ac_includes_default
30164 #include <$ac_header>
30165 _ACEOF
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170   *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173   (eval "$ac_compile") 2>conftest.er1
30174   ac_status=$?
30175   grep -v '^ *+' conftest.er1 >conftest.err
30176   rm -f conftest.er1
30177   cat conftest.err >&5
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); } &&
30180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181   { (case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_try") 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest.$ac_objext'
30191   { (case "(($ac_try" in
30192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193   *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196   (eval "$ac_try") 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   ac_header_compiler=yes
30201 else
30202   echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30204
30205         ac_header_compiler=no
30206 fi
30207
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210 echo "${ECHO_T}$ac_header_compiler" >&6; }
30211
30212 # Is the header present?
30213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215 cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h.  */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h.  */
30221 #include <$ac_header>
30222 _ACEOF
30223 if { (ac_try="$ac_cpp conftest.$ac_ext"
30224 case "(($ac_try" in
30225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226   *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30230   ac_status=$?
30231   grep -v '^ *+' conftest.er1 >conftest.err
30232   rm -f conftest.er1
30233   cat conftest.err >&5
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); } >/dev/null; then
30236   if test -s conftest.err; then
30237     ac_cpp_err=$ac_c_preproc_warn_flag
30238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30239   else
30240     ac_cpp_err=
30241   fi
30242 else
30243   ac_cpp_err=yes
30244 fi
30245 if test -z "$ac_cpp_err"; then
30246   ac_header_preproc=yes
30247 else
30248   echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30250
30251   ac_header_preproc=no
30252 fi
30253
30254 rm -f conftest.err conftest.$ac_ext
30255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256 echo "${ECHO_T}$ac_header_preproc" >&6; }
30257
30258 # So?  What about this header?
30259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30260   yes:no: )
30261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265     ac_header_preproc=yes
30266     ;;
30267   no:yes:* )
30268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30280     ( cat <<\_ASBOX
30281 ## ----------------------------------- ##
30282 ## Report this to llvmbugs@cs.uiuc.edu ##
30283 ## ----------------------------------- ##
30284 _ASBOX
30285      ) | sed "s/^/$as_me: WARNING:     /" >&2
30286     ;;
30287 esac
30288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291   echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293   eval "$as_ac_Header=\$ac_header_preproc"
30294 fi
30295 ac_res=`eval echo '${'$as_ac_Header'}'`
30296                { echo "$as_me:$LINENO: result: $ac_res" >&5
30297 echo "${ECHO_T}$ac_res" >&6; }
30298
30299 fi
30300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301   cat >>confdefs.h <<_ACEOF
30302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30303 _ACEOF
30304
30305 fi
30306
30307 done
30308
30309
30310
30311
30312
30313 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30314 do
30315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30317   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 fi
30322 ac_res=`eval echo '${'$as_ac_Header'}'`
30323                { echo "$as_me:$LINENO: result: $ac_res" >&5
30324 echo "${ECHO_T}$ac_res" >&6; }
30325 else
30326   # Is the header compilable?
30327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30329 cat >conftest.$ac_ext <<_ACEOF
30330 /* confdefs.h.  */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h.  */
30335 $ac_includes_default
30336 #include <$ac_header>
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_compile") 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } &&
30352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353   { (case "(($ac_try" in
30354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355   *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358   (eval "$ac_try") 2>&5
30359   ac_status=$?
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; } &&
30362          { ac_try='test -s conftest.$ac_objext'
30363   { (case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_try") 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; }; then
30372   ac_header_compiler=yes
30373 else
30374   echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30376
30377         ac_header_compiler=no
30378 fi
30379
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30382 echo "${ECHO_T}$ac_header_compiler" >&6; }
30383
30384 # Is the header present?
30385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30387 cat >conftest.$ac_ext <<_ACEOF
30388 /* confdefs.h.  */
30389 _ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h.  */
30393 #include <$ac_header>
30394 _ACEOF
30395 if { (ac_try="$ac_cpp conftest.$ac_ext"
30396 case "(($ac_try" in
30397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398   *) ac_try_echo=$ac_try;;
30399 esac
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30402   ac_status=$?
30403   grep -v '^ *+' conftest.er1 >conftest.err
30404   rm -f conftest.er1
30405   cat conftest.err >&5
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); } >/dev/null; then
30408   if test -s conftest.err; then
30409     ac_cpp_err=$ac_c_preproc_warn_flag
30410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30411   else
30412     ac_cpp_err=
30413   fi
30414 else
30415   ac_cpp_err=yes
30416 fi
30417 if test -z "$ac_cpp_err"; then
30418   ac_header_preproc=yes
30419 else
30420   echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30422
30423   ac_header_preproc=no
30424 fi
30425
30426 rm -f conftest.err conftest.$ac_ext
30427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30428 echo "${ECHO_T}$ac_header_preproc" >&6; }
30429
30430 # So?  What about this header?
30431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30432   yes:no: )
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30437     ac_header_preproc=yes
30438     ;;
30439   no:yes:* )
30440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30452     ( cat <<\_ASBOX
30453 ## ----------------------------------- ##
30454 ## Report this to llvmbugs@cs.uiuc.edu ##
30455 ## ----------------------------------- ##
30456 _ASBOX
30457      ) | sed "s/^/$as_me: WARNING:     /" >&2
30458     ;;
30459 esac
30460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463   echo $ECHO_N "(cached) $ECHO_C" >&6
30464 else
30465   eval "$as_ac_Header=\$ac_header_preproc"
30466 fi
30467 ac_res=`eval echo '${'$as_ac_Header'}'`
30468                { echo "$as_me:$LINENO: result: $ac_res" >&5
30469 echo "${ECHO_T}$ac_res" >&6; }
30470
30471 fi
30472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30473   cat >>confdefs.h <<_ACEOF
30474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30475 _ACEOF
30476
30477 fi
30478
30479 done
30480
30481
30482
30483
30484
30485 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30486 do
30487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30492   echo $ECHO_N "(cached) $ECHO_C" >&6
30493 fi
30494 ac_res=`eval echo '${'$as_ac_Header'}'`
30495                { echo "$as_me:$LINENO: result: $ac_res" >&5
30496 echo "${ECHO_T}$ac_res" >&6; }
30497 else
30498   # Is the header compilable?
30499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30501 cat >conftest.$ac_ext <<_ACEOF
30502 /* confdefs.h.  */
30503 _ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h.  */
30507 $ac_includes_default
30508 #include <$ac_header>
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_compile") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } &&
30524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525   { (case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_try") 2>&5
30531   ac_status=$?
30532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533   (exit $ac_status); }; } &&
30534          { ac_try='test -s conftest.$ac_objext'
30535   { (case "(($ac_try" in
30536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537   *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540   (eval "$ac_try") 2>&5
30541   ac_status=$?
30542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543   (exit $ac_status); }; }; then
30544   ac_header_compiler=yes
30545 else
30546   echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30548
30549         ac_header_compiler=no
30550 fi
30551
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30554 echo "${ECHO_T}$ac_header_compiler" >&6; }
30555
30556 # Is the header present?
30557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30559 cat >conftest.$ac_ext <<_ACEOF
30560 /* confdefs.h.  */
30561 _ACEOF
30562 cat confdefs.h >>conftest.$ac_ext
30563 cat >>conftest.$ac_ext <<_ACEOF
30564 /* end confdefs.h.  */
30565 #include <$ac_header>
30566 _ACEOF
30567 if { (ac_try="$ac_cpp conftest.$ac_ext"
30568 case "(($ac_try" in
30569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570   *) ac_try_echo=$ac_try;;
30571 esac
30572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30574   ac_status=$?
30575   grep -v '^ *+' conftest.er1 >conftest.err
30576   rm -f conftest.er1
30577   cat conftest.err >&5
30578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579   (exit $ac_status); } >/dev/null; then
30580   if test -s conftest.err; then
30581     ac_cpp_err=$ac_c_preproc_warn_flag
30582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30583   else
30584     ac_cpp_err=
30585   fi
30586 else
30587   ac_cpp_err=yes
30588 fi
30589 if test -z "$ac_cpp_err"; then
30590   ac_header_preproc=yes
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595   ac_header_preproc=no
30596 fi
30597
30598 rm -f conftest.err conftest.$ac_ext
30599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30600 echo "${ECHO_T}$ac_header_preproc" >&6; }
30601
30602 # So?  What about this header?
30603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30604   yes:no: )
30605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30609     ac_header_preproc=yes
30610     ;;
30611   no:yes:* )
30612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30624     ( cat <<\_ASBOX
30625 ## ----------------------------------- ##
30626 ## Report this to llvmbugs@cs.uiuc.edu ##
30627 ## ----------------------------------- ##
30628 _ASBOX
30629      ) | sed "s/^/$as_me: WARNING:     /" >&2
30630     ;;
30631 esac
30632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30635   echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637   eval "$as_ac_Header=\$ac_header_preproc"
30638 fi
30639 ac_res=`eval echo '${'$as_ac_Header'}'`
30640                { echo "$as_me:$LINENO: result: $ac_res" >&5
30641 echo "${ECHO_T}$ac_res" >&6; }
30642
30643 fi
30644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30645   cat >>confdefs.h <<_ACEOF
30646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647 _ACEOF
30648
30649 fi
30650
30651 done
30652
30653 if test "$ENABLE_THREADS" -eq 1 ; then
30654
30655 for ac_header in pthread.h
30656 do
30657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30659   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30662   echo $ECHO_N "(cached) $ECHO_C" >&6
30663 fi
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665                { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30667 else
30668   # Is the header compilable?
30669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30671 cat >conftest.$ac_ext <<_ACEOF
30672 /* confdefs.h.  */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h.  */
30677 $ac_includes_default
30678 #include <$ac_header>
30679 _ACEOF
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684   *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687   (eval "$ac_compile") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } &&
30694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30695   { (case "(($ac_try" in
30696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697   *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700   (eval "$ac_try") 2>&5
30701   ac_status=$?
30702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703   (exit $ac_status); }; } &&
30704          { ac_try='test -s conftest.$ac_objext'
30705   { (case "(($ac_try" in
30706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707   *) ac_try_echo=$ac_try;;
30708 esac
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710   (eval "$ac_try") 2>&5
30711   ac_status=$?
30712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); }; }; then
30714   ac_header_compiler=yes
30715 else
30716   echo "$as_me: failed program was:" >&5
30717 sed 's/^/| /' conftest.$ac_ext >&5
30718
30719         ac_header_compiler=no
30720 fi
30721
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30724 echo "${ECHO_T}$ac_header_compiler" >&6; }
30725
30726 # Is the header present?
30727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30729 cat >conftest.$ac_ext <<_ACEOF
30730 /* confdefs.h.  */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h.  */
30735 #include <$ac_header>
30736 _ACEOF
30737 if { (ac_try="$ac_cpp conftest.$ac_ext"
30738 case "(($ac_try" in
30739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740   *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30744   ac_status=$?
30745   grep -v '^ *+' conftest.er1 >conftest.err
30746   rm -f conftest.er1
30747   cat conftest.err >&5
30748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749   (exit $ac_status); } >/dev/null; then
30750   if test -s conftest.err; then
30751     ac_cpp_err=$ac_c_preproc_warn_flag
30752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30753   else
30754     ac_cpp_err=
30755   fi
30756 else
30757   ac_cpp_err=yes
30758 fi
30759 if test -z "$ac_cpp_err"; then
30760   ac_header_preproc=yes
30761 else
30762   echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30764
30765   ac_header_preproc=no
30766 fi
30767
30768 rm -f conftest.err conftest.$ac_ext
30769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30770 echo "${ECHO_T}$ac_header_preproc" >&6; }
30771
30772 # So?  What about this header?
30773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30774   yes:no: )
30775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30779     ac_header_preproc=yes
30780     ;;
30781   no:yes:* )
30782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30794     ( cat <<\_ASBOX
30795 ## ----------------------------------- ##
30796 ## Report this to llvmbugs@cs.uiuc.edu ##
30797 ## ----------------------------------- ##
30798 _ASBOX
30799      ) | sed "s/^/$as_me: WARNING:     /" >&2
30800     ;;
30801 esac
30802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30805   echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807   eval "$as_ac_Header=\$ac_header_preproc"
30808 fi
30809 ac_res=`eval echo '${'$as_ac_Header'}'`
30810                { echo "$as_me:$LINENO: result: $ac_res" >&5
30811 echo "${ECHO_T}$ac_res" >&6; }
30812
30813 fi
30814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30815   cat >>confdefs.h <<_ACEOF
30816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30817 _ACEOF
30818  HAVE_PTHREAD=1
30819
30820 else
30821   HAVE_PTHREAD=0
30822
30823 fi
30824
30825 done
30826
30827 else
30828   HAVE_PTHREAD=0
30829
30830 fi
30831
30832 if test "$llvm_cv_enable_libffi" = "yes" ; then
30833
30834
30835 for ac_header in ffi.h ffi/ffi.h
30836 do
30837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30842   echo $ECHO_N "(cached) $ECHO_C" >&6
30843 fi
30844 ac_res=`eval echo '${'$as_ac_Header'}'`
30845                { echo "$as_me:$LINENO: result: $ac_res" >&5
30846 echo "${ECHO_T}$ac_res" >&6; }
30847 else
30848   # Is the header compilable?
30849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30851 cat >conftest.$ac_ext <<_ACEOF
30852 /* confdefs.h.  */
30853 _ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h.  */
30857 $ac_includes_default
30858 #include <$ac_header>
30859 _ACEOF
30860 rm -f conftest.$ac_objext
30861 if { (ac_try="$ac_compile"
30862 case "(($ac_try" in
30863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864   *) ac_try_echo=$ac_try;;
30865 esac
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867   (eval "$ac_compile") 2>conftest.er1
30868   ac_status=$?
30869   grep -v '^ *+' conftest.er1 >conftest.err
30870   rm -f conftest.er1
30871   cat conftest.err >&5
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); } &&
30874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30875   { (case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880   (eval "$ac_try") 2>&5
30881   ac_status=$?
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); }; } &&
30884          { ac_try='test -s conftest.$ac_objext'
30885   { (case "(($ac_try" in
30886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887   *) ac_try_echo=$ac_try;;
30888 esac
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890   (eval "$ac_try") 2>&5
30891   ac_status=$?
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); }; }; then
30894   ac_header_compiler=yes
30895 else
30896   echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30898
30899         ac_header_compiler=no
30900 fi
30901
30902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30904 echo "${ECHO_T}$ac_header_compiler" >&6; }
30905
30906 # Is the header present?
30907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30909 cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h.  */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h.  */
30915 #include <$ac_header>
30916 _ACEOF
30917 if { (ac_try="$ac_cpp conftest.$ac_ext"
30918 case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30924   ac_status=$?
30925   grep -v '^ *+' conftest.er1 >conftest.err
30926   rm -f conftest.er1
30927   cat conftest.err >&5
30928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929   (exit $ac_status); } >/dev/null; then
30930   if test -s conftest.err; then
30931     ac_cpp_err=$ac_c_preproc_warn_flag
30932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30933   else
30934     ac_cpp_err=
30935   fi
30936 else
30937   ac_cpp_err=yes
30938 fi
30939 if test -z "$ac_cpp_err"; then
30940   ac_header_preproc=yes
30941 else
30942   echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30944
30945   ac_header_preproc=no
30946 fi
30947
30948 rm -f conftest.err conftest.$ac_ext
30949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30950 echo "${ECHO_T}$ac_header_preproc" >&6; }
30951
30952 # So?  What about this header?
30953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30954   yes:no: )
30955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30959     ac_header_preproc=yes
30960     ;;
30961   no:yes:* )
30962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30974     ( cat <<\_ASBOX
30975 ## ----------------------------------- ##
30976 ## Report this to llvmbugs@cs.uiuc.edu ##
30977 ## ----------------------------------- ##
30978 _ASBOX
30979      ) | sed "s/^/$as_me: WARNING:     /" >&2
30980     ;;
30981 esac
30982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30985   echo $ECHO_N "(cached) $ECHO_C" >&6
30986 else
30987   eval "$as_ac_Header=\$ac_header_preproc"
30988 fi
30989 ac_res=`eval echo '${'$as_ac_Header'}'`
30990                { echo "$as_me:$LINENO: result: $ac_res" >&5
30991 echo "${ECHO_T}$ac_res" >&6; }
30992
30993 fi
30994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30995   cat >>confdefs.h <<_ACEOF
30996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30997 _ACEOF
30998
30999 fi
31000
31001 done
31002
31003 fi
31004
31005
31006
31007   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31008 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31009 if test "${ac_cv_huge_val_sanity+set}" = set; then
31010   echo $ECHO_N "(cached) $ECHO_C" >&6
31011 else
31012
31013     ac_ext=cpp
31014 ac_cpp='$CXXCPP $CPPFLAGS'
31015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31018
31019     CXXFLAGS=-pedantic
31020     if test "$cross_compiling" = yes; then
31021   ac_cv_huge_val_sanity=yes
31022 else
31023   cat >conftest.$ac_ext <<_ACEOF
31024 /* confdefs.h.  */
31025 _ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h.  */
31029 #include <math.h>
31030 int
31031 main ()
31032 {
31033 double x = HUGE_VAL; return x != x;
31034   ;
31035   return 0;
31036 }
31037 _ACEOF
31038 rm -f conftest$ac_exeext
31039 if { (ac_try="$ac_link"
31040 case "(($ac_try" in
31041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042   *) ac_try_echo=$ac_try;;
31043 esac
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045   (eval "$ac_link") 2>&5
31046   ac_status=$?
31047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31049   { (case "(($ac_try" in
31050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051   *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054   (eval "$ac_try") 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; }; then
31058   ac_cv_huge_val_sanity=yes
31059 else
31060   echo "$as_me: program exited with status $ac_status" >&5
31061 echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31063
31064 ( exit $ac_status )
31065 ac_cv_huge_val_sanity=no
31066 fi
31067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31068 fi
31069
31070
31071     ac_ext=c
31072 ac_cpp='$CPP $CPPFLAGS'
31073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31076
31077
31078 fi
31079 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31080 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31081   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31082
31083
31084 { echo "$as_me:$LINENO: checking for pid_t" >&5
31085 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31086 if test "${ac_cv_type_pid_t+set}" = set; then
31087   echo $ECHO_N "(cached) $ECHO_C" >&6
31088 else
31089   cat >conftest.$ac_ext <<_ACEOF
31090 /* confdefs.h.  */
31091 _ACEOF
31092 cat confdefs.h >>conftest.$ac_ext
31093 cat >>conftest.$ac_ext <<_ACEOF
31094 /* end confdefs.h.  */
31095 $ac_includes_default
31096 typedef pid_t ac__type_new_;
31097 int
31098 main ()
31099 {
31100 if ((ac__type_new_ *) 0)
31101   return 0;
31102 if (sizeof (ac__type_new_))
31103   return 0;
31104   ;
31105   return 0;
31106 }
31107 _ACEOF
31108 rm -f conftest.$ac_objext
31109 if { (ac_try="$ac_compile"
31110 case "(($ac_try" in
31111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112   *) ac_try_echo=$ac_try;;
31113 esac
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115   (eval "$ac_compile") 2>conftest.er1
31116   ac_status=$?
31117   grep -v '^ *+' conftest.er1 >conftest.err
31118   rm -f conftest.er1
31119   cat conftest.err >&5
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); } &&
31122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31123   { (case "(($ac_try" in
31124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125   *) ac_try_echo=$ac_try;;
31126 esac
31127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128   (eval "$ac_try") 2>&5
31129   ac_status=$?
31130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131   (exit $ac_status); }; } &&
31132          { ac_try='test -s conftest.$ac_objext'
31133   { (case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138   (eval "$ac_try") 2>&5
31139   ac_status=$?
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); }; }; then
31142   ac_cv_type_pid_t=yes
31143 else
31144   echo "$as_me: failed program was:" >&5
31145 sed 's/^/| /' conftest.$ac_ext >&5
31146
31147         ac_cv_type_pid_t=no
31148 fi
31149
31150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31151 fi
31152 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31153 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31154 if test $ac_cv_type_pid_t = yes; then
31155   :
31156 else
31157
31158 cat >>confdefs.h <<_ACEOF
31159 #define pid_t int
31160 _ACEOF
31161
31162 fi
31163
31164 { echo "$as_me:$LINENO: checking for size_t" >&5
31165 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31166 if test "${ac_cv_type_size_t+set}" = set; then
31167   echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169   cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h.  */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h.  */
31175 $ac_includes_default
31176 typedef size_t ac__type_new_;
31177 int
31178 main ()
31179 {
31180 if ((ac__type_new_ *) 0)
31181   return 0;
31182 if (sizeof (ac__type_new_))
31183   return 0;
31184   ;
31185   return 0;
31186 }
31187 _ACEOF
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192   *) ac_try_echo=$ac_try;;
31193 esac
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195   (eval "$ac_compile") 2>conftest.er1
31196   ac_status=$?
31197   grep -v '^ *+' conftest.er1 >conftest.err
31198   rm -f conftest.er1
31199   cat conftest.err >&5
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); } &&
31202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203   { (case "(($ac_try" in
31204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205   *) ac_try_echo=$ac_try;;
31206 esac
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208   (eval "$ac_try") 2>&5
31209   ac_status=$?
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); }; } &&
31212          { ac_try='test -s conftest.$ac_objext'
31213   { (case "(($ac_try" in
31214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215   *) ac_try_echo=$ac_try;;
31216 esac
31217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218   (eval "$ac_try") 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222   ac_cv_type_size_t=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227         ac_cv_type_size_t=no
31228 fi
31229
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31231 fi
31232 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31233 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31234 if test $ac_cv_type_size_t = yes; then
31235   :
31236 else
31237
31238 cat >>confdefs.h <<_ACEOF
31239 #define size_t unsigned int
31240 _ACEOF
31241
31242 fi
31243
31244 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31245 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31246 if test "${ac_cv_type_signal+set}" = set; then
31247   echo $ECHO_N "(cached) $ECHO_C" >&6
31248 else
31249   cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h.  */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h.  */
31255 #include <sys/types.h>
31256 #include <signal.h>
31257
31258 int
31259 main ()
31260 {
31261 return *(signal (0, 0)) (0) == 1;
31262   ;
31263   return 0;
31264 }
31265 _ACEOF
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270   *) ac_try_echo=$ac_try;;
31271 esac
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273   (eval "$ac_compile") 2>conftest.er1
31274   ac_status=$?
31275   grep -v '^ *+' conftest.er1 >conftest.err
31276   rm -f conftest.er1
31277   cat conftest.err >&5
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); } &&
31280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281   { (case "(($ac_try" in
31282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283   *) ac_try_echo=$ac_try;;
31284 esac
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286   (eval "$ac_try") 2>&5
31287   ac_status=$?
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); }; } &&
31290          { ac_try='test -s conftest.$ac_objext'
31291   { (case "(($ac_try" in
31292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293   *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296   (eval "$ac_try") 2>&5
31297   ac_status=$?
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); }; }; then
31300   ac_cv_type_signal=int
31301 else
31302   echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31304
31305         ac_cv_type_signal=void
31306 fi
31307
31308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31309 fi
31310 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31311 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31312
31313 cat >>confdefs.h <<_ACEOF
31314 #define RETSIGTYPE $ac_cv_type_signal
31315 _ACEOF
31316
31317
31318 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31319 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31320 if test "${ac_cv_struct_tm+set}" = set; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 #include <sys/types.h>
31330 #include <time.h>
31331
31332 int
31333 main ()
31334 {
31335 struct tm *tp; tp->tm_sec;
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
31342 case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347   (eval "$ac_compile") 2>conftest.er1
31348   ac_status=$?
31349   grep -v '^ *+' conftest.er1 >conftest.err
31350   rm -f conftest.er1
31351   cat conftest.err >&5
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); } &&
31354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355   { (case "(($ac_try" in
31356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357   *) ac_try_echo=$ac_try;;
31358 esac
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360   (eval "$ac_try") 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; } &&
31364          { ac_try='test -s conftest.$ac_objext'
31365   { (case "(($ac_try" in
31366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367   *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370   (eval "$ac_try") 2>&5
31371   ac_status=$?
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); }; }; then
31374   ac_cv_struct_tm=time.h
31375 else
31376   echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31378
31379         ac_cv_struct_tm=sys/time.h
31380 fi
31381
31382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31383 fi
31384 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31385 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31386 if test $ac_cv_struct_tm = sys/time.h; then
31387
31388 cat >>confdefs.h <<\_ACEOF
31389 #define TM_IN_SYS_TIME 1
31390 _ACEOF
31391
31392 fi
31393
31394 { echo "$as_me:$LINENO: checking for int64_t" >&5
31395 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31396 if test "${ac_cv_type_int64_t+set}" = set; then
31397   echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399   cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h.  */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h.  */
31405 $ac_includes_default
31406 typedef int64_t ac__type_new_;
31407 int
31408 main ()
31409 {
31410 if ((ac__type_new_ *) 0)
31411   return 0;
31412 if (sizeof (ac__type_new_))
31413   return 0;
31414   ;
31415   return 0;
31416 }
31417 _ACEOF
31418 rm -f conftest.$ac_objext
31419 if { (ac_try="$ac_compile"
31420 case "(($ac_try" in
31421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422   *) ac_try_echo=$ac_try;;
31423 esac
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425   (eval "$ac_compile") 2>conftest.er1
31426   ac_status=$?
31427   grep -v '^ *+' conftest.er1 >conftest.err
31428   rm -f conftest.er1
31429   cat conftest.err >&5
31430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431   (exit $ac_status); } &&
31432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31433   { (case "(($ac_try" in
31434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435   *) ac_try_echo=$ac_try;;
31436 esac
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438   (eval "$ac_try") 2>&5
31439   ac_status=$?
31440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); }; } &&
31442          { ac_try='test -s conftest.$ac_objext'
31443   { (case "(($ac_try" in
31444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445   *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448   (eval "$ac_try") 2>&5
31449   ac_status=$?
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); }; }; then
31452   ac_cv_type_int64_t=yes
31453 else
31454   echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31456
31457         ac_cv_type_int64_t=no
31458 fi
31459
31460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31461 fi
31462 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31463 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31464 if test $ac_cv_type_int64_t = yes; then
31465
31466 cat >>confdefs.h <<_ACEOF
31467 #define HAVE_INT64_T 1
31468 _ACEOF
31469
31470
31471 else
31472   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31473 echo "$as_me: error: Type int64_t required but not found" >&2;}
31474    { (exit 1); exit 1; }; }
31475 fi
31476
31477 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31478 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31479 if test "${ac_cv_type_uint64_t+set}" = set; then
31480   echo $ECHO_N "(cached) $ECHO_C" >&6
31481 else
31482   cat >conftest.$ac_ext <<_ACEOF
31483 /* confdefs.h.  */
31484 _ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h.  */
31488 $ac_includes_default
31489 typedef uint64_t ac__type_new_;
31490 int
31491 main ()
31492 {
31493 if ((ac__type_new_ *) 0)
31494   return 0;
31495 if (sizeof (ac__type_new_))
31496   return 0;
31497   ;
31498   return 0;
31499 }
31500 _ACEOF
31501 rm -f conftest.$ac_objext
31502 if { (ac_try="$ac_compile"
31503 case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_compile") 2>conftest.er1
31509   ac_status=$?
31510   grep -v '^ *+' conftest.er1 >conftest.err
31511   rm -f conftest.er1
31512   cat conftest.err >&5
31513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514   (exit $ac_status); } &&
31515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31516   { (case "(($ac_try" in
31517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518   *) ac_try_echo=$ac_try;;
31519 esac
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521   (eval "$ac_try") 2>&5
31522   ac_status=$?
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); }; } &&
31525          { ac_try='test -s conftest.$ac_objext'
31526   { (case "(($ac_try" in
31527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528   *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531   (eval "$ac_try") 2>&5
31532   ac_status=$?
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); }; }; then
31535   ac_cv_type_uint64_t=yes
31536 else
31537   echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31539
31540         ac_cv_type_uint64_t=no
31541 fi
31542
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31544 fi
31545 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31546 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31547 if test $ac_cv_type_uint64_t = yes; then
31548
31549 cat >>confdefs.h <<_ACEOF
31550 #define HAVE_UINT64_T 1
31551 _ACEOF
31552
31553
31554 else
31555   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31556 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31557 if test "${ac_cv_type_u_int64_t+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   cat >conftest.$ac_ext <<_ACEOF
31561 /* confdefs.h.  */
31562 _ACEOF
31563 cat confdefs.h >>conftest.$ac_ext
31564 cat >>conftest.$ac_ext <<_ACEOF
31565 /* end confdefs.h.  */
31566 $ac_includes_default
31567 typedef u_int64_t ac__type_new_;
31568 int
31569 main ()
31570 {
31571 if ((ac__type_new_ *) 0)
31572   return 0;
31573 if (sizeof (ac__type_new_))
31574   return 0;
31575   ;
31576   return 0;
31577 }
31578 _ACEOF
31579 rm -f conftest.$ac_objext
31580 if { (ac_try="$ac_compile"
31581 case "(($ac_try" in
31582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583   *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586   (eval "$ac_compile") 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } &&
31593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31594   { (case "(($ac_try" in
31595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596   *) ac_try_echo=$ac_try;;
31597 esac
31598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599   (eval "$ac_try") 2>&5
31600   ac_status=$?
31601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602   (exit $ac_status); }; } &&
31603          { ac_try='test -s conftest.$ac_objext'
31604   { (case "(($ac_try" in
31605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606   *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609   (eval "$ac_try") 2>&5
31610   ac_status=$?
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); }; }; then
31613   ac_cv_type_u_int64_t=yes
31614 else
31615   echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31617
31618         ac_cv_type_u_int64_t=no
31619 fi
31620
31621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31622 fi
31623 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31624 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31625 if test $ac_cv_type_u_int64_t = yes; then
31626
31627 cat >>confdefs.h <<_ACEOF
31628 #define HAVE_U_INT64_T 1
31629 _ACEOF
31630
31631
31632 else
31633   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31634 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31635    { (exit 1); exit 1; }; }
31636 fi
31637
31638 fi
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31650 do
31651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31655   echo $ECHO_N "(cached) $ECHO_C" >&6
31656 else
31657   cat >conftest.$ac_ext <<_ACEOF
31658 /* confdefs.h.  */
31659 _ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h.  */
31663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31665 #define $ac_func innocuous_$ac_func
31666
31667 /* System header to define __stub macros and hopefully few prototypes,
31668     which can conflict with char $ac_func (); below.
31669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31670     <limits.h> exists even on freestanding compilers.  */
31671
31672 #ifdef __STDC__
31673 # include <limits.h>
31674 #else
31675 # include <assert.h>
31676 #endif
31677
31678 #undef $ac_func
31679
31680 /* Override any GCC internal prototype to avoid an error.
31681    Use char because int might match the return type of a GCC
31682    builtin and then its argument prototype would still apply.  */
31683 #ifdef __cplusplus
31684 extern "C"
31685 #endif
31686 char $ac_func ();
31687 /* The GNU C library defines this for functions which it implements
31688     to always fail with ENOSYS.  Some functions are actually named
31689     something starting with __ and the normal name is an alias.  */
31690 #if defined __stub_$ac_func || defined __stub___$ac_func
31691 choke me
31692 #endif
31693
31694 int
31695 main ()
31696 {
31697 return $ac_func ();
31698   ;
31699   return 0;
31700 }
31701 _ACEOF
31702 rm -f conftest.$ac_objext conftest$ac_exeext
31703 if { (ac_try="$ac_link"
31704 case "(($ac_try" in
31705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706   *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709   (eval "$ac_link") 2>conftest.er1
31710   ac_status=$?
31711   grep -v '^ *+' conftest.er1 >conftest.err
31712   rm -f conftest.er1
31713   cat conftest.err >&5
31714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715   (exit $ac_status); } &&
31716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31717   { (case "(($ac_try" in
31718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719   *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722   (eval "$ac_try") 2>&5
31723   ac_status=$?
31724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); }; } &&
31726          { ac_try='test -s conftest$ac_exeext'
31727   { (case "(($ac_try" in
31728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729   *) ac_try_echo=$ac_try;;
31730 esac
31731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732   (eval "$ac_try") 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); }; }; then
31736   eval "$as_ac_var=yes"
31737 else
31738   echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31740
31741         eval "$as_ac_var=no"
31742 fi
31743
31744 rm -f core conftest.err conftest.$ac_objext \
31745       conftest$ac_exeext conftest.$ac_ext
31746 fi
31747 ac_res=`eval echo '${'$as_ac_var'}'`
31748                { echo "$as_me:$LINENO: result: $ac_res" >&5
31749 echo "${ECHO_T}$ac_res" >&6; }
31750 if test `eval echo '${'$as_ac_var'}'` = yes; then
31751   cat >>confdefs.h <<_ACEOF
31752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31753 _ACEOF
31754
31755 fi
31756 done
31757
31758
31759
31760
31761
31762 for ac_func in powf fmodf strtof round
31763 do
31764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31768   echo $ECHO_N "(cached) $ECHO_C" >&6
31769 else
31770   cat >conftest.$ac_ext <<_ACEOF
31771 /* confdefs.h.  */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h.  */
31776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31778 #define $ac_func innocuous_$ac_func
31779
31780 /* System header to define __stub macros and hopefully few prototypes,
31781     which can conflict with char $ac_func (); below.
31782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31783     <limits.h> exists even on freestanding compilers.  */
31784
31785 #ifdef __STDC__
31786 # include <limits.h>
31787 #else
31788 # include <assert.h>
31789 #endif
31790
31791 #undef $ac_func
31792
31793 /* Override any GCC internal prototype to avoid an error.
31794    Use char because int might match the return type of a GCC
31795    builtin and then its argument prototype would still apply.  */
31796 #ifdef __cplusplus
31797 extern "C"
31798 #endif
31799 char $ac_func ();
31800 /* The GNU C library defines this for functions which it implements
31801     to always fail with ENOSYS.  Some functions are actually named
31802     something starting with __ and the normal name is an alias.  */
31803 #if defined __stub_$ac_func || defined __stub___$ac_func
31804 choke me
31805 #endif
31806
31807 int
31808 main ()
31809 {
31810 return $ac_func ();
31811   ;
31812   return 0;
31813 }
31814 _ACEOF
31815 rm -f conftest.$ac_objext conftest$ac_exeext
31816 if { (ac_try="$ac_link"
31817 case "(($ac_try" in
31818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819   *) ac_try_echo=$ac_try;;
31820 esac
31821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822   (eval "$ac_link") 2>conftest.er1
31823   ac_status=$?
31824   grep -v '^ *+' conftest.er1 >conftest.err
31825   rm -f conftest.er1
31826   cat conftest.err >&5
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); } &&
31829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31830   { (case "(($ac_try" in
31831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832   *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835   (eval "$ac_try") 2>&5
31836   ac_status=$?
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); }; } &&
31839          { ac_try='test -s conftest$ac_exeext'
31840   { (case "(($ac_try" in
31841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842   *) ac_try_echo=$ac_try;;
31843 esac
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845   (eval "$ac_try") 2>&5
31846   ac_status=$?
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); }; }; then
31849   eval "$as_ac_var=yes"
31850 else
31851   echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31853
31854         eval "$as_ac_var=no"
31855 fi
31856
31857 rm -f core conftest.err conftest.$ac_objext \
31858       conftest$ac_exeext conftest.$ac_ext
31859 fi
31860 ac_res=`eval echo '${'$as_ac_var'}'`
31861                { echo "$as_me:$LINENO: result: $ac_res" >&5
31862 echo "${ECHO_T}$ac_res" >&6; }
31863 if test `eval echo '${'$as_ac_var'}'` = yes; then
31864   cat >>confdefs.h <<_ACEOF
31865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31866 _ACEOF
31867
31868 fi
31869 done
31870
31871
31872
31873
31874
31875
31876 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31877 do
31878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31882   echo $ECHO_N "(cached) $ECHO_C" >&6
31883 else
31884   cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31892 #define $ac_func innocuous_$ac_func
31893
31894 /* System header to define __stub macros and hopefully few prototypes,
31895     which can conflict with char $ac_func (); below.
31896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31897     <limits.h> exists even on freestanding compilers.  */
31898
31899 #ifdef __STDC__
31900 # include <limits.h>
31901 #else
31902 # include <assert.h>
31903 #endif
31904
31905 #undef $ac_func
31906
31907 /* Override any GCC internal prototype to avoid an error.
31908    Use char because int might match the return type of a GCC
31909    builtin and then its argument prototype would still apply.  */
31910 #ifdef __cplusplus
31911 extern "C"
31912 #endif
31913 char $ac_func ();
31914 /* The GNU C library defines this for functions which it implements
31915     to always fail with ENOSYS.  Some functions are actually named
31916     something starting with __ and the normal name is an alias.  */
31917 #if defined __stub_$ac_func || defined __stub___$ac_func
31918 choke me
31919 #endif
31920
31921 int
31922 main ()
31923 {
31924 return $ac_func ();
31925   ;
31926   return 0;
31927 }
31928 _ACEOF
31929 rm -f conftest.$ac_objext conftest$ac_exeext
31930 if { (ac_try="$ac_link"
31931 case "(($ac_try" in
31932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933   *) ac_try_echo=$ac_try;;
31934 esac
31935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31936   (eval "$ac_link") 2>conftest.er1
31937   ac_status=$?
31938   grep -v '^ *+' conftest.er1 >conftest.err
31939   rm -f conftest.er1
31940   cat conftest.err >&5
31941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942   (exit $ac_status); } &&
31943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31944   { (case "(($ac_try" in
31945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31946   *) ac_try_echo=$ac_try;;
31947 esac
31948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31949   (eval "$ac_try") 2>&5
31950   ac_status=$?
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); }; } &&
31953          { ac_try='test -s conftest$ac_exeext'
31954   { (case "(($ac_try" in
31955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31956   *) ac_try_echo=$ac_try;;
31957 esac
31958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31959   (eval "$ac_try") 2>&5
31960   ac_status=$?
31961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962   (exit $ac_status); }; }; then
31963   eval "$as_ac_var=yes"
31964 else
31965   echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31967
31968         eval "$as_ac_var=no"
31969 fi
31970
31971 rm -f core conftest.err conftest.$ac_objext \
31972       conftest$ac_exeext conftest.$ac_ext
31973 fi
31974 ac_res=`eval echo '${'$as_ac_var'}'`
31975                { echo "$as_me:$LINENO: result: $ac_res" >&5
31976 echo "${ECHO_T}$ac_res" >&6; }
31977 if test `eval echo '${'$as_ac_var'}'` = yes; then
31978   cat >>confdefs.h <<_ACEOF
31979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31980 _ACEOF
31981
31982 fi
31983 done
31984
31985
31986
31987
31988 for ac_func in isatty mkdtemp mkstemp
31989 do
31990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32004 #define $ac_func innocuous_$ac_func
32005
32006 /* System header to define __stub macros and hopefully few prototypes,
32007     which can conflict with char $ac_func (); below.
32008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32009     <limits.h> exists even on freestanding compilers.  */
32010
32011 #ifdef __STDC__
32012 # include <limits.h>
32013 #else
32014 # include <assert.h>
32015 #endif
32016
32017 #undef $ac_func
32018
32019 /* Override any GCC internal prototype to avoid an error.
32020    Use char because int might match the return type of a GCC
32021    builtin and then its argument prototype would still apply.  */
32022 #ifdef __cplusplus
32023 extern "C"
32024 #endif
32025 char $ac_func ();
32026 /* The GNU C library defines this for functions which it implements
32027     to always fail with ENOSYS.  Some functions are actually named
32028     something starting with __ and the normal name is an alias.  */
32029 #if defined __stub_$ac_func || defined __stub___$ac_func
32030 choke me
32031 #endif
32032
32033 int
32034 main ()
32035 {
32036 return $ac_func ();
32037   ;
32038   return 0;
32039 }
32040 _ACEOF
32041 rm -f conftest.$ac_objext conftest$ac_exeext
32042 if { (ac_try="$ac_link"
32043 case "(($ac_try" in
32044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045   *) ac_try_echo=$ac_try;;
32046 esac
32047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048   (eval "$ac_link") 2>conftest.er1
32049   ac_status=$?
32050   grep -v '^ *+' conftest.er1 >conftest.err
32051   rm -f conftest.er1
32052   cat conftest.err >&5
32053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054   (exit $ac_status); } &&
32055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32056   { (case "(($ac_try" in
32057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058   *) ac_try_echo=$ac_try;;
32059 esac
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061   (eval "$ac_try") 2>&5
32062   ac_status=$?
32063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064   (exit $ac_status); }; } &&
32065          { ac_try='test -s conftest$ac_exeext'
32066   { (case "(($ac_try" in
32067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068   *) ac_try_echo=$ac_try;;
32069 esac
32070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071   (eval "$ac_try") 2>&5
32072   ac_status=$?
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); }; }; then
32075   eval "$as_ac_var=yes"
32076 else
32077   echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32079
32080         eval "$as_ac_var=no"
32081 fi
32082
32083 rm -f core conftest.err conftest.$ac_objext \
32084       conftest$ac_exeext conftest.$ac_ext
32085 fi
32086 ac_res=`eval echo '${'$as_ac_var'}'`
32087                { echo "$as_me:$LINENO: result: $ac_res" >&5
32088 echo "${ECHO_T}$ac_res" >&6; }
32089 if test `eval echo '${'$as_ac_var'}'` = yes; then
32090   cat >>confdefs.h <<_ACEOF
32091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32092 _ACEOF
32093
32094 fi
32095 done
32096
32097
32098
32099
32100
32101
32102 for ac_func in mktemp realpath sbrk setrlimit strdup
32103 do
32104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32108   echo $ECHO_N "(cached) $ECHO_C" >&6
32109 else
32110   cat >conftest.$ac_ext <<_ACEOF
32111 /* confdefs.h.  */
32112 _ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h.  */
32116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32118 #define $ac_func innocuous_$ac_func
32119
32120 /* System header to define __stub macros and hopefully few prototypes,
32121     which can conflict with char $ac_func (); below.
32122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32123     <limits.h> exists even on freestanding compilers.  */
32124
32125 #ifdef __STDC__
32126 # include <limits.h>
32127 #else
32128 # include <assert.h>
32129 #endif
32130
32131 #undef $ac_func
32132
32133 /* Override any GCC internal prototype to avoid an error.
32134    Use char because int might match the return type of a GCC
32135    builtin and then its argument prototype would still apply.  */
32136 #ifdef __cplusplus
32137 extern "C"
32138 #endif
32139 char $ac_func ();
32140 /* The GNU C library defines this for functions which it implements
32141     to always fail with ENOSYS.  Some functions are actually named
32142     something starting with __ and the normal name is an alias.  */
32143 #if defined __stub_$ac_func || defined __stub___$ac_func
32144 choke me
32145 #endif
32146
32147 int
32148 main ()
32149 {
32150 return $ac_func ();
32151   ;
32152   return 0;
32153 }
32154 _ACEOF
32155 rm -f conftest.$ac_objext conftest$ac_exeext
32156 if { (ac_try="$ac_link"
32157 case "(($ac_try" in
32158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159   *) ac_try_echo=$ac_try;;
32160 esac
32161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32162   (eval "$ac_link") 2>conftest.er1
32163   ac_status=$?
32164   grep -v '^ *+' conftest.er1 >conftest.err
32165   rm -f conftest.er1
32166   cat conftest.err >&5
32167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168   (exit $ac_status); } &&
32169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32170   { (case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_try") 2>&5
32176   ac_status=$?
32177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); }; } &&
32179          { ac_try='test -s conftest$ac_exeext'
32180   { (case "(($ac_try" in
32181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182   *) ac_try_echo=$ac_try;;
32183 esac
32184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32185   (eval "$ac_try") 2>&5
32186   ac_status=$?
32187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188   (exit $ac_status); }; }; then
32189   eval "$as_ac_var=yes"
32190 else
32191   echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32193
32194         eval "$as_ac_var=no"
32195 fi
32196
32197 rm -f core conftest.err conftest.$ac_objext \
32198       conftest$ac_exeext conftest.$ac_ext
32199 fi
32200 ac_res=`eval echo '${'$as_ac_var'}'`
32201                { echo "$as_me:$LINENO: result: $ac_res" >&5
32202 echo "${ECHO_T}$ac_res" >&6; }
32203 if test `eval echo '${'$as_ac_var'}'` = yes; then
32204   cat >>confdefs.h <<_ACEOF
32205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32206 _ACEOF
32207
32208 fi
32209 done
32210
32211
32212
32213
32214
32215 for ac_func in strerror strerror_r strerror_s setenv
32216 do
32217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32221   echo $ECHO_N "(cached) $ECHO_C" >&6
32222 else
32223   cat >conftest.$ac_ext <<_ACEOF
32224 /* confdefs.h.  */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h.  */
32229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32231 #define $ac_func innocuous_$ac_func
32232
32233 /* System header to define __stub macros and hopefully few prototypes,
32234     which can conflict with char $ac_func (); below.
32235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32236     <limits.h> exists even on freestanding compilers.  */
32237
32238 #ifdef __STDC__
32239 # include <limits.h>
32240 #else
32241 # include <assert.h>
32242 #endif
32243
32244 #undef $ac_func
32245
32246 /* Override any GCC internal prototype to avoid an error.
32247    Use char because int might match the return type of a GCC
32248    builtin and then its argument prototype would still apply.  */
32249 #ifdef __cplusplus
32250 extern "C"
32251 #endif
32252 char $ac_func ();
32253 /* The GNU C library defines this for functions which it implements
32254     to always fail with ENOSYS.  Some functions are actually named
32255     something starting with __ and the normal name is an alias.  */
32256 #if defined __stub_$ac_func || defined __stub___$ac_func
32257 choke me
32258 #endif
32259
32260 int
32261 main ()
32262 {
32263 return $ac_func ();
32264   ;
32265   return 0;
32266 }
32267 _ACEOF
32268 rm -f conftest.$ac_objext conftest$ac_exeext
32269 if { (ac_try="$ac_link"
32270 case "(($ac_try" in
32271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272   *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275   (eval "$ac_link") 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } &&
32282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32283   { (case "(($ac_try" in
32284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285   *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288   (eval "$ac_try") 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; } &&
32292          { ac_try='test -s conftest$ac_exeext'
32293   { (case "(($ac_try" in
32294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295   *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298   (eval "$ac_try") 2>&5
32299   ac_status=$?
32300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; }; then
32302   eval "$as_ac_var=yes"
32303 else
32304   echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32306
32307         eval "$as_ac_var=no"
32308 fi
32309
32310 rm -f core conftest.err conftest.$ac_objext \
32311       conftest$ac_exeext conftest.$ac_ext
32312 fi
32313 ac_res=`eval echo '${'$as_ac_var'}'`
32314                { echo "$as_me:$LINENO: result: $ac_res" >&5
32315 echo "${ECHO_T}$ac_res" >&6; }
32316 if test `eval echo '${'$as_ac_var'}'` = yes; then
32317   cat >>confdefs.h <<_ACEOF
32318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32319 _ACEOF
32320
32321 fi
32322 done
32323
32324
32325
32326
32327
32328 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32329 do
32330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32334   echo $ECHO_N "(cached) $ECHO_C" >&6
32335 else
32336   cat >conftest.$ac_ext <<_ACEOF
32337 /* confdefs.h.  */
32338 _ACEOF
32339 cat confdefs.h >>conftest.$ac_ext
32340 cat >>conftest.$ac_ext <<_ACEOF
32341 /* end confdefs.h.  */
32342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32344 #define $ac_func innocuous_$ac_func
32345
32346 /* System header to define __stub macros and hopefully few prototypes,
32347     which can conflict with char $ac_func (); below.
32348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32349     <limits.h> exists even on freestanding compilers.  */
32350
32351 #ifdef __STDC__
32352 # include <limits.h>
32353 #else
32354 # include <assert.h>
32355 #endif
32356
32357 #undef $ac_func
32358
32359 /* Override any GCC internal prototype to avoid an error.
32360    Use char because int might match the return type of a GCC
32361    builtin and then its argument prototype would still apply.  */
32362 #ifdef __cplusplus
32363 extern "C"
32364 #endif
32365 char $ac_func ();
32366 /* The GNU C library defines this for functions which it implements
32367     to always fail with ENOSYS.  Some functions are actually named
32368     something starting with __ and the normal name is an alias.  */
32369 #if defined __stub_$ac_func || defined __stub___$ac_func
32370 choke me
32371 #endif
32372
32373 int
32374 main ()
32375 {
32376 return $ac_func ();
32377   ;
32378   return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext conftest$ac_exeext
32382 if { (ac_try="$ac_link"
32383 case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388   (eval "$ac_link") 2>conftest.er1
32389   ac_status=$?
32390   grep -v '^ *+' conftest.er1 >conftest.err
32391   rm -f conftest.er1
32392   cat conftest.err >&5
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); } &&
32395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32396   { (case "(($ac_try" in
32397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398   *) ac_try_echo=$ac_try;;
32399 esac
32400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401   (eval "$ac_try") 2>&5
32402   ac_status=$?
32403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404   (exit $ac_status); }; } &&
32405          { ac_try='test -s conftest$ac_exeext'
32406   { (case "(($ac_try" in
32407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408   *) ac_try_echo=$ac_try;;
32409 esac
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411   (eval "$ac_try") 2>&5
32412   ac_status=$?
32413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414   (exit $ac_status); }; }; then
32415   eval "$as_ac_var=yes"
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420         eval "$as_ac_var=no"
32421 fi
32422
32423 rm -f core conftest.err conftest.$ac_objext \
32424       conftest$ac_exeext conftest.$ac_ext
32425 fi
32426 ac_res=`eval echo '${'$as_ac_var'}'`
32427                { echo "$as_me:$LINENO: result: $ac_res" >&5
32428 echo "${ECHO_T}$ac_res" >&6; }
32429 if test `eval echo '${'$as_ac_var'}'` = yes; then
32430   cat >>confdefs.h <<_ACEOF
32431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32432 _ACEOF
32433
32434 fi
32435 done
32436
32437
32438
32439
32440
32441 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32442 do
32443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32447   echo $ECHO_N "(cached) $ECHO_C" >&6
32448 else
32449   cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h.  */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h.  */
32455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32457 #define $ac_func innocuous_$ac_func
32458
32459 /* System header to define __stub macros and hopefully few prototypes,
32460     which can conflict with char $ac_func (); below.
32461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32462     <limits.h> exists even on freestanding compilers.  */
32463
32464 #ifdef __STDC__
32465 # include <limits.h>
32466 #else
32467 # include <assert.h>
32468 #endif
32469
32470 #undef $ac_func
32471
32472 /* Override any GCC internal prototype to avoid an error.
32473    Use char because int might match the return type of a GCC
32474    builtin and then its argument prototype would still apply.  */
32475 #ifdef __cplusplus
32476 extern "C"
32477 #endif
32478 char $ac_func ();
32479 /* The GNU C library defines this for functions which it implements
32480     to always fail with ENOSYS.  Some functions are actually named
32481     something starting with __ and the normal name is an alias.  */
32482 #if defined __stub_$ac_func || defined __stub___$ac_func
32483 choke me
32484 #endif
32485
32486 int
32487 main ()
32488 {
32489 return $ac_func ();
32490   ;
32491   return 0;
32492 }
32493 _ACEOF
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (ac_try="$ac_link"
32496 case "(($ac_try" in
32497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498   *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501   (eval "$ac_link") 2>conftest.er1
32502   ac_status=$?
32503   grep -v '^ *+' conftest.er1 >conftest.err
32504   rm -f conftest.er1
32505   cat conftest.err >&5
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); } &&
32508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32509   { (case "(($ac_try" in
32510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511   *) ac_try_echo=$ac_try;;
32512 esac
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514   (eval "$ac_try") 2>&5
32515   ac_status=$?
32516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517   (exit $ac_status); }; } &&
32518          { ac_try='test -s conftest$ac_exeext'
32519   { (case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_try") 2>&5
32525   ac_status=$?
32526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527   (exit $ac_status); }; }; then
32528   eval "$as_ac_var=yes"
32529 else
32530   echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32532
32533         eval "$as_ac_var=no"
32534 fi
32535
32536 rm -f core conftest.err conftest.$ac_objext \
32537       conftest$ac_exeext conftest.$ac_ext
32538 fi
32539 ac_res=`eval echo '${'$as_ac_var'}'`
32540                { echo "$as_me:$LINENO: result: $ac_res" >&5
32541 echo "${ECHO_T}$ac_res" >&6; }
32542 if test `eval echo '${'$as_ac_var'}'` = yes; then
32543   cat >>confdefs.h <<_ACEOF
32544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32545 _ACEOF
32546
32547 fi
32548 done
32549
32550 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32551 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32552 if test "${llvm_cv_c_printf_a+set}" = set; then
32553   echo $ECHO_N "(cached) $ECHO_C" >&6
32554 else
32555   ac_ext=c
32556 ac_cpp='$CPP $CPPFLAGS'
32557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32560
32561  if test "$cross_compiling" = yes; then
32562   llvmac_cv_c_printf_a=no
32563 else
32564   cat >conftest.$ac_ext <<_ACEOF
32565
32566   /* confdefs.h.  */
32567 _ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h.  */
32571
32572 #include <stdio.h>
32573 #include <stdlib.h>
32574
32575 int
32576 main ()
32577 {
32578
32579 volatile double A, B;
32580 char Buffer[100];
32581 A = 1;
32582 A /= 10.0;
32583 sprintf(Buffer, "%a", A);
32584 B = atof(Buffer);
32585 if (A != B)
32586   return (1);
32587 if (A != 0x1.999999999999ap-4)
32588   return (1);
32589 return (0);
32590   ;
32591   return 0;
32592 }
32593 _ACEOF
32594 rm -f conftest$ac_exeext
32595 if { (ac_try="$ac_link"
32596 case "(($ac_try" in
32597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598   *) ac_try_echo=$ac_try;;
32599 esac
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601   (eval "$ac_link") 2>&5
32602   ac_status=$?
32603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32605   { (case "(($ac_try" in
32606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607   *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610   (eval "$ac_try") 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; }; then
32614   llvm_cv_c_printf_a=yes
32615 else
32616   echo "$as_me: program exited with status $ac_status" >&5
32617 echo "$as_me: failed program was:" >&5
32618 sed 's/^/| /' conftest.$ac_ext >&5
32619
32620 ( exit $ac_status )
32621 llvmac_cv_c_printf_a=no
32622 fi
32623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32624 fi
32625
32626
32627  ac_ext=c
32628 ac_cpp='$CPP $CPPFLAGS'
32629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32632
32633 fi
32634 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32635 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32636  if test "$llvm_cv_c_printf_a" = "yes"; then
32637
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_PRINTF_A 1
32640 _ACEOF
32641
32642  fi
32643
32644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32645 # for constant arguments.  Useless!
32646 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32647 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32648 if test "${ac_cv_working_alloca_h+set}" = set; then
32649   echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651   cat >conftest.$ac_ext <<_ACEOF
32652 /* confdefs.h.  */
32653 _ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h.  */
32657 #include <alloca.h>
32658 int
32659 main ()
32660 {
32661 char *p = (char *) alloca (2 * sizeof (int));
32662                           if (p) return 0;
32663   ;
32664   return 0;
32665 }
32666 _ACEOF
32667 rm -f conftest.$ac_objext conftest$ac_exeext
32668 if { (ac_try="$ac_link"
32669 case "(($ac_try" in
32670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671   *) ac_try_echo=$ac_try;;
32672 esac
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674   (eval "$ac_link") 2>conftest.er1
32675   ac_status=$?
32676   grep -v '^ *+' conftest.er1 >conftest.err
32677   rm -f conftest.er1
32678   cat conftest.err >&5
32679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680   (exit $ac_status); } &&
32681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32682   { (case "(($ac_try" in
32683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684   *) ac_try_echo=$ac_try;;
32685 esac
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687   (eval "$ac_try") 2>&5
32688   ac_status=$?
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); }; } &&
32691          { ac_try='test -s conftest$ac_exeext'
32692   { (case "(($ac_try" in
32693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694   *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697   (eval "$ac_try") 2>&5
32698   ac_status=$?
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); }; }; then
32701   ac_cv_working_alloca_h=yes
32702 else
32703   echo "$as_me: failed program was:" >&5
32704 sed 's/^/| /' conftest.$ac_ext >&5
32705
32706         ac_cv_working_alloca_h=no
32707 fi
32708
32709 rm -f core conftest.err conftest.$ac_objext \
32710       conftest$ac_exeext conftest.$ac_ext
32711 fi
32712 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32713 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32714 if test $ac_cv_working_alloca_h = yes; then
32715
32716 cat >>confdefs.h <<\_ACEOF
32717 #define HAVE_ALLOCA_H 1
32718 _ACEOF
32719
32720 fi
32721
32722 { echo "$as_me:$LINENO: checking for alloca" >&5
32723 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32724 if test "${ac_cv_func_alloca_works+set}" = set; then
32725   echo $ECHO_N "(cached) $ECHO_C" >&6
32726 else
32727   cat >conftest.$ac_ext <<_ACEOF
32728 /* confdefs.h.  */
32729 _ACEOF
32730 cat confdefs.h >>conftest.$ac_ext
32731 cat >>conftest.$ac_ext <<_ACEOF
32732 /* end confdefs.h.  */
32733 #ifdef __GNUC__
32734 # define alloca __builtin_alloca
32735 #else
32736 # ifdef _MSC_VER
32737 #  include <malloc.h>
32738 #  define alloca _alloca
32739 # else
32740 #  if HAVE_ALLOCA_H
32741 #   include <alloca.h>
32742 #  else
32743 #   ifdef _AIX
32744  #pragma alloca
32745 #   else
32746 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32747 char *alloca ();
32748 #    endif
32749 #   endif
32750 #  endif
32751 # endif
32752 #endif
32753
32754 int
32755 main ()
32756 {
32757 char *p = (char *) alloca (1);
32758                                     if (p) return 0;
32759   ;
32760   return 0;
32761 }
32762 _ACEOF
32763 rm -f conftest.$ac_objext conftest$ac_exeext
32764 if { (ac_try="$ac_link"
32765 case "(($ac_try" in
32766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767   *) ac_try_echo=$ac_try;;
32768 esac
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770   (eval "$ac_link") 2>conftest.er1
32771   ac_status=$?
32772   grep -v '^ *+' conftest.er1 >conftest.err
32773   rm -f conftest.er1
32774   cat conftest.err >&5
32775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776   (exit $ac_status); } &&
32777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32778   { (case "(($ac_try" in
32779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780   *) ac_try_echo=$ac_try;;
32781 esac
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783   (eval "$ac_try") 2>&5
32784   ac_status=$?
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); }; } &&
32787          { ac_try='test -s conftest$ac_exeext'
32788   { (case "(($ac_try" in
32789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790   *) ac_try_echo=$ac_try;;
32791 esac
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793   (eval "$ac_try") 2>&5
32794   ac_status=$?
32795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796   (exit $ac_status); }; }; then
32797   ac_cv_func_alloca_works=yes
32798 else
32799   echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32801
32802         ac_cv_func_alloca_works=no
32803 fi
32804
32805 rm -f core conftest.err conftest.$ac_objext \
32806       conftest$ac_exeext conftest.$ac_ext
32807 fi
32808 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32809 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32810
32811 if test $ac_cv_func_alloca_works = yes; then
32812
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_ALLOCA 1
32815 _ACEOF
32816
32817 else
32818   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32819 # that cause trouble.  Some versions do not even contain alloca or
32820 # contain a buggy version.  If you still want to use their alloca,
32821 # use ar to extract alloca.o from them instead of compiling alloca.c.
32822
32823 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32824
32825 cat >>confdefs.h <<\_ACEOF
32826 #define C_ALLOCA 1
32827 _ACEOF
32828
32829
32830 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32831 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32832 if test "${ac_cv_os_cray+set}" = set; then
32833   echo $ECHO_N "(cached) $ECHO_C" >&6
32834 else
32835   cat >conftest.$ac_ext <<_ACEOF
32836 /* confdefs.h.  */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h.  */
32841 #if defined CRAY && ! defined CRAY2
32842 webecray
32843 #else
32844 wenotbecray
32845 #endif
32846
32847 _ACEOF
32848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32849   $EGREP "webecray" >/dev/null 2>&1; then
32850   ac_cv_os_cray=yes
32851 else
32852   ac_cv_os_cray=no
32853 fi
32854 rm -f conftest*
32855
32856 fi
32857 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32858 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32859 if test $ac_cv_os_cray = yes; then
32860   for ac_func in _getb67 GETB67 getb67; do
32861     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32865   echo $ECHO_N "(cached) $ECHO_C" >&6
32866 else
32867   cat >conftest.$ac_ext <<_ACEOF
32868 /* confdefs.h.  */
32869 _ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h.  */
32873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32875 #define $ac_func innocuous_$ac_func
32876
32877 /* System header to define __stub macros and hopefully few prototypes,
32878     which can conflict with char $ac_func (); below.
32879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32880     <limits.h> exists even on freestanding compilers.  */
32881
32882 #ifdef __STDC__
32883 # include <limits.h>
32884 #else
32885 # include <assert.h>
32886 #endif
32887
32888 #undef $ac_func
32889
32890 /* Override any GCC internal prototype to avoid an error.
32891    Use char because int might match the return type of a GCC
32892    builtin and then its argument prototype would still apply.  */
32893 #ifdef __cplusplus
32894 extern "C"
32895 #endif
32896 char $ac_func ();
32897 /* The GNU C library defines this for functions which it implements
32898     to always fail with ENOSYS.  Some functions are actually named
32899     something starting with __ and the normal name is an alias.  */
32900 #if defined __stub_$ac_func || defined __stub___$ac_func
32901 choke me
32902 #endif
32903
32904 int
32905 main ()
32906 {
32907 return $ac_func ();
32908   ;
32909   return 0;
32910 }
32911 _ACEOF
32912 rm -f conftest.$ac_objext conftest$ac_exeext
32913 if { (ac_try="$ac_link"
32914 case "(($ac_try" in
32915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916   *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919   (eval "$ac_link") 2>conftest.er1
32920   ac_status=$?
32921   grep -v '^ *+' conftest.er1 >conftest.err
32922   rm -f conftest.er1
32923   cat conftest.err >&5
32924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925   (exit $ac_status); } &&
32926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32927   { (case "(($ac_try" in
32928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929   *) ac_try_echo=$ac_try;;
32930 esac
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932   (eval "$ac_try") 2>&5
32933   ac_status=$?
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); }; } &&
32936          { ac_try='test -s conftest$ac_exeext'
32937   { (case "(($ac_try" in
32938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939   *) ac_try_echo=$ac_try;;
32940 esac
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942   (eval "$ac_try") 2>&5
32943   ac_status=$?
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); }; }; then
32946   eval "$as_ac_var=yes"
32947 else
32948   echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32950
32951         eval "$as_ac_var=no"
32952 fi
32953
32954 rm -f core conftest.err conftest.$ac_objext \
32955       conftest$ac_exeext conftest.$ac_ext
32956 fi
32957 ac_res=`eval echo '${'$as_ac_var'}'`
32958                { echo "$as_me:$LINENO: result: $ac_res" >&5
32959 echo "${ECHO_T}$ac_res" >&6; }
32960 if test `eval echo '${'$as_ac_var'}'` = yes; then
32961
32962 cat >>confdefs.h <<_ACEOF
32963 #define CRAY_STACKSEG_END $ac_func
32964 _ACEOF
32965
32966     break
32967 fi
32968
32969   done
32970 fi
32971
32972 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32973 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32974 if test "${ac_cv_c_stack_direction+set}" = set; then
32975   echo $ECHO_N "(cached) $ECHO_C" >&6
32976 else
32977   if test "$cross_compiling" = yes; then
32978   ac_cv_c_stack_direction=0
32979 else
32980   cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986 $ac_includes_default
32987 int
32988 find_stack_direction ()
32989 {
32990   static char *addr = 0;
32991   auto char dummy;
32992   if (addr == 0)
32993     {
32994       addr = &dummy;
32995       return find_stack_direction ();
32996     }
32997   else
32998     return (&dummy > addr) ? 1 : -1;
32999 }
33000
33001 int
33002 main ()
33003 {
33004   return find_stack_direction () < 0;
33005 }
33006 _ACEOF
33007 rm -f conftest$ac_exeext
33008 if { (ac_try="$ac_link"
33009 case "(($ac_try" in
33010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011   *) ac_try_echo=$ac_try;;
33012 esac
33013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014   (eval "$ac_link") 2>&5
33015   ac_status=$?
33016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33018   { (case "(($ac_try" in
33019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020   *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023   (eval "$ac_try") 2>&5
33024   ac_status=$?
33025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026   (exit $ac_status); }; }; then
33027   ac_cv_c_stack_direction=1
33028 else
33029   echo "$as_me: program exited with status $ac_status" >&5
33030 echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33032
33033 ( exit $ac_status )
33034 ac_cv_c_stack_direction=-1
33035 fi
33036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33037 fi
33038
33039
33040 fi
33041 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33042 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33043
33044 cat >>confdefs.h <<_ACEOF
33045 #define STACK_DIRECTION $ac_cv_c_stack_direction
33046 _ACEOF
33047
33048
33049 fi
33050
33051
33052 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33053 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33054 if test "${ac_cv_func_rand48+set}" = set; then
33055   echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057   ac_ext=cpp
33058 ac_cpp='$CXXCPP $CPPFLAGS'
33059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33062
33063    cat >conftest.$ac_ext <<_ACEOF
33064 /* confdefs.h.  */
33065 _ACEOF
33066 cat confdefs.h >>conftest.$ac_ext
33067 cat >>conftest.$ac_ext <<_ACEOF
33068 /* end confdefs.h.  */
33069 #include <stdlib.h>
33070 int
33071 main ()
33072 {
33073 srand48(0);lrand48();drand48();
33074   ;
33075   return 0;
33076 }
33077 _ACEOF
33078 rm -f conftest.$ac_objext
33079 if { (ac_try="$ac_compile"
33080 case "(($ac_try" in
33081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082   *) ac_try_echo=$ac_try;;
33083 esac
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085   (eval "$ac_compile") 2>conftest.er1
33086   ac_status=$?
33087   grep -v '^ *+' conftest.er1 >conftest.err
33088   rm -f conftest.er1
33089   cat conftest.err >&5
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); } &&
33092          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33093   { (case "(($ac_try" in
33094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095   *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098   (eval "$ac_try") 2>&5
33099   ac_status=$?
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); }; } &&
33102          { ac_try='test -s conftest.$ac_objext'
33103   { (case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108   (eval "$ac_try") 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; }; then
33112   ac_cv_func_rand48=yes
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117         ac_cv_func_rand48=no
33118 fi
33119
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33121   ac_ext=c
33122 ac_cpp='$CPP $CPPFLAGS'
33123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33126
33127 fi
33128 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33129 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33130
33131 if test "$ac_cv_func_rand48" = "yes" ; then
33132
33133 cat >>confdefs.h <<\_ACEOF
33134 #define HAVE_RAND48 1
33135 _ACEOF
33136
33137 fi
33138
33139
33140 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33141 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33142 if test "${ac_cv_cxx_namespaces+set}" = set; then
33143   echo $ECHO_N "(cached) $ECHO_C" >&6
33144 else
33145   ac_ext=cpp
33146 ac_cpp='$CXXCPP $CPPFLAGS'
33147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33150
33151  cat >conftest.$ac_ext <<_ACEOF
33152 /* confdefs.h.  */
33153 _ACEOF
33154 cat confdefs.h >>conftest.$ac_ext
33155 cat >>conftest.$ac_ext <<_ACEOF
33156 /* end confdefs.h.  */
33157 namespace Outer { namespace Inner { int i = 0; }}
33158 int
33159 main ()
33160 {
33161 using namespace Outer::Inner; return i;
33162   ;
33163   return 0;
33164 }
33165 _ACEOF
33166 rm -f conftest.$ac_objext
33167 if { (ac_try="$ac_compile"
33168 case "(($ac_try" in
33169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170   *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173   (eval "$ac_compile") 2>conftest.er1
33174   ac_status=$?
33175   grep -v '^ *+' conftest.er1 >conftest.err
33176   rm -f conftest.er1
33177   cat conftest.err >&5
33178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179   (exit $ac_status); } &&
33180          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33181   { (case "(($ac_try" in
33182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183   *) ac_try_echo=$ac_try;;
33184 esac
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186   (eval "$ac_try") 2>&5
33187   ac_status=$?
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); }; } &&
33190          { ac_try='test -s conftest.$ac_objext'
33191   { (case "(($ac_try" in
33192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193   *) ac_try_echo=$ac_try;;
33194 esac
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196   (eval "$ac_try") 2>&5
33197   ac_status=$?
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); }; }; then
33200   ac_cv_cxx_namespaces=yes
33201 else
33202   echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33204
33205         ac_cv_cxx_namespaces=no
33206 fi
33207
33208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33209  ac_ext=c
33210 ac_cpp='$CPP $CPPFLAGS'
33211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33214
33215
33216 fi
33217 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33218 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33219 if test "$ac_cv_cxx_namespaces" = yes; then
33220
33221 cat >>confdefs.h <<\_ACEOF
33222 #define HAVE_NAMESPACES
33223 _ACEOF
33224
33225 fi
33226
33227 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33228 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33229 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33230   echo $ECHO_N "(cached) $ECHO_C" >&6
33231 else
33232
33233   ac_ext=cpp
33234 ac_cpp='$CXXCPP $CPPFLAGS'
33235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33238
33239   cat >conftest.$ac_ext <<_ACEOF
33240 /* confdefs.h.  */
33241 _ACEOF
33242 cat confdefs.h >>conftest.$ac_ext
33243 cat >>conftest.$ac_ext <<_ACEOF
33244 /* end confdefs.h.  */
33245 #include <iterator>
33246 #ifdef HAVE_NAMESPACES
33247 using namespace std;
33248 #endif
33249 int
33250 main ()
33251 {
33252 iterator<int,int,int> t; return 0;
33253   ;
33254   return 0;
33255 }
33256 _ACEOF
33257 rm -f conftest.$ac_objext
33258 if { (ac_try="$ac_compile"
33259 case "(($ac_try" in
33260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261   *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264   (eval "$ac_compile") 2>conftest.er1
33265   ac_status=$?
33266   grep -v '^ *+' conftest.er1 >conftest.err
33267   rm -f conftest.er1
33268   cat conftest.err >&5
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); } &&
33271          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272   { (case "(($ac_try" in
33273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274   *) ac_try_echo=$ac_try;;
33275 esac
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277   (eval "$ac_try") 2>&5
33278   ac_status=$?
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); }; } &&
33281          { ac_try='test -s conftest.$ac_objext'
33282   { (case "(($ac_try" in
33283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284   *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287   (eval "$ac_try") 2>&5
33288   ac_status=$?
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; }; then
33291   ac_cv_cxx_have_std_iterator=yes
33292 else
33293   echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33295
33296         ac_cv_cxx_have_std_iterator=no
33297 fi
33298
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300   ac_ext=c
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306
33307 fi
33308 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33309 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33310 if test "$ac_cv_cxx_have_std_iterator" = yes
33311 then
33312
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_STD_ITERATOR 1
33315 _ACEOF
33316
33317 else
33318
33319 cat >>confdefs.h <<\_ACEOF
33320 #define HAVE_STD_ITERATOR 0
33321 _ACEOF
33322
33323 fi
33324
33325 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33326 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33327 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33328   echo $ECHO_N "(cached) $ECHO_C" >&6
33329 else
33330
33331   ac_ext=cpp
33332 ac_cpp='$CXXCPP $CPPFLAGS'
33333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33336
33337   cat >conftest.$ac_ext <<_ACEOF
33338 /* confdefs.h.  */
33339 _ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h.  */
33343 #include <iterator>
33344 #ifdef HAVE_NAMESPACES
33345 using namespace std;
33346 #endif
33347 int
33348 main ()
33349 {
33350 bidirectional_iterator<int,int> t; return 0;
33351   ;
33352   return 0;
33353 }
33354 _ACEOF
33355 rm -f conftest.$ac_objext
33356 if { (ac_try="$ac_compile"
33357 case "(($ac_try" in
33358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359   *) ac_try_echo=$ac_try;;
33360 esac
33361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362   (eval "$ac_compile") 2>conftest.er1
33363   ac_status=$?
33364   grep -v '^ *+' conftest.er1 >conftest.err
33365   rm -f conftest.er1
33366   cat conftest.err >&5
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); } &&
33369          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33370   { (case "(($ac_try" in
33371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372   *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375   (eval "$ac_try") 2>&5
33376   ac_status=$?
33377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378   (exit $ac_status); }; } &&
33379          { ac_try='test -s conftest.$ac_objext'
33380   { (case "(($ac_try" in
33381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382   *) ac_try_echo=$ac_try;;
33383 esac
33384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385   (eval "$ac_try") 2>&5
33386   ac_status=$?
33387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388   (exit $ac_status); }; }; then
33389   ac_cv_cxx_have_bi_iterator=yes
33390 else
33391   echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394         ac_cv_cxx_have_bi_iterator=no
33395 fi
33396
33397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398   ac_ext=c
33399 ac_cpp='$CPP $CPPFLAGS'
33400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33403
33404
33405 fi
33406 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33407 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33408 if test "$ac_cv_cxx_have_bi_iterator" = yes
33409 then
33410
33411 cat >>confdefs.h <<\_ACEOF
33412 #define HAVE_BI_ITERATOR 1
33413 _ACEOF
33414
33415 else
33416
33417 cat >>confdefs.h <<\_ACEOF
33418 #define HAVE_BI_ITERATOR 0
33419 _ACEOF
33420
33421 fi
33422
33423 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33424 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33425 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33426   echo $ECHO_N "(cached) $ECHO_C" >&6
33427 else
33428
33429   ac_ext=cpp
33430 ac_cpp='$CXXCPP $CPPFLAGS'
33431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33434
33435   cat >conftest.$ac_ext <<_ACEOF
33436 /* confdefs.h.  */
33437 _ACEOF
33438 cat confdefs.h >>conftest.$ac_ext
33439 cat >>conftest.$ac_ext <<_ACEOF
33440 /* end confdefs.h.  */
33441 #include <iterator>
33442 #ifdef HAVE_NAMESPACES
33443 using namespace std;
33444 #endif
33445 int
33446 main ()
33447 {
33448 forward_iterator<int,int> t; return 0;
33449   ;
33450   return 0;
33451 }
33452 _ACEOF
33453 rm -f conftest.$ac_objext
33454 if { (ac_try="$ac_compile"
33455 case "(($ac_try" in
33456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457   *) ac_try_echo=$ac_try;;
33458 esac
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460   (eval "$ac_compile") 2>conftest.er1
33461   ac_status=$?
33462   grep -v '^ *+' conftest.er1 >conftest.err
33463   rm -f conftest.er1
33464   cat conftest.err >&5
33465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466   (exit $ac_status); } &&
33467          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33468   { (case "(($ac_try" in
33469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470   *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473   (eval "$ac_try") 2>&5
33474   ac_status=$?
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); }; } &&
33477          { ac_try='test -s conftest.$ac_objext'
33478   { (case "(($ac_try" in
33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480   *) ac_try_echo=$ac_try;;
33481 esac
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483   (eval "$ac_try") 2>&5
33484   ac_status=$?
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); }; }; then
33487   ac_cv_cxx_have_fwd_iterator=yes
33488 else
33489   echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33491
33492         ac_cv_cxx_have_fwd_iterator=no
33493 fi
33494
33495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496   ac_ext=c
33497 ac_cpp='$CPP $CPPFLAGS'
33498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
33503 fi
33504 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33505 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33506 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33507 then
33508
33509 cat >>confdefs.h <<\_ACEOF
33510 #define HAVE_FWD_ITERATOR 1
33511 _ACEOF
33512
33513 else
33514
33515 cat >>confdefs.h <<\_ACEOF
33516 #define HAVE_FWD_ITERATOR 0
33517 _ACEOF
33518
33519 fi
33520
33521
33522 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33523 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33524 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33525   echo $ECHO_N "(cached) $ECHO_C" >&6
33526 else
33527   ac_ext=cpp
33528 ac_cpp='$CXXCPP $CPPFLAGS'
33529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33532
33533    cat >conftest.$ac_ext <<_ACEOF
33534 /* confdefs.h.  */
33535 _ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h.  */
33539 #include <math.h>
33540 int
33541 main ()
33542 {
33543 float f; isnan(f);
33544   ;
33545   return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552   *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555   (eval "$ac_compile") 2>conftest.er1
33556   ac_status=$?
33557   grep -v '^ *+' conftest.er1 >conftest.err
33558   rm -f conftest.er1
33559   cat conftest.err >&5
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); } &&
33562          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33563   { (case "(($ac_try" in
33564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565   *) ac_try_echo=$ac_try;;
33566 esac
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568   (eval "$ac_try") 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; } &&
33572          { ac_try='test -s conftest.$ac_objext'
33573   { (case "(($ac_try" in
33574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575   *) ac_try_echo=$ac_try;;
33576 esac
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578   (eval "$ac_try") 2>&5
33579   ac_status=$?
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); }; }; then
33582   ac_cv_func_isnan_in_math_h=yes
33583 else
33584   echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33586
33587         ac_cv_func_isnan_in_math_h=no
33588 fi
33589
33590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33591   ac_ext=c
33592 ac_cpp='$CPP $CPPFLAGS'
33593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33596
33597 fi
33598 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33599 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33600
33601
33602 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33603
33604 cat >>confdefs.h <<\_ACEOF
33605 #define HAVE_ISNAN_IN_MATH_H 1
33606 _ACEOF
33607
33608 fi
33609
33610 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33611 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33612 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33613   echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615   ac_ext=cpp
33616 ac_cpp='$CXXCPP $CPPFLAGS'
33617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33620
33621    cat >conftest.$ac_ext <<_ACEOF
33622 /* confdefs.h.  */
33623 _ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h.  */
33627 #include <cmath>
33628 int
33629 main ()
33630 {
33631 float f; isnan(f);
33632   ;
33633   return 0;
33634 }
33635 _ACEOF
33636 rm -f conftest.$ac_objext
33637 if { (ac_try="$ac_compile"
33638 case "(($ac_try" in
33639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640   *) ac_try_echo=$ac_try;;
33641 esac
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643   (eval "$ac_compile") 2>conftest.er1
33644   ac_status=$?
33645   grep -v '^ *+' conftest.er1 >conftest.err
33646   rm -f conftest.er1
33647   cat conftest.err >&5
33648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649   (exit $ac_status); } &&
33650          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33651   { (case "(($ac_try" in
33652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653   *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656   (eval "$ac_try") 2>&5
33657   ac_status=$?
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); }; } &&
33660          { ac_try='test -s conftest.$ac_objext'
33661   { (case "(($ac_try" in
33662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663   *) ac_try_echo=$ac_try;;
33664 esac
33665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666   (eval "$ac_try") 2>&5
33667   ac_status=$?
33668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669   (exit $ac_status); }; }; then
33670   ac_cv_func_isnan_in_cmath=yes
33671 else
33672   echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33674
33675         ac_cv_func_isnan_in_cmath=no
33676 fi
33677
33678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33679   ac_ext=c
33680 ac_cpp='$CPP $CPPFLAGS'
33681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33684
33685 fi
33686 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33687 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33688
33689 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33690
33691 cat >>confdefs.h <<\_ACEOF
33692 #define HAVE_ISNAN_IN_CMATH 1
33693 _ACEOF
33694
33695 fi
33696
33697 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33698 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33699 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33700   echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702   ac_ext=cpp
33703 ac_cpp='$CXXCPP $CPPFLAGS'
33704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33707
33708    cat >conftest.$ac_ext <<_ACEOF
33709 /* confdefs.h.  */
33710 _ACEOF
33711 cat confdefs.h >>conftest.$ac_ext
33712 cat >>conftest.$ac_ext <<_ACEOF
33713 /* end confdefs.h.  */
33714 #include <cmath>
33715 int
33716 main ()
33717 {
33718 float f; std::isnan(f);
33719   ;
33720   return 0;
33721 }
33722 _ACEOF
33723 rm -f conftest.$ac_objext
33724 if { (ac_try="$ac_compile"
33725 case "(($ac_try" in
33726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727   *) ac_try_echo=$ac_try;;
33728 esac
33729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730   (eval "$ac_compile") 2>conftest.er1
33731   ac_status=$?
33732   grep -v '^ *+' conftest.er1 >conftest.err
33733   rm -f conftest.er1
33734   cat conftest.err >&5
33735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736   (exit $ac_status); } &&
33737          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33738   { (case "(($ac_try" in
33739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740   *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743   (eval "$ac_try") 2>&5
33744   ac_status=$?
33745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746   (exit $ac_status); }; } &&
33747          { ac_try='test -s conftest.$ac_objext'
33748   { (case "(($ac_try" in
33749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750   *) ac_try_echo=$ac_try;;
33751 esac
33752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753   (eval "$ac_try") 2>&5
33754   ac_status=$?
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); }; }; then
33757   ac_cv_func_std_isnan_in_cmath=yes
33758 else
33759   echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33761
33762         ac_cv_func_std_isnan_in_cmath=no
33763 fi
33764
33765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766   ac_ext=c
33767 ac_cpp='$CPP $CPPFLAGS'
33768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33771
33772 fi
33773 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33774 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33775
33776 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33777
33778 cat >>confdefs.h <<\_ACEOF
33779 #define HAVE_STD_ISNAN_IN_CMATH 1
33780 _ACEOF
33781
33782 fi
33783
33784
33785 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33786 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33787 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33788   echo $ECHO_N "(cached) $ECHO_C" >&6
33789 else
33790   ac_ext=cpp
33791 ac_cpp='$CXXCPP $CPPFLAGS'
33792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33795
33796    cat >conftest.$ac_ext <<_ACEOF
33797 /* confdefs.h.  */
33798 _ACEOF
33799 cat confdefs.h >>conftest.$ac_ext
33800 cat >>conftest.$ac_ext <<_ACEOF
33801 /* end confdefs.h.  */
33802 #include <math.h>
33803 int
33804 main ()
33805 {
33806 float f; isinf(f);
33807   ;
33808   return 0;
33809 }
33810 _ACEOF
33811 rm -f conftest.$ac_objext
33812 if { (ac_try="$ac_compile"
33813 case "(($ac_try" in
33814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815   *) ac_try_echo=$ac_try;;
33816 esac
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818   (eval "$ac_compile") 2>conftest.er1
33819   ac_status=$?
33820   grep -v '^ *+' conftest.er1 >conftest.err
33821   rm -f conftest.er1
33822   cat conftest.err >&5
33823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824   (exit $ac_status); } &&
33825          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33826   { (case "(($ac_try" in
33827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828   *) ac_try_echo=$ac_try;;
33829 esac
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831   (eval "$ac_try") 2>&5
33832   ac_status=$?
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); }; } &&
33835          { ac_try='test -s conftest.$ac_objext'
33836   { (case "(($ac_try" in
33837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33838   *) ac_try_echo=$ac_try;;
33839 esac
33840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33841   (eval "$ac_try") 2>&5
33842   ac_status=$?
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); }; }; then
33845   ac_cv_func_isinf_in_math_h=yes
33846 else
33847   echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33849
33850         ac_cv_func_isinf_in_math_h=no
33851 fi
33852
33853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33854   ac_ext=c
33855 ac_cpp='$CPP $CPPFLAGS'
33856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33859
33860 fi
33861 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33862 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33863
33864 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33865
33866 cat >>confdefs.h <<\_ACEOF
33867 #define HAVE_ISINF_IN_MATH_H 1
33868 _ACEOF
33869
33870 fi
33871
33872 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33873 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33874 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33875   echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877   ac_ext=cpp
33878 ac_cpp='$CXXCPP $CPPFLAGS'
33879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33882
33883    cat >conftest.$ac_ext <<_ACEOF
33884 /* confdefs.h.  */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h.  */
33889 #include <cmath>
33890 int
33891 main ()
33892 {
33893 float f; isinf(f);
33894   ;
33895   return 0;
33896 }
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902   *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905   (eval "$ac_compile") 2>conftest.er1
33906   ac_status=$?
33907   grep -v '^ *+' conftest.er1 >conftest.err
33908   rm -f conftest.er1
33909   cat conftest.err >&5
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); } &&
33912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33913   { (case "(($ac_try" in
33914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915   *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918   (eval "$ac_try") 2>&5
33919   ac_status=$?
33920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921   (exit $ac_status); }; } &&
33922          { ac_try='test -s conftest.$ac_objext'
33923   { (case "(($ac_try" in
33924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925   *) ac_try_echo=$ac_try;;
33926 esac
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928   (eval "$ac_try") 2>&5
33929   ac_status=$?
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); }; }; then
33932   ac_cv_func_isinf_in_cmath=yes
33933 else
33934   echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937         ac_cv_func_isinf_in_cmath=no
33938 fi
33939
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941   ac_ext=c
33942 ac_cpp='$CPP $CPPFLAGS'
33943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33946
33947 fi
33948 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33949 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33950
33951 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33952
33953 cat >>confdefs.h <<\_ACEOF
33954 #define HAVE_ISINF_IN_CMATH 1
33955 _ACEOF
33956
33957 fi
33958
33959 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33960 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33961 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33962   echo $ECHO_N "(cached) $ECHO_C" >&6
33963 else
33964   ac_ext=cpp
33965 ac_cpp='$CXXCPP $CPPFLAGS'
33966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33969
33970    cat >conftest.$ac_ext <<_ACEOF
33971 /* confdefs.h.  */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h.  */
33976 #include <cmath>
33977 int
33978 main ()
33979 {
33980 float f; std::isinf(f)}
33981   ;
33982   return 0;
33983 }
33984 _ACEOF
33985 rm -f conftest.$ac_objext
33986 if { (ac_try="$ac_compile"
33987 case "(($ac_try" in
33988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989   *) ac_try_echo=$ac_try;;
33990 esac
33991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33992   (eval "$ac_compile") 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } &&
33999          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34000   { (case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_try") 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; } &&
34009          { ac_try='test -s conftest.$ac_objext'
34010   { (case "(($ac_try" in
34011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012   *) ac_try_echo=$ac_try;;
34013 esac
34014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015   (eval "$ac_try") 2>&5
34016   ac_status=$?
34017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018   (exit $ac_status); }; }; then
34019   ac_cv_func_std_isinf_in_cmath=yes
34020 else
34021   echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34023
34024         ac_cv_func_std_isinf_in_cmath=no
34025 fi
34026
34027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34028   ac_ext=c
34029 ac_cpp='$CPP $CPPFLAGS'
34030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34033
34034 fi
34035 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34036 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34037
34038 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34039
34040 cat >>confdefs.h <<\_ACEOF
34041 #define HAVE_STD_ISINF_IN_CMATH 1
34042 _ACEOF
34043
34044 fi
34045
34046 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34047 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34048 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34049   echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051   ac_ext=cpp
34052 ac_cpp='$CXXCPP $CPPFLAGS'
34053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34056
34057    cat >conftest.$ac_ext <<_ACEOF
34058 /* confdefs.h.  */
34059 _ACEOF
34060 cat confdefs.h >>conftest.$ac_ext
34061 cat >>conftest.$ac_ext <<_ACEOF
34062 /* end confdefs.h.  */
34063 #include <ieeefp.h>
34064 int
34065 main ()
34066 {
34067 float f; finite(f);
34068   ;
34069   return 0;
34070 }
34071 _ACEOF
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076   *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079   (eval "$ac_compile") 2>conftest.er1
34080   ac_status=$?
34081   grep -v '^ *+' conftest.er1 >conftest.err
34082   rm -f conftest.er1
34083   cat conftest.err >&5
34084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); } &&
34086          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34087   { (case "(($ac_try" in
34088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089   *) ac_try_echo=$ac_try;;
34090 esac
34091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092   (eval "$ac_try") 2>&5
34093   ac_status=$?
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); }; } &&
34096          { ac_try='test -s conftest.$ac_objext'
34097   { (case "(($ac_try" in
34098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34099   *) ac_try_echo=$ac_try;;
34100 esac
34101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34102   (eval "$ac_try") 2>&5
34103   ac_status=$?
34104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105   (exit $ac_status); }; }; then
34106   ac_cv_func_finite_in_ieeefp_h=yes
34107 else
34108   echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34110
34111         ac_cv_func_finite_in_ieeefp_h=no
34112 fi
34113
34114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34115   ac_ext=c
34116 ac_cpp='$CPP $CPPFLAGS'
34117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34120
34121 fi
34122 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34123 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34124
34125 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34126
34127 cat >>confdefs.h <<\_ACEOF
34128 #define HAVE_FINITE_IN_IEEEFP_H 1
34129 _ACEOF
34130
34131 fi
34132
34133
34134
34135 if test "$llvm_cv_platform_type" = "Unix" ; then
34136
34137
34138 for ac_header in stdlib.h unistd.h
34139 do
34140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34142   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34145   echo $ECHO_N "(cached) $ECHO_C" >&6
34146 fi
34147 ac_res=`eval echo '${'$as_ac_Header'}'`
34148                { echo "$as_me:$LINENO: result: $ac_res" >&5
34149 echo "${ECHO_T}$ac_res" >&6; }
34150 else
34151   # Is the header compilable?
34152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34154 cat >conftest.$ac_ext <<_ACEOF
34155 /* confdefs.h.  */
34156 _ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h.  */
34160 $ac_includes_default
34161 #include <$ac_header>
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167   *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170   (eval "$ac_compile") 2>conftest.er1
34171   ac_status=$?
34172   grep -v '^ *+' conftest.er1 >conftest.err
34173   rm -f conftest.er1
34174   cat conftest.err >&5
34175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176   (exit $ac_status); } &&
34177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34178   { (case "(($ac_try" in
34179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180   *) ac_try_echo=$ac_try;;
34181 esac
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183   (eval "$ac_try") 2>&5
34184   ac_status=$?
34185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186   (exit $ac_status); }; } &&
34187          { ac_try='test -s conftest.$ac_objext'
34188   { (case "(($ac_try" in
34189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190   *) ac_try_echo=$ac_try;;
34191 esac
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193   (eval "$ac_try") 2>&5
34194   ac_status=$?
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); }; }; then
34197   ac_header_compiler=yes
34198 else
34199   echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34201
34202         ac_header_compiler=no
34203 fi
34204
34205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34207 echo "${ECHO_T}$ac_header_compiler" >&6; }
34208
34209 # Is the header present?
34210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34212 cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h.  */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h.  */
34218 #include <$ac_header>
34219 _ACEOF
34220 if { (ac_try="$ac_cpp conftest.$ac_ext"
34221 case "(($ac_try" in
34222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223   *) ac_try_echo=$ac_try;;
34224 esac
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34227   ac_status=$?
34228   grep -v '^ *+' conftest.er1 >conftest.err
34229   rm -f conftest.er1
34230   cat conftest.err >&5
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); } >/dev/null; then
34233   if test -s conftest.err; then
34234     ac_cpp_err=$ac_c_preproc_warn_flag
34235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34236   else
34237     ac_cpp_err=
34238   fi
34239 else
34240   ac_cpp_err=yes
34241 fi
34242 if test -z "$ac_cpp_err"; then
34243   ac_header_preproc=yes
34244 else
34245   echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34247
34248   ac_header_preproc=no
34249 fi
34250
34251 rm -f conftest.err conftest.$ac_ext
34252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34253 echo "${ECHO_T}$ac_header_preproc" >&6; }
34254
34255 # So?  What about this header?
34256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34257   yes:no: )
34258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34262     ac_header_preproc=yes
34263     ;;
34264   no:yes:* )
34265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34267     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34268 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34269     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34271     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34272 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34275     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34277     ( cat <<\_ASBOX
34278 ## ----------------------------------- ##
34279 ## Report this to llvmbugs@cs.uiuc.edu ##
34280 ## ----------------------------------- ##
34281 _ASBOX
34282      ) | sed "s/^/$as_me: WARNING:     /" >&2
34283     ;;
34284 esac
34285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34288   echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290   eval "$as_ac_Header=\$ac_header_preproc"
34291 fi
34292 ac_res=`eval echo '${'$as_ac_Header'}'`
34293                { echo "$as_me:$LINENO: result: $ac_res" >&5
34294 echo "${ECHO_T}$ac_res" >&6; }
34295
34296 fi
34297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34298   cat >>confdefs.h <<_ACEOF
34299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34300 _ACEOF
34301
34302 fi
34303
34304 done
34305
34306
34307 for ac_func in getpagesize
34308 do
34309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34313   echo $ECHO_N "(cached) $ECHO_C" >&6
34314 else
34315   cat >conftest.$ac_ext <<_ACEOF
34316 /* confdefs.h.  */
34317 _ACEOF
34318 cat confdefs.h >>conftest.$ac_ext
34319 cat >>conftest.$ac_ext <<_ACEOF
34320 /* end confdefs.h.  */
34321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34323 #define $ac_func innocuous_$ac_func
34324
34325 /* System header to define __stub macros and hopefully few prototypes,
34326     which can conflict with char $ac_func (); below.
34327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34328     <limits.h> exists even on freestanding compilers.  */
34329
34330 #ifdef __STDC__
34331 # include <limits.h>
34332 #else
34333 # include <assert.h>
34334 #endif
34335
34336 #undef $ac_func
34337
34338 /* Override any GCC internal prototype to avoid an error.
34339    Use char because int might match the return type of a GCC
34340    builtin and then its argument prototype would still apply.  */
34341 #ifdef __cplusplus
34342 extern "C"
34343 #endif
34344 char $ac_func ();
34345 /* The GNU C library defines this for functions which it implements
34346     to always fail with ENOSYS.  Some functions are actually named
34347     something starting with __ and the normal name is an alias.  */
34348 #if defined __stub_$ac_func || defined __stub___$ac_func
34349 choke me
34350 #endif
34351
34352 int
34353 main ()
34354 {
34355 return $ac_func ();
34356   ;
34357   return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext conftest$ac_exeext
34361 if { (ac_try="$ac_link"
34362 case "(($ac_try" in
34363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364   *) ac_try_echo=$ac_try;;
34365 esac
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367   (eval "$ac_link") 2>conftest.er1
34368   ac_status=$?
34369   grep -v '^ *+' conftest.er1 >conftest.err
34370   rm -f conftest.er1
34371   cat conftest.err >&5
34372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); } &&
34374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34375   { (case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_try") 2>&5
34381   ac_status=$?
34382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); }; } &&
34384          { ac_try='test -s conftest$ac_exeext'
34385   { (case "(($ac_try" in
34386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387   *) ac_try_echo=$ac_try;;
34388 esac
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390   (eval "$ac_try") 2>&5
34391   ac_status=$?
34392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393   (exit $ac_status); }; }; then
34394   eval "$as_ac_var=yes"
34395 else
34396   echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34398
34399         eval "$as_ac_var=no"
34400 fi
34401
34402 rm -f core conftest.err conftest.$ac_objext \
34403       conftest$ac_exeext conftest.$ac_ext
34404 fi
34405 ac_res=`eval echo '${'$as_ac_var'}'`
34406                { echo "$as_me:$LINENO: result: $ac_res" >&5
34407 echo "${ECHO_T}$ac_res" >&6; }
34408 if test `eval echo '${'$as_ac_var'}'` = yes; then
34409   cat >>confdefs.h <<_ACEOF
34410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34411 _ACEOF
34412
34413 fi
34414 done
34415
34416 { echo "$as_me:$LINENO: checking for working mmap" >&5
34417 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34418 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34419   echo $ECHO_N "(cached) $ECHO_C" >&6
34420 else
34421   if test "$cross_compiling" = yes; then
34422   ac_cv_func_mmap_fixed_mapped=no
34423 else
34424   cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h.  */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h.  */
34430 $ac_includes_default
34431 /* malloc might have been renamed as rpl_malloc. */
34432 #undef malloc
34433
34434 /* Thanks to Mike Haertel and Jim Avera for this test.
34435    Here is a matrix of mmap possibilities:
34436         mmap private not fixed
34437         mmap private fixed at somewhere currently unmapped
34438         mmap private fixed at somewhere already mapped
34439         mmap shared not fixed
34440         mmap shared fixed at somewhere currently unmapped
34441         mmap shared fixed at somewhere already mapped
34442    For private mappings, we should verify that changes cannot be read()
34443    back from the file, nor mmap's back from the file at a different
34444    address.  (There have been systems where private was not correctly
34445    implemented like the infamous i386 svr4.0, and systems where the
34446    VM page cache was not coherent with the file system buffer cache
34447    like early versions of FreeBSD and possibly contemporary NetBSD.)
34448    For shared mappings, we should conversely verify that changes get
34449    propagated back to all the places they're supposed to be.
34450
34451    Grep wants private fixed already mapped.
34452    The main things grep needs to know about mmap are:
34453    * does it exist and is it safe to write into the mmap'd area
34454    * how to use it (BSD variants)  */
34455
34456 #include <fcntl.h>
34457 #include <sys/mman.h>
34458
34459 #if !STDC_HEADERS && !HAVE_STDLIB_H
34460 char *malloc ();
34461 #endif
34462
34463 /* This mess was copied from the GNU getpagesize.h.  */
34464 #if !HAVE_GETPAGESIZE
34465 /* Assume that all systems that can run configure have sys/param.h.  */
34466 # if !HAVE_SYS_PARAM_H
34467 #  define HAVE_SYS_PARAM_H 1
34468 # endif
34469
34470 # ifdef _SC_PAGESIZE
34471 #  define getpagesize() sysconf(_SC_PAGESIZE)
34472 # else /* no _SC_PAGESIZE */
34473 #  if HAVE_SYS_PARAM_H
34474 #   include <sys/param.h>
34475 #   ifdef EXEC_PAGESIZE
34476 #    define getpagesize() EXEC_PAGESIZE
34477 #   else /* no EXEC_PAGESIZE */
34478 #    ifdef NBPG
34479 #     define getpagesize() NBPG * CLSIZE
34480 #     ifndef CLSIZE
34481 #      define CLSIZE 1
34482 #     endif /* no CLSIZE */
34483 #    else /* no NBPG */
34484 #     ifdef NBPC
34485 #      define getpagesize() NBPC
34486 #     else /* no NBPC */
34487 #      ifdef PAGESIZE
34488 #       define getpagesize() PAGESIZE
34489 #      endif /* PAGESIZE */
34490 #     endif /* no NBPC */
34491 #    endif /* no NBPG */
34492 #   endif /* no EXEC_PAGESIZE */
34493 #  else /* no HAVE_SYS_PARAM_H */
34494 #   define getpagesize() 8192   /* punt totally */
34495 #  endif /* no HAVE_SYS_PARAM_H */
34496 # endif /* no _SC_PAGESIZE */
34497
34498 #endif /* no HAVE_GETPAGESIZE */
34499
34500 int
34501 main ()
34502 {
34503   char *data, *data2, *data3;
34504   int i, pagesize;
34505   int fd;
34506
34507   pagesize = getpagesize ();
34508
34509   /* First, make a file with some known garbage in it. */
34510   data = (char *) malloc (pagesize);
34511   if (!data)
34512     return 1;
34513   for (i = 0; i < pagesize; ++i)
34514     *(data + i) = rand ();
34515   umask (0);
34516   fd = creat ("conftest.mmap", 0600);
34517   if (fd < 0)
34518     return 1;
34519   if (write (fd, data, pagesize) != pagesize)
34520     return 1;
34521   close (fd);
34522
34523   /* Next, try to mmap the file at a fixed address which already has
34524      something else allocated at it.  If we can, also make sure that
34525      we see the same garbage.  */
34526   fd = open ("conftest.mmap", O_RDWR);
34527   if (fd < 0)
34528     return 1;
34529   data2 = (char *) malloc (2 * pagesize);
34530   if (!data2)
34531     return 1;
34532   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34533   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34534                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34535     return 1;
34536   for (i = 0; i < pagesize; ++i)
34537     if (*(data + i) != *(data2 + i))
34538       return 1;
34539
34540   /* Finally, make sure that changes to the mapped area do not
34541      percolate back to the file as seen by read().  (This is a bug on
34542      some variants of i386 svr4.0.)  */
34543   for (i = 0; i < pagesize; ++i)
34544     *(data2 + i) = *(data2 + i) + 1;
34545   data3 = (char *) malloc (pagesize);
34546   if (!data3)
34547     return 1;
34548   if (read (fd, data3, pagesize) != pagesize)
34549     return 1;
34550   for (i = 0; i < pagesize; ++i)
34551     if (*(data + i) != *(data3 + i))
34552       return 1;
34553   close (fd);
34554   return 0;
34555 }
34556 _ACEOF
34557 rm -f conftest$ac_exeext
34558 if { (ac_try="$ac_link"
34559 case "(($ac_try" in
34560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561   *) ac_try_echo=$ac_try;;
34562 esac
34563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564   (eval "$ac_link") 2>&5
34565   ac_status=$?
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34568   { (case "(($ac_try" in
34569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34570   *) ac_try_echo=$ac_try;;
34571 esac
34572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34573   (eval "$ac_try") 2>&5
34574   ac_status=$?
34575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576   (exit $ac_status); }; }; then
34577   ac_cv_func_mmap_fixed_mapped=yes
34578 else
34579   echo "$as_me: program exited with status $ac_status" >&5
34580 echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.$ac_ext >&5
34582
34583 ( exit $ac_status )
34584 ac_cv_func_mmap_fixed_mapped=no
34585 fi
34586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34587 fi
34588
34589
34590 fi
34591 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34592 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34594
34595 cat >>confdefs.h <<\_ACEOF
34596 #define HAVE_MMAP 1
34597 _ACEOF
34598
34599 fi
34600 rm -f conftest.mmap
34601
34602   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34603 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34604 if test "${ac_cv_func_mmap_file+set}" = set; then
34605   echo $ECHO_N "(cached) $ECHO_C" >&6
34606 else
34607    ac_ext=c
34608 ac_cpp='$CPP $CPPFLAGS'
34609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34612
34613   if test "$cross_compiling" = yes; then
34614   ac_cv_func_mmap_file=no
34615 else
34616   cat >conftest.$ac_ext <<_ACEOF
34617
34618     /* confdefs.h.  */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h.  */
34623
34624 #include <sys/types.h>
34625 #include <sys/mman.h>
34626 #include <fcntl.h>
34627
34628 int
34629 main ()
34630 {
34631
34632   int fd;
34633   fd = creat ("foo",0777);
34634   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34635   unlink ("foo");
34636   return (fd != (int) MAP_FAILED);
34637   ;
34638   return 0;
34639 }
34640 _ACEOF
34641 rm -f conftest$ac_exeext
34642 if { (ac_try="$ac_link"
34643 case "(($ac_try" in
34644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645   *) ac_try_echo=$ac_try;;
34646 esac
34647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648   (eval "$ac_link") 2>&5
34649   ac_status=$?
34650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34652   { (case "(($ac_try" in
34653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654   *) ac_try_echo=$ac_try;;
34655 esac
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657   (eval "$ac_try") 2>&5
34658   ac_status=$?
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); }; }; then
34661   ac_cv_func_mmap_file=yes
34662 else
34663   echo "$as_me: program exited with status $ac_status" >&5
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34666
34667 ( exit $ac_status )
34668 ac_cv_func_mmap_file=no
34669 fi
34670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34671 fi
34672
34673
34674   ac_ext=c
34675 ac_cpp='$CPP $CPPFLAGS'
34676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34679
34680
34681 fi
34682 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34683 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34684 if test "$ac_cv_func_mmap_file" = yes; then
34685
34686 cat >>confdefs.h <<\_ACEOF
34687 #define HAVE_MMAP_FILE
34688 _ACEOF
34689
34690    MMAP_FILE=yes
34691
34692 fi
34693
34694   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34695 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34696 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34697   echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699   if test "$llvm_cv_os_type" = "Interix" ; then
34700    ac_cv_need_dev_zero_for_mmap=yes
34701  else
34702    ac_cv_need_dev_zero_for_mmap=no
34703  fi
34704
34705 fi
34706 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34707 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34708 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34709
34710 cat >>confdefs.h <<\_ACEOF
34711 #define NEED_DEV_ZERO_FOR_MMAP 1
34712 _ACEOF
34713
34714 fi
34715
34716   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34717   then
34718     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34719 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34720   fi
34721   if test "$ac_cv_func_mmap_file" = "no"
34722   then
34723     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34724 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34725   fi
34726 fi
34727
34728 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34729 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34730 cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736 int main() {
34737         volatile unsigned long val = 1;
34738         __sync_synchronize();
34739         __sync_val_compare_and_swap(&val, 1, 0);
34740         __sync_add_and_fetch(&val, 1);
34741         __sync_sub_and_fetch(&val, 1);
34742         return 0;
34743       }
34744
34745 _ACEOF
34746 rm -f conftest.$ac_objext conftest$ac_exeext
34747 if { (ac_try="$ac_link"
34748 case "(($ac_try" in
34749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750   *) ac_try_echo=$ac_try;;
34751 esac
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753   (eval "$ac_link") 2>conftest.er1
34754   ac_status=$?
34755   grep -v '^ *+' conftest.er1 >conftest.err
34756   rm -f conftest.er1
34757   cat conftest.err >&5
34758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759   (exit $ac_status); } &&
34760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34761   { (case "(($ac_try" in
34762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34763   *) ac_try_echo=$ac_try;;
34764 esac
34765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34766   (eval "$ac_try") 2>&5
34767   ac_status=$?
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); }; } &&
34770          { ac_try='test -s conftest$ac_exeext'
34771   { (case "(($ac_try" in
34772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34773   *) ac_try_echo=$ac_try;;
34774 esac
34775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34776   (eval "$ac_try") 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; }; then
34780   { echo "$as_me:$LINENO: result: yes" >&5
34781 echo "${ECHO_T}yes" >&6; }
34782
34783 cat >>confdefs.h <<\_ACEOF
34784 #define LLVM_MULTITHREADED 1
34785 _ACEOF
34786
34787 else
34788   echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791         { echo "$as_me:$LINENO: result: no" >&5
34792 echo "${ECHO_T}no" >&6; }
34793
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LLVM_MULTITHREADED 0
34796 _ACEOF
34797
34798   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34799 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34800 fi
34801
34802 rm -f core conftest.err conftest.$ac_objext \
34803       conftest$ac_exeext conftest.$ac_ext
34804
34805
34806
34807 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34808   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34809 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34810 if test "${llvm_cv_linux_mixed+set}" = set; then
34811   echo $ECHO_N "(cached) $ECHO_C" >&6
34812 else
34813    ac_ext=c
34814 ac_cpp='$CPP $CPPFLAGS'
34815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34818
34819   cat >conftest.$ac_ext <<_ACEOF
34820 /* confdefs.h.  */
34821 _ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h.  */
34825 #ifndef __x86_64__
34826        error: Not x86-64 even if uname says so!
34827       #endif
34828
34829 int
34830 main ()
34831 {
34832
34833   ;
34834   return 0;
34835 }
34836 _ACEOF
34837 rm -f conftest.$ac_objext
34838 if { (ac_try="$ac_compile"
34839 case "(($ac_try" in
34840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841   *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844   (eval "$ac_compile") 2>conftest.er1
34845   ac_status=$?
34846   grep -v '^ *+' conftest.er1 >conftest.err
34847   rm -f conftest.er1
34848   cat conftest.err >&5
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); } &&
34851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852   { (case "(($ac_try" in
34853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854   *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857   (eval "$ac_try") 2>&5
34858   ac_status=$?
34859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860   (exit $ac_status); }; } &&
34861          { ac_try='test -s conftest.$ac_objext'
34862   { (case "(($ac_try" in
34863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864   *) ac_try_echo=$ac_try;;
34865 esac
34866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867   (eval "$ac_try") 2>&5
34868   ac_status=$?
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); }; }; then
34871   llvm_cv_linux_mixed=no
34872 else
34873   echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34875
34876         llvm_cv_linux_mixed=yes
34877 fi
34878
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880   ac_ext=c
34881 ac_cpp='$CPP $CPPFLAGS'
34882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34885
34886
34887 fi
34888 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34889 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34890
34891   if test "$llvm_cv_linux_mixed" = "yes"; then
34892     llvm_cv_target_arch="x86"
34893     ARCH="x86"
34894   fi
34895 fi
34896
34897
34898 for ac_func in __dso_handle
34899 do
34900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34904   echo $ECHO_N "(cached) $ECHO_C" >&6
34905 else
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34914 #define $ac_func innocuous_$ac_func
34915
34916 /* System header to define __stub macros and hopefully few prototypes,
34917     which can conflict with char $ac_func (); below.
34918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34919     <limits.h> exists even on freestanding compilers.  */
34920
34921 #ifdef __STDC__
34922 # include <limits.h>
34923 #else
34924 # include <assert.h>
34925 #endif
34926
34927 #undef $ac_func
34928
34929 /* Override any GCC internal prototype to avoid an error.
34930    Use char because int might match the return type of a GCC
34931    builtin and then its argument prototype would still apply.  */
34932 #ifdef __cplusplus
34933 extern "C"
34934 #endif
34935 char $ac_func ();
34936 /* The GNU C library defines this for functions which it implements
34937     to always fail with ENOSYS.  Some functions are actually named
34938     something starting with __ and the normal name is an alias.  */
34939 #if defined __stub_$ac_func || defined __stub___$ac_func
34940 choke me
34941 #endif
34942
34943 int
34944 main ()
34945 {
34946 return $ac_func ();
34947   ;
34948   return 0;
34949 }
34950 _ACEOF
34951 rm -f conftest.$ac_objext conftest$ac_exeext
34952 if { (ac_try="$ac_link"
34953 case "(($ac_try" in
34954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955   *) ac_try_echo=$ac_try;;
34956 esac
34957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958   (eval "$ac_link") 2>conftest.er1
34959   ac_status=$?
34960   grep -v '^ *+' conftest.er1 >conftest.err
34961   rm -f conftest.er1
34962   cat conftest.err >&5
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); } &&
34965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34966   { (case "(($ac_try" in
34967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34968   *) ac_try_echo=$ac_try;;
34969 esac
34970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34971   (eval "$ac_try") 2>&5
34972   ac_status=$?
34973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974   (exit $ac_status); }; } &&
34975          { ac_try='test -s conftest$ac_exeext'
34976   { (case "(($ac_try" in
34977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34978   *) ac_try_echo=$ac_try;;
34979 esac
34980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34981   (eval "$ac_try") 2>&5
34982   ac_status=$?
34983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984   (exit $ac_status); }; }; then
34985   eval "$as_ac_var=yes"
34986 else
34987   echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.$ac_ext >&5
34989
34990         eval "$as_ac_var=no"
34991 fi
34992
34993 rm -f core conftest.err conftest.$ac_objext \
34994       conftest$ac_exeext conftest.$ac_ext
34995 fi
34996 ac_res=`eval echo '${'$as_ac_var'}'`
34997                { echo "$as_me:$LINENO: result: $ac_res" >&5
34998 echo "${ECHO_T}$ac_res" >&6; }
34999 if test `eval echo '${'$as_ac_var'}'` = yes; then
35000   cat >>confdefs.h <<_ACEOF
35001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35002 _ACEOF
35003
35004 fi
35005 done
35006
35007
35008 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35009 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35010 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35011   echo $ECHO_N "(cached) $ECHO_C" >&6
35012 else
35013   llvm_cv_llvmgcc_sanity="no"
35014 if test -x "$LLVMGCC" ; then
35015   cp /dev/null conftest.c
35016   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35017       grep 'target datalayout =' > /dev/null 2>&1
35018   if test $? -eq 0 ; then
35019     llvm_cv_llvmgcc_sanity="yes"
35020   fi
35021   rm conftest.c
35022 fi
35023 fi
35024 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35025 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35026
35027 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35028   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35029 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35030   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35031   LLVMCC1=$llvmcc1path
35032
35033   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35034   LLVMCC1PLUS=$llvmcc1pluspath
35035
35036   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35037   LLVMGCCDIR=$llvmgccdir
35038
35039   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35040   LLVMGCCLIBEXEC=$llvmgcclibexec
35041
35042   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35043   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35044   LLVMGCC_VERSION=$llvmgccversion
35045
35046   LLVMGCC_MAJVERS=$llvmgccmajvers
35047
35048   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35049   LLVMGCC_LANGS=$llvmgcclangs
35050
35051   { echo "$as_me:$LINENO: result: ok" >&5
35052 echo "${ECHO_T}ok" >&6; }
35053 fi
35054
35055 SHLIBEXT=$libltdl_cv_shlibext
35056
35057
35058 # Translate the various configuration directories and other basic
35059 # information into substitutions that will end up in Makefile.config.in
35060 # that these configured values can be used by the makefiles
35061 if test "${prefix}" = "NONE" ; then
35062   prefix="/usr/local"
35063 fi
35064 eval LLVM_PREFIX="${prefix}";
35065 eval LLVM_BINDIR="${prefix}/bin";
35066 eval LLVM_LIBDIR="${prefix}/lib";
35067 eval LLVM_DATADIR="${prefix}/share/llvm";
35068 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35069 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35070 eval LLVM_INCLUDEDIR="${prefix}/include";
35071 eval LLVM_INFODIR="${prefix}/info";
35072 eval LLVM_MANDIR="${prefix}/man";
35073 LLVM_CONFIGTIME=`date`
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085 # Place the various directores into the config.h file as #defines so that we
35086 # can know about the installation paths within LLVM.
35087
35088 cat >>confdefs.h <<_ACEOF
35089 #define LLVM_PREFIX "$LLVM_PREFIX"
35090 _ACEOF
35091
35092
35093 cat >>confdefs.h <<_ACEOF
35094 #define LLVM_BINDIR "$LLVM_BINDIR"
35095 _ACEOF
35096
35097
35098 cat >>confdefs.h <<_ACEOF
35099 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35100 _ACEOF
35101
35102
35103 cat >>confdefs.h <<_ACEOF
35104 #define LLVM_DATADIR "$LLVM_DATADIR"
35105 _ACEOF
35106
35107
35108 cat >>confdefs.h <<_ACEOF
35109 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35110 _ACEOF
35111
35112
35113 cat >>confdefs.h <<_ACEOF
35114 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35115 _ACEOF
35116
35117
35118 cat >>confdefs.h <<_ACEOF
35119 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35120 _ACEOF
35121
35122
35123 cat >>confdefs.h <<_ACEOF
35124 #define LLVM_INFODIR "$LLVM_INFODIR"
35125 _ACEOF
35126
35127
35128 cat >>confdefs.h <<_ACEOF
35129 #define LLVM_MANDIR "$LLVM_MANDIR"
35130 _ACEOF
35131
35132
35133 cat >>confdefs.h <<_ACEOF
35134 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35135 _ACEOF
35136
35137
35138 cat >>confdefs.h <<_ACEOF
35139 #define LLVM_HOSTTRIPLE "$host"
35140 _ACEOF
35141
35142
35143 # Determine which bindings to build.
35144 if test "$BINDINGS_TO_BUILD" = auto ; then
35145   BINDINGS_TO_BUILD=""
35146   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35147     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35148   fi
35149 fi
35150 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35151
35152
35153 # This isn't really configurey, but it avoids having to repeat the list in
35154 # other files.
35155 ALL_BINDINGS=ocaml
35156
35157
35158 # Do any work necessary to ensure that bindings have what they need.
35159 binding_prereqs_failed=0
35160 for a_binding in $BINDINGS_TO_BUILD ; do
35161   case "$a_binding" in
35162   ocaml)
35163     if test "x$OCAMLC" = x ; then
35164       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35165 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35166       binding_prereqs_failed=1
35167     fi
35168     if test "x$OCAMLDEP" = x ; then
35169       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35170 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35171       binding_prereqs_failed=1
35172     fi
35173     if test "x$OCAMLOPT" = x ; then
35174       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35175 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35176           fi
35177     if test "x$with_ocaml_libdir" != xauto ; then
35178       OCAML_LIBDIR=$with_ocaml_libdir
35179
35180     else
35181       ocaml_stdlib="`"$OCAMLC" -where`"
35182       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35183       then
35184         # ocaml stdlib is beneath our prefix; use stdlib
35185         OCAML_LIBDIR=$ocaml_stdlib
35186
35187       else
35188         # ocaml stdlib is outside our prefix; use libdir/ocaml
35189         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35190
35191       fi
35192     fi
35193     ;;
35194   esac
35195 done
35196 if test "$binding_prereqs_failed" = 1 ; then
35197   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35198 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35199    { (exit 1); exit 1; }; }
35200 fi
35201
35202 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35203 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35204 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35205   echo $ECHO_N "(cached) $ECHO_C" >&6
35206 else
35207    ac_ext=cpp
35208 ac_cpp='$CXXCPP $CPPFLAGS'
35209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35212
35213   oldcxxflags="$CXXFLAGS"
35214   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35215   cat >conftest.$ac_ext <<_ACEOF
35216 /* confdefs.h.  */
35217 _ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h.  */
35221
35222 int
35223 main ()
35224 {
35225
35226   ;
35227   return 0;
35228 }
35229 _ACEOF
35230 rm -f conftest.$ac_objext
35231 if { (ac_try="$ac_compile"
35232 case "(($ac_try" in
35233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234   *) ac_try_echo=$ac_try;;
35235 esac
35236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237   (eval "$ac_compile") 2>conftest.er1
35238   ac_status=$?
35239   grep -v '^ *+' conftest.er1 >conftest.err
35240   rm -f conftest.er1
35241   cat conftest.err >&5
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); } &&
35244          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35245   { (case "(($ac_try" in
35246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247   *) ac_try_echo=$ac_try;;
35248 esac
35249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250   (eval "$ac_try") 2>&5
35251   ac_status=$?
35252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253   (exit $ac_status); }; } &&
35254          { ac_try='test -s conftest.$ac_objext'
35255   { (case "(($ac_try" in
35256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257   *) ac_try_echo=$ac_try;;
35258 esac
35259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260   (eval "$ac_try") 2>&5
35261   ac_status=$?
35262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263   (exit $ac_status); }; }; then
35264   llvm_cv_cxx_visibility_inlines_hidden=yes
35265 else
35266   echo "$as_me: failed program was:" >&5
35267 sed 's/^/| /' conftest.$ac_ext >&5
35268
35269         llvm_cv_cxx_visibility_inlines_hidden=no
35270 fi
35271
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273   CXXFLAGS="$oldcxxflags"
35274   ac_ext=c
35275 ac_cpp='$CPP $CPPFLAGS'
35276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35279
35280
35281 fi
35282 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35283 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35284 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35285   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35286
35287 else
35288   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35289
35290 fi
35291
35292
35293 if test "$llvm_cv_link_use_r" = "yes" ; then
35294   RPATH="-Wl,-R"
35295 else
35296   RPATH="-Wl,-rpath"
35297 fi
35298
35299
35300 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35301   RDYNAMIC="-Wl,-export-dynamic"
35302 else
35303   RDYNAMIC=""
35304 fi
35305
35306
35307
35308 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35309
35310 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35311
35312 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35313
35314 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35315
35316 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35317
35318
35319 ac_config_files="$ac_config_files Makefile.config"
35320
35321
35322 ac_config_files="$ac_config_files llvm.spec"
35323
35324
35325 ac_config_files="$ac_config_files docs/doxygen.cfg"
35326
35327
35328 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35329
35330
35331 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35332
35333
35334 ac_config_commands="$ac_config_commands setup"
35335
35336 ac_config_commands="$ac_config_commands Makefile"
35337
35338
35339 ac_config_commands="$ac_config_commands Makefile.common"
35340
35341
35342 ac_config_commands="$ac_config_commands examples/Makefile"
35343
35344
35345 ac_config_commands="$ac_config_commands lib/Makefile"
35346
35347
35348 ac_config_commands="$ac_config_commands runtime/Makefile"
35349
35350
35351 ac_config_commands="$ac_config_commands test/Makefile"
35352
35353
35354 ac_config_commands="$ac_config_commands test/Makefile.tests"
35355
35356
35357 ac_config_commands="$ac_config_commands unittests/Makefile"
35358
35359
35360 ac_config_commands="$ac_config_commands tools/Makefile"
35361
35362
35363 ac_config_commands="$ac_config_commands utils/Makefile"
35364
35365
35366 ac_config_commands="$ac_config_commands projects/Makefile"
35367
35368
35369 ac_config_commands="$ac_config_commands bindings/Makefile"
35370
35371
35372 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35373
35374
35375
35376 cat >confcache <<\_ACEOF
35377 # This file is a shell script that caches the results of configure
35378 # tests run on this system so they can be shared between configure
35379 # scripts and configure runs, see configure's option --config-cache.
35380 # It is not useful on other systems.  If it contains results you don't
35381 # want to keep, you may remove or edit it.
35382 #
35383 # config.status only pays attention to the cache file if you give it
35384 # the --recheck option to rerun configure.
35385 #
35386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35388 # following values.
35389
35390 _ACEOF
35391
35392 # The following way of writing the cache mishandles newlines in values,
35393 # but we know of no workaround that is simple, portable, and efficient.
35394 # So, we kill variables containing newlines.
35395 # Ultrix sh set writes to stderr and can't be redirected directly,
35396 # and sets the high bit in the cache file unless we assign to the vars.
35397 (
35398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35399     eval ac_val=\$$ac_var
35400     case $ac_val in #(
35401     *${as_nl}*)
35402       case $ac_var in #(
35403       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35405       esac
35406       case $ac_var in #(
35407       _ | IFS | as_nl) ;; #(
35408       *) $as_unset $ac_var ;;
35409       esac ;;
35410     esac
35411   done
35412
35413   (set) 2>&1 |
35414     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35415     *${as_nl}ac_space=\ *)
35416       # `set' does not quote correctly, so add quotes (double-quote
35417       # substitution turns \\\\ into \\, and sed turns \\ into \).
35418       sed -n \
35419         "s/'/'\\\\''/g;
35420           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35421       ;; #(
35422     *)
35423       # `set' quotes correctly as required by POSIX, so do not add quotes.
35424       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35425       ;;
35426     esac |
35427     sort
35428 ) |
35429   sed '
35430      /^ac_cv_env_/b end
35431      t clear
35432      :clear
35433      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35434      t end
35435      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35436      :end' >>confcache
35437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35438   if test -w "$cache_file"; then
35439     test "x$cache_file" != "x/dev/null" &&
35440       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35441 echo "$as_me: updating cache $cache_file" >&6;}
35442     cat confcache >$cache_file
35443   else
35444     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35446   fi
35447 fi
35448 rm -f confcache
35449
35450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35451 # Let make expand exec_prefix.
35452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35453
35454 DEFS=-DHAVE_CONFIG_H
35455
35456 ac_libobjs=
35457 ac_ltlibobjs=
35458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35459   # 1. Remove the extension, and $U if already installed.
35460   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35461   ac_i=`echo "$ac_i" | sed "$ac_script"`
35462   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35463   #    will be set to the directory where LIBOBJS objects are built.
35464   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35465   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35466 done
35467 LIBOBJS=$ac_libobjs
35468
35469 LTLIBOBJS=$ac_ltlibobjs
35470
35471
35472 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35473   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35474 Usually this means the macro was only invoked conditionally." >&5
35475 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35476 Usually this means the macro was only invoked conditionally." >&2;}
35477    { (exit 1); exit 1; }; }
35478 fi
35479 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35480   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35481 Usually this means the macro was only invoked conditionally." >&5
35482 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35483 Usually this means the macro was only invoked conditionally." >&2;}
35484    { (exit 1); exit 1; }; }
35485 fi
35486
35487 : ${CONFIG_STATUS=./config.status}
35488 ac_clean_files_save=$ac_clean_files
35489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35492 cat >$CONFIG_STATUS <<_ACEOF
35493 #! $SHELL
35494 # Generated by $as_me.
35495 # Run this file to recreate the current configuration.
35496 # Compiler output produced by configure, useful for debugging
35497 # configure, is in config.log if it exists.
35498
35499 debug=false
35500 ac_cs_recheck=false
35501 ac_cs_silent=false
35502 SHELL=\${CONFIG_SHELL-$SHELL}
35503 _ACEOF
35504
35505 cat >>$CONFIG_STATUS <<\_ACEOF
35506 ## --------------------- ##
35507 ## M4sh Initialization.  ##
35508 ## --------------------- ##
35509
35510 # Be Bourne compatible
35511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35512   emulate sh
35513   NULLCMD=:
35514   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35515   # is contrary to our usage.  Disable this feature.
35516   alias -g '${1+"$@"}'='"$@"'
35517   setopt NO_GLOB_SUBST
35518 else
35519   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35520 fi
35521 BIN_SH=xpg4; export BIN_SH # for Tru64
35522 DUALCASE=1; export DUALCASE # for MKS sh
35523
35524
35525 # PATH needs CR
35526 # Avoid depending upon Character Ranges.
35527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35530 as_cr_digits='0123456789'
35531 as_cr_alnum=$as_cr_Letters$as_cr_digits
35532
35533 # The user is always right.
35534 if test "${PATH_SEPARATOR+set}" != set; then
35535   echo "#! /bin/sh" >conf$$.sh
35536   echo  "exit 0"   >>conf$$.sh
35537   chmod +x conf$$.sh
35538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35539     PATH_SEPARATOR=';'
35540   else
35541     PATH_SEPARATOR=:
35542   fi
35543   rm -f conf$$.sh
35544 fi
35545
35546 # Support unset when possible.
35547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35548   as_unset=unset
35549 else
35550   as_unset=false
35551 fi
35552
35553
35554 # IFS
35555 # We need space, tab and new line, in precisely that order.  Quoting is
35556 # there to prevent editors from complaining about space-tab.
35557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35558 # splitting by setting IFS to empty value.)
35559 as_nl='
35560 '
35561 IFS=" ""        $as_nl"
35562
35563 # Find who we are.  Look in the path if we contain no directory separator.
35564 case $0 in
35565   *[\\/]* ) as_myself=$0 ;;
35566   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35567 for as_dir in $PATH
35568 do
35569   IFS=$as_save_IFS
35570   test -z "$as_dir" && as_dir=.
35571   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35572 done
35573 IFS=$as_save_IFS
35574
35575      ;;
35576 esac
35577 # We did not find ourselves, most probably we were run as `sh COMMAND'
35578 # in which case we are not to be found in the path.
35579 if test "x$as_myself" = x; then
35580   as_myself=$0
35581 fi
35582 if test ! -f "$as_myself"; then
35583   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35584   { (exit 1); exit 1; }
35585 fi
35586
35587 # Work around bugs in pre-3.0 UWIN ksh.
35588 for as_var in ENV MAIL MAILPATH
35589 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35590 done
35591 PS1='$ '
35592 PS2='> '
35593 PS4='+ '
35594
35595 # NLS nuisances.
35596 for as_var in \
35597   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35598   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35599   LC_TELEPHONE LC_TIME
35600 do
35601   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35602     eval $as_var=C; export $as_var
35603   else
35604     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35605   fi
35606 done
35607
35608 # Required to use basename.
35609 if expr a : '\(a\)' >/dev/null 2>&1 &&
35610    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35611   as_expr=expr
35612 else
35613   as_expr=false
35614 fi
35615
35616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35617   as_basename=basename
35618 else
35619   as_basename=false
35620 fi
35621
35622
35623 # Name of the executable.
35624 as_me=`$as_basename -- "$0" ||
35625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35626          X"$0" : 'X\(//\)$' \| \
35627          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35628 echo X/"$0" |
35629     sed '/^.*\/\([^/][^/]*\)\/*$/{
35630             s//\1/
35631             q
35632           }
35633           /^X\/\(\/\/\)$/{
35634             s//\1/
35635             q
35636           }
35637           /^X\/\(\/\).*/{
35638             s//\1/
35639             q
35640           }
35641           s/.*/./; q'`
35642
35643 # CDPATH.
35644 $as_unset CDPATH
35645
35646
35647
35648   as_lineno_1=$LINENO
35649   as_lineno_2=$LINENO
35650   test "x$as_lineno_1" != "x$as_lineno_2" &&
35651   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35652
35653   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35654   # uniformly replaced by the line number.  The first 'sed' inserts a
35655   # line-number line after each line using $LINENO; the second 'sed'
35656   # does the real work.  The second script uses 'N' to pair each
35657   # line-number line with the line containing $LINENO, and appends
35658   # trailing '-' during substitution so that $LINENO is not a special
35659   # case at line end.
35660   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35661   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35662   # E. McMahon (1931-1989) for sed's syntax.  :-)
35663   sed -n '
35664     p
35665     /[$]LINENO/=
35666   ' <$as_myself |
35667     sed '
35668       s/[$]LINENO.*/&-/
35669       t lineno
35670       b
35671       :lineno
35672       N
35673       :loop
35674       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35675       t loop
35676       s/-\n.*//
35677     ' >$as_me.lineno &&
35678   chmod +x "$as_me.lineno" ||
35679     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35680    { (exit 1); exit 1; }; }
35681
35682   # Don't try to exec as it changes $[0], causing all sort of problems
35683   # (the dirname of $[0] is not the place where we might find the
35684   # original and so on.  Autoconf is especially sensitive to this).
35685   . "./$as_me.lineno"
35686   # Exit status is that of the last command.
35687   exit
35688 }
35689
35690
35691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35692   as_dirname=dirname
35693 else
35694   as_dirname=false
35695 fi
35696
35697 ECHO_C= ECHO_N= ECHO_T=
35698 case `echo -n x` in
35699 -n*)
35700   case `echo 'x\c'` in
35701   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35702   *)   ECHO_C='\c';;
35703   esac;;
35704 *)
35705   ECHO_N='-n';;
35706 esac
35707
35708 if expr a : '\(a\)' >/dev/null 2>&1 &&
35709    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35710   as_expr=expr
35711 else
35712   as_expr=false
35713 fi
35714
35715 rm -f conf$$ conf$$.exe conf$$.file
35716 if test -d conf$$.dir; then
35717   rm -f conf$$.dir/conf$$.file
35718 else
35719   rm -f conf$$.dir
35720   mkdir conf$$.dir
35721 fi
35722 echo >conf$$.file
35723 if ln -s conf$$.file conf$$ 2>/dev/null; then
35724   as_ln_s='ln -s'
35725   # ... but there are two gotchas:
35726   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35727   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35728   # In both cases, we have to default to `cp -p'.
35729   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35730     as_ln_s='cp -p'
35731 elif ln conf$$.file conf$$ 2>/dev/null; then
35732   as_ln_s=ln
35733 else
35734   as_ln_s='cp -p'
35735 fi
35736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35737 rmdir conf$$.dir 2>/dev/null
35738
35739 if mkdir -p . 2>/dev/null; then
35740   as_mkdir_p=:
35741 else
35742   test -d ./-p && rmdir ./-p
35743   as_mkdir_p=false
35744 fi
35745
35746 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35747 # systems may use methods other than mode bits to determine executability.
35748 cat >conf$$.file <<_ASEOF
35749 #! /bin/sh
35750 exit 0
35751 _ASEOF
35752 chmod +x conf$$.file
35753 if test -x conf$$.file >/dev/null 2>&1; then
35754   as_executable_p="test -x"
35755 else
35756   as_executable_p=:
35757 fi
35758 rm -f conf$$.file
35759
35760 # Sed expression to map a string onto a valid CPP name.
35761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35762
35763 # Sed expression to map a string onto a valid variable name.
35764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35765
35766
35767 exec 6>&1
35768
35769 # Save the log message, to keep $[0] and so on meaningful, and to
35770 # report actual input values of CONFIG_FILES etc. instead of their
35771 # values after options handling.
35772 ac_log="
35773 This file was extended by llvm $as_me 2.7svn, which was
35774 generated by GNU Autoconf 2.60.  Invocation command line was
35775
35776   CONFIG_FILES    = $CONFIG_FILES
35777   CONFIG_HEADERS  = $CONFIG_HEADERS
35778   CONFIG_LINKS    = $CONFIG_LINKS
35779   CONFIG_COMMANDS = $CONFIG_COMMANDS
35780   $ $0 $@
35781
35782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35783 "
35784
35785 _ACEOF
35786
35787 cat >>$CONFIG_STATUS <<_ACEOF
35788 # Files that config.status was made for.
35789 config_files="$ac_config_files"
35790 config_headers="$ac_config_headers"
35791 config_commands="$ac_config_commands"
35792
35793 _ACEOF
35794
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35796 ac_cs_usage="\
35797 \`$as_me' instantiates files from templates according to the
35798 current configuration.
35799
35800 Usage: $0 [OPTIONS] [FILE]...
35801
35802   -h, --help       print this help, then exit
35803   -V, --version    print version number, then exit
35804   -q, --quiet      do not print progress messages
35805   -d, --debug      don't remove temporary files
35806       --recheck    update $as_me by reconfiguring in the same conditions
35807   --file=FILE[:TEMPLATE]
35808                    instantiate the configuration file FILE
35809   --header=FILE[:TEMPLATE]
35810                    instantiate the configuration header FILE
35811
35812 Configuration files:
35813 $config_files
35814
35815 Configuration headers:
35816 $config_headers
35817
35818 Configuration commands:
35819 $config_commands
35820
35821 Report bugs to <bug-autoconf@gnu.org>."
35822
35823 _ACEOF
35824 cat >>$CONFIG_STATUS <<_ACEOF
35825 ac_cs_version="\\
35826 llvm config.status 2.7svn
35827 configured by $0, generated by GNU Autoconf 2.60,
35828   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35829
35830 Copyright (C) 2006 Free Software Foundation, Inc.
35831 This config.status script is free software; the Free Software Foundation
35832 gives unlimited permission to copy, distribute and modify it."
35833
35834 ac_pwd='$ac_pwd'
35835 srcdir='$srcdir'
35836 INSTALL='$INSTALL'
35837 _ACEOF
35838
35839 cat >>$CONFIG_STATUS <<\_ACEOF
35840 # If no file are specified by the user, then we need to provide default
35841 # value.  By we need to know if files were specified by the user.
35842 ac_need_defaults=:
35843 while test $# != 0
35844 do
35845   case $1 in
35846   --*=*)
35847     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35848     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35849     ac_shift=:
35850     ;;
35851   *)
35852     ac_option=$1
35853     ac_optarg=$2
35854     ac_shift=shift
35855     ;;
35856   esac
35857
35858   case $ac_option in
35859   # Handling of the options.
35860   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35861     ac_cs_recheck=: ;;
35862   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35863     echo "$ac_cs_version"; exit ;;
35864   --debug | --debu | --deb | --de | --d | -d )
35865     debug=: ;;
35866   --file | --fil | --fi | --f )
35867     $ac_shift
35868     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35869     ac_need_defaults=false;;
35870   --header | --heade | --head | --hea )
35871     $ac_shift
35872     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35873     ac_need_defaults=false;;
35874   --he | --h)
35875     # Conflict between --help and --header
35876     { echo "$as_me: error: ambiguous option: $1
35877 Try \`$0 --help' for more information." >&2
35878    { (exit 1); exit 1; }; };;
35879   --help | --hel | -h )
35880     echo "$ac_cs_usage"; exit ;;
35881   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35882   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35883     ac_cs_silent=: ;;
35884
35885   # This is an error.
35886   -*) { echo "$as_me: error: unrecognized option: $1
35887 Try \`$0 --help' for more information." >&2
35888    { (exit 1); exit 1; }; } ;;
35889
35890   *) ac_config_targets="$ac_config_targets $1"
35891      ac_need_defaults=false ;;
35892
35893   esac
35894   shift
35895 done
35896
35897 ac_configure_extra_args=
35898
35899 if $ac_cs_silent; then
35900   exec 6>/dev/null
35901   ac_configure_extra_args="$ac_configure_extra_args --silent"
35902 fi
35903
35904 _ACEOF
35905 cat >>$CONFIG_STATUS <<_ACEOF
35906 if \$ac_cs_recheck; then
35907   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35908   CONFIG_SHELL=$SHELL
35909   export CONFIG_SHELL
35910   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35911 fi
35912
35913 _ACEOF
35914 cat >>$CONFIG_STATUS <<\_ACEOF
35915 exec 5>>config.log
35916 {
35917   echo
35918   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35919 ## Running $as_me. ##
35920 _ASBOX
35921   echo "$ac_log"
35922 } >&5
35923
35924 _ACEOF
35925 cat >>$CONFIG_STATUS <<_ACEOF
35926 #
35927 # INIT-COMMANDS
35928 #
35929 llvm_src="${srcdir}"
35930
35931 _ACEOF
35932
35933 cat >>$CONFIG_STATUS <<\_ACEOF
35934
35935 # Handling of arguments.
35936 for ac_config_target in $ac_config_targets
35937 do
35938   case $ac_config_target in
35939     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35940     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35941     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35942     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35943     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
35944     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35945     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35946     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35947     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35948     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35949     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35950     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35951     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35952     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35953     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35954     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35955     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35956     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35957     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35958     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35959     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35960     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35961     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35962     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35963
35964   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35965 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35966    { (exit 1); exit 1; }; };;
35967   esac
35968 done
35969
35970
35971 # If the user did not use the arguments to specify the items to instantiate,
35972 # then the envvar interface is used.  Set only those that are not.
35973 # We use the long form for the default assignment because of an extremely
35974 # bizarre bug on SunOS 4.1.3.
35975 if $ac_need_defaults; then
35976   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35977   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35978   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35979 fi
35980
35981 # Have a temporary directory for convenience.  Make it in the build tree
35982 # simply because there is no reason against having it here, and in addition,
35983 # creating and moving files from /tmp can sometimes cause problems.
35984 # Hook for its removal unless debugging.
35985 # Note that there is a small window in which the directory will not be cleaned:
35986 # after its creation but before its name has been assigned to `$tmp'.
35987 $debug ||
35988 {
35989   tmp=
35990   trap 'exit_status=$?
35991   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35992 ' 0
35993   trap '{ (exit 1); exit 1; }' 1 2 13 15
35994 }
35995 # Create a (secure) tmp directory for tmp files.
35996
35997 {
35998   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35999   test -n "$tmp" && test -d "$tmp"
36000 }  ||
36001 {
36002   tmp=./conf$$-$RANDOM
36003   (umask 077 && mkdir "$tmp")
36004 } ||
36005 {
36006    echo "$me: cannot create a temporary directory in ." >&2
36007    { (exit 1); exit 1; }
36008 }
36009
36010 #
36011 # Set up the sed scripts for CONFIG_FILES section.
36012 #
36013
36014 # No need to generate the scripts if there are no CONFIG_FILES.
36015 # This happens for instance when ./config.status config.h
36016 if test -n "$CONFIG_FILES"; then
36017
36018 _ACEOF
36019
36020
36021
36022 ac_delim='%!_!# '
36023 for ac_last_try in false false false false false :; do
36024   cat >conf$$subs.sed <<_ACEOF
36025 SHELL!$SHELL$ac_delim
36026 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36027 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36028 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36029 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36030 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36031 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36032 exec_prefix!$exec_prefix$ac_delim
36033 prefix!$prefix$ac_delim
36034 program_transform_name!$program_transform_name$ac_delim
36035 bindir!$bindir$ac_delim
36036 sbindir!$sbindir$ac_delim
36037 libexecdir!$libexecdir$ac_delim
36038 datarootdir!$datarootdir$ac_delim
36039 datadir!$datadir$ac_delim
36040 sysconfdir!$sysconfdir$ac_delim
36041 sharedstatedir!$sharedstatedir$ac_delim
36042 localstatedir!$localstatedir$ac_delim
36043 includedir!$includedir$ac_delim
36044 oldincludedir!$oldincludedir$ac_delim
36045 docdir!$docdir$ac_delim
36046 infodir!$infodir$ac_delim
36047 htmldir!$htmldir$ac_delim
36048 dvidir!$dvidir$ac_delim
36049 pdfdir!$pdfdir$ac_delim
36050 psdir!$psdir$ac_delim
36051 libdir!$libdir$ac_delim
36052 localedir!$localedir$ac_delim
36053 mandir!$mandir$ac_delim
36054 DEFS!$DEFS$ac_delim
36055 ECHO_C!$ECHO_C$ac_delim
36056 ECHO_N!$ECHO_N$ac_delim
36057 ECHO_T!$ECHO_T$ac_delim
36058 LIBS!$LIBS$ac_delim
36059 build_alias!$build_alias$ac_delim
36060 host_alias!$host_alias$ac_delim
36061 target_alias!$target_alias$ac_delim
36062 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36063 subdirs!$subdirs$ac_delim
36064 build!$build$ac_delim
36065 build_cpu!$build_cpu$ac_delim
36066 build_vendor!$build_vendor$ac_delim
36067 build_os!$build_os$ac_delim
36068 host!$host$ac_delim
36069 host_cpu!$host_cpu$ac_delim
36070 host_vendor!$host_vendor$ac_delim
36071 host_os!$host_os$ac_delim
36072 target!$target$ac_delim
36073 target_cpu!$target_cpu$ac_delim
36074 target_vendor!$target_vendor$ac_delim
36075 target_os!$target_os$ac_delim
36076 OS!$OS$ac_delim
36077 HOST_OS!$HOST_OS$ac_delim
36078 TARGET_OS!$TARGET_OS$ac_delim
36079 LINKALL!$LINKALL$ac_delim
36080 NOLINKALL!$NOLINKALL$ac_delim
36081 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36082 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36083 ARCH!$ARCH$ac_delim
36084 ENDIAN!$ENDIAN$ac_delim
36085 CC!$CC$ac_delim
36086 CFLAGS!$CFLAGS$ac_delim
36087 LDFLAGS!$LDFLAGS$ac_delim
36088 CPPFLAGS!$CPPFLAGS$ac_delim
36089 ac_ct_CC!$ac_ct_CC$ac_delim
36090 EXEEXT!$EXEEXT$ac_delim
36091 OBJEXT!$OBJEXT$ac_delim
36092 CPP!$CPP$ac_delim
36093 GREP!$GREP$ac_delim
36094 EGREP!$EGREP$ac_delim
36095 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36096 BUILD_CC!$BUILD_CC$ac_delim
36097 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36098 BUILD_CXX!$BUILD_CXX$ac_delim
36099 CVSBUILD!$CVSBUILD$ac_delim
36100 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36101 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36102 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36103 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36104 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36105 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36106 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36107 JIT!$JIT$ac_delim
36108 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36109 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36110 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36111 ENABLE_PIC!$ENABLE_PIC$ac_delim
36112 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36113 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36114 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36115 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36116 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36117 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36118 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36119 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36120 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36121 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36122 _ACEOF
36123
36124   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36125     break
36126   elif $ac_last_try; then
36127     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36128 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36129    { (exit 1); exit 1; }; }
36130   else
36131     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36132   fi
36133 done
36134
36135 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36136 if test -n "$ac_eof"; then
36137   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36138   ac_eof=`expr $ac_eof + 1`
36139 fi
36140
36141 cat >>$CONFIG_STATUS <<_ACEOF
36142 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36144 _ACEOF
36145 sed '
36146 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36147 s/^/s,@/; s/!/@,|#_!!_#|/
36148 :n
36149 t n
36150 s/'"$ac_delim"'$/,g/; t
36151 s/$/\\/; p
36152 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36153 ' >>$CONFIG_STATUS <conf$$subs.sed
36154 rm -f conf$$subs.sed
36155 cat >>$CONFIG_STATUS <<_ACEOF
36156 CEOF$ac_eof
36157 _ACEOF
36158
36159
36160 ac_delim='%!_!# '
36161 for ac_last_try in false false false false false :; do
36162   cat >conf$$subs.sed <<_ACEOF
36163 CXX!$CXX$ac_delim
36164 CXXFLAGS!$CXXFLAGS$ac_delim
36165 ac_ct_CXX!$ac_ct_CXX$ac_delim
36166 NM!$NM$ac_delim
36167 ifGNUmake!$ifGNUmake$ac_delim
36168 LN_S!$LN_S$ac_delim
36169 CMP!$CMP$ac_delim
36170 CP!$CP$ac_delim
36171 DATE!$DATE$ac_delim
36172 FIND!$FIND$ac_delim
36173 MKDIR!$MKDIR$ac_delim
36174 MV!$MV$ac_delim
36175 RANLIB!$RANLIB$ac_delim
36176 RM!$RM$ac_delim
36177 SED!$SED$ac_delim
36178 TAR!$TAR$ac_delim
36179 BINPWD!$BINPWD$ac_delim
36180 GRAPHVIZ!$GRAPHVIZ$ac_delim
36181 DOT!$DOT$ac_delim
36182 FDP!$FDP$ac_delim
36183 NEATO!$NEATO$ac_delim
36184 TWOPI!$TWOPI$ac_delim
36185 CIRCO!$CIRCO$ac_delim
36186 GV!$GV$ac_delim
36187 DOTTY!$DOTTY$ac_delim
36188 PERL!$PERL$ac_delim
36189 HAVE_PERL!$HAVE_PERL$ac_delim
36190 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36191 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36192 INSTALL_DATA!$INSTALL_DATA$ac_delim
36193 BZIP2!$BZIP2$ac_delim
36194 DOXYGEN!$DOXYGEN$ac_delim
36195 GROFF!$GROFF$ac_delim
36196 GZIP!$GZIP$ac_delim
36197 POD2HTML!$POD2HTML$ac_delim
36198 POD2MAN!$POD2MAN$ac_delim
36199 RUNTEST!$RUNTEST$ac_delim
36200 TCLSH!$TCLSH$ac_delim
36201 ZIP!$ZIP$ac_delim
36202 OCAMLC!$OCAMLC$ac_delim
36203 OCAMLOPT!$OCAMLOPT$ac_delim
36204 OCAMLDEP!$OCAMLDEP$ac_delim
36205 OCAMLDOC!$OCAMLDOC$ac_delim
36206 GAS!$GAS$ac_delim
36207 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36208 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36209 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36210 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36211 LIBADD_DL!$LIBADD_DL$ac_delim
36212 ECHO!$ECHO$ac_delim
36213 AR!$AR$ac_delim
36214 STRIP!$STRIP$ac_delim
36215 CXXCPP!$CXXCPP$ac_delim
36216 F77!$F77$ac_delim
36217 FFLAGS!$FFLAGS$ac_delim
36218 ac_ct_F77!$ac_ct_F77$ac_delim
36219 LIBTOOL!$LIBTOOL$ac_delim
36220 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36221 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36222 LLVMGCC!$LLVMGCC$ac_delim
36223 LLVMGXX!$LLVMGXX$ac_delim
36224 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36225 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36226 USE_UDIS86!$USE_UDIS86$ac_delim
36227 USE_OPROFILE!$USE_OPROFILE$ac_delim
36228 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36229 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36230 ALLOCA!$ALLOCA$ac_delim
36231 MMAP_FILE!$MMAP_FILE$ac_delim
36232 LLVMCC1!$LLVMCC1$ac_delim
36233 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36234 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36235 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36236 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36237 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36238 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36239 SHLIBEXT!$SHLIBEXT$ac_delim
36240 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36241 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36242 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36243 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36244 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36245 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36246 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36247 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36248 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36249 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36250 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36251 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36252 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36253 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36254 RPATH!$RPATH$ac_delim
36255 RDYNAMIC!$RDYNAMIC$ac_delim
36256 LIBOBJS!$LIBOBJS$ac_delim
36257 LTLIBOBJS!$LTLIBOBJS$ac_delim
36258 _ACEOF
36259
36260   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
36261     break
36262   elif $ac_last_try; then
36263     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36265    { (exit 1); exit 1; }; }
36266   else
36267     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36268   fi
36269 done
36270
36271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36272 if test -n "$ac_eof"; then
36273   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36274   ac_eof=`expr $ac_eof + 1`
36275 fi
36276
36277 cat >>$CONFIG_STATUS <<_ACEOF
36278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36280 _ACEOF
36281 sed '
36282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36283 s/^/s,@/; s/!/@,|#_!!_#|/
36284 :n
36285 t n
36286 s/'"$ac_delim"'$/,g/; t
36287 s/$/\\/; p
36288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36289 ' >>$CONFIG_STATUS <conf$$subs.sed
36290 rm -f conf$$subs.sed
36291 cat >>$CONFIG_STATUS <<_ACEOF
36292 :end
36293 s/|#_!!_#|//g
36294 CEOF$ac_eof
36295 _ACEOF
36296
36297
36298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36300 # trailing colons and then remove the whole line if VPATH becomes empty
36301 # (actually we leave an empty line to preserve line numbers).
36302 if test "x$srcdir" = x.; then
36303   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36304 s/:*\$(srcdir):*/:/
36305 s/:*\${srcdir}:*/:/
36306 s/:*@srcdir@:*/:/
36307 s/^\([^=]*=[     ]*\):*/\1/
36308 s/:*$//
36309 s/^[^=]*=[       ]*$//
36310 }'
36311 fi
36312
36313 cat >>$CONFIG_STATUS <<\_ACEOF
36314 fi # test -n "$CONFIG_FILES"
36315
36316
36317 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36318 do
36319   case $ac_tag in
36320   :[FHLC]) ac_mode=$ac_tag; continue;;
36321   esac
36322   case $ac_mode$ac_tag in
36323   :[FHL]*:*);;
36324   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36325 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36326    { (exit 1); exit 1; }; };;
36327   :[FH]-) ac_tag=-:-;;
36328   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36329   esac
36330   ac_save_IFS=$IFS
36331   IFS=:
36332   set x $ac_tag
36333   IFS=$ac_save_IFS
36334   shift
36335   ac_file=$1
36336   shift
36337
36338   case $ac_mode in
36339   :L) ac_source=$1;;
36340   :[FH])
36341     ac_file_inputs=
36342     for ac_f
36343     do
36344       case $ac_f in
36345       -) ac_f="$tmp/stdin";;
36346       *) # Look for the file first in the build tree, then in the source tree
36347          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36348          # because $ac_f cannot contain `:'.
36349          test -f "$ac_f" ||
36350            case $ac_f in
36351            [\\/$]*) false;;
36352            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36353            esac ||
36354            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36355 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36356    { (exit 1); exit 1; }; };;
36357       esac
36358       ac_file_inputs="$ac_file_inputs $ac_f"
36359     done
36360
36361     # Let's still pretend it is `configure' which instantiates (i.e., don't
36362     # use $as_me), people would be surprised to read:
36363     #    /* config.h.  Generated by config.status.  */
36364     configure_input="Generated from "`IFS=:
36365           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36366     if test x"$ac_file" != x-; then
36367       configure_input="$ac_file.  $configure_input"
36368       { echo "$as_me:$LINENO: creating $ac_file" >&5
36369 echo "$as_me: creating $ac_file" >&6;}
36370     fi
36371
36372     case $ac_tag in
36373     *:-:* | *:-) cat >"$tmp/stdin";;
36374     esac
36375     ;;
36376   esac
36377
36378   ac_dir=`$as_dirname -- "$ac_file" ||
36379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36380          X"$ac_file" : 'X\(//\)[^/]' \| \
36381          X"$ac_file" : 'X\(//\)$' \| \
36382          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36383 echo X"$ac_file" |
36384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36385             s//\1/
36386             q
36387           }
36388           /^X\(\/\/\)[^/].*/{
36389             s//\1/
36390             q
36391           }
36392           /^X\(\/\/\)$/{
36393             s//\1/
36394             q
36395           }
36396           /^X\(\/\).*/{
36397             s//\1/
36398             q
36399           }
36400           s/.*/./; q'`
36401   { as_dir="$ac_dir"
36402   case $as_dir in #(
36403   -*) as_dir=./$as_dir;;
36404   esac
36405   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36406     as_dirs=
36407     while :; do
36408       case $as_dir in #(
36409       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36410       *) as_qdir=$as_dir;;
36411       esac
36412       as_dirs="'$as_qdir' $as_dirs"
36413       as_dir=`$as_dirname -- "$as_dir" ||
36414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36415          X"$as_dir" : 'X\(//\)[^/]' \| \
36416          X"$as_dir" : 'X\(//\)$' \| \
36417          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36418 echo X"$as_dir" |
36419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36420             s//\1/
36421             q
36422           }
36423           /^X\(\/\/\)[^/].*/{
36424             s//\1/
36425             q
36426           }
36427           /^X\(\/\/\)$/{
36428             s//\1/
36429             q
36430           }
36431           /^X\(\/\).*/{
36432             s//\1/
36433             q
36434           }
36435           s/.*/./; q'`
36436       test -d "$as_dir" && break
36437     done
36438     test -z "$as_dirs" || eval "mkdir $as_dirs"
36439   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36441    { (exit 1); exit 1; }; }; }
36442   ac_builddir=.
36443
36444 case "$ac_dir" in
36445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36446 *)
36447   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36448   # A ".." for each directory in $ac_dir_suffix.
36449   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36450   case $ac_top_builddir_sub in
36451   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36452   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36453   esac ;;
36454 esac
36455 ac_abs_top_builddir=$ac_pwd
36456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36457 # for backward compatibility:
36458 ac_top_builddir=$ac_top_build_prefix
36459
36460 case $srcdir in
36461   .)  # We are building in place.
36462     ac_srcdir=.
36463     ac_top_srcdir=$ac_top_builddir_sub
36464     ac_abs_top_srcdir=$ac_pwd ;;
36465   [\\/]* | ?:[\\/]* )  # Absolute name.
36466     ac_srcdir=$srcdir$ac_dir_suffix;
36467     ac_top_srcdir=$srcdir
36468     ac_abs_top_srcdir=$srcdir ;;
36469   *) # Relative name.
36470     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36471     ac_top_srcdir=$ac_top_build_prefix$srcdir
36472     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36473 esac
36474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36475
36476
36477   case $ac_mode in
36478   :F)
36479   #
36480   # CONFIG_FILE
36481   #
36482
36483   case $INSTALL in
36484   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36485   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36486   esac
36487 _ACEOF
36488
36489 cat >>$CONFIG_STATUS <<\_ACEOF
36490 # If the template does not know about datarootdir, expand it.
36491 # FIXME: This hack should be removed a few years after 2.60.
36492 ac_datarootdir_hack=; ac_datarootdir_seen=
36493
36494 case `sed -n '/datarootdir/ {
36495   p
36496   q
36497 }
36498 /@datadir@/p
36499 /@docdir@/p
36500 /@infodir@/p
36501 /@localedir@/p
36502 /@mandir@/p
36503 ' $ac_file_inputs` in
36504 *datarootdir*) ac_datarootdir_seen=yes;;
36505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36506   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36507 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36508 _ACEOF
36509 cat >>$CONFIG_STATUS <<_ACEOF
36510   ac_datarootdir_hack='
36511   s&@datadir@&$datadir&g
36512   s&@docdir@&$docdir&g
36513   s&@infodir@&$infodir&g
36514   s&@localedir@&$localedir&g
36515   s&@mandir@&$mandir&g
36516     s&\\\${datarootdir}&$datarootdir&g' ;;
36517 esac
36518 _ACEOF
36519
36520 # Neutralize VPATH when `$srcdir' = `.'.
36521 # Shell code in configure.ac might set extrasub.
36522 # FIXME: do we really want to maintain this feature?
36523 cat >>$CONFIG_STATUS <<_ACEOF
36524   sed "$ac_vpsub
36525 $extrasub
36526 _ACEOF
36527 cat >>$CONFIG_STATUS <<\_ACEOF
36528 :t
36529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36530 s&@configure_input@&$configure_input&;t t
36531 s&@top_builddir@&$ac_top_builddir_sub&;t t
36532 s&@srcdir@&$ac_srcdir&;t t
36533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36534 s&@top_srcdir@&$ac_top_srcdir&;t t
36535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36536 s&@builddir@&$ac_builddir&;t t
36537 s&@abs_builddir@&$ac_abs_builddir&;t t
36538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36539 s&@INSTALL@&$ac_INSTALL&;t t
36540 $ac_datarootdir_hack
36541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36542
36543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36544   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36545   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36546   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36547 which seems to be undefined.  Please make sure it is defined." >&5
36548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36549 which seems to be undefined.  Please make sure it is defined." >&2;}
36550
36551   rm -f "$tmp/stdin"
36552   case $ac_file in
36553   -) cat "$tmp/out"; rm -f "$tmp/out";;
36554   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36555   esac
36556  ;;
36557   :H)
36558   #
36559   # CONFIG_HEADER
36560   #
36561 _ACEOF
36562
36563 # Transform confdefs.h into a sed script `conftest.defines', that
36564 # substitutes the proper values into config.h.in to produce config.h.
36565 rm -f conftest.defines conftest.tail
36566 # First, append a space to every undef/define line, to ease matching.
36567 echo 's/$/ /' >conftest.defines
36568 # Then, protect against being on the right side of a sed subst, or in
36569 # an unquoted here document, in config.status.  If some macros were
36570 # called several times there might be several #defines for the same
36571 # symbol, which is useless.  But do not sort them, since the last
36572 # AC_DEFINE must be honored.
36573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36576 # PARAMS is the parameter list in the macro definition--in most cases, it's
36577 # just an empty string.
36578 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36579 ac_dB='\\)[      (].*,\\1define\\2'
36580 ac_dC=' '
36581 ac_dD=' ,'
36582
36583 uniq confdefs.h |
36584   sed -n '
36585         t rset
36586         :rset
36587         s/^[     ]*#[    ]*define[       ][      ]*//
36588         t ok
36589         d
36590         :ok
36591         s/[\\&,]/\\&/g
36592         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36593         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36594   ' >>conftest.defines
36595
36596 # Remove the space that was appended to ease matching.
36597 # Then replace #undef with comments.  This is necessary, for
36598 # example, in the case of _POSIX_SOURCE, which is predefined and required
36599 # on some systems where configure will not decide to define it.
36600 # (The regexp can be short, since the line contains either #define or #undef.)
36601 echo 's/ $//
36602 s,^[     #]*u.*,/* & */,' >>conftest.defines
36603
36604 # Break up conftest.defines:
36605 ac_max_sed_lines=50
36606
36607 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36608 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36609 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36610 # et cetera.
36611 ac_in='$ac_file_inputs'
36612 ac_out='"$tmp/out1"'
36613 ac_nxt='"$tmp/out2"'
36614
36615 while :
36616 do
36617   # Write a here document:
36618     cat >>$CONFIG_STATUS <<_ACEOF
36619     # First, check the format of the line:
36620     cat >"\$tmp/defines.sed" <<\\CEOF
36621 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36622 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36623 b
36624 :def
36625 _ACEOF
36626   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36627   echo 'CEOF
36628     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36629   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36630   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36631   grep . conftest.tail >/dev/null || break
36632   rm -f conftest.defines
36633   mv conftest.tail conftest.defines
36634 done
36635 rm -f conftest.defines conftest.tail
36636
36637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36638 cat >>$CONFIG_STATUS <<\_ACEOF
36639   if test x"$ac_file" != x-; then
36640     echo "/* $configure_input  */" >"$tmp/config.h"
36641     cat "$ac_result" >>"$tmp/config.h"
36642     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36644 echo "$as_me: $ac_file is unchanged" >&6;}
36645     else
36646       rm -f $ac_file
36647       mv "$tmp/config.h" $ac_file
36648     fi
36649   else
36650     echo "/* $configure_input  */"
36651     cat "$ac_result"
36652   fi
36653   rm -f "$tmp/out12"
36654  ;;
36655
36656   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36657 echo "$as_me: executing $ac_file commands" >&6;}
36658  ;;
36659   esac
36660
36661
36662   case $ac_file$ac_mode in
36663     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36664    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36665     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36666    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36667     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36668    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36669     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36670    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36671     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36672    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36673     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36674    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36675     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36676    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36677     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36678    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36679     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36680    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36681     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36682    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36683     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36685     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36687     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36688    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36689
36690   esac
36691 done # for ac_tag
36692
36693
36694 { (exit 0); exit 0; }
36695 _ACEOF
36696 chmod +x $CONFIG_STATUS
36697 ac_clean_files=$ac_clean_files_save
36698
36699
36700 # configure is writing to config.log, and then calls config.status.
36701 # config.status does its own redirection, appending to config.log.
36702 # Unfortunately, on DOS this fails, as config.log is still kept open
36703 # by configure, so config.status won't be able to write to it; its
36704 # output is simply discarded.  So we exec the FD to /dev/null,
36705 # effectively closing config.log, so it can be properly (re)opened and
36706 # appended to by config.status.  When coming back to configure, we
36707 # need to make the FD available again.
36708 if test "$no_create" != yes; then
36709   ac_cs_success=:
36710   ac_config_status_args=
36711   test "$silent" = yes &&
36712     ac_config_status_args="$ac_config_status_args --quiet"
36713   exec 5>/dev/null
36714   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36715   exec 5>>config.log
36716   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36717   # would make configure fail if this is the last instruction.
36718   $ac_cs_success || { (exit 1); exit 1; }
36719 fi
36720
36721 #
36722 # CONFIG_SUBDIRS section.
36723 #
36724 if test "$no_recursion" != yes; then
36725
36726   # Remove --cache-file and --srcdir arguments so they do not pile up.
36727   ac_sub_configure_args=
36728   ac_prev=
36729   eval "set x $ac_configure_args"
36730   shift
36731   for ac_arg
36732   do
36733     if test -n "$ac_prev"; then
36734       ac_prev=
36735       continue
36736     fi
36737     case $ac_arg in
36738     -cache-file | --cache-file | --cache-fil | --cache-fi \
36739     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36740       ac_prev=cache_file ;;
36741     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36742     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36743     | --c=*)
36744       ;;
36745     --config-cache | -C)
36746       ;;
36747     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36748       ac_prev=srcdir ;;
36749     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36750       ;;
36751     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36752       ac_prev=prefix ;;
36753     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36754       ;;
36755     *)
36756       case $ac_arg in
36757       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36758       esac
36759       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36760     esac
36761   done
36762
36763   # Always prepend --prefix to ensure using the same prefix
36764   # in subdir configurations.
36765   ac_arg="--prefix=$prefix"
36766   case $ac_arg in
36767   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36768   esac
36769   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36770
36771   ac_popdir=`pwd`
36772   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36773
36774     # Do not complain, so a configure script can configure whichever
36775     # parts of a large source tree are present.
36776     test -d "$srcdir/$ac_dir" || continue
36777
36778     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36779     echo "$as_me:$LINENO: $ac_msg" >&5
36780     echo "$ac_msg" >&6
36781     { as_dir="$ac_dir"
36782   case $as_dir in #(
36783   -*) as_dir=./$as_dir;;
36784   esac
36785   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36786     as_dirs=
36787     while :; do
36788       case $as_dir in #(
36789       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36790       *) as_qdir=$as_dir;;
36791       esac
36792       as_dirs="'$as_qdir' $as_dirs"
36793       as_dir=`$as_dirname -- "$as_dir" ||
36794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36795          X"$as_dir" : 'X\(//\)[^/]' \| \
36796          X"$as_dir" : 'X\(//\)$' \| \
36797          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36798 echo X"$as_dir" |
36799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36800             s//\1/
36801             q
36802           }
36803           /^X\(\/\/\)[^/].*/{
36804             s//\1/
36805             q
36806           }
36807           /^X\(\/\/\)$/{
36808             s//\1/
36809             q
36810           }
36811           /^X\(\/\).*/{
36812             s//\1/
36813             q
36814           }
36815           s/.*/./; q'`
36816       test -d "$as_dir" && break
36817     done
36818     test -z "$as_dirs" || eval "mkdir $as_dirs"
36819   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36821    { (exit 1); exit 1; }; }; }
36822     ac_builddir=.
36823
36824 case "$ac_dir" in
36825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36826 *)
36827   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36828   # A ".." for each directory in $ac_dir_suffix.
36829   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36830   case $ac_top_builddir_sub in
36831   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36832   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36833   esac ;;
36834 esac
36835 ac_abs_top_builddir=$ac_pwd
36836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36837 # for backward compatibility:
36838 ac_top_builddir=$ac_top_build_prefix
36839
36840 case $srcdir in
36841   .)  # We are building in place.
36842     ac_srcdir=.
36843     ac_top_srcdir=$ac_top_builddir_sub
36844     ac_abs_top_srcdir=$ac_pwd ;;
36845   [\\/]* | ?:[\\/]* )  # Absolute name.
36846     ac_srcdir=$srcdir$ac_dir_suffix;
36847     ac_top_srcdir=$srcdir
36848     ac_abs_top_srcdir=$srcdir ;;
36849   *) # Relative name.
36850     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36851     ac_top_srcdir=$ac_top_build_prefix$srcdir
36852     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36853 esac
36854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36855
36856
36857     cd "$ac_dir"
36858
36859     # Check for guested configure; otherwise get Cygnus style configure.
36860     if test -f "$ac_srcdir/configure.gnu"; then
36861       ac_sub_configure=$ac_srcdir/configure.gnu
36862     elif test -f "$ac_srcdir/configure"; then
36863       ac_sub_configure=$ac_srcdir/configure
36864     elif test -f "$ac_srcdir/configure.in"; then
36865       # This should be Cygnus configure.
36866       ac_sub_configure=$ac_aux_dir/configure
36867     else
36868       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36870       ac_sub_configure=
36871     fi
36872
36873     # The recursion is here.
36874     if test -n "$ac_sub_configure"; then
36875       # Make the cache file name correct relative to the subdirectory.
36876       case $cache_file in
36877       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36878       *) # Relative name.
36879         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36880       esac
36881
36882       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36883 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36884       # The eval makes quoting arguments work.
36885       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36886            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36887         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36889    { (exit 1); exit 1; }; }
36890     fi
36891
36892     cd "$ac_popdir"
36893   done
36894 fi
36895