Don't treat malloc calls with non-matching prototype as malloc.
[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 EXTRA_OPTIONS
852 BINUTILS_INCDIR
853 ENABLE_LLVMC_DYNAMIC
854 ENABLE_LLVMC_DYNAMIC_PLUGINS
855 CXX
856 CXXFLAGS
857 ac_ct_CXX
858 NM
859 ifGNUmake
860 LN_S
861 CMP
862 CP
863 DATE
864 FIND
865 MKDIR
866 MV
867 RANLIB
868 RM
869 SED
870 TAR
871 BINPWD
872 GRAPHVIZ
873 DOT
874 FDP
875 NEATO
876 TWOPI
877 CIRCO
878 GV
879 DOTTY
880 PERL
881 HAVE_PERL
882 INSTALL_PROGRAM
883 INSTALL_SCRIPT
884 INSTALL_DATA
885 BZIP2
886 DOXYGEN
887 GROFF
888 GZIP
889 POD2HTML
890 POD2MAN
891 RUNTEST
892 TCLSH
893 ZIP
894 OCAMLC
895 OCAMLOPT
896 OCAMLDEP
897 OCAMLDOC
898 GAS
899 INSTALL_LTDL_TRUE
900 INSTALL_LTDL_FALSE
901 CONVENIENCE_LTDL_TRUE
902 CONVENIENCE_LTDL_FALSE
903 LIBADD_DL
904 ECHO
905 AR
906 STRIP
907 CXXCPP
908 F77
909 FFLAGS
910 ac_ct_F77
911 LIBTOOL
912 LLVMGCCCOMMAND
913 LLVMGXXCOMMAND
914 LLVMGCC
915 LLVMGXX
916 USE_UDIS86
917 USE_OPROFILE
918 HAVE_PTHREAD
919 HUGE_VAL_SANITY
920 ALLOCA
921 MMAP_FILE
922 LLVMCC1
923 LLVMCC1PLUS
924 LLVMGCCDIR
925 LLVMGCCLIBEXEC
926 LLVMGCC_VERSION
927 LLVMGCC_MAJVERS
928 LLVMGCC_LANGS
929 SHLIBEXT
930 LLVM_PREFIX
931 LLVM_BINDIR
932 LLVM_LIBDIR
933 LLVM_DATADIR
934 LLVM_DOCSDIR
935 LLVM_ETCDIR
936 LLVM_INCLUDEDIR
937 LLVM_INFODIR
938 LLVM_MANDIR
939 LLVM_CONFIGTIME
940 BINDINGS_TO_BUILD
941 ALL_BINDINGS
942 OCAML_LIBDIR
943 ENABLE_VISIBILITY_INLINES_HIDDEN
944 RPATH
945 RDYNAMIC
946 LIBOBJS
947 LTLIBOBJS'
948 ac_subst_files=''
949       ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 CPPFLAGS
956 CPP
957 CXX
958 CXXFLAGS
959 CCC
960 CXXCPP
961 F77
962 FFLAGS'
963 ac_subdirs_all='projects/sample
964 projects/privbracket
965 projects/llvm-stacker
966 projects/llvm-test
967 projects/test-suite
968 projects/llvm-reopt
969 projects/llvm-gcc
970 projects/llvm-java
971 projects/llvm-tv
972 projects/llvm-poolalloc
973 projects/poolalloc
974 projects/llvm-kernel'
975
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026   # If the previous option needs an argument, assign it.
1027   if test -n "$ac_prev"; then
1028     eval $ac_prev=\$ac_option
1029     ac_prev=
1030     continue
1031   fi
1032
1033   case $ac_option in
1034   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035   *)    ac_optarg=yes ;;
1036   esac
1037
1038   # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040   case $ac_dashdash$ac_option in
1041   --)
1042     ac_dashdash=yes ;;
1043
1044   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045     ac_prev=bindir ;;
1046   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047     bindir=$ac_optarg ;;
1048
1049   -build | --build | --buil | --bui | --bu)
1050     ac_prev=build_alias ;;
1051   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052     build_alias=$ac_optarg ;;
1053
1054   -cache-file | --cache-file | --cache-fil | --cache-fi \
1055   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056     ac_prev=cache_file ;;
1057   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059     cache_file=$ac_optarg ;;
1060
1061   --config-cache | -C)
1062     cache_file=config.cache ;;
1063
1064   -datadir | --datadir | --datadi | --datad)
1065     ac_prev=datadir ;;
1066   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067     datadir=$ac_optarg ;;
1068
1069   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070   | --dataroo | --dataro | --datar)
1071     ac_prev=datarootdir ;;
1072   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074     datarootdir=$ac_optarg ;;
1075
1076   -disable-* | --disable-*)
1077     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081    { (exit 1); exit 1; }; }
1082     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083     eval enable_$ac_feature=no ;;
1084
1085   -docdir | --docdir | --docdi | --doc | --do)
1086     ac_prev=docdir ;;
1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088     docdir=$ac_optarg ;;
1089
1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091     ac_prev=dvidir ;;
1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093     dvidir=$ac_optarg ;;
1094
1095   -enable-* | --enable-*)
1096     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1099       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100    { (exit 1); exit 1; }; }
1101     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1102     eval enable_$ac_feature=\$ac_optarg ;;
1103
1104   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106   | --exec | --exe | --ex)
1107     ac_prev=exec_prefix ;;
1108   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110   | --exec=* | --exe=* | --ex=*)
1111     exec_prefix=$ac_optarg ;;
1112
1113   -gas | --gas | --ga | --g)
1114     # Obsolete; use --with-gas.
1115     with_gas=yes ;;
1116
1117   -help | --help | --hel | --he | -h)
1118     ac_init_help=long ;;
1119   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120     ac_init_help=recursive ;;
1121   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122     ac_init_help=short ;;
1123
1124   -host | --host | --hos | --ho)
1125     ac_prev=host_alias ;;
1126   -host=* | --host=* | --hos=* | --ho=*)
1127     host_alias=$ac_optarg ;;
1128
1129   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130     ac_prev=htmldir ;;
1131   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132   | --ht=*)
1133     htmldir=$ac_optarg ;;
1134
1135   -includedir | --includedir | --includedi | --included | --include \
1136   | --includ | --inclu | --incl | --inc)
1137     ac_prev=includedir ;;
1138   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139   | --includ=* | --inclu=* | --incl=* | --inc=*)
1140     includedir=$ac_optarg ;;
1141
1142   -infodir | --infodir | --infodi | --infod | --info | --inf)
1143     ac_prev=infodir ;;
1144   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145     infodir=$ac_optarg ;;
1146
1147   -libdir | --libdir | --libdi | --libd)
1148     ac_prev=libdir ;;
1149   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150     libdir=$ac_optarg ;;
1151
1152   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153   | --libexe | --libex | --libe)
1154     ac_prev=libexecdir ;;
1155   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156   | --libexe=* | --libex=* | --libe=*)
1157     libexecdir=$ac_optarg ;;
1158
1159   -localedir | --localedir | --localedi | --localed | --locale)
1160     ac_prev=localedir ;;
1161   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162     localedir=$ac_optarg ;;
1163
1164   -localstatedir | --localstatedir | --localstatedi | --localstated \
1165   | --localstate | --localstat | --localsta | --localst | --locals)
1166     ac_prev=localstatedir ;;
1167   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169     localstatedir=$ac_optarg ;;
1170
1171   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172     ac_prev=mandir ;;
1173   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174     mandir=$ac_optarg ;;
1175
1176   -nfp | --nfp | --nf)
1177     # Obsolete; use --without-fp.
1178     with_fp=no ;;
1179
1180   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181   | --no-cr | --no-c | -n)
1182     no_create=yes ;;
1183
1184   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186     no_recursion=yes ;;
1187
1188   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190   | --oldin | --oldi | --old | --ol | --o)
1191     ac_prev=oldincludedir ;;
1192   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195     oldincludedir=$ac_optarg ;;
1196
1197   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198     ac_prev=prefix ;;
1199   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200     prefix=$ac_optarg ;;
1201
1202   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203   | --program-pre | --program-pr | --program-p)
1204     ac_prev=program_prefix ;;
1205   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207     program_prefix=$ac_optarg ;;
1208
1209   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210   | --program-suf | --program-su | --program-s)
1211     ac_prev=program_suffix ;;
1212   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214     program_suffix=$ac_optarg ;;
1215
1216   -program-transform-name | --program-transform-name \
1217   | --program-transform-nam | --program-transform-na \
1218   | --program-transform-n | --program-transform- \
1219   | --program-transform | --program-transfor \
1220   | --program-transfo | --program-transf \
1221   | --program-trans | --program-tran \
1222   | --progr-tra | --program-tr | --program-t)
1223     ac_prev=program_transform_name ;;
1224   -program-transform-name=* | --program-transform-name=* \
1225   | --program-transform-nam=* | --program-transform-na=* \
1226   | --program-transform-n=* | --program-transform-=* \
1227   | --program-transform=* | --program-transfor=* \
1228   | --program-transfo=* | --program-transf=* \
1229   | --program-trans=* | --program-tran=* \
1230   | --progr-tra=* | --program-tr=* | --program-t=*)
1231     program_transform_name=$ac_optarg ;;
1232
1233   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234     ac_prev=pdfdir ;;
1235   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236     pdfdir=$ac_optarg ;;
1237
1238   -psdir | --psdir | --psdi | --psd | --ps)
1239     ac_prev=psdir ;;
1240   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241     psdir=$ac_optarg ;;
1242
1243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244   | -silent | --silent | --silen | --sile | --sil)
1245     silent=yes ;;
1246
1247   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248     ac_prev=sbindir ;;
1249   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250   | --sbi=* | --sb=*)
1251     sbindir=$ac_optarg ;;
1252
1253   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255   | --sharedst | --shareds | --shared | --share | --shar \
1256   | --sha | --sh)
1257     ac_prev=sharedstatedir ;;
1258   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261   | --sha=* | --sh=*)
1262     sharedstatedir=$ac_optarg ;;
1263
1264   -site | --site | --sit)
1265     ac_prev=site ;;
1266   -site=* | --site=* | --sit=*)
1267     site=$ac_optarg ;;
1268
1269   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270     ac_prev=srcdir ;;
1271   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272     srcdir=$ac_optarg ;;
1273
1274   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275   | --syscon | --sysco | --sysc | --sys | --sy)
1276     ac_prev=sysconfdir ;;
1277   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279     sysconfdir=$ac_optarg ;;
1280
1281   -target | --target | --targe | --targ | --tar | --ta | --t)
1282     ac_prev=target_alias ;;
1283   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284     target_alias=$ac_optarg ;;
1285
1286   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287     verbose=yes ;;
1288
1289   -version | --version | --versio | --versi | --vers | -V)
1290     ac_init_version=: ;;
1291
1292   -with-* | --with-*)
1293     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_package=`echo $ac_package| sed 's/-/_/g'`
1299     eval with_$ac_package=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1305       { echo "$as_me: error: invalid package name: $ac_package" >&2
1306    { (exit 1); exit 1; }; }
1307     ac_package=`echo $ac_package | sed 's/-/_/g'`
1308     eval with_$ac_package=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) { echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330    { (exit 1); exit 1; }; }
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338    { (exit 1); exit 1; }; }
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   { echo "$as_me: error: missing argument to $ac_option" >&2
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 # Be sure to have absolute directory names.
1360 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361                 datadir sysconfdir sharedstatedir localstatedir includedir \
1362                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363                 libdir localedir mandir
1364 do
1365   eval ac_val=\$$ac_var
1366   case $ac_val in
1367     [\\/$]* | ?:[\\/]* )  continue;;
1368     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369   esac
1370   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371    { (exit 1); exit 1; }; }
1372 done
1373
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1380
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383   if test "x$build_alias" = x; then
1384     cross_compiling=maybe
1385     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386     If a cross compiler is detected then cross compile mode will be used." >&2
1387   elif test "x$build_alias" != "x$host_alias"; then
1388     cross_compiling=yes
1389   fi
1390 fi
1391
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395 test "$silent" = yes && exec 6>/dev/null
1396
1397
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401   { echo "$as_me: error: Working directory cannot be determined" >&2
1402    { (exit 1); exit 1; }; }
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404   { echo "$as_me: error: pwd does not report name of working directory" >&2
1405    { (exit 1); exit 1; }; }
1406
1407
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410   ac_srcdir_defaulted=yes
1411   # Try the directory containing this script, then the parent directory.
1412   ac_confdir=`$as_dirname -- "$0" ||
1413 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414          X"$0" : 'X\(//\)[^/]' \| \
1415          X"$0" : 'X\(//\)$' \| \
1416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417 echo X"$0" |
1418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)[^/].*/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\/\)$/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\).*/{
1431             s//\1/
1432             q
1433           }
1434           s/.*/./; q'`
1435   srcdir=$ac_confdir
1436   if test ! -r "$srcdir/$ac_unique_file"; then
1437     srcdir=..
1438   fi
1439 else
1440   ac_srcdir_defaulted=no
1441 fi
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445    { (exit 1); exit 1; }; }
1446 fi
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450    { (exit 1); exit 1; }; }
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR           user executables [EPREFIX/bin]
1511   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR       program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR           object code libraries [EPREFIX/lib]
1517   --includedir=DIR       C header files [PREFIX/include]
1518   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR          info documentation [DATAROOTDIR/info]
1522   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR           man documentation [DATAROOTDIR/man]
1524   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1525   --htmldir=DIR          html documentation [DOCDIR]
1526   --dvidir=DIR           dvi documentation [DOCDIR]
1527   --pdfdir=DIR           pdf documentation [DOCDIR]
1528   --psdir=DIR            ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 System types:
1534   --build=BUILD     configure for building on BUILD [guessed]
1535   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1536   --target=TARGET   configure for building compilers for TARGET [HOST]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541   case $ac_init_help in
1542      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1543    esac
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-optimized      Compile with optimizations enabled (default is NO)
1550   --enable-profiling      Compile with profiling enabled (default is NO)
1551   --enable-assertions     Compile with assertion checks enabled (default is
1552                           YES)
1553   --enable-expensive-checks
1554                           Compile with expensive debug checks enabled (default
1555                           is NO)
1556   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1557                           NO)
1558   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1559                           optimization is on and YES if it's off)
1560   --enable-jit            Enable Just In Time Compiling (default is YES)
1561   --enable-doxygen        Build doxygen documentation (default is NO)
1562   --enable-threads        Use threads if available (default is YES)
1563   --enable-pic            Build LLVM with Position Independent Code (default
1564                           is YES)
1565   --enable-targets        Build specific host targets: all or
1566                           target1,target2,... Valid targets are: host, x86,
1567                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569                           and cpp (default=all)
1570   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1571                           %a (default is YES)
1572   --enable-bindings       Build specific language bindings:
1573                           all,auto,none,{binding-name} (default=auto)
1574   --enable-libffi         Check for the presence of libffi (default is YES)
1575   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1576                           Win32)
1577   --enable-llvmc-dynamic-plugins
1578                           Enable dynamic LLVMC plugins (default is YES)
1579   --enable-ltdl-install   install libltdl
1580   --enable-shared[=PKGS]  build shared libraries
1581                           [default=yes]
1582   --enable-static[=PKGS]  build static libraries
1583                           [default=yes]
1584   --enable-fast-install[=PKGS]
1585                           optimize for fast installation
1586                           [default=yes]
1587   --disable-libtool-lock  avoid locking (might break parallel builds)
1588
1589 Optional Packages:
1590   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1593                           searches PATH)
1594   --with-llvmgcc          Specify location of llvm-gcc driver (default
1595                           searches PATH)
1596   --with-llvmgxx          Specify location of llvm-g++ driver (default
1597                           searches PATH)
1598   --with-extra-options    Specify additional options to compile LLVM with
1599   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1600                           is stdlib)
1601   --with-binutils-include Specify path to binutils/include/ containing
1602                           plugin-api.h file for gold plugin.
1603   --with-tclinclude       directory where tcl headers are
1604   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1605   --with-pic              try to use only PIC/non-PIC objects [default=use
1606                           both]
1607   --with-tags[=TAGS]      include additional configurations [automatic]
1608   --with-udis86=<path>    Use udis86 external x86 disassembler library
1609   --with-oprofile=<prefix>
1610                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1611
1612 Some influential environment variables:
1613   CC          C compiler command
1614   CFLAGS      C compiler flags
1615   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1616               nonstandard directory <lib dir>
1617   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618               you have headers in a nonstandard directory <include dir>
1619   CPP         C preprocessor
1620   CXX         C++ compiler command
1621   CXXFLAGS    C++ compiler flags
1622   CXXCPP      C++ preprocessor
1623   F77         Fortran 77 compiler command
1624   FFLAGS      Fortran 77 compiler flags
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to <llvmbugs@cs.uiuc.edu>.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635   # If there are subdirs, report their specific --help.
1636   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637     test -d "$ac_dir" || continue
1638     ac_builddir=.
1639
1640 case "$ac_dir" in
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *)
1643   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644   # A ".." for each directory in $ac_dir_suffix.
1645   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646   case $ac_top_builddir_sub in
1647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649   esac ;;
1650 esac
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1655
1656 case $srcdir in
1657   .)  # We are building in place.
1658     ac_srcdir=.
1659     ac_top_srcdir=$ac_top_builddir_sub
1660     ac_abs_top_srcdir=$ac_pwd ;;
1661   [\\/]* | ?:[\\/]* )  # Absolute name.
1662     ac_srcdir=$srcdir$ac_dir_suffix;
1663     ac_top_srcdir=$srcdir
1664     ac_abs_top_srcdir=$srcdir ;;
1665   *) # Relative name.
1666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667     ac_top_srcdir=$ac_top_build_prefix$srcdir
1668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669 esac
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672     cd "$ac_dir" || { ac_status=$?; continue; }
1673     # Check for guested configure.
1674     if test -f "$ac_srcdir/configure.gnu"; then
1675       echo &&
1676       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677     elif test -f "$ac_srcdir/configure"; then
1678       echo &&
1679       $SHELL "$ac_srcdir/configure" --help=recursive
1680     else
1681       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682     fi || ac_status=$?
1683     cd "$ac_pwd" || { ac_status=$?; break; }
1684   done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689   cat <<\_ACEOF
1690 llvm configure 2.7svn
1691 generated by GNU Autoconf 2.60
1692
1693 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1694 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697
1698 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1699 _ACEOF
1700   exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by llvm $as_me 2.7svn, which was
1707 generated by GNU Autoconf 2.60.  Invocation command line was
1708
1709   $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1727
1728 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1729 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1732 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1733 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1734 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770   for ac_arg
1771   do
1772     case $ac_arg in
1773     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775     | -silent | --silent | --silen | --sile | --sil)
1776       continue ;;
1777     *\'*)
1778       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779     esac
1780     case $ac_pass in
1781     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782     2)
1783       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784       if test $ac_must_keep_next = true; then
1785         ac_must_keep_next=false # Got value, back to normal.
1786       else
1787         case $ac_arg in
1788           *=* | --config-cache | -C | -disable-* | --disable-* \
1789           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791           | -with-* | --with-* | -without-* | --without-* | --x)
1792             case "$ac_configure_args0 " in
1793               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794             esac
1795             ;;
1796           -* ) ac_must_keep_next=true ;;
1797         esac
1798       fi
1799       ac_configure_args="$ac_configure_args '$ac_arg'"
1800       ;;
1801     esac
1802   done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log.  We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813   # Save into config.log some information that might help in debugging.
1814   {
1815     echo
1816
1817     cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822     echo
1823     # The following way of writing the cache mishandles newlines in values,
1824 (
1825   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826     eval ac_val=\$$ac_var
1827     case $ac_val in #(
1828     *${as_nl}*)
1829       case $ac_var in #(
1830       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832       esac
1833       case $ac_var in #(
1834       _ | IFS | as_nl) ;; #(
1835       *) $as_unset $ac_var ;;
1836       esac ;;
1837     esac
1838   done
1839   (set) 2>&1 |
1840     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841     *${as_nl}ac_space=\ *)
1842       sed -n \
1843         "s/'\''/'\''\\\\'\'''\''/g;
1844           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845       ;; #(
1846     *)
1847       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848       ;;
1849     esac |
1850     sort
1851 )
1852     echo
1853
1854     cat <<\_ASBOX
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1858 _ASBOX
1859     echo
1860     for ac_var in $ac_subst_vars
1861     do
1862       eval ac_val=\$$ac_var
1863       case $ac_val in
1864       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865       esac
1866       echo "$ac_var='\''$ac_val'\''"
1867     done | sort
1868     echo
1869
1870     if test -n "$ac_subst_files"; then
1871       cat <<\_ASBOX
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1875 _ASBOX
1876       echo
1877       for ac_var in $ac_subst_files
1878       do
1879         eval ac_val=\$$ac_var
1880         case $ac_val in
1881         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882         esac
1883         echo "$ac_var='\''$ac_val'\''"
1884       done | sort
1885       echo
1886     fi
1887
1888     if test -s confdefs.h; then
1889       cat <<\_ASBOX
1890 ## ----------- ##
1891 ## confdefs.h. ##
1892 ## ----------- ##
1893 _ASBOX
1894       echo
1895       cat confdefs.h
1896       echo
1897     fi
1898     test "$ac_signal" != 0 &&
1899       echo "$as_me: caught signal $ac_signal"
1900     echo "$as_me: exit $exit_status"
1901   } >&5
1902   rm -f core *.core core.conftest.* &&
1903     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904     exit $exit_status
1905 ' 0
1906 for ac_signal in 1 2 13 15; do
1907   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 done
1909 ac_signal=0
1910
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1913
1914 # Predefined preprocessor variables.
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 _ACEOF
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944   set x "$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947 else
1948   set x "$ac_default_prefix/share/config.site" \
1949         "$ac_default_prefix/etc/config.site"
1950 fi
1951 shift
1952 for ac_site_file
1953 do
1954   if test -r "$ac_site_file"; then
1955     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 echo "$as_me: loading site script $ac_site_file" >&6;}
1957     sed 's/^/| /' "$ac_site_file" >&5
1958     . "$ac_site_file"
1959   fi
1960 done
1961
1962 if test -r "$cache_file"; then
1963   # Some versions of bash will fail to source /dev/null (special
1964   # files actually), so we avoid doing that.
1965   if test -f "$cache_file"; then
1966     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 echo "$as_me: loading cache $cache_file" >&6;}
1968     case $cache_file in
1969       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970       *)                      . "./$cache_file";;
1971     esac
1972   fi
1973 else
1974   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 echo "$as_me: creating cache $cache_file" >&6;}
1976   >$cache_file
1977 fi
1978
1979 # Check that the precious variables saved in the cache have kept the same
1980 # value.
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984   eval ac_new_set=\$ac_env_${ac_var}_set
1985   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986   eval ac_new_val=\$ac_env_${ac_var}_value
1987   case $ac_old_set,$ac_new_set in
1988     set,)
1989       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991       ac_cache_corrupted=: ;;
1992     ,set)
1993       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995       ac_cache_corrupted=: ;;
1996     ,);;
1997     *)
1998       if test "x$ac_old_val" != "x$ac_new_val"; then
1999         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2002 echo "$as_me:   former value:  $ac_old_val" >&2;}
2003         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2004 echo "$as_me:   current value: $ac_new_val" >&2;}
2005         ac_cache_corrupted=:
2006       fi;;
2007   esac
2008   # Pass precious variables to config.status.
2009   if test "$ac_new_set" = set; then
2010     case $ac_new_val in
2011     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012     *) ac_arg=$ac_var=$ac_new_val ;;
2013     esac
2014     case " $ac_configure_args " in
2015       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2016       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017     esac
2018   fi
2019 done
2020 if $ac_cache_corrupted; then
2021   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
2060 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2061
2062
2063
2064
2065
2066
2067
2068 ac_aux_dir=
2069 for ac_dir in autoconf "$srcdir"/autoconf; do
2070   if test -f "$ac_dir/install-sh"; then
2071     ac_aux_dir=$ac_dir
2072     ac_install_sh="$ac_aux_dir/install-sh -c"
2073     break
2074   elif test -f "$ac_dir/install.sh"; then
2075     ac_aux_dir=$ac_dir
2076     ac_install_sh="$ac_aux_dir/install.sh -c"
2077     break
2078   elif test -f "$ac_dir/shtool"; then
2079     ac_aux_dir=$ac_dir
2080     ac_install_sh="$ac_aux_dir/shtool install -c"
2081     break
2082   fi
2083 done
2084 if test -z "$ac_aux_dir"; then
2085   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2097
2098
2099
2100 if test ${srcdir} != "." ; then
2101   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104    { (exit 1); exit 1; }; }
2105   fi
2106 fi
2107
2108 for i in `ls ${srcdir}/projects`
2109 do
2110   if test -d ${srcdir}/projects/${i} ; then
2111     case ${i} in
2112       CVS) ;;
2113       sample)       subdirs="$subdirs projects/sample"
2114     ;;
2115       privbracket)  subdirs="$subdirs projects/privbracket"
2116  ;;
2117       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2118  ;;
2119       # llvm-test is the old name of the test-suite, kept here for backwards
2120       # compatibility
2121       llvm-test)    subdirs="$subdirs projects/llvm-test"
2122  ;;
2123       test-suite)   subdirs="$subdirs projects/test-suite"
2124  ;;
2125       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2126 ;;
2127       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2128   ;;
2129       llvm-java)    subdirs="$subdirs projects/llvm-java"
2130  ;;
2131       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2132    ;;
2133       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2134  ;;
2135       poolalloc)    subdirs="$subdirs projects/poolalloc"
2136  ;;
2137       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2138  ;;
2139       *)
2140         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142         ;;
2143     esac
2144   fi
2145 done
2146
2147
2148 # Make sure we can run config.sub.
2149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152    { (exit 1); exit 1; }; }
2153
2154 { echo "$as_me:$LINENO: checking build system type" >&5
2155 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_build+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   ac_build_alias=$build_alias
2160 test "x$ac_build_alias" = x &&
2161   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162 test "x$ac_build_alias" = x &&
2163   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165    { (exit 1); exit 1; }; }
2166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169    { (exit 1); exit 1; }; }
2170
2171 fi
2172 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173 echo "${ECHO_T}$ac_cv_build" >&6; }
2174 case $ac_cv_build in
2175 *-*-*) ;;
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177 echo "$as_me: error: invalid value of canonical build" >&2;}
2178    { (exit 1); exit 1; }; };;
2179 esac
2180 build=$ac_cv_build
2181 ac_save_IFS=$IFS; IFS='-'
2182 set x $ac_cv_build
2183 shift
2184 build_cpu=$1
2185 build_vendor=$2
2186 shift; shift
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2189 build_os=$*
2190 IFS=$ac_save_IFS
2191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194 { echo "$as_me:$LINENO: checking host system type" >&5
2195 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_host+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test "x$host_alias" = x; then
2200   ac_cv_host=$ac_cv_build
2201 else
2202   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205    { (exit 1); exit 1; }; }
2206 fi
2207
2208 fi
2209 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210 echo "${ECHO_T}$ac_cv_host" >&6; }
2211 case $ac_cv_host in
2212 *-*-*) ;;
2213 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214 echo "$as_me: error: invalid value of canonical host" >&2;}
2215    { (exit 1); exit 1; }; };;
2216 esac
2217 host=$ac_cv_host
2218 ac_save_IFS=$IFS; IFS='-'
2219 set x $ac_cv_host
2220 shift
2221 host_cpu=$1
2222 host_vendor=$2
2223 shift; shift
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2226 host_os=$*
2227 IFS=$ac_save_IFS
2228 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231 { echo "$as_me:$LINENO: checking target system type" >&5
2232 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233 if test "${ac_cv_target+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test "x$target_alias" = x; then
2237   ac_cv_target=$ac_cv_host
2238 else
2239   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242    { (exit 1); exit 1; }; }
2243 fi
2244
2245 fi
2246 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247 echo "${ECHO_T}$ac_cv_target" >&6; }
2248 case $ac_cv_target in
2249 *-*-*) ;;
2250 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251 echo "$as_me: error: invalid value of canonical target" >&2;}
2252    { (exit 1); exit 1; }; };;
2253 esac
2254 target=$ac_cv_target
2255 ac_save_IFS=$IFS; IFS='-'
2256 set x $ac_cv_target
2257 shift
2258 target_cpu=$1
2259 target_vendor=$2
2260 shift; shift
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2263 target_os=$*
2264 IFS=$ac_save_IFS
2265 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266
2267
2268 # The aliases save the names the user supplied, while $host etc.
2269 # will get canonicalized.
2270 test -n "$target_alias" &&
2271   test "$program_prefix$program_suffix$program_transform_name" = \
2272     NONENONEs,x,x, &&
2273   program_prefix=${target_alias}-
2274
2275 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277 if test "${llvm_cv_os_type+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   case $host in
2281   *-*-aix*)
2282     llvm_cv_link_all_option="-Wl,--whole-archive"
2283     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284     llvm_cv_os_type="AIX"
2285     llvm_cv_platform_type="Unix" ;;
2286   *-*-irix*)
2287     llvm_cv_link_all_option="-Wl,--whole-archive"
2288     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289     llvm_cv_os_type="IRIX"
2290     llvm_cv_platform_type="Unix" ;;
2291   *-*-cygwin*)
2292     llvm_cv_link_all_option="-Wl,--whole-archive"
2293     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294     llvm_cv_os_type="Cygwin"
2295     llvm_cv_platform_type="Unix" ;;
2296   *-*-darwin*)
2297     llvm_cv_link_all_option="-Wl,-all_load"
2298     llvm_cv_no_link_all_option="-Wl,-noall_load"
2299     llvm_cv_os_type="Darwin"
2300     llvm_cv_platform_type="Unix" ;;
2301   *-*-freebsd*)
2302     llvm_cv_link_all_option="-Wl,--whole-archive"
2303     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304     llvm_cv_os_type="FreeBSD"
2305     llvm_cv_platform_type="Unix" ;;
2306   *-*-openbsd*)
2307     llvm_cv_link_all_option="-Wl,--whole-archive"
2308     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309     llvm_cv_os_type="OpenBSD"
2310     llvm_cv_platform_type="Unix" ;;
2311   *-*-netbsd*)
2312     llvm_cv_link_all_option="-Wl,--whole-archive"
2313     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314     llvm_cv_os_type="NetBSD"
2315     llvm_cv_platform_type="Unix" ;;
2316   *-*-dragonfly*)
2317     llvm_cv_link_all_option="-Wl,--whole-archive"
2318     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319     llvm_cv_os_type="DragonFly"
2320     llvm_cv_platform_type="Unix" ;;
2321   *-*-hpux*)
2322     llvm_cv_link_all_option="-Wl,--whole-archive"
2323     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324     llvm_cv_os_type="HP-UX"
2325     llvm_cv_platform_type="Unix" ;;
2326   *-*-interix*)
2327     llvm_cv_link_all_option="-Wl,--whole-archive"
2328     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329     llvm_cv_os_type="Interix"
2330     llvm_cv_platform_type="Unix" ;;
2331   *-*-linux*)
2332     llvm_cv_link_all_option="-Wl,--whole-archive"
2333     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334     llvm_cv_os_type="Linux"
2335     llvm_cv_platform_type="Unix" ;;
2336   *-*-solaris*)
2337     llvm_cv_link_all_option="-Wl,-z,allextract"
2338     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339     llvm_cv_os_type="SunOS"
2340     llvm_cv_platform_type="Unix" ;;
2341   *-*-win32*)
2342     llvm_cv_link_all_option="-Wl,--whole-archive"
2343     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344     llvm_cv_os_type="Win32"
2345     llvm_cv_platform_type="Win32" ;;
2346   *-*-mingw*)
2347     llvm_cv_link_all_option="-Wl,--whole-archive"
2348     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349     llvm_cv_os_type="MingW"
2350     llvm_cv_platform_type="Win32" ;;
2351   *-unknown-eabi*)
2352     llvm_cv_link_all_option="-Wl,--whole-archive"
2353     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354     llvm_cv_os_type="Freestanding"
2355     llvm_cv_platform_type="Unix" ;;
2356   *-unknown-elf*)
2357     llvm_cv_link_all_option="-Wl,--whole-archive"
2358     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359     llvm_cv_os_type="Freestanding"
2360     llvm_cv_platform_type="Unix" ;;
2361   *)
2362     llvm_cv_link_all_option=""
2363     llvm_cv_no_link_all_option=""
2364     llvm_cv_os_type="Unknown"
2365     llvm_cv_platform_type="Unknown" ;;
2366 esac
2367 fi
2368 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2370
2371 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373 if test "${llvm_cv_target_os_type+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   case $target in
2377   *-*-aix*)
2378     llvm_cv_target_os_type="AIX" ;;
2379   *-*-irix*)
2380     llvm_cv_target_os_type="IRIX" ;;
2381   *-*-cygwin*)
2382     llvm_cv_target_os_type="Cygwin" ;;
2383   *-*-darwin*)
2384     llvm_cv_target_os_type="Darwin" ;;
2385   *-*-freebsd*)
2386     llvm_cv_target_os_type="FreeBSD" ;;
2387   *-*-openbsd*)
2388     llvm_cv_target_os_type="OpenBSD" ;;
2389   *-*-netbsd*)
2390     llvm_cv_target_os_type="NetBSD" ;;
2391   *-*-dragonfly*)
2392     llvm_cv_target_os_type="DragonFly" ;;
2393   *-*-hpux*)
2394     llvm_cv_target_os_type="HP-UX" ;;
2395   *-*-interix*)
2396     llvm_cv_target_os_type="Interix" ;;
2397   *-*-linux*)
2398     llvm_cv_target_os_type="Linux" ;;
2399   *-*-solaris*)
2400     llvm_cv_target_os_type="SunOS" ;;
2401   *-*-win32*)
2402     llvm_cv_target_os_type="Win32" ;;
2403   *-*-mingw*)
2404     llvm_cv_target_os_type="MingW" ;;
2405   *-unknown-eabi*)
2406     llvm_cv_target_os_type="Freestanding" ;;
2407   *)
2408     llvm_cv_target_os_type="Unknown" ;;
2409 esac
2410 fi
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
2414 if test "$llvm_cv_os_type" = "Unknown" ; then
2415   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417    { (exit 1); exit 1; }; }
2418 fi
2419
2420 OS=$llvm_cv_os_type
2421
2422 HOST_OS=$llvm_cv_os_type
2423
2424 TARGET_OS=$llvm_cv_target_os_type
2425
2426
2427 LINKALL=$llvm_cv_link_all_option
2428
2429 NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
2432 case $llvm_cv_platform_type in
2433   Unix)
2434
2435 cat >>confdefs.h <<\_ACEOF
2436 #define LLVM_ON_UNIX 1
2437 _ACEOF
2438
2439     LLVM_ON_UNIX=1
2440
2441     LLVM_ON_WIN32=0
2442
2443     ;;
2444   Win32)
2445
2446 cat >>confdefs.h <<\_ACEOF
2447 #define LLVM_ON_WIN32 1
2448 _ACEOF
2449
2450     LLVM_ON_UNIX=0
2451
2452     LLVM_ON_WIN32=1
2453
2454     ;;
2455 esac
2456
2457 { echo "$as_me:$LINENO: checking target architecture" >&5
2458 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459 if test "${llvm_cv_target_arch+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   case $target in
2463   i?86-*)                 llvm_cv_target_arch="x86" ;;
2464   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2465   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2466   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2467   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2468   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2469   mips-*)                 llvm_cv_target_arch="Mips" ;;
2470   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2471   xcore-*)                llvm_cv_target_arch="XCore" ;;
2472   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2473   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2474   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2475   *)                      llvm_cv_target_arch="Unknown" ;;
2476 esac
2477 fi
2478 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2480
2481 if test "$llvm_cv_target_arch" = "Unknown" ; then
2482   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484 fi
2485
2486 # Determine the LLVM native architecture for the target
2487 case "$llvm_cv_target_arch" in
2488     x86)     LLVM_NATIVE_ARCH="X86" ;;
2489     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2490     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2491 esac
2492
2493 ARCH=$llvm_cv_target_arch
2494
2495
2496 ac_ext=c
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501 if test -n "$ac_tool_prefix"; then
2502   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$CC"; then
2510   ac_cv_prog_CC="$CC" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531   { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538
2539 fi
2540 if test -z "$ac_cv_prog_CC"; then
2541   ac_ct_CC=$CC
2542   # Extract the first word of "gcc", so it can be a program name with args.
2543 set dummy gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$ac_ct_CC"; then
2550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559     ac_cv_prog_ac_ct_CC="gcc"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570 if test -n "$ac_ct_CC"; then
2571   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572 echo "${ECHO_T}$ac_ct_CC" >&6; }
2573 else
2574   { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2576 fi
2577
2578   if test "x$ac_ct_CC" = x; then
2579     CC=""
2580   else
2581     case $cross_compiling:$ac_tool_warned in
2582 yes:)
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet.  If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet.  If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591     CC=$ac_ct_CC
2592   fi
2593 else
2594   CC="$ac_cv_prog_CC"
2595 fi
2596
2597 if test -z "$CC"; then
2598           if test -n "$ac_tool_prefix"; then
2599     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2600 set dummy ${ac_tool_prefix}cc; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$CC"; then
2607   ac_cv_prog_CC="$CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_CC="${ac_tool_prefix}cc"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 CC=$ac_cv_prog_CC
2627 if test -n "$CC"; then
2628   { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636   fi
2637 fi
2638 if test -z "$CC"; then
2639   # Extract the first word of "cc", so it can be a program name with args.
2640 set dummy cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649   ac_prog_rejected=no
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658        ac_prog_rejected=yes
2659        continue
2660      fi
2661     ac_cv_prog_CC="cc"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 if test $ac_prog_rejected = yes; then
2670   # We found a bogon in the path, so make sure we never use it.
2671   set dummy $ac_cv_prog_CC
2672   shift
2673   if test $# != 0; then
2674     # We chose a different compiler from the bogus one.
2675     # However, it has the same basename, so the bogon will be chosen
2676     # first if we set CC to just the basename; use the full file name.
2677     shift
2678     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679   fi
2680 fi
2681 fi
2682 fi
2683 CC=$ac_cv_prog_CC
2684 if test -n "$CC"; then
2685   { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2687 else
2688   { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2690 fi
2691
2692
2693 fi
2694 if test -z "$CC"; then
2695   if test -n "$ac_tool_prefix"; then
2696   for ac_prog in cl.exe
2697   do
2698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   if test -n "$CC"; then
2706   ac_cv_prog_CC="$CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727   { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2729 else
2730   { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735     test -n "$CC" && break
2736   done
2737 fi
2738 if test -z "$CC"; then
2739   ac_ct_CC=$CC
2740   for ac_prog in cl.exe
2741 do
2742   # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy $ac_prog; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   if test -n "$ac_ct_CC"; then
2750   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_ac_ct_CC="$ac_prog"
2760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770 if test -n "$ac_ct_CC"; then
2771   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772 echo "${ECHO_T}$ac_ct_CC" >&6; }
2773 else
2774   { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2776 fi
2777
2778
2779   test -n "$ac_ct_CC" && break
2780 done
2781
2782   if test "x$ac_ct_CC" = x; then
2783     CC=""
2784   else
2785     case $cross_compiling:$ac_tool_warned in
2786 yes:)
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet.  If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet.  If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795     CC=$ac_ct_CC
2796   fi
2797 fi
2798
2799 fi
2800
2801
2802 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." >&2;}
2806    { (exit 1); exit 1; }; }
2807
2808 # Provide some information about the compiler.
2809 echo "$as_me:$LINENO: checking for C compiler version" >&5
2810 ac_compiler=`set X $ac_compile; echo $2`
2811 { (ac_try="$ac_compiler --version >&5"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compiler --version >&5") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }
2821 { (ac_try="$ac_compiler -v >&5"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_compiler -v >&5") 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }
2831 { (ac_try="$ac_compiler -V >&5"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compiler -V >&5") 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }
2841
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848
2849 int
2850 main ()
2851 {
2852
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 ac_clean_files_save=$ac_clean_files
2858 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2859 # Try to create an executable without -o first, disregard a.out.
2860 # It will help us diagnose broken compilers, and finding out an intuition
2861 # of exeext.
2862 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2864 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2865 #
2866 # List of possible output files, starting from the most likely.
2867 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868 # only as a last resort.  b.out is created by i960 compilers.
2869 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2870 #
2871 # The IRIX 6 linker writes into existing files which may not be
2872 # executable, retaining their permissions.  Remove them first so a
2873 # subsequent execution test works.
2874 ac_rmfiles=
2875 for ac_file in $ac_files
2876 do
2877   case $ac_file in
2878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880   esac
2881 done
2882 rm -f $ac_rmfiles
2883
2884 if { (ac_try="$ac_link_default"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_link_default") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; then
2894   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2897 # so that the user can short-circuit this test for compilers unknown to
2898 # Autoconf.
2899 for ac_file in $ac_files
2900 do
2901   test -f "$ac_file" || continue
2902   case $ac_file in
2903     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2904         ;;
2905     [ab].out )
2906         # We found the default executable, but exeext='' is most
2907         # certainly right.
2908         break;;
2909     *.* )
2910         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911         then :; else
2912            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913         fi
2914         # We set ac_cv_exeext here because the later test for it is not
2915         # safe: cross compilers may not add the suffix if given an `-o'
2916         # argument, so we may need to know it at that point already.
2917         # Even if this section looks crufty: it has the advantage of
2918         # actually working.
2919         break;;
2920     * )
2921         break;;
2922   esac
2923 done
2924 test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: C compiler cannot create executables
2933 See \`config.log' for more details." >&2;}
2934    { (exit 77); exit 77; }; }
2935 fi
2936
2937 ac_exeext=$ac_cv_exeext
2938 { echo "$as_me:$LINENO: result: $ac_file" >&5
2939 echo "${ECHO_T}$ac_file" >&6; }
2940
2941 # Check that the compiler produces executables we can run.  If not, either
2942 # the compiler is broken, or we cross compile.
2943 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2945 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946 # If not cross compiling, check that we can run a simple program.
2947 if test "$cross_compiling" != yes; then
2948   if { ac_try='./$ac_file'
2949   { (case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_try") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; }; then
2958     cross_compiling=no
2959   else
2960     if test "$cross_compiling" = maybe; then
2961         cross_compiling=yes
2962     else
2963         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details." >&2;}
2969    { (exit 1); exit 1; }; }
2970     fi
2971   fi
2972 fi
2973 { echo "$as_me:$LINENO: result: yes" >&5
2974 echo "${ECHO_T}yes" >&6; }
2975
2976 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2977 ac_clean_files=$ac_clean_files_save
2978 # Check that the compiler produces executables we can run.  If not, either
2979 # the compiler is broken, or we cross compile.
2980 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2982 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983 echo "${ECHO_T}$cross_compiling" >&6; }
2984
2985 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2987 if { (ac_try="$ac_link"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_link") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; then
2997   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2999 # work properly (i.e., refer to `conftest.exe'), while it won't with
3000 # `rm'.
3001 for ac_file in conftest.exe conftest conftest.*; do
3002   test -f "$ac_file" || continue
3003   case $ac_file in
3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006           break;;
3007     * ) break;;
3008   esac
3009 done
3010 else
3011   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3014 See \`config.log' for more details." >&2;}
3015    { (exit 1); exit 1; }; }
3016 fi
3017
3018 rm -f conftest$ac_cv_exeext
3019 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3020 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3021
3022 rm -f conftest.$ac_ext
3023 EXEEXT=$ac_cv_exeext
3024 ac_exeext=$EXEEXT
3025 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3026 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3027 if test "${ac_cv_objext+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036
3037 int
3038 main ()
3039 {
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.o conftest.obj
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; then
3056   for ac_file in conftest.o conftest.obj conftest.*; do
3057   test -f "$ac_file" || continue;
3058   case $ac_file in
3059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3060     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3061        break;;
3062   esac
3063 done
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3071 See \`config.log' for more details." >&2;}
3072    { (exit 1); exit 1; }; }
3073 fi
3074
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3076 fi
3077 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6; }
3079 OBJEXT=$ac_cv_objext
3080 ac_objext=$OBJEXT
3081 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096 #ifndef __GNUC__
3097        choke me
3098 #endif
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_compile") 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119   { (case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_try") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; } &&
3128          { ac_try='test -s conftest.$ac_objext'
3129   { (case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_try") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   ac_compiler_gnu=yes
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143         ac_compiler_gnu=no
3144 fi
3145
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3148
3149 fi
3150 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3152 GCC=`test $ac_compiler_gnu = yes && echo yes`
3153 ac_test_CFLAGS=${CFLAGS+set}
3154 ac_save_CFLAGS=$CFLAGS
3155 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_g+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   ac_save_c_werror_flag=$ac_c_werror_flag
3161    ac_c_werror_flag=yes
3162    ac_cv_prog_cc_g=no
3163    CFLAGS="-g"
3164    cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compile") 2>conftest.er1
3187   ac_status=$?
3188   grep -v '^ *+' conftest.er1 >conftest.err
3189   rm -f conftest.er1
3190   cat conftest.err >&5
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); } &&
3193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194   { (case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_try") 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; } &&
3203          { ac_try='test -s conftest.$ac_objext'
3204   { (case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209   (eval "$ac_try") 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); }; }; then
3213   ac_cv_prog_cc_g=yes
3214 else
3215   echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218         CFLAGS=""
3219       cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } &&
3248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249   { (case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_try") 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; } &&
3258          { ac_try='test -s conftest.$ac_objext'
3259   { (case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_try") 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; }; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273         ac_c_werror_flag=$ac_save_c_werror_flag
3274          CFLAGS="-g"
3275          cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_compile") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } &&
3304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305   { (case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310   (eval "$ac_try") 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; } &&
3314          { ac_try='test -s conftest.$ac_objext'
3315   { (case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_try") 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; }; then
3324   ac_cv_prog_cc_g=yes
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339    ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344   CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346   if test "$GCC" = yes; then
3347     CFLAGS="-g -O2"
3348   else
3349     CFLAGS="-g"
3350   fi
3351 else
3352   if test "$GCC" = yes; then
3353     CFLAGS="-O2"
3354   else
3355     CFLAGS=
3356   fi
3357 fi
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdarg.h>
3372 #include <stdio.h>
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3379      char **p;
3380      int i;
3381 {
3382   return p[i];
3383 }
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3385 {
3386   char *s;
3387   va_list v;
3388   va_start (v,p);
3389   s = g (p, va_arg (v,int));
3390   va_end (v);
3391   return s;
3392 }
3393
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3395    function prototypes and stuff, but not '\xHH' hex character constants.
3396    These don't provoke an error unfortunately, instead are silently treated
3397    as 'x'.  The following induces an error, until -std is added to get
3398    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3399    array size at least.  It's necessary to write '\x00'==0 to get something
3400    that's true only with -std.  */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404    inside strings and character constants.  */
3405 #define FOO(x) 'x'
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412 int argc;
3413 char **argv;
3414 int
3415 main ()
3416 {
3417 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424 do
3425   CC="$ac_save_CC $ac_arg"
3426   rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_compile") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } &&
3440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441   { (case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_try") 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; } &&
3450          { ac_try='test -s conftest.$ac_objext'
3451   { (case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_try") 2>&5
3457   ac_status=$?
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); }; }; then
3460   ac_cv_prog_cc_c89=$ac_arg
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465
3466 fi
3467
3468 rm -f core conftest.err conftest.$ac_objext
3469   test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3473
3474 fi
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3477   x)
3478     { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3480   xno)
3481     { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3483   *)
3484     CC="$CC $ac_cv_prog_cc_c89"
3485     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3488
3489
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3504 # On Suns, sometimes $CPP names a directory.
3505 if test -n "$CPP" && test -d "$CPP"; then
3506   CPP=
3507 fi
3508 if test -z "$CPP"; then
3509   if test "${ac_cv_prog_CPP+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512       # Double quotes because CPP needs to be expanded
3513     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3514     do
3515       ac_preproc_ok=false
3516 for ac_c_preproc_warn_flag in '' yes
3517 do
3518   # Use a header file that comes with gcc, so configuring glibc
3519   # with a fresh cross-compiler works.
3520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521   # <limits.h> exists even on freestanding compilers.
3522   # On the NeXT, cc -E runs the code through the compiler's parser,
3523   # not just through cpp. "Syntax error" is here to catch this case.
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #ifdef __STDC__
3531 # include <limits.h>
3532 #else
3533 # include <assert.h>
3534 #endif
3535                      Syntax error
3536 _ACEOF
3537 if { (ac_try="$ac_cpp conftest.$ac_ext"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } >/dev/null; then
3550   if test -s conftest.err; then
3551     ac_cpp_err=$ac_c_preproc_warn_flag
3552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553   else
3554     ac_cpp_err=
3555   fi
3556 else
3557   ac_cpp_err=yes
3558 fi
3559 if test -z "$ac_cpp_err"; then
3560   :
3561 else
3562   echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565   # Broken: fails on valid input.
3566 continue
3567 fi
3568
3569 rm -f conftest.err conftest.$ac_ext
3570
3571   # OK, works on sane cases.  Now check whether nonexistent headers
3572   # can be detected and how.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #include <ac_nonexistent.h>
3580 _ACEOF
3581 if { (ac_try="$ac_cpp conftest.$ac_ext"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } >/dev/null; then
3594   if test -s conftest.err; then
3595     ac_cpp_err=$ac_c_preproc_warn_flag
3596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597   else
3598     ac_cpp_err=
3599   fi
3600 else
3601   ac_cpp_err=yes
3602 fi
3603 if test -z "$ac_cpp_err"; then
3604   # Broken: success on invalid input.
3605 continue
3606 else
3607   echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610   # Passes both tests.
3611 ac_preproc_ok=:
3612 break
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_ext
3616
3617 done
3618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619 rm -f conftest.err conftest.$ac_ext
3620 if $ac_preproc_ok; then
3621   break
3622 fi
3623
3624     done
3625     ac_cv_prog_CPP=$CPP
3626
3627 fi
3628   CPP=$ac_cv_prog_CPP
3629 else
3630   ac_cv_prog_CPP=$CPP
3631 fi
3632 { echo "$as_me:$LINENO: result: $CPP" >&5
3633 echo "${ECHO_T}$CPP" >&6; }
3634 ac_preproc_ok=false
3635 for ac_c_preproc_warn_flag in '' yes
3636 do
3637   # Use a header file that comes with gcc, so configuring glibc
3638   # with a fresh cross-compiler works.
3639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640   # <limits.h> exists even on freestanding compilers.
3641   # On the NeXT, cc -E runs the code through the compiler's parser,
3642   # not just through cpp. "Syntax error" is here to catch this case.
3643   cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h.  */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h.  */
3649 #ifdef __STDC__
3650 # include <limits.h>
3651 #else
3652 # include <assert.h>
3653 #endif
3654                      Syntax error
3655 _ACEOF
3656 if { (ac_try="$ac_cpp conftest.$ac_ext"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } >/dev/null; then
3669   if test -s conftest.err; then
3670     ac_cpp_err=$ac_c_preproc_warn_flag
3671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672   else
3673     ac_cpp_err=
3674   fi
3675 else
3676   ac_cpp_err=yes
3677 fi
3678 if test -z "$ac_cpp_err"; then
3679   :
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684   # Broken: fails on valid input.
3685 continue
3686 fi
3687
3688 rm -f conftest.err conftest.$ac_ext
3689
3690   # OK, works on sane cases.  Now check whether nonexistent headers
3691   # can be detected and how.
3692   cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h.  */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h.  */
3698 #include <ac_nonexistent.h>
3699 _ACEOF
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707   ac_status=$?
3708   grep -v '^ *+' conftest.er1 >conftest.err
3709   rm -f conftest.er1
3710   cat conftest.err >&5
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } >/dev/null; then
3713   if test -s conftest.err; then
3714     ac_cpp_err=$ac_c_preproc_warn_flag
3715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716   else
3717     ac_cpp_err=
3718   fi
3719 else
3720   ac_cpp_err=yes
3721 fi
3722 if test -z "$ac_cpp_err"; then
3723   # Broken: success on invalid input.
3724 continue
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729   # Passes both tests.
3730 ac_preproc_ok=:
3731 break
3732 fi
3733
3734 rm -f conftest.err conftest.$ac_ext
3735
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3740   :
3741 else
3742   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746    { (exit 1); exit 1; }; }
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755
3756 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3757 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   # Extract the first word of "grep ggrep" to use in msg output
3762 if test -z "$GREP"; then
3763 set dummy grep ggrep; ac_prog_name=$2
3764 if test "${ac_cv_path_GREP+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   ac_path_GREP_found=false
3768 # Loop through the user's path and test for each of PROGNAME-LIST
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_prog in grep ggrep; do
3775   for ac_exec_ext in '' $ac_executable_extensions; do
3776     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3777     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3778     # Check for GNU ac_path_GREP and select it if it is found.
3779   # Check for GNU $ac_path_GREP
3780 case `"$ac_path_GREP" --version 2>&1` in
3781 *GNU*)
3782   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783 *)
3784   ac_count=0
3785   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786   while :
3787   do
3788     cat "conftest.in" "conftest.in" >"conftest.tmp"
3789     mv "conftest.tmp" "conftest.in"
3790     cp "conftest.in" "conftest.nl"
3791     echo 'GREP' >> "conftest.nl"
3792     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794     ac_count=`expr $ac_count + 1`
3795     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796       # Best one so far, save it but keep looking for a better one
3797       ac_cv_path_GREP="$ac_path_GREP"
3798       ac_path_GREP_max=$ac_count
3799     fi
3800     # 10*(2^10) chars as input seems more than enough
3801     test $ac_count -gt 10 && break
3802   done
3803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 esac
3805
3806
3807     $ac_path_GREP_found && break 3
3808   done
3809 done
3810
3811 done
3812 IFS=$as_save_IFS
3813
3814
3815 fi
3816
3817 GREP="$ac_cv_path_GREP"
3818 if test -z "$GREP"; then
3819   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823
3824 else
3825   ac_cv_path_GREP=$GREP
3826 fi
3827
3828
3829 fi
3830 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3831 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3832  GREP="$ac_cv_path_GREP"
3833
3834
3835 { echo "$as_me:$LINENO: checking for egrep" >&5
3836 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3837 if test "${ac_cv_path_EGREP+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841    then ac_cv_path_EGREP="$GREP -E"
3842    else
3843      # Extract the first word of "egrep" to use in msg output
3844 if test -z "$EGREP"; then
3845 set dummy egrep; ac_prog_name=$2
3846 if test "${ac_cv_path_EGREP+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   ac_path_EGREP_found=false
3850 # Loop through the user's path and test for each of PROGNAME-LIST
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_prog in egrep; do
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3859     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3860     # Check for GNU ac_path_EGREP and select it if it is found.
3861   # Check for GNU $ac_path_EGREP
3862 case `"$ac_path_EGREP" --version 2>&1` in
3863 *GNU*)
3864   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865 *)
3866   ac_count=0
3867   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868   while :
3869   do
3870     cat "conftest.in" "conftest.in" >"conftest.tmp"
3871     mv "conftest.tmp" "conftest.in"
3872     cp "conftest.in" "conftest.nl"
3873     echo 'EGREP' >> "conftest.nl"
3874     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876     ac_count=`expr $ac_count + 1`
3877     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878       # Best one so far, save it but keep looking for a better one
3879       ac_cv_path_EGREP="$ac_path_EGREP"
3880       ac_path_EGREP_max=$ac_count
3881     fi
3882     # 10*(2^10) chars as input seems more than enough
3883     test $ac_count -gt 10 && break
3884   done
3885   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 esac
3887
3888
3889     $ac_path_EGREP_found && break 3
3890   done
3891 done
3892
3893 done
3894 IFS=$as_save_IFS
3895
3896
3897 fi
3898
3899 EGREP="$ac_cv_path_EGREP"
3900 if test -z "$EGREP"; then
3901   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903    { (exit 1); exit 1; }; }
3904 fi
3905
3906 else
3907   ac_cv_path_EGREP=$EGREP
3908 fi
3909
3910
3911    fi
3912 fi
3913 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3914 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3915  EGREP="$ac_cv_path_EGREP"
3916
3917
3918 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3919 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3920 if test "${ac_cv_header_stdc+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <stdlib.h>
3930 #include <stdarg.h>
3931 #include <string.h>
3932 #include <float.h>
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (ac_try="$ac_compile"
3944 case "(($ac_try" in
3945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946   *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949   (eval "$ac_compile") 2>conftest.er1
3950   ac_status=$?
3951   grep -v '^ *+' conftest.er1 >conftest.err
3952   rm -f conftest.er1
3953   cat conftest.err >&5
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957   { (case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_try") 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; } &&
3966          { ac_try='test -s conftest.$ac_objext'
3967   { (case "(($ac_try" in
3968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969   *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972   (eval "$ac_try") 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; }; then
3976   ac_cv_header_stdc=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981         ac_cv_header_stdc=no
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985
3986 if test $ac_cv_header_stdc = yes; then
3987   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 #include <string.h>
3995
3996 _ACEOF
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998   $EGREP "memchr" >/dev/null 2>&1; then
3999   :
4000 else
4001   ac_cv_header_stdc=no
4002 fi
4003 rm -f conftest*
4004
4005 fi
4006
4007 if test $ac_cv_header_stdc = yes; then
4008   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4016
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030   if test "$cross_compiling" = yes; then
4031   :
4032 else
4033   cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h.  */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h.  */
4039 #include <ctype.h>
4040 #include <stdlib.h>
4041 #if ((' ' & 0x0FF) == 0x020)
4042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044 #else
4045 # define ISLOWER(c) \
4046                    (('a' <= (c) && (c) <= 'i') \
4047                      || ('j' <= (c) && (c) <= 'r') \
4048                      || ('s' <= (c) && (c) <= 'z'))
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050 #endif
4051
4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053 int
4054 main ()
4055 {
4056   int i;
4057   for (i = 0; i < 256; i++)
4058     if (XOR (islower (i), ISLOWER (i))
4059         || toupper (i) != TOUPPER (i))
4060       return 2;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest$ac_exeext
4065 if { (ac_try="$ac_link"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071   (eval "$ac_link") 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075   { (case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_try") 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084   :
4085 else
4086   echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 ( exit $ac_status )
4091 ac_cv_header_stdc=no
4092 fi
4093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094 fi
4095
4096
4097 fi
4098 fi
4099 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4101 if test $ac_cv_header_stdc = yes; then
4102
4103 cat >>confdefs.h <<\_ACEOF
4104 #define STDC_HEADERS 1
4105 _ACEOF
4106
4107 fi
4108
4109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4120                   inttypes.h stdint.h unistd.h
4121 do
4122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 $ac_includes_default
4135
4136 #include <$ac_header>
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_compile") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153   { (case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158   (eval "$ac_try") 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168   (eval "$ac_try") 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; }; then
4172   eval "$as_ac_Header=yes"
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177         eval "$as_ac_Header=no"
4178 fi
4179
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 fi
4182 ac_res=`eval echo '${'$as_ac_Header'}'`
4183                { echo "$as_me:$LINENO: result: $ac_res" >&5
4184 echo "${ECHO_T}$ac_res" >&6; }
4185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186   cat >>confdefs.h <<_ACEOF
4187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188 _ACEOF
4189
4190 fi
4191
4192 done
4193
4194
4195 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4196 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4197 if test "${ac_cv_c_bigendian+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   # See if sys/param.h defines the BYTE_ORDER macro.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <sys/types.h>
4208 #include <sys/param.h>
4209
4210 int
4211 main ()
4212 {
4213 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4214  bogus endian macros
4215 #endif
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236   { (case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_try") 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; } &&
4245          { ac_try='test -s conftest.$ac_objext'
4246   { (case "(($ac_try" in
4247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248   *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251   (eval "$ac_try") 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; }; then
4255   # It does; now see whether it defined to BIG_ENDIAN or not.
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 #include <sys/types.h>
4263 #include <sys/param.h>
4264
4265 int
4266 main ()
4267 {
4268 #if BYTE_ORDER != BIG_ENDIAN
4269  not big endian
4270 #endif
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_compile") 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291   { (case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest.$ac_objext'
4301   { (case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_try") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; }; then
4310   ac_cv_c_bigendian=yes
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         ac_cv_c_bigendian=no
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323         # It does not; compile a test program.
4324 if test "$cross_compiling" = yes; then
4325   # try to guess the endianness by grepping values into an object file
4326   ac_cv_c_bigendian=unknown
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339 int
4340 main ()
4341 {
4342  _ascii (); _ebcdic ();
4343   ;
4344   return 0;
4345 }
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (ac_try="$ac_compile"
4349 case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354   (eval "$ac_compile") 2>conftest.er1
4355   ac_status=$?
4356   grep -v '^ *+' conftest.er1 >conftest.err
4357   rm -f conftest.er1
4358   cat conftest.err >&5
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4362   { (case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367   (eval "$ac_try") 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; }; then
4381   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4382   ac_cv_c_bigendian=yes
4383 fi
4384 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4385   if test "$ac_cv_c_bigendian" = unknown; then
4386     ac_cv_c_bigendian=no
4387   else
4388     # finding both strings is unlikely to happen, but who knows?
4389     ac_cv_c_bigendian=unknown
4390   fi
4391 fi
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396
4397 fi
4398
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 else
4401   cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407 $ac_includes_default
4408 int
4409 main ()
4410 {
4411
4412   /* Are we little or big endian?  From Harbison&Steele.  */
4413   union
4414   {
4415     long int l;
4416     char c[sizeof (long int)];
4417   } u;
4418   u.l = 1;
4419   return u.c[sizeof (long int) - 1] == 1;
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest$ac_exeext
4426 if { (ac_try="$ac_link"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432   (eval "$ac_link") 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4436   { (case "(($ac_try" in
4437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438   *) ac_try_echo=$ac_try;;
4439 esac
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441   (eval "$ac_try") 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); }; }; then
4445   ac_cv_c_bigendian=no
4446 else
4447   echo "$as_me: program exited with status $ac_status" >&5
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 ( exit $ac_status )
4452 ac_cv_c_bigendian=yes
4453 fi
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455 fi
4456
4457
4458 fi
4459
4460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 fi
4462 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4463 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4464 case $ac_cv_c_bigendian in
4465   yes)
4466     ENDIAN=big
4467  ;;
4468   no)
4469     ENDIAN=little
4470  ;;
4471   *)
4472     { { echo "$as_me:$LINENO: error: unknown endianness
4473 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4474 echo "$as_me: error: unknown endianness
4475 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4476    { (exit 1); exit 1; }; } ;;
4477 esac
4478
4479
4480 if test "$cross_compiling" = yes; then
4481   LLVM_CROSS_COMPILING=1
4482
4483
4484 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4485 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4486 if test "${ac_cv_build_exeext+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4490   ac_cv_build_exeext=.exe
4491 else
4492   ac_build_prefix=${build_alias}-
4493
4494   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4495 set dummy ${ac_build_prefix}gcc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   if test -n "$BUILD_CC"; then
4502   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 BUILD_CC=$ac_cv_prog_BUILD_CC
4522 if test -n "$BUILD_CC"; then
4523   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524 echo "${ECHO_T}$BUILD_CC" >&6; }
4525 else
4526   { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528 fi
4529
4530
4531   if test -z "$BUILD_CC"; then
4532      # Extract the first word of "gcc", so it can be a program name with args.
4533 set dummy gcc; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   if test -n "$BUILD_CC"; then
4540   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547   for ac_exec_ext in '' $ac_executable_extensions; do
4548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4549     ac_cv_prog_BUILD_CC="gcc"
4550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 BUILD_CC=$ac_cv_prog_BUILD_CC
4560 if test -n "$BUILD_CC"; then
4561   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4562 echo "${ECHO_T}$BUILD_CC" >&6; }
4563 else
4564   { echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6; }
4566 fi
4567
4568
4569      if test -z "$BUILD_CC"; then
4570        # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$BUILD_CC"; then
4578   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4579 else
4580   ac_prog_rejected=no
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586   for ac_exec_ext in '' $ac_executable_extensions; do
4587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589        ac_prog_rejected=yes
4590        continue
4591      fi
4592     ac_cv_prog_BUILD_CC="cc"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 if test $ac_prog_rejected = yes; then
4601   # We found a bogon in the path, so make sure we never use it.
4602   set dummy $ac_cv_prog_BUILD_CC
4603   shift
4604   if test $# != 0; then
4605     # We chose a different compiler from the bogus one.
4606     # However, it has the same basename, so the bogon will be chosen
4607     # first if we set BUILD_CC to just the basename; use the full file name.
4608     shift
4609     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4610   fi
4611 fi
4612 fi
4613 fi
4614 BUILD_CC=$ac_cv_prog_BUILD_CC
4615 if test -n "$BUILD_CC"; then
4616   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4617 echo "${ECHO_T}$BUILD_CC" >&6; }
4618 else
4619   { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4621 fi
4622
4623
4624      fi
4625   fi
4626   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4627 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4628    { (exit 1); exit 1; }; }
4629   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4630   rm -f conftest*
4631   echo 'int main () { return 0; }' > conftest.$ac_ext
4632   ac_cv_build_exeext=
4633   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4634   (eval $ac_build_link) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; then
4638     for file in conftest.*; do
4639       case $file in
4640       *.c | *.o | *.obj | *.dSYM) ;;
4641       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4642       esac
4643     done
4644   else
4645     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4646 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4647    { (exit 1); exit 1; }; }
4648   fi
4649   rm -f conftest*
4650   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4651 fi
4652 fi
4653
4654 BUILD_EXEEXT=""
4655 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4656 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4657 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4658 ac_build_exeext=$BUILD_EXEEXT
4659
4660   ac_build_prefix=${build_alias}-
4661   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4662 set dummy ${ac_build_prefix}g++; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$BUILD_CXX"; then
4669   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689 if test -n "$BUILD_CXX"; then
4690   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691 echo "${ECHO_T}$BUILD_CXX" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698   if test -z "$BUILD_CXX"; then
4699      # Extract the first word of "g++", so it can be a program name with args.
4700 set dummy g++; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   if test -n "$BUILD_CXX"; then
4707   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_BUILD_CXX="g++"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4727 if test -n "$BUILD_CXX"; then
4728   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4729 echo "${ECHO_T}$BUILD_CXX" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736      if test -z "$BUILD_CXX"; then
4737        # Extract the first word of "c++", so it can be a program name with args.
4738 set dummy c++; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   if test -n "$BUILD_CXX"; then
4745   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4746 else
4747   ac_prog_rejected=no
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4756        ac_prog_rejected=yes
4757        continue
4758      fi
4759     ac_cv_prog_BUILD_CXX="c++"
4760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 if test $ac_prog_rejected = yes; then
4768   # We found a bogon in the path, so make sure we never use it.
4769   set dummy $ac_cv_prog_BUILD_CXX
4770   shift
4771   if test $# != 0; then
4772     # We chose a different compiler from the bogus one.
4773     # However, it has the same basename, so the bogon will be chosen
4774     # first if we set BUILD_CXX to just the basename; use the full file name.
4775     shift
4776     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4777   fi
4778 fi
4779 fi
4780 fi
4781 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4782 if test -n "$BUILD_CXX"; then
4783   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4784 echo "${ECHO_T}$BUILD_CXX" >&6; }
4785 else
4786   { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4788 fi
4789
4790
4791      fi
4792   fi
4793 else
4794   LLVM_CROSS_COMPILING=0
4795
4796 fi
4797
4798 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4799   cvsbuild="yes"
4800   optimize="no"
4801   CVSBUILD=CVSBUILD=1
4802
4803 else
4804   cvsbuild="no"
4805   optimize="yes"
4806 fi
4807
4808
4809 # Check whether --enable-optimized was given.
4810 if test "${enable_optimized+set}" = set; then
4811   enableval=$enable_optimized;
4812 else
4813   enableval=$optimize
4814 fi
4815
4816 if test ${enableval} = "no" ; then
4817   ENABLE_OPTIMIZED=
4818
4819 else
4820   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4821
4822 fi
4823
4824 # Check whether --enable-profiling was given.
4825 if test "${enable_profiling+set}" = set; then
4826   enableval=$enable_profiling;
4827 else
4828   enableval="no"
4829 fi
4830
4831 if test ${enableval} = "no" ; then
4832   ENABLE_PROFILING=
4833
4834 else
4835   ENABLE_PROFILING=ENABLE_PROFILING=1
4836
4837 fi
4838
4839 # Check whether --enable-assertions was given.
4840 if test "${enable_assertions+set}" = set; then
4841   enableval=$enable_assertions;
4842 else
4843   enableval="yes"
4844 fi
4845
4846 if test ${enableval} = "yes" ; then
4847   DISABLE_ASSERTIONS=
4848
4849 else
4850   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4851
4852 fi
4853
4854 # Check whether --enable-expensive-checks was given.
4855 if test "${enable_expensive_checks+set}" = set; then
4856   enableval=$enable_expensive_checks;
4857 else
4858   enableval="no"
4859 fi
4860
4861 if test ${enableval} = "yes" ; then
4862   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4863
4864   EXPENSIVE_CHECKS=yes
4865
4866 else
4867   ENABLE_EXPENSIVE_CHECKS=
4868
4869   EXPENSIVE_CHECKS=no
4870
4871 fi
4872
4873 # Check whether --enable-debug-runtime was given.
4874 if test "${enable_debug_runtime+set}" = set; then
4875   enableval=$enable_debug_runtime;
4876 else
4877   enableval=no
4878 fi
4879
4880 if test ${enableval} = "no" ; then
4881   DEBUG_RUNTIME=
4882
4883 else
4884   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4885
4886 fi
4887
4888 # Check whether --enable-debug-symbols was given.
4889 if test "${enable_debug_symbols+set}" = set; then
4890   enableval=$enable_debug_symbols;
4891 else
4892   enableval=no
4893 fi
4894
4895 if test ${enableval} = "no" ; then
4896   DEBUG_SYMBOLS=
4897
4898 else
4899   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4900
4901 fi
4902
4903 # Check whether --enable-jit was given.
4904 if test "${enable_jit+set}" = set; then
4905   enableval=$enable_jit;
4906 else
4907   enableval=default
4908 fi
4909
4910 if test ${enableval} = "no"
4911 then
4912   JIT=
4913
4914 else
4915   case "$llvm_cv_target_arch" in
4916     x86)         TARGET_HAS_JIT=1
4917  ;;
4918     Sparc)       TARGET_HAS_JIT=0
4919  ;;
4920     PowerPC)     TARGET_HAS_JIT=1
4921  ;;
4922     x86_64)      TARGET_HAS_JIT=1
4923  ;;
4924     Alpha)       TARGET_HAS_JIT=1
4925  ;;
4926     ARM)         TARGET_HAS_JIT=1
4927  ;;
4928     Mips)        TARGET_HAS_JIT=0
4929  ;;
4930     PIC16)       TARGET_HAS_JIT=0
4931  ;;
4932     XCore)       TARGET_HAS_JIT=0
4933  ;;
4934     MSP430)      TARGET_HAS_JIT=0
4935  ;;
4936     SystemZ)     TARGET_HAS_JIT=0
4937  ;;
4938     Blackfin)    TARGET_HAS_JIT=0
4939  ;;
4940     *)           TARGET_HAS_JIT=0
4941  ;;
4942   esac
4943 fi
4944
4945 # Check whether --enable-doxygen was given.
4946 if test "${enable_doxygen+set}" = set; then
4947   enableval=$enable_doxygen;
4948 else
4949   enableval=default
4950 fi
4951
4952 case "$enableval" in
4953   yes) ENABLE_DOXYGEN=1
4954  ;;
4955   no)  ENABLE_DOXYGEN=0
4956  ;;
4957   default) ENABLE_DOXYGEN=0
4958  ;;
4959   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4960 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4961    { (exit 1); exit 1; }; } ;;
4962 esac
4963
4964 # Check whether --enable-threads was given.
4965 if test "${enable_threads+set}" = set; then
4966   enableval=$enable_threads;
4967 else
4968   enableval=default
4969 fi
4970
4971 case "$enableval" in
4972   yes) ENABLE_THREADS=1
4973  ;;
4974   no)  ENABLE_THREADS=0
4975  ;;
4976   default) ENABLE_THREADS=1
4977  ;;
4978   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4980    { (exit 1); exit 1; }; } ;;
4981 esac
4982
4983 cat >>confdefs.h <<_ACEOF
4984 #define ENABLE_THREADS $ENABLE_THREADS
4985 _ACEOF
4986
4987
4988 # Check whether --enable-pic was given.
4989 if test "${enable_pic+set}" = set; then
4990   enableval=$enable_pic;
4991 else
4992   enableval=default
4993 fi
4994
4995 case "$enableval" in
4996   yes) ENABLE_PIC=1
4997  ;;
4998   no)  ENABLE_PIC=0
4999  ;;
5000   default) ENABLE_PIC=1
5001  ;;
5002   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5004    { (exit 1); exit 1; }; } ;;
5005 esac
5006
5007 cat >>confdefs.h <<_ACEOF
5008 #define ENABLE_PIC $ENABLE_PIC
5009 _ACEOF
5010
5011
5012 TARGETS_TO_BUILD=""
5013 # Check whether --enable-targets was given.
5014 if test "${enable_targets+set}" = set; then
5015   enableval=$enable_targets;
5016 else
5017   enableval=all
5018 fi
5019
5020 if test "$enableval" = host-only ; then
5021   enableval=host
5022 fi
5023 case "$enableval" in
5024   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5025   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5026       case "$a_target" in
5027         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5029         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5030         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5031         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5032         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5033         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5034         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5035         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5036         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5037         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5038         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5039         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5040         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5041         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5042         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5043         host) case "$llvm_cv_target_arch" in
5044             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5046             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5047             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5048             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5049             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5050             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5051             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5052             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5053             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5054             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5055             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5056             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5057             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5058 echo "$as_me: error: Can not set target to build" >&2;}
5059    { (exit 1); exit 1; }; } ;;
5060           esac ;;
5061         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5062 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5063    { (exit 1); exit 1; }; } ;;
5064       esac
5065   done
5066   ;;
5067 esac
5068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5069
5070
5071 # Determine whether we are building LLVM support for the native architecture.
5072 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5073 for a_target in $TARGETS_TO_BUILD; do
5074   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5075     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5076
5077 cat >>confdefs.h <<_ACEOF
5078 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5079 _ACEOF
5080
5081   fi
5082 done
5083
5084 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5085 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5086 LLVM_ENUM_TARGETS=""
5087 LLVM_ENUM_ASM_PRINTERS=""
5088 LLVM_ENUM_ASM_PARSERS=""
5089 for target_to_build in $TARGETS_TO_BUILD; do
5090   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5091   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5092     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5093   fi
5094   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5095     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5096   fi
5097 done
5098
5099
5100
5101
5102 # Check whether --enable-cbe-printf-a was given.
5103 if test "${enable_cbe_printf_a+set}" = set; then
5104   enableval=$enable_cbe_printf_a;
5105 else
5106   enableval=default
5107 fi
5108
5109 case "$enableval" in
5110   yes) ENABLE_CBE_PRINTF_A=1
5111  ;;
5112   no)  ENABLE_CBE_PRINTF_A=0
5113  ;;
5114   default)  ENABLE_CBE_PRINTF_A=1
5115  ;;
5116   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5117 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5118    { (exit 1); exit 1; }; } ;;
5119 esac
5120
5121 cat >>confdefs.h <<_ACEOF
5122 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5123 _ACEOF
5124
5125
5126
5127 # Check whether --with-llvmgccdir was given.
5128 if test "${with_llvmgccdir+set}" = set; then
5129   withval=$with_llvmgccdir;
5130 else
5131   withval=default
5132 fi
5133
5134 case "$withval" in
5135   default) WITH_LLVMGCCDIR=default ;;
5136   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5137   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5138 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5139    { (exit 1); exit 1; }; } ;;
5140 esac
5141
5142
5143 # Check whether --with-llvmgcc was given.
5144 if test "${with_llvmgcc+set}" = set; then
5145   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5146       WITH_LLVMGCCDIR=""
5147 fi
5148
5149
5150
5151 # Check whether --with-llvmgxx was given.
5152 if test "${with_llvmgxx+set}" = set; then
5153   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5154     WITH_LLVMGCCDIR=""
5155 fi
5156
5157
5158 if test -n "$LLVMGCC"; then
5159    LLVMGCCCOMMAND="$LLVMGCC"
5160 fi
5161
5162 if test -n "$LLVMGXX"; then
5163    LLVMGXXCOMMAND="$LLVMGXX"
5164 fi
5165
5166 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5167    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5168 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5169    { (exit 1); exit 1; }; };
5170 fi
5171
5172 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5173    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5174 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5175    { (exit 1); exit 1; }; };
5176 fi
5177
5178
5179 # Check whether --with-extra-options was given.
5180 if test "${with_extra_options+set}" = set; then
5181   withval=$with_extra_options;
5182 else
5183   withval=default
5184 fi
5185
5186 case "$withval" in
5187   default) EXTRA_OPTIONS= ;;
5188   *) EXTRA_OPTIONS=$withval ;;
5189 esac
5190 EXTRA_OPTIONS=$EXTRA_OPTIONS
5191
5192
5193 # Check whether --enable-bindings was given.
5194 if test "${enable_bindings+set}" = set; then
5195   enableval=$enable_bindings;
5196 else
5197   enableval=default
5198 fi
5199
5200 BINDINGS_TO_BUILD=""
5201 case "$enableval" in
5202   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5203   all ) BINDINGS_TO_BUILD="ocaml" ;;
5204   none | no) BINDINGS_TO_BUILD="" ;;
5205   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5206       case "$a_binding" in
5207         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5208         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5209 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5210    { (exit 1); exit 1; }; } ;;
5211       esac
5212   done
5213   ;;
5214 esac
5215
5216
5217 # Check whether --with-ocaml-libdir was given.
5218 if test "${with_ocaml_libdir+set}" = set; then
5219   withval=$with_ocaml_libdir;
5220 else
5221   withval=auto
5222 fi
5223
5224 case "$withval" in
5225   auto) with_ocaml_libdir="$withval" ;;
5226   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5227   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5228 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5229    { (exit 1); exit 1; }; } ;;
5230 esac
5231
5232
5233 # Check whether --with-binutils-include was given.
5234 if test "${with_binutils_include+set}" = set; then
5235   withval=$with_binutils_include;
5236 else
5237   withval=default
5238 fi
5239
5240 case "$withval" in
5241   default) WITH_BINUTILS_INCDIR=default ;;
5242   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5243   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5244 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5245    { (exit 1); exit 1; }; } ;;
5246 esac
5247 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5248   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5249
5250   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5251      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5252      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5253 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5254    { (exit 1); exit 1; }; };
5255   fi
5256 fi
5257
5258 # Check whether --enable-libffi was given.
5259 if test "${enable_libffi+set}" = set; then
5260   enableval=$enable_libffi;
5261 else
5262   enableval=yes
5263 fi
5264
5265 case "$enableval" in
5266   yes) llvm_cv_enable_libffi="yes" ;;
5267   no)  llvm_cv_enable_libffi="no"  ;;
5268   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5270    { (exit 1); exit 1; }; } ;;
5271 esac
5272
5273 if test "$llvm_cv_os_type" = "Win32" ; then
5274    llvmc_dynamic="yes"
5275 else
5276    llvmc_dynamic="no"
5277 fi
5278
5279 # Check whether --enable-llvmc-dynamic was given.
5280 if test "${enable_llvmc_dynamic+set}" = set; then
5281   enableval=$enable_llvmc_dynamic;
5282 else
5283   enableval=$llvmc_dynamic
5284 fi
5285
5286 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5287    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5288
5289 else
5290    ENABLE_LLVMC_DYNAMIC=
5291
5292 fi
5293
5294 # Check whether --enable-llvmc-dynamic-plugins was given.
5295 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5296   enableval=$enable_llvmc_dynamic_plugins;
5297 else
5298   enableval=yes
5299 fi
5300
5301 if test ${enableval} = "yes" ; then
5302    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5303
5304 else
5305    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5306
5307 fi
5308
5309
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5316 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5317 # On Suns, sometimes $CPP names a directory.
5318 if test -n "$CPP" && test -d "$CPP"; then
5319   CPP=
5320 fi
5321 if test -z "$CPP"; then
5322   if test "${ac_cv_prog_CPP+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325       # Double quotes because CPP needs to be expanded
5326     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327     do
5328       ac_preproc_ok=false
5329 for ac_c_preproc_warn_flag in '' yes
5330 do
5331   # Use a header file that comes with gcc, so configuring glibc
5332   # with a fresh cross-compiler works.
5333   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334   # <limits.h> exists even on freestanding compilers.
5335   # On the NeXT, cc -E runs the code through the compiler's parser,
5336   # not just through cpp. "Syntax error" is here to catch this case.
5337   cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348                      Syntax error
5349 _ACEOF
5350 if { (ac_try="$ac_cpp conftest.$ac_ext"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } >/dev/null; then
5363   if test -s conftest.err; then
5364     ac_cpp_err=$ac_c_preproc_warn_flag
5365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366   else
5367     ac_cpp_err=
5368   fi
5369 else
5370   ac_cpp_err=yes
5371 fi
5372 if test -z "$ac_cpp_err"; then
5373   :
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378   # Broken: fails on valid input.
5379 continue
5380 fi
5381
5382 rm -f conftest.err conftest.$ac_ext
5383
5384   # OK, works on sane cases.  Now check whether nonexistent headers
5385   # can be detected and how.
5386   cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5392 #include <ac_nonexistent.h>
5393 _ACEOF
5394 if { (ac_try="$ac_cpp conftest.$ac_ext"
5395 case "(($ac_try" in
5396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397   *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } >/dev/null; then
5407   if test -s conftest.err; then
5408     ac_cpp_err=$ac_c_preproc_warn_flag
5409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410   else
5411     ac_cpp_err=
5412   fi
5413 else
5414   ac_cpp_err=yes
5415 fi
5416 if test -z "$ac_cpp_err"; then
5417   # Broken: success on invalid input.
5418 continue
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423   # Passes both tests.
5424 ac_preproc_ok=:
5425 break
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429
5430 done
5431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432 rm -f conftest.err conftest.$ac_ext
5433 if $ac_preproc_ok; then
5434   break
5435 fi
5436
5437     done
5438     ac_cv_prog_CPP=$CPP
5439
5440 fi
5441   CPP=$ac_cv_prog_CPP
5442 else
5443   ac_cv_prog_CPP=$CPP
5444 fi
5445 { echo "$as_me:$LINENO: result: $CPP" >&5
5446 echo "${ECHO_T}$CPP" >&6; }
5447 ac_preproc_ok=false
5448 for ac_c_preproc_warn_flag in '' yes
5449 do
5450   # Use a header file that comes with gcc, so configuring glibc
5451   # with a fresh cross-compiler works.
5452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453   # <limits.h> exists even on freestanding compilers.
5454   # On the NeXT, cc -E runs the code through the compiler's parser,
5455   # not just through cpp. "Syntax error" is here to catch this case.
5456   cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467                      Syntax error
5468 _ACEOF
5469 if { (ac_try="$ac_cpp conftest.$ac_ext"
5470 case "(($ac_try" in
5471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472   *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } >/dev/null; then
5482   if test -s conftest.err; then
5483     ac_cpp_err=$ac_c_preproc_warn_flag
5484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   :
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497   # Broken: fails on valid input.
5498 continue
5499 fi
5500
5501 rm -f conftest.err conftest.$ac_ext
5502
5503   # OK, works on sane cases.  Now check whether nonexistent headers
5504   # can be detected and how.
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <ac_nonexistent.h>
5512 _ACEOF
5513 if { (ac_try="$ac_cpp conftest.$ac_ext"
5514 case "(($ac_try" in
5515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516   *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } >/dev/null; then
5526   if test -s conftest.err; then
5527     ac_cpp_err=$ac_c_preproc_warn_flag
5528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529   else
5530     ac_cpp_err=
5531   fi
5532 else
5533   ac_cpp_err=yes
5534 fi
5535 if test -z "$ac_cpp_err"; then
5536   # Broken: success on invalid input.
5537 continue
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542   # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546
5547 rm -f conftest.err conftest.$ac_ext
5548
5549 done
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then
5553   :
5554 else
5555   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." >&2;}
5559    { (exit 1); exit 1; }; }
5560 fi
5561
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568 ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 if test -n "$ac_tool_prefix"; then
5574   for ac_prog in gcc
5575   do
5576     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580 if test "${ac_cv_prog_CC+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   if test -n "$CC"; then
5584   ac_cv_prog_CC="$CC" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591   for ac_exec_ext in '' $ac_executable_extensions; do
5592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5593     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 CC=$ac_cv_prog_CC
5604 if test -n "$CC"; then
5605   { echo "$as_me:$LINENO: result: $CC" >&5
5606 echo "${ECHO_T}$CC" >&6; }
5607 else
5608   { echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6; }
5610 fi
5611
5612
5613     test -n "$CC" && break
5614   done
5615 fi
5616 if test -z "$CC"; then
5617   ac_ct_CC=$CC
5618   for ac_prog in gcc
5619 do
5620   # Extract the first word of "$ac_prog", so it can be a program name with args.
5621 set dummy $ac_prog; ac_word=$2
5622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   if test -n "$ac_ct_CC"; then
5628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_exec_ext in '' $ac_executable_extensions; do
5636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5637     ac_cv_prog_ac_ct_CC="$ac_prog"
5638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648 if test -n "$ac_ct_CC"; then
5649   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5650 echo "${ECHO_T}$ac_ct_CC" >&6; }
5651 else
5652   { echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6; }
5654 fi
5655
5656
5657   test -n "$ac_ct_CC" && break
5658 done
5659
5660   if test "x$ac_ct_CC" = x; then
5661     CC=""
5662   else
5663     case $cross_compiling:$ac_tool_warned in
5664 yes:)
5665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666 whose name does not start with the host triplet.  If you think this
5667 configuration is useful to you, please write to autoconf@gnu.org." >&5
5668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669 whose name does not start with the host triplet.  If you think this
5670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673     CC=$ac_ct_CC
5674   fi
5675 fi
5676
5677
5678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5679 See \`config.log' for more details." >&5
5680 echo "$as_me: error: no acceptable C compiler found in \$PATH
5681 See \`config.log' for more details." >&2;}
5682    { (exit 1); exit 1; }; }
5683
5684 # Provide some information about the compiler.
5685 echo "$as_me:$LINENO: checking for C compiler version" >&5
5686 ac_compiler=`set X $ac_compile; echo $2`
5687 { (ac_try="$ac_compiler --version >&5"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693   (eval "$ac_compiler --version >&5") 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }
5697 { (ac_try="$ac_compiler -v >&5"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_compiler -v >&5") 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }
5707 { (ac_try="$ac_compiler -V >&5"
5708 case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713   (eval "$ac_compiler -V >&5") 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }
5717
5718 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h.  */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h.  */
5729
5730 int
5731 main ()
5732 {
5733 #ifndef __GNUC__
5734        choke me
5735 #endif
5736
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5743 case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748   (eval "$ac_compile") 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } &&
5755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; } &&
5765          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   ac_compiler_gnu=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780         ac_compiler_gnu=no
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5785
5786 fi
5787 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5789 GCC=`test $ac_compiler_gnu = yes && echo yes`
5790 ac_test_CFLAGS=${CFLAGS+set}
5791 ac_save_CFLAGS=$CFLAGS
5792 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5793 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5794 if test "${ac_cv_prog_cc_g+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   ac_save_c_werror_flag=$ac_c_werror_flag
5798    ac_c_werror_flag=yes
5799    ac_cv_prog_cc_g=no
5800    CFLAGS="-g"
5801    cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807
5808 int
5809 main ()
5810 {
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compile") 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831   { (case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_try") 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; } &&
5840          { ac_try='test -s conftest.$ac_objext'
5841   { (case "(($ac_try" in
5842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843   *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846   (eval "$ac_try") 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_prog_cc_g=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855         CFLAGS=""
5856       cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h.  */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h.  */
5862
5863 int
5864 main ()
5865 {
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_compile") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } &&
5885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886   { (case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_try") 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901   (eval "$ac_try") 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   :
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910         ac_c_werror_flag=$ac_save_c_werror_flag
5911          CFLAGS="-g"
5912          cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918
5919 int
5920 main ()
5921 {
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (ac_try="$ac_compile"
5929 case "(($ac_try" in
5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931   *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934   (eval "$ac_compile") 2>conftest.er1
5935   ac_status=$?
5936   grep -v '^ *+' conftest.er1 >conftest.err
5937   rm -f conftest.er1
5938   cat conftest.err >&5
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942   { (case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_try") 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; } &&
5951          { ac_try='test -s conftest.$ac_objext'
5952   { (case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_try") 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_cv_prog_cc_g=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976    ac_c_werror_flag=$ac_save_c_werror_flag
5977 fi
5978 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5980 if test "$ac_test_CFLAGS" = set; then
5981   CFLAGS=$ac_save_CFLAGS
5982 elif test $ac_cv_prog_cc_g = yes; then
5983   if test "$GCC" = yes; then
5984     CFLAGS="-g -O2"
5985   else
5986     CFLAGS="-g"
5987   fi
5988 else
5989   if test "$GCC" = yes; then
5990     CFLAGS="-O2"
5991   else
5992     CFLAGS=
5993   fi
5994 fi
5995 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5996 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_cc_c89+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   ac_cv_prog_cc_c89=no
6001 ac_save_CC=$CC
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <stdarg.h>
6009 #include <stdio.h>
6010 #include <sys/types.h>
6011 #include <sys/stat.h>
6012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6013 struct buf { int x; };
6014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015 static char *e (p, i)
6016      char **p;
6017      int i;
6018 {
6019   return p[i];
6020 }
6021 static char *f (char * (*g) (char **, int), char **p, ...)
6022 {
6023   char *s;
6024   va_list v;
6025   va_start (v,p);
6026   s = g (p, va_arg (v,int));
6027   va_end (v);
6028   return s;
6029 }
6030
6031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6032    function prototypes and stuff, but not '\xHH' hex character constants.
6033    These don't provoke an error unfortunately, instead are silently treated
6034    as 'x'.  The following induces an error, until -std is added to get
6035    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6036    array size at least.  It's necessary to write '\x00'==0 to get something
6037    that's true only with -std.  */
6038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6039
6040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041    inside strings and character constants.  */
6042 #define FOO(x) 'x'
6043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6044
6045 int test (int i, double x);
6046 struct s1 {int (*f) (int a);};
6047 struct s2 {int (*f) (double a);};
6048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6049 int argc;
6050 char **argv;
6051 int
6052 main ()
6053 {
6054 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6061 do
6062   CC="$ac_save_CC $ac_arg"
6063   rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6065 case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070   (eval "$ac_compile") 2>conftest.er1
6071   ac_status=$?
6072   grep -v '^ *+' conftest.er1 >conftest.err
6073   rm -f conftest.er1
6074   cat conftest.err >&5
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); } &&
6077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078   { (case "(($ac_try" in
6079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080   *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083   (eval "$ac_try") 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; } &&
6087          { ac_try='test -s conftest.$ac_objext'
6088   { (case "(($ac_try" in
6089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090   *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093   (eval "$ac_try") 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_prog_cc_c89=$ac_arg
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext
6106   test "x$ac_cv_prog_cc_c89" != "xno" && break
6107 done
6108 rm -f conftest.$ac_ext
6109 CC=$ac_save_CC
6110
6111 fi
6112 # AC_CACHE_VAL
6113 case "x$ac_cv_prog_cc_c89" in
6114   x)
6115     { echo "$as_me:$LINENO: result: none needed" >&5
6116 echo "${ECHO_T}none needed" >&6; } ;;
6117   xno)
6118     { echo "$as_me:$LINENO: result: unsupported" >&5
6119 echo "${ECHO_T}unsupported" >&6; } ;;
6120   *)
6121     CC="$CC $ac_cv_prog_cc_c89"
6122     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6123 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6124 esac
6125
6126
6127 ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133 ac_ext=cpp
6134 ac_cpp='$CXXCPP $CPPFLAGS'
6135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138 if test -z "$CXX"; then
6139   if test -n "$CCC"; then
6140     CXX=$CCC
6141   else
6142     if test -n "$ac_tool_prefix"; then
6143   for ac_prog in g++
6144   do
6145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_CXX+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test -n "$CXX"; then
6153   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 CXX=$ac_cv_prog_CXX
6173 if test -n "$CXX"; then
6174   { echo "$as_me:$LINENO: result: $CXX" >&5
6175 echo "${ECHO_T}$CXX" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180
6181
6182     test -n "$CXX" && break
6183   done
6184 fi
6185 if test -z "$CXX"; then
6186   ac_ct_CXX=$CXX
6187   for ac_prog in g++
6188 do
6189   # Extract the first word of "$ac_prog", so it can be a program name with args.
6190 set dummy $ac_prog; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$ac_ct_CXX"; then
6197   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_prog_ac_ct_CXX="$ac_prog"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217 if test -n "$ac_ct_CXX"; then
6218   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6219 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226   test -n "$ac_ct_CXX" && break
6227 done
6228
6229   if test "x$ac_ct_CXX" = x; then
6230     CXX="g++"
6231   else
6232     case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet.  If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&5
6237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6238 whose name does not start with the host triplet.  If you think this
6239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6240 ac_tool_warned=yes ;;
6241 esac
6242     CXX=$ac_ct_CXX
6243   fi
6244 fi
6245
6246   fi
6247 fi
6248 # Provide some information about the compiler.
6249 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6250 ac_compiler=`set X $ac_compile; echo $2`
6251 { (ac_try="$ac_compiler --version >&5"
6252 case "(($ac_try" in
6253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254   *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257   (eval "$ac_compiler --version >&5") 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }
6261 { (ac_try="$ac_compiler -v >&5"
6262 case "(($ac_try" in
6263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264   *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267   (eval "$ac_compiler -v >&5") 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }
6271 { (ac_try="$ac_compiler -V >&5"
6272 case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_compiler -V >&5") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }
6281
6282 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293
6294 int
6295 main ()
6296 {
6297 #ifndef __GNUC__
6298        choke me
6299 #endif
6300
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309   *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312   (eval "$ac_compile") 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }; } &&
6329          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_compiler_gnu=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344         ac_compiler_gnu=no
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6349
6350 fi
6351 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6353 GXX=`test $ac_compiler_gnu = yes && echo yes`
6354 ac_test_CXXFLAGS=${CXXFLAGS+set}
6355 ac_save_CXXFLAGS=$CXXFLAGS
6356 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6357 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6358 if test "${ac_cv_prog_cxx_g+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6362    ac_cxx_werror_flag=yes
6363    ac_cv_prog_cxx_g=no
6364    CXXFLAGS="-g"
6365    cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371
6372 int
6373 main ()
6374 {
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext
6381 if { (ac_try="$ac_compile"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_compile") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395   { (case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400   (eval "$ac_try") 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest.$ac_objext'
6405   { (case "(($ac_try" in
6406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407   *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410   (eval "$ac_try") 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_cv_prog_cxx_g=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419         CXXFLAGS=""
6420       cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426
6427 int
6428 main ()
6429 {
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6437 case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442   (eval "$ac_compile") 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450   { (case "(($ac_try" in
6451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452   *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455   (eval "$ac_try") 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; } &&
6459          { ac_try='test -s conftest.$ac_objext'
6460   { (case "(($ac_try" in
6461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462   *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465   (eval "$ac_try") 2>&5
6466   ac_status=$?
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); }; }; then
6469   :
6470 else
6471   echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475          CXXFLAGS="-g"
6476          cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482
6483 int
6484 main ()
6485 {
6486
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6493 case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498   (eval "$ac_compile") 2>conftest.er1
6499   ac_status=$?
6500   grep -v '^ *+' conftest.er1 >conftest.err
6501   rm -f conftest.er1
6502   cat conftest.err >&5
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } &&
6505          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6506   { (case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_try") 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; } &&
6515          { ac_try='test -s conftest.$ac_objext'
6516   { (case "(($ac_try" in
6517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518   *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521   (eval "$ac_try") 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_cv_prog_cxx_g=yes
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530
6531 fi
6532
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 fi
6535
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541 fi
6542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6543 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6544 if test "$ac_test_CXXFLAGS" = set; then
6545   CXXFLAGS=$ac_save_CXXFLAGS
6546 elif test $ac_cv_prog_cxx_g = yes; then
6547   if test "$GXX" = yes; then
6548     CXXFLAGS="-g -O2"
6549   else
6550     CXXFLAGS="-g"
6551   fi
6552 else
6553   if test "$GXX" = yes; then
6554     CXXFLAGS="-O2"
6555   else
6556     CXXFLAGS=
6557   fi
6558 fi
6559 ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565
6566 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6567 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6568 if test "${lt_cv_path_NM+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test -n "$NM"; then
6572   # Let the user override the test.
6573   lt_cv_path_NM="$NM"
6574 else
6575   lt_nm_to_check="${ac_tool_prefix}nm"
6576   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6577     lt_nm_to_check="$lt_nm_to_check nm"
6578   fi
6579   for lt_tmp_nm in $lt_nm_to_check; do
6580     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6582       IFS="$lt_save_ifs"
6583       test -z "$ac_dir" && ac_dir=.
6584       tmp_nm="$ac_dir/$lt_tmp_nm"
6585       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6586         # Check to see if the nm accepts a BSD-compat flag.
6587         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6588         #   nm: unknown option "B" ignored
6589         # Tru64's nm complains that /dev/null is an invalid object file
6590         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6591         */dev/null* | *'Invalid file or object type'*)
6592           lt_cv_path_NM="$tmp_nm -B"
6593           break
6594           ;;
6595         *)
6596           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6597           */dev/null*)
6598             lt_cv_path_NM="$tmp_nm -p"
6599             break
6600             ;;
6601           *)
6602             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6603             continue # so that we can try to find one that supports BSD flags
6604             ;;
6605           esac
6606           ;;
6607         esac
6608       fi
6609     done
6610     IFS="$lt_save_ifs"
6611   done
6612   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6613 fi
6614 fi
6615 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6616 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617 NM="$lt_cv_path_NM"
6618
6619
6620
6621 { echo "$as_me:$LINENO: checking for GNU make" >&5
6622 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6623 if test "${llvm_cv_gnu_make_command+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   llvm_cv_gnu_make_command=''
6627  for a in "$MAKE" make gmake gnumake ; do
6628   if test -z "$a" ; then continue ; fi ;
6629   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6630   then
6631    llvm_cv_gnu_make_command=$a ;
6632    break;
6633   fi
6634  done
6635 fi
6636 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6637 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6638  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6639    ifGNUmake='' ;
6640  else
6641    ifGNUmake='#' ;
6642    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6643 echo "${ECHO_T}\"Not found\"" >&6; };
6644  fi
6645
6646
6647 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6648 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6649 LN_S=$as_ln_s
6650 if test "$LN_S" = "ln -s"; then
6651   { echo "$as_me:$LINENO: result: yes" >&5
6652 echo "${ECHO_T}yes" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6655 echo "${ECHO_T}no, using $LN_S" >&6; }
6656 fi
6657
6658 # Extract the first word of "cmp", so it can be a program name with args.
6659 set dummy cmp; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_CMP+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   case $CMP in
6666   [\\/]* | ?:[\\/]*)
6667   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6668   ;;
6669   *)
6670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686   ;;
6687 esac
6688 fi
6689 CMP=$ac_cv_path_CMP
6690 if test -n "$CMP"; then
6691   { echo "$as_me:$LINENO: result: $CMP" >&5
6692 echo "${ECHO_T}$CMP" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699 # Extract the first word of "cp", so it can be a program name with args.
6700 set dummy cp; ac_word=$2
6701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703 if test "${ac_cv_path_CP+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   case $CP in
6707   [\\/]* | ?:[\\/]*)
6708   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6709   ;;
6710   *)
6711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6718     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727   ;;
6728 esac
6729 fi
6730 CP=$ac_cv_path_CP
6731 if test -n "$CP"; then
6732   { echo "$as_me:$LINENO: result: $CP" >&5
6733 echo "${ECHO_T}$CP" >&6; }
6734 else
6735   { echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6; }
6737 fi
6738
6739
6740 # Extract the first word of "date", so it can be a program name with args.
6741 set dummy date; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_DATE+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $DATE in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6768   ;;
6769 esac
6770 fi
6771 DATE=$ac_cv_path_DATE
6772 if test -n "$DATE"; then
6773   { echo "$as_me:$LINENO: result: $DATE" >&5
6774 echo "${ECHO_T}$DATE" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 # Extract the first word of "find", so it can be a program name with args.
6782 set dummy find; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_FIND+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $FIND in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6809   ;;
6810 esac
6811 fi
6812 FIND=$ac_cv_path_FIND
6813 if test -n "$FIND"; then
6814   { echo "$as_me:$LINENO: result: $FIND" >&5
6815 echo "${ECHO_T}$FIND" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 # Extract the first word of "grep", so it can be a program name with args.
6823 set dummy grep; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_GREP+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   case $GREP in
6830   [\\/]* | ?:[\\/]*)
6831   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6832   ;;
6833   *)
6834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6850   ;;
6851 esac
6852 fi
6853 GREP=$ac_cv_path_GREP
6854 if test -n "$GREP"; then
6855   { echo "$as_me:$LINENO: result: $GREP" >&5
6856 echo "${ECHO_T}$GREP" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862
6863 # Extract the first word of "mkdir", so it can be a program name with args.
6864 set dummy mkdir; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_MKDIR+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $MKDIR in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6891   ;;
6892 esac
6893 fi
6894 MKDIR=$ac_cv_path_MKDIR
6895 if test -n "$MKDIR"; then
6896   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6897 echo "${ECHO_T}$MKDIR" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 # Extract the first word of "mv", so it can be a program name with args.
6905 set dummy mv; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_MV+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $MV in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932   ;;
6933 esac
6934 fi
6935 MV=$ac_cv_path_MV
6936 if test -n "$MV"; then
6937   { echo "$as_me:$LINENO: result: $MV" >&5
6938 echo "${ECHO_T}$MV" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 if test -n "$ac_tool_prefix"; then
6946   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_prog_RANLIB+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   if test -n "$RANLIB"; then
6954   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 RANLIB=$ac_cv_prog_RANLIB
6974 if test -n "$RANLIB"; then
6975   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6976 echo "${ECHO_T}$RANLIB" >&6; }
6977 else
6978   { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6980 fi
6981
6982
6983 fi
6984 if test -z "$ac_cv_prog_RANLIB"; then
6985   ac_ct_RANLIB=$RANLIB
6986   # Extract the first word of "ranlib", so it can be a program name with args.
6987 set dummy ranlib; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   if test -n "$ac_ct_RANLIB"; then
6994   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001   for ac_exec_ext in '' $ac_executable_extensions; do
7002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003     ac_cv_prog_ac_ct_RANLIB="ranlib"
7004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7014 if test -n "$ac_ct_RANLIB"; then
7015   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7016 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7017 else
7018   { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7020 fi
7021
7022   if test "x$ac_ct_RANLIB" = x; then
7023     RANLIB=":"
7024   else
7025     case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet.  If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&5
7030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet.  If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035     RANLIB=$ac_ct_RANLIB
7036   fi
7037 else
7038   RANLIB="$ac_cv_prog_RANLIB"
7039 fi
7040
7041 # Extract the first word of "rm", so it can be a program name with args.
7042 set dummy rm; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_RM+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   case $RM in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058   for ac_exec_ext in '' $ac_executable_extensions; do
7059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069   ;;
7070 esac
7071 fi
7072 RM=$ac_cv_path_RM
7073 if test -n "$RM"; then
7074   { echo "$as_me:$LINENO: result: $RM" >&5
7075 echo "${ECHO_T}$RM" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 # Extract the first word of "sed", so it can be a program name with args.
7083 set dummy sed; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_SED+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   case $SED in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110   ;;
7111 esac
7112 fi
7113 SED=$ac_cv_path_SED
7114 if test -n "$SED"; then
7115   { echo "$as_me:$LINENO: result: $SED" >&5
7116 echo "${ECHO_T}$SED" >&6; }
7117 else
7118   { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7120 fi
7121
7122
7123 # Extract the first word of "tar", so it can be a program name with args.
7124 set dummy tar; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_TAR+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $TAR in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151   ;;
7152 esac
7153 fi
7154 TAR=$ac_cv_path_TAR
7155 if test -n "$TAR"; then
7156   { echo "$as_me:$LINENO: result: $TAR" >&5
7157 echo "${ECHO_T}$TAR" >&6; }
7158 else
7159   { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7161 fi
7162
7163
7164 # Extract the first word of "pwd", so it can be a program name with args.
7165 set dummy pwd; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_BINPWD+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   case $BINPWD in
7172   [\\/]* | ?:[\\/]*)
7173   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7174   ;;
7175   *)
7176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181   for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7192   ;;
7193 esac
7194 fi
7195 BINPWD=$ac_cv_path_BINPWD
7196 if test -n "$BINPWD"; then
7197   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7198 echo "${ECHO_T}$BINPWD" >&6; }
7199 else
7200   { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7202 fi
7203
7204
7205
7206 # Extract the first word of "Graphviz", so it can be a program name with args.
7207 set dummy Graphviz; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   case $GRAPHVIZ in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7234   ;;
7235 esac
7236 fi
7237 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7238 if test -n "$GRAPHVIZ"; then
7239   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7240 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7241 else
7242   { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7244 fi
7245
7246
7247 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7248
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_GRAPHVIZ 1
7251 _ACEOF
7252
7253     if test "$llvm_cv_os_type" = "MingW" ; then
7254     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255   fi
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7259 _ACEOF
7260
7261 fi
7262 # Extract the first word of "dot", so it can be a program name with args.
7263 set dummy dot; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_DOT+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $DOT in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290   ;;
7291 esac
7292 fi
7293 DOT=$ac_cv_path_DOT
7294 if test -n "$DOT"; then
7295   { echo "$as_me:$LINENO: result: $DOT" >&5
7296 echo "${ECHO_T}$DOT" >&6; }
7297 else
7298   { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7300 fi
7301
7302
7303 if test "$DOT" != "echo dot" ; then
7304
7305 cat >>confdefs.h <<\_ACEOF
7306 #define HAVE_DOT 1
7307 _ACEOF
7308
7309     if test "$llvm_cv_os_type" = "MingW" ; then
7310     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311   fi
7312
7313 cat >>confdefs.h <<_ACEOF
7314 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7315 _ACEOF
7316
7317 fi
7318 # Extract the first word of "fdp", so it can be a program name with args.
7319 set dummy fdp; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_FDP+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $FDP in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7346   ;;
7347 esac
7348 fi
7349 FDP=$ac_cv_path_FDP
7350 if test -n "$FDP"; then
7351   { echo "$as_me:$LINENO: result: $FDP" >&5
7352 echo "${ECHO_T}$FDP" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7357
7358
7359 if test "$FDP" != "echo fdp" ; then
7360
7361 cat >>confdefs.h <<\_ACEOF
7362 #define HAVE_FDP 1
7363 _ACEOF
7364
7365     if test "$llvm_cv_os_type" = "MingW" ; then
7366     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7367   fi
7368
7369 cat >>confdefs.h <<_ACEOF
7370 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7371 _ACEOF
7372
7373 fi
7374 # Extract the first word of "neato", so it can be a program name with args.
7375 set dummy neato; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_NEATO+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   case $NEATO in
7382   [\\/]* | ?:[\\/]*)
7383   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7384   ;;
7385   *)
7386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7402   ;;
7403 esac
7404 fi
7405 NEATO=$ac_cv_path_NEATO
7406 if test -n "$NEATO"; then
7407   { echo "$as_me:$LINENO: result: $NEATO" >&5
7408 echo "${ECHO_T}$NEATO" >&6; }
7409 else
7410   { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7413
7414
7415 if test "$NEATO" != "echo neato" ; then
7416
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_NEATO 1
7419 _ACEOF
7420
7421     if test "$llvm_cv_os_type" = "MingW" ; then
7422     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7423   fi
7424
7425 cat >>confdefs.h <<_ACEOF
7426 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7427 _ACEOF
7428
7429 fi
7430 # Extract the first word of "twopi", so it can be a program name with args.
7431 set dummy twopi; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_TWOPI+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $TWOPI in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7458   ;;
7459 esac
7460 fi
7461 TWOPI=$ac_cv_path_TWOPI
7462 if test -n "$TWOPI"; then
7463   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7464 echo "${ECHO_T}$TWOPI" >&6; }
7465 else
7466   { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470
7471 if test "$TWOPI" != "echo twopi" ; then
7472
7473 cat >>confdefs.h <<\_ACEOF
7474 #define HAVE_TWOPI 1
7475 _ACEOF
7476
7477     if test "$llvm_cv_os_type" = "MingW" ; then
7478     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7479   fi
7480
7481 cat >>confdefs.h <<_ACEOF
7482 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7483 _ACEOF
7484
7485 fi
7486 # Extract the first word of "circo", so it can be a program name with args.
7487 set dummy circo; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_CIRCO+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $CIRCO in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7514   ;;
7515 esac
7516 fi
7517 CIRCO=$ac_cv_path_CIRCO
7518 if test -n "$CIRCO"; then
7519   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7520 echo "${ECHO_T}$CIRCO" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527 if test "$CIRCO" != "echo circo" ; then
7528
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_CIRCO 1
7531 _ACEOF
7532
7533     if test "$llvm_cv_os_type" = "MingW" ; then
7534     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7535   fi
7536
7537 cat >>confdefs.h <<_ACEOF
7538 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7539 _ACEOF
7540
7541 fi
7542 for ac_prog in gv gsview32
7543 do
7544   # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; 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_GV+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $GV in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_GV="$GV" # 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_GV="$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   ;;
7572 esac
7573 fi
7574 GV=$ac_cv_path_GV
7575 if test -n "$GV"; then
7576   { echo "$as_me:$LINENO: result: $GV" >&5
7577 echo "${ECHO_T}$GV" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583
7584   test -n "$GV" && break
7585 done
7586 test -n "$GV" || GV="echo gv"
7587
7588 if test "$GV" != "echo gv" ; then
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_GV 1
7592 _ACEOF
7593
7594     if test "$llvm_cv_os_type" = "MingW" ; then
7595     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596   fi
7597
7598 cat >>confdefs.h <<_ACEOF
7599 #define LLVM_PATH_GV "$GV${EXEEXT}"
7600 _ACEOF
7601
7602 fi
7603 # Extract the first word of "dotty", so it can be a program name with args.
7604 set dummy dotty; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_DOTTY+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $DOTTY in
7611   [\\/]* | ?:[\\/]*)
7612   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7613   ;;
7614   *)
7615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7631   ;;
7632 esac
7633 fi
7634 DOTTY=$ac_cv_path_DOTTY
7635 if test -n "$DOTTY"; then
7636   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7637 echo "${ECHO_T}$DOTTY" >&6; }
7638 else
7639   { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7641 fi
7642
7643
7644 if test "$DOTTY" != "echo dotty" ; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_DOTTY 1
7648 _ACEOF
7649
7650     if test "$llvm_cv_os_type" = "MingW" ; then
7651     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652   fi
7653
7654 cat >>confdefs.h <<_ACEOF
7655 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7656 _ACEOF
7657
7658 fi
7659
7660
7661 # Extract the first word of "perl", so it can be a program name with args.
7662 set dummy perl; 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_PERL+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   case $PERL in
7669   [\\/]* | ?:[\\/]*)
7670   ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="none"
7689   ;;
7690 esac
7691 fi
7692 PERL=$ac_cv_path_PERL
7693 if test -n "$PERL"; then
7694   { echo "$as_me:$LINENO: result: $PERL" >&5
7695 echo "${ECHO_T}$PERL" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702 if test "$PERL" != "none"; then
7703   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7704 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7705   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7706     { echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6; }
7708   else
7709     PERL=none
7710     { echo "$as_me:$LINENO: result: not found" >&5
7711 echo "${ECHO_T}not found" >&6; }
7712   fi
7713 fi
7714
7715
7716 if test x"$PERL" = xnone; then
7717    HAVE_PERL=0
7718
7719    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7720 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7721    { (exit 1); exit 1; }; }
7722 else
7723    HAVE_PERL=1
7724
7725 fi
7726
7727 # Find a good install program.  We prefer a C program (faster),
7728 # so one script is as good as another.  But avoid the broken or
7729 # incompatible versions:
7730 # SysV /etc/install, /usr/sbin/install
7731 # SunOS /usr/etc/install
7732 # IRIX /sbin/install
7733 # AIX /bin/install
7734 # AmigaOS /C/install, which installs bootblocks on floppy discs
7735 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7736 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7737 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7738 # OS/2's system install, which has a completely different semantic
7739 # ./install, which can be erroneously created by make from ./install.sh.
7740 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7741 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7742 if test -z "$INSTALL"; then
7743 if test "${ac_cv_path_install+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751   # Account for people who put trailing slashes in PATH elements.
7752 case $as_dir/ in
7753   ./ | .// | /cC/* | \
7754   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7755   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7756   /usr/ucb/* ) ;;
7757   *)
7758     # OSF1 and SCO ODT 3.0 have their own names for install.
7759     # Don't use installbsd from OSF since it installs stuff as root
7760     # by default.
7761     for ac_prog in ginstall scoinst install; do
7762       for ac_exec_ext in '' $ac_executable_extensions; do
7763         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7764           if test $ac_prog = install &&
7765             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7766             # AIX install.  It has an incompatible calling convention.
7767             :
7768           elif test $ac_prog = install &&
7769             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7770             # program-specific install script used by HP pwplus--don't use.
7771             :
7772           else
7773             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7774             break 3
7775           fi
7776         fi
7777       done
7778     done
7779     ;;
7780 esac
7781 done
7782 IFS=$as_save_IFS
7783
7784
7785 fi
7786   if test "${ac_cv_path_install+set}" = set; then
7787     INSTALL=$ac_cv_path_install
7788   else
7789     # As a last resort, use the slow shell script.  Don't cache a
7790     # value for INSTALL within a source directory, because that will
7791     # break other packages using the cache if that directory is
7792     # removed, or if the value is a relative name.
7793     INSTALL=$ac_install_sh
7794   fi
7795 fi
7796 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7797 echo "${ECHO_T}$INSTALL" >&6; }
7798
7799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800 # It thinks the first close brace ends the variable substitution.
7801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7802
7803 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7804
7805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806
7807
7808 # Extract the first word of "bzip2", so it can be a program name with args.
7809 set dummy bzip2; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_BZIP2+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   case $BZIP2 in
7816   [\\/]* | ?:[\\/]*)
7817   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7818   ;;
7819   *)
7820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825   for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835   ;;
7836 esac
7837 fi
7838 BZIP2=$ac_cv_path_BZIP2
7839 if test -n "$BZIP2"; then
7840   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7841 echo "${ECHO_T}$BZIP2" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7845 fi
7846
7847
7848 # Extract the first word of "doxygen", so it can be a program name with args.
7849 set dummy doxygen; ac_word=$2
7850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   case $DOXYGEN in
7856   [\\/]* | ?:[\\/]*)
7857   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7858   ;;
7859   *)
7860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863   IFS=$as_save_IFS
7864   test -z "$as_dir" && as_dir=.
7865   for ac_exec_ext in '' $ac_executable_extensions; do
7866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869     break 2
7870   fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875   ;;
7876 esac
7877 fi
7878 DOXYGEN=$ac_cv_path_DOXYGEN
7879 if test -n "$DOXYGEN"; then
7880   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7881 echo "${ECHO_T}$DOXYGEN" >&6; }
7882 else
7883   { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7885 fi
7886
7887
7888 # Extract the first word of "groff", so it can be a program name with args.
7889 set dummy groff; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_GROFF+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   case $GROFF in
7896   [\\/]* | ?:[\\/]*)
7897   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7898   ;;
7899   *)
7900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903   IFS=$as_save_IFS
7904   test -z "$as_dir" && as_dir=.
7905   for ac_exec_ext in '' $ac_executable_extensions; do
7906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909     break 2
7910   fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915   ;;
7916 esac
7917 fi
7918 GROFF=$ac_cv_path_GROFF
7919 if test -n "$GROFF"; then
7920   { echo "$as_me:$LINENO: result: $GROFF" >&5
7921 echo "${ECHO_T}$GROFF" >&6; }
7922 else
7923   { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7925 fi
7926
7927
7928 # Extract the first word of "gzip", so it can be a program name with args.
7929 set dummy gzip; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_GZIP+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   case $GZIP in
7936   [\\/]* | ?:[\\/]*)
7937   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7938   ;;
7939   *)
7940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945   for ac_exec_ext in '' $ac_executable_extensions; do
7946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955   ;;
7956 esac
7957 fi
7958 GZIP=$ac_cv_path_GZIP
7959 if test -n "$GZIP"; then
7960   { echo "$as_me:$LINENO: result: $GZIP" >&5
7961 echo "${ECHO_T}$GZIP" >&6; }
7962 else
7963   { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7965 fi
7966
7967
7968 # Extract the first word of "pod2html", so it can be a program name with args.
7969 set dummy pod2html; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_POD2HTML+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   case $POD2HTML in
7976   [\\/]* | ?:[\\/]*)
7977   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7978   ;;
7979   *)
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985   for ac_exec_ext in '' $ac_executable_extensions; do
7986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995   ;;
7996 esac
7997 fi
7998 POD2HTML=$ac_cv_path_POD2HTML
7999 if test -n "$POD2HTML"; then
8000   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8001 echo "${ECHO_T}$POD2HTML" >&6; }
8002 else
8003   { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8005 fi
8006
8007
8008 # Extract the first word of "pod2man", so it can be a program name with args.
8009 set dummy pod2man; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_POD2MAN+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   case $POD2MAN in
8016   [\\/]* | ?:[\\/]*)
8017   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8018   ;;
8019   *)
8020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023   IFS=$as_save_IFS
8024   test -z "$as_dir" && as_dir=.
8025   for ac_exec_ext in '' $ac_executable_extensions; do
8026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029     break 2
8030   fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035   ;;
8036 esac
8037 fi
8038 POD2MAN=$ac_cv_path_POD2MAN
8039 if test -n "$POD2MAN"; then
8040   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8041 echo "${ECHO_T}$POD2MAN" >&6; }
8042 else
8043   { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8045 fi
8046
8047
8048 # Extract the first word of "runtest", so it can be a program name with args.
8049 set dummy runtest; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_RUNTEST+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055   case $RUNTEST in
8056   [\\/]* | ?:[\\/]*)
8057   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8058   ;;
8059   *)
8060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8062 do
8063   IFS=$as_save_IFS
8064   test -z "$as_dir" && as_dir=.
8065   for ac_exec_ext in '' $ac_executable_extensions; do
8066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069     break 2
8070   fi
8071 done
8072 done
8073 IFS=$as_save_IFS
8074
8075   ;;
8076 esac
8077 fi
8078 RUNTEST=$ac_cv_path_RUNTEST
8079 if test -n "$RUNTEST"; then
8080   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8081 echo "${ECHO_T}$RUNTEST" >&6; }
8082 else
8083   { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8085 fi
8086
8087
8088
8089 no_itcl=true
8090 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8091 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8092
8093 # Check whether --with-tclinclude was given.
8094 if test "${with_tclinclude+set}" = set; then
8095   withval=$with_tclinclude; with_tclinclude=${withval}
8096 else
8097   with_tclinclude=''
8098 fi
8099
8100 if test "${ac_cv_path_tclsh+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103
8104 if test x"${with_tclinclude}" != x ; then
8105   if test -f ${with_tclinclude}/tclsh ; then
8106     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8107   elif test -f ${with_tclinclude}/src/tclsh ; then
8108     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8109   else
8110     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8111 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8112    { (exit 1); exit 1; }; }
8113   fi
8114 fi
8115
8116 if test x"${ac_cv_path_tclsh}" = x ; then
8117   { echo "$as_me:$LINENO: result: none" >&5
8118 echo "${ECHO_T}none" >&6; }
8119   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
8120 do
8121   # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125 if test "${ac_cv_path_TCLSH+set}" = set; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   case $TCLSH in
8129   [\\/]* | ?:[\\/]*)
8130   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8131   ;;
8132   *)
8133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138   for ac_exec_ext in '' $ac_executable_extensions; do
8139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8140     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148   ;;
8149 esac
8150 fi
8151 TCLSH=$ac_cv_path_TCLSH
8152 if test -n "$TCLSH"; then
8153   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8154 echo "${ECHO_T}$TCLSH" >&6; }
8155 else
8156   { echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6; }
8158 fi
8159
8160
8161   test -n "$TCLSH" && break
8162 done
8163
8164   if test x"${TCLSH}" = x ; then
8165     ac_cv_path_tclsh='';
8166   else
8167     ac_cv_path_tclsh="${TCLSH}";
8168   fi
8169 else
8170   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8171 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8172   TCLSH="${ac_cv_path_tclsh}"
8173
8174 fi
8175
8176 fi
8177
8178 # Extract the first word of "zip", so it can be a program name with args.
8179 set dummy zip; ac_word=$2
8180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182 if test "${ac_cv_path_ZIP+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   case $ZIP in
8186   [\\/]* | ?:[\\/]*)
8187   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8188   ;;
8189   *)
8190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195   for ac_exec_ext in '' $ac_executable_extensions; do
8196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8197     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202 done
8203 IFS=$as_save_IFS
8204
8205   ;;
8206 esac
8207 fi
8208 ZIP=$ac_cv_path_ZIP
8209 if test -n "$ZIP"; then
8210   { echo "$as_me:$LINENO: result: $ZIP" >&5
8211 echo "${ECHO_T}$ZIP" >&6; }
8212 else
8213   { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8215 fi
8216
8217
8218 for ac_prog in ocamlc
8219 do
8220   # Extract the first word of "$ac_prog", so it can be a program name with args.
8221 set dummy $ac_prog; ac_word=$2
8222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224 if test "${ac_cv_path_OCAMLC+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   case $OCAMLC in
8228   [\\/]* | ?:[\\/]*)
8229   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8230   ;;
8231   *)
8232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237   for ac_exec_ext in '' $ac_executable_extensions; do
8238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8239     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244 done
8245 IFS=$as_save_IFS
8246
8247   ;;
8248 esac
8249 fi
8250 OCAMLC=$ac_cv_path_OCAMLC
8251 if test -n "$OCAMLC"; then
8252   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8253 echo "${ECHO_T}$OCAMLC" >&6; }
8254 else
8255   { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8257 fi
8258
8259
8260   test -n "$OCAMLC" && break
8261 done
8262
8263 for ac_prog in ocamlopt
8264 do
8265   # Extract the first word of "$ac_prog", so it can be a program name with args.
8266 set dummy $ac_prog; ac_word=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   case $OCAMLOPT in
8273   [\\/]* | ?:[\\/]*)
8274   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8275   ;;
8276   *)
8277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292   ;;
8293 esac
8294 fi
8295 OCAMLOPT=$ac_cv_path_OCAMLOPT
8296 if test -n "$OCAMLOPT"; then
8297   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8298 echo "${ECHO_T}$OCAMLOPT" >&6; }
8299 else
8300   { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8302 fi
8303
8304
8305   test -n "$OCAMLOPT" && break
8306 done
8307
8308 for ac_prog in ocamldep
8309 do
8310   # Extract the first word of "$ac_prog", so it can be a program name with args.
8311 set dummy $ac_prog; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   case $OCAMLDEP in
8318   [\\/]* | ?:[\\/]*)
8319   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8320   ;;
8321   *)
8322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325   IFS=$as_save_IFS
8326   test -z "$as_dir" && as_dir=.
8327   for ac_exec_ext in '' $ac_executable_extensions; do
8328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331     break 2
8332   fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337   ;;
8338 esac
8339 fi
8340 OCAMLDEP=$ac_cv_path_OCAMLDEP
8341 if test -n "$OCAMLDEP"; then
8342   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8343 echo "${ECHO_T}$OCAMLDEP" >&6; }
8344 else
8345   { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8347 fi
8348
8349
8350   test -n "$OCAMLDEP" && break
8351 done
8352
8353 for ac_prog in ocamldoc
8354 do
8355   # Extract the first word of "$ac_prog", so it can be a program name with args.
8356 set dummy $ac_prog; ac_word=$2
8357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   case $OCAMLDOC in
8363   [\\/]* | ?:[\\/]*)
8364   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8365   ;;
8366   *)
8367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382   ;;
8383 esac
8384 fi
8385 OCAMLDOC=$ac_cv_path_OCAMLDOC
8386 if test -n "$OCAMLDOC"; then
8387   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8388 echo "${ECHO_T}$OCAMLDOC" >&6; }
8389 else
8390   { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8392 fi
8393
8394
8395   test -n "$OCAMLDOC" && break
8396 done
8397
8398 for ac_prog in gas as
8399 do
8400   # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_path_GAS+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   case $GAS in
8408   [\\/]* | ?:[\\/]*)
8409   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8410   ;;
8411   *)
8412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415   IFS=$as_save_IFS
8416   test -z "$as_dir" && as_dir=.
8417   for ac_exec_ext in '' $ac_executable_extensions; do
8418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8419     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421     break 2
8422   fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427   ;;
8428 esac
8429 fi
8430 GAS=$ac_cv_path_GAS
8431 if test -n "$GAS"; then
8432   { echo "$as_me:$LINENO: result: $GAS" >&5
8433 echo "${ECHO_T}$GAS" >&6; }
8434 else
8435   { echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6; }
8437 fi
8438
8439
8440   test -n "$GAS" && break
8441 done
8442
8443
8444 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8445 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8446 if test "${llvm_cv_link_use_r+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449    ac_ext=c
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455   oldcflags="$CFLAGS"
8456   CFLAGS="$CFLAGS -Wl,-R."
8457   cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 int
8465 main ()
8466 {
8467 int main() { return 0; }
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_link") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487   { (case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_try") 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502   (eval "$ac_try") 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   llvm_cv_link_use_r=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511         llvm_cv_link_use_r=no
8512 fi
8513
8514 rm -f core conftest.err conftest.$ac_objext \
8515       conftest$ac_exeext conftest.$ac_ext
8516   CFLAGS="$oldcflags"
8517   ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524 fi
8525 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8526 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8527 if test "$llvm_cv_link_use_r" = yes ; then
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_LINK_R 1
8531 _ACEOF
8532
8533   fi
8534
8535
8536 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8537 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8538 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541    ac_ext=c
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547   oldcflags="$CFLAGS"
8548   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8549   cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555
8556 int
8557 main ()
8558 {
8559 int main() { return 0; }
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_link") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } &&
8578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579   { (case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_try") 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest$ac_exeext'
8589   { (case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_try") 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   llvm_cv_link_use_export_dynamic=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603         llvm_cv_link_use_export_dynamic=no
8604 fi
8605
8606 rm -f core conftest.err conftest.$ac_objext \
8607       conftest$ac_exeext conftest.$ac_ext
8608   CFLAGS="$oldcflags"
8609   ac_ext=c
8610 ac_cpp='$CPP $CPPFLAGS'
8611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616 fi
8617 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8618 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8619 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8620
8621 cat >>confdefs.h <<\_ACEOF
8622 #define HAVE_LINK_EXPORT_DYNAMIC 1
8623 _ACEOF
8624
8625   fi
8626
8627
8628
8629
8630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8632 if test "${ac_cv_c_const+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641
8642 int
8643 main ()
8644 {
8645 /* FIXME: Include the comments suggested by Paul. */
8646 #ifndef __cplusplus
8647   /* Ultrix mips cc rejects this.  */
8648   typedef int charset[2];
8649   const charset x;
8650   /* SunOS 4.1.1 cc rejects this.  */
8651   char const *const *ccp;
8652   char **p;
8653   /* NEC SVR4.0.2 mips cc rejects this.  */
8654   struct point {int x, y;};
8655   static struct point const zero = {0,0};
8656   /* AIX XL C 1.02.0.0 rejects this.
8657      It does not let you subtract one const X* pointer from another in
8658      an arm of an if-expression whose if-part is not a constant
8659      expression */
8660   const char *g = "string";
8661   ccp = &g + (g ? g-g : 0);
8662   /* HPUX 7.0 cc rejects these. */
8663   ++ccp;
8664   p = (char**) ccp;
8665   ccp = (char const *const *) p;
8666   { /* SCO 3.2v4 cc rejects this.  */
8667     char *t;
8668     char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670     *t++ = 0;
8671     if (s) return 0;
8672   }
8673   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8674     int x[] = {25, 17};
8675     const int *foo = &x[0];
8676     ++foo;
8677   }
8678   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8679     typedef const int *iptr;
8680     iptr p = 0;
8681     ++p;
8682   }
8683   { /* AIX XL C 1.02.0.0 rejects this saying
8684        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8685     struct s { int j; const int *ap[3]; };
8686     struct s *b; b->j = 5;
8687   }
8688   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689     const int foo = 10;
8690     if (!foo) return 0;
8691   }
8692   return !x[0] && !zero.x;
8693 #endif
8694
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8701 case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_compile") 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714   { (case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_try") 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest.$ac_objext'
8724   { (case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729   (eval "$ac_try") 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_c_const=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738         ac_cv_c_const=no
8739 fi
8740
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 fi
8743 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8744 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8745 if test $ac_cv_c_const = no; then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define const
8749 _ACEOF
8750
8751 fi
8752
8753
8754
8755
8756
8757
8758 ac_header_dirent=no
8759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8760   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8761 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8762 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766   cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h.  */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h.  */
8772 #include <sys/types.h>
8773 #include <$ac_hdr>
8774
8775 int
8776 main ()
8777 {
8778 if ((DIR *) 0)
8779 return 0;
8780   ;
8781   return 0;
8782 }
8783 _ACEOF
8784 rm -f conftest.$ac_objext
8785 if { (ac_try="$ac_compile"
8786 case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_compile") 2>conftest.er1
8792   ac_status=$?
8793   grep -v '^ *+' conftest.er1 >conftest.err
8794   rm -f conftest.er1
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } &&
8798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8799   { (case "(($ac_try" in
8800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801   *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804   (eval "$ac_try") 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest.$ac_objext'
8809   { (case "(($ac_try" in
8810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811   *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814   (eval "$ac_try") 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   eval "$as_ac_Header=yes"
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823         eval "$as_ac_Header=no"
8824 fi
8825
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 fi
8828 ac_res=`eval echo '${'$as_ac_Header'}'`
8829                { echo "$as_me:$LINENO: result: $ac_res" >&5
8830 echo "${ECHO_T}$ac_res" >&6; }
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832   cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8834 _ACEOF
8835
8836 ac_header_dirent=$ac_hdr; break
8837 fi
8838
8839 done
8840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8841 if test $ac_header_dirent = dirent.h; then
8842   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8844 if test "${ac_cv_search_opendir+set}" = set; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847   ac_func_search_save_LIBS=$LIBS
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any GCC internal prototype to avoid an error.
8856    Use char because int might match the return type of a GCC
8857    builtin and then its argument prototype would still apply.  */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 char opendir ();
8862 int
8863 main ()
8864 {
8865 return opendir ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 for ac_lib in '' dir; do
8871   if test -z "$ac_lib"; then
8872     ac_res="none required"
8873   else
8874     ac_res=-l$ac_lib
8875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8876   fi
8877   rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (ac_try="$ac_link"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_link") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892   { (case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_try") 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907   (eval "$ac_try") 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_search_opendir=$ac_res
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916
8917 fi
8918
8919 rm -f core conftest.err conftest.$ac_objext \
8920       conftest$ac_exeext
8921   if test "${ac_cv_search_opendir+set}" = set; then
8922   break
8923 fi
8924 done
8925 if test "${ac_cv_search_opendir+set}" = set; then
8926   :
8927 else
8928   ac_cv_search_opendir=no
8929 fi
8930 rm conftest.$ac_ext
8931 LIBS=$ac_func_search_save_LIBS
8932 fi
8933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8935 ac_res=$ac_cv_search_opendir
8936 if test "$ac_res" != no; then
8937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8938
8939 fi
8940
8941 else
8942   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8944 if test "${ac_cv_search_opendir+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   ac_func_search_save_LIBS=$LIBS
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954
8955 /* Override any GCC internal prototype to avoid an error.
8956    Use char because int might match the return type of a GCC
8957    builtin and then its argument prototype would still apply.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 #endif
8961 char opendir ();
8962 int
8963 main ()
8964 {
8965 return opendir ();
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 for ac_lib in '' x; do
8971   if test -z "$ac_lib"; then
8972     ac_res="none required"
8973   else
8974     ac_res=-l$ac_lib
8975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8976   fi
8977   rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981   *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984   (eval "$ac_link") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992   { (case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_try") 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (case "(($ac_try" in
9003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004   *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007   (eval "$ac_try") 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; }; then
9011   ac_cv_search_opendir=$ac_res
9012 else
9013   echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016
9017 fi
9018
9019 rm -f core conftest.err conftest.$ac_objext \
9020       conftest$ac_exeext
9021   if test "${ac_cv_search_opendir+set}" = set; then
9022   break
9023 fi
9024 done
9025 if test "${ac_cv_search_opendir+set}" = set; then
9026   :
9027 else
9028   ac_cv_search_opendir=no
9029 fi
9030 rm conftest.$ac_ext
9031 LIBS=$ac_func_search_save_LIBS
9032 fi
9033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9035 ac_res=$ac_cv_search_opendir
9036 if test "$ac_res" != no; then
9037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038
9039 fi
9040
9041 fi
9042
9043
9044 for ac_header in dlfcn.h
9045 do
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9051   echo $ECHO_N "(cached) $ECHO_C" >&6
9052 fi
9053 ac_res=`eval echo '${'$as_ac_Header'}'`
9054                { echo "$as_me:$LINENO: result: $ac_res" >&5
9055 echo "${ECHO_T}$ac_res" >&6; }
9056 else
9057   # Is the header compilable?
9058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h.  */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h.  */
9066 $ac_includes_default
9067 #include <$ac_header>
9068 _ACEOF
9069 rm -f conftest.$ac_objext
9070 if { (ac_try="$ac_compile"
9071 case "(($ac_try" in
9072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073   *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076   (eval "$ac_compile") 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084   { (case "(($ac_try" in
9085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086   *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089   (eval "$ac_try") 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; } &&
9093          { ac_try='test -s conftest.$ac_objext'
9094   { (case "(($ac_try" in
9095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096   *) ac_try_echo=$ac_try;;
9097 esac
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099   (eval "$ac_try") 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; }; then
9103   ac_header_compiler=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108         ac_header_compiler=no
9109 fi
9110
9111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113 echo "${ECHO_T}$ac_header_compiler" >&6; }
9114
9115 # Is the header present?
9116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
9125 _ACEOF
9126 if { (ac_try="$ac_cpp conftest.$ac_ext"
9127 case "(($ac_try" in
9128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129   *) ac_try_echo=$ac_try;;
9130 esac
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9133   ac_status=$?
9134   grep -v '^ *+' conftest.er1 >conftest.err
9135   rm -f conftest.er1
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } >/dev/null; then
9139   if test -s conftest.err; then
9140     ac_cpp_err=$ac_c_preproc_warn_flag
9141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9142   else
9143     ac_cpp_err=
9144   fi
9145 else
9146   ac_cpp_err=yes
9147 fi
9148 if test -z "$ac_cpp_err"; then
9149   ac_header_preproc=yes
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154   ac_header_preproc=no
9155 fi
9156
9157 rm -f conftest.err conftest.$ac_ext
9158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159 echo "${ECHO_T}$ac_header_preproc" >&6; }
9160
9161 # So?  What about this header?
9162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163   yes:no: )
9164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168     ac_header_preproc=yes
9169     ;;
9170   no:yes:* )
9171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183     ( cat <<\_ASBOX
9184 ## ----------------------------------- ##
9185 ## Report this to llvmbugs@cs.uiuc.edu ##
9186 ## ----------------------------------- ##
9187 _ASBOX
9188      ) | sed "s/^/$as_me: WARNING:     /" >&2
9189     ;;
9190 esac
9191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   eval "$as_ac_Header=\$ac_header_preproc"
9197 fi
9198 ac_res=`eval echo '${'$as_ac_Header'}'`
9199                { echo "$as_me:$LINENO: result: $ac_res" >&5
9200 echo "${ECHO_T}$ac_res" >&6; }
9201
9202 fi
9203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204   cat >>confdefs.h <<_ACEOF
9205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206 _ACEOF
9207
9208 fi
9209
9210 done
9211
9212 # Check whether --enable-ltdl-install was given.
9213 if test "${enable_ltdl_install+set}" = set; then
9214   enableval=$enable_ltdl_install;
9215 fi
9216
9217
9218
9219
9220 if test x"${enable_ltdl_install-no}" != xno; then
9221   INSTALL_LTDL_TRUE=
9222   INSTALL_LTDL_FALSE='#'
9223 else
9224   INSTALL_LTDL_TRUE='#'
9225   INSTALL_LTDL_FALSE=
9226 fi
9227
9228
9229
9230 if test x"${enable_ltdl_convenience-no}" != xno; then
9231   CONVENIENCE_LTDL_TRUE=
9232   CONVENIENCE_LTDL_FALSE='#'
9233 else
9234   CONVENIENCE_LTDL_TRUE='#'
9235   CONVENIENCE_LTDL_FALSE=
9236 fi
9237
9238
9239 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9241 library_names_spec=
9242 libname_spec='lib$name'
9243 soname_spec=
9244 shrext_cmds=".so"
9245 postinstall_cmds=
9246 postuninstall_cmds=
9247 finish_cmds=
9248 finish_eval=
9249 shlibpath_var=
9250 shlibpath_overrides_runpath=unknown
9251 version_type=none
9252 dynamic_linker="$host_os ld.so"
9253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254 if test "$GCC" = yes; then
9255   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257     # if the path contains ";" then we assume it to be the separator
9258     # otherwise default to the standard path separator (i.e. ":") - it is
9259     # assumed that no part of a normal pathname contains ";" but that should
9260     # okay in the real world where ";" in dirpaths is itself problematic.
9261     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262   else
9263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264   fi
9265 else
9266   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267 fi
9268 need_lib_prefix=unknown
9269 hardcode_into_libs=no
9270
9271 # when you set need_version to no, make sure it does not cause -set_version
9272 # flags to be left without arguments
9273 need_version=unknown
9274
9275 case $host_os in
9276 aix3*)
9277   version_type=linux
9278   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279   shlibpath_var=LIBPATH
9280
9281   # AIX 3 has no versioning support, so we append a major version to the name.
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   ;;
9284
9285 aix4* | aix5*)
9286   version_type=linux
9287   need_lib_prefix=no
9288   need_version=no
9289   hardcode_into_libs=yes
9290   if test "$host_cpu" = ia64; then
9291     # AIX 5 supports IA64
9292     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293     shlibpath_var=LD_LIBRARY_PATH
9294   else
9295     # With GCC up to 2.95.x, collect2 would create an import file
9296     # for dependence libraries.  The import file would start with
9297     # the line `#! .'.  This would cause the generated library to
9298     # depend on `.', always an invalid library.  This was fixed in
9299     # development snapshots of GCC prior to 3.0.
9300     case $host_os in
9301       aix4 | aix4.[01] | aix4.[01].*)
9302       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303            echo ' yes '
9304            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305         :
9306       else
9307         can_build_shared=no
9308       fi
9309       ;;
9310     esac
9311     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312     # soname into executable. Probably we can add versioning support to
9313     # collect2, so additional links can be useful in future.
9314     if test "$aix_use_runtimelinking" = yes; then
9315       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316       # instead of lib<name>.a to let people know that these are not
9317       # typical AIX shared libraries.
9318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319     else
9320       # We preserve .a as extension for shared libraries through AIX4.2
9321       # and later when we are not doing run time linking.
9322       library_names_spec='${libname}${release}.a $libname.a'
9323       soname_spec='${libname}${release}${shared_ext}$major'
9324     fi
9325     shlibpath_var=LIBPATH
9326   fi
9327   ;;
9328
9329 amigaos*)
9330   library_names_spec='$libname.ixlibrary $libname.a'
9331   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332   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'
9333   ;;
9334
9335 beos*)
9336   library_names_spec='${libname}${shared_ext}'
9337   dynamic_linker="$host_os ld.so"
9338   shlibpath_var=LIBRARY_PATH
9339   ;;
9340
9341 bsdi[45]*)
9342   version_type=linux
9343   need_version=no
9344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345   soname_spec='${libname}${release}${shared_ext}$major'
9346   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350   # the default ld.so.conf also contains /usr/contrib/lib and
9351   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352   # libtool to hard-code these into programs
9353   ;;
9354
9355 cygwin* | mingw* | pw32*)
9356   version_type=windows
9357   shrext_cmds=".dll"
9358   need_version=no
9359   need_lib_prefix=no
9360
9361   case $GCC,$host_os in
9362   yes,cygwin* | yes,mingw* | yes,pw32*)
9363     library_names_spec='$libname.dll.a'
9364     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365     postinstall_cmds='base_file=`basename \${file}`~
9366       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367       dldir=$destdir/`dirname \$dlpath`~
9368       test -d \$dldir || mkdir -p \$dldir~
9369       $install_prog $dir/$dlname \$dldir/$dlname~
9370       chmod a+x \$dldir/$dlname'
9371     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372       dlpath=$dir/\$dldll~
9373        $rm \$dlpath'
9374     shlibpath_overrides_runpath=yes
9375
9376     case $host_os in
9377     cygwin*)
9378       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381       ;;
9382     mingw*)
9383       # MinGW DLLs use traditional 'lib' prefix
9384       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387         # It is most probably a Windows format PATH printed by
9388         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389         # path with ; separators, and with drive letters. We can handle the
9390         # drive letters (cygwin fileutils understands them), so leave them,
9391         # especially as we might pass files found there to a mingw objdump,
9392         # which wouldn't understand a cygwinified path. Ahh.
9393         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394       else
9395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9396       fi
9397       ;;
9398     pw32*)
9399       # pw32 DLLs use 'pw' prefix rather than 'lib'
9400       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401       ;;
9402     esac
9403     ;;
9404
9405   *)
9406     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407     ;;
9408   esac
9409   dynamic_linker='Win32 ld.exe'
9410   # FIXME: first we should search . and the directory the executable is in
9411   shlibpath_var=PATH
9412   ;;
9413
9414 darwin* | rhapsody*)
9415   dynamic_linker="$host_os dyld"
9416   version_type=darwin
9417   need_lib_prefix=no
9418   need_version=no
9419   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420   soname_spec='${libname}${release}${major}$shared_ext'
9421   shlibpath_overrides_runpath=yes
9422   shlibpath_var=DYLD_LIBRARY_PATH
9423   shrext_cmds='.dylib'
9424   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425   if test "$GCC" = yes; then
9426     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"`
9427   else
9428     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429   fi
9430   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431   ;;
9432
9433 dgux*)
9434   version_type=linux
9435   need_lib_prefix=no
9436   need_version=no
9437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438   soname_spec='${libname}${release}${shared_ext}$major'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   ;;
9441
9442 freebsd1*)
9443   dynamic_linker=no
9444   ;;
9445
9446 kfreebsd*-gnu)
9447   version_type=linux
9448   need_lib_prefix=no
9449   need_version=no
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451   soname_spec='${libname}${release}${shared_ext}$major'
9452   shlibpath_var=LD_LIBRARY_PATH
9453   shlibpath_overrides_runpath=no
9454   hardcode_into_libs=yes
9455   dynamic_linker='GNU ld.so'
9456   ;;
9457
9458 freebsd* | dragonfly*)
9459   # DragonFly does not have aout.  When/if they implement a new
9460   # versioning mechanism, adjust this.
9461   if test -x /usr/bin/objformat; then
9462     objformat=`/usr/bin/objformat`
9463   else
9464     case $host_os in
9465     freebsd[123]*) objformat=aout ;;
9466     *) objformat=elf ;;
9467     esac
9468   fi
9469   version_type=freebsd-$objformat
9470   case $version_type in
9471     freebsd-elf*)
9472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473       need_version=no
9474       need_lib_prefix=no
9475       ;;
9476     freebsd-*)
9477       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478       need_version=yes
9479       ;;
9480   esac
9481   shlibpath_var=LD_LIBRARY_PATH
9482   case $host_os in
9483   freebsd2*)
9484     shlibpath_overrides_runpath=yes
9485     ;;
9486   freebsd3.[01]* | freebsdelf3.[01]*)
9487     shlibpath_overrides_runpath=yes
9488     hardcode_into_libs=yes
9489     ;;
9490   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9492     shlibpath_overrides_runpath=no
9493     hardcode_into_libs=yes
9494     ;;
9495   freebsd*) # from 4.6 on
9496     shlibpath_overrides_runpath=yes
9497     hardcode_into_libs=yes
9498     ;;
9499   esac
9500   ;;
9501
9502 gnu*)
9503   version_type=linux
9504   need_lib_prefix=no
9505   need_version=no
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   hardcode_into_libs=yes
9510   ;;
9511
9512 hpux9* | hpux10* | hpux11*)
9513   # Give a soname corresponding to the major version so that dld.sl refuses to
9514   # link against other versions.
9515   version_type=sunos
9516   need_lib_prefix=no
9517   need_version=no
9518   case $host_cpu in
9519   ia64*)
9520     shrext_cmds='.so'
9521     hardcode_into_libs=yes
9522     dynamic_linker="$host_os dld.so"
9523     shlibpath_var=LD_LIBRARY_PATH
9524     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526     soname_spec='${libname}${release}${shared_ext}$major'
9527     if test "X$HPUX_IA64_MODE" = X32; then
9528       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529     else
9530       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531     fi
9532     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533     ;;
9534    hppa*64*)
9535      shrext_cmds='.sl'
9536      hardcode_into_libs=yes
9537      dynamic_linker="$host_os dld.sl"
9538      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541      soname_spec='${libname}${release}${shared_ext}$major'
9542      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544      ;;
9545    *)
9546     shrext_cmds='.sl'
9547     dynamic_linker="$host_os dld.sl"
9548     shlibpath_var=SHLIB_PATH
9549     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551     soname_spec='${libname}${release}${shared_ext}$major'
9552     ;;
9553   esac
9554   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555   postinstall_cmds='chmod 555 $lib'
9556   ;;
9557
9558 interix3*)
9559   version_type=linux
9560   need_lib_prefix=no
9561   need_version=no
9562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563   soname_spec='${libname}${release}${shared_ext}$major'
9564   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565   shlibpath_var=LD_LIBRARY_PATH
9566   shlibpath_overrides_runpath=no
9567   hardcode_into_libs=yes
9568   ;;
9569
9570 irix5* | irix6* | nonstopux*)
9571   case $host_os in
9572     nonstopux*) version_type=nonstopux ;;
9573     *)
9574         if test "$lt_cv_prog_gnu_ld" = yes; then
9575                 version_type=linux
9576         else
9577                 version_type=irix
9578         fi ;;
9579   esac
9580   need_lib_prefix=no
9581   need_version=no
9582   soname_spec='${libname}${release}${shared_ext}$major'
9583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584   case $host_os in
9585   irix5* | nonstopux*)
9586     libsuff= shlibsuff=
9587     ;;
9588   *)
9589     case $LD in # libtool.m4 will add one of these switches to LD
9590     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591       libsuff= shlibsuff= libmagic=32-bit;;
9592     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593       libsuff=32 shlibsuff=N32 libmagic=N32;;
9594     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596     *) libsuff= shlibsuff= libmagic=never-match;;
9597     esac
9598     ;;
9599   esac
9600   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601   shlibpath_overrides_runpath=no
9602   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604   hardcode_into_libs=yes
9605   ;;
9606
9607 # No shared lib support for Linux oldld, aout, or coff.
9608 linux*oldld* | linux*aout* | linux*coff*)
9609   dynamic_linker=no
9610   ;;
9611
9612 # This must be Linux ELF.
9613 linux*)
9614   version_type=linux
9615   need_lib_prefix=no
9616   need_version=no
9617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618   soname_spec='${libname}${release}${shared_ext}$major'
9619   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620   shlibpath_var=LD_LIBRARY_PATH
9621   shlibpath_overrides_runpath=no
9622   # This implies no fast_install, which is unacceptable.
9623   # Some rework will be needed to allow for fast_install
9624   # before this can be enabled.
9625   hardcode_into_libs=yes
9626
9627   # Append ld.so.conf contents to the search path
9628   if test -f /etc/ld.so.conf; then
9629     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' ' '`
9630     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631   fi
9632
9633   # We used to test for /lib/ld.so.1 and disable shared libraries on
9634   # powerpc, because MkLinux only supported shared libraries with the
9635   # GNU dynamic linker.  Since this was broken with cross compilers,
9636   # most powerpc-linux boxes support dynamic linking these days and
9637   # people can always --disable-shared, the test was removed, and we
9638   # assume the GNU/Linux dynamic linker is in use.
9639   dynamic_linker='GNU/Linux ld.so'
9640   ;;
9641
9642 knetbsd*-gnu)
9643   version_type=linux
9644   need_lib_prefix=no
9645   need_version=no
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647   soname_spec='${libname}${release}${shared_ext}$major'
9648   shlibpath_var=LD_LIBRARY_PATH
9649   shlibpath_overrides_runpath=no
9650   hardcode_into_libs=yes
9651   dynamic_linker='GNU ld.so'
9652   ;;
9653
9654 netbsd*)
9655   version_type=sunos
9656   need_lib_prefix=no
9657   need_version=no
9658   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661     dynamic_linker='NetBSD (a.out) ld.so'
9662   else
9663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664     soname_spec='${libname}${release}${shared_ext}$major'
9665     dynamic_linker='NetBSD ld.elf_so'
9666   fi
9667   shlibpath_var=LD_LIBRARY_PATH
9668   shlibpath_overrides_runpath=yes
9669   hardcode_into_libs=yes
9670   ;;
9671
9672 newsos6)
9673   version_type=linux
9674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675   shlibpath_var=LD_LIBRARY_PATH
9676   shlibpath_overrides_runpath=yes
9677   ;;
9678
9679 nto-qnx*)
9680   version_type=linux
9681   need_lib_prefix=no
9682   need_version=no
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684   soname_spec='${libname}${release}${shared_ext}$major'
9685   shlibpath_var=LD_LIBRARY_PATH
9686   shlibpath_overrides_runpath=yes
9687   ;;
9688
9689 openbsd*)
9690   version_type=sunos
9691   sys_lib_dlsearch_path_spec="/usr/lib"
9692   need_lib_prefix=no
9693   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694   case $host_os in
9695     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696     *)                         need_version=no  ;;
9697   esac
9698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700   shlibpath_var=LD_LIBRARY_PATH
9701   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702     case $host_os in
9703       openbsd2.[89] | openbsd2.[89].*)
9704         shlibpath_overrides_runpath=no
9705         ;;
9706       *)
9707         shlibpath_overrides_runpath=yes
9708         ;;
9709       esac
9710   else
9711     shlibpath_overrides_runpath=yes
9712   fi
9713   ;;
9714
9715 os2*)
9716   libname_spec='$name'
9717   shrext_cmds=".dll"
9718   need_lib_prefix=no
9719   library_names_spec='$libname${shared_ext} $libname.a'
9720   dynamic_linker='OS/2 ld.exe'
9721   shlibpath_var=LIBPATH
9722   ;;
9723
9724 osf3* | osf4* | osf5*)
9725   version_type=osf
9726   need_lib_prefix=no
9727   need_version=no
9728   soname_spec='${libname}${release}${shared_ext}$major'
9729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733   ;;
9734
9735 solaris*)
9736   version_type=linux
9737   need_lib_prefix=no
9738   need_version=no
9739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740   soname_spec='${libname}${release}${shared_ext}$major'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=yes
9743   hardcode_into_libs=yes
9744   # ldd complains unless libraries are executable
9745   postinstall_cmds='chmod +x $lib'
9746   ;;
9747
9748 sunos4*)
9749   version_type=sunos
9750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752   shlibpath_var=LD_LIBRARY_PATH
9753   shlibpath_overrides_runpath=yes
9754   if test "$with_gnu_ld" = yes; then
9755     need_lib_prefix=no
9756   fi
9757   need_version=yes
9758   ;;
9759
9760 sysv4 | sysv4.3*)
9761   version_type=linux
9762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763   soname_spec='${libname}${release}${shared_ext}$major'
9764   shlibpath_var=LD_LIBRARY_PATH
9765   case $host_vendor in
9766     sni)
9767       shlibpath_overrides_runpath=no
9768       need_lib_prefix=no
9769       export_dynamic_flag_spec='${wl}-Blargedynsym'
9770       runpath_var=LD_RUN_PATH
9771       ;;
9772     siemens)
9773       need_lib_prefix=no
9774       ;;
9775     motorola)
9776       need_lib_prefix=no
9777       need_version=no
9778       shlibpath_overrides_runpath=no
9779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780       ;;
9781   esac
9782   ;;
9783
9784 sysv4*MP*)
9785   if test -d /usr/nec ;then
9786     version_type=linux
9787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788     soname_spec='$libname${shared_ext}.$major'
9789     shlibpath_var=LD_LIBRARY_PATH
9790   fi
9791   ;;
9792
9793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794   version_type=freebsd-elf
9795   need_lib_prefix=no
9796   need_version=no
9797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798   soname_spec='${libname}${release}${shared_ext}$major'
9799   shlibpath_var=LD_LIBRARY_PATH
9800   hardcode_into_libs=yes
9801   if test "$with_gnu_ld" = yes; then
9802     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803     shlibpath_overrides_runpath=no
9804   else
9805     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806     shlibpath_overrides_runpath=yes
9807     case $host_os in
9808       sco3.2v5*)
9809         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810         ;;
9811     esac
9812   fi
9813   sys_lib_dlsearch_path_spec='/usr/lib'
9814   ;;
9815
9816 uts4*)
9817   version_type=linux
9818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819   soname_spec='${libname}${release}${shared_ext}$major'
9820   shlibpath_var=LD_LIBRARY_PATH
9821   ;;
9822
9823 *)
9824   dynamic_linker=no
9825   ;;
9826 esac
9827 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828 echo "${ECHO_T}$dynamic_linker" >&6; }
9829 test "$dynamic_linker" = no && can_build_shared=no
9830
9831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832 if test "$GCC" = yes; then
9833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834 fi
9835
9836
9837 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9838 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9839 if test "${libltdl_cv_shlibext+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842
9843 module=yes
9844 eval libltdl_cv_shlibext=$shrext_cmds
9845
9846 fi
9847 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9848 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9849 if test -n "$libltdl_cv_shlibext"; then
9850
9851 cat >>confdefs.h <<_ACEOF
9852 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9853 _ACEOF
9854
9855 fi
9856
9857
9858 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9859 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9860 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   libltdl_cv_shlibpath_var="$shlibpath_var"
9864 fi
9865 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9866 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9867 if test -n "$libltdl_cv_shlibpath_var"; then
9868
9869 cat >>confdefs.h <<_ACEOF
9870 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9871 _ACEOF
9872
9873 fi
9874
9875
9876 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9877 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9878 if test "${libltdl_cv_sys_search_path+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9882 fi
9883 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9884 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9885 if test -n "$libltdl_cv_sys_search_path"; then
9886   sys_search_path=
9887   for dir in $libltdl_cv_sys_search_path; do
9888     if test -z "$sys_search_path"; then
9889       sys_search_path="$dir"
9890     else
9891       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9892     fi
9893   done
9894
9895 cat >>confdefs.h <<_ACEOF
9896 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9897 _ACEOF
9898
9899 fi
9900
9901 { echo "$as_me:$LINENO: checking for objdir" >&5
9902 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9903 if test "${libltdl_cv_objdir+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   libltdl_cv_objdir="$objdir"
9907   if test -n "$objdir"; then
9908     :
9909   else
9910     rm -f .libs 2>/dev/null
9911     mkdir .libs 2>/dev/null
9912     if test -d .libs; then
9913       libltdl_cv_objdir=.libs
9914     else
9915       # MS-DOS does not allow filenames that begin with a dot.
9916       libltdl_cv_objdir=_libs
9917     fi
9918   rmdir .libs 2>/dev/null
9919   fi
9920
9921 fi
9922 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9923 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9924
9925 cat >>confdefs.h <<_ACEOF
9926 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9927 _ACEOF
9928
9929
9930
9931
9932
9933
9934 # Check for command to grab the raw symbol name followed by C symbol from nm.
9935 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9936 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9937 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940
9941 # These are sane defaults that work on at least a few old systems.
9942 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9943
9944 # Character class describing NM global symbol codes.
9945 symcode='[BCDEGRST]'
9946
9947 # Regexp to match symbols that can be accessed directly from C.
9948 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9949
9950 # Transform an extracted symbol line into a proper C declaration
9951 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9952
9953 # Transform an extracted symbol line into symbol name and symbol address
9954 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'"
9955
9956 # Define system-specific variables.
9957 case $host_os in
9958 aix*)
9959   symcode='[BCDT]'
9960   ;;
9961 cygwin* | mingw* | pw32*)
9962   symcode='[ABCDGISTW]'
9963   ;;
9964 hpux*) # Its linker distinguishes data from code symbols
9965   if test "$host_cpu" = ia64; then
9966     symcode='[ABCDEGRST]'
9967   fi
9968   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969   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'"
9970   ;;
9971 linux*)
9972   if test "$host_cpu" = ia64; then
9973     symcode='[ABCDGIRSTW]'
9974     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9975     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'"
9976   fi
9977   ;;
9978 irix* | nonstopux*)
9979   symcode='[BCDEGRST]'
9980   ;;
9981 osf*)
9982   symcode='[BCDEGQRST]'
9983   ;;
9984 solaris*)
9985   symcode='[BDRT]'
9986   ;;
9987 sco3.2v5*)
9988   symcode='[DT]'
9989   ;;
9990 sysv4.2uw2*)
9991   symcode='[DT]'
9992   ;;
9993 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9994   symcode='[ABDT]'
9995   ;;
9996 sysv4)
9997   symcode='[DFNSTU]'
9998   ;;
9999 esac
10000
10001 # Handle CRLF in mingw tool chain
10002 opt_cr=
10003 case $build_os in
10004 mingw*)
10005   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10006   ;;
10007 esac
10008
10009 # If we're using GNU nm, then use its standard symbol codes.
10010 case `$NM -V 2>&1` in
10011 *GNU* | *'with BFD'*)
10012   symcode='[ABCDGIRSTW]' ;;
10013 esac
10014
10015 # Try without a prefix undercore, then with it.
10016 for ac_symprfx in "" "_"; do
10017
10018   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10019   symxfrm="\\1 $ac_symprfx\\2 \\2"
10020
10021   # Write the raw and C identifiers.
10022   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10023
10024   # Check to see that the pipe works correctly.
10025   pipe_works=no
10026
10027   rm -f conftest*
10028   cat > conftest.$ac_ext <<EOF
10029 #ifdef __cplusplus
10030 extern "C" {
10031 #endif
10032 char nm_test_var;
10033 void nm_test_func(){}
10034 #ifdef __cplusplus
10035 }
10036 #endif
10037 int main(){nm_test_var='a';nm_test_func();return(0);}
10038 EOF
10039
10040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041   (eval $ac_compile) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; then
10045     # Now try to grab the symbols.
10046     nlist=conftest.nm
10047     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10048   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } && test -s "$nlist"; then
10052       # Try sorting and uniquifying the output.
10053       if sort "$nlist" | uniq > "$nlist"T; then
10054         mv -f "$nlist"T "$nlist"
10055       else
10056         rm -f "$nlist"T
10057       fi
10058
10059       # Make sure that we snagged all the symbols we need.
10060       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10061         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10062           cat <<EOF > conftest.$ac_ext
10063 #ifdef __cplusplus
10064 extern "C" {
10065 #endif
10066
10067 EOF
10068           # Now generate the symbol file.
10069           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10070
10071           cat <<EOF >> conftest.$ac_ext
10072 #if defined (__STDC__) && __STDC__
10073 # define lt_ptr_t void *
10074 #else
10075 # define lt_ptr_t char *
10076 # define const
10077 #endif
10078
10079 /* The mapping between symbol names and symbols. */
10080 const struct {
10081   const char *name;
10082   lt_ptr_t address;
10083 }
10084 lt_preloaded_symbols[] =
10085 {
10086 EOF
10087           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10088           cat <<\EOF >> conftest.$ac_ext
10089   {0, (lt_ptr_t) 0}
10090 };
10091
10092 #ifdef __cplusplus
10093 }
10094 #endif
10095 EOF
10096           # Now try linking the two files.
10097           mv conftest.$ac_objext conftstm.$ac_objext
10098           lt_save_LIBS="$LIBS"
10099           lt_save_CFLAGS="$CFLAGS"
10100           LIBS="conftstm.$ac_objext"
10101           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10102           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103   (eval $ac_link) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10107             pipe_works=yes
10108           fi
10109           LIBS="$lt_save_LIBS"
10110           CFLAGS="$lt_save_CFLAGS"
10111         else
10112           echo "cannot find nm_test_func in $nlist" >&5
10113         fi
10114       else
10115         echo "cannot find nm_test_var in $nlist" >&5
10116       fi
10117     else
10118       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10119     fi
10120   else
10121     echo "$progname: failed program was:" >&5
10122     cat conftest.$ac_ext >&5
10123   fi
10124   rm -f conftest* conftst*
10125
10126   # Do not use the global_symbol_pipe unless it works.
10127   if test "$pipe_works" = yes; then
10128     break
10129   else
10130     lt_cv_sys_global_symbol_pipe=
10131   fi
10132 done
10133
10134 fi
10135
10136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10137   lt_cv_sys_global_symbol_to_cdecl=
10138 fi
10139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10140   { echo "$as_me:$LINENO: result: failed" >&5
10141 echo "${ECHO_T}failed" >&6; }
10142 else
10143   { echo "$as_me:$LINENO: result: ok" >&5
10144 echo "${ECHO_T}ok" >&6; }
10145 fi
10146
10147
10148 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10149 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10150 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10154     libltdl_cv_preloaded_symbols=yes
10155   else
10156     libltdl_cv_preloaded_symbols=no
10157   fi
10158
10159 fi
10160 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10161 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10162 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10163
10164 cat >>confdefs.h <<\_ACEOF
10165 #define HAVE_PRELOADED_SYMBOLS 1
10166 _ACEOF
10167
10168 fi
10169
10170 LIBADD_DL=
10171
10172 ac_ext=c
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
10179 { echo "$as_me:$LINENO: checking for shl_load" >&5
10180 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10181 if test "${ac_cv_func_shl_load+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10192 #define shl_load innocuous_shl_load
10193
10194 /* System header to define __stub macros and hopefully few prototypes,
10195     which can conflict with char shl_load (); below.
10196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197     <limits.h> exists even on freestanding compilers.  */
10198
10199 #ifdef __STDC__
10200 # include <limits.h>
10201 #else
10202 # include <assert.h>
10203 #endif
10204
10205 #undef shl_load
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char shl_load ();
10214 /* The GNU C library defines this for functions which it implements
10215     to always fail with ENOSYS.  Some functions are actually named
10216     something starting with __ and the normal name is an alias.  */
10217 #if defined __stub_shl_load || defined __stub___shl_load
10218 choke me
10219 #endif
10220
10221 int
10222 main ()
10223 {
10224 return shl_load ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   ac_cv_func_shl_load=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         ac_cv_func_shl_load=no
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext \
10272       conftest$ac_exeext conftest.$ac_ext
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10276 if test $ac_cv_func_shl_load = yes; then
10277
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_SHL_LOAD 1
10280 _ACEOF
10281
10282 else
10283   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10284 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldld  $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296
10297 /* Override any GCC internal prototype to avoid an error.
10298    Use char because int might match the return type of a GCC
10299    builtin and then its argument prototype would still apply.  */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char shl_load ();
10304 int
10305 main ()
10306 {
10307 return shl_load ();
10308   ;
10309   return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316   *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319   (eval "$ac_link") 2>conftest.er1
10320   ac_status=$?
10321   grep -v '^ *+' conftest.er1 >conftest.err
10322   rm -f conftest.er1
10323   cat conftest.err >&5
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327   { (case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_try") 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; } &&
10336          { ac_try='test -s conftest$ac_exeext'
10337   { (case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_try") 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; }; then
10346   ac_cv_lib_dld_shl_load=yes
10347 else
10348   echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351         ac_cv_lib_dld_shl_load=no
10352 fi
10353
10354 rm -f core conftest.err conftest.$ac_objext \
10355       conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10357 fi
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10359 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10360 if test $ac_cv_lib_dld_shl_load = yes; then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE_SHL_LOAD 1
10364 _ACEOF
10365
10366         LIBADD_DL="$LIBADD_DL -ldld"
10367 else
10368   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10369 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-ldl  $LIBS"
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381
10382 /* Override any GCC internal prototype to avoid an error.
10383    Use char because int might match the return type of a GCC
10384    builtin and then its argument prototype would still apply.  */
10385 #ifdef __cplusplus
10386 extern "C"
10387 #endif
10388 char dlopen ();
10389 int
10390 main ()
10391 {
10392 return dlopen ();
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_link") 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10412   { (case "(($ac_try" in
10413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414   *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417   (eval "$ac_try") 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); }; } &&
10421          { ac_try='test -s conftest$ac_exeext'
10422   { (case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427   (eval "$ac_try") 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   ac_cv_lib_dl_dlopen=yes
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436         ac_cv_lib_dl_dlopen=no
10437 fi
10438
10439 rm -f core conftest.err conftest.$ac_objext \
10440       conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10442 fi
10443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10445 if test $ac_cv_lib_dl_dlopen = yes; then
10446
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_LIBDL 1
10449 _ACEOF
10450
10451                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10452 else
10453   cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #if HAVE_DLFCN_H
10460 #  include <dlfcn.h>
10461 #endif
10462
10463 int
10464 main ()
10465 {
10466 dlopen(0, 0);
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_link") 2>conftest.er1
10479   ac_status=$?
10480   grep -v '^ *+' conftest.er1 >conftest.err
10481   rm -f conftest.er1
10482   cat conftest.err >&5
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } &&
10485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486   { (case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_try") 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; } &&
10495          { ac_try='test -s conftest$ac_exeext'
10496   { (case "(($ac_try" in
10497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498   *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501   (eval "$ac_try") 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; }; then
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define HAVE_LIBDL 1
10508 _ACEOF
10509  libltdl_cv_func_dlopen="yes"
10510 else
10511   echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10517   echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519   ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lsvld  $LIBS"
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529    Use char because int might match the return type of a GCC
10530    builtin and then its argument prototype would still apply.  */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char dlopen ();
10535 int
10536 main ()
10537 {
10538 return dlopen ();
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547   *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550   (eval "$ac_link") 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; } &&
10567          { ac_try='test -s conftest$ac_exeext'
10568   { (case "(($ac_try" in
10569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570   *) ac_try_echo=$ac_try;;
10571 esac
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573   (eval "$ac_try") 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   ac_cv_lib_svld_dlopen=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582         ac_cv_lib_svld_dlopen=no
10583 fi
10584
10585 rm -f core conftest.err conftest.$ac_objext \
10586       conftest$ac_exeext conftest.$ac_ext
10587 LIBS=$ac_check_lib_save_LIBS
10588 fi
10589 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10590 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10591 if test $ac_cv_lib_svld_dlopen = yes; then
10592
10593 cat >>confdefs.h <<\_ACEOF
10594 #define HAVE_LIBDL 1
10595 _ACEOF
10596
10597                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10598 else
10599   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10600 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10601 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-ldld  $LIBS"
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612
10613 /* Override any GCC internal prototype to avoid an error.
10614    Use char because int might match the return type of a GCC
10615    builtin and then its argument prototype would still apply.  */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char dld_link ();
10620 int
10621 main ()
10622 {
10623 return dld_link ();
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_link") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643   { (case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_try") 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest$ac_exeext'
10653   { (case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_try") 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_lib_dld_dld_link=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_cv_lib_dld_dld_link=no
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext \
10671       conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10673 fi
10674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10675 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10676 if test $ac_cv_lib_dld_dld_link = yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_DLD 1
10680 _ACEOF
10681
10682                 LIBADD_DL="$LIBADD_DL -ldld"
10683 else
10684   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10685 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10686 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10697 #define _dyld_func_lookup innocuous__dyld_func_lookup
10698
10699 /* System header to define __stub macros and hopefully few prototypes,
10700     which can conflict with char _dyld_func_lookup (); below.
10701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702     <limits.h> exists even on freestanding compilers.  */
10703
10704 #ifdef __STDC__
10705 # include <limits.h>
10706 #else
10707 # include <assert.h>
10708 #endif
10709
10710 #undef _dyld_func_lookup
10711
10712 /* Override any GCC internal prototype to avoid an error.
10713    Use char because int might match the return type of a GCC
10714    builtin and then its argument prototype would still apply.  */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char _dyld_func_lookup ();
10719 /* The GNU C library defines this for functions which it implements
10720     to always fail with ENOSYS.  Some functions are actually named
10721     something starting with __ and the normal name is an alias.  */
10722 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10723 choke me
10724 #endif
10725
10726 int
10727 main ()
10728 {
10729 return _dyld_func_lookup ();
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (ac_try="$ac_link"
10736 case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_link") 2>conftest.er1
10742   ac_status=$?
10743   grep -v '^ *+' conftest.er1 >conftest.err
10744   rm -f conftest.er1
10745   cat conftest.err >&5
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749   { (case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_try") 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; } &&
10758          { ac_try='test -s conftest$ac_exeext'
10759   { (case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_try") 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_cv_func__dyld_func_lookup=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773         ac_cv_func__dyld_func_lookup=no
10774 fi
10775
10776 rm -f core conftest.err conftest.$ac_objext \
10777       conftest$ac_exeext conftest.$ac_ext
10778 fi
10779 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10780 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10781 if test $ac_cv_func__dyld_func_lookup = yes; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_DYLD 1
10785 _ACEOF
10786
10787 fi
10788
10789
10790 fi
10791
10792
10793 fi
10794
10795
10796 fi
10797
10798 rm -f core conftest.err conftest.$ac_objext \
10799       conftest$ac_exeext conftest.$ac_ext
10800
10801 fi
10802
10803
10804 fi
10805
10806
10807 fi
10808
10809
10810 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10811 then
10812   lt_save_LIBS="$LIBS"
10813   LIBS="$LIBS $LIBADD_DL"
10814
10815 for ac_func in dlerror
10816 do
10817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10831 #define $ac_func innocuous_$ac_func
10832
10833 /* System header to define __stub macros and hopefully few prototypes,
10834     which can conflict with char $ac_func (); below.
10835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836     <limits.h> exists even on freestanding compilers.  */
10837
10838 #ifdef __STDC__
10839 # include <limits.h>
10840 #else
10841 # include <assert.h>
10842 #endif
10843
10844 #undef $ac_func
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847    Use char because int might match the return type of a GCC
10848    builtin and then its argument prototype would still apply.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char $ac_func ();
10853 /* The GNU C library defines this for functions which it implements
10854     to always fail with ENOSYS.  Some functions are actually named
10855     something starting with __ and the normal name is an alias.  */
10856 #if defined __stub_$ac_func || defined __stub___$ac_func
10857 choke me
10858 #endif
10859
10860 int
10861 main ()
10862 {
10863 return $ac_func ();
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_link") 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } &&
10882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883   { (case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_try") 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; } &&
10892          { ac_try='test -s conftest$ac_exeext'
10893   { (case "(($ac_try" in
10894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895   *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898   (eval "$ac_try") 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   eval "$as_ac_var=yes"
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10906
10907         eval "$as_ac_var=no"
10908 fi
10909
10910 rm -f core conftest.err conftest.$ac_objext \
10911       conftest$ac_exeext conftest.$ac_ext
10912 fi
10913 ac_res=`eval echo '${'$as_ac_var'}'`
10914                { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 if test `eval echo '${'$as_ac_var'}'` = yes; then
10917   cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919 _ACEOF
10920
10921 fi
10922 done
10923
10924   LIBS="$lt_save_LIBS"
10925 fi
10926 ac_ext=c
10927 ac_cpp='$CPP $CPPFLAGS'
10928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931
10932
10933
10934 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10935 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10936 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   ac_cv_sys_symbol_underscore=no
10940   cat > conftest.$ac_ext <<EOF
10941 void nm_test_func(){}
10942 int main(){nm_test_func;return 0;}
10943 EOF
10944   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945   (eval $ac_compile) 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; then
10949     # Now try to grab the symbols.
10950     ac_nlist=conftest.nm
10951     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10952   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } && test -s "$ac_nlist"; then
10956       # See whether the symbols have a leading underscore.
10957       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10958         ac_cv_sys_symbol_underscore=yes
10959       else
10960         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10961           :
10962         else
10963           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10964         fi
10965       fi
10966     else
10967       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10968     fi
10969   else
10970     echo "configure: failed program was:" >&5
10971     cat conftest.c >&5
10972   fi
10973   rm -rf conftest*
10974
10975 fi
10976 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10977 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10978
10979
10980 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10981   if test x"$libltdl_cv_func_dlopen" = xyes ||
10982      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10983         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10984 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10985 if test "${libltdl_cv_need_uscore+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   libltdl_cv_need_uscore=unknown
10989           save_LIBS="$LIBS"
10990           LIBS="$LIBS $LIBADD_DL"
10991           if test "$cross_compiling" = yes; then :
10992   libltdl_cv_need_uscore=cross
10993 else
10994   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995   lt_status=$lt_dlunknown
10996   cat > conftest.$ac_ext <<EOF
10997 #line 10997 "configure"
10998 #include "confdefs.h"
10999
11000 #if HAVE_DLFCN_H
11001 #include <dlfcn.h>
11002 #endif
11003
11004 #include <stdio.h>
11005
11006 #ifdef RTLD_GLOBAL
11007 #  define LT_DLGLOBAL           RTLD_GLOBAL
11008 #else
11009 #  ifdef DL_GLOBAL
11010 #    define LT_DLGLOBAL         DL_GLOBAL
11011 #  else
11012 #    define LT_DLGLOBAL         0
11013 #  endif
11014 #endif
11015
11016 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017    find out it does not work in some platform. */
11018 #ifndef LT_DLLAZY_OR_NOW
11019 #  ifdef RTLD_LAZY
11020 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11021 #  else
11022 #    ifdef DL_LAZY
11023 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11024 #    else
11025 #      ifdef RTLD_NOW
11026 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11027 #      else
11028 #        ifdef DL_NOW
11029 #          define LT_DLLAZY_OR_NOW      DL_NOW
11030 #        else
11031 #          define LT_DLLAZY_OR_NOW      0
11032 #        endif
11033 #      endif
11034 #    endif
11035 #  endif
11036 #endif
11037
11038 #ifdef __cplusplus
11039 extern "C" void exit (int);
11040 #endif
11041
11042 void fnord() { int i=42;}
11043 int main ()
11044 {
11045   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046   int status = $lt_dlunknown;
11047
11048   if (self)
11049     {
11050       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11051       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052       /* dlclose (self); */
11053     }
11054   else
11055     puts (dlerror ());
11056
11057     exit (status);
11058 }
11059 EOF
11060   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061   (eval $ac_link) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11065     (./conftest; exit; ) >&5 2>/dev/null
11066     lt_status=$?
11067     case x$lt_status in
11068       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11069       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11070       x$lt_dlunknown|x*)  ;;
11071     esac
11072   else :
11073     # compilation failed
11074
11075   fi
11076 fi
11077 rm -fr conftest*
11078
11079           LIBS="$save_LIBS"
11080
11081 fi
11082 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11083 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11084   fi
11085 fi
11086
11087 if test x"$libltdl_cv_need_uscore" = xyes; then
11088
11089 cat >>confdefs.h <<\_ACEOF
11090 #define NEED_USCORE 1
11091 _ACEOF
11092
11093 fi
11094
11095
11096 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11097 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11098 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101   # PORTME does your system automatically load deplibs for dlopen?
11102   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11103   # For now, we just catch OSes we know something about -- in the
11104   # future, we'll try test this programmatically.
11105   libltdl_cv_sys_dlopen_deplibs=unknown
11106   case "$host_os" in
11107   aix3*|aix4.1.*|aix4.2.*)
11108     # Unknown whether this is true for these versions of AIX, but
11109     # we want this `case' here to explicitly catch those versions.
11110     libltdl_cv_sys_dlopen_deplibs=unknown
11111     ;;
11112   aix[45]*)
11113     libltdl_cv_sys_dlopen_deplibs=yes
11114     ;;
11115   darwin*)
11116     # Assuming the user has installed a libdl from somewhere, this is true
11117     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11118     libltdl_cv_sys_dlopen_deplibs=yes
11119     ;;
11120   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11121     # GNU and its variants, using gnu ld.so (Glibc)
11122     libltdl_cv_sys_dlopen_deplibs=yes
11123     ;;
11124   hpux10*|hpux11*)
11125     libltdl_cv_sys_dlopen_deplibs=yes
11126     ;;
11127   interix*)
11128     libltdl_cv_sys_dlopen_deplibs=yes
11129     ;;
11130   irix[12345]*|irix6.[01]*)
11131     # Catch all versions of IRIX before 6.2, and indicate that we don't
11132     # know how it worked for any of those versions.
11133     libltdl_cv_sys_dlopen_deplibs=unknown
11134     ;;
11135   irix*)
11136     # The case above catches anything before 6.2, and it's known that
11137     # at 6.2 and later dlopen does load deplibs.
11138     libltdl_cv_sys_dlopen_deplibs=yes
11139     ;;
11140   netbsd*)
11141     libltdl_cv_sys_dlopen_deplibs=yes
11142     ;;
11143   openbsd*)
11144     libltdl_cv_sys_dlopen_deplibs=yes
11145     ;;
11146   osf[1234]*)
11147     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11148     # it did *not* use an RPATH in a shared library to find objects the
11149     # library depends on, so we explictly say `no'.
11150     libltdl_cv_sys_dlopen_deplibs=no
11151     ;;
11152   osf5.0|osf5.0a|osf5.1)
11153     # dlopen *does* load deplibs and with the right loader patch applied
11154     # it even uses RPATH in a shared library to search for shared objects
11155     # that the library depends on, but there's no easy way to know if that
11156     # patch is installed.  Since this is the case, all we can really
11157     # say is unknown -- it depends on the patch being installed.  If
11158     # it is, this changes to `yes'.  Without it, it would be `no'.
11159     libltdl_cv_sys_dlopen_deplibs=unknown
11160     ;;
11161   osf*)
11162     # the two cases above should catch all versions of osf <= 5.1.  Read
11163     # the comments above for what we know about them.
11164     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11165     # is used to find them so we can finally say `yes'.
11166     libltdl_cv_sys_dlopen_deplibs=yes
11167     ;;
11168   solaris*)
11169     libltdl_cv_sys_dlopen_deplibs=yes
11170     ;;
11171   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172     libltdl_cv_sys_dlopen_deplibs=yes
11173     ;;
11174   esac
11175
11176 fi
11177 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11178 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11179 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11180
11181 cat >>confdefs.h <<\_ACEOF
11182 #define LTDL_DLOPEN_DEPLIBS 1
11183 _ACEOF
11184
11185 fi
11186
11187
11188 for ac_header in argz.h
11189 do
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 fi
11197 ac_res=`eval echo '${'$as_ac_Header'}'`
11198                { echo "$as_me:$LINENO: result: $ac_res" >&5
11199 echo "${ECHO_T}$ac_res" >&6; }
11200 else
11201   # Is the header compilable?
11202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 $ac_includes_default
11211 #include <$ac_header>
11212 _ACEOF
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_compile") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest.$ac_objext'
11238   { (case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_try") 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; }; then
11247   ac_header_compiler=yes
11248 else
11249   echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252         ac_header_compiler=no
11253 fi
11254
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11258
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
11269 _ACEOF
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } >/dev/null; then
11283   if test -s conftest.err; then
11284     ac_cpp_err=$ac_c_preproc_warn_flag
11285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286   else
11287     ac_cpp_err=
11288   fi
11289 else
11290   ac_cpp_err=yes
11291 fi
11292 if test -z "$ac_cpp_err"; then
11293   ac_header_preproc=yes
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298   ac_header_preproc=no
11299 fi
11300
11301 rm -f conftest.err conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6; }
11304
11305 # So?  What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307   yes:no: )
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312     ac_header_preproc=yes
11313     ;;
11314   no:yes:* )
11315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11327     ( cat <<\_ASBOX
11328 ## ----------------------------------- ##
11329 ## Report this to llvmbugs@cs.uiuc.edu ##
11330 ## ----------------------------------- ##
11331 _ASBOX
11332      ) | sed "s/^/$as_me: WARNING:     /" >&2
11333     ;;
11334 esac
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   eval "$as_ac_Header=\$ac_header_preproc"
11341 fi
11342 ac_res=`eval echo '${'$as_ac_Header'}'`
11343                { echo "$as_me:$LINENO: result: $ac_res" >&5
11344 echo "${ECHO_T}$ac_res" >&6; }
11345
11346 fi
11347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348   cat >>confdefs.h <<_ACEOF
11349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350 _ACEOF
11351
11352 fi
11353
11354 done
11355
11356
11357 { echo "$as_me:$LINENO: checking for error_t" >&5
11358 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11359 if test "${ac_cv_type_error_t+set}" = set; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362   cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 #if HAVE_ARGZ_H
11369 #  include <argz.h>
11370 #endif
11371
11372 typedef error_t ac__type_new_;
11373 int
11374 main ()
11375 {
11376 if ((ac__type_new_ *) 0)
11377   return 0;
11378 if (sizeof (ac__type_new_))
11379   return 0;
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (ac_try="$ac_compile"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_compile") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399   { (case "(($ac_try" in
11400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401   *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404   (eval "$ac_try") 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); }; } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_try") 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; }; then
11418   ac_cv_type_error_t=yes
11419 else
11420   echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423         ac_cv_type_error_t=no
11424 fi
11425
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 fi
11428 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11429 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11430 if test $ac_cv_type_error_t = yes; then
11431
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_ERROR_T 1
11434 _ACEOF
11435
11436
11437 else
11438
11439 cat >>confdefs.h <<\_ACEOF
11440 #define error_t int
11441 _ACEOF
11442
11443 fi
11444
11445
11446
11447
11448
11449
11450
11451 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11452 do
11453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11467 #define $ac_func innocuous_$ac_func
11468
11469 /* System header to define __stub macros and hopefully few prototypes,
11470     which can conflict with char $ac_func (); below.
11471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472     <limits.h> exists even on freestanding compilers.  */
11473
11474 #ifdef __STDC__
11475 # include <limits.h>
11476 #else
11477 # include <assert.h>
11478 #endif
11479
11480 #undef $ac_func
11481
11482 /* Override any GCC internal prototype to avoid an error.
11483    Use char because int might match the return type of a GCC
11484    builtin and then its argument prototype would still apply.  */
11485 #ifdef __cplusplus
11486 extern "C"
11487 #endif
11488 char $ac_func ();
11489 /* The GNU C library defines this for functions which it implements
11490     to always fail with ENOSYS.  Some functions are actually named
11491     something starting with __ and the normal name is an alias.  */
11492 #if defined __stub_$ac_func || defined __stub___$ac_func
11493 choke me
11494 #endif
11495
11496 int
11497 main ()
11498 {
11499 return $ac_func ();
11500   ;
11501   return 0;
11502 }
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (ac_try="$ac_link"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_link") 2>conftest.er1
11512   ac_status=$?
11513   grep -v '^ *+' conftest.er1 >conftest.err
11514   rm -f conftest.er1
11515   cat conftest.err >&5
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519   { (case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_try") 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; } &&
11528          { ac_try='test -s conftest$ac_exeext'
11529   { (case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_try") 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; }; then
11538   eval "$as_ac_var=yes"
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543         eval "$as_ac_var=no"
11544 fi
11545
11546 rm -f core conftest.err conftest.$ac_objext \
11547       conftest$ac_exeext conftest.$ac_ext
11548 fi
11549 ac_res=`eval echo '${'$as_ac_var'}'`
11550                { echo "$as_me:$LINENO: result: $ac_res" >&5
11551 echo "${ECHO_T}$ac_res" >&6; }
11552 if test `eval echo '${'$as_ac_var'}'` = yes; then
11553   cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555 _ACEOF
11556
11557 fi
11558 done
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11588                   stdio.h unistd.h
11589 do
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 fi
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598                { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600 else
11601   # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 $ac_includes_default
11611 #include <$ac_header>
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617   *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620   (eval "$ac_compile") 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628   { (case "(($ac_try" in
11629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630   *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633   (eval "$ac_try") 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; } &&
11637          { ac_try='test -s conftest.$ac_objext'
11638   { (case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_try") 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_header_compiler=yes
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652         ac_header_compiler=no
11653 fi
11654
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11658
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
11669 _ACEOF
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673   *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677   ac_status=$?
11678   grep -v '^ *+' conftest.er1 >conftest.err
11679   rm -f conftest.er1
11680   cat conftest.err >&5
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } >/dev/null; then
11683   if test -s conftest.err; then
11684     ac_cpp_err=$ac_c_preproc_warn_flag
11685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686   else
11687     ac_cpp_err=
11688   fi
11689 else
11690   ac_cpp_err=yes
11691 fi
11692 if test -z "$ac_cpp_err"; then
11693   ac_header_preproc=yes
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698   ac_header_preproc=no
11699 fi
11700
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11704
11705 # So?  What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707   yes:no: )
11708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712     ac_header_preproc=yes
11713     ;;
11714   no:yes:* )
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727     ( cat <<\_ASBOX
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11731 _ASBOX
11732      ) | sed "s/^/$as_me: WARNING:     /" >&2
11733     ;;
11734 esac
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   eval "$as_ac_Header=\$ac_header_preproc"
11741 fi
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743                { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745
11746 fi
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748   cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750 _ACEOF
11751
11752 fi
11753
11754 done
11755
11756
11757
11758
11759
11760 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11761 do
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 fi
11769 ac_res=`eval echo '${'$as_ac_Header'}'`
11770                { echo "$as_me:$LINENO: result: $ac_res" >&5
11771 echo "${ECHO_T}$ac_res" >&6; }
11772 else
11773   # Is the header compilable?
11774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782 $ac_includes_default
11783 #include <$ac_header>
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_compile") 2>conftest.er1
11793   ac_status=$?
11794   grep -v '^ *+' conftest.er1 >conftest.err
11795   rm -f conftest.er1
11796   cat conftest.err >&5
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800   { (case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_try") 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; } &&
11809          { ac_try='test -s conftest.$ac_objext'
11810   { (case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_try") 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   ac_header_compiler=yes
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824         ac_header_compiler=no
11825 fi
11826
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11829 echo "${ECHO_T}$ac_header_compiler" >&6; }
11830
11831 # Is the header present?
11832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11833 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
11841 _ACEOF
11842 if { (ac_try="$ac_cpp conftest.$ac_ext"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } >/dev/null; then
11855   if test -s conftest.err; then
11856     ac_cpp_err=$ac_c_preproc_warn_flag
11857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11858   else
11859     ac_cpp_err=
11860   fi
11861 else
11862   ac_cpp_err=yes
11863 fi
11864 if test -z "$ac_cpp_err"; then
11865   ac_header_preproc=yes
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870   ac_header_preproc=no
11871 fi
11872
11873 rm -f conftest.err conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11875 echo "${ECHO_T}$ac_header_preproc" >&6; }
11876
11877 # So?  What about this header?
11878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11879   yes:no: )
11880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11884     ac_header_preproc=yes
11885     ;;
11886   no:yes:* )
11887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11899     ( cat <<\_ASBOX
11900 ## ----------------------------------- ##
11901 ## Report this to llvmbugs@cs.uiuc.edu ##
11902 ## ----------------------------------- ##
11903 _ASBOX
11904      ) | sed "s/^/$as_me: WARNING:     /" >&2
11905     ;;
11906 esac
11907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   eval "$as_ac_Header=\$ac_header_preproc"
11913 fi
11914 ac_res=`eval echo '${'$as_ac_Header'}'`
11915                { echo "$as_me:$LINENO: result: $ac_res" >&5
11916 echo "${ECHO_T}$ac_res" >&6; }
11917
11918 fi
11919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11920   cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11922 _ACEOF
11923
11924 fi
11925
11926 done
11927
11928
11929
11930 for ac_header in string.h strings.h
11931 do
11932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 fi
11939 ac_res=`eval echo '${'$as_ac_Header'}'`
11940                { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 else
11943   # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 $ac_includes_default
11953 #include <$ac_header>
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_compile") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970   { (case "(($ac_try" in
11971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972   *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975   (eval "$ac_try") 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; } &&
11979          { ac_try='test -s conftest.$ac_objext'
11980   { (case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_try") 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_header_compiler=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994         ac_header_compiler=no
11995 fi
11996
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999 echo "${ECHO_T}$ac_header_compiler" >&6; }
12000
12001 # Is the header present?
12002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
12011 _ACEOF
12012 if { (ac_try="$ac_cpp conftest.$ac_ext"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } >/dev/null; then
12025   if test -s conftest.err; then
12026     ac_cpp_err=$ac_c_preproc_warn_flag
12027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028   else
12029     ac_cpp_err=
12030   fi
12031 else
12032   ac_cpp_err=yes
12033 fi
12034 if test -z "$ac_cpp_err"; then
12035   ac_header_preproc=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040   ac_header_preproc=no
12041 fi
12042
12043 rm -f conftest.err conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045 echo "${ECHO_T}$ac_header_preproc" >&6; }
12046
12047 # So?  What about this header?
12048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049   yes:no: )
12050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054     ac_header_preproc=yes
12055     ;;
12056   no:yes:* )
12057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12069     ( cat <<\_ASBOX
12070 ## ----------------------------------- ##
12071 ## Report this to llvmbugs@cs.uiuc.edu ##
12072 ## ----------------------------------- ##
12073 _ASBOX
12074      ) | sed "s/^/$as_me: WARNING:     /" >&2
12075     ;;
12076 esac
12077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   eval "$as_ac_Header=\$ac_header_preproc"
12083 fi
12084 ac_res=`eval echo '${'$as_ac_Header'}'`
12085                { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 echo "${ECHO_T}$ac_res" >&6; }
12087
12088 fi
12089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090   cat >>confdefs.h <<_ACEOF
12091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 _ACEOF
12093  break
12094 fi
12095
12096 done
12097
12098
12099
12100
12101 for ac_func in strchr index
12102 do
12103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12117 #define $ac_func innocuous_$ac_func
12118
12119 /* System header to define __stub macros and hopefully few prototypes,
12120     which can conflict with char $ac_func (); below.
12121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122     <limits.h> exists even on freestanding compilers.  */
12123
12124 #ifdef __STDC__
12125 # include <limits.h>
12126 #else
12127 # include <assert.h>
12128 #endif
12129
12130 #undef $ac_func
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133    Use char because int might match the return type of a GCC
12134    builtin and then its argument prototype would still apply.  */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char $ac_func ();
12139 /* The GNU C library defines this for functions which it implements
12140     to always fail with ENOSYS.  Some functions are actually named
12141     something starting with __ and the normal name is an alias.  */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12143 choke me
12144 #endif
12145
12146 int
12147 main ()
12148 {
12149 return $ac_func ();
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_link") 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169   { (case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_try") 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_try") 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   eval "$as_ac_var=yes"
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193         eval "$as_ac_var=no"
12194 fi
12195
12196 rm -f core conftest.err conftest.$ac_objext \
12197       conftest$ac_exeext conftest.$ac_ext
12198 fi
12199 ac_res=`eval echo '${'$as_ac_var'}'`
12200                { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12202 if test `eval echo '${'$as_ac_var'}'` = yes; then
12203   cat >>confdefs.h <<_ACEOF
12204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 _ACEOF
12206  break
12207 fi
12208 done
12209
12210
12211
12212 for ac_func in strrchr rindex
12213 do
12214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12228 #define $ac_func innocuous_$ac_func
12229
12230 /* System header to define __stub macros and hopefully few prototypes,
12231     which can conflict with char $ac_func (); below.
12232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233     <limits.h> exists even on freestanding compilers.  */
12234
12235 #ifdef __STDC__
12236 # include <limits.h>
12237 #else
12238 # include <assert.h>
12239 #endif
12240
12241 #undef $ac_func
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244    Use char because int might match the return type of a GCC
12245    builtin and then its argument prototype would still apply.  */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char $ac_func ();
12250 /* The GNU C library defines this for functions which it implements
12251     to always fail with ENOSYS.  Some functions are actually named
12252     something starting with __ and the normal name is an alias.  */
12253 #if defined __stub_$ac_func || defined __stub___$ac_func
12254 choke me
12255 #endif
12256
12257 int
12258 main ()
12259 {
12260 return $ac_func ();
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_link") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280   { (case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_try") 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; } &&
12289          { ac_try='test -s conftest$ac_exeext'
12290   { (case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_try") 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   eval "$as_ac_var=yes"
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304         eval "$as_ac_var=no"
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext \
12308       conftest$ac_exeext conftest.$ac_ext
12309 fi
12310 ac_res=`eval echo '${'$as_ac_var'}'`
12311                { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314   cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12317  break
12318 fi
12319 done
12320
12321
12322
12323 for ac_func in memcpy bcopy
12324 do
12325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12339 #define $ac_func innocuous_$ac_func
12340
12341 /* System header to define __stub macros and hopefully few prototypes,
12342     which can conflict with char $ac_func (); below.
12343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344     <limits.h> exists even on freestanding compilers.  */
12345
12346 #ifdef __STDC__
12347 # include <limits.h>
12348 #else
12349 # include <assert.h>
12350 #endif
12351
12352 #undef $ac_func
12353
12354 /* Override any GCC internal prototype to avoid an error.
12355    Use char because int might match the return type of a GCC
12356    builtin and then its argument prototype would still apply.  */
12357 #ifdef __cplusplus
12358 extern "C"
12359 #endif
12360 char $ac_func ();
12361 /* The GNU C library defines this for functions which it implements
12362     to always fail with ENOSYS.  Some functions are actually named
12363     something starting with __ and the normal name is an alias.  */
12364 #if defined __stub_$ac_func || defined __stub___$ac_func
12365 choke me
12366 #endif
12367
12368 int
12369 main ()
12370 {
12371 return $ac_func ();
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (ac_try="$ac_link"
12378 case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_link") 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391   { (case "(($ac_try" in
12392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393   *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396   (eval "$ac_try") 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; } &&
12400          { ac_try='test -s conftest$ac_exeext'
12401   { (case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_try") 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   eval "$as_ac_var=yes"
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415         eval "$as_ac_var=no"
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext \
12419       conftest$ac_exeext conftest.$ac_ext
12420 fi
12421 ac_res=`eval echo '${'$as_ac_var'}'`
12422                { echo "$as_me:$LINENO: result: $ac_res" >&5
12423 echo "${ECHO_T}$ac_res" >&6; }
12424 if test `eval echo '${'$as_ac_var'}'` = yes; then
12425   cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427 _ACEOF
12428  break
12429 fi
12430 done
12431
12432
12433
12434 for ac_func in memmove strcmp
12435 do
12436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442   cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12450 #define $ac_func innocuous_$ac_func
12451
12452 /* System header to define __stub macros and hopefully few prototypes,
12453     which can conflict with char $ac_func (); below.
12454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455     <limits.h> exists even on freestanding compilers.  */
12456
12457 #ifdef __STDC__
12458 # include <limits.h>
12459 #else
12460 # include <assert.h>
12461 #endif
12462
12463 #undef $ac_func
12464
12465 /* Override any GCC internal prototype to avoid an error.
12466    Use char because int might match the return type of a GCC
12467    builtin and then its argument prototype would still apply.  */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 char $ac_func ();
12472 /* The GNU C library defines this for functions which it implements
12473     to always fail with ENOSYS.  Some functions are actually named
12474     something starting with __ and the normal name is an alias.  */
12475 #if defined __stub_$ac_func || defined __stub___$ac_func
12476 choke me
12477 #endif
12478
12479 int
12480 main ()
12481 {
12482 return $ac_func ();
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494   (eval "$ac_link") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502   { (case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_try") 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; } &&
12511          { ac_try='test -s conftest$ac_exeext'
12512   { (case "(($ac_try" in
12513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514   *) ac_try_echo=$ac_try;;
12515 esac
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517   (eval "$ac_try") 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   eval "$as_ac_var=yes"
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526         eval "$as_ac_var=no"
12527 fi
12528
12529 rm -f core conftest.err conftest.$ac_objext \
12530       conftest$ac_exeext conftest.$ac_ext
12531 fi
12532 ac_res=`eval echo '${'$as_ac_var'}'`
12533                { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12535 if test `eval echo '${'$as_ac_var'}'` = yes; then
12536   cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12538 _ACEOF
12539
12540 fi
12541 done
12542
12543
12544
12545
12546 for ac_func in closedir opendir readdir
12547 do
12548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12562 #define $ac_func innocuous_$ac_func
12563
12564 /* System header to define __stub macros and hopefully few prototypes,
12565     which can conflict with char $ac_func (); below.
12566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567     <limits.h> exists even on freestanding compilers.  */
12568
12569 #ifdef __STDC__
12570 # include <limits.h>
12571 #else
12572 # include <assert.h>
12573 #endif
12574
12575 #undef $ac_func
12576
12577 /* Override any GCC internal prototype to avoid an error.
12578    Use char because int might match the return type of a GCC
12579    builtin and then its argument prototype would still apply.  */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char $ac_func ();
12584 /* The GNU C library defines this for functions which it implements
12585     to always fail with ENOSYS.  Some functions are actually named
12586     something starting with __ and the normal name is an alias.  */
12587 #if defined __stub_$ac_func || defined __stub___$ac_func
12588 choke me
12589 #endif
12590
12591 int
12592 main ()
12593 {
12594 return $ac_func ();
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_link") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614   { (case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_try") 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; } &&
12623          { ac_try='test -s conftest$ac_exeext'
12624   { (case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_try") 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   eval "$as_ac_var=yes"
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638         eval "$as_ac_var=no"
12639 fi
12640
12641 rm -f core conftest.err conftest.$ac_objext \
12642       conftest$ac_exeext conftest.$ac_ext
12643 fi
12644 ac_res=`eval echo '${'$as_ac_var'}'`
12645                { echo "$as_me:$LINENO: result: $ac_res" >&5
12646 echo "${ECHO_T}$ac_res" >&6; }
12647 if test `eval echo '${'$as_ac_var'}'` = yes; then
12648   cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12650 _ACEOF
12651
12652 fi
12653 done
12654
12655
12656 # Check whether --enable-shared was given.
12657 if test "${enable_shared+set}" = set; then
12658   enableval=$enable_shared; p=${PACKAGE-default}
12659     case $enableval in
12660     yes) enable_shared=yes ;;
12661     no) enable_shared=no ;;
12662     *)
12663       enable_shared=no
12664       # Look at the argument we got.  We use all the common list separators.
12665       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12666       for pkg in $enableval; do
12667         IFS="$lt_save_ifs"
12668         if test "X$pkg" = "X$p"; then
12669           enable_shared=yes
12670         fi
12671       done
12672       IFS="$lt_save_ifs"
12673       ;;
12674     esac
12675 else
12676   enable_shared=yes
12677 fi
12678
12679
12680 # Check whether --enable-static was given.
12681 if test "${enable_static+set}" = set; then
12682   enableval=$enable_static; p=${PACKAGE-default}
12683     case $enableval in
12684     yes) enable_static=yes ;;
12685     no) enable_static=no ;;
12686     *)
12687      enable_static=no
12688       # Look at the argument we got.  We use all the common list separators.
12689       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12690       for pkg in $enableval; do
12691         IFS="$lt_save_ifs"
12692         if test "X$pkg" = "X$p"; then
12693           enable_static=yes
12694         fi
12695       done
12696       IFS="$lt_save_ifs"
12697       ;;
12698     esac
12699 else
12700   enable_static=yes
12701 fi
12702
12703
12704 # Check whether --enable-fast-install was given.
12705 if test "${enable_fast_install+set}" = set; then
12706   enableval=$enable_fast_install; p=${PACKAGE-default}
12707     case $enableval in
12708     yes) enable_fast_install=yes ;;
12709     no) enable_fast_install=no ;;
12710     *)
12711       enable_fast_install=no
12712       # Look at the argument we got.  We use all the common list separators.
12713       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12714       for pkg in $enableval; do
12715         IFS="$lt_save_ifs"
12716         if test "X$pkg" = "X$p"; then
12717           enable_fast_install=yes
12718         fi
12719       done
12720       IFS="$lt_save_ifs"
12721       ;;
12722     esac
12723 else
12724   enable_fast_install=yes
12725 fi
12726
12727
12728 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12729 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12730 if test "${lt_cv_path_SED+set}" = set; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733   # Loop through the user's path and test for sed and gsed.
12734 # Then use that list of sed's as ones to test for truncation.
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12737 do
12738   IFS=$as_save_IFS
12739   test -z "$as_dir" && as_dir=.
12740   for lt_ac_prog in sed gsed; do
12741     for ac_exec_ext in '' $ac_executable_extensions; do
12742       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12743         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12744       fi
12745     done
12746   done
12747 done
12748 lt_ac_max=0
12749 lt_ac_count=0
12750 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12751 # along with /bin/sed that truncates output.
12752 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12753   test ! -f $lt_ac_sed && continue
12754   cat /dev/null > conftest.in
12755   lt_ac_count=0
12756   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12757   # Check for GNU sed and select it if it is found.
12758   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12759     lt_cv_path_SED=$lt_ac_sed
12760     break
12761   fi
12762   while true; do
12763     cat conftest.in conftest.in >conftest.tmp
12764     mv conftest.tmp conftest.in
12765     cp conftest.in conftest.nl
12766     echo >>conftest.nl
12767     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12768     cmp -s conftest.out conftest.nl || break
12769     # 10000 chars as input seems more than enough
12770     test $lt_ac_count -gt 10 && break
12771     lt_ac_count=`expr $lt_ac_count + 1`
12772     if test $lt_ac_count -gt $lt_ac_max; then
12773       lt_ac_max=$lt_ac_count
12774       lt_cv_path_SED=$lt_ac_sed
12775     fi
12776   done
12777 done
12778
12779 fi
12780
12781 SED=$lt_cv_path_SED
12782 { echo "$as_me:$LINENO: result: $SED" >&5
12783 echo "${ECHO_T}$SED" >&6; }
12784
12785
12786 # Check whether --with-gnu-ld was given.
12787 if test "${with_gnu_ld+set}" = set; then
12788   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12789 else
12790   with_gnu_ld=no
12791 fi
12792
12793 ac_prog=ld
12794 if test "$GCC" = yes; then
12795   # Check if gcc -print-prog-name=ld gives a path.
12796   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12797 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12798   case $host in
12799   *-*-mingw*)
12800     # gcc leaves a trailing carriage return which upsets mingw
12801     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12802   *)
12803     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12804   esac
12805   case $ac_prog in
12806     # Accept absolute paths.
12807     [\\/]* | ?:[\\/]*)
12808       re_direlt='/[^/][^/]*/\.\./'
12809       # Canonicalize the pathname of ld
12810       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12811       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12812         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12813       done
12814       test -z "$LD" && LD="$ac_prog"
12815       ;;
12816   "")
12817     # If it fails, then pretend we aren't using GCC.
12818     ac_prog=ld
12819     ;;
12820   *)
12821     # If it is relative, then search for the first ld in PATH.
12822     with_gnu_ld=unknown
12823     ;;
12824   esac
12825 elif test "$with_gnu_ld" = yes; then
12826   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12828 else
12829   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12831 fi
12832 if test "${lt_cv_path_LD+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   if test -z "$LD"; then
12836   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837   for ac_dir in $PATH; do
12838     IFS="$lt_save_ifs"
12839     test -z "$ac_dir" && ac_dir=.
12840     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841       lt_cv_path_LD="$ac_dir/$ac_prog"
12842       # Check to see if the program is GNU ld.  I'd rather use --version,
12843       # but apparently some variants of GNU ld only accept -v.
12844       # Break only if it was the GNU/non-GNU ld that we prefer.
12845       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846       *GNU* | *'with BFD'*)
12847         test "$with_gnu_ld" != no && break
12848         ;;
12849       *)
12850         test "$with_gnu_ld" != yes && break
12851         ;;
12852       esac
12853     fi
12854   done
12855   IFS="$lt_save_ifs"
12856 else
12857   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12858 fi
12859 fi
12860
12861 LD="$lt_cv_path_LD"
12862 if test -n "$LD"; then
12863   { echo "$as_me:$LINENO: result: $LD" >&5
12864 echo "${ECHO_T}$LD" >&6; }
12865 else
12866   { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12868 fi
12869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12871    { (exit 1); exit 1; }; }
12872 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12874 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12878 case `$LD -v 2>&1 </dev/null` in
12879 *GNU* | *'with BFD'*)
12880   lt_cv_prog_gnu_ld=yes
12881   ;;
12882 *)
12883   lt_cv_prog_gnu_ld=no
12884   ;;
12885 esac
12886 fi
12887 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12888 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12889 with_gnu_ld=$lt_cv_prog_gnu_ld
12890
12891
12892 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12894 if test "${lt_cv_ld_reload_flag+set}" = set; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897   lt_cv_ld_reload_flag='-r'
12898 fi
12899 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12901 reload_flag=$lt_cv_ld_reload_flag
12902 case $reload_flag in
12903 "" | " "*) ;;
12904 *) reload_flag=" $reload_flag" ;;
12905 esac
12906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12907 case $host_os in
12908   darwin*)
12909     if test "$GCC" = yes; then
12910       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12911     else
12912       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12913     fi
12914     ;;
12915 esac
12916
12917 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12918 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12919 if test "${lt_cv_deplibs_check_method+set}" = set; then
12920   echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922   lt_cv_file_magic_cmd='$MAGIC_CMD'
12923 lt_cv_file_magic_test_file=
12924 lt_cv_deplibs_check_method='unknown'
12925 # Need to set the preceding variable on all platforms that support
12926 # interlibrary dependencies.
12927 # 'none' -- dependencies not supported.
12928 # `unknown' -- same as none, but documents that we really don't know.
12929 # 'pass_all' -- all dependencies passed with no checks.
12930 # 'test_compile' -- check by making test program.
12931 # 'file_magic [[regex]]' -- check by looking for files in library path
12932 # which responds to the $file_magic_cmd with a given extended regex.
12933 # If you have `file' or equivalent on your system and you're not sure
12934 # whether `pass_all' will *always* work, you probably want this one.
12935
12936 case $host_os in
12937 aix4* | aix5*)
12938   lt_cv_deplibs_check_method=pass_all
12939   ;;
12940
12941 beos*)
12942   lt_cv_deplibs_check_method=pass_all
12943   ;;
12944
12945 bsdi[45]*)
12946   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12947   lt_cv_file_magic_cmd='/usr/bin/file -L'
12948   lt_cv_file_magic_test_file=/shlib/libc.so
12949   ;;
12950
12951 cygwin*)
12952   # func_win32_libid is a shell function defined in ltmain.sh
12953   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12954   lt_cv_file_magic_cmd='func_win32_libid'
12955   ;;
12956
12957 mingw* | pw32*)
12958   # Base MSYS/MinGW do not provide the 'file' command needed by
12959   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12960   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961   lt_cv_file_magic_cmd='$OBJDUMP -f'
12962   ;;
12963
12964 darwin* | rhapsody*)
12965   lt_cv_deplibs_check_method=pass_all
12966   ;;
12967
12968 freebsd* | kfreebsd*-gnu | dragonfly*)
12969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12970     case $host_cpu in
12971     i*86 )
12972       # Not sure whether the presence of OpenBSD here was a mistake.
12973       # Let's accept both of them until this is cleared up.
12974       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12975       lt_cv_file_magic_cmd=/usr/bin/file
12976       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12977       ;;
12978     esac
12979   else
12980     lt_cv_deplibs_check_method=pass_all
12981   fi
12982   ;;
12983
12984 gnu*)
12985   lt_cv_deplibs_check_method=pass_all
12986   ;;
12987
12988 hpux10.20* | hpux11*)
12989   lt_cv_file_magic_cmd=/usr/bin/file
12990   case $host_cpu in
12991   ia64*)
12992     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12994     ;;
12995   hppa*64*)
12996     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]'
12997     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12998     ;;
12999   *)
13000     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13001     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13002     ;;
13003   esac
13004   ;;
13005
13006 interix3*)
13007   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13009   ;;
13010
13011 irix5* | irix6* | nonstopux*)
13012   case $LD in
13013   *-32|*"-32 ") libmagic=32-bit;;
13014   *-n32|*"-n32 ") libmagic=N32;;
13015   *-64|*"-64 ") libmagic=64-bit;;
13016   *) libmagic=never-match;;
13017   esac
13018   lt_cv_deplibs_check_method=pass_all
13019   ;;
13020
13021 # This must be Linux ELF.
13022 linux*)
13023   lt_cv_deplibs_check_method=pass_all
13024   ;;
13025
13026 netbsd*)
13027   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029   else
13030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13031   fi
13032   ;;
13033
13034 newos6*)
13035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036   lt_cv_file_magic_cmd=/usr/bin/file
13037   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13038   ;;
13039
13040 nto-qnx*)
13041   lt_cv_deplibs_check_method=unknown
13042   ;;
13043
13044 openbsd*)
13045   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13047   else
13048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13049   fi
13050   ;;
13051
13052 osf3* | osf4* | osf5*)
13053   lt_cv_deplibs_check_method=pass_all
13054   ;;
13055
13056 solaris*)
13057   lt_cv_deplibs_check_method=pass_all
13058   ;;
13059
13060 sysv4 | sysv4.3*)
13061   case $host_vendor in
13062   motorola)
13063     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]'
13064     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13065     ;;
13066   ncr)
13067     lt_cv_deplibs_check_method=pass_all
13068     ;;
13069   sequent)
13070     lt_cv_file_magic_cmd='/bin/file'
13071     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13072     ;;
13073   sni)
13074     lt_cv_file_magic_cmd='/bin/file'
13075     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13076     lt_cv_file_magic_test_file=/lib/libc.so
13077     ;;
13078   siemens)
13079     lt_cv_deplibs_check_method=pass_all
13080     ;;
13081   pc)
13082     lt_cv_deplibs_check_method=pass_all
13083     ;;
13084   esac
13085   ;;
13086
13087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13088   lt_cv_deplibs_check_method=pass_all
13089   ;;
13090 esac
13091
13092 fi
13093 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13094 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13095 file_magic_cmd=$lt_cv_file_magic_cmd
13096 deplibs_check_method=$lt_cv_deplibs_check_method
13097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13098
13099
13100
13101 # If no C compiler was specified, use CC.
13102 LTCC=${LTCC-"$CC"}
13103
13104 # If no C compiler flags were specified, use CFLAGS.
13105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13106
13107 # Allow CC to be a program name with arguments.
13108 compiler=$CC
13109
13110 # Check whether --enable-libtool-lock was given.
13111 if test "${enable_libtool_lock+set}" = set; then
13112   enableval=$enable_libtool_lock;
13113 fi
13114
13115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13116
13117 # Some flags need to be propagated to the compiler or linker for good
13118 # libtool support.
13119 case $host in
13120 ia64-*-hpux*)
13121   # Find out which ABI we are using.
13122   echo 'int i;' > conftest.$ac_ext
13123   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124   (eval $ac_compile) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; then
13128     case `/usr/bin/file conftest.$ac_objext` in
13129     *ELF-32*)
13130       HPUX_IA64_MODE="32"
13131       ;;
13132     *ELF-64*)
13133       HPUX_IA64_MODE="64"
13134       ;;
13135     esac
13136   fi
13137   rm -rf conftest*
13138   ;;
13139 *-*-irix6*)
13140   # Find out which ABI we are using.
13141   echo '#line 13141 "configure"' > conftest.$ac_ext
13142   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143   (eval $ac_compile) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; then
13147    if test "$lt_cv_prog_gnu_ld" = yes; then
13148     case `/usr/bin/file conftest.$ac_objext` in
13149     *32-bit*)
13150       LD="${LD-ld} -melf32bsmip"
13151       ;;
13152     *N32*)
13153       LD="${LD-ld} -melf32bmipn32"
13154       ;;
13155     *64-bit*)
13156       LD="${LD-ld} -melf64bmip"
13157       ;;
13158     esac
13159    else
13160     case `/usr/bin/file conftest.$ac_objext` in
13161     *32-bit*)
13162       LD="${LD-ld} -32"
13163       ;;
13164     *N32*)
13165       LD="${LD-ld} -n32"
13166       ;;
13167     *64-bit*)
13168       LD="${LD-ld} -64"
13169       ;;
13170     esac
13171    fi
13172   fi
13173   rm -rf conftest*
13174   ;;
13175
13176 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13177   # Find out which ABI we are using.
13178   echo 'int i;' > conftest.$ac_ext
13179   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180   (eval $ac_compile) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; then
13184     case `/usr/bin/file conftest.o` in
13185     *32-bit*)
13186       case $host in
13187         x86_64-*linux*)
13188           LD="${LD-ld} -m elf_i386"
13189           ;;
13190         ppc64-*linux*|powerpc64-*linux*)
13191           LD="${LD-ld} -m elf32ppclinux"
13192           ;;
13193         s390x-*linux*)
13194           LD="${LD-ld} -m elf_s390"
13195           ;;
13196         sparc64-*linux*)
13197           LD="${LD-ld} -m elf32_sparc"
13198           ;;
13199       esac
13200       ;;
13201     *64-bit*)
13202       case $host in
13203         x86_64-*linux*)
13204           LD="${LD-ld} -m elf_x86_64"
13205           ;;
13206         ppc*-*linux*|powerpc*-*linux*)
13207           LD="${LD-ld} -m elf64ppc"
13208           ;;
13209         s390*-*linux*)
13210           LD="${LD-ld} -m elf64_s390"
13211           ;;
13212         sparc*-*linux*)
13213           LD="${LD-ld} -m elf64_sparc"
13214           ;;
13215       esac
13216       ;;
13217     esac
13218   fi
13219   rm -rf conftest*
13220   ;;
13221
13222 *-*-sco3.2v5*)
13223   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13224   SAVE_CFLAGS="$CFLAGS"
13225   CFLAGS="$CFLAGS -belf"
13226   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13227 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13228 if test "${lt_cv_cc_needs_belf+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   ac_ext=c
13232 ac_cpp='$CPP $CPPFLAGS'
13233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237      cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h.  */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h.  */
13243
13244 int
13245 main ()
13246 {
13247
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256   *) ac_try_echo=$ac_try;;
13257 esac
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259   (eval "$ac_link") 2>conftest.er1
13260   ac_status=$?
13261   grep -v '^ *+' conftest.er1 >conftest.err
13262   rm -f conftest.er1
13263   cat conftest.err >&5
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267   { (case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_try") 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; } &&
13276          { ac_try='test -s conftest$ac_exeext'
13277   { (case "(($ac_try" in
13278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279   *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282   (eval "$ac_try") 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   lt_cv_cc_needs_belf=yes
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291         lt_cv_cc_needs_belf=no
13292 fi
13293
13294 rm -f core conftest.err conftest.$ac_objext \
13295       conftest$ac_exeext conftest.$ac_ext
13296      ac_ext=c
13297 ac_cpp='$CPP $CPPFLAGS'
13298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13301
13302 fi
13303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13305   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13306     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13307     CFLAGS="$SAVE_CFLAGS"
13308   fi
13309   ;;
13310 sparc*-*solaris*)
13311   # Find out which ABI we are using.
13312   echo 'int i;' > conftest.$ac_ext
13313   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314   (eval $ac_compile) 2>&5
13315   ac_status=$?
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; then
13318     case `/usr/bin/file conftest.o` in
13319     *64-bit*)
13320       case $lt_cv_prog_gnu_ld in
13321       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322       *)    LD="${LD-ld} -64" ;;
13323       esac
13324       ;;
13325     esac
13326   fi
13327   rm -rf conftest*
13328   ;;
13329
13330
13331 esac
13332
13333 need_locks="$enable_libtool_lock"
13334
13335
13336
13337
13338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13339     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13340     (test "X$CXX" != "Xg++"))) ; then
13341   ac_ext=cpp
13342 ac_cpp='$CXXCPP $CPPFLAGS'
13343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13346 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13347 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13348 if test -z "$CXXCPP"; then
13349   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13350   echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352       # Double quotes because CXXCPP needs to be expanded
13353     for CXXCPP in "$CXX -E" "/lib/cpp"
13354     do
13355       ac_preproc_ok=false
13356 for ac_cxx_preproc_warn_flag in '' yes
13357 do
13358   # Use a header file that comes with gcc, so configuring glibc
13359   # with a fresh cross-compiler works.
13360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361   # <limits.h> exists even on freestanding compilers.
13362   # On the NeXT, cc -E runs the code through the compiler's parser,
13363   # not just through cpp. "Syntax error" is here to catch this case.
13364   cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370 #ifdef __STDC__
13371 # include <limits.h>
13372 #else
13373 # include <assert.h>
13374 #endif
13375                      Syntax error
13376 _ACEOF
13377 if { (ac_try="$ac_cpp conftest.$ac_ext"
13378 case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13384   ac_status=$?
13385   grep -v '^ *+' conftest.er1 >conftest.err
13386   rm -f conftest.er1
13387   cat conftest.err >&5
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } >/dev/null; then
13390   if test -s conftest.err; then
13391     ac_cpp_err=$ac_cxx_preproc_warn_flag
13392     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13393   else
13394     ac_cpp_err=
13395   fi
13396 else
13397   ac_cpp_err=yes
13398 fi
13399 if test -z "$ac_cpp_err"; then
13400   :
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405   # Broken: fails on valid input.
13406 continue
13407 fi
13408
13409 rm -f conftest.err conftest.$ac_ext
13410
13411   # OK, works on sane cases.  Now check whether nonexistent headers
13412   # can be detected and how.
13413   cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 #include <ac_nonexistent.h>
13420 _ACEOF
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428   ac_status=$?
13429   grep -v '^ *+' conftest.er1 >conftest.err
13430   rm -f conftest.er1
13431   cat conftest.err >&5
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } >/dev/null; then
13434   if test -s conftest.err; then
13435     ac_cpp_err=$ac_cxx_preproc_warn_flag
13436     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437   else
13438     ac_cpp_err=
13439   fi
13440 else
13441   ac_cpp_err=yes
13442 fi
13443 if test -z "$ac_cpp_err"; then
13444   # Broken: success on invalid input.
13445 continue
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450   # Passes both tests.
13451 ac_preproc_ok=:
13452 break
13453 fi
13454
13455 rm -f conftest.err conftest.$ac_ext
13456
13457 done
13458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459 rm -f conftest.err conftest.$ac_ext
13460 if $ac_preproc_ok; then
13461   break
13462 fi
13463
13464     done
13465     ac_cv_prog_CXXCPP=$CXXCPP
13466
13467 fi
13468   CXXCPP=$ac_cv_prog_CXXCPP
13469 else
13470   ac_cv_prog_CXXCPP=$CXXCPP
13471 fi
13472 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13473 echo "${ECHO_T}$CXXCPP" >&6; }
13474 ac_preproc_ok=false
13475 for ac_cxx_preproc_warn_flag in '' yes
13476 do
13477   # Use a header file that comes with gcc, so configuring glibc
13478   # with a fresh cross-compiler works.
13479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480   # <limits.h> exists even on freestanding compilers.
13481   # On the NeXT, cc -E runs the code through the compiler's parser,
13482   # not just through cpp. "Syntax error" is here to catch this case.
13483   cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489 #ifdef __STDC__
13490 # include <limits.h>
13491 #else
13492 # include <assert.h>
13493 #endif
13494                      Syntax error
13495 _ACEOF
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } >/dev/null; then
13509   if test -s conftest.err; then
13510     ac_cpp_err=$ac_cxx_preproc_warn_flag
13511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13512   else
13513     ac_cpp_err=
13514   fi
13515 else
13516   ac_cpp_err=yes
13517 fi
13518 if test -z "$ac_cpp_err"; then
13519   :
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524   # Broken: fails on valid input.
13525 continue
13526 fi
13527
13528 rm -f conftest.err conftest.$ac_ext
13529
13530   # OK, works on sane cases.  Now check whether nonexistent headers
13531   # can be detected and how.
13532   cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538 #include <ac_nonexistent.h>
13539 _ACEOF
13540 if { (ac_try="$ac_cpp conftest.$ac_ext"
13541 case "(($ac_try" in
13542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543   *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13547   ac_status=$?
13548   grep -v '^ *+' conftest.er1 >conftest.err
13549   rm -f conftest.er1
13550   cat conftest.err >&5
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); } >/dev/null; then
13553   if test -s conftest.err; then
13554     ac_cpp_err=$ac_cxx_preproc_warn_flag
13555     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13556   else
13557     ac_cpp_err=
13558   fi
13559 else
13560   ac_cpp_err=yes
13561 fi
13562 if test -z "$ac_cpp_err"; then
13563   # Broken: success on invalid input.
13564 continue
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569   # Passes both tests.
13570 ac_preproc_ok=:
13571 break
13572 fi
13573
13574 rm -f conftest.err conftest.$ac_ext
13575
13576 done
13577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13578 rm -f conftest.err conftest.$ac_ext
13579 if $ac_preproc_ok; then
13580   :
13581 else
13582   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13583 See \`config.log' for more details." >&5
13584 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13585 See \`config.log' for more details." >&2;}
13586    { (exit 1); exit 1; }; }
13587 fi
13588
13589 ac_ext=cpp
13590 ac_cpp='$CXXCPP $CPPFLAGS'
13591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594
13595 fi
13596
13597
13598 ac_ext=f
13599 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13600 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13602 if test -n "$ac_tool_prefix"; then
13603   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
13604   do
13605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13609 if test "${ac_cv_prog_F77+set}" = set; then
13610   echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612   if test -n "$F77"; then
13613   ac_cv_prog_F77="$F77" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618   IFS=$as_save_IFS
13619   test -z "$as_dir" && as_dir=.
13620   for ac_exec_ext in '' $ac_executable_extensions; do
13621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13622     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624     break 2
13625   fi
13626 done
13627 done
13628 IFS=$as_save_IFS
13629
13630 fi
13631 fi
13632 F77=$ac_cv_prog_F77
13633 if test -n "$F77"; then
13634   { echo "$as_me:$LINENO: result: $F77" >&5
13635 echo "${ECHO_T}$F77" >&6; }
13636 else
13637   { echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6; }
13639 fi
13640
13641
13642     test -n "$F77" && break
13643   done
13644 fi
13645 if test -z "$F77"; then
13646   ac_ct_F77=$F77
13647   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
13648 do
13649   # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13653 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   if test -n "$ac_ct_F77"; then
13657   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13661 do
13662   IFS=$as_save_IFS
13663   test -z "$as_dir" && as_dir=.
13664   for ac_exec_ext in '' $ac_executable_extensions; do
13665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13666     ac_cv_prog_ac_ct_F77="$ac_prog"
13667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13668     break 2
13669   fi
13670 done
13671 done
13672 IFS=$as_save_IFS
13673
13674 fi
13675 fi
13676 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13677 if test -n "$ac_ct_F77"; then
13678   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13679 echo "${ECHO_T}$ac_ct_F77" >&6; }
13680 else
13681   { echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6; }
13683 fi
13684
13685
13686   test -n "$ac_ct_F77" && break
13687 done
13688
13689   if test "x$ac_ct_F77" = x; then
13690     F77=""
13691   else
13692     case $cross_compiling:$ac_tool_warned in
13693 yes:)
13694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13695 whose name does not start with the host triplet.  If you think this
13696 configuration is useful to you, please write to autoconf@gnu.org." >&5
13697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13698 whose name does not start with the host triplet.  If you think this
13699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13700 ac_tool_warned=yes ;;
13701 esac
13702     F77=$ac_ct_F77
13703   fi
13704 fi
13705
13706
13707 # Provide some information about the compiler.
13708 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13709 ac_compiler=`set X $ac_compile; echo $2`
13710 { (ac_try="$ac_compiler --version >&5"
13711 case "(($ac_try" in
13712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713   *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716   (eval "$ac_compiler --version >&5") 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }
13720 { (ac_try="$ac_compiler -v >&5"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_compiler -v >&5") 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }
13730 { (ac_try="$ac_compiler -V >&5"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_compiler -V >&5") 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }
13740 rm -f a.out
13741
13742 # If we don't use `.F' as extension, the preprocessor is not run on the
13743 # input file.  (Note that this only needs to work for GNU compilers.)
13744 ac_save_ext=$ac_ext
13745 ac_ext=F
13746 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13747 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13748 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13749   echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751   cat >conftest.$ac_ext <<_ACEOF
13752       program main
13753 #ifndef __GNUC__
13754        choke me
13755 #endif
13756
13757       end
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_compile") 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } &&
13773          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774   { (case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779   (eval "$ac_try") 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; } &&
13783          { ac_try='test -s conftest.$ac_objext'
13784   { (case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789   (eval "$ac_try") 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793   ac_compiler_gnu=yes
13794 else
13795   echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798         ac_compiler_gnu=no
13799 fi
13800
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13803
13804 fi
13805 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13806 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13807 ac_ext=$ac_save_ext
13808 ac_test_FFLAGS=${FFLAGS+set}
13809 ac_save_FFLAGS=$FFLAGS
13810 FFLAGS=
13811 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13812 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13813 if test "${ac_cv_prog_f77_g+set}" = set; then
13814   echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816   FFLAGS=-g
13817 cat >conftest.$ac_ext <<_ACEOF
13818       program main
13819
13820       end
13821 _ACEOF
13822 rm -f conftest.$ac_objext
13823 if { (ac_try="$ac_compile"
13824 case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829   (eval "$ac_compile") 2>conftest.er1
13830   ac_status=$?
13831   grep -v '^ *+' conftest.er1 >conftest.err
13832   rm -f conftest.er1
13833   cat conftest.err >&5
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } &&
13836          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13837   { (case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_try") 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; } &&
13846          { ac_try='test -s conftest.$ac_objext'
13847   { (case "(($ac_try" in
13848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849   *) ac_try_echo=$ac_try;;
13850 esac
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852   (eval "$ac_try") 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_cv_prog_f77_g=yes
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861         ac_cv_prog_f77_g=no
13862 fi
13863
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865
13866 fi
13867 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13868 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13869 if test "$ac_test_FFLAGS" = set; then
13870   FFLAGS=$ac_save_FFLAGS
13871 elif test $ac_cv_prog_f77_g = yes; then
13872   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13873     FFLAGS="-g -O2"
13874   else
13875     FFLAGS="-g"
13876   fi
13877 else
13878   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13879     FFLAGS="-O2"
13880   else
13881     FFLAGS=
13882   fi
13883 fi
13884
13885 G77=`test $ac_compiler_gnu = yes && echo yes`
13886 ac_ext=c
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892
13893
13894 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13895
13896 # find the maximum length of command line arguments
13897 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13898 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13899 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902     i=0
13903   teststring="ABCD"
13904
13905   case $build_os in
13906   msdosdjgpp*)
13907     # On DJGPP, this test can blow up pretty badly due to problems in libc
13908     # (any single argument exceeding 2000 bytes causes a buffer overrun
13909     # during glob expansion).  Even if it were fixed, the result of this
13910     # check would be larger than it should be.
13911     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13912     ;;
13913
13914   gnu*)
13915     # Under GNU Hurd, this test is not required because there is
13916     # no limit to the length of command line arguments.
13917     # Libtool will interpret -1 as no limit whatsoever
13918     lt_cv_sys_max_cmd_len=-1;
13919     ;;
13920
13921   cygwin* | mingw*)
13922     # On Win9x/ME, this test blows up -- it succeeds, but takes
13923     # about 5 minutes as the teststring grows exponentially.
13924     # Worse, since 9x/ME are not pre-emptively multitasking,
13925     # you end up with a "frozen" computer, even though with patience
13926     # the test eventually succeeds (with a max line length of 256k).
13927     # Instead, let's just punt: use the minimum linelength reported by
13928     # all of the supported platforms: 8192 (on NT/2K/XP).
13929     lt_cv_sys_max_cmd_len=8192;
13930     ;;
13931
13932   amigaos*)
13933     # On AmigaOS with pdksh, this test takes hours, literally.
13934     # So we just punt and use a minimum line length of 8192.
13935     lt_cv_sys_max_cmd_len=8192;
13936     ;;
13937
13938   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13939     # This has been around since 386BSD, at least.  Likely further.
13940     if test -x /sbin/sysctl; then
13941       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13942     elif test -x /usr/sbin/sysctl; then
13943       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13944     else
13945       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13946     fi
13947     # And add a safety zone
13948     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13949     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13950     ;;
13951
13952   interix*)
13953     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13954     lt_cv_sys_max_cmd_len=196608
13955     ;;
13956
13957   osf*)
13958     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13959     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13960     # nice to cause kernel panics so lets avoid the loop below.
13961     # First set a reasonable default.
13962     lt_cv_sys_max_cmd_len=16384
13963     #
13964     if test -x /sbin/sysconfig; then
13965       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13966         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13967       esac
13968     fi
13969     ;;
13970   sco3.2v5*)
13971     lt_cv_sys_max_cmd_len=102400
13972     ;;
13973   sysv5* | sco5v6* | sysv4.2uw2*)
13974     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13975     if test -n "$kargmax"; then
13976       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13977     else
13978       lt_cv_sys_max_cmd_len=32768
13979     fi
13980     ;;
13981   *)
13982     # If test is not a shell built-in, we'll probably end up computing a
13983     # maximum length that is only half of the actual maximum length, but
13984     # we can't tell.
13985     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13986     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13987                = "XX$teststring") >/dev/null 2>&1 &&
13988             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13989             lt_cv_sys_max_cmd_len=$new_result &&
13990             test $i != 17 # 1/2 MB should be enough
13991     do
13992       i=`expr $i + 1`
13993       teststring=$teststring$teststring
13994     done
13995     teststring=
13996     # Add a significant safety factor because C++ compilers can tack on massive
13997     # amounts of additional arguments before passing them to the linker.
13998     # It appears as though 1/2 is a usable value.
13999     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14000     ;;
14001   esac
14002
14003 fi
14004
14005 if test -n $lt_cv_sys_max_cmd_len ; then
14006   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14007 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14008 else
14009   { echo "$as_me:$LINENO: result: none" >&5
14010 echo "${ECHO_T}none" >&6; }
14011 fi
14012
14013
14014
14015
14016 # Check for command to grab the raw symbol name followed by C symbol from nm.
14017 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022
14023 # These are sane defaults that work on at least a few old systems.
14024 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14025
14026 # Character class describing NM global symbol codes.
14027 symcode='[BCDEGRST]'
14028
14029 # Regexp to match symbols that can be accessed directly from C.
14030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14031
14032 # Transform an extracted symbol line into a proper C declaration
14033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14034
14035 # Transform an extracted symbol line into symbol name and symbol address
14036 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'"
14037
14038 # Define system-specific variables.
14039 case $host_os in
14040 aix*)
14041   symcode='[BCDT]'
14042   ;;
14043 cygwin* | mingw* | pw32*)
14044   symcode='[ABCDGISTW]'
14045   ;;
14046 hpux*) # Its linker distinguishes data from code symbols
14047   if test "$host_cpu" = ia64; then
14048     symcode='[ABCDEGRST]'
14049   fi
14050   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051   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'"
14052   ;;
14053 linux*)
14054   if test "$host_cpu" = ia64; then
14055     symcode='[ABCDGIRSTW]'
14056     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14057     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'"
14058   fi
14059   ;;
14060 irix* | nonstopux*)
14061   symcode='[BCDEGRST]'
14062   ;;
14063 osf*)
14064   symcode='[BCDEGQRST]'
14065   ;;
14066 solaris*)
14067   symcode='[BDRT]'
14068   ;;
14069 sco3.2v5*)
14070   symcode='[DT]'
14071   ;;
14072 sysv4.2uw2*)
14073   symcode='[DT]'
14074   ;;
14075 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14076   symcode='[ABDT]'
14077   ;;
14078 sysv4)
14079   symcode='[DFNSTU]'
14080   ;;
14081 esac
14082
14083 # Handle CRLF in mingw tool chain
14084 opt_cr=
14085 case $build_os in
14086 mingw*)
14087   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14088   ;;
14089 esac
14090
14091 # If we're using GNU nm, then use its standard symbol codes.
14092 case `$NM -V 2>&1` in
14093 *GNU* | *'with BFD'*)
14094   symcode='[ABCDGIRSTW]' ;;
14095 esac
14096
14097 # Try without a prefix undercore, then with it.
14098 for ac_symprfx in "" "_"; do
14099
14100   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14101   symxfrm="\\1 $ac_symprfx\\2 \\2"
14102
14103   # Write the raw and C identifiers.
14104   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14105
14106   # Check to see that the pipe works correctly.
14107   pipe_works=no
14108
14109   rm -f conftest*
14110   cat > conftest.$ac_ext <<EOF
14111 #ifdef __cplusplus
14112 extern "C" {
14113 #endif
14114 char nm_test_var;
14115 void nm_test_func(){}
14116 #ifdef __cplusplus
14117 }
14118 #endif
14119 int main(){nm_test_var='a';nm_test_func();return(0);}
14120 EOF
14121
14122   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123   (eval $ac_compile) 2>&5
14124   ac_status=$?
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); }; then
14127     # Now try to grab the symbols.
14128     nlist=conftest.nm
14129     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14130   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); } && test -s "$nlist"; then
14134       # Try sorting and uniquifying the output.
14135       if sort "$nlist" | uniq > "$nlist"T; then
14136         mv -f "$nlist"T "$nlist"
14137       else
14138         rm -f "$nlist"T
14139       fi
14140
14141       # Make sure that we snagged all the symbols we need.
14142       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14143         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14144           cat <<EOF > conftest.$ac_ext
14145 #ifdef __cplusplus
14146 extern "C" {
14147 #endif
14148
14149 EOF
14150           # Now generate the symbol file.
14151           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14152
14153           cat <<EOF >> conftest.$ac_ext
14154 #if defined (__STDC__) && __STDC__
14155 # define lt_ptr_t void *
14156 #else
14157 # define lt_ptr_t char *
14158 # define const
14159 #endif
14160
14161 /* The mapping between symbol names and symbols. */
14162 const struct {
14163   const char *name;
14164   lt_ptr_t address;
14165 }
14166 lt_preloaded_symbols[] =
14167 {
14168 EOF
14169           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14170           cat <<\EOF >> conftest.$ac_ext
14171   {0, (lt_ptr_t) 0}
14172 };
14173
14174 #ifdef __cplusplus
14175 }
14176 #endif
14177 EOF
14178           # Now try linking the two files.
14179           mv conftest.$ac_objext conftstm.$ac_objext
14180           lt_save_LIBS="$LIBS"
14181           lt_save_CFLAGS="$CFLAGS"
14182           LIBS="conftstm.$ac_objext"
14183           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14184           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185   (eval $ac_link) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14189             pipe_works=yes
14190           fi
14191           LIBS="$lt_save_LIBS"
14192           CFLAGS="$lt_save_CFLAGS"
14193         else
14194           echo "cannot find nm_test_func in $nlist" >&5
14195         fi
14196       else
14197         echo "cannot find nm_test_var in $nlist" >&5
14198       fi
14199     else
14200       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14201     fi
14202   else
14203     echo "$progname: failed program was:" >&5
14204     cat conftest.$ac_ext >&5
14205   fi
14206   rm -f conftest* conftst*
14207
14208   # Do not use the global_symbol_pipe unless it works.
14209   if test "$pipe_works" = yes; then
14210     break
14211   else
14212     lt_cv_sys_global_symbol_pipe=
14213   fi
14214 done
14215
14216 fi
14217
14218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14219   lt_cv_sys_global_symbol_to_cdecl=
14220 fi
14221 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14222   { echo "$as_me:$LINENO: result: failed" >&5
14223 echo "${ECHO_T}failed" >&6; }
14224 else
14225   { echo "$as_me:$LINENO: result: ok" >&5
14226 echo "${ECHO_T}ok" >&6; }
14227 fi
14228
14229 { echo "$as_me:$LINENO: checking for objdir" >&5
14230 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14231 if test "${lt_cv_objdir+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   rm -f .libs 2>/dev/null
14235 mkdir .libs 2>/dev/null
14236 if test -d .libs; then
14237   lt_cv_objdir=.libs
14238 else
14239   # MS-DOS does not allow filenames that begin with a dot.
14240   lt_cv_objdir=_libs
14241 fi
14242 rmdir .libs 2>/dev/null
14243 fi
14244 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14245 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14246 objdir=$lt_cv_objdir
14247
14248
14249
14250
14251
14252 case $host_os in
14253 aix3*)
14254   # AIX sometimes has problems with the GCC collect2 program.  For some
14255   # reason, if we set the COLLECT_NAMES environment variable, the problems
14256   # vanish in a puff of smoke.
14257   if test "X${COLLECT_NAMES+set}" != Xset; then
14258     COLLECT_NAMES=
14259     export COLLECT_NAMES
14260   fi
14261   ;;
14262 esac
14263
14264 # Sed substitution that helps us do robust quoting.  It backslashifies
14265 # metacharacters that are still active within double-quoted strings.
14266 Xsed='sed -e 1s/^X//'
14267 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14268
14269 # Same as above, but do not quote variable references.
14270 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14271
14272 # Sed substitution to delay expansion of an escaped shell variable in a
14273 # double_quote_subst'ed string.
14274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14275
14276 # Sed substitution to avoid accidental globbing in evaled expressions
14277 no_glob_subst='s/\*/\\\*/g'
14278
14279 # Constants:
14280 rm="rm -f"
14281
14282 # Global variables:
14283 default_ofile=mklib
14284 can_build_shared=yes
14285
14286 # All known linkers require a `.a' archive for static linking (except MSVC,
14287 # which needs '.lib').
14288 libext=a
14289 ltmain="$ac_aux_dir/ltmain.sh"
14290 ofile="$default_ofile"
14291 with_gnu_ld="$lt_cv_prog_gnu_ld"
14292
14293 if test -n "$ac_tool_prefix"; then
14294   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14295 set dummy ${ac_tool_prefix}ar; ac_word=$2
14296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14298 if test "${ac_cv_prog_AR+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   if test -n "$AR"; then
14302   ac_cv_prog_AR="$AR" # Let the user override the test.
14303 else
14304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305 for as_dir in $PATH
14306 do
14307   IFS=$as_save_IFS
14308   test -z "$as_dir" && as_dir=.
14309   for ac_exec_ext in '' $ac_executable_extensions; do
14310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14311     ac_cv_prog_AR="${ac_tool_prefix}ar"
14312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313     break 2
14314   fi
14315 done
14316 done
14317 IFS=$as_save_IFS
14318
14319 fi
14320 fi
14321 AR=$ac_cv_prog_AR
14322 if test -n "$AR"; then
14323   { echo "$as_me:$LINENO: result: $AR" >&5
14324 echo "${ECHO_T}$AR" >&6; }
14325 else
14326   { echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6; }
14328 fi
14329
14330
14331 fi
14332 if test -z "$ac_cv_prog_AR"; then
14333   ac_ct_AR=$AR
14334   # Extract the first word of "ar", so it can be a program name with args.
14335 set dummy ar; ac_word=$2
14336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14338 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   if test -n "$ac_ct_AR"; then
14342   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14343 else
14344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345 for as_dir in $PATH
14346 do
14347   IFS=$as_save_IFS
14348   test -z "$as_dir" && as_dir=.
14349   for ac_exec_ext in '' $ac_executable_extensions; do
14350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14351     ac_cv_prog_ac_ct_AR="ar"
14352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14353     break 2
14354   fi
14355 done
14356 done
14357 IFS=$as_save_IFS
14358
14359 fi
14360 fi
14361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14362 if test -n "$ac_ct_AR"; then
14363   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14364 echo "${ECHO_T}$ac_ct_AR" >&6; }
14365 else
14366   { echo "$as_me:$LINENO: result: no" >&5
14367 echo "${ECHO_T}no" >&6; }
14368 fi
14369
14370   if test "x$ac_ct_AR" = x; then
14371     AR="false"
14372   else
14373     case $cross_compiling:$ac_tool_warned in
14374 yes:)
14375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14376 whose name does not start with the host triplet.  If you think this
14377 configuration is useful to you, please write to autoconf@gnu.org." >&5
14378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14379 whose name does not start with the host triplet.  If you think this
14380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14381 ac_tool_warned=yes ;;
14382 esac
14383     AR=$ac_ct_AR
14384   fi
14385 else
14386   AR="$ac_cv_prog_AR"
14387 fi
14388
14389 if test -n "$ac_tool_prefix"; then
14390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14394 if test "${ac_cv_prog_RANLIB+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   if test -n "$RANLIB"; then
14398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14399 else
14400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401 for as_dir in $PATH
14402 do
14403   IFS=$as_save_IFS
14404   test -z "$as_dir" && as_dir=.
14405   for ac_exec_ext in '' $ac_executable_extensions; do
14406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14409     break 2
14410   fi
14411 done
14412 done
14413 IFS=$as_save_IFS
14414
14415 fi
14416 fi
14417 RANLIB=$ac_cv_prog_RANLIB
14418 if test -n "$RANLIB"; then
14419   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14420 echo "${ECHO_T}$RANLIB" >&6; }
14421 else
14422   { echo "$as_me:$LINENO: result: no" >&5
14423 echo "${ECHO_T}no" >&6; }
14424 fi
14425
14426
14427 fi
14428 if test -z "$ac_cv_prog_RANLIB"; then
14429   ac_ct_RANLIB=$RANLIB
14430   # Extract the first word of "ranlib", so it can be a program name with args.
14431 set dummy ranlib; ac_word=$2
14432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   if test -n "$ac_ct_RANLIB"; then
14438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14442 do
14443   IFS=$as_save_IFS
14444   test -z "$as_dir" && as_dir=.
14445   for ac_exec_ext in '' $ac_executable_extensions; do
14446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14447     ac_cv_prog_ac_ct_RANLIB="ranlib"
14448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449     break 2
14450   fi
14451 done
14452 done
14453 IFS=$as_save_IFS
14454
14455 fi
14456 fi
14457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458 if test -n "$ac_ct_RANLIB"; then
14459   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14461 else
14462   { echo "$as_me:$LINENO: result: no" >&5
14463 echo "${ECHO_T}no" >&6; }
14464 fi
14465
14466   if test "x$ac_ct_RANLIB" = x; then
14467     RANLIB=":"
14468   else
14469     case $cross_compiling:$ac_tool_warned in
14470 yes:)
14471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14472 whose name does not start with the host triplet.  If you think this
14473 configuration is useful to you, please write to autoconf@gnu.org." >&5
14474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14475 whose name does not start with the host triplet.  If you think this
14476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14477 ac_tool_warned=yes ;;
14478 esac
14479     RANLIB=$ac_ct_RANLIB
14480   fi
14481 else
14482   RANLIB="$ac_cv_prog_RANLIB"
14483 fi
14484
14485 if test -n "$ac_tool_prefix"; then
14486   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14487 set dummy ${ac_tool_prefix}strip; ac_word=$2
14488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14490 if test "${ac_cv_prog_STRIP+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493   if test -n "$STRIP"; then
14494   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14495 else
14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14498 do
14499   IFS=$as_save_IFS
14500   test -z "$as_dir" && as_dir=.
14501   for ac_exec_ext in '' $ac_executable_extensions; do
14502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14503     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14505     break 2
14506   fi
14507 done
14508 done
14509 IFS=$as_save_IFS
14510
14511 fi
14512 fi
14513 STRIP=$ac_cv_prog_STRIP
14514 if test -n "$STRIP"; then
14515   { echo "$as_me:$LINENO: result: $STRIP" >&5
14516 echo "${ECHO_T}$STRIP" >&6; }
14517 else
14518   { echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6; }
14520 fi
14521
14522
14523 fi
14524 if test -z "$ac_cv_prog_STRIP"; then
14525   ac_ct_STRIP=$STRIP
14526   # Extract the first word of "strip", so it can be a program name with args.
14527 set dummy strip; ac_word=$2
14528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   if test -n "$ac_ct_STRIP"; then
14534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14535 else
14536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14538 do
14539   IFS=$as_save_IFS
14540   test -z "$as_dir" && as_dir=.
14541   for ac_exec_ext in '' $ac_executable_extensions; do
14542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14543     ac_cv_prog_ac_ct_STRIP="strip"
14544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14545     break 2
14546   fi
14547 done
14548 done
14549 IFS=$as_save_IFS
14550
14551 fi
14552 fi
14553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14554 if test -n "$ac_ct_STRIP"; then
14555   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14556 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14557 else
14558   { echo "$as_me:$LINENO: result: no" >&5
14559 echo "${ECHO_T}no" >&6; }
14560 fi
14561
14562   if test "x$ac_ct_STRIP" = x; then
14563     STRIP=":"
14564   else
14565     case $cross_compiling:$ac_tool_warned in
14566 yes:)
14567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14568 whose name does not start with the host triplet.  If you think this
14569 configuration is useful to you, please write to autoconf@gnu.org." >&5
14570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14571 whose name does not start with the host triplet.  If you think this
14572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14573 ac_tool_warned=yes ;;
14574 esac
14575     STRIP=$ac_ct_STRIP
14576   fi
14577 else
14578   STRIP="$ac_cv_prog_STRIP"
14579 fi
14580
14581
14582 old_CC="$CC"
14583 old_CFLAGS="$CFLAGS"
14584
14585 # Set sane defaults for various variables
14586 test -z "$AR" && AR=ar
14587 test -z "$AR_FLAGS" && AR_FLAGS=cru
14588 test -z "$AS" && AS=as
14589 test -z "$CC" && CC=cc
14590 test -z "$LTCC" && LTCC=$CC
14591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14592 test -z "$DLLTOOL" && DLLTOOL=dlltool
14593 test -z "$LD" && LD=ld
14594 test -z "$LN_S" && LN_S="ln -s"
14595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14596 test -z "$NM" && NM=nm
14597 test -z "$SED" && SED=sed
14598 test -z "$OBJDUMP" && OBJDUMP=objdump
14599 test -z "$RANLIB" && RANLIB=:
14600 test -z "$STRIP" && STRIP=:
14601 test -z "$ac_objext" && ac_objext=o
14602
14603 # Determine commands to create old-style static archives.
14604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14605 old_postinstall_cmds='chmod 644 $oldlib'
14606 old_postuninstall_cmds=
14607
14608 if test -n "$RANLIB"; then
14609   case $host_os in
14610   openbsd*)
14611     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14612     ;;
14613   *)
14614     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14615     ;;
14616   esac
14617   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14618 fi
14619
14620 for cc_temp in $compiler""; do
14621   case $cc_temp in
14622     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14623     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14624     \-*) ;;
14625     *) break;;
14626   esac
14627 done
14628 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14629
14630
14631 # Only perform the check for file, if the check method requires it
14632 case $deplibs_check_method in
14633 file_magic*)
14634   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14635     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   case $MAGIC_CMD in
14641 [\\/*] |  ?:[\\/]*)
14642   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14643   ;;
14644 *)
14645   lt_save_MAGIC_CMD="$MAGIC_CMD"
14646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14647   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14648   for ac_dir in $ac_dummy; do
14649     IFS="$lt_save_ifs"
14650     test -z "$ac_dir" && ac_dir=.
14651     if test -f $ac_dir/${ac_tool_prefix}file; then
14652       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14653       if test -n "$file_magic_test_file"; then
14654         case $deplibs_check_method in
14655         "file_magic "*)
14656           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14657           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14658           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14659             $EGREP "$file_magic_regex" > /dev/null; then
14660             :
14661           else
14662             cat <<EOF 1>&2
14663
14664 *** Warning: the command libtool uses to detect shared libraries,
14665 *** $file_magic_cmd, produces output that libtool cannot recognize.
14666 *** The result is that libtool may fail to recognize shared libraries
14667 *** as such.  This will affect the creation of libtool libraries that
14668 *** depend on shared libraries, but programs linked with such libtool
14669 *** libraries will work regardless of this problem.  Nevertheless, you
14670 *** may want to report the problem to your system manager and/or to
14671 *** bug-libtool@gnu.org
14672
14673 EOF
14674           fi ;;
14675         esac
14676       fi
14677       break
14678     fi
14679   done
14680   IFS="$lt_save_ifs"
14681   MAGIC_CMD="$lt_save_MAGIC_CMD"
14682   ;;
14683 esac
14684 fi
14685
14686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687 if test -n "$MAGIC_CMD"; then
14688   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14689 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14690 else
14691   { echo "$as_me:$LINENO: result: no" >&5
14692 echo "${ECHO_T}no" >&6; }
14693 fi
14694
14695 if test -z "$lt_cv_path_MAGIC_CMD"; then
14696   if test -n "$ac_tool_prefix"; then
14697     { echo "$as_me:$LINENO: checking for file" >&5
14698 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14700   echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702   case $MAGIC_CMD in
14703 [\\/*] |  ?:[\\/]*)
14704   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705   ;;
14706 *)
14707   lt_save_MAGIC_CMD="$MAGIC_CMD"
14708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14709   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14710   for ac_dir in $ac_dummy; do
14711     IFS="$lt_save_ifs"
14712     test -z "$ac_dir" && ac_dir=.
14713     if test -f $ac_dir/file; then
14714       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14715       if test -n "$file_magic_test_file"; then
14716         case $deplibs_check_method in
14717         "file_magic "*)
14718           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14719           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14720           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14721             $EGREP "$file_magic_regex" > /dev/null; then
14722             :
14723           else
14724             cat <<EOF 1>&2
14725
14726 *** Warning: the command libtool uses to detect shared libraries,
14727 *** $file_magic_cmd, produces output that libtool cannot recognize.
14728 *** The result is that libtool may fail to recognize shared libraries
14729 *** as such.  This will affect the creation of libtool libraries that
14730 *** depend on shared libraries, but programs linked with such libtool
14731 *** libraries will work regardless of this problem.  Nevertheless, you
14732 *** may want to report the problem to your system manager and/or to
14733 *** bug-libtool@gnu.org
14734
14735 EOF
14736           fi ;;
14737         esac
14738       fi
14739       break
14740     fi
14741   done
14742   IFS="$lt_save_ifs"
14743   MAGIC_CMD="$lt_save_MAGIC_CMD"
14744   ;;
14745 esac
14746 fi
14747
14748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14749 if test -n "$MAGIC_CMD"; then
14750   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14752 else
14753   { echo "$as_me:$LINENO: result: no" >&5
14754 echo "${ECHO_T}no" >&6; }
14755 fi
14756
14757   else
14758     MAGIC_CMD=:
14759   fi
14760 fi
14761
14762   fi
14763   ;;
14764 esac
14765
14766 enable_dlopen=yes
14767 enable_win32_dll=no
14768
14769 # Check whether --enable-libtool-lock was given.
14770 if test "${enable_libtool_lock+set}" = set; then
14771   enableval=$enable_libtool_lock;
14772 fi
14773
14774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14775
14776
14777 # Check whether --with-pic was given.
14778 if test "${with_pic+set}" = set; then
14779   withval=$with_pic; pic_mode="$withval"
14780 else
14781   pic_mode=default
14782 fi
14783
14784 test -z "$pic_mode" && pic_mode=default
14785
14786 # Use C for the default configuration in the libtool script
14787 tagname=
14788 lt_save_CC="$CC"
14789 ac_ext=c
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14794
14795
14796 # Source file extension for C test sources.
14797 ac_ext=c
14798
14799 # Object file extension for compiled C test sources.
14800 objext=o
14801 objext=$objext
14802
14803 # Code to be used in simple compile tests
14804 lt_simple_compile_test_code="int some_variable = 0;\n"
14805
14806 # Code to be used in simple link tests
14807 lt_simple_link_test_code='int main(){return(0);}\n'
14808
14809
14810 # If no C compiler was specified, use CC.
14811 LTCC=${LTCC-"$CC"}
14812
14813 # If no C compiler flags were specified, use CFLAGS.
14814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14815
14816 # Allow CC to be a program name with arguments.
14817 compiler=$CC
14818
14819
14820 # save warnings/boilerplate of simple test code
14821 ac_outfile=conftest.$ac_objext
14822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824 _lt_compiler_boilerplate=`cat conftest.err`
14825 $rm conftest*
14826
14827 ac_outfile=conftest.$ac_objext
14828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830 _lt_linker_boilerplate=`cat conftest.err`
14831 $rm conftest*
14832
14833
14834
14835 lt_prog_compiler_no_builtin_flag=
14836
14837 if test "$GCC" = yes; then
14838   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14839
14840
14841 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14842 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14843 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   lt_cv_prog_compiler_rtti_exceptions=no
14847   ac_outfile=conftest.$ac_objext
14848    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849    lt_compiler_flag="-fno-rtti -fno-exceptions"
14850    # Insert the option either (1) after the last *FLAGS variable, or
14851    # (2) before a word containing "conftest.", or (3) at the end.
14852    # Note that $ac_compile itself does not contain backslashes and begins
14853    # with a dollar sign (not a hyphen), so the echo should work correctly.
14854    # The option is referenced via a variable to avoid confusing sed.
14855    lt_compile=`echo "$ac_compile" | $SED \
14856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858    -e 's:$: $lt_compiler_flag:'`
14859    (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
14860    (eval "$lt_compile" 2>conftest.err)
14861    ac_status=$?
14862    cat conftest.err >&5
14863    echo "$as_me:14863: \$? = $ac_status" >&5
14864    if (exit $ac_status) && test -s "$ac_outfile"; then
14865      # The compiler can only warn and ignore the option if not recognized
14866      # So say no if there are warnings other than the usual output.
14867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14868      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14870        lt_cv_prog_compiler_rtti_exceptions=yes
14871      fi
14872    fi
14873    $rm conftest*
14874
14875 fi
14876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14877 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14878
14879 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14880     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14881 else
14882     :
14883 fi
14884
14885 fi
14886
14887 lt_prog_compiler_wl=
14888 lt_prog_compiler_pic=
14889 lt_prog_compiler_static=
14890
14891 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14893
14894   if test "$GCC" = yes; then
14895     lt_prog_compiler_wl='-Wl,'
14896     lt_prog_compiler_static='-static'
14897
14898     case $host_os in
14899       aix*)
14900       # All AIX code is PIC.
14901       if test "$host_cpu" = ia64; then
14902         # AIX 5 now supports IA64 processor
14903         lt_prog_compiler_static='-Bstatic'
14904       fi
14905       ;;
14906
14907     amigaos*)
14908       # FIXME: we need at least 68020 code to build shared libraries, but
14909       # adding the `-m68020' flag to GCC prevents building anything better,
14910       # like `-m68040'.
14911       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14912       ;;
14913
14914     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14915       # PIC is the default for these OSes.
14916       ;;
14917
14918     mingw* | pw32* | os2*)
14919       # This hack is so that the source file can tell whether it is being
14920       # built for inclusion in a dll (and should export symbols for example).
14921       lt_prog_compiler_pic='-DDLL_EXPORT'
14922       ;;
14923
14924     darwin* | rhapsody*)
14925       # PIC is the default on this platform
14926       # Common symbols not allowed in MH_DYLIB files
14927       lt_prog_compiler_pic='-fno-common'
14928       ;;
14929
14930     interix3*)
14931       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14932       # Instead, we relocate shared libraries at runtime.
14933       ;;
14934
14935     msdosdjgpp*)
14936       # Just because we use GCC doesn't mean we suddenly get shared libraries
14937       # on systems that don't support them.
14938       lt_prog_compiler_can_build_shared=no
14939       enable_shared=no
14940       ;;
14941
14942     sysv4*MP*)
14943       if test -d /usr/nec; then
14944         lt_prog_compiler_pic=-Kconform_pic
14945       fi
14946       ;;
14947
14948     hpux*)
14949       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14950       # not for PA HP-UX.
14951       case $host_cpu in
14952       hppa*64*|ia64*)
14953         # +Z the default
14954         ;;
14955       *)
14956         lt_prog_compiler_pic='-fPIC'
14957         ;;
14958       esac
14959       ;;
14960
14961     *)
14962       lt_prog_compiler_pic='-fPIC'
14963       ;;
14964     esac
14965   else
14966     # PORTME Check for flag to pass linker flags through the system compiler.
14967     case $host_os in
14968     aix*)
14969       lt_prog_compiler_wl='-Wl,'
14970       if test "$host_cpu" = ia64; then
14971         # AIX 5 now supports IA64 processor
14972         lt_prog_compiler_static='-Bstatic'
14973       else
14974         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14975       fi
14976       ;;
14977       darwin*)
14978         # PIC is the default on this platform
14979         # Common symbols not allowed in MH_DYLIB files
14980        case $cc_basename in
14981          xlc*)
14982          lt_prog_compiler_pic='-qnocommon'
14983          lt_prog_compiler_wl='-Wl,'
14984          ;;
14985        esac
14986        ;;
14987
14988     mingw* | pw32* | os2*)
14989       # This hack is so that the source file can tell whether it is being
14990       # built for inclusion in a dll (and should export symbols for example).
14991       lt_prog_compiler_pic='-DDLL_EXPORT'
14992       ;;
14993
14994     hpux9* | hpux10* | hpux11*)
14995       lt_prog_compiler_wl='-Wl,'
14996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997       # not for PA HP-UX.
14998       case $host_cpu in
14999       hppa*64*|ia64*)
15000         # +Z the default
15001         ;;
15002       *)
15003         lt_prog_compiler_pic='+Z'
15004         ;;
15005       esac
15006       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007       lt_prog_compiler_static='${wl}-a ${wl}archive'
15008       ;;
15009
15010     irix5* | irix6* | nonstopux*)
15011       lt_prog_compiler_wl='-Wl,'
15012       # PIC (with -KPIC) is the default.
15013       lt_prog_compiler_static='-non_shared'
15014       ;;
15015
15016     newsos6)
15017       lt_prog_compiler_pic='-KPIC'
15018       lt_prog_compiler_static='-Bstatic'
15019       ;;
15020
15021     linux*)
15022       case $cc_basename in
15023       icc* | ecc*)
15024         lt_prog_compiler_wl='-Wl,'
15025         lt_prog_compiler_pic='-KPIC'
15026         lt_prog_compiler_static='-static'
15027         ;;
15028       pgcc* | pgf77* | pgf90* | pgf95*)
15029         # Portland Group compilers (*not* the Pentium gcc compiler,
15030         # which looks to be a dead project)
15031         lt_prog_compiler_wl='-Wl,'
15032         lt_prog_compiler_pic='-fpic'
15033         lt_prog_compiler_static='-Bstatic'
15034         ;;
15035       ccc*)
15036         lt_prog_compiler_wl='-Wl,'
15037         # All Alpha code is PIC.
15038         lt_prog_compiler_static='-non_shared'
15039         ;;
15040       esac
15041       ;;
15042
15043     osf3* | osf4* | osf5*)
15044       lt_prog_compiler_wl='-Wl,'
15045       # All OSF/1 code is PIC.
15046       lt_prog_compiler_static='-non_shared'
15047       ;;
15048
15049     solaris*)
15050       lt_prog_compiler_pic='-KPIC'
15051       lt_prog_compiler_static='-Bstatic'
15052       case $cc_basename in
15053       f77* | f90* | f95*)
15054         lt_prog_compiler_wl='-Qoption ld ';;
15055       *)
15056         lt_prog_compiler_wl='-Wl,';;
15057       esac
15058       ;;
15059
15060     sunos4*)
15061       lt_prog_compiler_wl='-Qoption ld '
15062       lt_prog_compiler_pic='-PIC'
15063       lt_prog_compiler_static='-Bstatic'
15064       ;;
15065
15066     sysv4 | sysv4.2uw2* | sysv4.3*)
15067       lt_prog_compiler_wl='-Wl,'
15068       lt_prog_compiler_pic='-KPIC'
15069       lt_prog_compiler_static='-Bstatic'
15070       ;;
15071
15072     sysv4*MP*)
15073       if test -d /usr/nec ;then
15074         lt_prog_compiler_pic='-Kconform_pic'
15075         lt_prog_compiler_static='-Bstatic'
15076       fi
15077       ;;
15078
15079     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080       lt_prog_compiler_wl='-Wl,'
15081       lt_prog_compiler_pic='-KPIC'
15082       lt_prog_compiler_static='-Bstatic'
15083       ;;
15084
15085     unicos*)
15086       lt_prog_compiler_wl='-Wl,'
15087       lt_prog_compiler_can_build_shared=no
15088       ;;
15089
15090     uts4*)
15091       lt_prog_compiler_pic='-pic'
15092       lt_prog_compiler_static='-Bstatic'
15093       ;;
15094
15095     *)
15096       lt_prog_compiler_can_build_shared=no
15097       ;;
15098     esac
15099   fi
15100
15101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15102 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15103
15104 #
15105 # Check to make sure the PIC flag actually works.
15106 #
15107 if test -n "$lt_prog_compiler_pic"; then
15108
15109 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15111 if test "${lt_prog_compiler_pic_works+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   lt_prog_compiler_pic_works=no
15115   ac_outfile=conftest.$ac_objext
15116    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15117    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15118    # Insert the option either (1) after the last *FLAGS variable, or
15119    # (2) before a word containing "conftest.", or (3) at the end.
15120    # Note that $ac_compile itself does not contain backslashes and begins
15121    # with a dollar sign (not a hyphen), so the echo should work correctly.
15122    # The option is referenced via a variable to avoid confusing sed.
15123    lt_compile=`echo "$ac_compile" | $SED \
15124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15126    -e 's:$: $lt_compiler_flag:'`
15127    (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
15128    (eval "$lt_compile" 2>conftest.err)
15129    ac_status=$?
15130    cat conftest.err >&5
15131    echo "$as_me:15131: \$? = $ac_status" >&5
15132    if (exit $ac_status) && test -s "$ac_outfile"; then
15133      # The compiler can only warn and ignore the option if not recognized
15134      # So say no if there are warnings other than the usual output.
15135      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15136      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15138        lt_prog_compiler_pic_works=yes
15139      fi
15140    fi
15141    $rm conftest*
15142
15143 fi
15144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15146
15147 if test x"$lt_prog_compiler_pic_works" = xyes; then
15148     case $lt_prog_compiler_pic in
15149      "" | " "*) ;;
15150      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15151      esac
15152 else
15153     lt_prog_compiler_pic=
15154      lt_prog_compiler_can_build_shared=no
15155 fi
15156
15157 fi
15158 case $host_os in
15159   # For platforms which do not support PIC, -DPIC is meaningless:
15160   *djgpp*)
15161     lt_prog_compiler_pic=
15162     ;;
15163   *)
15164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15165     ;;
15166 esac
15167
15168 #
15169 # Check to make sure the static flag actually works.
15170 #
15171 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15172 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15173 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15174 if test "${lt_prog_compiler_static_works+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   lt_prog_compiler_static_works=no
15178    save_LDFLAGS="$LDFLAGS"
15179    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15180    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15181    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15182      # The linker can only warn and ignore the option if not recognized
15183      # So say no if there are warnings
15184      if test -s conftest.err; then
15185        # Append any errors to the config.log.
15186        cat conftest.err 1>&5
15187        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15188        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189        if diff conftest.exp conftest.er2 >/dev/null; then
15190          lt_prog_compiler_static_works=yes
15191        fi
15192      else
15193        lt_prog_compiler_static_works=yes
15194      fi
15195    fi
15196    $rm conftest*
15197    LDFLAGS="$save_LDFLAGS"
15198
15199 fi
15200 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15201 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15202
15203 if test x"$lt_prog_compiler_static_works" = xyes; then
15204     :
15205 else
15206     lt_prog_compiler_static=
15207 fi
15208
15209
15210 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15211 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15212 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15213   echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215   lt_cv_prog_compiler_c_o=no
15216    $rm -r conftest 2>/dev/null
15217    mkdir conftest
15218    cd conftest
15219    mkdir out
15220    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15221
15222    lt_compiler_flag="-o out/conftest2.$ac_objext"
15223    # Insert the option either (1) after the last *FLAGS variable, or
15224    # (2) before a word containing "conftest.", or (3) at the end.
15225    # Note that $ac_compile itself does not contain backslashes and begins
15226    # with a dollar sign (not a hyphen), so the echo should work correctly.
15227    lt_compile=`echo "$ac_compile" | $SED \
15228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230    -e 's:$: $lt_compiler_flag:'`
15231    (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
15232    (eval "$lt_compile" 2>out/conftest.err)
15233    ac_status=$?
15234    cat out/conftest.err >&5
15235    echo "$as_me:15235: \$? = $ac_status" >&5
15236    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15237    then
15238      # The compiler can only warn and ignore the option if not recognized
15239      # So say no if there are warnings
15240      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15241      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15243        lt_cv_prog_compiler_c_o=yes
15244      fi
15245    fi
15246    chmod u+w . 2>&5
15247    $rm conftest*
15248    # SGI C++ compiler will create directory out/ii_files/ for
15249    # template instantiation
15250    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15251    $rm out/* && rmdir out
15252    cd ..
15253    rmdir conftest
15254    $rm conftest*
15255
15256 fi
15257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15258 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15259
15260
15261 hard_links="nottested"
15262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15263   # do not overwrite the value of need_locks provided by the user
15264   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15265 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15266   hard_links=yes
15267   $rm conftest*
15268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15269   touch conftest.a
15270   ln conftest.a conftest.b 2>&5 || hard_links=no
15271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15272   { echo "$as_me:$LINENO: result: $hard_links" >&5
15273 echo "${ECHO_T}$hard_links" >&6; }
15274   if test "$hard_links" = no; then
15275     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15277     need_locks=warn
15278   fi
15279 else
15280   need_locks=no
15281 fi
15282
15283 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15284 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15285
15286   runpath_var=
15287   allow_undefined_flag=
15288   enable_shared_with_static_runtimes=no
15289   archive_cmds=
15290   archive_expsym_cmds=
15291   old_archive_From_new_cmds=
15292   old_archive_from_expsyms_cmds=
15293   export_dynamic_flag_spec=
15294   whole_archive_flag_spec=
15295   thread_safe_flag_spec=
15296   hardcode_libdir_flag_spec=
15297   hardcode_libdir_flag_spec_ld=
15298   hardcode_libdir_separator=
15299   hardcode_direct=no
15300   hardcode_minus_L=no
15301   hardcode_shlibpath_var=unsupported
15302   link_all_deplibs=unknown
15303   hardcode_automatic=no
15304   module_cmds=
15305   module_expsym_cmds=
15306   always_export_symbols=no
15307   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15308   # include_expsyms should be a list of space-separated symbols to be *always*
15309   # included in the symbol list
15310   include_expsyms=
15311   # exclude_expsyms can be an extended regexp of symbols to exclude
15312   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15313   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15314   # as well as any symbol that contains `d'.
15315   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15316   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15317   # platforms (ab)use it in PIC code, but their linkers get confused if
15318   # the symbol is explicitly referenced.  Since portable code cannot
15319   # rely on this symbol name, it's probably fine to never include it in
15320   # preloaded symbol tables.
15321   extract_expsyms_cmds=
15322   # Just being paranoid about ensuring that cc_basename is set.
15323   for cc_temp in $compiler""; do
15324   case $cc_temp in
15325     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327     \-*) ;;
15328     *) break;;
15329   esac
15330 done
15331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15332
15333   case $host_os in
15334   cygwin* | mingw* | pw32*)
15335     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15336     # When not using gcc, we currently assume that we are using
15337     # Microsoft Visual C++.
15338     if test "$GCC" != yes; then
15339       with_gnu_ld=no
15340     fi
15341     ;;
15342   interix*)
15343     # we just hope/assume this is gcc and not c89 (= MSVC++)
15344     with_gnu_ld=yes
15345     ;;
15346   openbsd*)
15347     with_gnu_ld=no
15348     ;;
15349   esac
15350
15351   ld_shlibs=yes
15352   if test "$with_gnu_ld" = yes; then
15353     # If archive_cmds runs LD, not CC, wlarc should be empty
15354     wlarc='${wl}'
15355
15356     # Set some defaults for GNU ld with shared library support. These
15357     # are reset later if shared libraries are not supported. Putting them
15358     # here allows them to be overridden if necessary.
15359     runpath_var=LD_RUN_PATH
15360     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15361     export_dynamic_flag_spec='${wl}--export-dynamic'
15362     # ancient GNU ld didn't support --whole-archive et. al.
15363     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15364         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15365       else
15366         whole_archive_flag_spec=
15367     fi
15368     supports_anon_versioning=no
15369     case `$LD -v 2>/dev/null` in
15370       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15371       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15372       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15373       *\ 2.11.*) ;; # other 2.11 versions
15374       *) supports_anon_versioning=yes ;;
15375     esac
15376
15377     # See if GNU ld supports shared libraries.
15378     case $host_os in
15379     aix3* | aix4* | aix5*)
15380       # On AIX/PPC, the GNU linker is very broken
15381       if test "$host_cpu" != ia64; then
15382         ld_shlibs=no
15383         cat <<EOF 1>&2
15384
15385 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15386 *** to be unable to reliably create shared libraries on AIX.
15387 *** Therefore, libtool is disabling shared libraries support.  If you
15388 *** really care for shared libraries, you may want to modify your PATH
15389 *** so that a non-GNU linker is found, and then restart.
15390
15391 EOF
15392       fi
15393       ;;
15394
15395     amigaos*)
15396       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)'
15397       hardcode_libdir_flag_spec='-L$libdir'
15398       hardcode_minus_L=yes
15399
15400       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15401       # that the semantics of dynamic libraries on AmigaOS, at least up
15402       # to version 4, is to share data among multiple programs linked
15403       # with the same dynamic library.  Since this doesn't match the
15404       # behavior of shared libraries on other platforms, we can't use
15405       # them.
15406       ld_shlibs=no
15407       ;;
15408
15409     beos*)
15410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15411         allow_undefined_flag=unsupported
15412         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15413         # support --undefined.  This deserves some investigation.  FIXME
15414         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415       else
15416         ld_shlibs=no
15417       fi
15418       ;;
15419
15420     cygwin* | mingw* | pw32*)
15421       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15422       # as there is no search path for DLLs.
15423       hardcode_libdir_flag_spec='-L$libdir'
15424       allow_undefined_flag=unsupported
15425       always_export_symbols=no
15426       enable_shared_with_static_runtimes=yes
15427       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15428
15429       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15430         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15431         # If the export-symbols file already is a .def file (1st line
15432         # is EXPORTS), use it as is; otherwise, prepend...
15433         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434           cp $export_symbols $output_objdir/$soname.def;
15435         else
15436           echo EXPORTS > $output_objdir/$soname.def;
15437           cat $export_symbols >> $output_objdir/$soname.def;
15438         fi~
15439         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15440       else
15441         ld_shlibs=no
15442       fi
15443       ;;
15444
15445     interix3*)
15446       hardcode_direct=no
15447       hardcode_shlibpath_var=no
15448       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15449       export_dynamic_flag_spec='${wl}-E'
15450       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15451       # Instead, shared libraries are loaded at an image base (0x10000000 by
15452       # default) and relocated if they conflict, which is a slow very memory
15453       # consuming and fragmenting process.  To avoid this, we pick a random,
15454       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15455       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15456       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15457       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'
15458       ;;
15459
15460     linux*)
15461       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15462         tmp_addflag=
15463         case $cc_basename,$host_cpu in
15464         pgcc*)                          # Portland Group C compiler
15465           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'
15466           tmp_addflag=' $pic_flag'
15467           ;;
15468         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15469           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'
15470           tmp_addflag=' $pic_flag -Mnomain' ;;
15471         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15472           tmp_addflag=' -i_dynamic' ;;
15473         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15474           tmp_addflag=' -i_dynamic -nofor_main' ;;
15475         ifc* | ifort*)                  # Intel Fortran compiler
15476           tmp_addflag=' -nofor_main' ;;
15477         esac
15478         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479
15480         if test $supports_anon_versioning = yes; then
15481           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15482   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15483   $echo "local: *; };" >> $output_objdir/$libname.ver~
15484           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15485         fi
15486       else
15487         ld_shlibs=no
15488       fi
15489       ;;
15490
15491     netbsd*)
15492       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15493         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15494         wlarc=
15495       else
15496         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498       fi
15499       ;;
15500
15501     solaris*)
15502       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15503         ld_shlibs=no
15504         cat <<EOF 1>&2
15505
15506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15507 *** create shared libraries on Solaris systems.  Therefore, libtool
15508 *** is disabling shared libraries support.  We urge you to upgrade GNU
15509 *** binutils to release 2.9.1 or newer.  Another option is to modify
15510 *** your PATH or compiler configuration so that the native linker is
15511 *** used, and then restart.
15512
15513 EOF
15514       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15515         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517       else
15518         ld_shlibs=no
15519       fi
15520       ;;
15521
15522     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15523       case `$LD -v 2>&1` in
15524         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15525         ld_shlibs=no
15526         cat <<_LT_EOF 1>&2
15527
15528 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15529 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15530 *** is disabling shared libraries support.  We urge you to upgrade GNU
15531 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15532 *** your PATH or compiler configuration so that the native linker is
15533 *** used, and then restart.
15534
15535 _LT_EOF
15536         ;;
15537         *)
15538           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15540             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15541             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15542           else
15543             ld_shlibs=no
15544           fi
15545         ;;
15546       esac
15547       ;;
15548
15549     sunos4*)
15550       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15551       wlarc=
15552       hardcode_direct=yes
15553       hardcode_shlibpath_var=no
15554       ;;
15555
15556     *)
15557       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560       else
15561         ld_shlibs=no
15562       fi
15563       ;;
15564     esac
15565
15566     if test "$ld_shlibs" = no; then
15567       runpath_var=
15568       hardcode_libdir_flag_spec=
15569       export_dynamic_flag_spec=
15570       whole_archive_flag_spec=
15571     fi
15572   else
15573     # PORTME fill in a description of your system's linker (not GNU ld)
15574     case $host_os in
15575     aix3*)
15576       allow_undefined_flag=unsupported
15577       always_export_symbols=yes
15578       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'
15579       # Note: this linker hardcodes the directories in LIBPATH if there
15580       # are no directories specified by -L.
15581       hardcode_minus_L=yes
15582       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15583         # Neither direct hardcoding nor static linking is supported with a
15584         # broken collect2.
15585         hardcode_direct=unsupported
15586       fi
15587       ;;
15588
15589     aix4* | aix5*)
15590       if test "$host_cpu" = ia64; then
15591         # On IA64, the linker does run time linking by default, so we don't
15592         # have to do anything special.
15593         aix_use_runtimelinking=no
15594         exp_sym_flag='-Bexport'
15595         no_entry_flag=""
15596       else
15597         # If we're using GNU nm, then we don't want the "-C" option.
15598         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600           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'
15601         else
15602           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'
15603         fi
15604         aix_use_runtimelinking=no
15605
15606         # Test if we are trying to use run time linking or normal
15607         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608         # need to do runtime linking.
15609         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610           for ld_flag in $LDFLAGS; do
15611           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612             aix_use_runtimelinking=yes
15613             break
15614           fi
15615           done
15616           ;;
15617         esac
15618
15619         exp_sym_flag='-bexport'
15620         no_entry_flag='-bnoentry'
15621       fi
15622
15623       # When large executables or shared objects are built, AIX ld can
15624       # have problems creating the table of contents.  If linking a library
15625       # or program results in "error TOC overflow" add -mminimal-toc to
15626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15628
15629       archive_cmds=''
15630       hardcode_direct=yes
15631       hardcode_libdir_separator=':'
15632       link_all_deplibs=yes
15633
15634       if test "$GCC" = yes; then
15635         case $host_os in aix4.[012]|aix4.[012].*)
15636         # We only want to do this on AIX 4.2 and lower, the check
15637         # below for broken collect2 doesn't work under 4.3+
15638           collect2name=`${CC} -print-prog-name=collect2`
15639           if test -f "$collect2name" && \
15640            strings "$collect2name" | grep resolve_lib_name >/dev/null
15641           then
15642           # We have reworked collect2
15643           hardcode_direct=yes
15644           else
15645           # We have old collect2
15646           hardcode_direct=unsupported
15647           # It fails to find uninstalled libraries when the uninstalled
15648           # path is not listed in the libpath.  Setting hardcode_minus_L
15649           # to unsupported forces relinking
15650           hardcode_minus_L=yes
15651           hardcode_libdir_flag_spec='-L$libdir'
15652           hardcode_libdir_separator=
15653           fi
15654           ;;
15655         esac
15656         shared_flag='-shared'
15657         if test "$aix_use_runtimelinking" = yes; then
15658           shared_flag="$shared_flag "'${wl}-G'
15659         fi
15660       else
15661         # not using gcc
15662         if test "$host_cpu" = ia64; then
15663         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15664         # chokes on -Wl,-G. The following line is correct:
15665           shared_flag='-G'
15666         else
15667           if test "$aix_use_runtimelinking" = yes; then
15668             shared_flag='${wl}-G'
15669           else
15670             shared_flag='${wl}-bM:SRE'
15671           fi
15672         fi
15673       fi
15674
15675       # It seems that -bexpall does not export symbols beginning with
15676       # underscore (_), so it is better to generate a list of symbols to export.
15677       always_export_symbols=yes
15678       if test "$aix_use_runtimelinking" = yes; then
15679         # Warning - without using the other runtime loading flags (-brtl),
15680         # -berok will link without error, but may produce a broken library.
15681         allow_undefined_flag='-berok'
15682        # Determine the default libpath from the value encoded in an empty executable.
15683        cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689
15690 int
15691 main ()
15692 {
15693
15694   ;
15695   return 0;
15696 }
15697 _ACEOF
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702   *) ac_try_echo=$ac_try;;
15703 esac
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705   (eval "$ac_link") 2>conftest.er1
15706   ac_status=$?
15707   grep -v '^ *+' conftest.er1 >conftest.err
15708   rm -f conftest.er1
15709   cat conftest.err >&5
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); } &&
15712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713   { (case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_try") 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; } &&
15722          { ac_try='test -s conftest$ac_exeext'
15723   { (case "(($ac_try" in
15724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725   *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728   (eval "$ac_try") 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); }; }; then
15732
15733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15734 }'`
15735 # Check for a 64-bit object if we didn't find anything.
15736 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; }
15737 }'`; fi
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742
15743 fi
15744
15745 rm -f core conftest.err conftest.$ac_objext \
15746       conftest$ac_exeext conftest.$ac_ext
15747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15748
15749        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15750         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"
15751        else
15752         if test "$host_cpu" = ia64; then
15753           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15754           allow_undefined_flag="-z nodefs"
15755           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"
15756         else
15757          # Determine the default libpath from the value encoded in an empty executable.
15758          cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h.  */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h.  */
15764
15765 int
15766 main ()
15767 {
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext conftest$ac_exeext
15774 if { (ac_try="$ac_link"
15775 case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_link") 2>conftest.er1
15781   ac_status=$?
15782   grep -v '^ *+' conftest.er1 >conftest.err
15783   rm -f conftest.er1
15784   cat conftest.err >&5
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } &&
15787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15788   { (case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793   (eval "$ac_try") 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; } &&
15797          { ac_try='test -s conftest$ac_exeext'
15798   { (case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_try") 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); }; }; then
15807
15808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15809 }'`
15810 # Check for a 64-bit object if we didn't find anything.
15811 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; }
15812 }'`; fi
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817
15818 fi
15819
15820 rm -f core conftest.err conftest.$ac_objext \
15821       conftest$ac_exeext conftest.$ac_ext
15822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15823
15824          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15825           # Warning - without using the other run time loading flags,
15826           # -berok will link without error, but may produce a broken library.
15827           no_undefined_flag=' ${wl}-bernotok'
15828           allow_undefined_flag=' ${wl}-berok'
15829           # Exported symbols can be pulled into shared objects from archives
15830           whole_archive_flag_spec='$convenience'
15831           archive_cmds_need_lc=yes
15832           # This is similar to how AIX traditionally builds its shared libraries.
15833           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'
15834         fi
15835       fi
15836       ;;
15837
15838     amigaos*)
15839       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)'
15840       hardcode_libdir_flag_spec='-L$libdir'
15841       hardcode_minus_L=yes
15842       # see comment about different semantics on the GNU ld section
15843       ld_shlibs=no
15844       ;;
15845
15846     bsdi[45]*)
15847       export_dynamic_flag_spec=-rdynamic
15848       ;;
15849
15850     cygwin* | mingw* | pw32*)
15851       # When not using gcc, we currently assume that we are using
15852       # Microsoft Visual C++.
15853       # hardcode_libdir_flag_spec is actually meaningless, as there is
15854       # no search path for DLLs.
15855       hardcode_libdir_flag_spec=' '
15856       allow_undefined_flag=unsupported
15857       # Tell ltmain to make .lib files, not .a files.
15858       libext=lib
15859       # Tell ltmain to make .dll files, not .so files.
15860       shrext_cmds=".dll"
15861       # FIXME: Setting linknames here is a bad hack.
15862       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15863       # The linker will automatically build a .lib file if we build a DLL.
15864       old_archive_From_new_cmds='true'
15865       # FIXME: Should let the user specify the lib program.
15866       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867       fix_srcfile_path='`cygpath -w "$srcfile"`'
15868       enable_shared_with_static_runtimes=yes
15869       ;;
15870
15871     darwin* | rhapsody*)
15872       case $host_os in
15873         rhapsody* | darwin1.[012])
15874          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15875          ;;
15876        *) # Darwin 1.3 on
15877          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879          else
15880            case ${MACOSX_DEPLOYMENT_TARGET} in
15881              10.[012])
15882                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15883                ;;
15884              10.*)
15885                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15886                ;;
15887            esac
15888          fi
15889          ;;
15890       esac
15891       archive_cmds_need_lc=no
15892       hardcode_direct=no
15893       hardcode_automatic=yes
15894       hardcode_shlibpath_var=unsupported
15895       whole_archive_flag_spec=''
15896       link_all_deplibs=yes
15897     if test "$GCC" = yes ; then
15898         output_verbose_link_cmd='echo'
15899         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15900       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15901       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15902       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}'
15903       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}'
15904     else
15905       case $cc_basename in
15906         xlc*)
15907          output_verbose_link_cmd='echo'
15908          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15909          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15910           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15911          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}'
15912           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}'
15913           ;;
15914        *)
15915          ld_shlibs=no
15916           ;;
15917       esac
15918     fi
15919       ;;
15920
15921     dgux*)
15922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923       hardcode_libdir_flag_spec='-L$libdir'
15924       hardcode_shlibpath_var=no
15925       ;;
15926
15927     freebsd1*)
15928       ld_shlibs=no
15929       ;;
15930
15931     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15932     # support.  Future versions do this automatically, but an explicit c++rt0.o
15933     # does not break anything, and helps significantly (at the cost of a little
15934     # extra space).
15935     freebsd2.2*)
15936       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15937       hardcode_libdir_flag_spec='-R$libdir'
15938       hardcode_direct=yes
15939       hardcode_shlibpath_var=no
15940       ;;
15941
15942     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15943     freebsd2*)
15944       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15945       hardcode_direct=yes
15946       hardcode_minus_L=yes
15947       hardcode_shlibpath_var=no
15948       ;;
15949
15950     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15951     freebsd* | kfreebsd*-gnu | dragonfly*)
15952       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15953       hardcode_libdir_flag_spec='-R$libdir'
15954       hardcode_direct=yes
15955       hardcode_shlibpath_var=no
15956       ;;
15957
15958     hpux9*)
15959       if test "$GCC" = yes; then
15960         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'
15961       else
15962         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'
15963       fi
15964       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15965       hardcode_libdir_separator=:
15966       hardcode_direct=yes
15967
15968       # hardcode_minus_L: Not really in the search PATH,
15969       # but as the default location of the library.
15970       hardcode_minus_L=yes
15971       export_dynamic_flag_spec='${wl}-E'
15972       ;;
15973
15974     hpux10*)
15975       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15976         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15977       else
15978         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15979       fi
15980       if test "$with_gnu_ld" = no; then
15981         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982         hardcode_libdir_separator=:
15983
15984         hardcode_direct=yes
15985         export_dynamic_flag_spec='${wl}-E'
15986
15987         # hardcode_minus_L: Not really in the search PATH,
15988         # but as the default location of the library.
15989         hardcode_minus_L=yes
15990       fi
15991       ;;
15992
15993     hpux11*)
15994       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15995         case $host_cpu in
15996         hppa*64*)
15997           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15998           ;;
15999         ia64*)
16000           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16001           ;;
16002         *)
16003           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16004           ;;
16005         esac
16006       else
16007         case $host_cpu in
16008         hppa*64*)
16009           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010           ;;
16011         ia64*)
16012           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16013           ;;
16014         *)
16015           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16016           ;;
16017         esac
16018       fi
16019       if test "$with_gnu_ld" = no; then
16020         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16021         hardcode_libdir_separator=:
16022
16023         case $host_cpu in
16024         hppa*64*|ia64*)
16025           hardcode_libdir_flag_spec_ld='+b $libdir'
16026           hardcode_direct=no
16027           hardcode_shlibpath_var=no
16028           ;;
16029         *)
16030           hardcode_direct=yes
16031           export_dynamic_flag_spec='${wl}-E'
16032
16033           # hardcode_minus_L: Not really in the search PATH,
16034           # but as the default location of the library.
16035           hardcode_minus_L=yes
16036           ;;
16037         esac
16038       fi
16039       ;;
16040
16041     irix5* | irix6* | nonstopux*)
16042       if test "$GCC" = yes; then
16043         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'
16044       else
16045         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'
16046         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16047       fi
16048       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16049       hardcode_libdir_separator=:
16050       link_all_deplibs=yes
16051       ;;
16052
16053     netbsd*)
16054       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16056       else
16057         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16058       fi
16059       hardcode_libdir_flag_spec='-R$libdir'
16060       hardcode_direct=yes
16061       hardcode_shlibpath_var=no
16062       ;;
16063
16064     newsos6)
16065       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066       hardcode_direct=yes
16067       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16068       hardcode_libdir_separator=:
16069       hardcode_shlibpath_var=no
16070       ;;
16071
16072     openbsd*)
16073       hardcode_direct=yes
16074       hardcode_shlibpath_var=no
16075       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16078         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079         export_dynamic_flag_spec='${wl}-E'
16080       else
16081        case $host_os in
16082          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16083            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084            hardcode_libdir_flag_spec='-R$libdir'
16085            ;;
16086          *)
16087            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16088            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16089            ;;
16090        esac
16091       fi
16092       ;;
16093
16094     os2*)
16095       hardcode_libdir_flag_spec='-L$libdir'
16096       hardcode_minus_L=yes
16097       allow_undefined_flag=unsupported
16098       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'
16099       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16100       ;;
16101
16102     osf3*)
16103       if test "$GCC" = yes; then
16104         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105         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'
16106       else
16107         allow_undefined_flag=' -expect_unresolved \*'
16108         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'
16109       fi
16110       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16111       hardcode_libdir_separator=:
16112       ;;
16113
16114     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16115       if test "$GCC" = yes; then
16116         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16117         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'
16118         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16119       else
16120         allow_undefined_flag=' -expect_unresolved \*'
16121         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'
16122         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16123         $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'
16124
16125         # Both c and cxx compiler support -rpath directly
16126         hardcode_libdir_flag_spec='-rpath $libdir'
16127       fi
16128       hardcode_libdir_separator=:
16129       ;;
16130
16131     solaris*)
16132       no_undefined_flag=' -z text'
16133       if test "$GCC" = yes; then
16134         wlarc='${wl}'
16135         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16138       else
16139         wlarc=''
16140         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16143       fi
16144       hardcode_libdir_flag_spec='-R$libdir'
16145       hardcode_shlibpath_var=no
16146       case $host_os in
16147       solaris2.[0-5] | solaris2.[0-5].*) ;;
16148       *)
16149         # The compiler driver will combine linker options so we
16150         # cannot just pass the convience library names through
16151         # without $wl, iff we do not link with $LD.
16152         # Luckily, gcc supports the same syntax we need for Sun Studio.
16153         # Supported since Solaris 2.6 (maybe 2.5.1?)
16154         case $wlarc in
16155         '')
16156           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16157         *)
16158           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' ;;
16159         esac ;;
16160       esac
16161       link_all_deplibs=yes
16162       ;;
16163
16164     sunos4*)
16165       if test "x$host_vendor" = xsequent; then
16166         # Use $CC to link under sequent, because it throws in some extra .o
16167         # files that make .init and .fini sections work.
16168         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16169       else
16170         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16171       fi
16172       hardcode_libdir_flag_spec='-L$libdir'
16173       hardcode_direct=yes
16174       hardcode_minus_L=yes
16175       hardcode_shlibpath_var=no
16176       ;;
16177
16178     sysv4)
16179       case $host_vendor in
16180         sni)
16181           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182           hardcode_direct=yes # is this really true???
16183         ;;
16184         siemens)
16185           ## LD is ld it makes a PLAMLIB
16186           ## CC just makes a GrossModule.
16187           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16188           reload_cmds='$CC -r -o $output$reload_objs'
16189           hardcode_direct=no
16190         ;;
16191         motorola)
16192           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16194         ;;
16195       esac
16196       runpath_var='LD_RUN_PATH'
16197       hardcode_shlibpath_var=no
16198       ;;
16199
16200     sysv4.3*)
16201       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202       hardcode_shlibpath_var=no
16203       export_dynamic_flag_spec='-Bexport'
16204       ;;
16205
16206     sysv4*MP*)
16207       if test -d /usr/nec; then
16208         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209         hardcode_shlibpath_var=no
16210         runpath_var=LD_RUN_PATH
16211         hardcode_runpath_var=yes
16212         ld_shlibs=yes
16213       fi
16214       ;;
16215
16216     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16217       no_undefined_flag='${wl}-z,text'
16218       archive_cmds_need_lc=no
16219       hardcode_shlibpath_var=no
16220       runpath_var='LD_RUN_PATH'
16221
16222       if test "$GCC" = yes; then
16223         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225       else
16226         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228       fi
16229       ;;
16230
16231     sysv5* | sco3.2v5* | sco5v6*)
16232       # Note: We can NOT use -z defs as we might desire, because we do not
16233       # link with -lc, and that would cause any symbols used from libc to
16234       # always be unresolved, which means just about no library would
16235       # ever link correctly.  If we're not using GNU ld we use -z text
16236       # though, which does catch some bad symbols but isn't as heavy-handed
16237       # as -z defs.
16238       no_undefined_flag='${wl}-z,text'
16239       allow_undefined_flag='${wl}-z,nodefs'
16240       archive_cmds_need_lc=no
16241       hardcode_shlibpath_var=no
16242       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16243       hardcode_libdir_separator=':'
16244       link_all_deplibs=yes
16245       export_dynamic_flag_spec='${wl}-Bexport'
16246       runpath_var='LD_RUN_PATH'
16247
16248       if test "$GCC" = yes; then
16249         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251       else
16252         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16254       fi
16255       ;;
16256
16257     uts4*)
16258       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259       hardcode_libdir_flag_spec='-L$libdir'
16260       hardcode_shlibpath_var=no
16261       ;;
16262
16263     *)
16264       ld_shlibs=no
16265       ;;
16266     esac
16267   fi
16268
16269 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16270 echo "${ECHO_T}$ld_shlibs" >&6; }
16271 test "$ld_shlibs" = no && can_build_shared=no
16272
16273 #
16274 # Do we need to explicitly link libc?
16275 #
16276 case "x$archive_cmds_need_lc" in
16277 x|xyes)
16278   # Assume -lc should be added
16279   archive_cmds_need_lc=yes
16280
16281   if test "$enable_shared" = yes && test "$GCC" = yes; then
16282     case $archive_cmds in
16283     *'~'*)
16284       # FIXME: we may have to deal with multi-command sequences.
16285       ;;
16286     '$CC '*)
16287       # Test whether the compiler implicitly links with -lc since on some
16288       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289       # to ld, don't add -lc before -lgcc.
16290       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16292       $rm conftest*
16293       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
16295       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296   (eval $ac_compile) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); } 2>conftest.err; then
16300         soname=conftest
16301         lib=conftest
16302         libobjs=conftest.$ac_objext
16303         deplibs=
16304         wl=$lt_prog_compiler_wl
16305         pic_flag=$lt_prog_compiler_pic
16306         compiler_flags=-v
16307         linker_flags=-v
16308         verstring=
16309         output_objdir=.
16310         libname=conftest
16311         lt_save_allow_undefined_flag=$allow_undefined_flag
16312         allow_undefined_flag=
16313         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16314   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }
16318         then
16319           archive_cmds_need_lc=no
16320         else
16321           archive_cmds_need_lc=yes
16322         fi
16323         allow_undefined_flag=$lt_save_allow_undefined_flag
16324       else
16325         cat conftest.err 1>&5
16326       fi
16327       $rm conftest*
16328       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16329 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16330       ;;
16331     esac
16332   fi
16333   ;;
16334 esac
16335
16336 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16338 library_names_spec=
16339 libname_spec='lib$name'
16340 soname_spec=
16341 shrext_cmds=".so"
16342 postinstall_cmds=
16343 postuninstall_cmds=
16344 finish_cmds=
16345 finish_eval=
16346 shlibpath_var=
16347 shlibpath_overrides_runpath=unknown
16348 version_type=none
16349 dynamic_linker="$host_os ld.so"
16350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351 if test "$GCC" = yes; then
16352   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354     # if the path contains ";" then we assume it to be the separator
16355     # otherwise default to the standard path separator (i.e. ":") - it is
16356     # assumed that no part of a normal pathname contains ";" but that should
16357     # okay in the real world where ";" in dirpaths is itself problematic.
16358     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359   else
16360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16361   fi
16362 else
16363   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364 fi
16365 need_lib_prefix=unknown
16366 hardcode_into_libs=no
16367
16368 # when you set need_version to no, make sure it does not cause -set_version
16369 # flags to be left without arguments
16370 need_version=unknown
16371
16372 case $host_os in
16373 aix3*)
16374   version_type=linux
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376   shlibpath_var=LIBPATH
16377
16378   # AIX 3 has no versioning support, so we append a major version to the name.
16379   soname_spec='${libname}${release}${shared_ext}$major'
16380   ;;
16381
16382 aix4* | aix5*)
16383   version_type=linux
16384   need_lib_prefix=no
16385   need_version=no
16386   hardcode_into_libs=yes
16387   if test "$host_cpu" = ia64; then
16388     # AIX 5 supports IA64
16389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390     shlibpath_var=LD_LIBRARY_PATH
16391   else
16392     # With GCC up to 2.95.x, collect2 would create an import file
16393     # for dependence libraries.  The import file would start with
16394     # the line `#! .'.  This would cause the generated library to
16395     # depend on `.', always an invalid library.  This was fixed in
16396     # development snapshots of GCC prior to 3.0.
16397     case $host_os in
16398       aix4 | aix4.[01] | aix4.[01].*)
16399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400            echo ' yes '
16401            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402         :
16403       else
16404         can_build_shared=no
16405       fi
16406       ;;
16407     esac
16408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409     # soname into executable. Probably we can add versioning support to
16410     # collect2, so additional links can be useful in future.
16411     if test "$aix_use_runtimelinking" = yes; then
16412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413       # instead of lib<name>.a to let people know that these are not
16414       # typical AIX shared libraries.
16415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416     else
16417       # We preserve .a as extension for shared libraries through AIX4.2
16418       # and later when we are not doing run time linking.
16419       library_names_spec='${libname}${release}.a $libname.a'
16420       soname_spec='${libname}${release}${shared_ext}$major'
16421     fi
16422     shlibpath_var=LIBPATH
16423   fi
16424   ;;
16425
16426 amigaos*)
16427   library_names_spec='$libname.ixlibrary $libname.a'
16428   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429   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'
16430   ;;
16431
16432 beos*)
16433   library_names_spec='${libname}${shared_ext}'
16434   dynamic_linker="$host_os ld.so"
16435   shlibpath_var=LIBRARY_PATH
16436   ;;
16437
16438 bsdi[45]*)
16439   version_type=linux
16440   need_version=no
16441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442   soname_spec='${libname}${release}${shared_ext}$major'
16443   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444   shlibpath_var=LD_LIBRARY_PATH
16445   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447   # the default ld.so.conf also contains /usr/contrib/lib and
16448   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449   # libtool to hard-code these into programs
16450   ;;
16451
16452 cygwin* | mingw* | pw32*)
16453   version_type=windows
16454   shrext_cmds=".dll"
16455   need_version=no
16456   need_lib_prefix=no
16457
16458   case $GCC,$host_os in
16459   yes,cygwin* | yes,mingw* | yes,pw32*)
16460     library_names_spec='$libname.dll.a'
16461     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462     postinstall_cmds='base_file=`basename \${file}`~
16463       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464       dldir=$destdir/`dirname \$dlpath`~
16465       test -d \$dldir || mkdir -p \$dldir~
16466       $install_prog $dir/$dlname \$dldir/$dlname~
16467       chmod a+x \$dldir/$dlname'
16468     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469       dlpath=$dir/\$dldll~
16470        $rm \$dlpath'
16471     shlibpath_overrides_runpath=yes
16472
16473     case $host_os in
16474     cygwin*)
16475       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16478       ;;
16479     mingw*)
16480       # MinGW DLLs use traditional 'lib' prefix
16481       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484         # It is most probably a Windows format PATH printed by
16485         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486         # path with ; separators, and with drive letters. We can handle the
16487         # drive letters (cygwin fileutils understands them), so leave them,
16488         # especially as we might pass files found there to a mingw objdump,
16489         # which wouldn't understand a cygwinified path. Ahh.
16490         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16491       else
16492         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16493       fi
16494       ;;
16495     pw32*)
16496       # pw32 DLLs use 'pw' prefix rather than 'lib'
16497       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16498       ;;
16499     esac
16500     ;;
16501
16502   *)
16503     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16504     ;;
16505   esac
16506   dynamic_linker='Win32 ld.exe'
16507   # FIXME: first we should search . and the directory the executable is in
16508   shlibpath_var=PATH
16509   ;;
16510
16511 darwin* | rhapsody*)
16512   dynamic_linker="$host_os dyld"
16513   version_type=darwin
16514   need_lib_prefix=no
16515   need_version=no
16516   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517   soname_spec='${libname}${release}${major}$shared_ext'
16518   shlibpath_overrides_runpath=yes
16519   shlibpath_var=DYLD_LIBRARY_PATH
16520   shrext_cmds='.dylib'
16521   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16522   if test "$GCC" = yes; then
16523     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"`
16524   else
16525     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16526   fi
16527   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528   ;;
16529
16530 dgux*)
16531   version_type=linux
16532   need_lib_prefix=no
16533   need_version=no
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   ;;
16538
16539 freebsd1*)
16540   dynamic_linker=no
16541   ;;
16542
16543 kfreebsd*-gnu)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   shlibpath_var=LD_LIBRARY_PATH
16550   shlibpath_overrides_runpath=no
16551   hardcode_into_libs=yes
16552   dynamic_linker='GNU ld.so'
16553   ;;
16554
16555 freebsd* | dragonfly*)
16556   # DragonFly does not have aout.  When/if they implement a new
16557   # versioning mechanism, adjust this.
16558   if test -x /usr/bin/objformat; then
16559     objformat=`/usr/bin/objformat`
16560   else
16561     case $host_os in
16562     freebsd[123]*) objformat=aout ;;
16563     *) objformat=elf ;;
16564     esac
16565   fi
16566   version_type=freebsd-$objformat
16567   case $version_type in
16568     freebsd-elf*)
16569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16570       need_version=no
16571       need_lib_prefix=no
16572       ;;
16573     freebsd-*)
16574       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16575       need_version=yes
16576       ;;
16577   esac
16578   shlibpath_var=LD_LIBRARY_PATH
16579   case $host_os in
16580   freebsd2*)
16581     shlibpath_overrides_runpath=yes
16582     ;;
16583   freebsd3.[01]* | freebsdelf3.[01]*)
16584     shlibpath_overrides_runpath=yes
16585     hardcode_into_libs=yes
16586     ;;
16587   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16588   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16589     shlibpath_overrides_runpath=no
16590     hardcode_into_libs=yes
16591     ;;
16592   freebsd*) # from 4.6 on
16593     shlibpath_overrides_runpath=yes
16594     hardcode_into_libs=yes
16595     ;;
16596   esac
16597   ;;
16598
16599 gnu*)
16600   version_type=linux
16601   need_lib_prefix=no
16602   need_version=no
16603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16604   soname_spec='${libname}${release}${shared_ext}$major'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   hardcode_into_libs=yes
16607   ;;
16608
16609 hpux9* | hpux10* | hpux11*)
16610   # Give a soname corresponding to the major version so that dld.sl refuses to
16611   # link against other versions.
16612   version_type=sunos
16613   need_lib_prefix=no
16614   need_version=no
16615   case $host_cpu in
16616   ia64*)
16617     shrext_cmds='.so'
16618     hardcode_into_libs=yes
16619     dynamic_linker="$host_os dld.so"
16620     shlibpath_var=LD_LIBRARY_PATH
16621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623     soname_spec='${libname}${release}${shared_ext}$major'
16624     if test "X$HPUX_IA64_MODE" = X32; then
16625       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626     else
16627       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628     fi
16629     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630     ;;
16631    hppa*64*)
16632      shrext_cmds='.sl'
16633      hardcode_into_libs=yes
16634      dynamic_linker="$host_os dld.sl"
16635      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638      soname_spec='${libname}${release}${shared_ext}$major'
16639      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641      ;;
16642    *)
16643     shrext_cmds='.sl'
16644     dynamic_linker="$host_os dld.sl"
16645     shlibpath_var=SHLIB_PATH
16646     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648     soname_spec='${libname}${release}${shared_ext}$major'
16649     ;;
16650   esac
16651   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16652   postinstall_cmds='chmod 555 $lib'
16653   ;;
16654
16655 interix3*)
16656   version_type=linux
16657   need_lib_prefix=no
16658   need_version=no
16659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16660   soname_spec='${libname}${release}${shared_ext}$major'
16661   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16662   shlibpath_var=LD_LIBRARY_PATH
16663   shlibpath_overrides_runpath=no
16664   hardcode_into_libs=yes
16665   ;;
16666
16667 irix5* | irix6* | nonstopux*)
16668   case $host_os in
16669     nonstopux*) version_type=nonstopux ;;
16670     *)
16671         if test "$lt_cv_prog_gnu_ld" = yes; then
16672                 version_type=linux
16673         else
16674                 version_type=irix
16675         fi ;;
16676   esac
16677   need_lib_prefix=no
16678   need_version=no
16679   soname_spec='${libname}${release}${shared_ext}$major'
16680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16681   case $host_os in
16682   irix5* | nonstopux*)
16683     libsuff= shlibsuff=
16684     ;;
16685   *)
16686     case $LD in # libtool.m4 will add one of these switches to LD
16687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688       libsuff= shlibsuff= libmagic=32-bit;;
16689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690       libsuff=32 shlibsuff=N32 libmagic=N32;;
16691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16693     *) libsuff= shlibsuff= libmagic=never-match;;
16694     esac
16695     ;;
16696   esac
16697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698   shlibpath_overrides_runpath=no
16699   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16701   hardcode_into_libs=yes
16702   ;;
16703
16704 # No shared lib support for Linux oldld, aout, or coff.
16705 linux*oldld* | linux*aout* | linux*coff*)
16706   dynamic_linker=no
16707   ;;
16708
16709 # This must be Linux ELF.
16710 linux*)
16711   version_type=linux
16712   need_lib_prefix=no
16713   need_version=no
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715   soname_spec='${libname}${release}${shared_ext}$major'
16716   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=no
16719   # This implies no fast_install, which is unacceptable.
16720   # Some rework will be needed to allow for fast_install
16721   # before this can be enabled.
16722   hardcode_into_libs=yes
16723
16724   # Append ld.so.conf contents to the search path
16725   if test -f /etc/ld.so.conf; then
16726     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' ' '`
16727     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16728   fi
16729
16730   # We used to test for /lib/ld.so.1 and disable shared libraries on
16731   # powerpc, because MkLinux only supported shared libraries with the
16732   # GNU dynamic linker.  Since this was broken with cross compilers,
16733   # most powerpc-linux boxes support dynamic linking these days and
16734   # people can always --disable-shared, the test was removed, and we
16735   # assume the GNU/Linux dynamic linker is in use.
16736   dynamic_linker='GNU/Linux ld.so'
16737   ;;
16738
16739 knetbsd*-gnu)
16740   version_type=linux
16741   need_lib_prefix=no
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   shlibpath_var=LD_LIBRARY_PATH
16746   shlibpath_overrides_runpath=no
16747   hardcode_into_libs=yes
16748   dynamic_linker='GNU ld.so'
16749   ;;
16750
16751 netbsd*)
16752   version_type=sunos
16753   need_lib_prefix=no
16754   need_version=no
16755   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758     dynamic_linker='NetBSD (a.out) ld.so'
16759   else
16760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16761     soname_spec='${libname}${release}${shared_ext}$major'
16762     dynamic_linker='NetBSD ld.elf_so'
16763   fi
16764   shlibpath_var=LD_LIBRARY_PATH
16765   shlibpath_overrides_runpath=yes
16766   hardcode_into_libs=yes
16767   ;;
16768
16769 newsos6)
16770   version_type=linux
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772   shlibpath_var=LD_LIBRARY_PATH
16773   shlibpath_overrides_runpath=yes
16774   ;;
16775
16776 nto-qnx*)
16777   version_type=linux
16778   need_lib_prefix=no
16779   need_version=no
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781   soname_spec='${libname}${release}${shared_ext}$major'
16782   shlibpath_var=LD_LIBRARY_PATH
16783   shlibpath_overrides_runpath=yes
16784   ;;
16785
16786 openbsd*)
16787   version_type=sunos
16788   sys_lib_dlsearch_path_spec="/usr/lib"
16789   need_lib_prefix=no
16790   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16791   case $host_os in
16792     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16793     *)                         need_version=no  ;;
16794   esac
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16799     case $host_os in
16800       openbsd2.[89] | openbsd2.[89].*)
16801         shlibpath_overrides_runpath=no
16802         ;;
16803       *)
16804         shlibpath_overrides_runpath=yes
16805         ;;
16806       esac
16807   else
16808     shlibpath_overrides_runpath=yes
16809   fi
16810   ;;
16811
16812 os2*)
16813   libname_spec='$name'
16814   shrext_cmds=".dll"
16815   need_lib_prefix=no
16816   library_names_spec='$libname${shared_ext} $libname.a'
16817   dynamic_linker='OS/2 ld.exe'
16818   shlibpath_var=LIBPATH
16819   ;;
16820
16821 osf3* | osf4* | osf5*)
16822   version_type=osf
16823   need_lib_prefix=no
16824   need_version=no
16825   soname_spec='${libname}${release}${shared_ext}$major'
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16829   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16830   ;;
16831
16832 solaris*)
16833   version_type=linux
16834   need_lib_prefix=no
16835   need_version=no
16836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837   soname_spec='${libname}${release}${shared_ext}$major'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   shlibpath_overrides_runpath=yes
16840   hardcode_into_libs=yes
16841   # ldd complains unless libraries are executable
16842   postinstall_cmds='chmod +x $lib'
16843   ;;
16844
16845 sunos4*)
16846   version_type=sunos
16847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16848   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16849   shlibpath_var=LD_LIBRARY_PATH
16850   shlibpath_overrides_runpath=yes
16851   if test "$with_gnu_ld" = yes; then
16852     need_lib_prefix=no
16853   fi
16854   need_version=yes
16855   ;;
16856
16857 sysv4 | sysv4.3*)
16858   version_type=linux
16859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860   soname_spec='${libname}${release}${shared_ext}$major'
16861   shlibpath_var=LD_LIBRARY_PATH
16862   case $host_vendor in
16863     sni)
16864       shlibpath_overrides_runpath=no
16865       need_lib_prefix=no
16866       export_dynamic_flag_spec='${wl}-Blargedynsym'
16867       runpath_var=LD_RUN_PATH
16868       ;;
16869     siemens)
16870       need_lib_prefix=no
16871       ;;
16872     motorola)
16873       need_lib_prefix=no
16874       need_version=no
16875       shlibpath_overrides_runpath=no
16876       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16877       ;;
16878   esac
16879   ;;
16880
16881 sysv4*MP*)
16882   if test -d /usr/nec ;then
16883     version_type=linux
16884     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16885     soname_spec='$libname${shared_ext}.$major'
16886     shlibpath_var=LD_LIBRARY_PATH
16887   fi
16888   ;;
16889
16890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891   version_type=freebsd-elf
16892   need_lib_prefix=no
16893   need_version=no
16894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895   soname_spec='${libname}${release}${shared_ext}$major'
16896   shlibpath_var=LD_LIBRARY_PATH
16897   hardcode_into_libs=yes
16898   if test "$with_gnu_ld" = yes; then
16899     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16900     shlibpath_overrides_runpath=no
16901   else
16902     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903     shlibpath_overrides_runpath=yes
16904     case $host_os in
16905       sco3.2v5*)
16906         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16907         ;;
16908     esac
16909   fi
16910   sys_lib_dlsearch_path_spec='/usr/lib'
16911   ;;
16912
16913 uts4*)
16914   version_type=linux
16915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916   soname_spec='${libname}${release}${shared_ext}$major'
16917   shlibpath_var=LD_LIBRARY_PATH
16918   ;;
16919
16920 *)
16921   dynamic_linker=no
16922   ;;
16923 esac
16924 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925 echo "${ECHO_T}$dynamic_linker" >&6; }
16926 test "$dynamic_linker" = no && can_build_shared=no
16927
16928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929 if test "$GCC" = yes; then
16930   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931 fi
16932
16933 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16934 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16935 hardcode_action=
16936 if test -n "$hardcode_libdir_flag_spec" || \
16937    test -n "$runpath_var" || \
16938    test "X$hardcode_automatic" = "Xyes" ; then
16939
16940   # We can hardcode non-existant directories.
16941   if test "$hardcode_direct" != no &&
16942      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16943      # have to relink, otherwise we might link with an installed library
16944      # when we should be linking with a yet-to-be-installed one
16945      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16946      test "$hardcode_minus_L" != no; then
16947     # Linking always hardcodes the temporary library directory.
16948     hardcode_action=relink
16949   else
16950     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16951     hardcode_action=immediate
16952   fi
16953 else
16954   # We cannot hardcode anything, or else we can only hardcode existing
16955   # directories.
16956   hardcode_action=unsupported
16957 fi
16958 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16959 echo "${ECHO_T}$hardcode_action" >&6; }
16960
16961 if test "$hardcode_action" = relink; then
16962   # Fast installation is not supported
16963   enable_fast_install=no
16964 elif test "$shlibpath_overrides_runpath" = yes ||
16965      test "$enable_shared" = no; then
16966   # Fast installation is not necessary
16967   enable_fast_install=needless
16968 fi
16969
16970 striplib=
16971 old_striplib=
16972 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16973 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16974 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16975   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16976   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16977   { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16979 else
16980 # FIXME - insert some real tests, host_os isn't really good enough
16981   case $host_os in
16982    darwin*)
16983        if test -n "$STRIP" ; then
16984          striplib="$STRIP -x"
16985          { echo "$as_me:$LINENO: result: yes" >&5
16986 echo "${ECHO_T}yes" >&6; }
16987        else
16988   { echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6; }
16990 fi
16991        ;;
16992    *)
16993   { echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6; }
16995     ;;
16996   esac
16997 fi
16998
16999 if test "x$enable_dlopen" != xyes; then
17000   enable_dlopen=unknown
17001   enable_dlopen_self=unknown
17002   enable_dlopen_self_static=unknown
17003 else
17004   lt_cv_dlopen=no
17005   lt_cv_dlopen_libs=
17006
17007   case $host_os in
17008   beos*)
17009     lt_cv_dlopen="load_add_on"
17010     lt_cv_dlopen_libs=
17011     lt_cv_dlopen_self=yes
17012     ;;
17013
17014   mingw* | pw32*)
17015     lt_cv_dlopen="LoadLibrary"
17016     lt_cv_dlopen_libs=
17017    ;;
17018
17019   cygwin*)
17020     lt_cv_dlopen="dlopen"
17021     lt_cv_dlopen_libs=
17022    ;;
17023
17024   darwin*)
17025   # if libdl is installed we need to link against it
17026     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17027 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17028 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-ldl  $LIBS"
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h.  */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h.  */
17039
17040 /* Override any GCC internal prototype to avoid an error.
17041    Use char because int might match the return type of a GCC
17042    builtin and then its argument prototype would still apply.  */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char dlopen ();
17047 int
17048 main ()
17049 {
17050 return dlopen ();
17051   ;
17052   return 0;
17053 }
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (ac_try="$ac_link"
17057 case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_link") 2>conftest.er1
17063   ac_status=$?
17064   grep -v '^ *+' conftest.er1 >conftest.err
17065   rm -f conftest.er1
17066   cat conftest.err >&5
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } &&
17069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070   { (case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_try") 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; } &&
17079          { ac_try='test -s conftest$ac_exeext'
17080   { (case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085   (eval "$ac_try") 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; }; then
17089   ac_cv_lib_dl_dlopen=yes
17090 else
17091   echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094         ac_cv_lib_dl_dlopen=no
17095 fi
17096
17097 rm -f core conftest.err conftest.$ac_objext \
17098       conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17100 fi
17101 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17103 if test $ac_cv_lib_dl_dlopen = yes; then
17104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105 else
17106
17107     lt_cv_dlopen="dyld"
17108     lt_cv_dlopen_libs=
17109     lt_cv_dlopen_self=yes
17110
17111 fi
17112
17113    ;;
17114
17115   *)
17116     { echo "$as_me:$LINENO: checking for shl_load" >&5
17117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17118 if test "${ac_cv_func_shl_load+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17129 #define shl_load innocuous_shl_load
17130
17131 /* System header to define __stub macros and hopefully few prototypes,
17132     which can conflict with char shl_load (); below.
17133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134     <limits.h> exists even on freestanding compilers.  */
17135
17136 #ifdef __STDC__
17137 # include <limits.h>
17138 #else
17139 # include <assert.h>
17140 #endif
17141
17142 #undef shl_load
17143
17144 /* Override any GCC internal prototype to avoid an error.
17145    Use char because int might match the return type of a GCC
17146    builtin and then its argument prototype would still apply.  */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char shl_load ();
17151 /* The GNU C library defines this for functions which it implements
17152     to always fail with ENOSYS.  Some functions are actually named
17153     something starting with __ and the normal name is an alias.  */
17154 #if defined __stub_shl_load || defined __stub___shl_load
17155 choke me
17156 #endif
17157
17158 int
17159 main ()
17160 {
17161 return shl_load ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_link") 2>conftest.er1
17174   ac_status=$?
17175   grep -v '^ *+' conftest.er1 >conftest.err
17176   rm -f conftest.er1
17177   cat conftest.err >&5
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181   { (case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_try") 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest$ac_exeext'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   ac_cv_func_shl_load=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205         ac_cv_func_shl_load=no
17206 fi
17207
17208 rm -f core conftest.err conftest.$ac_objext \
17209       conftest$ac_exeext conftest.$ac_ext
17210 fi
17211 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17212 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17213 if test $ac_cv_func_shl_load = yes; then
17214   lt_cv_dlopen="shl_load"
17215 else
17216   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17217 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17218 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17219   echo $ECHO_N "(cached) $ECHO_C" >&6
17220 else
17221   ac_check_lib_save_LIBS=$LIBS
17222 LIBS="-ldld  $LIBS"
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229
17230 /* Override any GCC internal prototype to avoid an error.
17231    Use char because int might match the return type of a GCC
17232    builtin and then its argument prototype would still apply.  */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 char shl_load ();
17237 int
17238 main ()
17239 {
17240 return shl_load ();
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252   (eval "$ac_link") 2>conftest.er1
17253   ac_status=$?
17254   grep -v '^ *+' conftest.er1 >conftest.err
17255   rm -f conftest.er1
17256   cat conftest.err >&5
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); } &&
17259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260   { (case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_try") 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; } &&
17269          { ac_try='test -s conftest$ac_exeext'
17270   { (case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_try") 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   ac_cv_lib_dld_shl_load=yes
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284         ac_cv_lib_dld_shl_load=no
17285 fi
17286
17287 rm -f core conftest.err conftest.$ac_objext \
17288       conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17292 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17293 if test $ac_cv_lib_dld_shl_load = yes; then
17294   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17295 else
17296   { echo "$as_me:$LINENO: checking for dlopen" >&5
17297 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17298 if test "${ac_cv_func_dlopen+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17309 #define dlopen innocuous_dlopen
17310
17311 /* System header to define __stub macros and hopefully few prototypes,
17312     which can conflict with char dlopen (); below.
17313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314     <limits.h> exists even on freestanding compilers.  */
17315
17316 #ifdef __STDC__
17317 # include <limits.h>
17318 #else
17319 # include <assert.h>
17320 #endif
17321
17322 #undef dlopen
17323
17324 /* Override any GCC internal prototype to avoid an error.
17325    Use char because int might match the return type of a GCC
17326    builtin and then its argument prototype would still apply.  */
17327 #ifdef __cplusplus
17328 extern "C"
17329 #endif
17330 char dlopen ();
17331 /* The GNU C library defines this for functions which it implements
17332     to always fail with ENOSYS.  Some functions are actually named
17333     something starting with __ and the normal name is an alias.  */
17334 #if defined __stub_dlopen || defined __stub___dlopen
17335 choke me
17336 #endif
17337
17338 int
17339 main ()
17340 {
17341 return dlopen ();
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353   (eval "$ac_link") 2>conftest.er1
17354   ac_status=$?
17355   grep -v '^ *+' conftest.er1 >conftest.err
17356   rm -f conftest.er1
17357   cat conftest.err >&5
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); } &&
17360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361   { (case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_try") 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; } &&
17370          { ac_try='test -s conftest$ac_exeext'
17371   { (case "(($ac_try" in
17372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373   *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376   (eval "$ac_try") 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   ac_cv_func_dlopen=yes
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         ac_cv_func_dlopen=no
17386 fi
17387
17388 rm -f core conftest.err conftest.$ac_objext \
17389       conftest$ac_exeext conftest.$ac_ext
17390 fi
17391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17393 if test $ac_cv_func_dlopen = yes; then
17394   lt_cv_dlopen="dlopen"
17395 else
17396   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   ac_check_lib_save_LIBS=$LIBS
17402 LIBS="-ldl  $LIBS"
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409
17410 /* Override any GCC internal prototype to avoid an error.
17411    Use char because int might match the return type of a GCC
17412    builtin and then its argument prototype would still apply.  */
17413 #ifdef __cplusplus
17414 extern "C"
17415 #endif
17416 char dlopen ();
17417 int
17418 main ()
17419 {
17420 return dlopen ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_link") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } &&
17439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440   { (case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_try") 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; } &&
17449          { ac_try='test -s conftest$ac_exeext'
17450   { (case "(($ac_try" in
17451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452   *) ac_try_echo=$ac_try;;
17453 esac
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455   (eval "$ac_try") 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; }; then
17459   ac_cv_lib_dl_dlopen=yes
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464         ac_cv_lib_dl_dlopen=no
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext \
17468       conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17470 fi
17471 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17473 if test $ac_cv_lib_dl_dlopen = yes; then
17474   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17475 else
17476   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17477 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17478 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   ac_check_lib_save_LIBS=$LIBS
17482 LIBS="-lsvld  $LIBS"
17483 cat >conftest.$ac_ext <<_ACEOF
17484 /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489
17490 /* Override any GCC internal prototype to avoid an error.
17491    Use char because int might match the return type of a GCC
17492    builtin and then its argument prototype would still apply.  */
17493 #ifdef __cplusplus
17494 extern "C"
17495 #endif
17496 char dlopen ();
17497 int
17498 main ()
17499 {
17500 return dlopen ();
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_link") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } &&
17519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520   { (case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_try") 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; } &&
17529          { ac_try='test -s conftest$ac_exeext'
17530   { (case "(($ac_try" in
17531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532   *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535   (eval "$ac_try") 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; }; then
17539   ac_cv_lib_svld_dlopen=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544         ac_cv_lib_svld_dlopen=no
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext \
17548       conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17550 fi
17551 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17552 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17553 if test $ac_cv_lib_svld_dlopen = yes; then
17554   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17555 else
17556   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17557 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17558 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   ac_check_lib_save_LIBS=$LIBS
17562 LIBS="-ldld  $LIBS"
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 /* Override any GCC internal prototype to avoid an error.
17571    Use char because int might match the return type of a GCC
17572    builtin and then its argument prototype would still apply.  */
17573 #ifdef __cplusplus
17574 extern "C"
17575 #endif
17576 char dld_link ();
17577 int
17578 main ()
17579 {
17580 return dld_link ();
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592   (eval "$ac_link") 2>conftest.er1
17593   ac_status=$?
17594   grep -v '^ *+' conftest.er1 >conftest.err
17595   rm -f conftest.er1
17596   cat conftest.err >&5
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } &&
17599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17600   { (case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_try") 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest$ac_exeext'
17610   { (case "(($ac_try" in
17611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612   *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615   (eval "$ac_try") 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   ac_cv_lib_dld_dld_link=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624         ac_cv_lib_dld_dld_link=no
17625 fi
17626
17627 rm -f core conftest.err conftest.$ac_objext \
17628       conftest$ac_exeext conftest.$ac_ext
17629 LIBS=$ac_check_lib_save_LIBS
17630 fi
17631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17633 if test $ac_cv_lib_dld_dld_link = yes; then
17634   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17635 fi
17636
17637
17638 fi
17639
17640
17641 fi
17642
17643
17644 fi
17645
17646
17647 fi
17648
17649
17650 fi
17651
17652     ;;
17653   esac
17654
17655   if test "x$lt_cv_dlopen" != xno; then
17656     enable_dlopen=yes
17657   else
17658     enable_dlopen=no
17659   fi
17660
17661   case $lt_cv_dlopen in
17662   dlopen)
17663     save_CPPFLAGS="$CPPFLAGS"
17664     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17665
17666     save_LDFLAGS="$LDFLAGS"
17667     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17668
17669     save_LIBS="$LIBS"
17670     LIBS="$lt_cv_dlopen_libs $LIBS"
17671
17672     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17674 if test "${lt_cv_dlopen_self+set}" = set; then
17675   echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677           if test "$cross_compiling" = yes; then :
17678   lt_cv_dlopen_self=cross
17679 else
17680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17681   lt_status=$lt_dlunknown
17682   cat > conftest.$ac_ext <<EOF
17683 #line 17683 "configure"
17684 #include "confdefs.h"
17685
17686 #if HAVE_DLFCN_H
17687 #include <dlfcn.h>
17688 #endif
17689
17690 #include <stdio.h>
17691
17692 #ifdef RTLD_GLOBAL
17693 #  define LT_DLGLOBAL           RTLD_GLOBAL
17694 #else
17695 #  ifdef DL_GLOBAL
17696 #    define LT_DLGLOBAL         DL_GLOBAL
17697 #  else
17698 #    define LT_DLGLOBAL         0
17699 #  endif
17700 #endif
17701
17702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17703    find out it does not work in some platform. */
17704 #ifndef LT_DLLAZY_OR_NOW
17705 #  ifdef RTLD_LAZY
17706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17707 #  else
17708 #    ifdef DL_LAZY
17709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17710 #    else
17711 #      ifdef RTLD_NOW
17712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17713 #      else
17714 #        ifdef DL_NOW
17715 #          define LT_DLLAZY_OR_NOW      DL_NOW
17716 #        else
17717 #          define LT_DLLAZY_OR_NOW      0
17718 #        endif
17719 #      endif
17720 #    endif
17721 #  endif
17722 #endif
17723
17724 #ifdef __cplusplus
17725 extern "C" void exit (int);
17726 #endif
17727
17728 void fnord() { int i=42;}
17729 int main ()
17730 {
17731   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17732   int status = $lt_dlunknown;
17733
17734   if (self)
17735     {
17736       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17737       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17738       /* dlclose (self); */
17739     }
17740   else
17741     puts (dlerror ());
17742
17743     exit (status);
17744 }
17745 EOF
17746   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747   (eval $ac_link) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17751     (./conftest; exit; ) >&5 2>/dev/null
17752     lt_status=$?
17753     case x$lt_status in
17754       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17755       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17756       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17757     esac
17758   else :
17759     # compilation failed
17760     lt_cv_dlopen_self=no
17761   fi
17762 fi
17763 rm -fr conftest*
17764
17765
17766 fi
17767 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17768 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17769
17770     if test "x$lt_cv_dlopen_self" = xyes; then
17771       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17772       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17773 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17774 if test "${lt_cv_dlopen_self_static+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777           if test "$cross_compiling" = yes; then :
17778   lt_cv_dlopen_self_static=cross
17779 else
17780   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17781   lt_status=$lt_dlunknown
17782   cat > conftest.$ac_ext <<EOF
17783 #line 17783 "configure"
17784 #include "confdefs.h"
17785
17786 #if HAVE_DLFCN_H
17787 #include <dlfcn.h>
17788 #endif
17789
17790 #include <stdio.h>
17791
17792 #ifdef RTLD_GLOBAL
17793 #  define LT_DLGLOBAL           RTLD_GLOBAL
17794 #else
17795 #  ifdef DL_GLOBAL
17796 #    define LT_DLGLOBAL         DL_GLOBAL
17797 #  else
17798 #    define LT_DLGLOBAL         0
17799 #  endif
17800 #endif
17801
17802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17803    find out it does not work in some platform. */
17804 #ifndef LT_DLLAZY_OR_NOW
17805 #  ifdef RTLD_LAZY
17806 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17807 #  else
17808 #    ifdef DL_LAZY
17809 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17810 #    else
17811 #      ifdef RTLD_NOW
17812 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17813 #      else
17814 #        ifdef DL_NOW
17815 #          define LT_DLLAZY_OR_NOW      DL_NOW
17816 #        else
17817 #          define LT_DLLAZY_OR_NOW      0
17818 #        endif
17819 #      endif
17820 #    endif
17821 #  endif
17822 #endif
17823
17824 #ifdef __cplusplus
17825 extern "C" void exit (int);
17826 #endif
17827
17828 void fnord() { int i=42;}
17829 int main ()
17830 {
17831   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17832   int status = $lt_dlunknown;
17833
17834   if (self)
17835     {
17836       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17837       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17838       /* dlclose (self); */
17839     }
17840   else
17841     puts (dlerror ());
17842
17843     exit (status);
17844 }
17845 EOF
17846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847   (eval $ac_link) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17851     (./conftest; exit; ) >&5 2>/dev/null
17852     lt_status=$?
17853     case x$lt_status in
17854       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17856       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17857     esac
17858   else :
17859     # compilation failed
17860     lt_cv_dlopen_self_static=no
17861   fi
17862 fi
17863 rm -fr conftest*
17864
17865
17866 fi
17867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17869     fi
17870
17871     CPPFLAGS="$save_CPPFLAGS"
17872     LDFLAGS="$save_LDFLAGS"
17873     LIBS="$save_LIBS"
17874     ;;
17875   esac
17876
17877   case $lt_cv_dlopen_self in
17878   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879   *) enable_dlopen_self=unknown ;;
17880   esac
17881
17882   case $lt_cv_dlopen_self_static in
17883   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884   *) enable_dlopen_self_static=unknown ;;
17885   esac
17886 fi
17887
17888
17889 # Report which library types will actually be built
17890 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17892 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17893 echo "${ECHO_T}$can_build_shared" >&6; }
17894
17895 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17897 test "$can_build_shared" = "no" && enable_shared=no
17898
17899 # On AIX, shared libraries and static libraries use the same namespace, and
17900 # are all built from PIC.
17901 case $host_os in
17902 aix3*)
17903   test "$enable_shared" = yes && enable_static=no
17904   if test -n "$RANLIB"; then
17905     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17906     postinstall_cmds='$RANLIB $lib'
17907   fi
17908   ;;
17909
17910 aix4* | aix5*)
17911   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17912     test "$enable_shared" = yes && enable_static=no
17913   fi
17914     ;;
17915 esac
17916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17917 echo "${ECHO_T}$enable_shared" >&6; }
17918
17919 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17921 # Make sure either enable_shared or enable_static is yes.
17922 test "$enable_shared" = yes || enable_static=yes
17923 { echo "$as_me:$LINENO: result: $enable_static" >&5
17924 echo "${ECHO_T}$enable_static" >&6; }
17925
17926 # The else clause should only fire when bootstrapping the
17927 # libtool distribution, otherwise you forgot to ship ltmain.sh
17928 # with your package, and you will get complaints that there are
17929 # no rules to generate ltmain.sh.
17930 if test -f "$ltmain"; then
17931   # See if we are running on zsh, and set the options which allow our commands through
17932   # without removal of \ escapes.
17933   if test -n "${ZSH_VERSION+set}" ; then
17934     setopt NO_GLOB_SUBST
17935   fi
17936   # Now quote all the things that may contain metacharacters while being
17937   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17938   # variables and quote the copies for generation of the libtool script.
17939   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17940     SED SHELL STRIP \
17941     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17942     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17943     deplibs_check_method reload_flag reload_cmds need_locks \
17944     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17945     lt_cv_sys_global_symbol_to_c_name_address \
17946     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17947     old_postinstall_cmds old_postuninstall_cmds \
17948     compiler \
17949     CC \
17950     LD \
17951     lt_prog_compiler_wl \
17952     lt_prog_compiler_pic \
17953     lt_prog_compiler_static \
17954     lt_prog_compiler_no_builtin_flag \
17955     export_dynamic_flag_spec \
17956     thread_safe_flag_spec \
17957     whole_archive_flag_spec \
17958     enable_shared_with_static_runtimes \
17959     old_archive_cmds \
17960     old_archive_from_new_cmds \
17961     predep_objects \
17962     postdep_objects \
17963     predeps \
17964     postdeps \
17965     compiler_lib_search_path \
17966     archive_cmds \
17967     archive_expsym_cmds \
17968     postinstall_cmds \
17969     postuninstall_cmds \
17970     old_archive_from_expsyms_cmds \
17971     allow_undefined_flag \
17972     no_undefined_flag \
17973     export_symbols_cmds \
17974     hardcode_libdir_flag_spec \
17975     hardcode_libdir_flag_spec_ld \
17976     hardcode_libdir_separator \
17977     hardcode_automatic \
17978     module_cmds \
17979     module_expsym_cmds \
17980     lt_cv_prog_compiler_c_o \
17981     exclude_expsyms \
17982     include_expsyms; do
17983
17984     case $var in
17985     old_archive_cmds | \
17986     old_archive_from_new_cmds | \
17987     archive_cmds | \
17988     archive_expsym_cmds | \
17989     module_cmds | \
17990     module_expsym_cmds | \
17991     old_archive_from_expsyms_cmds | \
17992     export_symbols_cmds | \
17993     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17994     postinstall_cmds | postuninstall_cmds | \
17995     old_postinstall_cmds | old_postuninstall_cmds | \
17996     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17997       # Double-quote double-evaled strings.
17998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17999       ;;
18000     *)
18001       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002       ;;
18003     esac
18004   done
18005
18006   case $lt_echo in
18007   *'\$0 --fallback-echo"')
18008     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009     ;;
18010   esac
18011
18012 cfgfile="${ofile}T"
18013   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18014   $rm -f "$cfgfile"
18015   { echo "$as_me:$LINENO: creating $ofile" >&5
18016 echo "$as_me: creating $ofile" >&6;}
18017
18018   cat <<__EOF__ >> "$cfgfile"
18019 #! $SHELL
18020
18021 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18022 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18024 #
18025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18026 # Free Software Foundation, Inc.
18027 #
18028 # This file is part of GNU Libtool:
18029 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18030 #
18031 # This program is free software; you can redistribute it and/or modify
18032 # it under the terms of the GNU General Public License as published by
18033 # the Free Software Foundation; either version 2 of the License, or
18034 # (at your option) any later version.
18035 #
18036 # This program is distributed in the hope that it will be useful, but
18037 # WITHOUT ANY WARRANTY; without even the implied warranty of
18038 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18039 # General Public License for more details.
18040 #
18041 # You should have received a copy of the GNU General Public License
18042 # along with this program; if not, write to the Free Software
18043 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18044 #
18045 # As a special exception to the GNU General Public License, if you
18046 # distribute this file as part of a program that contains a
18047 # configuration script generated by Autoconf, you may include it under
18048 # the same distribution terms that you use for the rest of that program.
18049
18050 # A sed program that does not truncate output.
18051 SED=$lt_SED
18052
18053 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18054 Xsed="$SED -e 1s/^X//"
18055
18056 # The HP-UX ksh and POSIX shell print the target directory to stdout
18057 # if CDPATH is set.
18058 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18059
18060 # The names of the tagged configurations supported by this script.
18061 available_tags=
18062
18063 # ### BEGIN LIBTOOL CONFIG
18064
18065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
18067 # Shell to use when invoking shell scripts.
18068 SHELL=$lt_SHELL
18069
18070 # Whether or not to build shared libraries.
18071 build_libtool_libs=$enable_shared
18072
18073 # Whether or not to build static libraries.
18074 build_old_libs=$enable_static
18075
18076 # Whether or not to add -lc for building shared libraries.
18077 build_libtool_need_lc=$archive_cmds_need_lc
18078
18079 # Whether or not to disallow shared libs when runtime libs are static
18080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18081
18082 # Whether or not to optimize for fast installation.
18083 fast_install=$enable_fast_install
18084
18085 # The host system.
18086 host_alias=$host_alias
18087 host=$host
18088 host_os=$host_os
18089
18090 # The build system.
18091 build_alias=$build_alias
18092 build=$build
18093 build_os=$build_os
18094
18095 # An echo program that does not interpret backslashes.
18096 echo=$lt_echo
18097
18098 # The archiver.
18099 AR=$lt_AR
18100 AR_FLAGS=$lt_AR_FLAGS
18101
18102 # A C compiler.
18103 LTCC=$lt_LTCC
18104
18105 # LTCC compiler flags.
18106 LTCFLAGS=$lt_LTCFLAGS
18107
18108 # A language-specific compiler.
18109 CC=$lt_compiler
18110
18111 # Is the compiler the GNU C compiler?
18112 with_gcc=$GCC
18113
18114 # An ERE matcher.
18115 EGREP=$lt_EGREP
18116
18117 # The linker used to build libraries.
18118 LD=$lt_LD
18119
18120 # Whether we need hard or soft links.
18121 LN_S=$lt_LN_S
18122
18123 # A BSD-compatible nm program.
18124 NM=$lt_NM
18125
18126 # A symbol stripping program
18127 STRIP=$lt_STRIP
18128
18129 # Used to examine libraries when file_magic_cmd begins "file"
18130 MAGIC_CMD=$MAGIC_CMD
18131
18132 # Used on cygwin: DLL creation program.
18133 DLLTOOL="$DLLTOOL"
18134
18135 # Used on cygwin: object dumper.
18136 OBJDUMP="$OBJDUMP"
18137
18138 # Used on cygwin: assembler.
18139 AS="$AS"
18140
18141 # The name of the directory that contains temporary libtool files.
18142 objdir=$objdir
18143
18144 # How to create reloadable object files.
18145 reload_flag=$lt_reload_flag
18146 reload_cmds=$lt_reload_cmds
18147
18148 # How to pass a linker flag through the compiler.
18149 wl=$lt_lt_prog_compiler_wl
18150
18151 # Object file suffix (normally "o").
18152 objext="$ac_objext"
18153
18154 # Old archive suffix (normally "a").
18155 libext="$libext"
18156
18157 # Shared library suffix (normally ".so").
18158 shrext_cmds='$shrext_cmds'
18159
18160 # Executable file suffix (normally "").
18161 exeext="$exeext"
18162
18163 # Additional compiler flags for building library objects.
18164 pic_flag=$lt_lt_prog_compiler_pic
18165 pic_mode=$pic_mode
18166
18167 # What is the maximum length of a command?
18168 max_cmd_len=$lt_cv_sys_max_cmd_len
18169
18170 # Does compiler simultaneously support -c and -o options?
18171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18172
18173 # Must we lock files when doing compilation?
18174 need_locks=$lt_need_locks
18175
18176 # Do we need the lib prefix for modules?
18177 need_lib_prefix=$need_lib_prefix
18178
18179 # Do we need a version for libraries?
18180 need_version=$need_version
18181
18182 # Whether dlopen is supported.
18183 dlopen_support=$enable_dlopen
18184
18185 # Whether dlopen of programs is supported.
18186 dlopen_self=$enable_dlopen_self
18187
18188 # Whether dlopen of statically linked programs is supported.
18189 dlopen_self_static=$enable_dlopen_self_static
18190
18191 # Compiler flag to prevent dynamic linking.
18192 link_static_flag=$lt_lt_prog_compiler_static
18193
18194 # Compiler flag to turn off builtin functions.
18195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18196
18197 # Compiler flag to allow reflexive dlopens.
18198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18199
18200 # Compiler flag to generate shared objects directly from archives.
18201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18202
18203 # Compiler flag to generate thread-safe objects.
18204 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18205
18206 # Library versioning type.
18207 version_type=$version_type
18208
18209 # Format of library name prefix.
18210 libname_spec=$lt_libname_spec
18211
18212 # List of archive names.  First name is the real one, the rest are links.
18213 # The last name is the one that the linker finds with -lNAME.
18214 library_names_spec=$lt_library_names_spec
18215
18216 # The coded name of the library, if different from the real name.
18217 soname_spec=$lt_soname_spec
18218
18219 # Commands used to build and install an old-style archive.
18220 RANLIB=$lt_RANLIB
18221 old_archive_cmds=$lt_old_archive_cmds
18222 old_postinstall_cmds=$lt_old_postinstall_cmds
18223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225 # Create an old-style archive from a shared archive.
18226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18227
18228 # Create a temporary old-style archive to link instead of a shared archive.
18229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18230
18231 # Commands used to build and install a shared archive.
18232 archive_cmds=$lt_archive_cmds
18233 archive_expsym_cmds=$lt_archive_expsym_cmds
18234 postinstall_cmds=$lt_postinstall_cmds
18235 postuninstall_cmds=$lt_postuninstall_cmds
18236
18237 # Commands used to build a loadable module (assumed same as above if empty)
18238 module_cmds=$lt_module_cmds
18239 module_expsym_cmds=$lt_module_expsym_cmds
18240
18241 # Commands to strip libraries.
18242 old_striplib=$lt_old_striplib
18243 striplib=$lt_striplib
18244
18245 # Dependencies to place before the objects being linked to create a
18246 # shared library.
18247 predep_objects=$lt_predep_objects
18248
18249 # Dependencies to place after the objects being linked to create a
18250 # shared library.
18251 postdep_objects=$lt_postdep_objects
18252
18253 # Dependencies to place before the objects being linked to create a
18254 # shared library.
18255 predeps=$lt_predeps
18256
18257 # Dependencies to place after the objects being linked to create a
18258 # shared library.
18259 postdeps=$lt_postdeps
18260
18261 # The library search path used internally by the compiler when linking
18262 # a shared library.
18263 compiler_lib_search_path=$lt_compiler_lib_search_path
18264
18265 # Method to check whether dependent libraries are shared objects.
18266 deplibs_check_method=$lt_deplibs_check_method
18267
18268 # Command to use when deplibs_check_method == file_magic.
18269 file_magic_cmd=$lt_file_magic_cmd
18270
18271 # Flag that allows shared libraries with undefined symbols to be built.
18272 allow_undefined_flag=$lt_allow_undefined_flag
18273
18274 # Flag that forces no undefined symbols.
18275 no_undefined_flag=$lt_no_undefined_flag
18276
18277 # Commands used to finish a libtool library installation in a directory.
18278 finish_cmds=$lt_finish_cmds
18279
18280 # Same as above, but a single script fragment to be evaled but not shown.
18281 finish_eval=$lt_finish_eval
18282
18283 # Take the output of nm and produce a listing of raw symbols and C names.
18284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285
18286 # Transform the output of nm in a proper C declaration
18287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288
18289 # Transform the output of nm in a C name address pair
18290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291
18292 # This is the shared library runtime path variable.
18293 runpath_var=$runpath_var
18294
18295 # This is the shared library path variable.
18296 shlibpath_var=$shlibpath_var
18297
18298 # Is shlibpath searched before the hard-coded library search path?
18299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301 # How to hardcode a shared library path into an executable.
18302 hardcode_action=$hardcode_action
18303
18304 # Whether we should hardcode library paths into libraries.
18305 hardcode_into_libs=$hardcode_into_libs
18306
18307 # Flag to hardcode \$libdir into a binary during linking.
18308 # This must work even if \$libdir does not exist.
18309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18310
18311 # If ld is used when linking, flag to hardcode \$libdir into
18312 # a binary during linking. This must work even if \$libdir does
18313 # not exist.
18314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18315
18316 # Whether we need a single -rpath flag with a separated argument.
18317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18318
18319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18320 # resulting binary.
18321 hardcode_direct=$hardcode_direct
18322
18323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324 # resulting binary.
18325 hardcode_minus_L=$hardcode_minus_L
18326
18327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328 # the resulting binary.
18329 hardcode_shlibpath_var=$hardcode_shlibpath_var
18330
18331 # Set to yes if building a shared library automatically hardcodes DIR into the library
18332 # and all subsequent libraries and executables linked against it.
18333 hardcode_automatic=$hardcode_automatic
18334
18335 # Variables whose values should be saved in libtool wrapper scripts and
18336 # restored at relink time.
18337 variables_saved_for_relink="$variables_saved_for_relink"
18338
18339 # Whether libtool must link a program against all its dependency libraries.
18340 link_all_deplibs=$link_all_deplibs
18341
18342 # Compile-time system search path for libraries
18343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345 # Run-time system search path for libraries
18346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348 # Fix the shell variable \$srcfile for the compiler.
18349 fix_srcfile_path="$fix_srcfile_path"
18350
18351 # Set to yes if exported symbols are required.
18352 always_export_symbols=$always_export_symbols
18353
18354 # The commands to list exported symbols.
18355 export_symbols_cmds=$lt_export_symbols_cmds
18356
18357 # The commands to extract the exported symbol list from a shared archive.
18358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360 # Symbols that should not be listed in the preloaded symbols.
18361 exclude_expsyms=$lt_exclude_expsyms
18362
18363 # Symbols that must always be exported.
18364 include_expsyms=$lt_include_expsyms
18365
18366 # ### END LIBTOOL CONFIG
18367
18368 __EOF__
18369
18370
18371   case $host_os in
18372   aix3*)
18373     cat <<\EOF >> "$cfgfile"
18374
18375 # AIX sometimes has problems with the GCC collect2 program.  For some
18376 # reason, if we set the COLLECT_NAMES environment variable, the problems
18377 # vanish in a puff of smoke.
18378 if test "X${COLLECT_NAMES+set}" != Xset; then
18379   COLLECT_NAMES=
18380   export COLLECT_NAMES
18381 fi
18382 EOF
18383     ;;
18384   esac
18385
18386   # We use sed instead of cat because bash on DJGPP gets confused if
18387   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18388   # text mode, it properly converts lines to CR/LF.  This bash problem
18389   # is reportedly fixed, but why not run on old versions too?
18390   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18391
18392   mv -f "$cfgfile" "$ofile" || \
18393     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18394   chmod +x "$ofile"
18395
18396 else
18397   # If there is no Makefile yet, we rely on a make rule to execute
18398   # `config.status --recheck' to rerun these tests and create the
18399   # libtool script then.
18400   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401   if test -f "$ltmain_in"; then
18402     test -f Makefile && make "$ltmain"
18403   fi
18404 fi
18405
18406
18407 ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413 CC="$lt_save_CC"
18414
18415
18416 # Check whether --with-tags was given.
18417 if test "${with_tags+set}" = set; then
18418   withval=$with_tags; tagnames="$withval"
18419 fi
18420
18421
18422 if test -f "$ltmain" && test -n "$tagnames"; then
18423   if test ! -f "${ofile}"; then
18424     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18425 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18426   fi
18427
18428   if test -z "$LTCC"; then
18429     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18430     if test -z "$LTCC"; then
18431       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18432 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18433     else
18434       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18435 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18436     fi
18437   fi
18438   if test -z "$LTCFLAGS"; then
18439     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18440   fi
18441
18442   # Extract list of available tagged configurations in $ofile.
18443   # Note that this assumes the entire list is on one line.
18444   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18445
18446   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18447   for tagname in $tagnames; do
18448     IFS="$lt_save_ifs"
18449     # Check whether tagname contains only valid characters
18450     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18451     "") ;;
18452     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18453 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18454    { (exit 1); exit 1; }; }
18455         ;;
18456     esac
18457
18458     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18459     then
18460       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18461 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18462    { (exit 1); exit 1; }; }
18463     fi
18464
18465     # Update the list of available tags.
18466     if test -n "$tagname"; then
18467       echo appending configuration tag \"$tagname\" to $ofile
18468
18469       case $tagname in
18470       CXX)
18471         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18472             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18473             (test "X$CXX" != "Xg++"))) ; then
18474           ac_ext=cpp
18475 ac_cpp='$CXXCPP $CPPFLAGS'
18476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483 archive_cmds_need_lc_CXX=no
18484 allow_undefined_flag_CXX=
18485 always_export_symbols_CXX=no
18486 archive_expsym_cmds_CXX=
18487 export_dynamic_flag_spec_CXX=
18488 hardcode_direct_CXX=no
18489 hardcode_libdir_flag_spec_CXX=
18490 hardcode_libdir_flag_spec_ld_CXX=
18491 hardcode_libdir_separator_CXX=
18492 hardcode_minus_L_CXX=no
18493 hardcode_shlibpath_var_CXX=unsupported
18494 hardcode_automatic_CXX=no
18495 module_cmds_CXX=
18496 module_expsym_cmds_CXX=
18497 link_all_deplibs_CXX=unknown
18498 old_archive_cmds_CXX=$old_archive_cmds
18499 no_undefined_flag_CXX=
18500 whole_archive_flag_spec_CXX=
18501 enable_shared_with_static_runtimes_CXX=no
18502
18503 # Dependencies to place before and after the object being linked:
18504 predep_objects_CXX=
18505 postdep_objects_CXX=
18506 predeps_CXX=
18507 postdeps_CXX=
18508 compiler_lib_search_path_CXX=
18509
18510 # Source file extension for C++ test sources.
18511 ac_ext=cpp
18512
18513 # Object file extension for compiled C++ test sources.
18514 objext=o
18515 objext_CXX=$objext
18516
18517 # Code to be used in simple compile tests
18518 lt_simple_compile_test_code="int some_variable = 0;\n"
18519
18520 # Code to be used in simple link tests
18521 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18522
18523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18524
18525 # If no C compiler was specified, use CC.
18526 LTCC=${LTCC-"$CC"}
18527
18528 # If no C compiler flags were specified, use CFLAGS.
18529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18530
18531 # Allow CC to be a program name with arguments.
18532 compiler=$CC
18533
18534
18535 # save warnings/boilerplate of simple test code
18536 ac_outfile=conftest.$ac_objext
18537 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539 _lt_compiler_boilerplate=`cat conftest.err`
18540 $rm conftest*
18541
18542 ac_outfile=conftest.$ac_objext
18543 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18545 _lt_linker_boilerplate=`cat conftest.err`
18546 $rm conftest*
18547
18548
18549 # Allow CC to be a program name with arguments.
18550 lt_save_CC=$CC
18551 lt_save_LD=$LD
18552 lt_save_GCC=$GCC
18553 GCC=$GXX
18554 lt_save_with_gnu_ld=$with_gnu_ld
18555 lt_save_path_LD=$lt_cv_path_LD
18556 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18557   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18558 else
18559   $as_unset lt_cv_prog_gnu_ld
18560 fi
18561 if test -n "${lt_cv_path_LDCXX+set}"; then
18562   lt_cv_path_LD=$lt_cv_path_LDCXX
18563 else
18564   $as_unset lt_cv_path_LD
18565 fi
18566 test -z "${LDCXX+set}" || LD=$LDCXX
18567 CC=${CXX-"c++"}
18568 compiler=$CC
18569 compiler_CXX=$CC
18570 for cc_temp in $compiler""; do
18571   case $cc_temp in
18572     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18574     \-*) ;;
18575     *) break;;
18576   esac
18577 done
18578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579
18580
18581 # We don't want -fno-exception wen compiling C++ code, so set the
18582 # no_builtin_flag separately
18583 if test "$GXX" = yes; then
18584   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18585 else
18586   lt_prog_compiler_no_builtin_flag_CXX=
18587 fi
18588
18589 if test "$GXX" = yes; then
18590   # Set up default GNU C++ configuration
18591
18592
18593 # Check whether --with-gnu-ld was given.
18594 if test "${with_gnu_ld+set}" = set; then
18595   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18596 else
18597   with_gnu_ld=no
18598 fi
18599
18600 ac_prog=ld
18601 if test "$GCC" = yes; then
18602   # Check if gcc -print-prog-name=ld gives a path.
18603   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18604 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18605   case $host in
18606   *-*-mingw*)
18607     # gcc leaves a trailing carriage return which upsets mingw
18608     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609   *)
18610     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611   esac
18612   case $ac_prog in
18613     # Accept absolute paths.
18614     [\\/]* | ?:[\\/]*)
18615       re_direlt='/[^/][^/]*/\.\./'
18616       # Canonicalize the pathname of ld
18617       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18618       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18619         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18620       done
18621       test -z "$LD" && LD="$ac_prog"
18622       ;;
18623   "")
18624     # If it fails, then pretend we aren't using GCC.
18625     ac_prog=ld
18626     ;;
18627   *)
18628     # If it is relative, then search for the first ld in PATH.
18629     with_gnu_ld=unknown
18630     ;;
18631   esac
18632 elif test "$with_gnu_ld" = yes; then
18633   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18634 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18635 else
18636   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18637 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18638 fi
18639 if test "${lt_cv_path_LD+set}" = set; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   if test -z "$LD"; then
18643   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644   for ac_dir in $PATH; do
18645     IFS="$lt_save_ifs"
18646     test -z "$ac_dir" && ac_dir=.
18647     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648       lt_cv_path_LD="$ac_dir/$ac_prog"
18649       # Check to see if the program is GNU ld.  I'd rather use --version,
18650       # but apparently some variants of GNU ld only accept -v.
18651       # Break only if it was the GNU/non-GNU ld that we prefer.
18652       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653       *GNU* | *'with BFD'*)
18654         test "$with_gnu_ld" != no && break
18655         ;;
18656       *)
18657         test "$with_gnu_ld" != yes && break
18658         ;;
18659       esac
18660     fi
18661   done
18662   IFS="$lt_save_ifs"
18663 else
18664   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665 fi
18666 fi
18667
18668 LD="$lt_cv_path_LD"
18669 if test -n "$LD"; then
18670   { echo "$as_me:$LINENO: result: $LD" >&5
18671 echo "${ECHO_T}$LD" >&6; }
18672 else
18673   { echo "$as_me:$LINENO: result: no" >&5
18674 echo "${ECHO_T}no" >&6; }
18675 fi
18676 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18677 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18678    { (exit 1); exit 1; }; }
18679 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18680 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18681 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18685 case `$LD -v 2>&1 </dev/null` in
18686 *GNU* | *'with BFD'*)
18687   lt_cv_prog_gnu_ld=yes
18688   ;;
18689 *)
18690   lt_cv_prog_gnu_ld=no
18691   ;;
18692 esac
18693 fi
18694 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18695 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18696 with_gnu_ld=$lt_cv_prog_gnu_ld
18697
18698
18699
18700   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18701   # archiving commands below assume that GNU ld is being used.
18702   if test "$with_gnu_ld" = yes; then
18703     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18704     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'
18705
18706     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18707     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18708
18709     # If archive_cmds runs LD, not CC, wlarc should be empty
18710     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18711     #     investigate it a little bit more. (MM)
18712     wlarc='${wl}'
18713
18714     # ancient GNU ld didn't support --whole-archive et. al.
18715     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18716         grep 'no-whole-archive' > /dev/null; then
18717       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718     else
18719       whole_archive_flag_spec_CXX=
18720     fi
18721   else
18722     with_gnu_ld=no
18723     wlarc=
18724
18725     # A generic and very simple default shared library creation
18726     # command for GNU C++ for the case where it uses the native
18727     # linker, instead of GNU ld.  If possible, this setting should
18728     # overridden to take advantage of the native linker features on
18729     # the platform it is being used on.
18730     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18731   fi
18732
18733   # Commands to make compiler produce verbose output that lists
18734   # what "hidden" libraries, object files and flags are used when
18735   # linking a shared library.
18736   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18737
18738 else
18739   GXX=no
18740   with_gnu_ld=no
18741   wlarc=
18742 fi
18743
18744 # PORTME: fill in a description of your system's C++ link characteristics
18745 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18746 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18747 ld_shlibs_CXX=yes
18748 case $host_os in
18749   aix3*)
18750     # FIXME: insert proper C++ library support
18751     ld_shlibs_CXX=no
18752     ;;
18753   aix4* | aix5*)
18754     if test "$host_cpu" = ia64; then
18755       # On IA64, the linker does run time linking by default, so we don't
18756       # have to do anything special.
18757       aix_use_runtimelinking=no
18758       exp_sym_flag='-Bexport'
18759       no_entry_flag=""
18760     else
18761       aix_use_runtimelinking=no
18762
18763       # Test if we are trying to use run time linking or normal
18764       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18765       # need to do runtime linking.
18766       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18767         for ld_flag in $LDFLAGS; do
18768           case $ld_flag in
18769           *-brtl*)
18770             aix_use_runtimelinking=yes
18771             break
18772             ;;
18773           esac
18774         done
18775         ;;
18776       esac
18777
18778       exp_sym_flag='-bexport'
18779       no_entry_flag='-bnoentry'
18780     fi
18781
18782     # When large executables or shared objects are built, AIX ld can
18783     # have problems creating the table of contents.  If linking a library
18784     # or program results in "error TOC overflow" add -mminimal-toc to
18785     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18786     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18787
18788     archive_cmds_CXX=''
18789     hardcode_direct_CXX=yes
18790     hardcode_libdir_separator_CXX=':'
18791     link_all_deplibs_CXX=yes
18792
18793     if test "$GXX" = yes; then
18794       case $host_os in aix4.[012]|aix4.[012].*)
18795       # We only want to do this on AIX 4.2 and lower, the check
18796       # below for broken collect2 doesn't work under 4.3+
18797         collect2name=`${CC} -print-prog-name=collect2`
18798         if test -f "$collect2name" && \
18799            strings "$collect2name" | grep resolve_lib_name >/dev/null
18800         then
18801           # We have reworked collect2
18802           hardcode_direct_CXX=yes
18803         else
18804           # We have old collect2
18805           hardcode_direct_CXX=unsupported
18806           # It fails to find uninstalled libraries when the uninstalled
18807           # path is not listed in the libpath.  Setting hardcode_minus_L
18808           # to unsupported forces relinking
18809           hardcode_minus_L_CXX=yes
18810           hardcode_libdir_flag_spec_CXX='-L$libdir'
18811           hardcode_libdir_separator_CXX=
18812         fi
18813         ;;
18814       esac
18815       shared_flag='-shared'
18816       if test "$aix_use_runtimelinking" = yes; then
18817         shared_flag="$shared_flag "'${wl}-G'
18818       fi
18819     else
18820       # not using gcc
18821       if test "$host_cpu" = ia64; then
18822         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18823         # chokes on -Wl,-G. The following line is correct:
18824         shared_flag='-G'
18825       else
18826         if test "$aix_use_runtimelinking" = yes; then
18827           shared_flag='${wl}-G'
18828         else
18829           shared_flag='${wl}-bM:SRE'
18830         fi
18831       fi
18832     fi
18833
18834     # It seems that -bexpall does not export symbols beginning with
18835     # underscore (_), so it is better to generate a list of symbols to export.
18836     always_export_symbols_CXX=yes
18837     if test "$aix_use_runtimelinking" = yes; then
18838       # Warning - without using the other runtime loading flags (-brtl),
18839       # -berok will link without error, but may produce a broken library.
18840       allow_undefined_flag_CXX='-berok'
18841       # Determine the default libpath from the value encoded in an empty executable.
18842       cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h.  */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h.  */
18848
18849 int
18850 main ()
18851 {
18852
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_link") 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } &&
18871          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; } &&
18881          { ac_try='test -s conftest$ac_exeext'
18882   { (case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_try") 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; }; then
18891
18892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18893 }'`
18894 # Check for a 64-bit object if we didn't find anything.
18895 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; }
18896 }'`; fi
18897 else
18898   echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901
18902 fi
18903
18904 rm -f core conftest.err conftest.$ac_objext \
18905       conftest$ac_exeext conftest.$ac_ext
18906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18907
18908       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18909
18910       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"
18911      else
18912       if test "$host_cpu" = ia64; then
18913         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18914         allow_undefined_flag_CXX="-z nodefs"
18915         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"
18916       else
18917         # Determine the default libpath from the value encoded in an empty executable.
18918         cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924
18925 int
18926 main ()
18927 {
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_link") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_try") 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967
18968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18969 }'`
18970 # Check for a 64-bit object if we didn't find anything.
18971 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; }
18972 }'`; fi
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977
18978 fi
18979
18980 rm -f core conftest.err conftest.$ac_objext \
18981       conftest$ac_exeext conftest.$ac_ext
18982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18983
18984         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985         # Warning - without using the other run time loading flags,
18986         # -berok will link without error, but may produce a broken library.
18987         no_undefined_flag_CXX=' ${wl}-bernotok'
18988         allow_undefined_flag_CXX=' ${wl}-berok'
18989         # Exported symbols can be pulled into shared objects from archives
18990         whole_archive_flag_spec_CXX='$convenience'
18991         archive_cmds_need_lc_CXX=yes
18992         # This is similar to how AIX traditionally builds its shared libraries.
18993         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'
18994       fi
18995     fi
18996     ;;
18997
18998   beos*)
18999     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000       allow_undefined_flag_CXX=unsupported
19001       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19002       # support --undefined.  This deserves some investigation.  FIXME
19003       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004     else
19005       ld_shlibs_CXX=no
19006     fi
19007     ;;
19008
19009   chorus*)
19010     case $cc_basename in
19011       *)
19012         # FIXME: insert proper C++ library support
19013         ld_shlibs_CXX=no
19014         ;;
19015     esac
19016     ;;
19017
19018   cygwin* | mingw* | pw32*)
19019     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19020     # as there is no search path for DLLs.
19021     hardcode_libdir_flag_spec_CXX='-L$libdir'
19022     allow_undefined_flag_CXX=unsupported
19023     always_export_symbols_CXX=no
19024     enable_shared_with_static_runtimes_CXX=yes
19025
19026     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19027       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'
19028       # If the export-symbols file already is a .def file (1st line
19029       # is EXPORTS), use it as is; otherwise, prepend...
19030       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031         cp $export_symbols $output_objdir/$soname.def;
19032       else
19033         echo EXPORTS > $output_objdir/$soname.def;
19034         cat $export_symbols >> $output_objdir/$soname.def;
19035       fi~
19036       $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'
19037     else
19038       ld_shlibs_CXX=no
19039     fi
19040   ;;
19041       darwin* | rhapsody*)
19042         case $host_os in
19043         rhapsody* | darwin1.[012])
19044          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19045          ;;
19046        *) # Darwin 1.3 on
19047          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19048            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19049          else
19050            case ${MACOSX_DEPLOYMENT_TARGET} in
19051              10.[012])
19052                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19053                ;;
19054              10.*)
19055                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19056                ;;
19057            esac
19058          fi
19059          ;;
19060         esac
19061       archive_cmds_need_lc_CXX=no
19062       hardcode_direct_CXX=no
19063       hardcode_automatic_CXX=yes
19064       hardcode_shlibpath_var_CXX=unsupported
19065       whole_archive_flag_spec_CXX=''
19066       link_all_deplibs_CXX=yes
19067
19068     if test "$GXX" = yes ; then
19069       lt_int_apple_cc_single_mod=no
19070       output_verbose_link_cmd='echo'
19071       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19072        lt_int_apple_cc_single_mod=yes
19073       fi
19074       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19075        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19076       else
19077           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'
19078         fi
19079         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19080         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19081           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19082             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}'
19083           else
19084             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}'
19085           fi
19086             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}'
19087       else
19088       case $cc_basename in
19089         xlc*)
19090          output_verbose_link_cmd='echo'
19091           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'
19092           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19093           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19094           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}'
19095           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}'
19096           ;;
19097        *)
19098          ld_shlibs_CXX=no
19099           ;;
19100       esac
19101       fi
19102         ;;
19103
19104   dgux*)
19105     case $cc_basename in
19106       ec++*)
19107         # FIXME: insert proper C++ library support
19108         ld_shlibs_CXX=no
19109         ;;
19110       ghcx*)
19111         # Green Hills C++ Compiler
19112         # FIXME: insert proper C++ library support
19113         ld_shlibs_CXX=no
19114         ;;
19115       *)
19116         # FIXME: insert proper C++ library support
19117         ld_shlibs_CXX=no
19118         ;;
19119     esac
19120     ;;
19121   freebsd[12]*)
19122     # C++ shared libraries reported to be fairly broken before switch to ELF
19123     ld_shlibs_CXX=no
19124     ;;
19125   freebsd-elf*)
19126     archive_cmds_need_lc_CXX=no
19127     ;;
19128   freebsd* | kfreebsd*-gnu | dragonfly*)
19129     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19130     # conventions
19131     ld_shlibs_CXX=yes
19132     ;;
19133   gnu*)
19134     ;;
19135   hpux9*)
19136     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19137     hardcode_libdir_separator_CXX=:
19138     export_dynamic_flag_spec_CXX='${wl}-E'
19139     hardcode_direct_CXX=yes
19140     hardcode_minus_L_CXX=yes # Not in the search PATH,
19141                                 # but as the default
19142                                 # location of the library.
19143
19144     case $cc_basename in
19145     CC*)
19146       # FIXME: insert proper C++ library support
19147       ld_shlibs_CXX=no
19148       ;;
19149     aCC*)
19150       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'
19151       # Commands to make compiler produce verbose output that lists
19152       # what "hidden" libraries, object files and flags are used when
19153       # linking a shared library.
19154       #
19155       # There doesn't appear to be a way to prevent this compiler from
19156       # explicitly linking system object files so we need to strip them
19157       # from the output so that they don't get included in the library
19158       # dependencies.
19159       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'
19160       ;;
19161     *)
19162       if test "$GXX" = yes; then
19163         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'
19164       else
19165         # FIXME: insert proper C++ library support
19166         ld_shlibs_CXX=no
19167       fi
19168       ;;
19169     esac
19170     ;;
19171   hpux10*|hpux11*)
19172     if test $with_gnu_ld = no; then
19173       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174       hardcode_libdir_separator_CXX=:
19175
19176       case $host_cpu in
19177       hppa*64*|ia64*)
19178         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19179         ;;
19180       *)
19181         export_dynamic_flag_spec_CXX='${wl}-E'
19182         ;;
19183       esac
19184     fi
19185     case $host_cpu in
19186     hppa*64*|ia64*)
19187       hardcode_direct_CXX=no
19188       hardcode_shlibpath_var_CXX=no
19189       ;;
19190     *)
19191       hardcode_direct_CXX=yes
19192       hardcode_minus_L_CXX=yes # Not in the search PATH,
19193                                               # but as the default
19194                                               # location of the library.
19195       ;;
19196     esac
19197
19198     case $cc_basename in
19199       CC*)
19200         # FIXME: insert proper C++ library support
19201         ld_shlibs_CXX=no
19202         ;;
19203       aCC*)
19204         case $host_cpu in
19205         hppa*64*)
19206           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207           ;;
19208         ia64*)
19209           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210           ;;
19211         *)
19212           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213           ;;
19214         esac
19215         # Commands to make compiler produce verbose output that lists
19216         # what "hidden" libraries, object files and flags are used when
19217         # linking a shared library.
19218         #
19219         # There doesn't appear to be a way to prevent this compiler from
19220         # explicitly linking system object files so we need to strip them
19221         # from the output so that they don't get included in the library
19222         # dependencies.
19223         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'
19224         ;;
19225       *)
19226         if test "$GXX" = yes; then
19227           if test $with_gnu_ld = no; then
19228             case $host_cpu in
19229             hppa*64*)
19230               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231               ;;
19232             ia64*)
19233               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19234               ;;
19235             *)
19236               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'
19237               ;;
19238             esac
19239           fi
19240         else
19241           # FIXME: insert proper C++ library support
19242           ld_shlibs_CXX=no
19243         fi
19244         ;;
19245     esac
19246     ;;
19247   interix3*)
19248     hardcode_direct_CXX=no
19249     hardcode_shlibpath_var_CXX=no
19250     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251     export_dynamic_flag_spec_CXX='${wl}-E'
19252     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253     # Instead, shared libraries are loaded at an image base (0x10000000 by
19254     # default) and relocated if they conflict, which is a slow very memory
19255     # consuming and fragmenting process.  To avoid this, we pick a random,
19256     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19258     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'
19259     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'
19260     ;;
19261   irix5* | irix6*)
19262     case $cc_basename in
19263       CC*)
19264         # SGI C++
19265         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'
19266
19267         # Archives containing C++ object files must be created using
19268         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19269         # necessary to make sure instantiated templates are included
19270         # in the archive.
19271         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272         ;;
19273       *)
19274         if test "$GXX" = yes; then
19275           if test "$with_gnu_ld" = no; then
19276             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'
19277           else
19278             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'
19279           fi
19280         fi
19281         link_all_deplibs_CXX=yes
19282         ;;
19283     esac
19284     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285     hardcode_libdir_separator_CXX=:
19286     ;;
19287   linux*)
19288     case $cc_basename in
19289       KCC*)
19290         # Kuck and Associates, Inc. (KAI) C++ Compiler
19291
19292         # KCC will only create a shared library if the output file
19293         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294         # to its proper name (with version) after linking.
19295         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'
19296         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'
19297         # Commands to make compiler produce verbose output that lists
19298         # what "hidden" libraries, object files and flags are used when
19299         # linking a shared library.
19300         #
19301         # There doesn't appear to be a way to prevent this compiler from
19302         # explicitly linking system object files so we need to strip them
19303         # from the output so that they don't get included in the library
19304         # dependencies.
19305         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'
19306
19307         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19308         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309
19310         # Archives containing C++ object files must be created using
19311         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19313         ;;
19314       icpc*)
19315         # Intel C++
19316         with_gnu_ld=yes
19317         # version 8.0 and above of icpc choke on multiply defined symbols
19318         # if we add $predep_objects and $postdep_objects, however 7.1 and
19319         # earlier do not add the objects themselves.
19320         case `$CC -V 2>&1` in
19321         *"Version 7."*)
19322           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323           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'
19324           ;;
19325         *)  # Version 8.0 or newer
19326           tmp_idyn=
19327           case $host_cpu in
19328             ia64*) tmp_idyn=' -i_dynamic';;
19329           esac
19330           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331           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'
19332           ;;
19333         esac
19334         archive_cmds_need_lc_CXX=no
19335         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19338         ;;
19339       pgCC*)
19340         # Portland Group C++ compiler
19341         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342         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'
19343
19344         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346         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'
19347         ;;
19348       cxx*)
19349         # Compaq C++
19350         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351         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'
19352
19353         runpath_var=LD_RUN_PATH
19354         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355         hardcode_libdir_separator_CXX=:
19356
19357         # Commands to make compiler produce verbose output that lists
19358         # what "hidden" libraries, object files and flags are used when
19359         # linking a shared library.
19360         #
19361         # There doesn't appear to be a way to prevent this compiler from
19362         # explicitly linking system object files so we need to strip them
19363         # from the output so that they don't get included in the library
19364         # dependencies.
19365         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'
19366         ;;
19367     esac
19368     ;;
19369   lynxos*)
19370     # FIXME: insert proper C++ library support
19371     ld_shlibs_CXX=no
19372     ;;
19373   m88k*)
19374     # FIXME: insert proper C++ library support
19375     ld_shlibs_CXX=no
19376     ;;
19377   mvs*)
19378     case $cc_basename in
19379       cxx*)
19380         # FIXME: insert proper C++ library support
19381         ld_shlibs_CXX=no
19382         ;;
19383       *)
19384         # FIXME: insert proper C++ library support
19385         ld_shlibs_CXX=no
19386         ;;
19387     esac
19388     ;;
19389   netbsd*)
19390     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19392       wlarc=
19393       hardcode_libdir_flag_spec_CXX='-R$libdir'
19394       hardcode_direct_CXX=yes
19395       hardcode_shlibpath_var_CXX=no
19396     fi
19397     # Workaround some broken pre-1.5 toolchains
19398     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19399     ;;
19400   openbsd2*)
19401     # C++ shared libraries are fairly broken
19402     ld_shlibs_CXX=no
19403     ;;
19404   openbsd*)
19405     hardcode_direct_CXX=yes
19406     hardcode_shlibpath_var_CXX=no
19407     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19408     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19411       export_dynamic_flag_spec_CXX='${wl}-E'
19412       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19413     fi
19414     output_verbose_link_cmd='echo'
19415     ;;
19416   osf3*)
19417     case $cc_basename in
19418       KCC*)
19419         # Kuck and Associates, Inc. (KAI) C++ Compiler
19420
19421         # KCC will only create a shared library if the output file
19422         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19423         # to its proper name (with version) after linking.
19424         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'
19425
19426         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19427         hardcode_libdir_separator_CXX=:
19428
19429         # Archives containing C++ object files must be created using
19430         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19431         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19432
19433         ;;
19434       RCC*)
19435         # Rational C++ 2.4.1
19436         # FIXME: insert proper C++ library support
19437         ld_shlibs_CXX=no
19438         ;;
19439       cxx*)
19440         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441         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'
19442
19443         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444         hardcode_libdir_separator_CXX=:
19445
19446         # Commands to make compiler produce verbose output that lists
19447         # what "hidden" libraries, object files and flags are used when
19448         # linking a shared library.
19449         #
19450         # There doesn't appear to be a way to prevent this compiler from
19451         # explicitly linking system object files so we need to strip them
19452         # from the output so that they don't get included in the library
19453         # dependencies.
19454         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'
19455         ;;
19456       *)
19457         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19458           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19459           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'
19460
19461           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462           hardcode_libdir_separator_CXX=:
19463
19464           # Commands to make compiler produce verbose output that lists
19465           # what "hidden" libraries, object files and flags are used when
19466           # linking a shared library.
19467           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19468
19469         else
19470           # FIXME: insert proper C++ library support
19471           ld_shlibs_CXX=no
19472         fi
19473         ;;
19474     esac
19475     ;;
19476   osf4* | osf5*)
19477     case $cc_basename in
19478       KCC*)
19479         # Kuck and Associates, Inc. (KAI) C++ Compiler
19480
19481         # KCC will only create a shared library if the output file
19482         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19483         # to its proper name (with version) after linking.
19484         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'
19485
19486         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19487         hardcode_libdir_separator_CXX=:
19488
19489         # Archives containing C++ object files must be created using
19490         # the KAI C++ compiler.
19491         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19492         ;;
19493       RCC*)
19494         # Rational C++ 2.4.1
19495         # FIXME: insert proper C++ library support
19496         ld_shlibs_CXX=no
19497         ;;
19498       cxx*)
19499         allow_undefined_flag_CXX=' -expect_unresolved \*'
19500         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'
19501         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19502           echo "-hidden">> $lib.exp~
19503           $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~
19504           $rm $lib.exp'
19505
19506         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507         hardcode_libdir_separator_CXX=:
19508
19509         # Commands to make compiler produce verbose output that lists
19510         # what "hidden" libraries, object files and flags are used when
19511         # linking a shared library.
19512         #
19513         # There doesn't appear to be a way to prevent this compiler from
19514         # explicitly linking system object files so we need to strip them
19515         # from the output so that they don't get included in the library
19516         # dependencies.
19517         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'
19518         ;;
19519       *)
19520         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19522          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'
19523
19524           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525           hardcode_libdir_separator_CXX=:
19526
19527           # Commands to make compiler produce verbose output that lists
19528           # what "hidden" libraries, object files and flags are used when
19529           # linking a shared library.
19530           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19531
19532         else
19533           # FIXME: insert proper C++ library support
19534           ld_shlibs_CXX=no
19535         fi
19536         ;;
19537     esac
19538     ;;
19539   psos*)
19540     # FIXME: insert proper C++ library support
19541     ld_shlibs_CXX=no
19542     ;;
19543   sunos4*)
19544     case $cc_basename in
19545       CC*)
19546         # Sun C++ 4.x
19547         # FIXME: insert proper C++ library support
19548         ld_shlibs_CXX=no
19549         ;;
19550       lcc*)
19551         # Lucid
19552         # FIXME: insert proper C++ library support
19553         ld_shlibs_CXX=no
19554         ;;
19555       *)
19556         # FIXME: insert proper C++ library support
19557         ld_shlibs_CXX=no
19558         ;;
19559     esac
19560     ;;
19561   solaris*)
19562     case $cc_basename in
19563       CC*)
19564         # Sun C++ 4.2, 5.x and Centerline C++
19565         archive_cmds_need_lc_CXX=yes
19566         no_undefined_flag_CXX=' -zdefs'
19567         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19568         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19569         $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'
19570
19571         hardcode_libdir_flag_spec_CXX='-R$libdir'
19572         hardcode_shlibpath_var_CXX=no
19573         case $host_os in
19574           solaris2.[0-5] | solaris2.[0-5].*) ;;
19575           *)
19576             # The C++ compiler is used as linker so we must use $wl
19577             # flag to pass the commands to the underlying system
19578             # linker. We must also pass each convience library through
19579             # to the system linker between allextract/defaultextract.
19580             # The C++ compiler will combine linker options so we
19581             # cannot just pass the convience library names through
19582             # without $wl.
19583             # Supported since Solaris 2.6 (maybe 2.5.1?)
19584             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'
19585             ;;
19586         esac
19587         link_all_deplibs_CXX=yes
19588
19589         output_verbose_link_cmd='echo'
19590
19591         # Archives containing C++ object files must be created using
19592         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19593         # necessary to make sure instantiated templates are included
19594         # in the archive.
19595         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19596         ;;
19597       gcx*)
19598         # Green Hills C++ Compiler
19599         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19600
19601         # The C++ compiler must be used to create the archive.
19602         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19603         ;;
19604       *)
19605         # GNU C++ compiler with Solaris linker
19606         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19607           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19608           if $CC --version | grep -v '^2\.7' > /dev/null; then
19609             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19610             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19612
19613             # Commands to make compiler produce verbose output that lists
19614             # what "hidden" libraries, object files and flags are used when
19615             # linking a shared library.
19616             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19617           else
19618             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19619             # platform.
19620             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19621             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19622                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19623
19624             # Commands to make compiler produce verbose output that lists
19625             # what "hidden" libraries, object files and flags are used when
19626             # linking a shared library.
19627             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19628           fi
19629
19630           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19631         fi
19632         ;;
19633     esac
19634     ;;
19635   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636     no_undefined_flag_CXX='${wl}-z,text'
19637     archive_cmds_need_lc_CXX=no
19638     hardcode_shlibpath_var_CXX=no
19639     runpath_var='LD_RUN_PATH'
19640
19641     case $cc_basename in
19642       CC*)
19643         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19645         ;;
19646       *)
19647         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19649         ;;
19650     esac
19651     ;;
19652   sysv5* | sco3.2v5* | sco5v6*)
19653     # Note: We can NOT use -z defs as we might desire, because we do not
19654     # link with -lc, and that would cause any symbols used from libc to
19655     # always be unresolved, which means just about no library would
19656     # ever link correctly.  If we're not using GNU ld we use -z text
19657     # though, which does catch some bad symbols but isn't as heavy-handed
19658     # as -z defs.
19659     # For security reasons, it is highly recommended that you always
19660     # use absolute paths for naming shared libraries, and exclude the
19661     # DT_RUNPATH tag from executables and libraries.  But doing so
19662     # requires that you compile everything twice, which is a pain.
19663     # So that behaviour is only enabled if SCOABSPATH is set to a
19664     # non-empty value in the environment.  Most likely only useful for
19665     # creating official distributions of packages.
19666     # This is a hack until libtool officially supports absolute path
19667     # names for shared libraries.
19668     no_undefined_flag_CXX='${wl}-z,text'
19669     allow_undefined_flag_CXX='${wl}-z,nodefs'
19670     archive_cmds_need_lc_CXX=no
19671     hardcode_shlibpath_var_CXX=no
19672     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19673     hardcode_libdir_separator_CXX=':'
19674     link_all_deplibs_CXX=yes
19675     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19676     runpath_var='LD_RUN_PATH'
19677
19678     case $cc_basename in
19679       CC*)
19680         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19682         ;;
19683       *)
19684         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19685         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686         ;;
19687     esac
19688     ;;
19689   tandem*)
19690     case $cc_basename in
19691       NCC*)
19692         # NonStop-UX NCC 3.20
19693         # FIXME: insert proper C++ library support
19694         ld_shlibs_CXX=no
19695         ;;
19696       *)
19697         # FIXME: insert proper C++ library support
19698         ld_shlibs_CXX=no
19699         ;;
19700     esac
19701     ;;
19702   vxworks*)
19703     # FIXME: insert proper C++ library support
19704     ld_shlibs_CXX=no
19705     ;;
19706   *)
19707     # FIXME: insert proper C++ library support
19708     ld_shlibs_CXX=no
19709     ;;
19710 esac
19711 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19712 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19713 test "$ld_shlibs_CXX" = no && can_build_shared=no
19714
19715 GCC_CXX="$GXX"
19716 LD_CXX="$LD"
19717
19718
19719 cat > conftest.$ac_ext <<EOF
19720 class Foo
19721 {
19722 public:
19723   Foo (void) { a = 0; }
19724 private:
19725   int a;
19726 };
19727 EOF
19728
19729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730   (eval $ac_compile) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; then
19734   # Parse the compiler output and extract the necessary
19735   # objects, libraries and library flags.
19736
19737   # Sentinel used to keep track of whether or not we are before
19738   # the conftest object file.
19739   pre_test_object_deps_done=no
19740
19741   # The `*' in the case matches for architectures that use `case' in
19742   # $output_verbose_cmd can trigger glob expansion during the loop
19743   # eval without this substitution.
19744   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19745
19746   for p in `eval $output_verbose_link_cmd`; do
19747     case $p in
19748
19749     -L* | -R* | -l*)
19750        # Some compilers place space between "-{L,R}" and the path.
19751        # Remove the space.
19752        if test $p = "-L" \
19753           || test $p = "-R"; then
19754          prev=$p
19755          continue
19756        else
19757          prev=
19758        fi
19759
19760        if test "$pre_test_object_deps_done" = no; then
19761          case $p in
19762          -L* | -R*)
19763            # Internal compiler library paths should come after those
19764            # provided the user.  The postdeps already come after the
19765            # user supplied libs so there is no need to process them.
19766            if test -z "$compiler_lib_search_path_CXX"; then
19767              compiler_lib_search_path_CXX="${prev}${p}"
19768            else
19769              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19770            fi
19771            ;;
19772          # The "-l" case would never come before the object being
19773          # linked, so don't bother handling this case.
19774          esac
19775        else
19776          if test -z "$postdeps_CXX"; then
19777            postdeps_CXX="${prev}${p}"
19778          else
19779            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19780          fi
19781        fi
19782        ;;
19783
19784     *.$objext)
19785        # This assumes that the test object file only shows up
19786        # once in the compiler output.
19787        if test "$p" = "conftest.$objext"; then
19788          pre_test_object_deps_done=yes
19789          continue
19790        fi
19791
19792        if test "$pre_test_object_deps_done" = no; then
19793          if test -z "$predep_objects_CXX"; then
19794            predep_objects_CXX="$p"
19795          else
19796            predep_objects_CXX="$predep_objects_CXX $p"
19797          fi
19798        else
19799          if test -z "$postdep_objects_CXX"; then
19800            postdep_objects_CXX="$p"
19801          else
19802            postdep_objects_CXX="$postdep_objects_CXX $p"
19803          fi
19804        fi
19805        ;;
19806
19807     *) ;; # Ignore the rest.
19808
19809     esac
19810   done
19811
19812   # Clean up.
19813   rm -f a.out a.exe
19814 else
19815   echo "libtool.m4: error: problem compiling CXX test program"
19816 fi
19817
19818 $rm -f confest.$objext
19819
19820 # PORTME: override above test on systems where it is broken
19821 case $host_os in
19822 interix3*)
19823   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19824   # hack all around it, let's just trust "g++" to DTRT.
19825   predep_objects_CXX=
19826   postdep_objects_CXX=
19827   postdeps_CXX=
19828   ;;
19829
19830 solaris*)
19831   case $cc_basename in
19832   CC*)
19833     # Adding this requires a known-good setup of shared libraries for
19834     # Sun compiler versions before 5.6, else PIC objects from an old
19835     # archive will be linked into the output, leading to subtle bugs.
19836     postdeps_CXX='-lCstd -lCrun'
19837     ;;
19838   esac
19839   ;;
19840 esac
19841
19842
19843 case " $postdeps_CXX " in
19844 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19845 esac
19846
19847 lt_prog_compiler_wl_CXX=
19848 lt_prog_compiler_pic_CXX=
19849 lt_prog_compiler_static_CXX=
19850
19851 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19852 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19853
19854   # C++ specific cases for pic, static, wl, etc.
19855   if test "$GXX" = yes; then
19856     lt_prog_compiler_wl_CXX='-Wl,'
19857     lt_prog_compiler_static_CXX='-static'
19858
19859     case $host_os in
19860     aix*)
19861       # All AIX code is PIC.
19862       if test "$host_cpu" = ia64; then
19863         # AIX 5 now supports IA64 processor
19864         lt_prog_compiler_static_CXX='-Bstatic'
19865       fi
19866       ;;
19867     amigaos*)
19868       # FIXME: we need at least 68020 code to build shared libraries, but
19869       # adding the `-m68020' flag to GCC prevents building anything better,
19870       # like `-m68040'.
19871       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19872       ;;
19873     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19874       # PIC is the default for these OSes.
19875       ;;
19876     mingw* | os2* | pw32*)
19877       # This hack is so that the source file can tell whether it is being
19878       # built for inclusion in a dll (and should export symbols for example).
19879       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19880       ;;
19881     darwin* | rhapsody*)
19882       # PIC is the default on this platform
19883       # Common symbols not allowed in MH_DYLIB files
19884       lt_prog_compiler_pic_CXX='-fno-common'
19885       ;;
19886     *djgpp*)
19887       # DJGPP does not support shared libraries at all
19888       lt_prog_compiler_pic_CXX=
19889       ;;
19890     interix3*)
19891       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19892       # Instead, we relocate shared libraries at runtime.
19893       ;;
19894     sysv4*MP*)
19895       if test -d /usr/nec; then
19896         lt_prog_compiler_pic_CXX=-Kconform_pic
19897       fi
19898       ;;
19899     hpux*)
19900       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19901       # not for PA HP-UX.
19902       case $host_cpu in
19903       hppa*64*|ia64*)
19904         ;;
19905       *)
19906         lt_prog_compiler_pic_CXX='-fPIC'
19907         ;;
19908       esac
19909       ;;
19910     *)
19911       lt_prog_compiler_pic_CXX='-fPIC'
19912       ;;
19913     esac
19914   else
19915     case $host_os in
19916       aix4* | aix5*)
19917         # All AIX code is PIC.
19918         if test "$host_cpu" = ia64; then
19919           # AIX 5 now supports IA64 processor
19920           lt_prog_compiler_static_CXX='-Bstatic'
19921         else
19922           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19923         fi
19924         ;;
19925       chorus*)
19926         case $cc_basename in
19927         cxch68*)
19928           # Green Hills C++ Compiler
19929           # _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"
19930           ;;
19931         esac
19932         ;;
19933        darwin*)
19934          # PIC is the default on this platform
19935          # Common symbols not allowed in MH_DYLIB files
19936          case $cc_basename in
19937            xlc*)
19938            lt_prog_compiler_pic_CXX='-qnocommon'
19939            lt_prog_compiler_wl_CXX='-Wl,'
19940            ;;
19941          esac
19942        ;;
19943       dgux*)
19944         case $cc_basename in
19945           ec++*)
19946             lt_prog_compiler_pic_CXX='-KPIC'
19947             ;;
19948           ghcx*)
19949             # Green Hills C++ Compiler
19950             lt_prog_compiler_pic_CXX='-pic'
19951             ;;
19952           *)
19953             ;;
19954         esac
19955         ;;
19956       freebsd* | kfreebsd*-gnu | dragonfly*)
19957         # FreeBSD uses GNU C++
19958         ;;
19959       hpux9* | hpux10* | hpux11*)
19960         case $cc_basename in
19961           CC*)
19962             lt_prog_compiler_wl_CXX='-Wl,'
19963             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19964             if test "$host_cpu" != ia64; then
19965               lt_prog_compiler_pic_CXX='+Z'
19966             fi
19967             ;;
19968           aCC*)
19969             lt_prog_compiler_wl_CXX='-Wl,'
19970             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971             case $host_cpu in
19972             hppa*64*|ia64*)
19973               # +Z the default
19974               ;;
19975             *)
19976               lt_prog_compiler_pic_CXX='+Z'
19977               ;;
19978             esac
19979             ;;
19980           *)
19981             ;;
19982         esac
19983         ;;
19984       interix*)
19985         # This is c89, which is MS Visual C++ (no shared libs)
19986         # Anyone wants to do a port?
19987         ;;
19988       irix5* | irix6* | nonstopux*)
19989         case $cc_basename in
19990           CC*)
19991             lt_prog_compiler_wl_CXX='-Wl,'
19992             lt_prog_compiler_static_CXX='-non_shared'
19993             # CC pic flag -KPIC is the default.
19994             ;;
19995           *)
19996             ;;
19997         esac
19998         ;;
19999       linux*)
20000         case $cc_basename in
20001           KCC*)
20002             # KAI C++ Compiler
20003             lt_prog_compiler_wl_CXX='--backend -Wl,'
20004             lt_prog_compiler_pic_CXX='-fPIC'
20005             ;;
20006           icpc* | ecpc*)
20007             # Intel C++
20008             lt_prog_compiler_wl_CXX='-Wl,'
20009             lt_prog_compiler_pic_CXX='-KPIC'
20010             lt_prog_compiler_static_CXX='-static'
20011             ;;
20012           pgCC*)
20013             # Portland Group C++ compiler.
20014             lt_prog_compiler_wl_CXX='-Wl,'
20015             lt_prog_compiler_pic_CXX='-fpic'
20016             lt_prog_compiler_static_CXX='-Bstatic'
20017             ;;
20018           cxx*)
20019             # Compaq C++
20020             # Make sure the PIC flag is empty.  It appears that all Alpha
20021             # Linux and Compaq Tru64 Unix objects are PIC.
20022             lt_prog_compiler_pic_CXX=
20023             lt_prog_compiler_static_CXX='-non_shared'
20024             ;;
20025           *)
20026             ;;
20027         esac
20028         ;;
20029       lynxos*)
20030         ;;
20031       m88k*)
20032         ;;
20033       mvs*)
20034         case $cc_basename in
20035           cxx*)
20036             lt_prog_compiler_pic_CXX='-W c,exportall'
20037             ;;
20038           *)
20039             ;;
20040         esac
20041         ;;
20042       netbsd*)
20043         ;;
20044       osf3* | osf4* | osf5*)
20045         case $cc_basename in
20046           KCC*)
20047             lt_prog_compiler_wl_CXX='--backend -Wl,'
20048             ;;
20049           RCC*)
20050             # Rational C++ 2.4.1
20051             lt_prog_compiler_pic_CXX='-pic'
20052             ;;
20053           cxx*)
20054             # Digital/Compaq C++
20055             lt_prog_compiler_wl_CXX='-Wl,'
20056             # Make sure the PIC flag is empty.  It appears that all Alpha
20057             # Linux and Compaq Tru64 Unix objects are PIC.
20058             lt_prog_compiler_pic_CXX=
20059             lt_prog_compiler_static_CXX='-non_shared'
20060             ;;
20061           *)
20062             ;;
20063         esac
20064         ;;
20065       psos*)
20066         ;;
20067       solaris*)
20068         case $cc_basename in
20069           CC*)
20070             # Sun C++ 4.2, 5.x and Centerline C++
20071             lt_prog_compiler_pic_CXX='-KPIC'
20072             lt_prog_compiler_static_CXX='-Bstatic'
20073             lt_prog_compiler_wl_CXX='-Qoption ld '
20074             ;;
20075           gcx*)
20076             # Green Hills C++ Compiler
20077             lt_prog_compiler_pic_CXX='-PIC'
20078             ;;
20079           *)
20080             ;;
20081         esac
20082         ;;
20083       sunos4*)
20084         case $cc_basename in
20085           CC*)
20086             # Sun C++ 4.x
20087             lt_prog_compiler_pic_CXX='-pic'
20088             lt_prog_compiler_static_CXX='-Bstatic'
20089             ;;
20090           lcc*)
20091             # Lucid
20092             lt_prog_compiler_pic_CXX='-pic'
20093             ;;
20094           *)
20095             ;;
20096         esac
20097         ;;
20098       tandem*)
20099         case $cc_basename in
20100           NCC*)
20101             # NonStop-UX NCC 3.20
20102             lt_prog_compiler_pic_CXX='-KPIC'
20103             ;;
20104           *)
20105             ;;
20106         esac
20107         ;;
20108       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20109         case $cc_basename in
20110           CC*)
20111             lt_prog_compiler_wl_CXX='-Wl,'
20112             lt_prog_compiler_pic_CXX='-KPIC'
20113             lt_prog_compiler_static_CXX='-Bstatic'
20114             ;;
20115         esac
20116         ;;
20117       vxworks*)
20118         ;;
20119       *)
20120         lt_prog_compiler_can_build_shared_CXX=no
20121         ;;
20122     esac
20123   fi
20124
20125 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20126 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20127
20128 #
20129 # Check to make sure the PIC flag actually works.
20130 #
20131 if test -n "$lt_prog_compiler_pic_CXX"; then
20132
20133 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20134 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20135 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   lt_prog_compiler_pic_works_CXX=no
20139   ac_outfile=conftest.$ac_objext
20140    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20142    # Insert the option either (1) after the last *FLAGS variable, or
20143    # (2) before a word containing "conftest.", or (3) at the end.
20144    # Note that $ac_compile itself does not contain backslashes and begins
20145    # with a dollar sign (not a hyphen), so the echo should work correctly.
20146    # The option is referenced via a variable to avoid confusing sed.
20147    lt_compile=`echo "$ac_compile" | $SED \
20148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20150    -e 's:$: $lt_compiler_flag:'`
20151    (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
20152    (eval "$lt_compile" 2>conftest.err)
20153    ac_status=$?
20154    cat conftest.err >&5
20155    echo "$as_me:20155: \$? = $ac_status" >&5
20156    if (exit $ac_status) && test -s "$ac_outfile"; then
20157      # The compiler can only warn and ignore the option if not recognized
20158      # So say no if there are warnings other than the usual output.
20159      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20160      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20161      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20162        lt_prog_compiler_pic_works_CXX=yes
20163      fi
20164    fi
20165    $rm conftest*
20166
20167 fi
20168 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20169 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20170
20171 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20172     case $lt_prog_compiler_pic_CXX in
20173      "" | " "*) ;;
20174      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20175      esac
20176 else
20177     lt_prog_compiler_pic_CXX=
20178      lt_prog_compiler_can_build_shared_CXX=no
20179 fi
20180
20181 fi
20182 case $host_os in
20183   # For platforms which do not support PIC, -DPIC is meaningless:
20184   *djgpp*)
20185     lt_prog_compiler_pic_CXX=
20186     ;;
20187   *)
20188     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20189     ;;
20190 esac
20191
20192 #
20193 # Check to make sure the static flag actually works.
20194 #
20195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20196 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20197 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20198 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   lt_prog_compiler_static_works_CXX=no
20202    save_LDFLAGS="$LDFLAGS"
20203    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20204    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20206      # The linker can only warn and ignore the option if not recognized
20207      # So say no if there are warnings
20208      if test -s conftest.err; then
20209        # Append any errors to the config.log.
20210        cat conftest.err 1>&5
20211        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20212        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20213        if diff conftest.exp conftest.er2 >/dev/null; then
20214          lt_prog_compiler_static_works_CXX=yes
20215        fi
20216      else
20217        lt_prog_compiler_static_works_CXX=yes
20218      fi
20219    fi
20220    $rm conftest*
20221    LDFLAGS="$save_LDFLAGS"
20222
20223 fi
20224 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20225 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20226
20227 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20228     :
20229 else
20230     lt_prog_compiler_static_CXX=
20231 fi
20232
20233
20234 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20235 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20236 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   lt_cv_prog_compiler_c_o_CXX=no
20240    $rm -r conftest 2>/dev/null
20241    mkdir conftest
20242    cd conftest
20243    mkdir out
20244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20245
20246    lt_compiler_flag="-o out/conftest2.$ac_objext"
20247    # Insert the option either (1) after the last *FLAGS variable, or
20248    # (2) before a word containing "conftest.", or (3) at the end.
20249    # Note that $ac_compile itself does not contain backslashes and begins
20250    # with a dollar sign (not a hyphen), so the echo should work correctly.
20251    lt_compile=`echo "$ac_compile" | $SED \
20252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20254    -e 's:$: $lt_compiler_flag:'`
20255    (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
20256    (eval "$lt_compile" 2>out/conftest.err)
20257    ac_status=$?
20258    cat out/conftest.err >&5
20259    echo "$as_me:20259: \$? = $ac_status" >&5
20260    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20261    then
20262      # The compiler can only warn and ignore the option if not recognized
20263      # So say no if there are warnings
20264      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20265      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20266      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20267        lt_cv_prog_compiler_c_o_CXX=yes
20268      fi
20269    fi
20270    chmod u+w . 2>&5
20271    $rm conftest*
20272    # SGI C++ compiler will create directory out/ii_files/ for
20273    # template instantiation
20274    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20275    $rm out/* && rmdir out
20276    cd ..
20277    rmdir conftest
20278    $rm conftest*
20279
20280 fi
20281 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20282 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20283
20284
20285 hard_links="nottested"
20286 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20287   # do not overwrite the value of need_locks provided by the user
20288   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20289 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20290   hard_links=yes
20291   $rm conftest*
20292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20293   touch conftest.a
20294   ln conftest.a conftest.b 2>&5 || hard_links=no
20295   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20296   { echo "$as_me:$LINENO: result: $hard_links" >&5
20297 echo "${ECHO_T}$hard_links" >&6; }
20298   if test "$hard_links" = no; then
20299     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20300 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20301     need_locks=warn
20302   fi
20303 else
20304   need_locks=no
20305 fi
20306
20307 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20309
20310   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311   case $host_os in
20312   aix4* | aix5*)
20313     # If we're using GNU nm, then we don't want the "-C" option.
20314     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20315     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20316       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'
20317     else
20318       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'
20319     fi
20320     ;;
20321   pw32*)
20322     export_symbols_cmds_CXX="$ltdll_cmds"
20323   ;;
20324   cygwin* | mingw*)
20325     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'
20326   ;;
20327   *)
20328     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20329   ;;
20330   esac
20331
20332 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20333 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20334 test "$ld_shlibs_CXX" = no && can_build_shared=no
20335
20336 #
20337 # Do we need to explicitly link libc?
20338 #
20339 case "x$archive_cmds_need_lc_CXX" in
20340 x|xyes)
20341   # Assume -lc should be added
20342   archive_cmds_need_lc_CXX=yes
20343
20344   if test "$enable_shared" = yes && test "$GCC" = yes; then
20345     case $archive_cmds_CXX in
20346     *'~'*)
20347       # FIXME: we may have to deal with multi-command sequences.
20348       ;;
20349     '$CC '*)
20350       # Test whether the compiler implicitly links with -lc since on some
20351       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20352       # to ld, don't add -lc before -lgcc.
20353       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20354 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20355       $rm conftest*
20356       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20357
20358       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359   (eval $ac_compile) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); } 2>conftest.err; then
20363         soname=conftest
20364         lib=conftest
20365         libobjs=conftest.$ac_objext
20366         deplibs=
20367         wl=$lt_prog_compiler_wl_CXX
20368         pic_flag=$lt_prog_compiler_pic_CXX
20369         compiler_flags=-v
20370         linker_flags=-v
20371         verstring=
20372         output_objdir=.
20373         libname=conftest
20374         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20375         allow_undefined_flag_CXX=
20376         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20377   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }
20381         then
20382           archive_cmds_need_lc_CXX=no
20383         else
20384           archive_cmds_need_lc_CXX=yes
20385         fi
20386         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20387       else
20388         cat conftest.err 1>&5
20389       fi
20390       $rm conftest*
20391       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20392 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20393       ;;
20394     esac
20395   fi
20396   ;;
20397 esac
20398
20399 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20401 library_names_spec=
20402 libname_spec='lib$name'
20403 soname_spec=
20404 shrext_cmds=".so"
20405 postinstall_cmds=
20406 postuninstall_cmds=
20407 finish_cmds=
20408 finish_eval=
20409 shlibpath_var=
20410 shlibpath_overrides_runpath=unknown
20411 version_type=none
20412 dynamic_linker="$host_os ld.so"
20413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20414 if test "$GCC" = yes; then
20415   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20416   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20417     # if the path contains ";" then we assume it to be the separator
20418     # otherwise default to the standard path separator (i.e. ":") - it is
20419     # assumed that no part of a normal pathname contains ";" but that should
20420     # okay in the real world where ";" in dirpaths is itself problematic.
20421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422   else
20423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20424   fi
20425 else
20426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20427 fi
20428 need_lib_prefix=unknown
20429 hardcode_into_libs=no
20430
20431 # when you set need_version to no, make sure it does not cause -set_version
20432 # flags to be left without arguments
20433 need_version=unknown
20434
20435 case $host_os in
20436 aix3*)
20437   version_type=linux
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20439   shlibpath_var=LIBPATH
20440
20441   # AIX 3 has no versioning support, so we append a major version to the name.
20442   soname_spec='${libname}${release}${shared_ext}$major'
20443   ;;
20444
20445 aix4* | aix5*)
20446   version_type=linux
20447   need_lib_prefix=no
20448   need_version=no
20449   hardcode_into_libs=yes
20450   if test "$host_cpu" = ia64; then
20451     # AIX 5 supports IA64
20452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20453     shlibpath_var=LD_LIBRARY_PATH
20454   else
20455     # With GCC up to 2.95.x, collect2 would create an import file
20456     # for dependence libraries.  The import file would start with
20457     # the line `#! .'.  This would cause the generated library to
20458     # depend on `.', always an invalid library.  This was fixed in
20459     # development snapshots of GCC prior to 3.0.
20460     case $host_os in
20461       aix4 | aix4.[01] | aix4.[01].*)
20462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20463            echo ' yes '
20464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20465         :
20466       else
20467         can_build_shared=no
20468       fi
20469       ;;
20470     esac
20471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20472     # soname into executable. Probably we can add versioning support to
20473     # collect2, so additional links can be useful in future.
20474     if test "$aix_use_runtimelinking" = yes; then
20475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20476       # instead of lib<name>.a to let people know that these are not
20477       # typical AIX shared libraries.
20478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479     else
20480       # We preserve .a as extension for shared libraries through AIX4.2
20481       # and later when we are not doing run time linking.
20482       library_names_spec='${libname}${release}.a $libname.a'
20483       soname_spec='${libname}${release}${shared_ext}$major'
20484     fi
20485     shlibpath_var=LIBPATH
20486   fi
20487   ;;
20488
20489 amigaos*)
20490   library_names_spec='$libname.ixlibrary $libname.a'
20491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20492   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'
20493   ;;
20494
20495 beos*)
20496   library_names_spec='${libname}${shared_ext}'
20497   dynamic_linker="$host_os ld.so"
20498   shlibpath_var=LIBRARY_PATH
20499   ;;
20500
20501 bsdi[45]*)
20502   version_type=linux
20503   need_version=no
20504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505   soname_spec='${libname}${release}${shared_ext}$major'
20506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20507   shlibpath_var=LD_LIBRARY_PATH
20508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20510   # the default ld.so.conf also contains /usr/contrib/lib and
20511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20512   # libtool to hard-code these into programs
20513   ;;
20514
20515 cygwin* | mingw* | pw32*)
20516   version_type=windows
20517   shrext_cmds=".dll"
20518   need_version=no
20519   need_lib_prefix=no
20520
20521   case $GCC,$host_os in
20522   yes,cygwin* | yes,mingw* | yes,pw32*)
20523     library_names_spec='$libname.dll.a'
20524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20525     postinstall_cmds='base_file=`basename \${file}`~
20526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20527       dldir=$destdir/`dirname \$dlpath`~
20528       test -d \$dldir || mkdir -p \$dldir~
20529       $install_prog $dir/$dlname \$dldir/$dlname~
20530       chmod a+x \$dldir/$dlname'
20531     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532       dlpath=$dir/\$dldll~
20533        $rm \$dlpath'
20534     shlibpath_overrides_runpath=yes
20535
20536     case $host_os in
20537     cygwin*)
20538       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20540       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20541       ;;
20542     mingw*)
20543       # MinGW DLLs use traditional 'lib' prefix
20544       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20546       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20547         # It is most probably a Windows format PATH printed by
20548         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20549         # path with ; separators, and with drive letters. We can handle the
20550         # drive letters (cygwin fileutils understands them), so leave them,
20551         # especially as we might pass files found there to a mingw objdump,
20552         # which wouldn't understand a cygwinified path. Ahh.
20553         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20554       else
20555         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20556       fi
20557       ;;
20558     pw32*)
20559       # pw32 DLLs use 'pw' prefix rather than 'lib'
20560       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561       ;;
20562     esac
20563     ;;
20564
20565   *)
20566     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20567     ;;
20568   esac
20569   dynamic_linker='Win32 ld.exe'
20570   # FIXME: first we should search . and the directory the executable is in
20571   shlibpath_var=PATH
20572   ;;
20573
20574 darwin* | rhapsody*)
20575   dynamic_linker="$host_os dyld"
20576   version_type=darwin
20577   need_lib_prefix=no
20578   need_version=no
20579   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20580   soname_spec='${libname}${release}${major}$shared_ext'
20581   shlibpath_overrides_runpath=yes
20582   shlibpath_var=DYLD_LIBRARY_PATH
20583   shrext_cmds='.dylib'
20584   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20585   if test "$GCC" = yes; then
20586     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"`
20587   else
20588     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20589   fi
20590   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20591   ;;
20592
20593 dgux*)
20594   version_type=linux
20595   need_lib_prefix=no
20596   need_version=no
20597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20598   soname_spec='${libname}${release}${shared_ext}$major'
20599   shlibpath_var=LD_LIBRARY_PATH
20600   ;;
20601
20602 freebsd1*)
20603   dynamic_linker=no
20604   ;;
20605
20606 kfreebsd*-gnu)
20607   version_type=linux
20608   need_lib_prefix=no
20609   need_version=no
20610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611   soname_spec='${libname}${release}${shared_ext}$major'
20612   shlibpath_var=LD_LIBRARY_PATH
20613   shlibpath_overrides_runpath=no
20614   hardcode_into_libs=yes
20615   dynamic_linker='GNU ld.so'
20616   ;;
20617
20618 freebsd* | dragonfly*)
20619   # DragonFly does not have aout.  When/if they implement a new
20620   # versioning mechanism, adjust this.
20621   if test -x /usr/bin/objformat; then
20622     objformat=`/usr/bin/objformat`
20623   else
20624     case $host_os in
20625     freebsd[123]*) objformat=aout ;;
20626     *) objformat=elf ;;
20627     esac
20628   fi
20629   version_type=freebsd-$objformat
20630   case $version_type in
20631     freebsd-elf*)
20632       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20633       need_version=no
20634       need_lib_prefix=no
20635       ;;
20636     freebsd-*)
20637       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20638       need_version=yes
20639       ;;
20640   esac
20641   shlibpath_var=LD_LIBRARY_PATH
20642   case $host_os in
20643   freebsd2*)
20644     shlibpath_overrides_runpath=yes
20645     ;;
20646   freebsd3.[01]* | freebsdelf3.[01]*)
20647     shlibpath_overrides_runpath=yes
20648     hardcode_into_libs=yes
20649     ;;
20650   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20651   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20652     shlibpath_overrides_runpath=no
20653     hardcode_into_libs=yes
20654     ;;
20655   freebsd*) # from 4.6 on
20656     shlibpath_overrides_runpath=yes
20657     hardcode_into_libs=yes
20658     ;;
20659   esac
20660   ;;
20661
20662 gnu*)
20663   version_type=linux
20664   need_lib_prefix=no
20665   need_version=no
20666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20667   soname_spec='${libname}${release}${shared_ext}$major'
20668   shlibpath_var=LD_LIBRARY_PATH
20669   hardcode_into_libs=yes
20670   ;;
20671
20672 hpux9* | hpux10* | hpux11*)
20673   # Give a soname corresponding to the major version so that dld.sl refuses to
20674   # link against other versions.
20675   version_type=sunos
20676   need_lib_prefix=no
20677   need_version=no
20678   case $host_cpu in
20679   ia64*)
20680     shrext_cmds='.so'
20681     hardcode_into_libs=yes
20682     dynamic_linker="$host_os dld.so"
20683     shlibpath_var=LD_LIBRARY_PATH
20684     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686     soname_spec='${libname}${release}${shared_ext}$major'
20687     if test "X$HPUX_IA64_MODE" = X32; then
20688       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20689     else
20690       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20691     fi
20692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20693     ;;
20694    hppa*64*)
20695      shrext_cmds='.sl'
20696      hardcode_into_libs=yes
20697      dynamic_linker="$host_os dld.sl"
20698      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20699      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20700      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701      soname_spec='${libname}${release}${shared_ext}$major'
20702      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20703      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20704      ;;
20705    *)
20706     shrext_cmds='.sl'
20707     dynamic_linker="$host_os dld.sl"
20708     shlibpath_var=SHLIB_PATH
20709     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711     soname_spec='${libname}${release}${shared_ext}$major'
20712     ;;
20713   esac
20714   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20715   postinstall_cmds='chmod 555 $lib'
20716   ;;
20717
20718 interix3*)
20719   version_type=linux
20720   need_lib_prefix=no
20721   need_version=no
20722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20723   soname_spec='${libname}${release}${shared_ext}$major'
20724   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20725   shlibpath_var=LD_LIBRARY_PATH
20726   shlibpath_overrides_runpath=no
20727   hardcode_into_libs=yes
20728   ;;
20729
20730 irix5* | irix6* | nonstopux*)
20731   case $host_os in
20732     nonstopux*) version_type=nonstopux ;;
20733     *)
20734         if test "$lt_cv_prog_gnu_ld" = yes; then
20735                 version_type=linux
20736         else
20737                 version_type=irix
20738         fi ;;
20739   esac
20740   need_lib_prefix=no
20741   need_version=no
20742   soname_spec='${libname}${release}${shared_ext}$major'
20743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20744   case $host_os in
20745   irix5* | nonstopux*)
20746     libsuff= shlibsuff=
20747     ;;
20748   *)
20749     case $LD in # libtool.m4 will add one of these switches to LD
20750     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20751       libsuff= shlibsuff= libmagic=32-bit;;
20752     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20753       libsuff=32 shlibsuff=N32 libmagic=N32;;
20754     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20755       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20756     *) libsuff= shlibsuff= libmagic=never-match;;
20757     esac
20758     ;;
20759   esac
20760   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20761   shlibpath_overrides_runpath=no
20762   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20763   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20764   hardcode_into_libs=yes
20765   ;;
20766
20767 # No shared lib support for Linux oldld, aout, or coff.
20768 linux*oldld* | linux*aout* | linux*coff*)
20769   dynamic_linker=no
20770   ;;
20771
20772 # This must be Linux ELF.
20773 linux*)
20774   version_type=linux
20775   need_lib_prefix=no
20776   need_version=no
20777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778   soname_spec='${libname}${release}${shared_ext}$major'
20779   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20780   shlibpath_var=LD_LIBRARY_PATH
20781   shlibpath_overrides_runpath=no
20782   # This implies no fast_install, which is unacceptable.
20783   # Some rework will be needed to allow for fast_install
20784   # before this can be enabled.
20785   hardcode_into_libs=yes
20786
20787   # Append ld.so.conf contents to the search path
20788   if test -f /etc/ld.so.conf; then
20789     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' ' '`
20790     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20791   fi
20792
20793   # We used to test for /lib/ld.so.1 and disable shared libraries on
20794   # powerpc, because MkLinux only supported shared libraries with the
20795   # GNU dynamic linker.  Since this was broken with cross compilers,
20796   # most powerpc-linux boxes support dynamic linking these days and
20797   # people can always --disable-shared, the test was removed, and we
20798   # assume the GNU/Linux dynamic linker is in use.
20799   dynamic_linker='GNU/Linux ld.so'
20800   ;;
20801
20802 knetbsd*-gnu)
20803   version_type=linux
20804   need_lib_prefix=no
20805   need_version=no
20806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807   soname_spec='${libname}${release}${shared_ext}$major'
20808   shlibpath_var=LD_LIBRARY_PATH
20809   shlibpath_overrides_runpath=no
20810   hardcode_into_libs=yes
20811   dynamic_linker='GNU ld.so'
20812   ;;
20813
20814 netbsd*)
20815   version_type=sunos
20816   need_lib_prefix=no
20817   need_version=no
20818   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821     dynamic_linker='NetBSD (a.out) ld.so'
20822   else
20823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824     soname_spec='${libname}${release}${shared_ext}$major'
20825     dynamic_linker='NetBSD ld.elf_so'
20826   fi
20827   shlibpath_var=LD_LIBRARY_PATH
20828   shlibpath_overrides_runpath=yes
20829   hardcode_into_libs=yes
20830   ;;
20831
20832 newsos6)
20833   version_type=linux
20834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835   shlibpath_var=LD_LIBRARY_PATH
20836   shlibpath_overrides_runpath=yes
20837   ;;
20838
20839 nto-qnx*)
20840   version_type=linux
20841   need_lib_prefix=no
20842   need_version=no
20843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844   soname_spec='${libname}${release}${shared_ext}$major'
20845   shlibpath_var=LD_LIBRARY_PATH
20846   shlibpath_overrides_runpath=yes
20847   ;;
20848
20849 openbsd*)
20850   version_type=sunos
20851   sys_lib_dlsearch_path_spec="/usr/lib"
20852   need_lib_prefix=no
20853   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20854   case $host_os in
20855     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856     *)                         need_version=no  ;;
20857   esac
20858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860   shlibpath_var=LD_LIBRARY_PATH
20861   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862     case $host_os in
20863       openbsd2.[89] | openbsd2.[89].*)
20864         shlibpath_overrides_runpath=no
20865         ;;
20866       *)
20867         shlibpath_overrides_runpath=yes
20868         ;;
20869       esac
20870   else
20871     shlibpath_overrides_runpath=yes
20872   fi
20873   ;;
20874
20875 os2*)
20876   libname_spec='$name'
20877   shrext_cmds=".dll"
20878   need_lib_prefix=no
20879   library_names_spec='$libname${shared_ext} $libname.a'
20880   dynamic_linker='OS/2 ld.exe'
20881   shlibpath_var=LIBPATH
20882   ;;
20883
20884 osf3* | osf4* | osf5*)
20885   version_type=osf
20886   need_lib_prefix=no
20887   need_version=no
20888   soname_spec='${libname}${release}${shared_ext}$major'
20889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890   shlibpath_var=LD_LIBRARY_PATH
20891   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20893   ;;
20894
20895 solaris*)
20896   version_type=linux
20897   need_lib_prefix=no
20898   need_version=no
20899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900   soname_spec='${libname}${release}${shared_ext}$major'
20901   shlibpath_var=LD_LIBRARY_PATH
20902   shlibpath_overrides_runpath=yes
20903   hardcode_into_libs=yes
20904   # ldd complains unless libraries are executable
20905   postinstall_cmds='chmod +x $lib'
20906   ;;
20907
20908 sunos4*)
20909   version_type=sunos
20910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912   shlibpath_var=LD_LIBRARY_PATH
20913   shlibpath_overrides_runpath=yes
20914   if test "$with_gnu_ld" = yes; then
20915     need_lib_prefix=no
20916   fi
20917   need_version=yes
20918   ;;
20919
20920 sysv4 | sysv4.3*)
20921   version_type=linux
20922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923   soname_spec='${libname}${release}${shared_ext}$major'
20924   shlibpath_var=LD_LIBRARY_PATH
20925   case $host_vendor in
20926     sni)
20927       shlibpath_overrides_runpath=no
20928       need_lib_prefix=no
20929       export_dynamic_flag_spec='${wl}-Blargedynsym'
20930       runpath_var=LD_RUN_PATH
20931       ;;
20932     siemens)
20933       need_lib_prefix=no
20934       ;;
20935     motorola)
20936       need_lib_prefix=no
20937       need_version=no
20938       shlibpath_overrides_runpath=no
20939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20940       ;;
20941   esac
20942   ;;
20943
20944 sysv4*MP*)
20945   if test -d /usr/nec ;then
20946     version_type=linux
20947     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948     soname_spec='$libname${shared_ext}.$major'
20949     shlibpath_var=LD_LIBRARY_PATH
20950   fi
20951   ;;
20952
20953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954   version_type=freebsd-elf
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   hardcode_into_libs=yes
20961   if test "$with_gnu_ld" = yes; then
20962     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963     shlibpath_overrides_runpath=no
20964   else
20965     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966     shlibpath_overrides_runpath=yes
20967     case $host_os in
20968       sco3.2v5*)
20969         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20970         ;;
20971     esac
20972   fi
20973   sys_lib_dlsearch_path_spec='/usr/lib'
20974   ;;
20975
20976 uts4*)
20977   version_type=linux
20978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979   soname_spec='${libname}${release}${shared_ext}$major'
20980   shlibpath_var=LD_LIBRARY_PATH
20981   ;;
20982
20983 *)
20984   dynamic_linker=no
20985   ;;
20986 esac
20987 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988 echo "${ECHO_T}$dynamic_linker" >&6; }
20989 test "$dynamic_linker" = no && can_build_shared=no
20990
20991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20992 if test "$GCC" = yes; then
20993   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20994 fi
20995
20996 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20997 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20998 hardcode_action_CXX=
20999 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21000    test -n "$runpath_var_CXX" || \
21001    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21002
21003   # We can hardcode non-existant directories.
21004   if test "$hardcode_direct_CXX" != no &&
21005      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21006      # have to relink, otherwise we might link with an installed library
21007      # when we should be linking with a yet-to-be-installed one
21008      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21009      test "$hardcode_minus_L_CXX" != no; then
21010     # Linking always hardcodes the temporary library directory.
21011     hardcode_action_CXX=relink
21012   else
21013     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21014     hardcode_action_CXX=immediate
21015   fi
21016 else
21017   # We cannot hardcode anything, or else we can only hardcode existing
21018   # directories.
21019   hardcode_action_CXX=unsupported
21020 fi
21021 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21022 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21023
21024 if test "$hardcode_action_CXX" = relink; then
21025   # Fast installation is not supported
21026   enable_fast_install=no
21027 elif test "$shlibpath_overrides_runpath" = yes ||
21028      test "$enable_shared" = no; then
21029   # Fast installation is not necessary
21030   enable_fast_install=needless
21031 fi
21032
21033
21034 # The else clause should only fire when bootstrapping the
21035 # libtool distribution, otherwise you forgot to ship ltmain.sh
21036 # with your package, and you will get complaints that there are
21037 # no rules to generate ltmain.sh.
21038 if test -f "$ltmain"; then
21039   # See if we are running on zsh, and set the options which allow our commands through
21040   # without removal of \ escapes.
21041   if test -n "${ZSH_VERSION+set}" ; then
21042     setopt NO_GLOB_SUBST
21043   fi
21044   # Now quote all the things that may contain metacharacters while being
21045   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21046   # variables and quote the copies for generation of the libtool script.
21047   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21048     SED SHELL STRIP \
21049     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051     deplibs_check_method reload_flag reload_cmds need_locks \
21052     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053     lt_cv_sys_global_symbol_to_c_name_address \
21054     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055     old_postinstall_cmds old_postuninstall_cmds \
21056     compiler_CXX \
21057     CC_CXX \
21058     LD_CXX \
21059     lt_prog_compiler_wl_CXX \
21060     lt_prog_compiler_pic_CXX \
21061     lt_prog_compiler_static_CXX \
21062     lt_prog_compiler_no_builtin_flag_CXX \
21063     export_dynamic_flag_spec_CXX \
21064     thread_safe_flag_spec_CXX \
21065     whole_archive_flag_spec_CXX \
21066     enable_shared_with_static_runtimes_CXX \
21067     old_archive_cmds_CXX \
21068     old_archive_from_new_cmds_CXX \
21069     predep_objects_CXX \
21070     postdep_objects_CXX \
21071     predeps_CXX \
21072     postdeps_CXX \
21073     compiler_lib_search_path_CXX \
21074     archive_cmds_CXX \
21075     archive_expsym_cmds_CXX \
21076     postinstall_cmds_CXX \
21077     postuninstall_cmds_CXX \
21078     old_archive_from_expsyms_cmds_CXX \
21079     allow_undefined_flag_CXX \
21080     no_undefined_flag_CXX \
21081     export_symbols_cmds_CXX \
21082     hardcode_libdir_flag_spec_CXX \
21083     hardcode_libdir_flag_spec_ld_CXX \
21084     hardcode_libdir_separator_CXX \
21085     hardcode_automatic_CXX \
21086     module_cmds_CXX \
21087     module_expsym_cmds_CXX \
21088     lt_cv_prog_compiler_c_o_CXX \
21089     exclude_expsyms_CXX \
21090     include_expsyms_CXX; do
21091
21092     case $var in
21093     old_archive_cmds_CXX | \
21094     old_archive_from_new_cmds_CXX | \
21095     archive_cmds_CXX | \
21096     archive_expsym_cmds_CXX | \
21097     module_cmds_CXX | \
21098     module_expsym_cmds_CXX | \
21099     old_archive_from_expsyms_cmds_CXX | \
21100     export_symbols_cmds_CXX | \
21101     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102     postinstall_cmds | postuninstall_cmds | \
21103     old_postinstall_cmds | old_postuninstall_cmds | \
21104     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105       # Double-quote double-evaled strings.
21106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21107       ;;
21108     *)
21109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21110       ;;
21111     esac
21112   done
21113
21114   case $lt_echo in
21115   *'\$0 --fallback-echo"')
21116     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21117     ;;
21118   esac
21119
21120 cfgfile="$ofile"
21121
21122   cat <<__EOF__ >> "$cfgfile"
21123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21124
21125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21126
21127 # Shell to use when invoking shell scripts.
21128 SHELL=$lt_SHELL
21129
21130 # Whether or not to build shared libraries.
21131 build_libtool_libs=$enable_shared
21132
21133 # Whether or not to build static libraries.
21134 build_old_libs=$enable_static
21135
21136 # Whether or not to add -lc for building shared libraries.
21137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21138
21139 # Whether or not to disallow shared libs when runtime libs are static
21140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21141
21142 # Whether or not to optimize for fast installation.
21143 fast_install=$enable_fast_install
21144
21145 # The host system.
21146 host_alias=$host_alias
21147 host=$host
21148 host_os=$host_os
21149
21150 # The build system.
21151 build_alias=$build_alias
21152 build=$build
21153 build_os=$build_os
21154
21155 # An echo program that does not interpret backslashes.
21156 echo=$lt_echo
21157
21158 # The archiver.
21159 AR=$lt_AR
21160 AR_FLAGS=$lt_AR_FLAGS
21161
21162 # A C compiler.
21163 LTCC=$lt_LTCC
21164
21165 # LTCC compiler flags.
21166 LTCFLAGS=$lt_LTCFLAGS
21167
21168 # A language-specific compiler.
21169 CC=$lt_compiler_CXX
21170
21171 # Is the compiler the GNU C compiler?
21172 with_gcc=$GCC_CXX
21173
21174 # An ERE matcher.
21175 EGREP=$lt_EGREP
21176
21177 # The linker used to build libraries.
21178 LD=$lt_LD_CXX
21179
21180 # Whether we need hard or soft links.
21181 LN_S=$lt_LN_S
21182
21183 # A BSD-compatible nm program.
21184 NM=$lt_NM
21185
21186 # A symbol stripping program
21187 STRIP=$lt_STRIP
21188
21189 # Used to examine libraries when file_magic_cmd begins "file"
21190 MAGIC_CMD=$MAGIC_CMD
21191
21192 # Used on cygwin: DLL creation program.
21193 DLLTOOL="$DLLTOOL"
21194
21195 # Used on cygwin: object dumper.
21196 OBJDUMP="$OBJDUMP"
21197
21198 # Used on cygwin: assembler.
21199 AS="$AS"
21200
21201 # The name of the directory that contains temporary libtool files.
21202 objdir=$objdir
21203
21204 # How to create reloadable object files.
21205 reload_flag=$lt_reload_flag
21206 reload_cmds=$lt_reload_cmds
21207
21208 # How to pass a linker flag through the compiler.
21209 wl=$lt_lt_prog_compiler_wl_CXX
21210
21211 # Object file suffix (normally "o").
21212 objext="$ac_objext"
21213
21214 # Old archive suffix (normally "a").
21215 libext="$libext"
21216
21217 # Shared library suffix (normally ".so").
21218 shrext_cmds='$shrext_cmds'
21219
21220 # Executable file suffix (normally "").
21221 exeext="$exeext"
21222
21223 # Additional compiler flags for building library objects.
21224 pic_flag=$lt_lt_prog_compiler_pic_CXX
21225 pic_mode=$pic_mode
21226
21227 # What is the maximum length of a command?
21228 max_cmd_len=$lt_cv_sys_max_cmd_len
21229
21230 # Does compiler simultaneously support -c and -o options?
21231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21232
21233 # Must we lock files when doing compilation?
21234 need_locks=$lt_need_locks
21235
21236 # Do we need the lib prefix for modules?
21237 need_lib_prefix=$need_lib_prefix
21238
21239 # Do we need a version for libraries?
21240 need_version=$need_version
21241
21242 # Whether dlopen is supported.
21243 dlopen_support=$enable_dlopen
21244
21245 # Whether dlopen of programs is supported.
21246 dlopen_self=$enable_dlopen_self
21247
21248 # Whether dlopen of statically linked programs is supported.
21249 dlopen_self_static=$enable_dlopen_self_static
21250
21251 # Compiler flag to prevent dynamic linking.
21252 link_static_flag=$lt_lt_prog_compiler_static_CXX
21253
21254 # Compiler flag to turn off builtin functions.
21255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21256
21257 # Compiler flag to allow reflexive dlopens.
21258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21259
21260 # Compiler flag to generate shared objects directly from archives.
21261 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21262
21263 # Compiler flag to generate thread-safe objects.
21264 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21265
21266 # Library versioning type.
21267 version_type=$version_type
21268
21269 # Format of library name prefix.
21270 libname_spec=$lt_libname_spec
21271
21272 # List of archive names.  First name is the real one, the rest are links.
21273 # The last name is the one that the linker finds with -lNAME.
21274 library_names_spec=$lt_library_names_spec
21275
21276 # The coded name of the library, if different from the real name.
21277 soname_spec=$lt_soname_spec
21278
21279 # Commands used to build and install an old-style archive.
21280 RANLIB=$lt_RANLIB
21281 old_archive_cmds=$lt_old_archive_cmds_CXX
21282 old_postinstall_cmds=$lt_old_postinstall_cmds
21283 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284
21285 # Create an old-style archive from a shared archive.
21286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21287
21288 # Create a temporary old-style archive to link instead of a shared archive.
21289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21290
21291 # Commands used to build and install a shared archive.
21292 archive_cmds=$lt_archive_cmds_CXX
21293 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21294 postinstall_cmds=$lt_postinstall_cmds
21295 postuninstall_cmds=$lt_postuninstall_cmds
21296
21297 # Commands used to build a loadable module (assumed same as above if empty)
21298 module_cmds=$lt_module_cmds_CXX
21299 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21300
21301 # Commands to strip libraries.
21302 old_striplib=$lt_old_striplib
21303 striplib=$lt_striplib
21304
21305 # Dependencies to place before the objects being linked to create a
21306 # shared library.
21307 predep_objects=$lt_predep_objects_CXX
21308
21309 # Dependencies to place after the objects being linked to create a
21310 # shared library.
21311 postdep_objects=$lt_postdep_objects_CXX
21312
21313 # Dependencies to place before the objects being linked to create a
21314 # shared library.
21315 predeps=$lt_predeps_CXX
21316
21317 # Dependencies to place after the objects being linked to create a
21318 # shared library.
21319 postdeps=$lt_postdeps_CXX
21320
21321 # The library search path used internally by the compiler when linking
21322 # a shared library.
21323 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21324
21325 # Method to check whether dependent libraries are shared objects.
21326 deplibs_check_method=$lt_deplibs_check_method
21327
21328 # Command to use when deplibs_check_method == file_magic.
21329 file_magic_cmd=$lt_file_magic_cmd
21330
21331 # Flag that allows shared libraries with undefined symbols to be built.
21332 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21333
21334 # Flag that forces no undefined symbols.
21335 no_undefined_flag=$lt_no_undefined_flag_CXX
21336
21337 # Commands used to finish a libtool library installation in a directory.
21338 finish_cmds=$lt_finish_cmds
21339
21340 # Same as above, but a single script fragment to be evaled but not shown.
21341 finish_eval=$lt_finish_eval
21342
21343 # Take the output of nm and produce a listing of raw symbols and C names.
21344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21345
21346 # Transform the output of nm in a proper C declaration
21347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21348
21349 # Transform the output of nm in a C name address pair
21350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21351
21352 # This is the shared library runtime path variable.
21353 runpath_var=$runpath_var
21354
21355 # This is the shared library path variable.
21356 shlibpath_var=$shlibpath_var
21357
21358 # Is shlibpath searched before the hard-coded library search path?
21359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21360
21361 # How to hardcode a shared library path into an executable.
21362 hardcode_action=$hardcode_action_CXX
21363
21364 # Whether we should hardcode library paths into libraries.
21365 hardcode_into_libs=$hardcode_into_libs
21366
21367 # Flag to hardcode \$libdir into a binary during linking.
21368 # This must work even if \$libdir does not exist.
21369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21370
21371 # If ld is used when linking, flag to hardcode \$libdir into
21372 # a binary during linking. This must work even if \$libdir does
21373 # not exist.
21374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21375
21376 # Whether we need a single -rpath flag with a separated argument.
21377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21378
21379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21380 # resulting binary.
21381 hardcode_direct=$hardcode_direct_CXX
21382
21383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21384 # resulting binary.
21385 hardcode_minus_L=$hardcode_minus_L_CXX
21386
21387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21388 # the resulting binary.
21389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21390
21391 # Set to yes if building a shared library automatically hardcodes DIR into the library
21392 # and all subsequent libraries and executables linked against it.
21393 hardcode_automatic=$hardcode_automatic_CXX
21394
21395 # Variables whose values should be saved in libtool wrapper scripts and
21396 # restored at relink time.
21397 variables_saved_for_relink="$variables_saved_for_relink"
21398
21399 # Whether libtool must link a program against all its dependency libraries.
21400 link_all_deplibs=$link_all_deplibs_CXX
21401
21402 # Compile-time system search path for libraries
21403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21404
21405 # Run-time system search path for libraries
21406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21407
21408 # Fix the shell variable \$srcfile for the compiler.
21409 fix_srcfile_path="$fix_srcfile_path_CXX"
21410
21411 # Set to yes if exported symbols are required.
21412 always_export_symbols=$always_export_symbols_CXX
21413
21414 # The commands to list exported symbols.
21415 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21416
21417 # The commands to extract the exported symbol list from a shared archive.
21418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419
21420 # Symbols that should not be listed in the preloaded symbols.
21421 exclude_expsyms=$lt_exclude_expsyms_CXX
21422
21423 # Symbols that must always be exported.
21424 include_expsyms=$lt_include_expsyms_CXX
21425
21426 # ### END LIBTOOL TAG CONFIG: $tagname
21427
21428 __EOF__
21429
21430
21431 else
21432   # If there is no Makefile yet, we rely on a make rule to execute
21433   # `config.status --recheck' to rerun these tests and create the
21434   # libtool script then.
21435   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21436   if test -f "$ltmain_in"; then
21437     test -f Makefile && make "$ltmain"
21438   fi
21439 fi
21440
21441
21442 ac_ext=c
21443 ac_cpp='$CPP $CPPFLAGS'
21444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447
21448 CC=$lt_save_CC
21449 LDCXX=$LD
21450 LD=$lt_save_LD
21451 GCC=$lt_save_GCC
21452 with_gnu_ldcxx=$with_gnu_ld
21453 with_gnu_ld=$lt_save_with_gnu_ld
21454 lt_cv_path_LDCXX=$lt_cv_path_LD
21455 lt_cv_path_LD=$lt_save_path_LD
21456 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21457 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21458
21459         else
21460           tagname=""
21461         fi
21462         ;;
21463
21464       F77)
21465         if test -n "$F77" && test "X$F77" != "Xno"; then
21466
21467 ac_ext=f
21468 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21469 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21471
21472
21473 archive_cmds_need_lc_F77=no
21474 allow_undefined_flag_F77=
21475 always_export_symbols_F77=no
21476 archive_expsym_cmds_F77=
21477 export_dynamic_flag_spec_F77=
21478 hardcode_direct_F77=no
21479 hardcode_libdir_flag_spec_F77=
21480 hardcode_libdir_flag_spec_ld_F77=
21481 hardcode_libdir_separator_F77=
21482 hardcode_minus_L_F77=no
21483 hardcode_automatic_F77=no
21484 module_cmds_F77=
21485 module_expsym_cmds_F77=
21486 link_all_deplibs_F77=unknown
21487 old_archive_cmds_F77=$old_archive_cmds
21488 no_undefined_flag_F77=
21489 whole_archive_flag_spec_F77=
21490 enable_shared_with_static_runtimes_F77=no
21491
21492 # Source file extension for f77 test sources.
21493 ac_ext=f
21494
21495 # Object file extension for compiled f77 test sources.
21496 objext=o
21497 objext_F77=$objext
21498
21499 # Code to be used in simple compile tests
21500 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21501
21502 # Code to be used in simple link tests
21503 lt_simple_link_test_code="      program t\n      end\n"
21504
21505 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21506
21507 # If no C compiler was specified, use CC.
21508 LTCC=${LTCC-"$CC"}
21509
21510 # If no C compiler flags were specified, use CFLAGS.
21511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21512
21513 # Allow CC to be a program name with arguments.
21514 compiler=$CC
21515
21516
21517 # save warnings/boilerplate of simple test code
21518 ac_outfile=conftest.$ac_objext
21519 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21520 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521 _lt_compiler_boilerplate=`cat conftest.err`
21522 $rm conftest*
21523
21524 ac_outfile=conftest.$ac_objext
21525 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21526 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21527 _lt_linker_boilerplate=`cat conftest.err`
21528 $rm conftest*
21529
21530
21531 # Allow CC to be a program name with arguments.
21532 lt_save_CC="$CC"
21533 CC=${F77-"f77"}
21534 compiler=$CC
21535 compiler_F77=$CC
21536 for cc_temp in $compiler""; do
21537   case $cc_temp in
21538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21540     \-*) ;;
21541     *) break;;
21542   esac
21543 done
21544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21545
21546
21547 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21548 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21549 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21550 echo "${ECHO_T}$can_build_shared" >&6; }
21551
21552 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21553 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21554 test "$can_build_shared" = "no" && enable_shared=no
21555
21556 # On AIX, shared libraries and static libraries use the same namespace, and
21557 # are all built from PIC.
21558 case $host_os in
21559 aix3*)
21560   test "$enable_shared" = yes && enable_static=no
21561   if test -n "$RANLIB"; then
21562     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21563     postinstall_cmds='$RANLIB $lib'
21564   fi
21565   ;;
21566 aix4* | aix5*)
21567   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21568     test "$enable_shared" = yes && enable_static=no
21569   fi
21570   ;;
21571 esac
21572 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21573 echo "${ECHO_T}$enable_shared" >&6; }
21574
21575 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21576 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21577 # Make sure either enable_shared or enable_static is yes.
21578 test "$enable_shared" = yes || enable_static=yes
21579 { echo "$as_me:$LINENO: result: $enable_static" >&5
21580 echo "${ECHO_T}$enable_static" >&6; }
21581
21582 GCC_F77="$G77"
21583 LD_F77="$LD"
21584
21585 lt_prog_compiler_wl_F77=
21586 lt_prog_compiler_pic_F77=
21587 lt_prog_compiler_static_F77=
21588
21589 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21591
21592   if test "$GCC" = yes; then
21593     lt_prog_compiler_wl_F77='-Wl,'
21594     lt_prog_compiler_static_F77='-static'
21595
21596     case $host_os in
21597       aix*)
21598       # All AIX code is PIC.
21599       if test "$host_cpu" = ia64; then
21600         # AIX 5 now supports IA64 processor
21601         lt_prog_compiler_static_F77='-Bstatic'
21602       fi
21603       ;;
21604
21605     amigaos*)
21606       # FIXME: we need at least 68020 code to build shared libraries, but
21607       # adding the `-m68020' flag to GCC prevents building anything better,
21608       # like `-m68040'.
21609       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21610       ;;
21611
21612     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21613       # PIC is the default for these OSes.
21614       ;;
21615
21616     mingw* | pw32* | os2*)
21617       # This hack is so that the source file can tell whether it is being
21618       # built for inclusion in a dll (and should export symbols for example).
21619       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21620       ;;
21621
21622     darwin* | rhapsody*)
21623       # PIC is the default on this platform
21624       # Common symbols not allowed in MH_DYLIB files
21625       lt_prog_compiler_pic_F77='-fno-common'
21626       ;;
21627
21628     interix3*)
21629       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21630       # Instead, we relocate shared libraries at runtime.
21631       ;;
21632
21633     msdosdjgpp*)
21634       # Just because we use GCC doesn't mean we suddenly get shared libraries
21635       # on systems that don't support them.
21636       lt_prog_compiler_can_build_shared_F77=no
21637       enable_shared=no
21638       ;;
21639
21640     sysv4*MP*)
21641       if test -d /usr/nec; then
21642         lt_prog_compiler_pic_F77=-Kconform_pic
21643       fi
21644       ;;
21645
21646     hpux*)
21647       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21648       # not for PA HP-UX.
21649       case $host_cpu in
21650       hppa*64*|ia64*)
21651         # +Z the default
21652         ;;
21653       *)
21654         lt_prog_compiler_pic_F77='-fPIC'
21655         ;;
21656       esac
21657       ;;
21658
21659     *)
21660       lt_prog_compiler_pic_F77='-fPIC'
21661       ;;
21662     esac
21663   else
21664     # PORTME Check for flag to pass linker flags through the system compiler.
21665     case $host_os in
21666     aix*)
21667       lt_prog_compiler_wl_F77='-Wl,'
21668       if test "$host_cpu" = ia64; then
21669         # AIX 5 now supports IA64 processor
21670         lt_prog_compiler_static_F77='-Bstatic'
21671       else
21672         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21673       fi
21674       ;;
21675       darwin*)
21676         # PIC is the default on this platform
21677         # Common symbols not allowed in MH_DYLIB files
21678        case $cc_basename in
21679          xlc*)
21680          lt_prog_compiler_pic_F77='-qnocommon'
21681          lt_prog_compiler_wl_F77='-Wl,'
21682          ;;
21683        esac
21684        ;;
21685
21686     mingw* | pw32* | os2*)
21687       # This hack is so that the source file can tell whether it is being
21688       # built for inclusion in a dll (and should export symbols for example).
21689       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21690       ;;
21691
21692     hpux9* | hpux10* | hpux11*)
21693       lt_prog_compiler_wl_F77='-Wl,'
21694       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21695       # not for PA HP-UX.
21696       case $host_cpu in
21697       hppa*64*|ia64*)
21698         # +Z the default
21699         ;;
21700       *)
21701         lt_prog_compiler_pic_F77='+Z'
21702         ;;
21703       esac
21704       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21705       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21706       ;;
21707
21708     irix5* | irix6* | nonstopux*)
21709       lt_prog_compiler_wl_F77='-Wl,'
21710       # PIC (with -KPIC) is the default.
21711       lt_prog_compiler_static_F77='-non_shared'
21712       ;;
21713
21714     newsos6)
21715       lt_prog_compiler_pic_F77='-KPIC'
21716       lt_prog_compiler_static_F77='-Bstatic'
21717       ;;
21718
21719     linux*)
21720       case $cc_basename in
21721       icc* | ecc*)
21722         lt_prog_compiler_wl_F77='-Wl,'
21723         lt_prog_compiler_pic_F77='-KPIC'
21724         lt_prog_compiler_static_F77='-static'
21725         ;;
21726       pgcc* | pgf77* | pgf90* | pgf95*)
21727         # Portland Group compilers (*not* the Pentium gcc compiler,
21728         # which looks to be a dead project)
21729         lt_prog_compiler_wl_F77='-Wl,'
21730         lt_prog_compiler_pic_F77='-fpic'
21731         lt_prog_compiler_static_F77='-Bstatic'
21732         ;;
21733       ccc*)
21734         lt_prog_compiler_wl_F77='-Wl,'
21735         # All Alpha code is PIC.
21736         lt_prog_compiler_static_F77='-non_shared'
21737         ;;
21738       esac
21739       ;;
21740
21741     osf3* | osf4* | osf5*)
21742       lt_prog_compiler_wl_F77='-Wl,'
21743       # All OSF/1 code is PIC.
21744       lt_prog_compiler_static_F77='-non_shared'
21745       ;;
21746
21747     solaris*)
21748       lt_prog_compiler_pic_F77='-KPIC'
21749       lt_prog_compiler_static_F77='-Bstatic'
21750       case $cc_basename in
21751       f77* | f90* | f95*)
21752         lt_prog_compiler_wl_F77='-Qoption ld ';;
21753       *)
21754         lt_prog_compiler_wl_F77='-Wl,';;
21755       esac
21756       ;;
21757
21758     sunos4*)
21759       lt_prog_compiler_wl_F77='-Qoption ld '
21760       lt_prog_compiler_pic_F77='-PIC'
21761       lt_prog_compiler_static_F77='-Bstatic'
21762       ;;
21763
21764     sysv4 | sysv4.2uw2* | sysv4.3*)
21765       lt_prog_compiler_wl_F77='-Wl,'
21766       lt_prog_compiler_pic_F77='-KPIC'
21767       lt_prog_compiler_static_F77='-Bstatic'
21768       ;;
21769
21770     sysv4*MP*)
21771       if test -d /usr/nec ;then
21772         lt_prog_compiler_pic_F77='-Kconform_pic'
21773         lt_prog_compiler_static_F77='-Bstatic'
21774       fi
21775       ;;
21776
21777     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21778       lt_prog_compiler_wl_F77='-Wl,'
21779       lt_prog_compiler_pic_F77='-KPIC'
21780       lt_prog_compiler_static_F77='-Bstatic'
21781       ;;
21782
21783     unicos*)
21784       lt_prog_compiler_wl_F77='-Wl,'
21785       lt_prog_compiler_can_build_shared_F77=no
21786       ;;
21787
21788     uts4*)
21789       lt_prog_compiler_pic_F77='-pic'
21790       lt_prog_compiler_static_F77='-Bstatic'
21791       ;;
21792
21793     *)
21794       lt_prog_compiler_can_build_shared_F77=no
21795       ;;
21796     esac
21797   fi
21798
21799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21800 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21801
21802 #
21803 # Check to make sure the PIC flag actually works.
21804 #
21805 if test -n "$lt_prog_compiler_pic_F77"; then
21806
21807 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21808 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21809 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   lt_prog_compiler_pic_works_F77=no
21813   ac_outfile=conftest.$ac_objext
21814    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21816    # Insert the option either (1) after the last *FLAGS variable, or
21817    # (2) before a word containing "conftest.", or (3) at the end.
21818    # Note that $ac_compile itself does not contain backslashes and begins
21819    # with a dollar sign (not a hyphen), so the echo should work correctly.
21820    # The option is referenced via a variable to avoid confusing sed.
21821    lt_compile=`echo "$ac_compile" | $SED \
21822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21824    -e 's:$: $lt_compiler_flag:'`
21825    (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
21826    (eval "$lt_compile" 2>conftest.err)
21827    ac_status=$?
21828    cat conftest.err >&5
21829    echo "$as_me:21829: \$? = $ac_status" >&5
21830    if (exit $ac_status) && test -s "$ac_outfile"; then
21831      # The compiler can only warn and ignore the option if not recognized
21832      # So say no if there are warnings other than the usual output.
21833      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21834      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21835      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21836        lt_prog_compiler_pic_works_F77=yes
21837      fi
21838    fi
21839    $rm conftest*
21840
21841 fi
21842 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21843 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21844
21845 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21846     case $lt_prog_compiler_pic_F77 in
21847      "" | " "*) ;;
21848      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21849      esac
21850 else
21851     lt_prog_compiler_pic_F77=
21852      lt_prog_compiler_can_build_shared_F77=no
21853 fi
21854
21855 fi
21856 case $host_os in
21857   # For platforms which do not support PIC, -DPIC is meaningless:
21858   *djgpp*)
21859     lt_prog_compiler_pic_F77=
21860     ;;
21861   *)
21862     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21863     ;;
21864 esac
21865
21866 #
21867 # Check to make sure the static flag actually works.
21868 #
21869 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21870 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21871 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21872 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21873   echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875   lt_prog_compiler_static_works_F77=no
21876    save_LDFLAGS="$LDFLAGS"
21877    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21878    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21879    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21880      # The linker can only warn and ignore the option if not recognized
21881      # So say no if there are warnings
21882      if test -s conftest.err; then
21883        # Append any errors to the config.log.
21884        cat conftest.err 1>&5
21885        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21886        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21887        if diff conftest.exp conftest.er2 >/dev/null; then
21888          lt_prog_compiler_static_works_F77=yes
21889        fi
21890      else
21891        lt_prog_compiler_static_works_F77=yes
21892      fi
21893    fi
21894    $rm conftest*
21895    LDFLAGS="$save_LDFLAGS"
21896
21897 fi
21898 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21899 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21900
21901 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21902     :
21903 else
21904     lt_prog_compiler_static_F77=
21905 fi
21906
21907
21908 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21909 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21910 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21911   echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913   lt_cv_prog_compiler_c_o_F77=no
21914    $rm -r conftest 2>/dev/null
21915    mkdir conftest
21916    cd conftest
21917    mkdir out
21918    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21919
21920    lt_compiler_flag="-o out/conftest2.$ac_objext"
21921    # Insert the option either (1) after the last *FLAGS variable, or
21922    # (2) before a word containing "conftest.", or (3) at the end.
21923    # Note that $ac_compile itself does not contain backslashes and begins
21924    # with a dollar sign (not a hyphen), so the echo should work correctly.
21925    lt_compile=`echo "$ac_compile" | $SED \
21926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21928    -e 's:$: $lt_compiler_flag:'`
21929    (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
21930    (eval "$lt_compile" 2>out/conftest.err)
21931    ac_status=$?
21932    cat out/conftest.err >&5
21933    echo "$as_me:21933: \$? = $ac_status" >&5
21934    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21935    then
21936      # The compiler can only warn and ignore the option if not recognized
21937      # So say no if there are warnings
21938      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21939      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21940      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21941        lt_cv_prog_compiler_c_o_F77=yes
21942      fi
21943    fi
21944    chmod u+w . 2>&5
21945    $rm conftest*
21946    # SGI C++ compiler will create directory out/ii_files/ for
21947    # template instantiation
21948    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21949    $rm out/* && rmdir out
21950    cd ..
21951    rmdir conftest
21952    $rm conftest*
21953
21954 fi
21955 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21956 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21957
21958
21959 hard_links="nottested"
21960 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21961   # do not overwrite the value of need_locks provided by the user
21962   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21963 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21964   hard_links=yes
21965   $rm conftest*
21966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21967   touch conftest.a
21968   ln conftest.a conftest.b 2>&5 || hard_links=no
21969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21970   { echo "$as_me:$LINENO: result: $hard_links" >&5
21971 echo "${ECHO_T}$hard_links" >&6; }
21972   if test "$hard_links" = no; then
21973     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21974 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21975     need_locks=warn
21976   fi
21977 else
21978   need_locks=no
21979 fi
21980
21981 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21982 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21983
21984   runpath_var=
21985   allow_undefined_flag_F77=
21986   enable_shared_with_static_runtimes_F77=no
21987   archive_cmds_F77=
21988   archive_expsym_cmds_F77=
21989   old_archive_From_new_cmds_F77=
21990   old_archive_from_expsyms_cmds_F77=
21991   export_dynamic_flag_spec_F77=
21992   whole_archive_flag_spec_F77=
21993   thread_safe_flag_spec_F77=
21994   hardcode_libdir_flag_spec_F77=
21995   hardcode_libdir_flag_spec_ld_F77=
21996   hardcode_libdir_separator_F77=
21997   hardcode_direct_F77=no
21998   hardcode_minus_L_F77=no
21999   hardcode_shlibpath_var_F77=unsupported
22000   link_all_deplibs_F77=unknown
22001   hardcode_automatic_F77=no
22002   module_cmds_F77=
22003   module_expsym_cmds_F77=
22004   always_export_symbols_F77=no
22005   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22006   # include_expsyms should be a list of space-separated symbols to be *always*
22007   # included in the symbol list
22008   include_expsyms_F77=
22009   # exclude_expsyms can be an extended regexp of symbols to exclude
22010   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22011   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22012   # as well as any symbol that contains `d'.
22013   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22014   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22015   # platforms (ab)use it in PIC code, but their linkers get confused if
22016   # the symbol is explicitly referenced.  Since portable code cannot
22017   # rely on this symbol name, it's probably fine to never include it in
22018   # preloaded symbol tables.
22019   extract_expsyms_cmds=
22020   # Just being paranoid about ensuring that cc_basename is set.
22021   for cc_temp in $compiler""; do
22022   case $cc_temp in
22023     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22024     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22025     \-*) ;;
22026     *) break;;
22027   esac
22028 done
22029 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22030
22031   case $host_os in
22032   cygwin* | mingw* | pw32*)
22033     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22034     # When not using gcc, we currently assume that we are using
22035     # Microsoft Visual C++.
22036     if test "$GCC" != yes; then
22037       with_gnu_ld=no
22038     fi
22039     ;;
22040   interix*)
22041     # we just hope/assume this is gcc and not c89 (= MSVC++)
22042     with_gnu_ld=yes
22043     ;;
22044   openbsd*)
22045     with_gnu_ld=no
22046     ;;
22047   esac
22048
22049   ld_shlibs_F77=yes
22050   if test "$with_gnu_ld" = yes; then
22051     # If archive_cmds runs LD, not CC, wlarc should be empty
22052     wlarc='${wl}'
22053
22054     # Set some defaults for GNU ld with shared library support. These
22055     # are reset later if shared libraries are not supported. Putting them
22056     # here allows them to be overridden if necessary.
22057     runpath_var=LD_RUN_PATH
22058     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22059     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22060     # ancient GNU ld didn't support --whole-archive et. al.
22061     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22062         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22063       else
22064         whole_archive_flag_spec_F77=
22065     fi
22066     supports_anon_versioning=no
22067     case `$LD -v 2>/dev/null` in
22068       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22069       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22070       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22071       *\ 2.11.*) ;; # other 2.11 versions
22072       *) supports_anon_versioning=yes ;;
22073     esac
22074
22075     # See if GNU ld supports shared libraries.
22076     case $host_os in
22077     aix3* | aix4* | aix5*)
22078       # On AIX/PPC, the GNU linker is very broken
22079       if test "$host_cpu" != ia64; then
22080         ld_shlibs_F77=no
22081         cat <<EOF 1>&2
22082
22083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22084 *** to be unable to reliably create shared libraries on AIX.
22085 *** Therefore, libtool is disabling shared libraries support.  If you
22086 *** really care for shared libraries, you may want to modify your PATH
22087 *** so that a non-GNU linker is found, and then restart.
22088
22089 EOF
22090       fi
22091       ;;
22092
22093     amigaos*)
22094       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)'
22095       hardcode_libdir_flag_spec_F77='-L$libdir'
22096       hardcode_minus_L_F77=yes
22097
22098       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22099       # that the semantics of dynamic libraries on AmigaOS, at least up
22100       # to version 4, is to share data among multiple programs linked
22101       # with the same dynamic library.  Since this doesn't match the
22102       # behavior of shared libraries on other platforms, we can't use
22103       # them.
22104       ld_shlibs_F77=no
22105       ;;
22106
22107     beos*)
22108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109         allow_undefined_flag_F77=unsupported
22110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22111         # support --undefined.  This deserves some investigation.  FIXME
22112         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22113       else
22114         ld_shlibs_F77=no
22115       fi
22116       ;;
22117
22118     cygwin* | mingw* | pw32*)
22119       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22120       # as there is no search path for DLLs.
22121       hardcode_libdir_flag_spec_F77='-L$libdir'
22122       allow_undefined_flag_F77=unsupported
22123       always_export_symbols_F77=no
22124       enable_shared_with_static_runtimes_F77=yes
22125       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22126
22127       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22128         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22129         # If the export-symbols file already is a .def file (1st line
22130         # is EXPORTS), use it as is; otherwise, prepend...
22131         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22132           cp $export_symbols $output_objdir/$soname.def;
22133         else
22134           echo EXPORTS > $output_objdir/$soname.def;
22135           cat $export_symbols >> $output_objdir/$soname.def;
22136         fi~
22137         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22138       else
22139         ld_shlibs_F77=no
22140       fi
22141       ;;
22142
22143     interix3*)
22144       hardcode_direct_F77=no
22145       hardcode_shlibpath_var_F77=no
22146       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147       export_dynamic_flag_spec_F77='${wl}-E'
22148       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22149       # Instead, shared libraries are loaded at an image base (0x10000000 by
22150       # default) and relocated if they conflict, which is a slow very memory
22151       # consuming and fragmenting process.  To avoid this, we pick a random,
22152       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22153       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22154       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'
22155       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'
22156       ;;
22157
22158     linux*)
22159       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22160         tmp_addflag=
22161         case $cc_basename,$host_cpu in
22162         pgcc*)                          # Portland Group C compiler
22163           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'
22164           tmp_addflag=' $pic_flag'
22165           ;;
22166         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22167           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'
22168           tmp_addflag=' $pic_flag -Mnomain' ;;
22169         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22170           tmp_addflag=' -i_dynamic' ;;
22171         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22172           tmp_addflag=' -i_dynamic -nofor_main' ;;
22173         ifc* | ifort*)                  # Intel Fortran compiler
22174           tmp_addflag=' -nofor_main' ;;
22175         esac
22176         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177
22178         if test $supports_anon_versioning = yes; then
22179           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22180   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22181   $echo "local: *; };" >> $output_objdir/$libname.ver~
22182           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22183         fi
22184       else
22185         ld_shlibs_F77=no
22186       fi
22187       ;;
22188
22189     netbsd*)
22190       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22191         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22192         wlarc=
22193       else
22194         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22195         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22196       fi
22197       ;;
22198
22199     solaris*)
22200       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22201         ld_shlibs_F77=no
22202         cat <<EOF 1>&2
22203
22204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22205 *** create shared libraries on Solaris systems.  Therefore, libtool
22206 *** is disabling shared libraries support.  We urge you to upgrade GNU
22207 *** binutils to release 2.9.1 or newer.  Another option is to modify
22208 *** your PATH or compiler configuration so that the native linker is
22209 *** used, and then restart.
22210
22211 EOF
22212       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22213         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22214         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22215       else
22216         ld_shlibs_F77=no
22217       fi
22218       ;;
22219
22220     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22221       case `$LD -v 2>&1` in
22222         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22223         ld_shlibs_F77=no
22224         cat <<_LT_EOF 1>&2
22225
22226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22227 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22228 *** is disabling shared libraries support.  We urge you to upgrade GNU
22229 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22230 *** your PATH or compiler configuration so that the native linker is
22231 *** used, and then restart.
22232
22233 _LT_EOF
22234         ;;
22235         *)
22236           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22237             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22238             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22239             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22240           else
22241             ld_shlibs_F77=no
22242           fi
22243         ;;
22244       esac
22245       ;;
22246
22247     sunos4*)
22248       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22249       wlarc=
22250       hardcode_direct_F77=yes
22251       hardcode_shlibpath_var_F77=no
22252       ;;
22253
22254     *)
22255       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22256         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22257         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22258       else
22259         ld_shlibs_F77=no
22260       fi
22261       ;;
22262     esac
22263
22264     if test "$ld_shlibs_F77" = no; then
22265       runpath_var=
22266       hardcode_libdir_flag_spec_F77=
22267       export_dynamic_flag_spec_F77=
22268       whole_archive_flag_spec_F77=
22269     fi
22270   else
22271     # PORTME fill in a description of your system's linker (not GNU ld)
22272     case $host_os in
22273     aix3*)
22274       allow_undefined_flag_F77=unsupported
22275       always_export_symbols_F77=yes
22276       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'
22277       # Note: this linker hardcodes the directories in LIBPATH if there
22278       # are no directories specified by -L.
22279       hardcode_minus_L_F77=yes
22280       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22281         # Neither direct hardcoding nor static linking is supported with a
22282         # broken collect2.
22283         hardcode_direct_F77=unsupported
22284       fi
22285       ;;
22286
22287     aix4* | aix5*)
22288       if test "$host_cpu" = ia64; then
22289         # On IA64, the linker does run time linking by default, so we don't
22290         # have to do anything special.
22291         aix_use_runtimelinking=no
22292         exp_sym_flag='-Bexport'
22293         no_entry_flag=""
22294       else
22295         # If we're using GNU nm, then we don't want the "-C" option.
22296         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22297         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22298           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'
22299         else
22300           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'
22301         fi
22302         aix_use_runtimelinking=no
22303
22304         # Test if we are trying to use run time linking or normal
22305         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22306         # need to do runtime linking.
22307         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22308           for ld_flag in $LDFLAGS; do
22309           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22310             aix_use_runtimelinking=yes
22311             break
22312           fi
22313           done
22314           ;;
22315         esac
22316
22317         exp_sym_flag='-bexport'
22318         no_entry_flag='-bnoentry'
22319       fi
22320
22321       # When large executables or shared objects are built, AIX ld can
22322       # have problems creating the table of contents.  If linking a library
22323       # or program results in "error TOC overflow" add -mminimal-toc to
22324       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22325       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22326
22327       archive_cmds_F77=''
22328       hardcode_direct_F77=yes
22329       hardcode_libdir_separator_F77=':'
22330       link_all_deplibs_F77=yes
22331
22332       if test "$GCC" = yes; then
22333         case $host_os in aix4.[012]|aix4.[012].*)
22334         # We only want to do this on AIX 4.2 and lower, the check
22335         # below for broken collect2 doesn't work under 4.3+
22336           collect2name=`${CC} -print-prog-name=collect2`
22337           if test -f "$collect2name" && \
22338            strings "$collect2name" | grep resolve_lib_name >/dev/null
22339           then
22340           # We have reworked collect2
22341           hardcode_direct_F77=yes
22342           else
22343           # We have old collect2
22344           hardcode_direct_F77=unsupported
22345           # It fails to find uninstalled libraries when the uninstalled
22346           # path is not listed in the libpath.  Setting hardcode_minus_L
22347           # to unsupported forces relinking
22348           hardcode_minus_L_F77=yes
22349           hardcode_libdir_flag_spec_F77='-L$libdir'
22350           hardcode_libdir_separator_F77=
22351           fi
22352           ;;
22353         esac
22354         shared_flag='-shared'
22355         if test "$aix_use_runtimelinking" = yes; then
22356           shared_flag="$shared_flag "'${wl}-G'
22357         fi
22358       else
22359         # not using gcc
22360         if test "$host_cpu" = ia64; then
22361         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22362         # chokes on -Wl,-G. The following line is correct:
22363           shared_flag='-G'
22364         else
22365           if test "$aix_use_runtimelinking" = yes; then
22366             shared_flag='${wl}-G'
22367           else
22368             shared_flag='${wl}-bM:SRE'
22369           fi
22370         fi
22371       fi
22372
22373       # It seems that -bexpall does not export symbols beginning with
22374       # underscore (_), so it is better to generate a list of symbols to export.
22375       always_export_symbols_F77=yes
22376       if test "$aix_use_runtimelinking" = yes; then
22377         # Warning - without using the other runtime loading flags (-brtl),
22378         # -berok will link without error, but may produce a broken library.
22379         allow_undefined_flag_F77='-berok'
22380        # Determine the default libpath from the value encoded in an empty executable.
22381        cat >conftest.$ac_ext <<_ACEOF
22382       program main
22383
22384       end
22385 _ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_link") 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } &&
22400          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401   { (case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_try") 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; } &&
22410          { ac_try='test -s conftest$ac_exeext'
22411   { (case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_try") 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420
22421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22422 }'`
22423 # Check for a 64-bit object if we didn't find anything.
22424 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; }
22425 }'`; fi
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431 fi
22432
22433 rm -f core conftest.err conftest.$ac_objext \
22434       conftest$ac_exeext conftest.$ac_ext
22435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22438         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"
22439        else
22440         if test "$host_cpu" = ia64; then
22441           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22442           allow_undefined_flag_F77="-z nodefs"
22443           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"
22444         else
22445          # Determine the default libpath from the value encoded in an empty executable.
22446          cat >conftest.$ac_ext <<_ACEOF
22447       program main
22448
22449       end
22450 _ACEOF
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_link") 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } &&
22465          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22466   { (case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_try") 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; } &&
22475          { ac_try='test -s conftest$ac_exeext'
22476   { (case "(($ac_try" in
22477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478   *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481   (eval "$ac_try") 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; }; then
22485
22486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22487 }'`
22488 # Check for a 64-bit object if we didn't find anything.
22489 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; }
22490 }'`; fi
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495
22496 fi
22497
22498 rm -f core conftest.err conftest.$ac_objext \
22499       conftest$ac_exeext conftest.$ac_ext
22500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22501
22502          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22503           # Warning - without using the other run time loading flags,
22504           # -berok will link without error, but may produce a broken library.
22505           no_undefined_flag_F77=' ${wl}-bernotok'
22506           allow_undefined_flag_F77=' ${wl}-berok'
22507           # Exported symbols can be pulled into shared objects from archives
22508           whole_archive_flag_spec_F77='$convenience'
22509           archive_cmds_need_lc_F77=yes
22510           # This is similar to how AIX traditionally builds its shared libraries.
22511           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'
22512         fi
22513       fi
22514       ;;
22515
22516     amigaos*)
22517       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)'
22518       hardcode_libdir_flag_spec_F77='-L$libdir'
22519       hardcode_minus_L_F77=yes
22520       # see comment about different semantics on the GNU ld section
22521       ld_shlibs_F77=no
22522       ;;
22523
22524     bsdi[45]*)
22525       export_dynamic_flag_spec_F77=-rdynamic
22526       ;;
22527
22528     cygwin* | mingw* | pw32*)
22529       # When not using gcc, we currently assume that we are using
22530       # Microsoft Visual C++.
22531       # hardcode_libdir_flag_spec is actually meaningless, as there is
22532       # no search path for DLLs.
22533       hardcode_libdir_flag_spec_F77=' '
22534       allow_undefined_flag_F77=unsupported
22535       # Tell ltmain to make .lib files, not .a files.
22536       libext=lib
22537       # Tell ltmain to make .dll files, not .so files.
22538       shrext_cmds=".dll"
22539       # FIXME: Setting linknames here is a bad hack.
22540       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22541       # The linker will automatically build a .lib file if we build a DLL.
22542       old_archive_From_new_cmds_F77='true'
22543       # FIXME: Should let the user specify the lib program.
22544       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22545       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22546       enable_shared_with_static_runtimes_F77=yes
22547       ;;
22548
22549     darwin* | rhapsody*)
22550       case $host_os in
22551         rhapsody* | darwin1.[012])
22552          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22553          ;;
22554        *) # Darwin 1.3 on
22555          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22556            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22557          else
22558            case ${MACOSX_DEPLOYMENT_TARGET} in
22559              10.[012])
22560                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22561                ;;
22562              10.*)
22563                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22564                ;;
22565            esac
22566          fi
22567          ;;
22568       esac
22569       archive_cmds_need_lc_F77=no
22570       hardcode_direct_F77=no
22571       hardcode_automatic_F77=yes
22572       hardcode_shlibpath_var_F77=unsupported
22573       whole_archive_flag_spec_F77=''
22574       link_all_deplibs_F77=yes
22575     if test "$GCC" = yes ; then
22576         output_verbose_link_cmd='echo'
22577         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22578       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22579       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22580       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}'
22581       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}'
22582     else
22583       case $cc_basename in
22584         xlc*)
22585          output_verbose_link_cmd='echo'
22586          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22587          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22588           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22589          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}'
22590           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}'
22591           ;;
22592        *)
22593          ld_shlibs_F77=no
22594           ;;
22595       esac
22596     fi
22597       ;;
22598
22599     dgux*)
22600       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601       hardcode_libdir_flag_spec_F77='-L$libdir'
22602       hardcode_shlibpath_var_F77=no
22603       ;;
22604
22605     freebsd1*)
22606       ld_shlibs_F77=no
22607       ;;
22608
22609     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22610     # support.  Future versions do this automatically, but an explicit c++rt0.o
22611     # does not break anything, and helps significantly (at the cost of a little
22612     # extra space).
22613     freebsd2.2*)
22614       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22615       hardcode_libdir_flag_spec_F77='-R$libdir'
22616       hardcode_direct_F77=yes
22617       hardcode_shlibpath_var_F77=no
22618       ;;
22619
22620     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22621     freebsd2*)
22622       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22623       hardcode_direct_F77=yes
22624       hardcode_minus_L_F77=yes
22625       hardcode_shlibpath_var_F77=no
22626       ;;
22627
22628     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22629     freebsd* | kfreebsd*-gnu | dragonfly*)
22630       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22631       hardcode_libdir_flag_spec_F77='-R$libdir'
22632       hardcode_direct_F77=yes
22633       hardcode_shlibpath_var_F77=no
22634       ;;
22635
22636     hpux9*)
22637       if test "$GCC" = yes; then
22638         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'
22639       else
22640         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'
22641       fi
22642       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22643       hardcode_libdir_separator_F77=:
22644       hardcode_direct_F77=yes
22645
22646       # hardcode_minus_L: Not really in the search PATH,
22647       # but as the default location of the library.
22648       hardcode_minus_L_F77=yes
22649       export_dynamic_flag_spec_F77='${wl}-E'
22650       ;;
22651
22652     hpux10*)
22653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22654         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22655       else
22656         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22657       fi
22658       if test "$with_gnu_ld" = no; then
22659         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22660         hardcode_libdir_separator_F77=:
22661
22662         hardcode_direct_F77=yes
22663         export_dynamic_flag_spec_F77='${wl}-E'
22664
22665         # hardcode_minus_L: Not really in the search PATH,
22666         # but as the default location of the library.
22667         hardcode_minus_L_F77=yes
22668       fi
22669       ;;
22670
22671     hpux11*)
22672       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22673         case $host_cpu in
22674         hppa*64*)
22675           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22676           ;;
22677         ia64*)
22678           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22679           ;;
22680         *)
22681           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22682           ;;
22683         esac
22684       else
22685         case $host_cpu in
22686         hppa*64*)
22687           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22688           ;;
22689         ia64*)
22690           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22691           ;;
22692         *)
22693           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22694           ;;
22695         esac
22696       fi
22697       if test "$with_gnu_ld" = no; then
22698         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22699         hardcode_libdir_separator_F77=:
22700
22701         case $host_cpu in
22702         hppa*64*|ia64*)
22703           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22704           hardcode_direct_F77=no
22705           hardcode_shlibpath_var_F77=no
22706           ;;
22707         *)
22708           hardcode_direct_F77=yes
22709           export_dynamic_flag_spec_F77='${wl}-E'
22710
22711           # hardcode_minus_L: Not really in the search PATH,
22712           # but as the default location of the library.
22713           hardcode_minus_L_F77=yes
22714           ;;
22715         esac
22716       fi
22717       ;;
22718
22719     irix5* | irix6* | nonstopux*)
22720       if test "$GCC" = yes; then
22721         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'
22722       else
22723         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'
22724         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22725       fi
22726       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22727       hardcode_libdir_separator_F77=:
22728       link_all_deplibs_F77=yes
22729       ;;
22730
22731     netbsd*)
22732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22733         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22734       else
22735         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22736       fi
22737       hardcode_libdir_flag_spec_F77='-R$libdir'
22738       hardcode_direct_F77=yes
22739       hardcode_shlibpath_var_F77=no
22740       ;;
22741
22742     newsos6)
22743       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744       hardcode_direct_F77=yes
22745       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746       hardcode_libdir_separator_F77=:
22747       hardcode_shlibpath_var_F77=no
22748       ;;
22749
22750     openbsd*)
22751       hardcode_direct_F77=yes
22752       hardcode_shlibpath_var_F77=no
22753       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22754         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22755         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22756         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22757         export_dynamic_flag_spec_F77='${wl}-E'
22758       else
22759        case $host_os in
22760          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22761            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762            hardcode_libdir_flag_spec_F77='-R$libdir'
22763            ;;
22764          *)
22765            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22766            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22767            ;;
22768        esac
22769       fi
22770       ;;
22771
22772     os2*)
22773       hardcode_libdir_flag_spec_F77='-L$libdir'
22774       hardcode_minus_L_F77=yes
22775       allow_undefined_flag_F77=unsupported
22776       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'
22777       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22778       ;;
22779
22780     osf3*)
22781       if test "$GCC" = yes; then
22782         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22783         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'
22784       else
22785         allow_undefined_flag_F77=' -expect_unresolved \*'
22786         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'
22787       fi
22788       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22789       hardcode_libdir_separator_F77=:
22790       ;;
22791
22792     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22793       if test "$GCC" = yes; then
22794         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22795         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'
22796         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22797       else
22798         allow_undefined_flag_F77=' -expect_unresolved \*'
22799         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'
22800         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~
22801         $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'
22802
22803         # Both c and cxx compiler support -rpath directly
22804         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22805       fi
22806       hardcode_libdir_separator_F77=:
22807       ;;
22808
22809     solaris*)
22810       no_undefined_flag_F77=' -z text'
22811       if test "$GCC" = yes; then
22812         wlarc='${wl}'
22813         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22814         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22815           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22816       else
22817         wlarc=''
22818         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22819         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22820         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22821       fi
22822       hardcode_libdir_flag_spec_F77='-R$libdir'
22823       hardcode_shlibpath_var_F77=no
22824       case $host_os in
22825       solaris2.[0-5] | solaris2.[0-5].*) ;;
22826       *)
22827         # The compiler driver will combine linker options so we
22828         # cannot just pass the convience library names through
22829         # without $wl, iff we do not link with $LD.
22830         # Luckily, gcc supports the same syntax we need for Sun Studio.
22831         # Supported since Solaris 2.6 (maybe 2.5.1?)
22832         case $wlarc in
22833         '')
22834           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22835         *)
22836           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' ;;
22837         esac ;;
22838       esac
22839       link_all_deplibs_F77=yes
22840       ;;
22841
22842     sunos4*)
22843       if test "x$host_vendor" = xsequent; then
22844         # Use $CC to link under sequent, because it throws in some extra .o
22845         # files that make .init and .fini sections work.
22846         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22847       else
22848         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22849       fi
22850       hardcode_libdir_flag_spec_F77='-L$libdir'
22851       hardcode_direct_F77=yes
22852       hardcode_minus_L_F77=yes
22853       hardcode_shlibpath_var_F77=no
22854       ;;
22855
22856     sysv4)
22857       case $host_vendor in
22858         sni)
22859           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22860           hardcode_direct_F77=yes # is this really true???
22861         ;;
22862         siemens)
22863           ## LD is ld it makes a PLAMLIB
22864           ## CC just makes a GrossModule.
22865           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22866           reload_cmds_F77='$CC -r -o $output$reload_objs'
22867           hardcode_direct_F77=no
22868         ;;
22869         motorola)
22870           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22871           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22872         ;;
22873       esac
22874       runpath_var='LD_RUN_PATH'
22875       hardcode_shlibpath_var_F77=no
22876       ;;
22877
22878     sysv4.3*)
22879       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22880       hardcode_shlibpath_var_F77=no
22881       export_dynamic_flag_spec_F77='-Bexport'
22882       ;;
22883
22884     sysv4*MP*)
22885       if test -d /usr/nec; then
22886         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887         hardcode_shlibpath_var_F77=no
22888         runpath_var=LD_RUN_PATH
22889         hardcode_runpath_var=yes
22890         ld_shlibs_F77=yes
22891       fi
22892       ;;
22893
22894     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22895       no_undefined_flag_F77='${wl}-z,text'
22896       archive_cmds_need_lc_F77=no
22897       hardcode_shlibpath_var_F77=no
22898       runpath_var='LD_RUN_PATH'
22899
22900       if test "$GCC" = yes; then
22901         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22903       else
22904         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22905         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22906       fi
22907       ;;
22908
22909     sysv5* | sco3.2v5* | sco5v6*)
22910       # Note: We can NOT use -z defs as we might desire, because we do not
22911       # link with -lc, and that would cause any symbols used from libc to
22912       # always be unresolved, which means just about no library would
22913       # ever link correctly.  If we're not using GNU ld we use -z text
22914       # though, which does catch some bad symbols but isn't as heavy-handed
22915       # as -z defs.
22916       no_undefined_flag_F77='${wl}-z,text'
22917       allow_undefined_flag_F77='${wl}-z,nodefs'
22918       archive_cmds_need_lc_F77=no
22919       hardcode_shlibpath_var_F77=no
22920       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22921       hardcode_libdir_separator_F77=':'
22922       link_all_deplibs_F77=yes
22923       export_dynamic_flag_spec_F77='${wl}-Bexport'
22924       runpath_var='LD_RUN_PATH'
22925
22926       if test "$GCC" = yes; then
22927         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22928         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22929       else
22930         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22931         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22932       fi
22933       ;;
22934
22935     uts4*)
22936       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22937       hardcode_libdir_flag_spec_F77='-L$libdir'
22938       hardcode_shlibpath_var_F77=no
22939       ;;
22940
22941     *)
22942       ld_shlibs_F77=no
22943       ;;
22944     esac
22945   fi
22946
22947 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22948 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22949 test "$ld_shlibs_F77" = no && can_build_shared=no
22950
22951 #
22952 # Do we need to explicitly link libc?
22953 #
22954 case "x$archive_cmds_need_lc_F77" in
22955 x|xyes)
22956   # Assume -lc should be added
22957   archive_cmds_need_lc_F77=yes
22958
22959   if test "$enable_shared" = yes && test "$GCC" = yes; then
22960     case $archive_cmds_F77 in
22961     *'~'*)
22962       # FIXME: we may have to deal with multi-command sequences.
22963       ;;
22964     '$CC '*)
22965       # Test whether the compiler implicitly links with -lc since on some
22966       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22967       # to ld, don't add -lc before -lgcc.
22968       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22970       $rm conftest*
22971       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22972
22973       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22974   (eval $ac_compile) 2>&5
22975   ac_status=$?
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } 2>conftest.err; then
22978         soname=conftest
22979         lib=conftest
22980         libobjs=conftest.$ac_objext
22981         deplibs=
22982         wl=$lt_prog_compiler_wl_F77
22983         pic_flag=$lt_prog_compiler_pic_F77
22984         compiler_flags=-v
22985         linker_flags=-v
22986         verstring=
22987         output_objdir=.
22988         libname=conftest
22989         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22990         allow_undefined_flag_F77=
22991         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22992   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }
22996         then
22997           archive_cmds_need_lc_F77=no
22998         else
22999           archive_cmds_need_lc_F77=yes
23000         fi
23001         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23002       else
23003         cat conftest.err 1>&5
23004       fi
23005       $rm conftest*
23006       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23007 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23008       ;;
23009     esac
23010   fi
23011   ;;
23012 esac
23013
23014 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23016 library_names_spec=
23017 libname_spec='lib$name'
23018 soname_spec=
23019 shrext_cmds=".so"
23020 postinstall_cmds=
23021 postuninstall_cmds=
23022 finish_cmds=
23023 finish_eval=
23024 shlibpath_var=
23025 shlibpath_overrides_runpath=unknown
23026 version_type=none
23027 dynamic_linker="$host_os ld.so"
23028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23029 if test "$GCC" = yes; then
23030   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23031   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23032     # if the path contains ";" then we assume it to be the separator
23033     # otherwise default to the standard path separator (i.e. ":") - it is
23034     # assumed that no part of a normal pathname contains ";" but that should
23035     # okay in the real world where ";" in dirpaths is itself problematic.
23036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037   else
23038     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23039   fi
23040 else
23041   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23042 fi
23043 need_lib_prefix=unknown
23044 hardcode_into_libs=no
23045
23046 # when you set need_version to no, make sure it does not cause -set_version
23047 # flags to be left without arguments
23048 need_version=unknown
23049
23050 case $host_os in
23051 aix3*)
23052   version_type=linux
23053   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23054   shlibpath_var=LIBPATH
23055
23056   # AIX 3 has no versioning support, so we append a major version to the name.
23057   soname_spec='${libname}${release}${shared_ext}$major'
23058   ;;
23059
23060 aix4* | aix5*)
23061   version_type=linux
23062   need_lib_prefix=no
23063   need_version=no
23064   hardcode_into_libs=yes
23065   if test "$host_cpu" = ia64; then
23066     # AIX 5 supports IA64
23067     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23068     shlibpath_var=LD_LIBRARY_PATH
23069   else
23070     # With GCC up to 2.95.x, collect2 would create an import file
23071     # for dependence libraries.  The import file would start with
23072     # the line `#! .'.  This would cause the generated library to
23073     # depend on `.', always an invalid library.  This was fixed in
23074     # development snapshots of GCC prior to 3.0.
23075     case $host_os in
23076       aix4 | aix4.[01] | aix4.[01].*)
23077       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23078            echo ' yes '
23079            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23080         :
23081       else
23082         can_build_shared=no
23083       fi
23084       ;;
23085     esac
23086     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23087     # soname into executable. Probably we can add versioning support to
23088     # collect2, so additional links can be useful in future.
23089     if test "$aix_use_runtimelinking" = yes; then
23090       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23091       # instead of lib<name>.a to let people know that these are not
23092       # typical AIX shared libraries.
23093       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094     else
23095       # We preserve .a as extension for shared libraries through AIX4.2
23096       # and later when we are not doing run time linking.
23097       library_names_spec='${libname}${release}.a $libname.a'
23098       soname_spec='${libname}${release}${shared_ext}$major'
23099     fi
23100     shlibpath_var=LIBPATH
23101   fi
23102   ;;
23103
23104 amigaos*)
23105   library_names_spec='$libname.ixlibrary $libname.a'
23106   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23107   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'
23108   ;;
23109
23110 beos*)
23111   library_names_spec='${libname}${shared_ext}'
23112   dynamic_linker="$host_os ld.so"
23113   shlibpath_var=LIBRARY_PATH
23114   ;;
23115
23116 bsdi[45]*)
23117   version_type=linux
23118   need_version=no
23119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120   soname_spec='${libname}${release}${shared_ext}$major'
23121   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23122   shlibpath_var=LD_LIBRARY_PATH
23123   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23124   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23125   # the default ld.so.conf also contains /usr/contrib/lib and
23126   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23127   # libtool to hard-code these into programs
23128   ;;
23129
23130 cygwin* | mingw* | pw32*)
23131   version_type=windows
23132   shrext_cmds=".dll"
23133   need_version=no
23134   need_lib_prefix=no
23135
23136   case $GCC,$host_os in
23137   yes,cygwin* | yes,mingw* | yes,pw32*)
23138     library_names_spec='$libname.dll.a'
23139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23140     postinstall_cmds='base_file=`basename \${file}`~
23141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23142       dldir=$destdir/`dirname \$dlpath`~
23143       test -d \$dldir || mkdir -p \$dldir~
23144       $install_prog $dir/$dlname \$dldir/$dlname~
23145       chmod a+x \$dldir/$dlname'
23146     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23147       dlpath=$dir/\$dldll~
23148        $rm \$dlpath'
23149     shlibpath_overrides_runpath=yes
23150
23151     case $host_os in
23152     cygwin*)
23153       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23154       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23155       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23156       ;;
23157     mingw*)
23158       # MinGW DLLs use traditional 'lib' prefix
23159       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23160       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23161       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23162         # It is most probably a Windows format PATH printed by
23163         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23164         # path with ; separators, and with drive letters. We can handle the
23165         # drive letters (cygwin fileutils understands them), so leave them,
23166         # especially as we might pass files found there to a mingw objdump,
23167         # which wouldn't understand a cygwinified path. Ahh.
23168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23169       else
23170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23171       fi
23172       ;;
23173     pw32*)
23174       # pw32 DLLs use 'pw' prefix rather than 'lib'
23175       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23176       ;;
23177     esac
23178     ;;
23179
23180   *)
23181     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23182     ;;
23183   esac
23184   dynamic_linker='Win32 ld.exe'
23185   # FIXME: first we should search . and the directory the executable is in
23186   shlibpath_var=PATH
23187   ;;
23188
23189 darwin* | rhapsody*)
23190   dynamic_linker="$host_os dyld"
23191   version_type=darwin
23192   need_lib_prefix=no
23193   need_version=no
23194   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23195   soname_spec='${libname}${release}${major}$shared_ext'
23196   shlibpath_overrides_runpath=yes
23197   shlibpath_var=DYLD_LIBRARY_PATH
23198   shrext_cmds='.dylib'
23199   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23200   if test "$GCC" = yes; then
23201     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"`
23202   else
23203     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23204   fi
23205   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23206   ;;
23207
23208 dgux*)
23209   version_type=linux
23210   need_lib_prefix=no
23211   need_version=no
23212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23213   soname_spec='${libname}${release}${shared_ext}$major'
23214   shlibpath_var=LD_LIBRARY_PATH
23215   ;;
23216
23217 freebsd1*)
23218   dynamic_linker=no
23219   ;;
23220
23221 kfreebsd*-gnu)
23222   version_type=linux
23223   need_lib_prefix=no
23224   need_version=no
23225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226   soname_spec='${libname}${release}${shared_ext}$major'
23227   shlibpath_var=LD_LIBRARY_PATH
23228   shlibpath_overrides_runpath=no
23229   hardcode_into_libs=yes
23230   dynamic_linker='GNU ld.so'
23231   ;;
23232
23233 freebsd* | dragonfly*)
23234   # DragonFly does not have aout.  When/if they implement a new
23235   # versioning mechanism, adjust this.
23236   if test -x /usr/bin/objformat; then
23237     objformat=`/usr/bin/objformat`
23238   else
23239     case $host_os in
23240     freebsd[123]*) objformat=aout ;;
23241     *) objformat=elf ;;
23242     esac
23243   fi
23244   version_type=freebsd-$objformat
23245   case $version_type in
23246     freebsd-elf*)
23247       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23248       need_version=no
23249       need_lib_prefix=no
23250       ;;
23251     freebsd-*)
23252       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23253       need_version=yes
23254       ;;
23255   esac
23256   shlibpath_var=LD_LIBRARY_PATH
23257   case $host_os in
23258   freebsd2*)
23259     shlibpath_overrides_runpath=yes
23260     ;;
23261   freebsd3.[01]* | freebsdelf3.[01]*)
23262     shlibpath_overrides_runpath=yes
23263     hardcode_into_libs=yes
23264     ;;
23265   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23266   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23267     shlibpath_overrides_runpath=no
23268     hardcode_into_libs=yes
23269     ;;
23270   freebsd*) # from 4.6 on
23271     shlibpath_overrides_runpath=yes
23272     hardcode_into_libs=yes
23273     ;;
23274   esac
23275   ;;
23276
23277 gnu*)
23278   version_type=linux
23279   need_lib_prefix=no
23280   need_version=no
23281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23282   soname_spec='${libname}${release}${shared_ext}$major'
23283   shlibpath_var=LD_LIBRARY_PATH
23284   hardcode_into_libs=yes
23285   ;;
23286
23287 hpux9* | hpux10* | hpux11*)
23288   # Give a soname corresponding to the major version so that dld.sl refuses to
23289   # link against other versions.
23290   version_type=sunos
23291   need_lib_prefix=no
23292   need_version=no
23293   case $host_cpu in
23294   ia64*)
23295     shrext_cmds='.so'
23296     hardcode_into_libs=yes
23297     dynamic_linker="$host_os dld.so"
23298     shlibpath_var=LD_LIBRARY_PATH
23299     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301     soname_spec='${libname}${release}${shared_ext}$major'
23302     if test "X$HPUX_IA64_MODE" = X32; then
23303       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23304     else
23305       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23306     fi
23307     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23308     ;;
23309    hppa*64*)
23310      shrext_cmds='.sl'
23311      hardcode_into_libs=yes
23312      dynamic_linker="$host_os dld.sl"
23313      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23314      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23316      soname_spec='${libname}${release}${shared_ext}$major'
23317      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23318      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23319      ;;
23320    *)
23321     shrext_cmds='.sl'
23322     dynamic_linker="$host_os dld.sl"
23323     shlibpath_var=SHLIB_PATH
23324     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326     soname_spec='${libname}${release}${shared_ext}$major'
23327     ;;
23328   esac
23329   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23330   postinstall_cmds='chmod 555 $lib'
23331   ;;
23332
23333 interix3*)
23334   version_type=linux
23335   need_lib_prefix=no
23336   need_version=no
23337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23338   soname_spec='${libname}${release}${shared_ext}$major'
23339   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23340   shlibpath_var=LD_LIBRARY_PATH
23341   shlibpath_overrides_runpath=no
23342   hardcode_into_libs=yes
23343   ;;
23344
23345 irix5* | irix6* | nonstopux*)
23346   case $host_os in
23347     nonstopux*) version_type=nonstopux ;;
23348     *)
23349         if test "$lt_cv_prog_gnu_ld" = yes; then
23350                 version_type=linux
23351         else
23352                 version_type=irix
23353         fi ;;
23354   esac
23355   need_lib_prefix=no
23356   need_version=no
23357   soname_spec='${libname}${release}${shared_ext}$major'
23358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23359   case $host_os in
23360   irix5* | nonstopux*)
23361     libsuff= shlibsuff=
23362     ;;
23363   *)
23364     case $LD in # libtool.m4 will add one of these switches to LD
23365     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23366       libsuff= shlibsuff= libmagic=32-bit;;
23367     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23368       libsuff=32 shlibsuff=N32 libmagic=N32;;
23369     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23370       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23371     *) libsuff= shlibsuff= libmagic=never-match;;
23372     esac
23373     ;;
23374   esac
23375   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23376   shlibpath_overrides_runpath=no
23377   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23378   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23379   hardcode_into_libs=yes
23380   ;;
23381
23382 # No shared lib support for Linux oldld, aout, or coff.
23383 linux*oldld* | linux*aout* | linux*coff*)
23384   dynamic_linker=no
23385   ;;
23386
23387 # This must be Linux ELF.
23388 linux*)
23389   version_type=linux
23390   need_lib_prefix=no
23391   need_version=no
23392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393   soname_spec='${libname}${release}${shared_ext}$major'
23394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23395   shlibpath_var=LD_LIBRARY_PATH
23396   shlibpath_overrides_runpath=no
23397   # This implies no fast_install, which is unacceptable.
23398   # Some rework will be needed to allow for fast_install
23399   # before this can be enabled.
23400   hardcode_into_libs=yes
23401
23402   # Append ld.so.conf contents to the search path
23403   if test -f /etc/ld.so.conf; then
23404     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' ' '`
23405     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23406   fi
23407
23408   # We used to test for /lib/ld.so.1 and disable shared libraries on
23409   # powerpc, because MkLinux only supported shared libraries with the
23410   # GNU dynamic linker.  Since this was broken with cross compilers,
23411   # most powerpc-linux boxes support dynamic linking these days and
23412   # people can always --disable-shared, the test was removed, and we
23413   # assume the GNU/Linux dynamic linker is in use.
23414   dynamic_linker='GNU/Linux ld.so'
23415   ;;
23416
23417 knetbsd*-gnu)
23418   version_type=linux
23419   need_lib_prefix=no
23420   need_version=no
23421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23422   soname_spec='${libname}${release}${shared_ext}$major'
23423   shlibpath_var=LD_LIBRARY_PATH
23424   shlibpath_overrides_runpath=no
23425   hardcode_into_libs=yes
23426   dynamic_linker='GNU ld.so'
23427   ;;
23428
23429 netbsd*)
23430   version_type=sunos
23431   need_lib_prefix=no
23432   need_version=no
23433   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23435     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23436     dynamic_linker='NetBSD (a.out) ld.so'
23437   else
23438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23439     soname_spec='${libname}${release}${shared_ext}$major'
23440     dynamic_linker='NetBSD ld.elf_so'
23441   fi
23442   shlibpath_var=LD_LIBRARY_PATH
23443   shlibpath_overrides_runpath=yes
23444   hardcode_into_libs=yes
23445   ;;
23446
23447 newsos6)
23448   version_type=linux
23449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450   shlibpath_var=LD_LIBRARY_PATH
23451   shlibpath_overrides_runpath=yes
23452   ;;
23453
23454 nto-qnx*)
23455   version_type=linux
23456   need_lib_prefix=no
23457   need_version=no
23458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23459   soname_spec='${libname}${release}${shared_ext}$major'
23460   shlibpath_var=LD_LIBRARY_PATH
23461   shlibpath_overrides_runpath=yes
23462   ;;
23463
23464 openbsd*)
23465   version_type=sunos
23466   sys_lib_dlsearch_path_spec="/usr/lib"
23467   need_lib_prefix=no
23468   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23469   case $host_os in
23470     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23471     *)                         need_version=no  ;;
23472   esac
23473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23475   shlibpath_var=LD_LIBRARY_PATH
23476   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23477     case $host_os in
23478       openbsd2.[89] | openbsd2.[89].*)
23479         shlibpath_overrides_runpath=no
23480         ;;
23481       *)
23482         shlibpath_overrides_runpath=yes
23483         ;;
23484       esac
23485   else
23486     shlibpath_overrides_runpath=yes
23487   fi
23488   ;;
23489
23490 os2*)
23491   libname_spec='$name'
23492   shrext_cmds=".dll"
23493   need_lib_prefix=no
23494   library_names_spec='$libname${shared_ext} $libname.a'
23495   dynamic_linker='OS/2 ld.exe'
23496   shlibpath_var=LIBPATH
23497   ;;
23498
23499 osf3* | osf4* | osf5*)
23500   version_type=osf
23501   need_lib_prefix=no
23502   need_version=no
23503   soname_spec='${libname}${release}${shared_ext}$major'
23504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505   shlibpath_var=LD_LIBRARY_PATH
23506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23508   ;;
23509
23510 solaris*)
23511   version_type=linux
23512   need_lib_prefix=no
23513   need_version=no
23514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515   soname_spec='${libname}${release}${shared_ext}$major'
23516   shlibpath_var=LD_LIBRARY_PATH
23517   shlibpath_overrides_runpath=yes
23518   hardcode_into_libs=yes
23519   # ldd complains unless libraries are executable
23520   postinstall_cmds='chmod +x $lib'
23521   ;;
23522
23523 sunos4*)
23524   version_type=sunos
23525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23526   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23527   shlibpath_var=LD_LIBRARY_PATH
23528   shlibpath_overrides_runpath=yes
23529   if test "$with_gnu_ld" = yes; then
23530     need_lib_prefix=no
23531   fi
23532   need_version=yes
23533   ;;
23534
23535 sysv4 | sysv4.3*)
23536   version_type=linux
23537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23538   soname_spec='${libname}${release}${shared_ext}$major'
23539   shlibpath_var=LD_LIBRARY_PATH
23540   case $host_vendor in
23541     sni)
23542       shlibpath_overrides_runpath=no
23543       need_lib_prefix=no
23544       export_dynamic_flag_spec='${wl}-Blargedynsym'
23545       runpath_var=LD_RUN_PATH
23546       ;;
23547     siemens)
23548       need_lib_prefix=no
23549       ;;
23550     motorola)
23551       need_lib_prefix=no
23552       need_version=no
23553       shlibpath_overrides_runpath=no
23554       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23555       ;;
23556   esac
23557   ;;
23558
23559 sysv4*MP*)
23560   if test -d /usr/nec ;then
23561     version_type=linux
23562     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23563     soname_spec='$libname${shared_ext}.$major'
23564     shlibpath_var=LD_LIBRARY_PATH
23565   fi
23566   ;;
23567
23568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23569   version_type=freebsd-elf
23570   need_lib_prefix=no
23571   need_version=no
23572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23573   soname_spec='${libname}${release}${shared_ext}$major'
23574   shlibpath_var=LD_LIBRARY_PATH
23575   hardcode_into_libs=yes
23576   if test "$with_gnu_ld" = yes; then
23577     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23578     shlibpath_overrides_runpath=no
23579   else
23580     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23581     shlibpath_overrides_runpath=yes
23582     case $host_os in
23583       sco3.2v5*)
23584         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23585         ;;
23586     esac
23587   fi
23588   sys_lib_dlsearch_path_spec='/usr/lib'
23589   ;;
23590
23591 uts4*)
23592   version_type=linux
23593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594   soname_spec='${libname}${release}${shared_ext}$major'
23595   shlibpath_var=LD_LIBRARY_PATH
23596   ;;
23597
23598 *)
23599   dynamic_linker=no
23600   ;;
23601 esac
23602 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23603 echo "${ECHO_T}$dynamic_linker" >&6; }
23604 test "$dynamic_linker" = no && can_build_shared=no
23605
23606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23607 if test "$GCC" = yes; then
23608   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23609 fi
23610
23611 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23613 hardcode_action_F77=
23614 if test -n "$hardcode_libdir_flag_spec_F77" || \
23615    test -n "$runpath_var_F77" || \
23616    test "X$hardcode_automatic_F77" = "Xyes" ; then
23617
23618   # We can hardcode non-existant directories.
23619   if test "$hardcode_direct_F77" != no &&
23620      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23621      # have to relink, otherwise we might link with an installed library
23622      # when we should be linking with a yet-to-be-installed one
23623      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23624      test "$hardcode_minus_L_F77" != no; then
23625     # Linking always hardcodes the temporary library directory.
23626     hardcode_action_F77=relink
23627   else
23628     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23629     hardcode_action_F77=immediate
23630   fi
23631 else
23632   # We cannot hardcode anything, or else we can only hardcode existing
23633   # directories.
23634   hardcode_action_F77=unsupported
23635 fi
23636 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23637 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23638
23639 if test "$hardcode_action_F77" = relink; then
23640   # Fast installation is not supported
23641   enable_fast_install=no
23642 elif test "$shlibpath_overrides_runpath" = yes ||
23643      test "$enable_shared" = no; then
23644   # Fast installation is not necessary
23645   enable_fast_install=needless
23646 fi
23647
23648
23649 # The else clause should only fire when bootstrapping the
23650 # libtool distribution, otherwise you forgot to ship ltmain.sh
23651 # with your package, and you will get complaints that there are
23652 # no rules to generate ltmain.sh.
23653 if test -f "$ltmain"; then
23654   # See if we are running on zsh, and set the options which allow our commands through
23655   # without removal of \ escapes.
23656   if test -n "${ZSH_VERSION+set}" ; then
23657     setopt NO_GLOB_SUBST
23658   fi
23659   # Now quote all the things that may contain metacharacters while being
23660   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23661   # variables and quote the copies for generation of the libtool script.
23662   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23663     SED SHELL STRIP \
23664     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666     deplibs_check_method reload_flag reload_cmds need_locks \
23667     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668     lt_cv_sys_global_symbol_to_c_name_address \
23669     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670     old_postinstall_cmds old_postuninstall_cmds \
23671     compiler_F77 \
23672     CC_F77 \
23673     LD_F77 \
23674     lt_prog_compiler_wl_F77 \
23675     lt_prog_compiler_pic_F77 \
23676     lt_prog_compiler_static_F77 \
23677     lt_prog_compiler_no_builtin_flag_F77 \
23678     export_dynamic_flag_spec_F77 \
23679     thread_safe_flag_spec_F77 \
23680     whole_archive_flag_spec_F77 \
23681     enable_shared_with_static_runtimes_F77 \
23682     old_archive_cmds_F77 \
23683     old_archive_from_new_cmds_F77 \
23684     predep_objects_F77 \
23685     postdep_objects_F77 \
23686     predeps_F77 \
23687     postdeps_F77 \
23688     compiler_lib_search_path_F77 \
23689     archive_cmds_F77 \
23690     archive_expsym_cmds_F77 \
23691     postinstall_cmds_F77 \
23692     postuninstall_cmds_F77 \
23693     old_archive_from_expsyms_cmds_F77 \
23694     allow_undefined_flag_F77 \
23695     no_undefined_flag_F77 \
23696     export_symbols_cmds_F77 \
23697     hardcode_libdir_flag_spec_F77 \
23698     hardcode_libdir_flag_spec_ld_F77 \
23699     hardcode_libdir_separator_F77 \
23700     hardcode_automatic_F77 \
23701     module_cmds_F77 \
23702     module_expsym_cmds_F77 \
23703     lt_cv_prog_compiler_c_o_F77 \
23704     exclude_expsyms_F77 \
23705     include_expsyms_F77; do
23706
23707     case $var in
23708     old_archive_cmds_F77 | \
23709     old_archive_from_new_cmds_F77 | \
23710     archive_cmds_F77 | \
23711     archive_expsym_cmds_F77 | \
23712     module_cmds_F77 | \
23713     module_expsym_cmds_F77 | \
23714     old_archive_from_expsyms_cmds_F77 | \
23715     export_symbols_cmds_F77 | \
23716     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717     postinstall_cmds | postuninstall_cmds | \
23718     old_postinstall_cmds | old_postuninstall_cmds | \
23719     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720       # Double-quote double-evaled strings.
23721       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23722       ;;
23723     *)
23724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725       ;;
23726     esac
23727   done
23728
23729   case $lt_echo in
23730   *'\$0 --fallback-echo"')
23731     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732     ;;
23733   esac
23734
23735 cfgfile="$ofile"
23736
23737   cat <<__EOF__ >> "$cfgfile"
23738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742 # Shell to use when invoking shell scripts.
23743 SHELL=$lt_SHELL
23744
23745 # Whether or not to build shared libraries.
23746 build_libtool_libs=$enable_shared
23747
23748 # Whether or not to build static libraries.
23749 build_old_libs=$enable_static
23750
23751 # Whether or not to add -lc for building shared libraries.
23752 build_libtool_need_lc=$archive_cmds_need_lc_F77
23753
23754 # Whether or not to disallow shared libs when runtime libs are static
23755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23756
23757 # Whether or not to optimize for fast installation.
23758 fast_install=$enable_fast_install
23759
23760 # The host system.
23761 host_alias=$host_alias
23762 host=$host
23763 host_os=$host_os
23764
23765 # The build system.
23766 build_alias=$build_alias
23767 build=$build
23768 build_os=$build_os
23769
23770 # An echo program that does not interpret backslashes.
23771 echo=$lt_echo
23772
23773 # The archiver.
23774 AR=$lt_AR
23775 AR_FLAGS=$lt_AR_FLAGS
23776
23777 # A C compiler.
23778 LTCC=$lt_LTCC
23779
23780 # LTCC compiler flags.
23781 LTCFLAGS=$lt_LTCFLAGS
23782
23783 # A language-specific compiler.
23784 CC=$lt_compiler_F77
23785
23786 # Is the compiler the GNU C compiler?
23787 with_gcc=$GCC_F77
23788
23789 # An ERE matcher.
23790 EGREP=$lt_EGREP
23791
23792 # The linker used to build libraries.
23793 LD=$lt_LD_F77
23794
23795 # Whether we need hard or soft links.
23796 LN_S=$lt_LN_S
23797
23798 # A BSD-compatible nm program.
23799 NM=$lt_NM
23800
23801 # A symbol stripping program
23802 STRIP=$lt_STRIP
23803
23804 # Used to examine libraries when file_magic_cmd begins "file"
23805 MAGIC_CMD=$MAGIC_CMD
23806
23807 # Used on cygwin: DLL creation program.
23808 DLLTOOL="$DLLTOOL"
23809
23810 # Used on cygwin: object dumper.
23811 OBJDUMP="$OBJDUMP"
23812
23813 # Used on cygwin: assembler.
23814 AS="$AS"
23815
23816 # The name of the directory that contains temporary libtool files.
23817 objdir=$objdir
23818
23819 # How to create reloadable object files.
23820 reload_flag=$lt_reload_flag
23821 reload_cmds=$lt_reload_cmds
23822
23823 # How to pass a linker flag through the compiler.
23824 wl=$lt_lt_prog_compiler_wl_F77
23825
23826 # Object file suffix (normally "o").
23827 objext="$ac_objext"
23828
23829 # Old archive suffix (normally "a").
23830 libext="$libext"
23831
23832 # Shared library suffix (normally ".so").
23833 shrext_cmds='$shrext_cmds'
23834
23835 # Executable file suffix (normally "").
23836 exeext="$exeext"
23837
23838 # Additional compiler flags for building library objects.
23839 pic_flag=$lt_lt_prog_compiler_pic_F77
23840 pic_mode=$pic_mode
23841
23842 # What is the maximum length of a command?
23843 max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845 # Does compiler simultaneously support -c and -o options?
23846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23847
23848 # Must we lock files when doing compilation?
23849 need_locks=$lt_need_locks
23850
23851 # Do we need the lib prefix for modules?
23852 need_lib_prefix=$need_lib_prefix
23853
23854 # Do we need a version for libraries?
23855 need_version=$need_version
23856
23857 # Whether dlopen is supported.
23858 dlopen_support=$enable_dlopen
23859
23860 # Whether dlopen of programs is supported.
23861 dlopen_self=$enable_dlopen_self
23862
23863 # Whether dlopen of statically linked programs is supported.
23864 dlopen_self_static=$enable_dlopen_self_static
23865
23866 # Compiler flag to prevent dynamic linking.
23867 link_static_flag=$lt_lt_prog_compiler_static_F77
23868
23869 # Compiler flag to turn off builtin functions.
23870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23871
23872 # Compiler flag to allow reflexive dlopens.
23873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23874
23875 # Compiler flag to generate shared objects directly from archives.
23876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23877
23878 # Compiler flag to generate thread-safe objects.
23879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23880
23881 # Library versioning type.
23882 version_type=$version_type
23883
23884 # Format of library name prefix.
23885 libname_spec=$lt_libname_spec
23886
23887 # List of archive names.  First name is the real one, the rest are links.
23888 # The last name is the one that the linker finds with -lNAME.
23889 library_names_spec=$lt_library_names_spec
23890
23891 # The coded name of the library, if different from the real name.
23892 soname_spec=$lt_soname_spec
23893
23894 # Commands used to build and install an old-style archive.
23895 RANLIB=$lt_RANLIB
23896 old_archive_cmds=$lt_old_archive_cmds_F77
23897 old_postinstall_cmds=$lt_old_postinstall_cmds
23898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900 # Create an old-style archive from a shared archive.
23901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23902
23903 # Create a temporary old-style archive to link instead of a shared archive.
23904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23905
23906 # Commands used to build and install a shared archive.
23907 archive_cmds=$lt_archive_cmds_F77
23908 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23909 postinstall_cmds=$lt_postinstall_cmds
23910 postuninstall_cmds=$lt_postuninstall_cmds
23911
23912 # Commands used to build a loadable module (assumed same as above if empty)
23913 module_cmds=$lt_module_cmds_F77
23914 module_expsym_cmds=$lt_module_expsym_cmds_F77
23915
23916 # Commands to strip libraries.
23917 old_striplib=$lt_old_striplib
23918 striplib=$lt_striplib
23919
23920 # Dependencies to place before the objects being linked to create a
23921 # shared library.
23922 predep_objects=$lt_predep_objects_F77
23923
23924 # Dependencies to place after the objects being linked to create a
23925 # shared library.
23926 postdep_objects=$lt_postdep_objects_F77
23927
23928 # Dependencies to place before the objects being linked to create a
23929 # shared library.
23930 predeps=$lt_predeps_F77
23931
23932 # Dependencies to place after the objects being linked to create a
23933 # shared library.
23934 postdeps=$lt_postdeps_F77
23935
23936 # The library search path used internally by the compiler when linking
23937 # a shared library.
23938 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23939
23940 # Method to check whether dependent libraries are shared objects.
23941 deplibs_check_method=$lt_deplibs_check_method
23942
23943 # Command to use when deplibs_check_method == file_magic.
23944 file_magic_cmd=$lt_file_magic_cmd
23945
23946 # Flag that allows shared libraries with undefined symbols to be built.
23947 allow_undefined_flag=$lt_allow_undefined_flag_F77
23948
23949 # Flag that forces no undefined symbols.
23950 no_undefined_flag=$lt_no_undefined_flag_F77
23951
23952 # Commands used to finish a libtool library installation in a directory.
23953 finish_cmds=$lt_finish_cmds
23954
23955 # Same as above, but a single script fragment to be evaled but not shown.
23956 finish_eval=$lt_finish_eval
23957
23958 # Take the output of nm and produce a listing of raw symbols and C names.
23959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961 # Transform the output of nm in a proper C declaration
23962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964 # Transform the output of nm in a C name address pair
23965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967 # This is the shared library runtime path variable.
23968 runpath_var=$runpath_var
23969
23970 # This is the shared library path variable.
23971 shlibpath_var=$shlibpath_var
23972
23973 # Is shlibpath searched before the hard-coded library search path?
23974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976 # How to hardcode a shared library path into an executable.
23977 hardcode_action=$hardcode_action_F77
23978
23979 # Whether we should hardcode library paths into libraries.
23980 hardcode_into_libs=$hardcode_into_libs
23981
23982 # Flag to hardcode \$libdir into a binary during linking.
23983 # This must work even if \$libdir does not exist.
23984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23985
23986 # If ld is used when linking, flag to hardcode \$libdir into
23987 # a binary during linking. This must work even if \$libdir does
23988 # not exist.
23989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23990
23991 # Whether we need a single -rpath flag with a separated argument.
23992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23993
23994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995 # resulting binary.
23996 hardcode_direct=$hardcode_direct_F77
23997
23998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999 # resulting binary.
24000 hardcode_minus_L=$hardcode_minus_L_F77
24001
24002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003 # the resulting binary.
24004 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24005
24006 # Set to yes if building a shared library automatically hardcodes DIR into the library
24007 # and all subsequent libraries and executables linked against it.
24008 hardcode_automatic=$hardcode_automatic_F77
24009
24010 # Variables whose values should be saved in libtool wrapper scripts and
24011 # restored at relink time.
24012 variables_saved_for_relink="$variables_saved_for_relink"
24013
24014 # Whether libtool must link a program against all its dependency libraries.
24015 link_all_deplibs=$link_all_deplibs_F77
24016
24017 # Compile-time system search path for libraries
24018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020 # Run-time system search path for libraries
24021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023 # Fix the shell variable \$srcfile for the compiler.
24024 fix_srcfile_path="$fix_srcfile_path_F77"
24025
24026 # Set to yes if exported symbols are required.
24027 always_export_symbols=$always_export_symbols_F77
24028
24029 # The commands to list exported symbols.
24030 export_symbols_cmds=$lt_export_symbols_cmds_F77
24031
24032 # The commands to extract the exported symbol list from a shared archive.
24033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035 # Symbols that should not be listed in the preloaded symbols.
24036 exclude_expsyms=$lt_exclude_expsyms_F77
24037
24038 # Symbols that must always be exported.
24039 include_expsyms=$lt_include_expsyms_F77
24040
24041 # ### END LIBTOOL TAG CONFIG: $tagname
24042
24043 __EOF__
24044
24045
24046 else
24047   # If there is no Makefile yet, we rely on a make rule to execute
24048   # `config.status --recheck' to rerun these tests and create the
24049   # libtool script then.
24050   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051   if test -f "$ltmain_in"; then
24052     test -f Makefile && make "$ltmain"
24053   fi
24054 fi
24055
24056
24057 ac_ext=c
24058 ac_cpp='$CPP $CPPFLAGS'
24059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063 CC="$lt_save_CC"
24064
24065         else
24066           tagname=""
24067         fi
24068         ;;
24069
24070       GCJ)
24071         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24072           ac_ext=c
24073 ac_cpp='$CPP $CPPFLAGS'
24074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24077
24078
24079 # Source file extension for Java test sources.
24080 ac_ext=java
24081
24082 # Object file extension for compiled Java test sources.
24083 objext=o
24084 objext_GCJ=$objext
24085
24086 # Code to be used in simple compile tests
24087 lt_simple_compile_test_code="class foo {}\n"
24088
24089 # Code to be used in simple link tests
24090 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24091
24092 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24093
24094 # If no C compiler was specified, use CC.
24095 LTCC=${LTCC-"$CC"}
24096
24097 # If no C compiler flags were specified, use CFLAGS.
24098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24099
24100 # Allow CC to be a program name with arguments.
24101 compiler=$CC
24102
24103
24104 # save warnings/boilerplate of simple test code
24105 ac_outfile=conftest.$ac_objext
24106 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108 _lt_compiler_boilerplate=`cat conftest.err`
24109 $rm conftest*
24110
24111 ac_outfile=conftest.$ac_objext
24112 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24114 _lt_linker_boilerplate=`cat conftest.err`
24115 $rm conftest*
24116
24117
24118 # Allow CC to be a program name with arguments.
24119 lt_save_CC="$CC"
24120 CC=${GCJ-"gcj"}
24121 compiler=$CC
24122 compiler_GCJ=$CC
24123 for cc_temp in $compiler""; do
24124   case $cc_temp in
24125     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24126     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24127     \-*) ;;
24128     *) break;;
24129   esac
24130 done
24131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24132
24133
24134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24135 archive_cmds_need_lc_GCJ=no
24136
24137 old_archive_cmds_GCJ=$old_archive_cmds
24138
24139
24140 lt_prog_compiler_no_builtin_flag_GCJ=
24141
24142 if test "$GCC" = yes; then
24143   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24144
24145
24146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24149   echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151   lt_cv_prog_compiler_rtti_exceptions=no
24152   ac_outfile=conftest.$ac_objext
24153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24154    lt_compiler_flag="-fno-rtti -fno-exceptions"
24155    # Insert the option either (1) after the last *FLAGS variable, or
24156    # (2) before a word containing "conftest.", or (3) at the end.
24157    # Note that $ac_compile itself does not contain backslashes and begins
24158    # with a dollar sign (not a hyphen), so the echo should work correctly.
24159    # The option is referenced via a variable to avoid confusing sed.
24160    lt_compile=`echo "$ac_compile" | $SED \
24161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24163    -e 's:$: $lt_compiler_flag:'`
24164    (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
24165    (eval "$lt_compile" 2>conftest.err)
24166    ac_status=$?
24167    cat conftest.err >&5
24168    echo "$as_me:24168: \$? = $ac_status" >&5
24169    if (exit $ac_status) && test -s "$ac_outfile"; then
24170      # The compiler can only warn and ignore the option if not recognized
24171      # So say no if there are warnings other than the usual output.
24172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24175        lt_cv_prog_compiler_rtti_exceptions=yes
24176      fi
24177    fi
24178    $rm conftest*
24179
24180 fi
24181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24183
24184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24185     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24186 else
24187     :
24188 fi
24189
24190 fi
24191
24192 lt_prog_compiler_wl_GCJ=
24193 lt_prog_compiler_pic_GCJ=
24194 lt_prog_compiler_static_GCJ=
24195
24196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24198
24199   if test "$GCC" = yes; then
24200     lt_prog_compiler_wl_GCJ='-Wl,'
24201     lt_prog_compiler_static_GCJ='-static'
24202
24203     case $host_os in
24204       aix*)
24205       # All AIX code is PIC.
24206       if test "$host_cpu" = ia64; then
24207         # AIX 5 now supports IA64 processor
24208         lt_prog_compiler_static_GCJ='-Bstatic'
24209       fi
24210       ;;
24211
24212     amigaos*)
24213       # FIXME: we need at least 68020 code to build shared libraries, but
24214       # adding the `-m68020' flag to GCC prevents building anything better,
24215       # like `-m68040'.
24216       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24217       ;;
24218
24219     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24220       # PIC is the default for these OSes.
24221       ;;
24222
24223     mingw* | pw32* | os2*)
24224       # This hack is so that the source file can tell whether it is being
24225       # built for inclusion in a dll (and should export symbols for example).
24226       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24227       ;;
24228
24229     darwin* | rhapsody*)
24230       # PIC is the default on this platform
24231       # Common symbols not allowed in MH_DYLIB files
24232       lt_prog_compiler_pic_GCJ='-fno-common'
24233       ;;
24234
24235     interix3*)
24236       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24237       # Instead, we relocate shared libraries at runtime.
24238       ;;
24239
24240     msdosdjgpp*)
24241       # Just because we use GCC doesn't mean we suddenly get shared libraries
24242       # on systems that don't support them.
24243       lt_prog_compiler_can_build_shared_GCJ=no
24244       enable_shared=no
24245       ;;
24246
24247     sysv4*MP*)
24248       if test -d /usr/nec; then
24249         lt_prog_compiler_pic_GCJ=-Kconform_pic
24250       fi
24251       ;;
24252
24253     hpux*)
24254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24255       # not for PA HP-UX.
24256       case $host_cpu in
24257       hppa*64*|ia64*)
24258         # +Z the default
24259         ;;
24260       *)
24261         lt_prog_compiler_pic_GCJ='-fPIC'
24262         ;;
24263       esac
24264       ;;
24265
24266     *)
24267       lt_prog_compiler_pic_GCJ='-fPIC'
24268       ;;
24269     esac
24270   else
24271     # PORTME Check for flag to pass linker flags through the system compiler.
24272     case $host_os in
24273     aix*)
24274       lt_prog_compiler_wl_GCJ='-Wl,'
24275       if test "$host_cpu" = ia64; then
24276         # AIX 5 now supports IA64 processor
24277         lt_prog_compiler_static_GCJ='-Bstatic'
24278       else
24279         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24280       fi
24281       ;;
24282       darwin*)
24283         # PIC is the default on this platform
24284         # Common symbols not allowed in MH_DYLIB files
24285        case $cc_basename in
24286          xlc*)
24287          lt_prog_compiler_pic_GCJ='-qnocommon'
24288          lt_prog_compiler_wl_GCJ='-Wl,'
24289          ;;
24290        esac
24291        ;;
24292
24293     mingw* | pw32* | os2*)
24294       # This hack is so that the source file can tell whether it is being
24295       # built for inclusion in a dll (and should export symbols for example).
24296       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24297       ;;
24298
24299     hpux9* | hpux10* | hpux11*)
24300       lt_prog_compiler_wl_GCJ='-Wl,'
24301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24302       # not for PA HP-UX.
24303       case $host_cpu in
24304       hppa*64*|ia64*)
24305         # +Z the default
24306         ;;
24307       *)
24308         lt_prog_compiler_pic_GCJ='+Z'
24309         ;;
24310       esac
24311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24312       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24313       ;;
24314
24315     irix5* | irix6* | nonstopux*)
24316       lt_prog_compiler_wl_GCJ='-Wl,'
24317       # PIC (with -KPIC) is the default.
24318       lt_prog_compiler_static_GCJ='-non_shared'
24319       ;;
24320
24321     newsos6)
24322       lt_prog_compiler_pic_GCJ='-KPIC'
24323       lt_prog_compiler_static_GCJ='-Bstatic'
24324       ;;
24325
24326     linux*)
24327       case $cc_basename in
24328       icc* | ecc*)
24329         lt_prog_compiler_wl_GCJ='-Wl,'
24330         lt_prog_compiler_pic_GCJ='-KPIC'
24331         lt_prog_compiler_static_GCJ='-static'
24332         ;;
24333       pgcc* | pgf77* | pgf90* | pgf95*)
24334         # Portland Group compilers (*not* the Pentium gcc compiler,
24335         # which looks to be a dead project)
24336         lt_prog_compiler_wl_GCJ='-Wl,'
24337         lt_prog_compiler_pic_GCJ='-fpic'
24338         lt_prog_compiler_static_GCJ='-Bstatic'
24339         ;;
24340       ccc*)
24341         lt_prog_compiler_wl_GCJ='-Wl,'
24342         # All Alpha code is PIC.
24343         lt_prog_compiler_static_GCJ='-non_shared'
24344         ;;
24345       esac
24346       ;;
24347
24348     osf3* | osf4* | osf5*)
24349       lt_prog_compiler_wl_GCJ='-Wl,'
24350       # All OSF/1 code is PIC.
24351       lt_prog_compiler_static_GCJ='-non_shared'
24352       ;;
24353
24354     solaris*)
24355       lt_prog_compiler_pic_GCJ='-KPIC'
24356       lt_prog_compiler_static_GCJ='-Bstatic'
24357       case $cc_basename in
24358       f77* | f90* | f95*)
24359         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24360       *)
24361         lt_prog_compiler_wl_GCJ='-Wl,';;
24362       esac
24363       ;;
24364
24365     sunos4*)
24366       lt_prog_compiler_wl_GCJ='-Qoption ld '
24367       lt_prog_compiler_pic_GCJ='-PIC'
24368       lt_prog_compiler_static_GCJ='-Bstatic'
24369       ;;
24370
24371     sysv4 | sysv4.2uw2* | sysv4.3*)
24372       lt_prog_compiler_wl_GCJ='-Wl,'
24373       lt_prog_compiler_pic_GCJ='-KPIC'
24374       lt_prog_compiler_static_GCJ='-Bstatic'
24375       ;;
24376
24377     sysv4*MP*)
24378       if test -d /usr/nec ;then
24379         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24380         lt_prog_compiler_static_GCJ='-Bstatic'
24381       fi
24382       ;;
24383
24384     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24385       lt_prog_compiler_wl_GCJ='-Wl,'
24386       lt_prog_compiler_pic_GCJ='-KPIC'
24387       lt_prog_compiler_static_GCJ='-Bstatic'
24388       ;;
24389
24390     unicos*)
24391       lt_prog_compiler_wl_GCJ='-Wl,'
24392       lt_prog_compiler_can_build_shared_GCJ=no
24393       ;;
24394
24395     uts4*)
24396       lt_prog_compiler_pic_GCJ='-pic'
24397       lt_prog_compiler_static_GCJ='-Bstatic'
24398       ;;
24399
24400     *)
24401       lt_prog_compiler_can_build_shared_GCJ=no
24402       ;;
24403     esac
24404   fi
24405
24406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24408
24409 #
24410 # Check to make sure the PIC flag actually works.
24411 #
24412 if test -n "$lt_prog_compiler_pic_GCJ"; then
24413
24414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24417   echo $ECHO_N "(cached) $ECHO_C" >&6
24418 else
24419   lt_prog_compiler_pic_works_GCJ=no
24420   ac_outfile=conftest.$ac_objext
24421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24422    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24423    # Insert the option either (1) after the last *FLAGS variable, or
24424    # (2) before a word containing "conftest.", or (3) at the end.
24425    # Note that $ac_compile itself does not contain backslashes and begins
24426    # with a dollar sign (not a hyphen), so the echo should work correctly.
24427    # The option is referenced via a variable to avoid confusing sed.
24428    lt_compile=`echo "$ac_compile" | $SED \
24429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24431    -e 's:$: $lt_compiler_flag:'`
24432    (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
24433    (eval "$lt_compile" 2>conftest.err)
24434    ac_status=$?
24435    cat conftest.err >&5
24436    echo "$as_me:24436: \$? = $ac_status" >&5
24437    if (exit $ac_status) && test -s "$ac_outfile"; then
24438      # The compiler can only warn and ignore the option if not recognized
24439      # So say no if there are warnings other than the usual output.
24440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24443        lt_prog_compiler_pic_works_GCJ=yes
24444      fi
24445    fi
24446    $rm conftest*
24447
24448 fi
24449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24451
24452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24453     case $lt_prog_compiler_pic_GCJ in
24454      "" | " "*) ;;
24455      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24456      esac
24457 else
24458     lt_prog_compiler_pic_GCJ=
24459      lt_prog_compiler_can_build_shared_GCJ=no
24460 fi
24461
24462 fi
24463 case $host_os in
24464   # For platforms which do not support PIC, -DPIC is meaningless:
24465   *djgpp*)
24466     lt_prog_compiler_pic_GCJ=
24467     ;;
24468   *)
24469     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24470     ;;
24471 esac
24472
24473 #
24474 # Check to make sure the static flag actually works.
24475 #
24476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24480   echo $ECHO_N "(cached) $ECHO_C" >&6
24481 else
24482   lt_prog_compiler_static_works_GCJ=no
24483    save_LDFLAGS="$LDFLAGS"
24484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24485    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24487      # The linker can only warn and ignore the option if not recognized
24488      # So say no if there are warnings
24489      if test -s conftest.err; then
24490        # Append any errors to the config.log.
24491        cat conftest.err 1>&5
24492        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24494        if diff conftest.exp conftest.er2 >/dev/null; then
24495          lt_prog_compiler_static_works_GCJ=yes
24496        fi
24497      else
24498        lt_prog_compiler_static_works_GCJ=yes
24499      fi
24500    fi
24501    $rm conftest*
24502    LDFLAGS="$save_LDFLAGS"
24503
24504 fi
24505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24507
24508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24509     :
24510 else
24511     lt_prog_compiler_static_GCJ=
24512 fi
24513
24514
24515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   lt_cv_prog_compiler_c_o_GCJ=no
24521    $rm -r conftest 2>/dev/null
24522    mkdir conftest
24523    cd conftest
24524    mkdir out
24525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24526
24527    lt_compiler_flag="-o out/conftest2.$ac_objext"
24528    # Insert the option either (1) after the last *FLAGS variable, or
24529    # (2) before a word containing "conftest.", or (3) at the end.
24530    # Note that $ac_compile itself does not contain backslashes and begins
24531    # with a dollar sign (not a hyphen), so the echo should work correctly.
24532    lt_compile=`echo "$ac_compile" | $SED \
24533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24535    -e 's:$: $lt_compiler_flag:'`
24536    (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
24537    (eval "$lt_compile" 2>out/conftest.err)
24538    ac_status=$?
24539    cat out/conftest.err >&5
24540    echo "$as_me:24540: \$? = $ac_status" >&5
24541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24542    then
24543      # The compiler can only warn and ignore the option if not recognized
24544      # So say no if there are warnings
24545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24548        lt_cv_prog_compiler_c_o_GCJ=yes
24549      fi
24550    fi
24551    chmod u+w . 2>&5
24552    $rm conftest*
24553    # SGI C++ compiler will create directory out/ii_files/ for
24554    # template instantiation
24555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24556    $rm out/* && rmdir out
24557    cd ..
24558    rmdir conftest
24559    $rm conftest*
24560
24561 fi
24562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24564
24565
24566 hard_links="nottested"
24567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24568   # do not overwrite the value of need_locks provided by the user
24569   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24571   hard_links=yes
24572   $rm conftest*
24573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24574   touch conftest.a
24575   ln conftest.a conftest.b 2>&5 || hard_links=no
24576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24577   { echo "$as_me:$LINENO: result: $hard_links" >&5
24578 echo "${ECHO_T}$hard_links" >&6; }
24579   if test "$hard_links" = no; then
24580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24582     need_locks=warn
24583   fi
24584 else
24585   need_locks=no
24586 fi
24587
24588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24590
24591   runpath_var=
24592   allow_undefined_flag_GCJ=
24593   enable_shared_with_static_runtimes_GCJ=no
24594   archive_cmds_GCJ=
24595   archive_expsym_cmds_GCJ=
24596   old_archive_From_new_cmds_GCJ=
24597   old_archive_from_expsyms_cmds_GCJ=
24598   export_dynamic_flag_spec_GCJ=
24599   whole_archive_flag_spec_GCJ=
24600   thread_safe_flag_spec_GCJ=
24601   hardcode_libdir_flag_spec_GCJ=
24602   hardcode_libdir_flag_spec_ld_GCJ=
24603   hardcode_libdir_separator_GCJ=
24604   hardcode_direct_GCJ=no
24605   hardcode_minus_L_GCJ=no
24606   hardcode_shlibpath_var_GCJ=unsupported
24607   link_all_deplibs_GCJ=unknown
24608   hardcode_automatic_GCJ=no
24609   module_cmds_GCJ=
24610   module_expsym_cmds_GCJ=
24611   always_export_symbols_GCJ=no
24612   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24613   # include_expsyms should be a list of space-separated symbols to be *always*
24614   # included in the symbol list
24615   include_expsyms_GCJ=
24616   # exclude_expsyms can be an extended regexp of symbols to exclude
24617   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24618   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24619   # as well as any symbol that contains `d'.
24620   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24621   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24622   # platforms (ab)use it in PIC code, but their linkers get confused if
24623   # the symbol is explicitly referenced.  Since portable code cannot
24624   # rely on this symbol name, it's probably fine to never include it in
24625   # preloaded symbol tables.
24626   extract_expsyms_cmds=
24627   # Just being paranoid about ensuring that cc_basename is set.
24628   for cc_temp in $compiler""; do
24629   case $cc_temp in
24630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24632     \-*) ;;
24633     *) break;;
24634   esac
24635 done
24636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24637
24638   case $host_os in
24639   cygwin* | mingw* | pw32*)
24640     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24641     # When not using gcc, we currently assume that we are using
24642     # Microsoft Visual C++.
24643     if test "$GCC" != yes; then
24644       with_gnu_ld=no
24645     fi
24646     ;;
24647   interix*)
24648     # we just hope/assume this is gcc and not c89 (= MSVC++)
24649     with_gnu_ld=yes
24650     ;;
24651   openbsd*)
24652     with_gnu_ld=no
24653     ;;
24654   esac
24655
24656   ld_shlibs_GCJ=yes
24657   if test "$with_gnu_ld" = yes; then
24658     # If archive_cmds runs LD, not CC, wlarc should be empty
24659     wlarc='${wl}'
24660
24661     # Set some defaults for GNU ld with shared library support. These
24662     # are reset later if shared libraries are not supported. Putting them
24663     # here allows them to be overridden if necessary.
24664     runpath_var=LD_RUN_PATH
24665     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24666     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24667     # ancient GNU ld didn't support --whole-archive et. al.
24668     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24669         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24670       else
24671         whole_archive_flag_spec_GCJ=
24672     fi
24673     supports_anon_versioning=no
24674     case `$LD -v 2>/dev/null` in
24675       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24676       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24677       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24678       *\ 2.11.*) ;; # other 2.11 versions
24679       *) supports_anon_versioning=yes ;;
24680     esac
24681
24682     # See if GNU ld supports shared libraries.
24683     case $host_os in
24684     aix3* | aix4* | aix5*)
24685       # On AIX/PPC, the GNU linker is very broken
24686       if test "$host_cpu" != ia64; then
24687         ld_shlibs_GCJ=no
24688         cat <<EOF 1>&2
24689
24690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24691 *** to be unable to reliably create shared libraries on AIX.
24692 *** Therefore, libtool is disabling shared libraries support.  If you
24693 *** really care for shared libraries, you may want to modify your PATH
24694 *** so that a non-GNU linker is found, and then restart.
24695
24696 EOF
24697       fi
24698       ;;
24699
24700     amigaos*)
24701       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)'
24702       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24703       hardcode_minus_L_GCJ=yes
24704
24705       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24706       # that the semantics of dynamic libraries on AmigaOS, at least up
24707       # to version 4, is to share data among multiple programs linked
24708       # with the same dynamic library.  Since this doesn't match the
24709       # behavior of shared libraries on other platforms, we can't use
24710       # them.
24711       ld_shlibs_GCJ=no
24712       ;;
24713
24714     beos*)
24715       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24716         allow_undefined_flag_GCJ=unsupported
24717         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24718         # support --undefined.  This deserves some investigation.  FIXME
24719         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24720       else
24721         ld_shlibs_GCJ=no
24722       fi
24723       ;;
24724
24725     cygwin* | mingw* | pw32*)
24726       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24727       # as there is no search path for DLLs.
24728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729       allow_undefined_flag_GCJ=unsupported
24730       always_export_symbols_GCJ=no
24731       enable_shared_with_static_runtimes_GCJ=yes
24732       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24733
24734       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24735         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24736         # If the export-symbols file already is a .def file (1st line
24737         # is EXPORTS), use it as is; otherwise, prepend...
24738         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24739           cp $export_symbols $output_objdir/$soname.def;
24740         else
24741           echo EXPORTS > $output_objdir/$soname.def;
24742           cat $export_symbols >> $output_objdir/$soname.def;
24743         fi~
24744         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24745       else
24746         ld_shlibs_GCJ=no
24747       fi
24748       ;;
24749
24750     interix3*)
24751       hardcode_direct_GCJ=no
24752       hardcode_shlibpath_var_GCJ=no
24753       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24754       export_dynamic_flag_spec_GCJ='${wl}-E'
24755       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24756       # Instead, shared libraries are loaded at an image base (0x10000000 by
24757       # default) and relocated if they conflict, which is a slow very memory
24758       # consuming and fragmenting process.  To avoid this, we pick a random,
24759       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24760       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24761       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'
24762       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'
24763       ;;
24764
24765     linux*)
24766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24767         tmp_addflag=
24768         case $cc_basename,$host_cpu in
24769         pgcc*)                          # Portland Group C compiler
24770           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'
24771           tmp_addflag=' $pic_flag'
24772           ;;
24773         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24774           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'
24775           tmp_addflag=' $pic_flag -Mnomain' ;;
24776         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24777           tmp_addflag=' -i_dynamic' ;;
24778         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24779           tmp_addflag=' -i_dynamic -nofor_main' ;;
24780         ifc* | ifort*)                  # Intel Fortran compiler
24781           tmp_addflag=' -nofor_main' ;;
24782         esac
24783         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784
24785         if test $supports_anon_versioning = yes; then
24786           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24787   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24788   $echo "local: *; };" >> $output_objdir/$libname.ver~
24789           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24790         fi
24791       else
24792         ld_shlibs_GCJ=no
24793       fi
24794       ;;
24795
24796     netbsd*)
24797       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24798         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24799         wlarc=
24800       else
24801         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24802         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24803       fi
24804       ;;
24805
24806     solaris*)
24807       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24808         ld_shlibs_GCJ=no
24809         cat <<EOF 1>&2
24810
24811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24812 *** create shared libraries on Solaris systems.  Therefore, libtool
24813 *** is disabling shared libraries support.  We urge you to upgrade GNU
24814 *** binutils to release 2.9.1 or newer.  Another option is to modify
24815 *** your PATH or compiler configuration so that the native linker is
24816 *** used, and then restart.
24817
24818 EOF
24819       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24820         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24822       else
24823         ld_shlibs_GCJ=no
24824       fi
24825       ;;
24826
24827     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24828       case `$LD -v 2>&1` in
24829         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24830         ld_shlibs_GCJ=no
24831         cat <<_LT_EOF 1>&2
24832
24833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24834 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24835 *** is disabling shared libraries support.  We urge you to upgrade GNU
24836 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24837 *** your PATH or compiler configuration so that the native linker is
24838 *** used, and then restart.
24839
24840 _LT_EOF
24841         ;;
24842         *)
24843           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24844             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24845             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24846             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24847           else
24848             ld_shlibs_GCJ=no
24849           fi
24850         ;;
24851       esac
24852       ;;
24853
24854     sunos4*)
24855       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24856       wlarc=
24857       hardcode_direct_GCJ=yes
24858       hardcode_shlibpath_var_GCJ=no
24859       ;;
24860
24861     *)
24862       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24863         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24864         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24865       else
24866         ld_shlibs_GCJ=no
24867       fi
24868       ;;
24869     esac
24870
24871     if test "$ld_shlibs_GCJ" = no; then
24872       runpath_var=
24873       hardcode_libdir_flag_spec_GCJ=
24874       export_dynamic_flag_spec_GCJ=
24875       whole_archive_flag_spec_GCJ=
24876     fi
24877   else
24878     # PORTME fill in a description of your system's linker (not GNU ld)
24879     case $host_os in
24880     aix3*)
24881       allow_undefined_flag_GCJ=unsupported
24882       always_export_symbols_GCJ=yes
24883       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'
24884       # Note: this linker hardcodes the directories in LIBPATH if there
24885       # are no directories specified by -L.
24886       hardcode_minus_L_GCJ=yes
24887       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24888         # Neither direct hardcoding nor static linking is supported with a
24889         # broken collect2.
24890         hardcode_direct_GCJ=unsupported
24891       fi
24892       ;;
24893
24894     aix4* | aix5*)
24895       if test "$host_cpu" = ia64; then
24896         # On IA64, the linker does run time linking by default, so we don't
24897         # have to do anything special.
24898         aix_use_runtimelinking=no
24899         exp_sym_flag='-Bexport'
24900         no_entry_flag=""
24901       else
24902         # If we're using GNU nm, then we don't want the "-C" option.
24903         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24904         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24905           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'
24906         else
24907           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'
24908         fi
24909         aix_use_runtimelinking=no
24910
24911         # Test if we are trying to use run time linking or normal
24912         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24913         # need to do runtime linking.
24914         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24915           for ld_flag in $LDFLAGS; do
24916           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24917             aix_use_runtimelinking=yes
24918             break
24919           fi
24920           done
24921           ;;
24922         esac
24923
24924         exp_sym_flag='-bexport'
24925         no_entry_flag='-bnoentry'
24926       fi
24927
24928       # When large executables or shared objects are built, AIX ld can
24929       # have problems creating the table of contents.  If linking a library
24930       # or program results in "error TOC overflow" add -mminimal-toc to
24931       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24932       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24933
24934       archive_cmds_GCJ=''
24935       hardcode_direct_GCJ=yes
24936       hardcode_libdir_separator_GCJ=':'
24937       link_all_deplibs_GCJ=yes
24938
24939       if test "$GCC" = yes; then
24940         case $host_os in aix4.[012]|aix4.[012].*)
24941         # We only want to do this on AIX 4.2 and lower, the check
24942         # below for broken collect2 doesn't work under 4.3+
24943           collect2name=`${CC} -print-prog-name=collect2`
24944           if test -f "$collect2name" && \
24945            strings "$collect2name" | grep resolve_lib_name >/dev/null
24946           then
24947           # We have reworked collect2
24948           hardcode_direct_GCJ=yes
24949           else
24950           # We have old collect2
24951           hardcode_direct_GCJ=unsupported
24952           # It fails to find uninstalled libraries when the uninstalled
24953           # path is not listed in the libpath.  Setting hardcode_minus_L
24954           # to unsupported forces relinking
24955           hardcode_minus_L_GCJ=yes
24956           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24957           hardcode_libdir_separator_GCJ=
24958           fi
24959           ;;
24960         esac
24961         shared_flag='-shared'
24962         if test "$aix_use_runtimelinking" = yes; then
24963           shared_flag="$shared_flag "'${wl}-G'
24964         fi
24965       else
24966         # not using gcc
24967         if test "$host_cpu" = ia64; then
24968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24969         # chokes on -Wl,-G. The following line is correct:
24970           shared_flag='-G'
24971         else
24972           if test "$aix_use_runtimelinking" = yes; then
24973             shared_flag='${wl}-G'
24974           else
24975             shared_flag='${wl}-bM:SRE'
24976           fi
24977         fi
24978       fi
24979
24980       # It seems that -bexpall does not export symbols beginning with
24981       # underscore (_), so it is better to generate a list of symbols to export.
24982       always_export_symbols_GCJ=yes
24983       if test "$aix_use_runtimelinking" = yes; then
24984         # Warning - without using the other runtime loading flags (-brtl),
24985         # -berok will link without error, but may produce a broken library.
24986         allow_undefined_flag_GCJ='-berok'
24987        # Determine the default libpath from the value encoded in an empty executable.
24988        cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995 int
24996 main ()
24997 {
24998
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (ac_try="$ac_link"
25005 case "(($ac_try" in
25006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007   *) ac_try_echo=$ac_try;;
25008 esac
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010   (eval "$ac_link") 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } &&
25017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25018   { (case "(($ac_try" in
25019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020   *) ac_try_echo=$ac_try;;
25021 esac
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023   (eval "$ac_try") 2>&5
25024   ac_status=$?
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); }; } &&
25027          { ac_try='test -s conftest$ac_exeext'
25028   { (case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_try") 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037
25038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25039 }'`
25040 # Check for a 64-bit object if we didn't find anything.
25041 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; }
25042 }'`; fi
25043 else
25044   echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext \
25051       conftest$ac_exeext conftest.$ac_ext
25052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25053
25054        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25055         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"
25056        else
25057         if test "$host_cpu" = ia64; then
25058           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25059           allow_undefined_flag_GCJ="-z nodefs"
25060           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"
25061         else
25062          # Determine the default libpath from the value encoded in an empty executable.
25063          cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069
25070 int
25071 main ()
25072 {
25073
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext conftest$ac_exeext
25079 if { (ac_try="$ac_link"
25080 case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085   (eval "$ac_link") 2>conftest.er1
25086   ac_status=$?
25087   grep -v '^ *+' conftest.er1 >conftest.err
25088   rm -f conftest.er1
25089   cat conftest.err >&5
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } &&
25092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093   { (case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098   (eval "$ac_try") 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; } &&
25102          { ac_try='test -s conftest$ac_exeext'
25103   { (case "(($ac_try" in
25104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105   *) ac_try_echo=$ac_try;;
25106 esac
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108   (eval "$ac_try") 2>&5
25109   ac_status=$?
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); }; }; then
25112
25113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25114 }'`
25115 # Check for a 64-bit object if we didn't find anything.
25116 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; }
25117 }'`; fi
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122
25123 fi
25124
25125 rm -f core conftest.err conftest.$ac_objext \
25126       conftest$ac_exeext conftest.$ac_ext
25127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25128
25129          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25130           # Warning - without using the other run time loading flags,
25131           # -berok will link without error, but may produce a broken library.
25132           no_undefined_flag_GCJ=' ${wl}-bernotok'
25133           allow_undefined_flag_GCJ=' ${wl}-berok'
25134           # Exported symbols can be pulled into shared objects from archives
25135           whole_archive_flag_spec_GCJ='$convenience'
25136           archive_cmds_need_lc_GCJ=yes
25137           # This is similar to how AIX traditionally builds its shared libraries.
25138           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'
25139         fi
25140       fi
25141       ;;
25142
25143     amigaos*)
25144       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)'
25145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146       hardcode_minus_L_GCJ=yes
25147       # see comment about different semantics on the GNU ld section
25148       ld_shlibs_GCJ=no
25149       ;;
25150
25151     bsdi[45]*)
25152       export_dynamic_flag_spec_GCJ=-rdynamic
25153       ;;
25154
25155     cygwin* | mingw* | pw32*)
25156       # When not using gcc, we currently assume that we are using
25157       # Microsoft Visual C++.
25158       # hardcode_libdir_flag_spec is actually meaningless, as there is
25159       # no search path for DLLs.
25160       hardcode_libdir_flag_spec_GCJ=' '
25161       allow_undefined_flag_GCJ=unsupported
25162       # Tell ltmain to make .lib files, not .a files.
25163       libext=lib
25164       # Tell ltmain to make .dll files, not .so files.
25165       shrext_cmds=".dll"
25166       # FIXME: Setting linknames here is a bad hack.
25167       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25168       # The linker will automatically build a .lib file if we build a DLL.
25169       old_archive_From_new_cmds_GCJ='true'
25170       # FIXME: Should let the user specify the lib program.
25171       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25172       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25173       enable_shared_with_static_runtimes_GCJ=yes
25174       ;;
25175
25176     darwin* | rhapsody*)
25177       case $host_os in
25178         rhapsody* | darwin1.[012])
25179          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25180          ;;
25181        *) # Darwin 1.3 on
25182          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25183            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25184          else
25185            case ${MACOSX_DEPLOYMENT_TARGET} in
25186              10.[012])
25187                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25188                ;;
25189              10.*)
25190                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25191                ;;
25192            esac
25193          fi
25194          ;;
25195       esac
25196       archive_cmds_need_lc_GCJ=no
25197       hardcode_direct_GCJ=no
25198       hardcode_automatic_GCJ=yes
25199       hardcode_shlibpath_var_GCJ=unsupported
25200       whole_archive_flag_spec_GCJ=''
25201       link_all_deplibs_GCJ=yes
25202     if test "$GCC" = yes ; then
25203         output_verbose_link_cmd='echo'
25204         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25205       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25206       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25207       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}'
25208       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}'
25209     else
25210       case $cc_basename in
25211         xlc*)
25212          output_verbose_link_cmd='echo'
25213          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25214          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25215           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25216          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}'
25217           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}'
25218           ;;
25219        *)
25220          ld_shlibs_GCJ=no
25221           ;;
25222       esac
25223     fi
25224       ;;
25225
25226     dgux*)
25227       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25228       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25229       hardcode_shlibpath_var_GCJ=no
25230       ;;
25231
25232     freebsd1*)
25233       ld_shlibs_GCJ=no
25234       ;;
25235
25236     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25237     # support.  Future versions do this automatically, but an explicit c++rt0.o
25238     # does not break anything, and helps significantly (at the cost of a little
25239     # extra space).
25240     freebsd2.2*)
25241       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25242       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25243       hardcode_direct_GCJ=yes
25244       hardcode_shlibpath_var_GCJ=no
25245       ;;
25246
25247     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25248     freebsd2*)
25249       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25250       hardcode_direct_GCJ=yes
25251       hardcode_minus_L_GCJ=yes
25252       hardcode_shlibpath_var_GCJ=no
25253       ;;
25254
25255     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25256     freebsd* | kfreebsd*-gnu | dragonfly*)
25257       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25258       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259       hardcode_direct_GCJ=yes
25260       hardcode_shlibpath_var_GCJ=no
25261       ;;
25262
25263     hpux9*)
25264       if test "$GCC" = yes; then
25265         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'
25266       else
25267         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'
25268       fi
25269       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25270       hardcode_libdir_separator_GCJ=:
25271       hardcode_direct_GCJ=yes
25272
25273       # hardcode_minus_L: Not really in the search PATH,
25274       # but as the default location of the library.
25275       hardcode_minus_L_GCJ=yes
25276       export_dynamic_flag_spec_GCJ='${wl}-E'
25277       ;;
25278
25279     hpux10*)
25280       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25281         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25282       else
25283         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25284       fi
25285       if test "$with_gnu_ld" = no; then
25286         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25287         hardcode_libdir_separator_GCJ=:
25288
25289         hardcode_direct_GCJ=yes
25290         export_dynamic_flag_spec_GCJ='${wl}-E'
25291
25292         # hardcode_minus_L: Not really in the search PATH,
25293         # but as the default location of the library.
25294         hardcode_minus_L_GCJ=yes
25295       fi
25296       ;;
25297
25298     hpux11*)
25299       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25300         case $host_cpu in
25301         hppa*64*)
25302           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25303           ;;
25304         ia64*)
25305           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25306           ;;
25307         *)
25308           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25309           ;;
25310         esac
25311       else
25312         case $host_cpu in
25313         hppa*64*)
25314           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25315           ;;
25316         ia64*)
25317           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25318           ;;
25319         *)
25320           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25321           ;;
25322         esac
25323       fi
25324       if test "$with_gnu_ld" = no; then
25325         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25326         hardcode_libdir_separator_GCJ=:
25327
25328         case $host_cpu in
25329         hppa*64*|ia64*)
25330           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25331           hardcode_direct_GCJ=no
25332           hardcode_shlibpath_var_GCJ=no
25333           ;;
25334         *)
25335           hardcode_direct_GCJ=yes
25336           export_dynamic_flag_spec_GCJ='${wl}-E'
25337
25338           # hardcode_minus_L: Not really in the search PATH,
25339           # but as the default location of the library.
25340           hardcode_minus_L_GCJ=yes
25341           ;;
25342         esac
25343       fi
25344       ;;
25345
25346     irix5* | irix6* | nonstopux*)
25347       if test "$GCC" = yes; then
25348         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'
25349       else
25350         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'
25351         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25352       fi
25353       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25354       hardcode_libdir_separator_GCJ=:
25355       link_all_deplibs_GCJ=yes
25356       ;;
25357
25358     netbsd*)
25359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25360         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25361       else
25362         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25363       fi
25364       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25365       hardcode_direct_GCJ=yes
25366       hardcode_shlibpath_var_GCJ=no
25367       ;;
25368
25369     newsos6)
25370       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25371       hardcode_direct_GCJ=yes
25372       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25373       hardcode_libdir_separator_GCJ=:
25374       hardcode_shlibpath_var_GCJ=no
25375       ;;
25376
25377     openbsd*)
25378       hardcode_direct_GCJ=yes
25379       hardcode_shlibpath_var_GCJ=no
25380       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25381         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25382         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25383         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25384         export_dynamic_flag_spec_GCJ='${wl}-E'
25385       else
25386        case $host_os in
25387          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25388            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25389            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25390            ;;
25391          *)
25392            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25393            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25394            ;;
25395        esac
25396       fi
25397       ;;
25398
25399     os2*)
25400       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25401       hardcode_minus_L_GCJ=yes
25402       allow_undefined_flag_GCJ=unsupported
25403       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'
25404       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25405       ;;
25406
25407     osf3*)
25408       if test "$GCC" = yes; then
25409         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25410         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'
25411       else
25412         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25413         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'
25414       fi
25415       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25416       hardcode_libdir_separator_GCJ=:
25417       ;;
25418
25419     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25420       if test "$GCC" = yes; then
25421         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25422         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'
25423         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25424       else
25425         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25426         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'
25427         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~
25428         $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'
25429
25430         # Both c and cxx compiler support -rpath directly
25431         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25432       fi
25433       hardcode_libdir_separator_GCJ=:
25434       ;;
25435
25436     solaris*)
25437       no_undefined_flag_GCJ=' -z text'
25438       if test "$GCC" = yes; then
25439         wlarc='${wl}'
25440         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25442           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25443       else
25444         wlarc=''
25445         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25446         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25447         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25448       fi
25449       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450       hardcode_shlibpath_var_GCJ=no
25451       case $host_os in
25452       solaris2.[0-5] | solaris2.[0-5].*) ;;
25453       *)
25454         # The compiler driver will combine linker options so we
25455         # cannot just pass the convience library names through
25456         # without $wl, iff we do not link with $LD.
25457         # Luckily, gcc supports the same syntax we need for Sun Studio.
25458         # Supported since Solaris 2.6 (maybe 2.5.1?)
25459         case $wlarc in
25460         '')
25461           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25462         *)
25463           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' ;;
25464         esac ;;
25465       esac
25466       link_all_deplibs_GCJ=yes
25467       ;;
25468
25469     sunos4*)
25470       if test "x$host_vendor" = xsequent; then
25471         # Use $CC to link under sequent, because it throws in some extra .o
25472         # files that make .init and .fini sections work.
25473         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25474       else
25475         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25476       fi
25477       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478       hardcode_direct_GCJ=yes
25479       hardcode_minus_L_GCJ=yes
25480       hardcode_shlibpath_var_GCJ=no
25481       ;;
25482
25483     sysv4)
25484       case $host_vendor in
25485         sni)
25486           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25487           hardcode_direct_GCJ=yes # is this really true???
25488         ;;
25489         siemens)
25490           ## LD is ld it makes a PLAMLIB
25491           ## CC just makes a GrossModule.
25492           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25493           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25494           hardcode_direct_GCJ=no
25495         ;;
25496         motorola)
25497           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25499         ;;
25500       esac
25501       runpath_var='LD_RUN_PATH'
25502       hardcode_shlibpath_var_GCJ=no
25503       ;;
25504
25505     sysv4.3*)
25506       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25507       hardcode_shlibpath_var_GCJ=no
25508       export_dynamic_flag_spec_GCJ='-Bexport'
25509       ;;
25510
25511     sysv4*MP*)
25512       if test -d /usr/nec; then
25513         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514         hardcode_shlibpath_var_GCJ=no
25515         runpath_var=LD_RUN_PATH
25516         hardcode_runpath_var=yes
25517         ld_shlibs_GCJ=yes
25518       fi
25519       ;;
25520
25521     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25522       no_undefined_flag_GCJ='${wl}-z,text'
25523       archive_cmds_need_lc_GCJ=no
25524       hardcode_shlibpath_var_GCJ=no
25525       runpath_var='LD_RUN_PATH'
25526
25527       if test "$GCC" = yes; then
25528         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25529         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25530       else
25531         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25532         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25533       fi
25534       ;;
25535
25536     sysv5* | sco3.2v5* | sco5v6*)
25537       # Note: We can NOT use -z defs as we might desire, because we do not
25538       # link with -lc, and that would cause any symbols used from libc to
25539       # always be unresolved, which means just about no library would
25540       # ever link correctly.  If we're not using GNU ld we use -z text
25541       # though, which does catch some bad symbols but isn't as heavy-handed
25542       # as -z defs.
25543       no_undefined_flag_GCJ='${wl}-z,text'
25544       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25545       archive_cmds_need_lc_GCJ=no
25546       hardcode_shlibpath_var_GCJ=no
25547       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25548       hardcode_libdir_separator_GCJ=':'
25549       link_all_deplibs_GCJ=yes
25550       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25551       runpath_var='LD_RUN_PATH'
25552
25553       if test "$GCC" = yes; then
25554         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25555         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25556       else
25557         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25558         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25559       fi
25560       ;;
25561
25562     uts4*)
25563       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25564       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25565       hardcode_shlibpath_var_GCJ=no
25566       ;;
25567
25568     *)
25569       ld_shlibs_GCJ=no
25570       ;;
25571     esac
25572   fi
25573
25574 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25575 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25576 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25577
25578 #
25579 # Do we need to explicitly link libc?
25580 #
25581 case "x$archive_cmds_need_lc_GCJ" in
25582 x|xyes)
25583   # Assume -lc should be added
25584   archive_cmds_need_lc_GCJ=yes
25585
25586   if test "$enable_shared" = yes && test "$GCC" = yes; then
25587     case $archive_cmds_GCJ in
25588     *'~'*)
25589       # FIXME: we may have to deal with multi-command sequences.
25590       ;;
25591     '$CC '*)
25592       # Test whether the compiler implicitly links with -lc since on some
25593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25594       # to ld, don't add -lc before -lgcc.
25595       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25597       $rm conftest*
25598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25599
25600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601   (eval $ac_compile) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } 2>conftest.err; then
25605         soname=conftest
25606         lib=conftest
25607         libobjs=conftest.$ac_objext
25608         deplibs=
25609         wl=$lt_prog_compiler_wl_GCJ
25610         pic_flag=$lt_prog_compiler_pic_GCJ
25611         compiler_flags=-v
25612         linker_flags=-v
25613         verstring=
25614         output_objdir=.
25615         libname=conftest
25616         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25617         allow_undefined_flag_GCJ=
25618         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25619   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25620   ac_status=$?
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); }
25623         then
25624           archive_cmds_need_lc_GCJ=no
25625         else
25626           archive_cmds_need_lc_GCJ=yes
25627         fi
25628         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25629       else
25630         cat conftest.err 1>&5
25631       fi
25632       $rm conftest*
25633       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25634 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25635       ;;
25636     esac
25637   fi
25638   ;;
25639 esac
25640
25641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25643 library_names_spec=
25644 libname_spec='lib$name'
25645 soname_spec=
25646 shrext_cmds=".so"
25647 postinstall_cmds=
25648 postuninstall_cmds=
25649 finish_cmds=
25650 finish_eval=
25651 shlibpath_var=
25652 shlibpath_overrides_runpath=unknown
25653 version_type=none
25654 dynamic_linker="$host_os ld.so"
25655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25656 if test "$GCC" = yes; then
25657   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25658   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25659     # if the path contains ";" then we assume it to be the separator
25660     # otherwise default to the standard path separator (i.e. ":") - it is
25661     # assumed that no part of a normal pathname contains ";" but that should
25662     # okay in the real world where ";" in dirpaths is itself problematic.
25663     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664   else
25665     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25666   fi
25667 else
25668   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25669 fi
25670 need_lib_prefix=unknown
25671 hardcode_into_libs=no
25672
25673 # when you set need_version to no, make sure it does not cause -set_version
25674 # flags to be left without arguments
25675 need_version=unknown
25676
25677 case $host_os in
25678 aix3*)
25679   version_type=linux
25680   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25681   shlibpath_var=LIBPATH
25682
25683   # AIX 3 has no versioning support, so we append a major version to the name.
25684   soname_spec='${libname}${release}${shared_ext}$major'
25685   ;;
25686
25687 aix4* | aix5*)
25688   version_type=linux
25689   need_lib_prefix=no
25690   need_version=no
25691   hardcode_into_libs=yes
25692   if test "$host_cpu" = ia64; then
25693     # AIX 5 supports IA64
25694     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25695     shlibpath_var=LD_LIBRARY_PATH
25696   else
25697     # With GCC up to 2.95.x, collect2 would create an import file
25698     # for dependence libraries.  The import file would start with
25699     # the line `#! .'.  This would cause the generated library to
25700     # depend on `.', always an invalid library.  This was fixed in
25701     # development snapshots of GCC prior to 3.0.
25702     case $host_os in
25703       aix4 | aix4.[01] | aix4.[01].*)
25704       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25705            echo ' yes '
25706            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25707         :
25708       else
25709         can_build_shared=no
25710       fi
25711       ;;
25712     esac
25713     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25714     # soname into executable. Probably we can add versioning support to
25715     # collect2, so additional links can be useful in future.
25716     if test "$aix_use_runtimelinking" = yes; then
25717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25718       # instead of lib<name>.a to let people know that these are not
25719       # typical AIX shared libraries.
25720       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721     else
25722       # We preserve .a as extension for shared libraries through AIX4.2
25723       # and later when we are not doing run time linking.
25724       library_names_spec='${libname}${release}.a $libname.a'
25725       soname_spec='${libname}${release}${shared_ext}$major'
25726     fi
25727     shlibpath_var=LIBPATH
25728   fi
25729   ;;
25730
25731 amigaos*)
25732   library_names_spec='$libname.ixlibrary $libname.a'
25733   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25734   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'
25735   ;;
25736
25737 beos*)
25738   library_names_spec='${libname}${shared_ext}'
25739   dynamic_linker="$host_os ld.so"
25740   shlibpath_var=LIBRARY_PATH
25741   ;;
25742
25743 bsdi[45]*)
25744   version_type=linux
25745   need_version=no
25746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747   soname_spec='${libname}${release}${shared_ext}$major'
25748   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25749   shlibpath_var=LD_LIBRARY_PATH
25750   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25751   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25752   # the default ld.so.conf also contains /usr/contrib/lib and
25753   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25754   # libtool to hard-code these into programs
25755   ;;
25756
25757 cygwin* | mingw* | pw32*)
25758   version_type=windows
25759   shrext_cmds=".dll"
25760   need_version=no
25761   need_lib_prefix=no
25762
25763   case $GCC,$host_os in
25764   yes,cygwin* | yes,mingw* | yes,pw32*)
25765     library_names_spec='$libname.dll.a'
25766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25767     postinstall_cmds='base_file=`basename \${file}`~
25768       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25769       dldir=$destdir/`dirname \$dlpath`~
25770       test -d \$dldir || mkdir -p \$dldir~
25771       $install_prog $dir/$dlname \$dldir/$dlname~
25772       chmod a+x \$dldir/$dlname'
25773     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25774       dlpath=$dir/\$dldll~
25775        $rm \$dlpath'
25776     shlibpath_overrides_runpath=yes
25777
25778     case $host_os in
25779     cygwin*)
25780       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25781       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25782       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25783       ;;
25784     mingw*)
25785       # MinGW DLLs use traditional 'lib' prefix
25786       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25787       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25788       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25789         # It is most probably a Windows format PATH printed by
25790         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25791         # path with ; separators, and with drive letters. We can handle the
25792         # drive letters (cygwin fileutils understands them), so leave them,
25793         # especially as we might pass files found there to a mingw objdump,
25794         # which wouldn't understand a cygwinified path. Ahh.
25795         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25796       else
25797         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25798       fi
25799       ;;
25800     pw32*)
25801       # pw32 DLLs use 'pw' prefix rather than 'lib'
25802       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25803       ;;
25804     esac
25805     ;;
25806
25807   *)
25808     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25809     ;;
25810   esac
25811   dynamic_linker='Win32 ld.exe'
25812   # FIXME: first we should search . and the directory the executable is in
25813   shlibpath_var=PATH
25814   ;;
25815
25816 darwin* | rhapsody*)
25817   dynamic_linker="$host_os dyld"
25818   version_type=darwin
25819   need_lib_prefix=no
25820   need_version=no
25821   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25822   soname_spec='${libname}${release}${major}$shared_ext'
25823   shlibpath_overrides_runpath=yes
25824   shlibpath_var=DYLD_LIBRARY_PATH
25825   shrext_cmds='.dylib'
25826   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25827   if test "$GCC" = yes; then
25828     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"`
25829   else
25830     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25831   fi
25832   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25833   ;;
25834
25835 dgux*)
25836   version_type=linux
25837   need_lib_prefix=no
25838   need_version=no
25839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25840   soname_spec='${libname}${release}${shared_ext}$major'
25841   shlibpath_var=LD_LIBRARY_PATH
25842   ;;
25843
25844 freebsd1*)
25845   dynamic_linker=no
25846   ;;
25847
25848 kfreebsd*-gnu)
25849   version_type=linux
25850   need_lib_prefix=no
25851   need_version=no
25852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853   soname_spec='${libname}${release}${shared_ext}$major'
25854   shlibpath_var=LD_LIBRARY_PATH
25855   shlibpath_overrides_runpath=no
25856   hardcode_into_libs=yes
25857   dynamic_linker='GNU ld.so'
25858   ;;
25859
25860 freebsd* | dragonfly*)
25861   # DragonFly does not have aout.  When/if they implement a new
25862   # versioning mechanism, adjust this.
25863   if test -x /usr/bin/objformat; then
25864     objformat=`/usr/bin/objformat`
25865   else
25866     case $host_os in
25867     freebsd[123]*) objformat=aout ;;
25868     *) objformat=elf ;;
25869     esac
25870   fi
25871   version_type=freebsd-$objformat
25872   case $version_type in
25873     freebsd-elf*)
25874       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25875       need_version=no
25876       need_lib_prefix=no
25877       ;;
25878     freebsd-*)
25879       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25880       need_version=yes
25881       ;;
25882   esac
25883   shlibpath_var=LD_LIBRARY_PATH
25884   case $host_os in
25885   freebsd2*)
25886     shlibpath_overrides_runpath=yes
25887     ;;
25888   freebsd3.[01]* | freebsdelf3.[01]*)
25889     shlibpath_overrides_runpath=yes
25890     hardcode_into_libs=yes
25891     ;;
25892   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25893   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25894     shlibpath_overrides_runpath=no
25895     hardcode_into_libs=yes
25896     ;;
25897   freebsd*) # from 4.6 on
25898     shlibpath_overrides_runpath=yes
25899     hardcode_into_libs=yes
25900     ;;
25901   esac
25902   ;;
25903
25904 gnu*)
25905   version_type=linux
25906   need_lib_prefix=no
25907   need_version=no
25908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25909   soname_spec='${libname}${release}${shared_ext}$major'
25910   shlibpath_var=LD_LIBRARY_PATH
25911   hardcode_into_libs=yes
25912   ;;
25913
25914 hpux9* | hpux10* | hpux11*)
25915   # Give a soname corresponding to the major version so that dld.sl refuses to
25916   # link against other versions.
25917   version_type=sunos
25918   need_lib_prefix=no
25919   need_version=no
25920   case $host_cpu in
25921   ia64*)
25922     shrext_cmds='.so'
25923     hardcode_into_libs=yes
25924     dynamic_linker="$host_os dld.so"
25925     shlibpath_var=LD_LIBRARY_PATH
25926     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928     soname_spec='${libname}${release}${shared_ext}$major'
25929     if test "X$HPUX_IA64_MODE" = X32; then
25930       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25931     else
25932       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25933     fi
25934     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25935     ;;
25936    hppa*64*)
25937      shrext_cmds='.sl'
25938      hardcode_into_libs=yes
25939      dynamic_linker="$host_os dld.sl"
25940      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25941      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25943      soname_spec='${libname}${release}${shared_ext}$major'
25944      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25945      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25946      ;;
25947    *)
25948     shrext_cmds='.sl'
25949     dynamic_linker="$host_os dld.sl"
25950     shlibpath_var=SHLIB_PATH
25951     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953     soname_spec='${libname}${release}${shared_ext}$major'
25954     ;;
25955   esac
25956   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25957   postinstall_cmds='chmod 555 $lib'
25958   ;;
25959
25960 interix3*)
25961   version_type=linux
25962   need_lib_prefix=no
25963   need_version=no
25964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25965   soname_spec='${libname}${release}${shared_ext}$major'
25966   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25967   shlibpath_var=LD_LIBRARY_PATH
25968   shlibpath_overrides_runpath=no
25969   hardcode_into_libs=yes
25970   ;;
25971
25972 irix5* | irix6* | nonstopux*)
25973   case $host_os in
25974     nonstopux*) version_type=nonstopux ;;
25975     *)
25976         if test "$lt_cv_prog_gnu_ld" = yes; then
25977                 version_type=linux
25978         else
25979                 version_type=irix
25980         fi ;;
25981   esac
25982   need_lib_prefix=no
25983   need_version=no
25984   soname_spec='${libname}${release}${shared_ext}$major'
25985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25986   case $host_os in
25987   irix5* | nonstopux*)
25988     libsuff= shlibsuff=
25989     ;;
25990   *)
25991     case $LD in # libtool.m4 will add one of these switches to LD
25992     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25993       libsuff= shlibsuff= libmagic=32-bit;;
25994     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25995       libsuff=32 shlibsuff=N32 libmagic=N32;;
25996     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25997       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25998     *) libsuff= shlibsuff= libmagic=never-match;;
25999     esac
26000     ;;
26001   esac
26002   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26003   shlibpath_overrides_runpath=no
26004   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26005   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26006   hardcode_into_libs=yes
26007   ;;
26008
26009 # No shared lib support for Linux oldld, aout, or coff.
26010 linux*oldld* | linux*aout* | linux*coff*)
26011   dynamic_linker=no
26012   ;;
26013
26014 # This must be Linux ELF.
26015 linux*)
26016   version_type=linux
26017   need_lib_prefix=no
26018   need_version=no
26019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26020   soname_spec='${libname}${release}${shared_ext}$major'
26021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26022   shlibpath_var=LD_LIBRARY_PATH
26023   shlibpath_overrides_runpath=no
26024   # This implies no fast_install, which is unacceptable.
26025   # Some rework will be needed to allow for fast_install
26026   # before this can be enabled.
26027   hardcode_into_libs=yes
26028
26029   # Append ld.so.conf contents to the search path
26030   if test -f /etc/ld.so.conf; then
26031     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' ' '`
26032     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26033   fi
26034
26035   # We used to test for /lib/ld.so.1 and disable shared libraries on
26036   # powerpc, because MkLinux only supported shared libraries with the
26037   # GNU dynamic linker.  Since this was broken with cross compilers,
26038   # most powerpc-linux boxes support dynamic linking these days and
26039   # people can always --disable-shared, the test was removed, and we
26040   # assume the GNU/Linux dynamic linker is in use.
26041   dynamic_linker='GNU/Linux ld.so'
26042   ;;
26043
26044 knetbsd*-gnu)
26045   version_type=linux
26046   need_lib_prefix=no
26047   need_version=no
26048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26049   soname_spec='${libname}${release}${shared_ext}$major'
26050   shlibpath_var=LD_LIBRARY_PATH
26051   shlibpath_overrides_runpath=no
26052   hardcode_into_libs=yes
26053   dynamic_linker='GNU ld.so'
26054   ;;
26055
26056 netbsd*)
26057   version_type=sunos
26058   need_lib_prefix=no
26059   need_version=no
26060   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26062     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26063     dynamic_linker='NetBSD (a.out) ld.so'
26064   else
26065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26066     soname_spec='${libname}${release}${shared_ext}$major'
26067     dynamic_linker='NetBSD ld.elf_so'
26068   fi
26069   shlibpath_var=LD_LIBRARY_PATH
26070   shlibpath_overrides_runpath=yes
26071   hardcode_into_libs=yes
26072   ;;
26073
26074 newsos6)
26075   version_type=linux
26076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077   shlibpath_var=LD_LIBRARY_PATH
26078   shlibpath_overrides_runpath=yes
26079   ;;
26080
26081 nto-qnx*)
26082   version_type=linux
26083   need_lib_prefix=no
26084   need_version=no
26085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26086   soname_spec='${libname}${release}${shared_ext}$major'
26087   shlibpath_var=LD_LIBRARY_PATH
26088   shlibpath_overrides_runpath=yes
26089   ;;
26090
26091 openbsd*)
26092   version_type=sunos
26093   sys_lib_dlsearch_path_spec="/usr/lib"
26094   need_lib_prefix=no
26095   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26096   case $host_os in
26097     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26098     *)                         need_version=no  ;;
26099   esac
26100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26102   shlibpath_var=LD_LIBRARY_PATH
26103   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26104     case $host_os in
26105       openbsd2.[89] | openbsd2.[89].*)
26106         shlibpath_overrides_runpath=no
26107         ;;
26108       *)
26109         shlibpath_overrides_runpath=yes
26110         ;;
26111       esac
26112   else
26113     shlibpath_overrides_runpath=yes
26114   fi
26115   ;;
26116
26117 os2*)
26118   libname_spec='$name'
26119   shrext_cmds=".dll"
26120   need_lib_prefix=no
26121   library_names_spec='$libname${shared_ext} $libname.a'
26122   dynamic_linker='OS/2 ld.exe'
26123   shlibpath_var=LIBPATH
26124   ;;
26125
26126 osf3* | osf4* | osf5*)
26127   version_type=osf
26128   need_lib_prefix=no
26129   need_version=no
26130   soname_spec='${libname}${release}${shared_ext}$major'
26131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26132   shlibpath_var=LD_LIBRARY_PATH
26133   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26134   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26135   ;;
26136
26137 solaris*)
26138   version_type=linux
26139   need_lib_prefix=no
26140   need_version=no
26141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142   soname_spec='${libname}${release}${shared_ext}$major'
26143   shlibpath_var=LD_LIBRARY_PATH
26144   shlibpath_overrides_runpath=yes
26145   hardcode_into_libs=yes
26146   # ldd complains unless libraries are executable
26147   postinstall_cmds='chmod +x $lib'
26148   ;;
26149
26150 sunos4*)
26151   version_type=sunos
26152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26153   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26154   shlibpath_var=LD_LIBRARY_PATH
26155   shlibpath_overrides_runpath=yes
26156   if test "$with_gnu_ld" = yes; then
26157     need_lib_prefix=no
26158   fi
26159   need_version=yes
26160   ;;
26161
26162 sysv4 | sysv4.3*)
26163   version_type=linux
26164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26165   soname_spec='${libname}${release}${shared_ext}$major'
26166   shlibpath_var=LD_LIBRARY_PATH
26167   case $host_vendor in
26168     sni)
26169       shlibpath_overrides_runpath=no
26170       need_lib_prefix=no
26171       export_dynamic_flag_spec='${wl}-Blargedynsym'
26172       runpath_var=LD_RUN_PATH
26173       ;;
26174     siemens)
26175       need_lib_prefix=no
26176       ;;
26177     motorola)
26178       need_lib_prefix=no
26179       need_version=no
26180       shlibpath_overrides_runpath=no
26181       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26182       ;;
26183   esac
26184   ;;
26185
26186 sysv4*MP*)
26187   if test -d /usr/nec ;then
26188     version_type=linux
26189     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26190     soname_spec='$libname${shared_ext}.$major'
26191     shlibpath_var=LD_LIBRARY_PATH
26192   fi
26193   ;;
26194
26195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26196   version_type=freebsd-elf
26197   need_lib_prefix=no
26198   need_version=no
26199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26200   soname_spec='${libname}${release}${shared_ext}$major'
26201   shlibpath_var=LD_LIBRARY_PATH
26202   hardcode_into_libs=yes
26203   if test "$with_gnu_ld" = yes; then
26204     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26205     shlibpath_overrides_runpath=no
26206   else
26207     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26208     shlibpath_overrides_runpath=yes
26209     case $host_os in
26210       sco3.2v5*)
26211         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26212         ;;
26213     esac
26214   fi
26215   sys_lib_dlsearch_path_spec='/usr/lib'
26216   ;;
26217
26218 uts4*)
26219   version_type=linux
26220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221   soname_spec='${libname}${release}${shared_ext}$major'
26222   shlibpath_var=LD_LIBRARY_PATH
26223   ;;
26224
26225 *)
26226   dynamic_linker=no
26227   ;;
26228 esac
26229 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26230 echo "${ECHO_T}$dynamic_linker" >&6; }
26231 test "$dynamic_linker" = no && can_build_shared=no
26232
26233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26234 if test "$GCC" = yes; then
26235   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26236 fi
26237
26238 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26239 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26240 hardcode_action_GCJ=
26241 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26242    test -n "$runpath_var_GCJ" || \
26243    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26244
26245   # We can hardcode non-existant directories.
26246   if test "$hardcode_direct_GCJ" != no &&
26247      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26248      # have to relink, otherwise we might link with an installed library
26249      # when we should be linking with a yet-to-be-installed one
26250      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26251      test "$hardcode_minus_L_GCJ" != no; then
26252     # Linking always hardcodes the temporary library directory.
26253     hardcode_action_GCJ=relink
26254   else
26255     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26256     hardcode_action_GCJ=immediate
26257   fi
26258 else
26259   # We cannot hardcode anything, or else we can only hardcode existing
26260   # directories.
26261   hardcode_action_GCJ=unsupported
26262 fi
26263 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26264 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26265
26266 if test "$hardcode_action_GCJ" = relink; then
26267   # Fast installation is not supported
26268   enable_fast_install=no
26269 elif test "$shlibpath_overrides_runpath" = yes ||
26270      test "$enable_shared" = no; then
26271   # Fast installation is not necessary
26272   enable_fast_install=needless
26273 fi
26274
26275
26276 # The else clause should only fire when bootstrapping the
26277 # libtool distribution, otherwise you forgot to ship ltmain.sh
26278 # with your package, and you will get complaints that there are
26279 # no rules to generate ltmain.sh.
26280 if test -f "$ltmain"; then
26281   # See if we are running on zsh, and set the options which allow our commands through
26282   # without removal of \ escapes.
26283   if test -n "${ZSH_VERSION+set}" ; then
26284     setopt NO_GLOB_SUBST
26285   fi
26286   # Now quote all the things that may contain metacharacters while being
26287   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26288   # variables and quote the copies for generation of the libtool script.
26289   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26290     SED SHELL STRIP \
26291     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26292     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26293     deplibs_check_method reload_flag reload_cmds need_locks \
26294     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26295     lt_cv_sys_global_symbol_to_c_name_address \
26296     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26297     old_postinstall_cmds old_postuninstall_cmds \
26298     compiler_GCJ \
26299     CC_GCJ \
26300     LD_GCJ \
26301     lt_prog_compiler_wl_GCJ \
26302     lt_prog_compiler_pic_GCJ \
26303     lt_prog_compiler_static_GCJ \
26304     lt_prog_compiler_no_builtin_flag_GCJ \
26305     export_dynamic_flag_spec_GCJ \
26306     thread_safe_flag_spec_GCJ \
26307     whole_archive_flag_spec_GCJ \
26308     enable_shared_with_static_runtimes_GCJ \
26309     old_archive_cmds_GCJ \
26310     old_archive_from_new_cmds_GCJ \
26311     predep_objects_GCJ \
26312     postdep_objects_GCJ \
26313     predeps_GCJ \
26314     postdeps_GCJ \
26315     compiler_lib_search_path_GCJ \
26316     archive_cmds_GCJ \
26317     archive_expsym_cmds_GCJ \
26318     postinstall_cmds_GCJ \
26319     postuninstall_cmds_GCJ \
26320     old_archive_from_expsyms_cmds_GCJ \
26321     allow_undefined_flag_GCJ \
26322     no_undefined_flag_GCJ \
26323     export_symbols_cmds_GCJ \
26324     hardcode_libdir_flag_spec_GCJ \
26325     hardcode_libdir_flag_spec_ld_GCJ \
26326     hardcode_libdir_separator_GCJ \
26327     hardcode_automatic_GCJ \
26328     module_cmds_GCJ \
26329     module_expsym_cmds_GCJ \
26330     lt_cv_prog_compiler_c_o_GCJ \
26331     exclude_expsyms_GCJ \
26332     include_expsyms_GCJ; do
26333
26334     case $var in
26335     old_archive_cmds_GCJ | \
26336     old_archive_from_new_cmds_GCJ | \
26337     archive_cmds_GCJ | \
26338     archive_expsym_cmds_GCJ | \
26339     module_cmds_GCJ | \
26340     module_expsym_cmds_GCJ | \
26341     old_archive_from_expsyms_cmds_GCJ | \
26342     export_symbols_cmds_GCJ | \
26343     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26344     postinstall_cmds | postuninstall_cmds | \
26345     old_postinstall_cmds | old_postuninstall_cmds | \
26346     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26347       # Double-quote double-evaled strings.
26348       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26349       ;;
26350     *)
26351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26352       ;;
26353     esac
26354   done
26355
26356   case $lt_echo in
26357   *'\$0 --fallback-echo"')
26358     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26359     ;;
26360   esac
26361
26362 cfgfile="$ofile"
26363
26364   cat <<__EOF__ >> "$cfgfile"
26365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26366
26367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26368
26369 # Shell to use when invoking shell scripts.
26370 SHELL=$lt_SHELL
26371
26372 # Whether or not to build shared libraries.
26373 build_libtool_libs=$enable_shared
26374
26375 # Whether or not to build static libraries.
26376 build_old_libs=$enable_static
26377
26378 # Whether or not to add -lc for building shared libraries.
26379 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26380
26381 # Whether or not to disallow shared libs when runtime libs are static
26382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26383
26384 # Whether or not to optimize for fast installation.
26385 fast_install=$enable_fast_install
26386
26387 # The host system.
26388 host_alias=$host_alias
26389 host=$host
26390 host_os=$host_os
26391
26392 # The build system.
26393 build_alias=$build_alias
26394 build=$build
26395 build_os=$build_os
26396
26397 # An echo program that does not interpret backslashes.
26398 echo=$lt_echo
26399
26400 # The archiver.
26401 AR=$lt_AR
26402 AR_FLAGS=$lt_AR_FLAGS
26403
26404 # A C compiler.
26405 LTCC=$lt_LTCC
26406
26407 # LTCC compiler flags.
26408 LTCFLAGS=$lt_LTCFLAGS
26409
26410 # A language-specific compiler.
26411 CC=$lt_compiler_GCJ
26412
26413 # Is the compiler the GNU C compiler?
26414 with_gcc=$GCC_GCJ
26415
26416 # An ERE matcher.
26417 EGREP=$lt_EGREP
26418
26419 # The linker used to build libraries.
26420 LD=$lt_LD_GCJ
26421
26422 # Whether we need hard or soft links.
26423 LN_S=$lt_LN_S
26424
26425 # A BSD-compatible nm program.
26426 NM=$lt_NM
26427
26428 # A symbol stripping program
26429 STRIP=$lt_STRIP
26430
26431 # Used to examine libraries when file_magic_cmd begins "file"
26432 MAGIC_CMD=$MAGIC_CMD
26433
26434 # Used on cygwin: DLL creation program.
26435 DLLTOOL="$DLLTOOL"
26436
26437 # Used on cygwin: object dumper.
26438 OBJDUMP="$OBJDUMP"
26439
26440 # Used on cygwin: assembler.
26441 AS="$AS"
26442
26443 # The name of the directory that contains temporary libtool files.
26444 objdir=$objdir
26445
26446 # How to create reloadable object files.
26447 reload_flag=$lt_reload_flag
26448 reload_cmds=$lt_reload_cmds
26449
26450 # How to pass a linker flag through the compiler.
26451 wl=$lt_lt_prog_compiler_wl_GCJ
26452
26453 # Object file suffix (normally "o").
26454 objext="$ac_objext"
26455
26456 # Old archive suffix (normally "a").
26457 libext="$libext"
26458
26459 # Shared library suffix (normally ".so").
26460 shrext_cmds='$shrext_cmds'
26461
26462 # Executable file suffix (normally "").
26463 exeext="$exeext"
26464
26465 # Additional compiler flags for building library objects.
26466 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26467 pic_mode=$pic_mode
26468
26469 # What is the maximum length of a command?
26470 max_cmd_len=$lt_cv_sys_max_cmd_len
26471
26472 # Does compiler simultaneously support -c and -o options?
26473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26474
26475 # Must we lock files when doing compilation?
26476 need_locks=$lt_need_locks
26477
26478 # Do we need the lib prefix for modules?
26479 need_lib_prefix=$need_lib_prefix
26480
26481 # Do we need a version for libraries?
26482 need_version=$need_version
26483
26484 # Whether dlopen is supported.
26485 dlopen_support=$enable_dlopen
26486
26487 # Whether dlopen of programs is supported.
26488 dlopen_self=$enable_dlopen_self
26489
26490 # Whether dlopen of statically linked programs is supported.
26491 dlopen_self_static=$enable_dlopen_self_static
26492
26493 # Compiler flag to prevent dynamic linking.
26494 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26495
26496 # Compiler flag to turn off builtin functions.
26497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26498
26499 # Compiler flag to allow reflexive dlopens.
26500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26501
26502 # Compiler flag to generate shared objects directly from archives.
26503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26504
26505 # Compiler flag to generate thread-safe objects.
26506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26507
26508 # Library versioning type.
26509 version_type=$version_type
26510
26511 # Format of library name prefix.
26512 libname_spec=$lt_libname_spec
26513
26514 # List of archive names.  First name is the real one, the rest are links.
26515 # The last name is the one that the linker finds with -lNAME.
26516 library_names_spec=$lt_library_names_spec
26517
26518 # The coded name of the library, if different from the real name.
26519 soname_spec=$lt_soname_spec
26520
26521 # Commands used to build and install an old-style archive.
26522 RANLIB=$lt_RANLIB
26523 old_archive_cmds=$lt_old_archive_cmds_GCJ
26524 old_postinstall_cmds=$lt_old_postinstall_cmds
26525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26526
26527 # Create an old-style archive from a shared archive.
26528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26529
26530 # Create a temporary old-style archive to link instead of a shared archive.
26531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26532
26533 # Commands used to build and install a shared archive.
26534 archive_cmds=$lt_archive_cmds_GCJ
26535 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26536 postinstall_cmds=$lt_postinstall_cmds
26537 postuninstall_cmds=$lt_postuninstall_cmds
26538
26539 # Commands used to build a loadable module (assumed same as above if empty)
26540 module_cmds=$lt_module_cmds_GCJ
26541 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26542
26543 # Commands to strip libraries.
26544 old_striplib=$lt_old_striplib
26545 striplib=$lt_striplib
26546
26547 # Dependencies to place before the objects being linked to create a
26548 # shared library.
26549 predep_objects=$lt_predep_objects_GCJ
26550
26551 # Dependencies to place after the objects being linked to create a
26552 # shared library.
26553 postdep_objects=$lt_postdep_objects_GCJ
26554
26555 # Dependencies to place before the objects being linked to create a
26556 # shared library.
26557 predeps=$lt_predeps_GCJ
26558
26559 # Dependencies to place after the objects being linked to create a
26560 # shared library.
26561 postdeps=$lt_postdeps_GCJ
26562
26563 # The library search path used internally by the compiler when linking
26564 # a shared library.
26565 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26566
26567 # Method to check whether dependent libraries are shared objects.
26568 deplibs_check_method=$lt_deplibs_check_method
26569
26570 # Command to use when deplibs_check_method == file_magic.
26571 file_magic_cmd=$lt_file_magic_cmd
26572
26573 # Flag that allows shared libraries with undefined symbols to be built.
26574 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26575
26576 # Flag that forces no undefined symbols.
26577 no_undefined_flag=$lt_no_undefined_flag_GCJ
26578
26579 # Commands used to finish a libtool library installation in a directory.
26580 finish_cmds=$lt_finish_cmds
26581
26582 # Same as above, but a single script fragment to be evaled but not shown.
26583 finish_eval=$lt_finish_eval
26584
26585 # Take the output of nm and produce a listing of raw symbols and C names.
26586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26587
26588 # Transform the output of nm in a proper C declaration
26589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26590
26591 # Transform the output of nm in a C name address pair
26592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26593
26594 # This is the shared library runtime path variable.
26595 runpath_var=$runpath_var
26596
26597 # This is the shared library path variable.
26598 shlibpath_var=$shlibpath_var
26599
26600 # Is shlibpath searched before the hard-coded library search path?
26601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26602
26603 # How to hardcode a shared library path into an executable.
26604 hardcode_action=$hardcode_action_GCJ
26605
26606 # Whether we should hardcode library paths into libraries.
26607 hardcode_into_libs=$hardcode_into_libs
26608
26609 # Flag to hardcode \$libdir into a binary during linking.
26610 # This must work even if \$libdir does not exist.
26611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26612
26613 # If ld is used when linking, flag to hardcode \$libdir into
26614 # a binary during linking. This must work even if \$libdir does
26615 # not exist.
26616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26617
26618 # Whether we need a single -rpath flag with a separated argument.
26619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26620
26621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26622 # resulting binary.
26623 hardcode_direct=$hardcode_direct_GCJ
26624
26625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26626 # resulting binary.
26627 hardcode_minus_L=$hardcode_minus_L_GCJ
26628
26629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26630 # the resulting binary.
26631 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26632
26633 # Set to yes if building a shared library automatically hardcodes DIR into the library
26634 # and all subsequent libraries and executables linked against it.
26635 hardcode_automatic=$hardcode_automatic_GCJ
26636
26637 # Variables whose values should be saved in libtool wrapper scripts and
26638 # restored at relink time.
26639 variables_saved_for_relink="$variables_saved_for_relink"
26640
26641 # Whether libtool must link a program against all its dependency libraries.
26642 link_all_deplibs=$link_all_deplibs_GCJ
26643
26644 # Compile-time system search path for libraries
26645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26646
26647 # Run-time system search path for libraries
26648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26649
26650 # Fix the shell variable \$srcfile for the compiler.
26651 fix_srcfile_path="$fix_srcfile_path_GCJ"
26652
26653 # Set to yes if exported symbols are required.
26654 always_export_symbols=$always_export_symbols_GCJ
26655
26656 # The commands to list exported symbols.
26657 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26658
26659 # The commands to extract the exported symbol list from a shared archive.
26660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26661
26662 # Symbols that should not be listed in the preloaded symbols.
26663 exclude_expsyms=$lt_exclude_expsyms_GCJ
26664
26665 # Symbols that must always be exported.
26666 include_expsyms=$lt_include_expsyms_GCJ
26667
26668 # ### END LIBTOOL TAG CONFIG: $tagname
26669
26670 __EOF__
26671
26672
26673 else
26674   # If there is no Makefile yet, we rely on a make rule to execute
26675   # `config.status --recheck' to rerun these tests and create the
26676   # libtool script then.
26677   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26678   if test -f "$ltmain_in"; then
26679     test -f Makefile && make "$ltmain"
26680   fi
26681 fi
26682
26683
26684 ac_ext=c
26685 ac_cpp='$CPP $CPPFLAGS'
26686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26689
26690 CC="$lt_save_CC"
26691
26692         else
26693           tagname=""
26694         fi
26695         ;;
26696
26697       RC)
26698         ac_ext=c
26699 ac_cpp='$CPP $CPPFLAGS'
26700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26703
26704
26705 # Source file extension for RC test sources.
26706 ac_ext=rc
26707
26708 # Object file extension for compiled RC test sources.
26709 objext=o
26710 objext_RC=$objext
26711
26712 # Code to be used in simple compile tests
26713 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26714
26715 # Code to be used in simple link tests
26716 lt_simple_link_test_code="$lt_simple_compile_test_code"
26717
26718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26719
26720 # If no C compiler was specified, use CC.
26721 LTCC=${LTCC-"$CC"}
26722
26723 # If no C compiler flags were specified, use CFLAGS.
26724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26725
26726 # Allow CC to be a program name with arguments.
26727 compiler=$CC
26728
26729
26730 # save warnings/boilerplate of simple test code
26731 ac_outfile=conftest.$ac_objext
26732 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734 _lt_compiler_boilerplate=`cat conftest.err`
26735 $rm conftest*
26736
26737 ac_outfile=conftest.$ac_objext
26738 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26740 _lt_linker_boilerplate=`cat conftest.err`
26741 $rm conftest*
26742
26743
26744 # Allow CC to be a program name with arguments.
26745 lt_save_CC="$CC"
26746 CC=${RC-"windres"}
26747 compiler=$CC
26748 compiler_RC=$CC
26749 for cc_temp in $compiler""; do
26750   case $cc_temp in
26751     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26752     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26753     \-*) ;;
26754     *) break;;
26755   esac
26756 done
26757 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26758
26759 lt_cv_prog_compiler_c_o_RC=yes
26760
26761 # The else clause should only fire when bootstrapping the
26762 # libtool distribution, otherwise you forgot to ship ltmain.sh
26763 # with your package, and you will get complaints that there are
26764 # no rules to generate ltmain.sh.
26765 if test -f "$ltmain"; then
26766   # See if we are running on zsh, and set the options which allow our commands through
26767   # without removal of \ escapes.
26768   if test -n "${ZSH_VERSION+set}" ; then
26769     setopt NO_GLOB_SUBST
26770   fi
26771   # Now quote all the things that may contain metacharacters while being
26772   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26773   # variables and quote the copies for generation of the libtool script.
26774   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26775     SED SHELL STRIP \
26776     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26777     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26778     deplibs_check_method reload_flag reload_cmds need_locks \
26779     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26780     lt_cv_sys_global_symbol_to_c_name_address \
26781     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26782     old_postinstall_cmds old_postuninstall_cmds \
26783     compiler_RC \
26784     CC_RC \
26785     LD_RC \
26786     lt_prog_compiler_wl_RC \
26787     lt_prog_compiler_pic_RC \
26788     lt_prog_compiler_static_RC \
26789     lt_prog_compiler_no_builtin_flag_RC \
26790     export_dynamic_flag_spec_RC \
26791     thread_safe_flag_spec_RC \
26792     whole_archive_flag_spec_RC \
26793     enable_shared_with_static_runtimes_RC \
26794     old_archive_cmds_RC \
26795     old_archive_from_new_cmds_RC \
26796     predep_objects_RC \
26797     postdep_objects_RC \
26798     predeps_RC \
26799     postdeps_RC \
26800     compiler_lib_search_path_RC \
26801     archive_cmds_RC \
26802     archive_expsym_cmds_RC \
26803     postinstall_cmds_RC \
26804     postuninstall_cmds_RC \
26805     old_archive_from_expsyms_cmds_RC \
26806     allow_undefined_flag_RC \
26807     no_undefined_flag_RC \
26808     export_symbols_cmds_RC \
26809     hardcode_libdir_flag_spec_RC \
26810     hardcode_libdir_flag_spec_ld_RC \
26811     hardcode_libdir_separator_RC \
26812     hardcode_automatic_RC \
26813     module_cmds_RC \
26814     module_expsym_cmds_RC \
26815     lt_cv_prog_compiler_c_o_RC \
26816     exclude_expsyms_RC \
26817     include_expsyms_RC; do
26818
26819     case $var in
26820     old_archive_cmds_RC | \
26821     old_archive_from_new_cmds_RC | \
26822     archive_cmds_RC | \
26823     archive_expsym_cmds_RC | \
26824     module_cmds_RC | \
26825     module_expsym_cmds_RC | \
26826     old_archive_from_expsyms_cmds_RC | \
26827     export_symbols_cmds_RC | \
26828     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26829     postinstall_cmds | postuninstall_cmds | \
26830     old_postinstall_cmds | old_postuninstall_cmds | \
26831     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26832       # Double-quote double-evaled strings.
26833       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26834       ;;
26835     *)
26836       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26837       ;;
26838     esac
26839   done
26840
26841   case $lt_echo in
26842   *'\$0 --fallback-echo"')
26843     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26844     ;;
26845   esac
26846
26847 cfgfile="$ofile"
26848
26849   cat <<__EOF__ >> "$cfgfile"
26850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26851
26852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26853
26854 # Shell to use when invoking shell scripts.
26855 SHELL=$lt_SHELL
26856
26857 # Whether or not to build shared libraries.
26858 build_libtool_libs=$enable_shared
26859
26860 # Whether or not to build static libraries.
26861 build_old_libs=$enable_static
26862
26863 # Whether or not to add -lc for building shared libraries.
26864 build_libtool_need_lc=$archive_cmds_need_lc_RC
26865
26866 # Whether or not to disallow shared libs when runtime libs are static
26867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26868
26869 # Whether or not to optimize for fast installation.
26870 fast_install=$enable_fast_install
26871
26872 # The host system.
26873 host_alias=$host_alias
26874 host=$host
26875 host_os=$host_os
26876
26877 # The build system.
26878 build_alias=$build_alias
26879 build=$build
26880 build_os=$build_os
26881
26882 # An echo program that does not interpret backslashes.
26883 echo=$lt_echo
26884
26885 # The archiver.
26886 AR=$lt_AR
26887 AR_FLAGS=$lt_AR_FLAGS
26888
26889 # A C compiler.
26890 LTCC=$lt_LTCC
26891
26892 # LTCC compiler flags.
26893 LTCFLAGS=$lt_LTCFLAGS
26894
26895 # A language-specific compiler.
26896 CC=$lt_compiler_RC
26897
26898 # Is the compiler the GNU C compiler?
26899 with_gcc=$GCC_RC
26900
26901 # An ERE matcher.
26902 EGREP=$lt_EGREP
26903
26904 # The linker used to build libraries.
26905 LD=$lt_LD_RC
26906
26907 # Whether we need hard or soft links.
26908 LN_S=$lt_LN_S
26909
26910 # A BSD-compatible nm program.
26911 NM=$lt_NM
26912
26913 # A symbol stripping program
26914 STRIP=$lt_STRIP
26915
26916 # Used to examine libraries when file_magic_cmd begins "file"
26917 MAGIC_CMD=$MAGIC_CMD
26918
26919 # Used on cygwin: DLL creation program.
26920 DLLTOOL="$DLLTOOL"
26921
26922 # Used on cygwin: object dumper.
26923 OBJDUMP="$OBJDUMP"
26924
26925 # Used on cygwin: assembler.
26926 AS="$AS"
26927
26928 # The name of the directory that contains temporary libtool files.
26929 objdir=$objdir
26930
26931 # How to create reloadable object files.
26932 reload_flag=$lt_reload_flag
26933 reload_cmds=$lt_reload_cmds
26934
26935 # How to pass a linker flag through the compiler.
26936 wl=$lt_lt_prog_compiler_wl_RC
26937
26938 # Object file suffix (normally "o").
26939 objext="$ac_objext"
26940
26941 # Old archive suffix (normally "a").
26942 libext="$libext"
26943
26944 # Shared library suffix (normally ".so").
26945 shrext_cmds='$shrext_cmds'
26946
26947 # Executable file suffix (normally "").
26948 exeext="$exeext"
26949
26950 # Additional compiler flags for building library objects.
26951 pic_flag=$lt_lt_prog_compiler_pic_RC
26952 pic_mode=$pic_mode
26953
26954 # What is the maximum length of a command?
26955 max_cmd_len=$lt_cv_sys_max_cmd_len
26956
26957 # Does compiler simultaneously support -c and -o options?
26958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26959
26960 # Must we lock files when doing compilation?
26961 need_locks=$lt_need_locks
26962
26963 # Do we need the lib prefix for modules?
26964 need_lib_prefix=$need_lib_prefix
26965
26966 # Do we need a version for libraries?
26967 need_version=$need_version
26968
26969 # Whether dlopen is supported.
26970 dlopen_support=$enable_dlopen
26971
26972 # Whether dlopen of programs is supported.
26973 dlopen_self=$enable_dlopen_self
26974
26975 # Whether dlopen of statically linked programs is supported.
26976 dlopen_self_static=$enable_dlopen_self_static
26977
26978 # Compiler flag to prevent dynamic linking.
26979 link_static_flag=$lt_lt_prog_compiler_static_RC
26980
26981 # Compiler flag to turn off builtin functions.
26982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26983
26984 # Compiler flag to allow reflexive dlopens.
26985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26986
26987 # Compiler flag to generate shared objects directly from archives.
26988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26989
26990 # Compiler flag to generate thread-safe objects.
26991 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26992
26993 # Library versioning type.
26994 version_type=$version_type
26995
26996 # Format of library name prefix.
26997 libname_spec=$lt_libname_spec
26998
26999 # List of archive names.  First name is the real one, the rest are links.
27000 # The last name is the one that the linker finds with -lNAME.
27001 library_names_spec=$lt_library_names_spec
27002
27003 # The coded name of the library, if different from the real name.
27004 soname_spec=$lt_soname_spec
27005
27006 # Commands used to build and install an old-style archive.
27007 RANLIB=$lt_RANLIB
27008 old_archive_cmds=$lt_old_archive_cmds_RC
27009 old_postinstall_cmds=$lt_old_postinstall_cmds
27010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27011
27012 # Create an old-style archive from a shared archive.
27013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27014
27015 # Create a temporary old-style archive to link instead of a shared archive.
27016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27017
27018 # Commands used to build and install a shared archive.
27019 archive_cmds=$lt_archive_cmds_RC
27020 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27021 postinstall_cmds=$lt_postinstall_cmds
27022 postuninstall_cmds=$lt_postuninstall_cmds
27023
27024 # Commands used to build a loadable module (assumed same as above if empty)
27025 module_cmds=$lt_module_cmds_RC
27026 module_expsym_cmds=$lt_module_expsym_cmds_RC
27027
27028 # Commands to strip libraries.
27029 old_striplib=$lt_old_striplib
27030 striplib=$lt_striplib
27031
27032 # Dependencies to place before the objects being linked to create a
27033 # shared library.
27034 predep_objects=$lt_predep_objects_RC
27035
27036 # Dependencies to place after the objects being linked to create a
27037 # shared library.
27038 postdep_objects=$lt_postdep_objects_RC
27039
27040 # Dependencies to place before the objects being linked to create a
27041 # shared library.
27042 predeps=$lt_predeps_RC
27043
27044 # Dependencies to place after the objects being linked to create a
27045 # shared library.
27046 postdeps=$lt_postdeps_RC
27047
27048 # The library search path used internally by the compiler when linking
27049 # a shared library.
27050 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27051
27052 # Method to check whether dependent libraries are shared objects.
27053 deplibs_check_method=$lt_deplibs_check_method
27054
27055 # Command to use when deplibs_check_method == file_magic.
27056 file_magic_cmd=$lt_file_magic_cmd
27057
27058 # Flag that allows shared libraries with undefined symbols to be built.
27059 allow_undefined_flag=$lt_allow_undefined_flag_RC
27060
27061 # Flag that forces no undefined symbols.
27062 no_undefined_flag=$lt_no_undefined_flag_RC
27063
27064 # Commands used to finish a libtool library installation in a directory.
27065 finish_cmds=$lt_finish_cmds
27066
27067 # Same as above, but a single script fragment to be evaled but not shown.
27068 finish_eval=$lt_finish_eval
27069
27070 # Take the output of nm and produce a listing of raw symbols and C names.
27071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27072
27073 # Transform the output of nm in a proper C declaration
27074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27075
27076 # Transform the output of nm in a C name address pair
27077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27078
27079 # This is the shared library runtime path variable.
27080 runpath_var=$runpath_var
27081
27082 # This is the shared library path variable.
27083 shlibpath_var=$shlibpath_var
27084
27085 # Is shlibpath searched before the hard-coded library search path?
27086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27087
27088 # How to hardcode a shared library path into an executable.
27089 hardcode_action=$hardcode_action_RC
27090
27091 # Whether we should hardcode library paths into libraries.
27092 hardcode_into_libs=$hardcode_into_libs
27093
27094 # Flag to hardcode \$libdir into a binary during linking.
27095 # This must work even if \$libdir does not exist.
27096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27097
27098 # If ld is used when linking, flag to hardcode \$libdir into
27099 # a binary during linking. This must work even if \$libdir does
27100 # not exist.
27101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27102
27103 # Whether we need a single -rpath flag with a separated argument.
27104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27105
27106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27107 # resulting binary.
27108 hardcode_direct=$hardcode_direct_RC
27109
27110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27111 # resulting binary.
27112 hardcode_minus_L=$hardcode_minus_L_RC
27113
27114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27115 # the resulting binary.
27116 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27117
27118 # Set to yes if building a shared library automatically hardcodes DIR into the library
27119 # and all subsequent libraries and executables linked against it.
27120 hardcode_automatic=$hardcode_automatic_RC
27121
27122 # Variables whose values should be saved in libtool wrapper scripts and
27123 # restored at relink time.
27124 variables_saved_for_relink="$variables_saved_for_relink"
27125
27126 # Whether libtool must link a program against all its dependency libraries.
27127 link_all_deplibs=$link_all_deplibs_RC
27128
27129 # Compile-time system search path for libraries
27130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27131
27132 # Run-time system search path for libraries
27133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27134
27135 # Fix the shell variable \$srcfile for the compiler.
27136 fix_srcfile_path="$fix_srcfile_path_RC"
27137
27138 # Set to yes if exported symbols are required.
27139 always_export_symbols=$always_export_symbols_RC
27140
27141 # The commands to list exported symbols.
27142 export_symbols_cmds=$lt_export_symbols_cmds_RC
27143
27144 # The commands to extract the exported symbol list from a shared archive.
27145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27146
27147 # Symbols that should not be listed in the preloaded symbols.
27148 exclude_expsyms=$lt_exclude_expsyms_RC
27149
27150 # Symbols that must always be exported.
27151 include_expsyms=$lt_include_expsyms_RC
27152
27153 # ### END LIBTOOL TAG CONFIG: $tagname
27154
27155 __EOF__
27156
27157
27158 else
27159   # If there is no Makefile yet, we rely on a make rule to execute
27160   # `config.status --recheck' to rerun these tests and create the
27161   # libtool script then.
27162   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27163   if test -f "$ltmain_in"; then
27164     test -f Makefile && make "$ltmain"
27165   fi
27166 fi
27167
27168
27169 ac_ext=c
27170 ac_cpp='$CPP $CPPFLAGS'
27171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174
27175 CC="$lt_save_CC"
27176
27177         ;;
27178
27179       *)
27180         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27181 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27182    { (exit 1); exit 1; }; }
27183         ;;
27184       esac
27185
27186       # Append the new tag name to the list of available tags.
27187       if test -n "$tagname" ; then
27188       available_tags="$available_tags $tagname"
27189     fi
27190     fi
27191   done
27192   IFS="$lt_save_ifs"
27193
27194   # Now substitute the updated list of available tags.
27195   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27196     mv "${ofile}T" "$ofile"
27197     chmod +x "$ofile"
27198   else
27199     rm -f "${ofile}T"
27200     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27201 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27202    { (exit 1); exit 1; }; }
27203   fi
27204 fi
27205
27206
27207
27208 # This can be used to rebuild libtool when needed
27209 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27210
27211 # Always use our own libtool.
27212 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27213
27214 # Prevent multiple expansion
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236 if test "$lt_cv_dlopen_self" = "yes" ; then
27237
27238 cat >>confdefs.h <<\_ACEOF
27239 #define CAN_DLOPEN_SELF 1
27240 _ACEOF
27241
27242 fi
27243
27244
27245 if test "$WITH_LLVMGCCDIR" = "default" ; then
27246   LLVMGCC="llvm-gcc${EXEEXT}"
27247   LLVMGXX="llvm-g++${EXEEXT}"
27248   LLVMGCCCOMMAND="$LLVMGCC"
27249   LLVMGXXCOMMAND="$LLVMGXX"
27250   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27251
27252   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27253
27254   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27255 set dummy $LLVMGCC; ac_word=$2
27256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27258 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27259   echo $ECHO_N "(cached) $ECHO_C" >&6
27260 else
27261   case $LLVMGCC in
27262   [\\/]* | ?:[\\/]*)
27263   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27264   ;;
27265   *)
27266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267 for as_dir in $PATH
27268 do
27269   IFS=$as_save_IFS
27270   test -z "$as_dir" && as_dir=.
27271   for ac_exec_ext in '' $ac_executable_extensions; do
27272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27273     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27275     break 2
27276   fi
27277 done
27278 done
27279 IFS=$as_save_IFS
27280
27281   ;;
27282 esac
27283 fi
27284 LLVMGCC=$ac_cv_path_LLVMGCC
27285 if test -n "$LLVMGCC"; then
27286   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27287 echo "${ECHO_T}$LLVMGCC" >&6; }
27288 else
27289   { echo "$as_me:$LINENO: result: no" >&5
27290 echo "${ECHO_T}no" >&6; }
27291 fi
27292
27293
27294   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27295 set dummy $LLVMGXX; ac_word=$2
27296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27298 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301   case $LLVMGXX in
27302   [\\/]* | ?:[\\/]*)
27303   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27304   ;;
27305   *)
27306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27307 for as_dir in $PATH
27308 do
27309   IFS=$as_save_IFS
27310   test -z "$as_dir" && as_dir=.
27311   for ac_exec_ext in '' $ac_executable_extensions; do
27312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27313     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27315     break 2
27316   fi
27317 done
27318 done
27319 IFS=$as_save_IFS
27320
27321   ;;
27322 esac
27323 fi
27324 LLVMGXX=$ac_cv_path_LLVMGXX
27325 if test -n "$LLVMGXX"; then
27326   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27327 echo "${ECHO_T}$LLVMGXX" >&6; }
27328 else
27329   { echo "$as_me:$LINENO: result: no" >&5
27330 echo "${ECHO_T}no" >&6; }
27331 fi
27332
27333
27334 else
27335   if test -z "$LLVMGCC"; then
27336     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27337     LLVMGCCCOMMAND="$LLVMGCC"
27338   fi
27339   if test -z "$LLVMGXX"; then
27340     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27341     LLVMGXXCOMMAND="$LLVMGXX"
27342   fi
27343
27344   LLVMGCC=$LLVMGCC
27345
27346   LLVMGXX=$LLVMGXX
27347
27348   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27349
27350   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27351
27352 fi
27353
27354
27355 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27356 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27357
27358 ICC=no
27359 IXX=no
27360 case $CC in
27361   icc*|icpc*)
27362     ICC=yes
27363     IXX=yes
27364     ;;
27365    *)
27366     ;;
27367 esac
27368
27369 if test "$GCC" != "yes" && test "$ICC" != "yes"
27370 then
27371   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27372 echo "$as_me: error: gcc|icc required but not found" >&2;}
27373    { (exit 1); exit 1; }; }
27374 fi
27375
27376 if test "$GXX" != "yes" && test "$IXX" != "yes"
27377 then
27378   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27379 echo "$as_me: error: g++|icc required but not found" >&2;}
27380    { (exit 1); exit 1; }; }
27381 fi
27382
27383 if test "$GCC" = "yes"
27384 then
27385   cat >conftest.$ac_ext <<_ACEOF
27386 #if !defined(__GNUC__) || __GNUC__ < 3
27387 #error Unsupported GCC version
27388 #endif
27389
27390 _ACEOF
27391 rm -f conftest.$ac_objext
27392 if { (ac_try="$ac_compile"
27393 case "(($ac_try" in
27394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395   *) ac_try_echo=$ac_try;;
27396 esac
27397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27398   (eval "$ac_compile") 2>conftest.er1
27399   ac_status=$?
27400   grep -v '^ *+' conftest.er1 >conftest.err
27401   rm -f conftest.er1
27402   cat conftest.err >&5
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } &&
27405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27406   { (case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_try") 2>&5
27412   ac_status=$?
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); }; } &&
27415          { ac_try='test -s conftest.$ac_objext'
27416   { (case "(($ac_try" in
27417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418   *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421   (eval "$ac_try") 2>&5
27422   ac_status=$?
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); }; }; then
27425   :
27426 else
27427   echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27431 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27432    { (exit 1); exit 1; }; }
27433 fi
27434
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436 fi
27437
27438 if test -z "$llvm_cv_gnu_make_command"
27439 then
27440   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27441 echo "$as_me: error: GNU Make required but not found" >&2;}
27442    { (exit 1); exit 1; }; }
27443 fi
27444
27445 { echo "$as_me:$LINENO: result: ok" >&5
27446 echo "${ECHO_T}ok" >&6; }
27447
27448
27449
27450 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27451 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27452 if test "${ac_cv_lib_m_sin+set}" = set; then
27453   echo $ECHO_N "(cached) $ECHO_C" >&6
27454 else
27455   ac_check_lib_save_LIBS=$LIBS
27456 LIBS="-lm  $LIBS"
27457 cat >conftest.$ac_ext <<_ACEOF
27458 /* confdefs.h.  */
27459 _ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h.  */
27463
27464 /* Override any GCC internal prototype to avoid an error.
27465    Use char because int might match the return type of a GCC
27466    builtin and then its argument prototype would still apply.  */
27467 #ifdef __cplusplus
27468 extern "C"
27469 #endif
27470 char sin ();
27471 int
27472 main ()
27473 {
27474 return sin ();
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 rm -f conftest.$ac_objext conftest$ac_exeext
27480 if { (ac_try="$ac_link"
27481 case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_link") 2>conftest.er1
27487   ac_status=$?
27488   grep -v '^ *+' conftest.er1 >conftest.err
27489   rm -f conftest.er1
27490   cat conftest.err >&5
27491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492   (exit $ac_status); } &&
27493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494   { (case "(($ac_try" in
27495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496   *) ac_try_echo=$ac_try;;
27497 esac
27498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499   (eval "$ac_try") 2>&5
27500   ac_status=$?
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); }; } &&
27503          { ac_try='test -s conftest$ac_exeext'
27504   { (case "(($ac_try" in
27505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506   *) ac_try_echo=$ac_try;;
27507 esac
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509   (eval "$ac_try") 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; }; then
27513   ac_cv_lib_m_sin=yes
27514 else
27515   echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27517
27518         ac_cv_lib_m_sin=no
27519 fi
27520
27521 rm -f core conftest.err conftest.$ac_objext \
27522       conftest$ac_exeext conftest.$ac_ext
27523 LIBS=$ac_check_lib_save_LIBS
27524 fi
27525 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27526 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27527 if test $ac_cv_lib_m_sin = yes; then
27528   cat >>confdefs.h <<_ACEOF
27529 #define HAVE_LIBM 1
27530 _ACEOF
27531
27532   LIBS="-lm $LIBS"
27533
27534 fi
27535
27536 if test "$llvm_cv_os_type" = "MingW" ; then
27537
27538 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27539 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27540 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27541   echo $ECHO_N "(cached) $ECHO_C" >&6
27542 else
27543   ac_check_lib_save_LIBS=$LIBS
27544 LIBS="-limagehlp  $LIBS"
27545 cat >conftest.$ac_ext <<_ACEOF
27546 /* confdefs.h.  */
27547 _ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h.  */
27551
27552
27553 int
27554 main ()
27555 {
27556 return main ();
27557   ;
27558   return 0;
27559 }
27560 _ACEOF
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (ac_try="$ac_link"
27563 case "(($ac_try" in
27564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565   *) ac_try_echo=$ac_try;;
27566 esac
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568   (eval "$ac_link") 2>conftest.er1
27569   ac_status=$?
27570   grep -v '^ *+' conftest.er1 >conftest.err
27571   rm -f conftest.er1
27572   cat conftest.err >&5
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); } &&
27575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576   { (case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_try") 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; } &&
27585          { ac_try='test -s conftest$ac_exeext'
27586   { (case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591   (eval "$ac_try") 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; }; then
27595   ac_cv_lib_imagehlp_main=yes
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600         ac_cv_lib_imagehlp_main=no
27601 fi
27602
27603 rm -f core conftest.err conftest.$ac_objext \
27604       conftest$ac_exeext conftest.$ac_ext
27605 LIBS=$ac_check_lib_save_LIBS
27606 fi
27607 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27608 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27609 if test $ac_cv_lib_imagehlp_main = yes; then
27610   cat >>confdefs.h <<_ACEOF
27611 #define HAVE_LIBIMAGEHLP 1
27612 _ACEOF
27613
27614   LIBS="-limagehlp $LIBS"
27615
27616 fi
27617
27618
27619 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27620 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27621 if test "${ac_cv_lib_psapi_main+set}" = set; then
27622   echo $ECHO_N "(cached) $ECHO_C" >&6
27623 else
27624   ac_check_lib_save_LIBS=$LIBS
27625 LIBS="-lpsapi  $LIBS"
27626 cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h.  */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h.  */
27632
27633
27634 int
27635 main ()
27636 {
27637 return main ();
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 rm -f conftest.$ac_objext conftest$ac_exeext
27643 if { (ac_try="$ac_link"
27644 case "(($ac_try" in
27645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646   *) ac_try_echo=$ac_try;;
27647 esac
27648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649   (eval "$ac_link") 2>conftest.er1
27650   ac_status=$?
27651   grep -v '^ *+' conftest.er1 >conftest.err
27652   rm -f conftest.er1
27653   cat conftest.err >&5
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); } &&
27656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657   { (case "(($ac_try" in
27658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659   *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662   (eval "$ac_try") 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; } &&
27666          { ac_try='test -s conftest$ac_exeext'
27667   { (case "(($ac_try" in
27668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669   *) ac_try_echo=$ac_try;;
27670 esac
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672   (eval "$ac_try") 2>&5
27673   ac_status=$?
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); }; }; then
27676   ac_cv_lib_psapi_main=yes
27677 else
27678   echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681         ac_cv_lib_psapi_main=no
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext \
27685       conftest$ac_exeext conftest.$ac_ext
27686 LIBS=$ac_check_lib_save_LIBS
27687 fi
27688 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27689 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27690 if test $ac_cv_lib_psapi_main = yes; then
27691   cat >>confdefs.h <<_ACEOF
27692 #define HAVE_LIBPSAPI 1
27693 _ACEOF
27694
27695   LIBS="-lpsapi $LIBS"
27696
27697 fi
27698
27699 fi
27700
27701 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27702 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27703 if test "${ac_cv_search_dlopen+set}" = set; then
27704   echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706   ac_func_search_save_LIBS=$LIBS
27707 cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713
27714 /* Override any GCC internal prototype to avoid an error.
27715    Use char because int might match the return type of a GCC
27716    builtin and then its argument prototype would still apply.  */
27717 #ifdef __cplusplus
27718 extern "C"
27719 #endif
27720 char dlopen ();
27721 int
27722 main ()
27723 {
27724 return dlopen ();
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 for ac_lib in '' dl; do
27730   if test -z "$ac_lib"; then
27731     ac_res="none required"
27732   else
27733     ac_res=-l$ac_lib
27734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27735   fi
27736   rm -f conftest.$ac_objext conftest$ac_exeext
27737 if { (ac_try="$ac_link"
27738 case "(($ac_try" in
27739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740   *) ac_try_echo=$ac_try;;
27741 esac
27742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743   (eval "$ac_link") 2>conftest.er1
27744   ac_status=$?
27745   grep -v '^ *+' conftest.er1 >conftest.err
27746   rm -f conftest.er1
27747   cat conftest.err >&5
27748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749   (exit $ac_status); } &&
27750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27751   { (case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756   (eval "$ac_try") 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); }; } &&
27760          { ac_try='test -s conftest$ac_exeext'
27761   { (case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_try") 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; }; then
27770   ac_cv_search_dlopen=$ac_res
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775
27776 fi
27777
27778 rm -f core conftest.err conftest.$ac_objext \
27779       conftest$ac_exeext
27780   if test "${ac_cv_search_dlopen+set}" = set; then
27781   break
27782 fi
27783 done
27784 if test "${ac_cv_search_dlopen+set}" = set; then
27785   :
27786 else
27787   ac_cv_search_dlopen=no
27788 fi
27789 rm conftest.$ac_ext
27790 LIBS=$ac_func_search_save_LIBS
27791 fi
27792 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27793 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27794 ac_res=$ac_cv_search_dlopen
27795 if test "$ac_res" != no; then
27796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27797
27798 cat >>confdefs.h <<\_ACEOF
27799 #define HAVE_DLOPEN 1
27800 _ACEOF
27801
27802 else
27803   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27804 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27805 fi
27806
27807
27808 if test "$llvm_cv_enable_libffi" = "yes" ; then
27809   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27810 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27811 if test "${ac_cv_search_ffi_call+set}" = set; then
27812   echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814   ac_func_search_save_LIBS=$LIBS
27815 cat >conftest.$ac_ext <<_ACEOF
27816 /* confdefs.h.  */
27817 _ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h.  */
27821
27822 /* Override any GCC internal prototype to avoid an error.
27823    Use char because int might match the return type of a GCC
27824    builtin and then its argument prototype would still apply.  */
27825 #ifdef __cplusplus
27826 extern "C"
27827 #endif
27828 char ffi_call ();
27829 int
27830 main ()
27831 {
27832 return ffi_call ();
27833   ;
27834   return 0;
27835 }
27836 _ACEOF
27837 for ac_lib in '' ffi; do
27838   if test -z "$ac_lib"; then
27839     ac_res="none required"
27840   else
27841     ac_res=-l$ac_lib
27842     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27843   fi
27844   rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (ac_try="$ac_link"
27846 case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_link") 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } &&
27858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27859   { (case "(($ac_try" in
27860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861   *) ac_try_echo=$ac_try;;
27862 esac
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864   (eval "$ac_try") 2>&5
27865   ac_status=$?
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); }; } &&
27868          { ac_try='test -s conftest$ac_exeext'
27869   { (case "(($ac_try" in
27870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871   *) ac_try_echo=$ac_try;;
27872 esac
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874   (eval "$ac_try") 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; }; then
27878   ac_cv_search_ffi_call=$ac_res
27879 else
27880   echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27882
27883
27884 fi
27885
27886 rm -f core conftest.err conftest.$ac_objext \
27887       conftest$ac_exeext
27888   if test "${ac_cv_search_ffi_call+set}" = set; then
27889   break
27890 fi
27891 done
27892 if test "${ac_cv_search_ffi_call+set}" = set; then
27893   :
27894 else
27895   ac_cv_search_ffi_call=no
27896 fi
27897 rm conftest.$ac_ext
27898 LIBS=$ac_func_search_save_LIBS
27899 fi
27900 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27901 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27902 ac_res=$ac_cv_search_ffi_call
27903 if test "$ac_res" != no; then
27904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27905
27906 cat >>confdefs.h <<\_ACEOF
27907 #define HAVE_FFI_CALL 1
27908 _ACEOF
27909
27910 else
27911   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27912 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27913 fi
27914
27915 fi
27916
27917 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27918 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27919 if test "${ac_cv_search_mallinfo+set}" = set; then
27920   echo $ECHO_N "(cached) $ECHO_C" >&6
27921 else
27922   ac_func_search_save_LIBS=$LIBS
27923 cat >conftest.$ac_ext <<_ACEOF
27924 /* confdefs.h.  */
27925 _ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h.  */
27929
27930 /* Override any GCC internal prototype to avoid an error.
27931    Use char because int might match the return type of a GCC
27932    builtin and then its argument prototype would still apply.  */
27933 #ifdef __cplusplus
27934 extern "C"
27935 #endif
27936 char mallinfo ();
27937 int
27938 main ()
27939 {
27940 return mallinfo ();
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 for ac_lib in '' malloc; do
27946   if test -z "$ac_lib"; then
27947     ac_res="none required"
27948   else
27949     ac_res=-l$ac_lib
27950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27951   fi
27952   rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (ac_try="$ac_link"
27954 case "(($ac_try" in
27955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956   *) ac_try_echo=$ac_try;;
27957 esac
27958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959   (eval "$ac_link") 2>conftest.er1
27960   ac_status=$?
27961   grep -v '^ *+' conftest.er1 >conftest.err
27962   rm -f conftest.er1
27963   cat conftest.err >&5
27964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); } &&
27966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27967   { (case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972   (eval "$ac_try") 2>&5
27973   ac_status=$?
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); }; } &&
27976          { ac_try='test -s conftest$ac_exeext'
27977   { (case "(($ac_try" in
27978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979   *) ac_try_echo=$ac_try;;
27980 esac
27981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982   (eval "$ac_try") 2>&5
27983   ac_status=$?
27984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); }; }; then
27986   ac_cv_search_mallinfo=$ac_res
27987 else
27988   echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27990
27991
27992 fi
27993
27994 rm -f core conftest.err conftest.$ac_objext \
27995       conftest$ac_exeext
27996   if test "${ac_cv_search_mallinfo+set}" = set; then
27997   break
27998 fi
27999 done
28000 if test "${ac_cv_search_mallinfo+set}" = set; then
28001   :
28002 else
28003   ac_cv_search_mallinfo=no
28004 fi
28005 rm conftest.$ac_ext
28006 LIBS=$ac_func_search_save_LIBS
28007 fi
28008 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28009 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28010 ac_res=$ac_cv_search_mallinfo
28011 if test "$ac_res" != no; then
28012   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28013
28014 cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_MALLINFO 1
28016 _ACEOF
28017
28018 fi
28019
28020
28021 if test "$ENABLE_THREADS" -eq 1 ; then
28022
28023 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28024 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28025 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028   ac_check_lib_save_LIBS=$LIBS
28029 LIBS="-lpthread  $LIBS"
28030 cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036
28037 /* Override any GCC internal prototype to avoid an error.
28038    Use char because int might match the return type of a GCC
28039    builtin and then its argument prototype would still apply.  */
28040 #ifdef __cplusplus
28041 extern "C"
28042 #endif
28043 char pthread_mutex_init ();
28044 int
28045 main ()
28046 {
28047 return pthread_mutex_init ();
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
28054 case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_link") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; } &&
28076          { ac_try='test -s conftest$ac_exeext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_cv_lib_pthread_pthread_mutex_init=yes
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091         ac_cv_lib_pthread_pthread_mutex_init=no
28092 fi
28093
28094 rm -f core conftest.err conftest.$ac_objext \
28095       conftest$ac_exeext conftest.$ac_ext
28096 LIBS=$ac_check_lib_save_LIBS
28097 fi
28098 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28099 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28100 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28101   cat >>confdefs.h <<_ACEOF
28102 #define HAVE_LIBPTHREAD 1
28103 _ACEOF
28104
28105   LIBS="-lpthread $LIBS"
28106
28107 fi
28108
28109   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28110 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28111 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112   echo $ECHO_N "(cached) $ECHO_C" >&6
28113 else
28114   ac_func_search_save_LIBS=$LIBS
28115 cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121
28122 /* Override any GCC internal prototype to avoid an error.
28123    Use char because int might match the return type of a GCC
28124    builtin and then its argument prototype would still apply.  */
28125 #ifdef __cplusplus
28126 extern "C"
28127 #endif
28128 char pthread_mutex_lock ();
28129 int
28130 main ()
28131 {
28132 return pthread_mutex_lock ();
28133   ;
28134   return 0;
28135 }
28136 _ACEOF
28137 for ac_lib in '' pthread; do
28138   if test -z "$ac_lib"; then
28139     ac_res="none required"
28140   else
28141     ac_res=-l$ac_lib
28142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28143   fi
28144   rm -f conftest.$ac_objext conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_link") 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } &&
28158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159   { (case "(($ac_try" in
28160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161   *) ac_try_echo=$ac_try;;
28162 esac
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164   (eval "$ac_try") 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; } &&
28168          { ac_try='test -s conftest$ac_exeext'
28169   { (case "(($ac_try" in
28170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171   *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174   (eval "$ac_try") 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; }; then
28178   ac_cv_search_pthread_mutex_lock=$ac_res
28179 else
28180   echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28182
28183
28184 fi
28185
28186 rm -f core conftest.err conftest.$ac_objext \
28187       conftest$ac_exeext
28188   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28189   break
28190 fi
28191 done
28192 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28193   :
28194 else
28195   ac_cv_search_pthread_mutex_lock=no
28196 fi
28197 rm conftest.$ac_ext
28198 LIBS=$ac_func_search_save_LIBS
28199 fi
28200 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28201 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28202 ac_res=$ac_cv_search_pthread_mutex_lock
28203 if test "$ac_res" != no; then
28204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28205
28206 cat >>confdefs.h <<\_ACEOF
28207 #define HAVE_PTHREAD_MUTEX_LOCK 1
28208 _ACEOF
28209
28210 fi
28211
28212   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28213 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28214 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   ac_func_search_save_LIBS=$LIBS
28218 cat >conftest.$ac_ext <<_ACEOF
28219 /* confdefs.h.  */
28220 _ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h.  */
28224
28225 /* Override any GCC internal prototype to avoid an error.
28226    Use char because int might match the return type of a GCC
28227    builtin and then its argument prototype would still apply.  */
28228 #ifdef __cplusplus
28229 extern "C"
28230 #endif
28231 char pthread_rwlock_init ();
28232 int
28233 main ()
28234 {
28235 return pthread_rwlock_init ();
28236   ;
28237   return 0;
28238 }
28239 _ACEOF
28240 for ac_lib in '' pthread; do
28241   if test -z "$ac_lib"; then
28242     ac_res="none required"
28243   else
28244     ac_res=-l$ac_lib
28245     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28246   fi
28247   rm -f conftest.$ac_objext conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_link") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } &&
28261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262   { (case "(($ac_try" in
28263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264   *) ac_try_echo=$ac_try;;
28265 esac
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267   (eval "$ac_try") 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; } &&
28271          { ac_try='test -s conftest$ac_exeext'
28272   { (case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_try") 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); }; }; then
28281   ac_cv_search_pthread_rwlock_init=$ac_res
28282 else
28283   echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28285
28286
28287 fi
28288
28289 rm -f core conftest.err conftest.$ac_objext \
28290       conftest$ac_exeext
28291   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28292   break
28293 fi
28294 done
28295 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28296   :
28297 else
28298   ac_cv_search_pthread_rwlock_init=no
28299 fi
28300 rm conftest.$ac_ext
28301 LIBS=$ac_func_search_save_LIBS
28302 fi
28303 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28304 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28305 ac_res=$ac_cv_search_pthread_rwlock_init
28306 if test "$ac_res" != no; then
28307   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28308
28309 cat >>confdefs.h <<\_ACEOF
28310 #define HAVE_PTHREAD_RWLOCK_INIT 1
28311 _ACEOF
28312
28313 fi
28314
28315   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28316 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28317 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318   echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320   ac_func_search_save_LIBS=$LIBS
28321 cat >conftest.$ac_ext <<_ACEOF
28322 /* confdefs.h.  */
28323 _ACEOF
28324 cat confdefs.h >>conftest.$ac_ext
28325 cat >>conftest.$ac_ext <<_ACEOF
28326 /* end confdefs.h.  */
28327
28328 /* Override any GCC internal prototype to avoid an error.
28329    Use char because int might match the return type of a GCC
28330    builtin and then its argument prototype would still apply.  */
28331 #ifdef __cplusplus
28332 extern "C"
28333 #endif
28334 char pthread_getspecific ();
28335 int
28336 main ()
28337 {
28338 return pthread_getspecific ();
28339   ;
28340   return 0;
28341 }
28342 _ACEOF
28343 for ac_lib in '' pthread; do
28344   if test -z "$ac_lib"; then
28345     ac_res="none required"
28346   else
28347     ac_res=-l$ac_lib
28348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28349   fi
28350   rm -f conftest.$ac_objext conftest$ac_exeext
28351 if { (ac_try="$ac_link"
28352 case "(($ac_try" in
28353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354   *) ac_try_echo=$ac_try;;
28355 esac
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357   (eval "$ac_link") 2>conftest.er1
28358   ac_status=$?
28359   grep -v '^ *+' conftest.er1 >conftest.err
28360   rm -f conftest.er1
28361   cat conftest.err >&5
28362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363   (exit $ac_status); } &&
28364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28365   { (case "(($ac_try" in
28366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367   *) ac_try_echo=$ac_try;;
28368 esac
28369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370   (eval "$ac_try") 2>&5
28371   ac_status=$?
28372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373   (exit $ac_status); }; } &&
28374          { ac_try='test -s conftest$ac_exeext'
28375   { (case "(($ac_try" in
28376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377   *) ac_try_echo=$ac_try;;
28378 esac
28379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380   (eval "$ac_try") 2>&5
28381   ac_status=$?
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); }; }; then
28384   ac_cv_search_pthread_getspecific=$ac_res
28385 else
28386   echo "$as_me: failed program was:" >&5
28387 sed 's/^/| /' conftest.$ac_ext >&5
28388
28389
28390 fi
28391
28392 rm -f core conftest.err conftest.$ac_objext \
28393       conftest$ac_exeext
28394   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28395   break
28396 fi
28397 done
28398 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28399   :
28400 else
28401   ac_cv_search_pthread_getspecific=no
28402 fi
28403 rm conftest.$ac_ext
28404 LIBS=$ac_func_search_save_LIBS
28405 fi
28406 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28407 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28408 ac_res=$ac_cv_search_pthread_getspecific
28409 if test "$ac_res" != no; then
28410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28411
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_PTHREAD_GETSPECIFIC 1
28414 _ACEOF
28415
28416 fi
28417
28418 fi
28419
28420
28421 # Check whether --with-udis86 was given.
28422 if test "${with_udis86+set}" = set; then
28423   withval=$with_udis86;
28424       USE_UDIS86=1
28425
28426       case "$withval" in
28427         /usr/lib|yes) ;;
28428         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28429       esac
28430
28431 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28432 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28433 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28434   echo $ECHO_N "(cached) $ECHO_C" >&6
28435 else
28436   ac_check_lib_save_LIBS=$LIBS
28437 LIBS="-ludis86  $LIBS"
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h.  */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h.  */
28444
28445 /* Override any GCC internal prototype to avoid an error.
28446    Use char because int might match the return type of a GCC
28447    builtin and then its argument prototype would still apply.  */
28448 #ifdef __cplusplus
28449 extern "C"
28450 #endif
28451 char ud_init ();
28452 int
28453 main ()
28454 {
28455 return ud_init ();
28456   ;
28457   return 0;
28458 }
28459 _ACEOF
28460 rm -f conftest.$ac_objext conftest$ac_exeext
28461 if { (ac_try="$ac_link"
28462 case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_link") 2>conftest.er1
28468   ac_status=$?
28469   grep -v '^ *+' conftest.er1 >conftest.err
28470   rm -f conftest.er1
28471   cat conftest.err >&5
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); } &&
28474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28475   { (case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_try") 2>&5
28481   ac_status=$?
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); }; } &&
28484          { ac_try='test -s conftest$ac_exeext'
28485   { (case "(($ac_try" in
28486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487   *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490   (eval "$ac_try") 2>&5
28491   ac_status=$?
28492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493   (exit $ac_status); }; }; then
28494   ac_cv_lib_udis86_ud_init=yes
28495 else
28496   echo "$as_me: failed program was:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28498
28499         ac_cv_lib_udis86_ud_init=no
28500 fi
28501
28502 rm -f core conftest.err conftest.$ac_objext \
28503       conftest$ac_exeext conftest.$ac_ext
28504 LIBS=$ac_check_lib_save_LIBS
28505 fi
28506 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28507 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28508 if test $ac_cv_lib_udis86_ud_init = yes; then
28509   cat >>confdefs.h <<_ACEOF
28510 #define HAVE_LIBUDIS86 1
28511 _ACEOF
28512
28513   LIBS="-ludis86 $LIBS"
28514
28515 else
28516
28517         echo "Error! You need to have libudis86 around."
28518         exit -1
28519
28520 fi
28521
28522
28523 else
28524   USE_UDIS86=0
28525
28526 fi
28527
28528
28529 cat >>confdefs.h <<_ACEOF
28530 #define USE_UDIS86 $USE_UDIS86
28531 _ACEOF
28532
28533
28534
28535 # Check whether --with-oprofile was given.
28536 if test "${with_oprofile+set}" = set; then
28537   withval=$with_oprofile;
28538       USE_OPROFILE=1
28539
28540       case "$withval" in
28541         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28542         *) llvm_cv_oppath="${withval}/lib/oprofile"
28543            CPPFLAGS="-I${withval}/include";;
28544       esac
28545       LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28546       { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28547 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28548 if test "${ac_cv_search_op_open_agent+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551   ac_func_search_save_LIBS=$LIBS
28552 cat >conftest.$ac_ext <<_ACEOF
28553 /* confdefs.h.  */
28554 _ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h.  */
28558
28559 /* Override any GCC internal prototype to avoid an error.
28560    Use char because int might match the return type of a GCC
28561    builtin and then its argument prototype would still apply.  */
28562 #ifdef __cplusplus
28563 extern "C"
28564 #endif
28565 char op_open_agent ();
28566 int
28567 main ()
28568 {
28569 return op_open_agent ();
28570   ;
28571   return 0;
28572 }
28573 _ACEOF
28574 for ac_lib in '' opagent; do
28575   if test -z "$ac_lib"; then
28576     ac_res="none required"
28577   else
28578     ac_res=-l$ac_lib
28579     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28580   fi
28581   rm -f conftest.$ac_objext conftest$ac_exeext
28582 if { (ac_try="$ac_link"
28583 case "(($ac_try" in
28584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585   *) ac_try_echo=$ac_try;;
28586 esac
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588   (eval "$ac_link") 2>conftest.er1
28589   ac_status=$?
28590   grep -v '^ *+' conftest.er1 >conftest.err
28591   rm -f conftest.er1
28592   cat conftest.err >&5
28593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594   (exit $ac_status); } &&
28595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28596   { (case "(($ac_try" in
28597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598   *) ac_try_echo=$ac_try;;
28599 esac
28600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601   (eval "$ac_try") 2>&5
28602   ac_status=$?
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); }; } &&
28605          { ac_try='test -s conftest$ac_exeext'
28606   { (case "(($ac_try" in
28607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608   *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611   (eval "$ac_try") 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; }; then
28615   ac_cv_search_op_open_agent=$ac_res
28616 else
28617   echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620
28621 fi
28622
28623 rm -f core conftest.err conftest.$ac_objext \
28624       conftest$ac_exeext
28625   if test "${ac_cv_search_op_open_agent+set}" = set; then
28626   break
28627 fi
28628 done
28629 if test "${ac_cv_search_op_open_agent+set}" = set; then
28630   :
28631 else
28632   ac_cv_search_op_open_agent=no
28633 fi
28634 rm conftest.$ac_ext
28635 LIBS=$ac_func_search_save_LIBS
28636 fi
28637 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28638 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28639 ac_res=$ac_cv_search_op_open_agent
28640 if test "$ac_res" != no; then
28641   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28642
28643 else
28644
28645         echo "Error! You need to have libopagent around."
28646         exit -1
28647
28648 fi
28649
28650       if test "${ac_cv_header_opagent_h+set}" = set; then
28651   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28652 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28653 if test "${ac_cv_header_opagent_h+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 fi
28656 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28657 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28658 else
28659   # Is the header compilable?
28660 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28661 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28662 cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h.  */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h.  */
28668 $ac_includes_default
28669 #include <opagent.h>
28670 _ACEOF
28671 rm -f conftest.$ac_objext
28672 if { (ac_try="$ac_compile"
28673 case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_compile") 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } &&
28685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28686   { (case "(($ac_try" in
28687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688   *) ac_try_echo=$ac_try;;
28689 esac
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691   (eval "$ac_try") 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; } &&
28695          { ac_try='test -s conftest.$ac_objext'
28696   { (case "(($ac_try" in
28697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698   *) ac_try_echo=$ac_try;;
28699 esac
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701   (eval "$ac_try") 2>&5
28702   ac_status=$?
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); }; }; then
28705   ac_header_compiler=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710         ac_header_compiler=no
28711 fi
28712
28713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28715 echo "${ECHO_T}$ac_header_compiler" >&6; }
28716
28717 # Is the header present?
28718 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28719 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28720 cat >conftest.$ac_ext <<_ACEOF
28721 /* confdefs.h.  */
28722 _ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h.  */
28726 #include <opagent.h>
28727 _ACEOF
28728 if { (ac_try="$ac_cpp conftest.$ac_ext"
28729 case "(($ac_try" in
28730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731   *) ac_try_echo=$ac_try;;
28732 esac
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28735   ac_status=$?
28736   grep -v '^ *+' conftest.er1 >conftest.err
28737   rm -f conftest.er1
28738   cat conftest.err >&5
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } >/dev/null; then
28741   if test -s conftest.err; then
28742     ac_cpp_err=$ac_c_preproc_warn_flag
28743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28744   else
28745     ac_cpp_err=
28746   fi
28747 else
28748   ac_cpp_err=yes
28749 fi
28750 if test -z "$ac_cpp_err"; then
28751   ac_header_preproc=yes
28752 else
28753   echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28755
28756   ac_header_preproc=no
28757 fi
28758
28759 rm -f conftest.err conftest.$ac_ext
28760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28761 echo "${ECHO_T}$ac_header_preproc" >&6; }
28762
28763 # So?  What about this header?
28764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28765   yes:no: )
28766     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28767 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28768     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28769 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28770     ac_header_preproc=yes
28771     ;;
28772   no:yes:* )
28773     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28774 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28775     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
28776 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
28777     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28778 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28779     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
28780 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28781     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28782 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28783     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28784 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28785     ( cat <<\_ASBOX
28786 ## ----------------------------------- ##
28787 ## Report this to llvmbugs@cs.uiuc.edu ##
28788 ## ----------------------------------- ##
28789 _ASBOX
28790      ) | sed "s/^/$as_me: WARNING:     /" >&2
28791     ;;
28792 esac
28793 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28794 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28795 if test "${ac_cv_header_opagent_h+set}" = set; then
28796   echo $ECHO_N "(cached) $ECHO_C" >&6
28797 else
28798   ac_cv_header_opagent_h=$ac_header_preproc
28799 fi
28800 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28801 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28802
28803 fi
28804 if test $ac_cv_header_opagent_h = yes; then
28805   :
28806 else
28807
28808         echo "Error! You need to have opagent.h around."
28809         exit -1
28810
28811 fi
28812
28813
28814
28815 else
28816
28817       llvm_cv_old_LIBS="$LIBS"
28818       LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28819             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28820 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28821 if test "${ac_cv_search_op_open_agent+set}" = set; then
28822   echo $ECHO_N "(cached) $ECHO_C" >&6
28823 else
28824   ac_func_search_save_LIBS=$LIBS
28825 cat >conftest.$ac_ext <<_ACEOF
28826 /* confdefs.h.  */
28827 _ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h.  */
28831
28832 /* Override any GCC internal prototype to avoid an error.
28833    Use char because int might match the return type of a GCC
28834    builtin and then its argument prototype would still apply.  */
28835 #ifdef __cplusplus
28836 extern "C"
28837 #endif
28838 char op_open_agent ();
28839 int
28840 main ()
28841 {
28842 return op_open_agent ();
28843   ;
28844   return 0;
28845 }
28846 _ACEOF
28847 for ac_lib in '' opagent; do
28848   if test -z "$ac_lib"; then
28849     ac_res="none required"
28850   else
28851     ac_res=-l$ac_lib
28852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28853   fi
28854   rm -f conftest.$ac_objext conftest$ac_exeext
28855 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28862   ac_status=$?
28863   grep -v '^ *+' conftest.er1 >conftest.err
28864   rm -f conftest.er1
28865   cat conftest.err >&5
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } &&
28868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869   { (case "(($ac_try" in
28870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871   *) ac_try_echo=$ac_try;;
28872 esac
28873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874   (eval "$ac_try") 2>&5
28875   ac_status=$?
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; } &&
28878          { ac_try='test -s conftest$ac_exeext'
28879   { (case "(($ac_try" in
28880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881   *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884   (eval "$ac_try") 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; }; then
28888   ac_cv_search_op_open_agent=$ac_res
28889 else
28890   echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28892
28893
28894 fi
28895
28896 rm -f core conftest.err conftest.$ac_objext \
28897       conftest$ac_exeext
28898   if test "${ac_cv_search_op_open_agent+set}" = set; then
28899   break
28900 fi
28901 done
28902 if test "${ac_cv_search_op_open_agent+set}" = set; then
28903   :
28904 else
28905   ac_cv_search_op_open_agent=no
28906 fi
28907 rm conftest.$ac_ext
28908 LIBS=$ac_func_search_save_LIBS
28909 fi
28910 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28911 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28912 ac_res=$ac_cv_search_op_open_agent
28913 if test "$ac_res" != no; then
28914   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28915   USE_OPROFILE=1
28916
28917 else
28918   LIBS="$llvm_cv_old_LIBS"
28919                       USE_OPROFILE=0
28920
28921 fi
28922
28923       if test "${ac_cv_header_opagent_h+set}" = set; then
28924   { echo "$as_me:$LINENO: checking for opagent.h" >&5
28925 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28926 if test "${ac_cv_header_opagent_h+set}" = set; then
28927   echo $ECHO_N "(cached) $ECHO_C" >&6
28928 fi
28929 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28930 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28931 else
28932   # Is the header compilable?
28933 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28934 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28935 cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941 $ac_includes_default
28942 #include <opagent.h>
28943 _ACEOF
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_compile") 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } &&
28958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28959   { (case "(($ac_try" in
28960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961   *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964   (eval "$ac_try") 2>&5
28965   ac_status=$?
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); }; } &&
28968          { ac_try='test -s conftest.$ac_objext'
28969   { (case "(($ac_try" in
28970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971   *) ac_try_echo=$ac_try;;
28972 esac
28973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974   (eval "$ac_try") 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; }; then
28978   ac_header_compiler=yes
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983         ac_header_compiler=no
28984 fi
28985
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28988 echo "${ECHO_T}$ac_header_compiler" >&6; }
28989
28990 # Is the header present?
28991 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28992 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28993 cat >conftest.$ac_ext <<_ACEOF
28994 /* confdefs.h.  */
28995 _ACEOF
28996 cat confdefs.h >>conftest.$ac_ext
28997 cat >>conftest.$ac_ext <<_ACEOF
28998 /* end confdefs.h.  */
28999 #include <opagent.h>
29000 _ACEOF
29001 if { (ac_try="$ac_cpp conftest.$ac_ext"
29002 case "(($ac_try" in
29003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004   *) ac_try_echo=$ac_try;;
29005 esac
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29008   ac_status=$?
29009   grep -v '^ *+' conftest.er1 >conftest.err
29010   rm -f conftest.er1
29011   cat conftest.err >&5
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); } >/dev/null; then
29014   if test -s conftest.err; then
29015     ac_cpp_err=$ac_c_preproc_warn_flag
29016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29017   else
29018     ac_cpp_err=
29019   fi
29020 else
29021   ac_cpp_err=yes
29022 fi
29023 if test -z "$ac_cpp_err"; then
29024   ac_header_preproc=yes
29025 else
29026   echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029   ac_header_preproc=no
29030 fi
29031
29032 rm -f conftest.err conftest.$ac_ext
29033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29034 echo "${ECHO_T}$ac_header_preproc" >&6; }
29035
29036 # So?  What about this header?
29037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29038   yes:no: )
29039     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29040 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29042 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29043     ac_header_preproc=yes
29044     ;;
29045   no:yes:* )
29046     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29047 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29048     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
29049 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
29050     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29051 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29052     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
29053 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29054     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29055 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29056     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29057 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29058     ( cat <<\_ASBOX
29059 ## ----------------------------------- ##
29060 ## Report this to llvmbugs@cs.uiuc.edu ##
29061 ## ----------------------------------- ##
29062 _ASBOX
29063      ) | sed "s/^/$as_me: WARNING:     /" >&2
29064     ;;
29065 esac
29066 { echo "$as_me:$LINENO: checking for opagent.h" >&5
29067 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29068 if test "${ac_cv_header_opagent_h+set}" = set; then
29069   echo $ECHO_N "(cached) $ECHO_C" >&6
29070 else
29071   ac_cv_header_opagent_h=$ac_header_preproc
29072 fi
29073 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29074 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29075
29076 fi
29077 if test $ac_cv_header_opagent_h = yes; then
29078   :
29079 else
29080
29081         LIBS="$llvm_cv_old_LIBS"
29082         USE_OPROFILE=0
29083
29084
29085 fi
29086
29087
29088
29089 fi
29090
29091
29092 cat >>confdefs.h <<_ACEOF
29093 #define USE_OPROFILE $USE_OPROFILE
29094 _ACEOF
29095
29096
29097
29098
29099
29100
29101
29102
29103 ac_header_dirent=no
29104 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29105   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29106 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29107 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109   echo $ECHO_N "(cached) $ECHO_C" >&6
29110 else
29111   cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h.  */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h.  */
29117 #include <sys/types.h>
29118 #include <$ac_hdr>
29119
29120 int
29121 main ()
29122 {
29123 if ((DIR *) 0)
29124 return 0;
29125   ;
29126   return 0;
29127 }
29128 _ACEOF
29129 rm -f conftest.$ac_objext
29130 if { (ac_try="$ac_compile"
29131 case "(($ac_try" in
29132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133   *) ac_try_echo=$ac_try;;
29134 esac
29135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136   (eval "$ac_compile") 2>conftest.er1
29137   ac_status=$?
29138   grep -v '^ *+' conftest.er1 >conftest.err
29139   rm -f conftest.er1
29140   cat conftest.err >&5
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); } &&
29143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29144   { (case "(($ac_try" in
29145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146   *) ac_try_echo=$ac_try;;
29147 esac
29148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149   (eval "$ac_try") 2>&5
29150   ac_status=$?
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); }; } &&
29153          { ac_try='test -s conftest.$ac_objext'
29154   { (case "(($ac_try" in
29155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156   *) ac_try_echo=$ac_try;;
29157 esac
29158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159   (eval "$ac_try") 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; }; then
29163   eval "$as_ac_Header=yes"
29164 else
29165   echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29167
29168         eval "$as_ac_Header=no"
29169 fi
29170
29171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29172 fi
29173 ac_res=`eval echo '${'$as_ac_Header'}'`
29174                { echo "$as_me:$LINENO: result: $ac_res" >&5
29175 echo "${ECHO_T}$ac_res" >&6; }
29176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29177   cat >>confdefs.h <<_ACEOF
29178 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29179 _ACEOF
29180
29181 ac_header_dirent=$ac_hdr; break
29182 fi
29183
29184 done
29185 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29186 if test $ac_header_dirent = dirent.h; then
29187   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29188 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29189 if test "${ac_cv_search_opendir+set}" = set; then
29190   echo $ECHO_N "(cached) $ECHO_C" >&6
29191 else
29192   ac_func_search_save_LIBS=$LIBS
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29199
29200 /* Override any GCC internal prototype to avoid an error.
29201    Use char because int might match the return type of a GCC
29202    builtin and then its argument prototype would still apply.  */
29203 #ifdef __cplusplus
29204 extern "C"
29205 #endif
29206 char opendir ();
29207 int
29208 main ()
29209 {
29210 return opendir ();
29211   ;
29212   return 0;
29213 }
29214 _ACEOF
29215 for ac_lib in '' dir; do
29216   if test -z "$ac_lib"; then
29217     ac_res="none required"
29218   else
29219     ac_res=-l$ac_lib
29220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29221   fi
29222   rm -f conftest.$ac_objext conftest$ac_exeext
29223 if { (ac_try="$ac_link"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_link") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } &&
29236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237   { (case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_try") 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest$ac_exeext'
29247   { (case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_try") 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256   ac_cv_search_opendir=$ac_res
29257 else
29258   echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261
29262 fi
29263
29264 rm -f core conftest.err conftest.$ac_objext \
29265       conftest$ac_exeext
29266   if test "${ac_cv_search_opendir+set}" = set; then
29267   break
29268 fi
29269 done
29270 if test "${ac_cv_search_opendir+set}" = set; then
29271   :
29272 else
29273   ac_cv_search_opendir=no
29274 fi
29275 rm conftest.$ac_ext
29276 LIBS=$ac_func_search_save_LIBS
29277 fi
29278 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29279 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29280 ac_res=$ac_cv_search_opendir
29281 if test "$ac_res" != no; then
29282   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29283
29284 fi
29285
29286 else
29287   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29289 if test "${ac_cv_search_opendir+set}" = set; then
29290   echo $ECHO_N "(cached) $ECHO_C" >&6
29291 else
29292   ac_func_search_save_LIBS=$LIBS
29293 cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299
29300 /* Override any GCC internal prototype to avoid an error.
29301    Use char because int might match the return type of a GCC
29302    builtin and then its argument prototype would still apply.  */
29303 #ifdef __cplusplus
29304 extern "C"
29305 #endif
29306 char opendir ();
29307 int
29308 main ()
29309 {
29310 return opendir ();
29311   ;
29312   return 0;
29313 }
29314 _ACEOF
29315 for ac_lib in '' x; do
29316   if test -z "$ac_lib"; then
29317     ac_res="none required"
29318   else
29319     ac_res=-l$ac_lib
29320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29321   fi
29322   rm -f conftest.$ac_objext conftest$ac_exeext
29323 if { (ac_try="$ac_link"
29324 case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_link") 2>conftest.er1
29330   ac_status=$?
29331   grep -v '^ *+' conftest.er1 >conftest.err
29332   rm -f conftest.er1
29333   cat conftest.err >&5
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); } &&
29336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337   { (case "(($ac_try" in
29338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339   *) ac_try_echo=$ac_try;;
29340 esac
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342   (eval "$ac_try") 2>&5
29343   ac_status=$?
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); }; } &&
29346          { ac_try='test -s conftest$ac_exeext'
29347   { (case "(($ac_try" in
29348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349   *) ac_try_echo=$ac_try;;
29350 esac
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352   (eval "$ac_try") 2>&5
29353   ac_status=$?
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); }; }; then
29356   ac_cv_search_opendir=$ac_res
29357 else
29358   echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.$ac_ext >&5
29360
29361
29362 fi
29363
29364 rm -f core conftest.err conftest.$ac_objext \
29365       conftest$ac_exeext
29366   if test "${ac_cv_search_opendir+set}" = set; then
29367   break
29368 fi
29369 done
29370 if test "${ac_cv_search_opendir+set}" = set; then
29371   :
29372 else
29373   ac_cv_search_opendir=no
29374 fi
29375 rm conftest.$ac_ext
29376 LIBS=$ac_func_search_save_LIBS
29377 fi
29378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29380 ac_res=$ac_cv_search_opendir
29381 if test "$ac_res" != no; then
29382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29383
29384 fi
29385
29386 fi
29387
29388 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29389 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29390 if test "${ac_cv_header_mmap_anon+set}" = set; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393    ac_ext=c
29394 ac_cpp='$CPP $CPPFLAGS'
29395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29398
29399   cat >conftest.$ac_ext <<_ACEOF
29400 /* confdefs.h.  */
29401 _ACEOF
29402 cat confdefs.h >>conftest.$ac_ext
29403 cat >>conftest.$ac_ext <<_ACEOF
29404 /* end confdefs.h.  */
29405 #include <sys/mman.h>
29406 #include <unistd.h>
29407 #include <fcntl.h>
29408 int
29409 main ()
29410 {
29411 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29412   ;
29413   return 0;
29414 }
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431   { (case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_try") 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest.$ac_objext'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_try") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450   ac_cv_header_mmap_anon=yes
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455         ac_cv_header_mmap_anon=no
29456 fi
29457
29458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459   ac_ext=c
29460 ac_cpp='$CPP $CPPFLAGS'
29461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29464
29465
29466 fi
29467 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29468 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29469 if test "$ac_cv_header_mmap_anon" = yes; then
29470
29471 cat >>confdefs.h <<\_ACEOF
29472 #define HAVE_MMAP_ANONYMOUS 1
29473 _ACEOF
29474
29475 fi
29476
29477 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29478 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29479 if test "${ac_cv_header_stat_broken+set}" = set; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 else
29482   cat >conftest.$ac_ext <<_ACEOF
29483 /* confdefs.h.  */
29484 _ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h.  */
29488 #include <sys/types.h>
29489 #include <sys/stat.h>
29490
29491 #if defined S_ISBLK && defined S_IFDIR
29492 # if S_ISBLK (S_IFDIR)
29493 You lose.
29494 # endif
29495 #endif
29496
29497 #if defined S_ISBLK && defined S_IFCHR
29498 # if S_ISBLK (S_IFCHR)
29499 You lose.
29500 # endif
29501 #endif
29502
29503 #if defined S_ISLNK && defined S_IFREG
29504 # if S_ISLNK (S_IFREG)
29505 You lose.
29506 # endif
29507 #endif
29508
29509 #if defined S_ISSOCK && defined S_IFREG
29510 # if S_ISSOCK (S_IFREG)
29511 You lose.
29512 # endif
29513 #endif
29514
29515 _ACEOF
29516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29517   $EGREP "You lose" >/dev/null 2>&1; then
29518   ac_cv_header_stat_broken=yes
29519 else
29520   ac_cv_header_stat_broken=no
29521 fi
29522 rm -f conftest*
29523
29524 fi
29525 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29526 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29527 if test $ac_cv_header_stat_broken = yes; then
29528
29529 cat >>confdefs.h <<\_ACEOF
29530 #define STAT_MACROS_BROKEN 1
29531 _ACEOF
29532
29533 fi
29534
29535 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29537 if test "${ac_cv_header_stdc+set}" = set; then
29538   echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29540   cat >conftest.$ac_ext <<_ACEOF
29541 /* confdefs.h.  */
29542 _ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h.  */
29546 #include <stdlib.h>
29547 #include <stdarg.h>
29548 #include <string.h>
29549 #include <float.h>
29550
29551 int
29552 main ()
29553 {
29554
29555   ;
29556   return 0;
29557 }
29558 _ACEOF
29559 rm -f conftest.$ac_objext
29560 if { (ac_try="$ac_compile"
29561 case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_compile") 2>conftest.er1
29567   ac_status=$?
29568   grep -v '^ *+' conftest.er1 >conftest.err
29569   rm -f conftest.er1
29570   cat conftest.err >&5
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); } &&
29573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29574   { (case "(($ac_try" in
29575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576   *) ac_try_echo=$ac_try;;
29577 esac
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579   (eval "$ac_try") 2>&5
29580   ac_status=$?
29581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582   (exit $ac_status); }; } &&
29583          { ac_try='test -s conftest.$ac_objext'
29584   { (case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_try") 2>&5
29590   ac_status=$?
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); }; }; then
29593   ac_cv_header_stdc=yes
29594 else
29595   echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29597
29598         ac_cv_header_stdc=no
29599 fi
29600
29601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29602
29603 if test $ac_cv_header_stdc = yes; then
29604   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29605   cat >conftest.$ac_ext <<_ACEOF
29606 /* confdefs.h.  */
29607 _ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h.  */
29611 #include <string.h>
29612
29613 _ACEOF
29614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29615   $EGREP "memchr" >/dev/null 2>&1; then
29616   :
29617 else
29618   ac_cv_header_stdc=no
29619 fi
29620 rm -f conftest*
29621
29622 fi
29623
29624 if test $ac_cv_header_stdc = yes; then
29625   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29626   cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 #include <stdlib.h>
29633
29634 _ACEOF
29635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29636   $EGREP "free" >/dev/null 2>&1; then
29637   :
29638 else
29639   ac_cv_header_stdc=no
29640 fi
29641 rm -f conftest*
29642
29643 fi
29644
29645 if test $ac_cv_header_stdc = yes; then
29646   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29647   if test "$cross_compiling" = yes; then
29648   :
29649 else
29650   cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656 #include <ctype.h>
29657 #include <stdlib.h>
29658 #if ((' ' & 0x0FF) == 0x020)
29659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29661 #else
29662 # define ISLOWER(c) \
29663                    (('a' <= (c) && (c) <= 'i') \
29664                      || ('j' <= (c) && (c) <= 'r') \
29665                      || ('s' <= (c) && (c) <= 'z'))
29666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29667 #endif
29668
29669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29670 int
29671 main ()
29672 {
29673   int i;
29674   for (i = 0; i < 256; i++)
29675     if (XOR (islower (i), ISLOWER (i))
29676         || toupper (i) != TOUPPER (i))
29677       return 2;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest$ac_exeext
29682 if { (ac_try="$ac_link"
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_link") 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29692   { (case "(($ac_try" in
29693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694   *) ac_try_echo=$ac_try;;
29695 esac
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697   (eval "$ac_try") 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; }; then
29701   :
29702 else
29703   echo "$as_me: program exited with status $ac_status" >&5
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707 ( exit $ac_status )
29708 ac_cv_header_stdc=no
29709 fi
29710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711 fi
29712
29713
29714 fi
29715 fi
29716 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29717 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29718 if test $ac_cv_header_stdc = yes; then
29719
29720 cat >>confdefs.h <<\_ACEOF
29721 #define STDC_HEADERS 1
29722 _ACEOF
29723
29724 fi
29725
29726 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29727 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29728 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29729   echo $ECHO_N "(cached) $ECHO_C" >&6
29730 else
29731   cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h.  */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h.  */
29737 #include <sys/types.h>
29738 #include <sys/wait.h>
29739 #ifndef WEXITSTATUS
29740 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29741 #endif
29742 #ifndef WIFEXITED
29743 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29744 #endif
29745
29746 int
29747 main ()
29748 {
29749   int s;
29750   wait (&s);
29751   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29752   ;
29753   return 0;
29754 }
29755 _ACEOF
29756 rm -f conftest.$ac_objext
29757 if { (ac_try="$ac_compile"
29758 case "(($ac_try" in
29759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760   *) ac_try_echo=$ac_try;;
29761 esac
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763   (eval "$ac_compile") 2>conftest.er1
29764   ac_status=$?
29765   grep -v '^ *+' conftest.er1 >conftest.err
29766   rm -f conftest.er1
29767   cat conftest.err >&5
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); } &&
29770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29771   { (case "(($ac_try" in
29772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773   *) ac_try_echo=$ac_try;;
29774 esac
29775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776   (eval "$ac_try") 2>&5
29777   ac_status=$?
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); }; } &&
29780          { ac_try='test -s conftest.$ac_objext'
29781   { (case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_try") 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; }; then
29790   ac_cv_header_sys_wait_h=yes
29791 else
29792   echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795         ac_cv_header_sys_wait_h=no
29796 fi
29797
29798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29799 fi
29800 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29801 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29802 if test $ac_cv_header_sys_wait_h = yes; then
29803
29804 cat >>confdefs.h <<\_ACEOF
29805 #define HAVE_SYS_WAIT_H 1
29806 _ACEOF
29807
29808 fi
29809
29810 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29811 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29812 if test "${ac_cv_header_time+set}" = set; then
29813   echo $ECHO_N "(cached) $ECHO_C" >&6
29814 else
29815   cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821 #include <sys/types.h>
29822 #include <sys/time.h>
29823 #include <time.h>
29824
29825 int
29826 main ()
29827 {
29828 if ((struct tm *) 0)
29829 return 0;
29830   ;
29831   return 0;
29832 }
29833 _ACEOF
29834 rm -f conftest.$ac_objext
29835 if { (ac_try="$ac_compile"
29836 case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_compile") 2>conftest.er1
29842   ac_status=$?
29843   grep -v '^ *+' conftest.er1 >conftest.err
29844   rm -f conftest.er1
29845   cat conftest.err >&5
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); } &&
29848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849   { (case "(($ac_try" in
29850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851   *) ac_try_echo=$ac_try;;
29852 esac
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854   (eval "$ac_try") 2>&5
29855   ac_status=$?
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); }; } &&
29858          { ac_try='test -s conftest.$ac_objext'
29859   { (case "(($ac_try" in
29860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861   *) ac_try_echo=$ac_try;;
29862 esac
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864   (eval "$ac_try") 2>&5
29865   ac_status=$?
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); }; }; then
29868   ac_cv_header_time=yes
29869 else
29870   echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29872
29873         ac_cv_header_time=no
29874 fi
29875
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877 fi
29878 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29879 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29880 if test $ac_cv_header_time = yes; then
29881
29882 cat >>confdefs.h <<\_ACEOF
29883 #define TIME_WITH_SYS_TIME 1
29884 _ACEOF
29885
29886 fi
29887
29888
29889
29890
29891
29892
29893
29894
29895 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29896 do
29897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902   echo $ECHO_N "(cached) $ECHO_C" >&6
29903 fi
29904 ac_res=`eval echo '${'$as_ac_Header'}'`
29905                { echo "$as_me:$LINENO: result: $ac_res" >&5
29906 echo "${ECHO_T}$ac_res" >&6; }
29907 else
29908   # Is the header compilable?
29909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29911 cat >conftest.$ac_ext <<_ACEOF
29912 /* confdefs.h.  */
29913 _ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h.  */
29917 $ac_includes_default
29918 #include <$ac_header>
29919 _ACEOF
29920 rm -f conftest.$ac_objext
29921 if { (ac_try="$ac_compile"
29922 case "(($ac_try" in
29923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924   *) ac_try_echo=$ac_try;;
29925 esac
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927   (eval "$ac_compile") 2>conftest.er1
29928   ac_status=$?
29929   grep -v '^ *+' conftest.er1 >conftest.err
29930   rm -f conftest.er1
29931   cat conftest.err >&5
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); } &&
29934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29935   { (case "(($ac_try" in
29936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937   *) ac_try_echo=$ac_try;;
29938 esac
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940   (eval "$ac_try") 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; } &&
29944          { ac_try='test -s conftest.$ac_objext'
29945   { (case "(($ac_try" in
29946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947   *) ac_try_echo=$ac_try;;
29948 esac
29949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950   (eval "$ac_try") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; }; then
29954   ac_header_compiler=yes
29955 else
29956   echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29958
29959         ac_header_compiler=no
29960 fi
29961
29962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29964 echo "${ECHO_T}$ac_header_compiler" >&6; }
29965
29966 # Is the header present?
29967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29969 cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975 #include <$ac_header>
29976 _ACEOF
29977 if { (ac_try="$ac_cpp conftest.$ac_ext"
29978 case "(($ac_try" in
29979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980   *) ac_try_echo=$ac_try;;
29981 esac
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29984   ac_status=$?
29985   grep -v '^ *+' conftest.er1 >conftest.err
29986   rm -f conftest.er1
29987   cat conftest.err >&5
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); } >/dev/null; then
29990   if test -s conftest.err; then
29991     ac_cpp_err=$ac_c_preproc_warn_flag
29992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29993   else
29994     ac_cpp_err=
29995   fi
29996 else
29997   ac_cpp_err=yes
29998 fi
29999 if test -z "$ac_cpp_err"; then
30000   ac_header_preproc=yes
30001 else
30002   echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30004
30005   ac_header_preproc=no
30006 fi
30007
30008 rm -f conftest.err conftest.$ac_ext
30009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30010 echo "${ECHO_T}$ac_header_preproc" >&6; }
30011
30012 # So?  What about this header?
30013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30014   yes:no: )
30015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30019     ac_header_preproc=yes
30020     ;;
30021   no:yes:* )
30022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30034     ( cat <<\_ASBOX
30035 ## ----------------------------------- ##
30036 ## Report this to llvmbugs@cs.uiuc.edu ##
30037 ## ----------------------------------- ##
30038 _ASBOX
30039      ) | sed "s/^/$as_me: WARNING:     /" >&2
30040     ;;
30041 esac
30042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30045   echo $ECHO_N "(cached) $ECHO_C" >&6
30046 else
30047   eval "$as_ac_Header=\$ac_header_preproc"
30048 fi
30049 ac_res=`eval echo '${'$as_ac_Header'}'`
30050                { echo "$as_me:$LINENO: result: $ac_res" >&5
30051 echo "${ECHO_T}$ac_res" >&6; }
30052
30053 fi
30054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30055   cat >>confdefs.h <<_ACEOF
30056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30057 _ACEOF
30058
30059 fi
30060
30061 done
30062
30063
30064
30065
30066
30067
30068
30069 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
30070 do
30071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30076   echo $ECHO_N "(cached) $ECHO_C" >&6
30077 fi
30078 ac_res=`eval echo '${'$as_ac_Header'}'`
30079                { echo "$as_me:$LINENO: result: $ac_res" >&5
30080 echo "${ECHO_T}$ac_res" >&6; }
30081 else
30082   # Is the header compilable?
30083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30085 cat >conftest.$ac_ext <<_ACEOF
30086 /* confdefs.h.  */
30087 _ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h.  */
30091 $ac_includes_default
30092 #include <$ac_header>
30093 _ACEOF
30094 rm -f conftest.$ac_objext
30095 if { (ac_try="$ac_compile"
30096 case "(($ac_try" in
30097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098   *) ac_try_echo=$ac_try;;
30099 esac
30100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101   (eval "$ac_compile") 2>conftest.er1
30102   ac_status=$?
30103   grep -v '^ *+' conftest.er1 >conftest.err
30104   rm -f conftest.er1
30105   cat conftest.err >&5
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); } &&
30108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109   { (case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114   (eval "$ac_try") 2>&5
30115   ac_status=$?
30116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117   (exit $ac_status); }; } &&
30118          { ac_try='test -s conftest.$ac_objext'
30119   { (case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_try") 2>&5
30125   ac_status=$?
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); }; }; then
30128   ac_header_compiler=yes
30129 else
30130   echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30132
30133         ac_header_compiler=no
30134 fi
30135
30136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30138 echo "${ECHO_T}$ac_header_compiler" >&6; }
30139
30140 # Is the header present?
30141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30143 cat >conftest.$ac_ext <<_ACEOF
30144 /* confdefs.h.  */
30145 _ACEOF
30146 cat confdefs.h >>conftest.$ac_ext
30147 cat >>conftest.$ac_ext <<_ACEOF
30148 /* end confdefs.h.  */
30149 #include <$ac_header>
30150 _ACEOF
30151 if { (ac_try="$ac_cpp conftest.$ac_ext"
30152 case "(($ac_try" in
30153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154   *) ac_try_echo=$ac_try;;
30155 esac
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30158   ac_status=$?
30159   grep -v '^ *+' conftest.er1 >conftest.err
30160   rm -f conftest.er1
30161   cat conftest.err >&5
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); } >/dev/null; then
30164   if test -s conftest.err; then
30165     ac_cpp_err=$ac_c_preproc_warn_flag
30166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30167   else
30168     ac_cpp_err=
30169   fi
30170 else
30171   ac_cpp_err=yes
30172 fi
30173 if test -z "$ac_cpp_err"; then
30174   ac_header_preproc=yes
30175 else
30176   echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30178
30179   ac_header_preproc=no
30180 fi
30181
30182 rm -f conftest.err conftest.$ac_ext
30183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30184 echo "${ECHO_T}$ac_header_preproc" >&6; }
30185
30186 # So?  What about this header?
30187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30188   yes:no: )
30189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30193     ac_header_preproc=yes
30194     ;;
30195   no:yes:* )
30196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30208     ( cat <<\_ASBOX
30209 ## ----------------------------------- ##
30210 ## Report this to llvmbugs@cs.uiuc.edu ##
30211 ## ----------------------------------- ##
30212 _ASBOX
30213      ) | sed "s/^/$as_me: WARNING:     /" >&2
30214     ;;
30215 esac
30216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30219   echo $ECHO_N "(cached) $ECHO_C" >&6
30220 else
30221   eval "$as_ac_Header=\$ac_header_preproc"
30222 fi
30223 ac_res=`eval echo '${'$as_ac_Header'}'`
30224                { echo "$as_me:$LINENO: result: $ac_res" >&5
30225 echo "${ECHO_T}$ac_res" >&6; }
30226
30227 fi
30228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30229   cat >>confdefs.h <<_ACEOF
30230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30231 _ACEOF
30232
30233 fi
30234
30235 done
30236
30237
30238
30239 for ac_header in utime.h windows.h
30240 do
30241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30246   echo $ECHO_N "(cached) $ECHO_C" >&6
30247 fi
30248 ac_res=`eval echo '${'$as_ac_Header'}'`
30249                { echo "$as_me:$LINENO: result: $ac_res" >&5
30250 echo "${ECHO_T}$ac_res" >&6; }
30251 else
30252   # Is the header compilable?
30253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30255 cat >conftest.$ac_ext <<_ACEOF
30256 /* confdefs.h.  */
30257 _ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h.  */
30261 $ac_includes_default
30262 #include <$ac_header>
30263 _ACEOF
30264 rm -f conftest.$ac_objext
30265 if { (ac_try="$ac_compile"
30266 case "(($ac_try" in
30267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268   *) ac_try_echo=$ac_try;;
30269 esac
30270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271   (eval "$ac_compile") 2>conftest.er1
30272   ac_status=$?
30273   grep -v '^ *+' conftest.er1 >conftest.err
30274   rm -f conftest.er1
30275   cat conftest.err >&5
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); } &&
30278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30279   { (case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_try") 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; } &&
30288          { ac_try='test -s conftest.$ac_objext'
30289   { (case "(($ac_try" in
30290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291   *) ac_try_echo=$ac_try;;
30292 esac
30293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294   (eval "$ac_try") 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); }; }; then
30298   ac_header_compiler=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_header_compiler=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30308 echo "${ECHO_T}$ac_header_compiler" >&6; }
30309
30310 # Is the header present?
30311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30313 cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319 #include <$ac_header>
30320 _ACEOF
30321 if { (ac_try="$ac_cpp conftest.$ac_ext"
30322 case "(($ac_try" in
30323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324   *) ac_try_echo=$ac_try;;
30325 esac
30326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30328   ac_status=$?
30329   grep -v '^ *+' conftest.er1 >conftest.err
30330   rm -f conftest.er1
30331   cat conftest.err >&5
30332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333   (exit $ac_status); } >/dev/null; then
30334   if test -s conftest.err; then
30335     ac_cpp_err=$ac_c_preproc_warn_flag
30336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30337   else
30338     ac_cpp_err=
30339   fi
30340 else
30341   ac_cpp_err=yes
30342 fi
30343 if test -z "$ac_cpp_err"; then
30344   ac_header_preproc=yes
30345 else
30346   echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349   ac_header_preproc=no
30350 fi
30351
30352 rm -f conftest.err conftest.$ac_ext
30353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30354 echo "${ECHO_T}$ac_header_preproc" >&6; }
30355
30356 # So?  What about this header?
30357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30358   yes:no: )
30359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30363     ac_header_preproc=yes
30364     ;;
30365   no:yes:* )
30366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30378     ( cat <<\_ASBOX
30379 ## ----------------------------------- ##
30380 ## Report this to llvmbugs@cs.uiuc.edu ##
30381 ## ----------------------------------- ##
30382 _ASBOX
30383      ) | sed "s/^/$as_me: WARNING:     /" >&2
30384     ;;
30385 esac
30386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30389   echo $ECHO_N "(cached) $ECHO_C" >&6
30390 else
30391   eval "$as_ac_Header=\$ac_header_preproc"
30392 fi
30393 ac_res=`eval echo '${'$as_ac_Header'}'`
30394                { echo "$as_me:$LINENO: result: $ac_res" >&5
30395 echo "${ECHO_T}$ac_res" >&6; }
30396
30397 fi
30398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30399   cat >>confdefs.h <<_ACEOF
30400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30401 _ACEOF
30402
30403 fi
30404
30405 done
30406
30407
30408
30409
30410
30411 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30412 do
30413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30415   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30418   echo $ECHO_N "(cached) $ECHO_C" >&6
30419 fi
30420 ac_res=`eval echo '${'$as_ac_Header'}'`
30421                { echo "$as_me:$LINENO: result: $ac_res" >&5
30422 echo "${ECHO_T}$ac_res" >&6; }
30423 else
30424   # Is the header compilable?
30425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30427 cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433 $ac_includes_default
30434 #include <$ac_header>
30435 _ACEOF
30436 rm -f conftest.$ac_objext
30437 if { (ac_try="$ac_compile"
30438 case "(($ac_try" in
30439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440   *) ac_try_echo=$ac_try;;
30441 esac
30442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443   (eval "$ac_compile") 2>conftest.er1
30444   ac_status=$?
30445   grep -v '^ *+' conftest.er1 >conftest.err
30446   rm -f conftest.er1
30447   cat conftest.err >&5
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); } &&
30450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30451   { (case "(($ac_try" in
30452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453   *) ac_try_echo=$ac_try;;
30454 esac
30455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456   (eval "$ac_try") 2>&5
30457   ac_status=$?
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); }; } &&
30460          { ac_try='test -s conftest.$ac_objext'
30461   { (case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466   (eval "$ac_try") 2>&5
30467   ac_status=$?
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); }; }; then
30470   ac_header_compiler=yes
30471 else
30472   echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30474
30475         ac_header_compiler=no
30476 fi
30477
30478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30480 echo "${ECHO_T}$ac_header_compiler" >&6; }
30481
30482 # Is the header present?
30483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30485 cat >conftest.$ac_ext <<_ACEOF
30486 /* confdefs.h.  */
30487 _ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h.  */
30491 #include <$ac_header>
30492 _ACEOF
30493 if { (ac_try="$ac_cpp conftest.$ac_ext"
30494 case "(($ac_try" in
30495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496   *) ac_try_echo=$ac_try;;
30497 esac
30498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30500   ac_status=$?
30501   grep -v '^ *+' conftest.er1 >conftest.err
30502   rm -f conftest.er1
30503   cat conftest.err >&5
30504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505   (exit $ac_status); } >/dev/null; then
30506   if test -s conftest.err; then
30507     ac_cpp_err=$ac_c_preproc_warn_flag
30508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30509   else
30510     ac_cpp_err=
30511   fi
30512 else
30513   ac_cpp_err=yes
30514 fi
30515 if test -z "$ac_cpp_err"; then
30516   ac_header_preproc=yes
30517 else
30518   echo "$as_me: failed program was:" >&5
30519 sed 's/^/| /' conftest.$ac_ext >&5
30520
30521   ac_header_preproc=no
30522 fi
30523
30524 rm -f conftest.err conftest.$ac_ext
30525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30526 echo "${ECHO_T}$ac_header_preproc" >&6; }
30527
30528 # So?  What about this header?
30529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30530   yes:no: )
30531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30535     ac_header_preproc=yes
30536     ;;
30537   no:yes:* )
30538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30550     ( cat <<\_ASBOX
30551 ## ----------------------------------- ##
30552 ## Report this to llvmbugs@cs.uiuc.edu ##
30553 ## ----------------------------------- ##
30554 _ASBOX
30555      ) | sed "s/^/$as_me: WARNING:     /" >&2
30556     ;;
30557 esac
30558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30561   echo $ECHO_N "(cached) $ECHO_C" >&6
30562 else
30563   eval "$as_ac_Header=\$ac_header_preproc"
30564 fi
30565 ac_res=`eval echo '${'$as_ac_Header'}'`
30566                { echo "$as_me:$LINENO: result: $ac_res" >&5
30567 echo "${ECHO_T}$ac_res" >&6; }
30568
30569 fi
30570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30571   cat >>confdefs.h <<_ACEOF
30572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30573 _ACEOF
30574
30575 fi
30576
30577 done
30578
30579
30580
30581
30582
30583 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30584 do
30585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30587   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 fi
30592 ac_res=`eval echo '${'$as_ac_Header'}'`
30593                { echo "$as_me:$LINENO: result: $ac_res" >&5
30594 echo "${ECHO_T}$ac_res" >&6; }
30595 else
30596   # Is the header compilable?
30597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30599 cat >conftest.$ac_ext <<_ACEOF
30600 /* confdefs.h.  */
30601 _ACEOF
30602 cat confdefs.h >>conftest.$ac_ext
30603 cat >>conftest.$ac_ext <<_ACEOF
30604 /* end confdefs.h.  */
30605 $ac_includes_default
30606 #include <$ac_header>
30607 _ACEOF
30608 rm -f conftest.$ac_objext
30609 if { (ac_try="$ac_compile"
30610 case "(($ac_try" in
30611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612   *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615   (eval "$ac_compile") 2>conftest.er1
30616   ac_status=$?
30617   grep -v '^ *+' conftest.er1 >conftest.err
30618   rm -f conftest.er1
30619   cat conftest.err >&5
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); } &&
30622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623   { (case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_try") 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; } &&
30632          { ac_try='test -s conftest.$ac_objext'
30633   { (case "(($ac_try" in
30634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635   *) ac_try_echo=$ac_try;;
30636 esac
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638   (eval "$ac_try") 2>&5
30639   ac_status=$?
30640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641   (exit $ac_status); }; }; then
30642   ac_header_compiler=yes
30643 else
30644   echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30646
30647         ac_header_compiler=no
30648 fi
30649
30650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30652 echo "${ECHO_T}$ac_header_compiler" >&6; }
30653
30654 # Is the header present?
30655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30657 cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h.  */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h.  */
30663 #include <$ac_header>
30664 _ACEOF
30665 if { (ac_try="$ac_cpp conftest.$ac_ext"
30666 case "(($ac_try" in
30667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668   *) ac_try_echo=$ac_try;;
30669 esac
30670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30672   ac_status=$?
30673   grep -v '^ *+' conftest.er1 >conftest.err
30674   rm -f conftest.er1
30675   cat conftest.err >&5
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } >/dev/null; then
30678   if test -s conftest.err; then
30679     ac_cpp_err=$ac_c_preproc_warn_flag
30680     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30681   else
30682     ac_cpp_err=
30683   fi
30684 else
30685   ac_cpp_err=yes
30686 fi
30687 if test -z "$ac_cpp_err"; then
30688   ac_header_preproc=yes
30689 else
30690   echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30692
30693   ac_header_preproc=no
30694 fi
30695
30696 rm -f conftest.err conftest.$ac_ext
30697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30698 echo "${ECHO_T}$ac_header_preproc" >&6; }
30699
30700 # So?  What about this header?
30701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30702   yes:no: )
30703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30707     ac_header_preproc=yes
30708     ;;
30709   no:yes:* )
30710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30722     ( cat <<\_ASBOX
30723 ## ----------------------------------- ##
30724 ## Report this to llvmbugs@cs.uiuc.edu ##
30725 ## ----------------------------------- ##
30726 _ASBOX
30727      ) | sed "s/^/$as_me: WARNING:     /" >&2
30728     ;;
30729 esac
30730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30733   echo $ECHO_N "(cached) $ECHO_C" >&6
30734 else
30735   eval "$as_ac_Header=\$ac_header_preproc"
30736 fi
30737 ac_res=`eval echo '${'$as_ac_Header'}'`
30738                { echo "$as_me:$LINENO: result: $ac_res" >&5
30739 echo "${ECHO_T}$ac_res" >&6; }
30740
30741 fi
30742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30743   cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30745 _ACEOF
30746
30747 fi
30748
30749 done
30750
30751 if test "$ENABLE_THREADS" -eq 1 ; then
30752
30753 for ac_header in pthread.h
30754 do
30755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30757   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30760   echo $ECHO_N "(cached) $ECHO_C" >&6
30761 fi
30762 ac_res=`eval echo '${'$as_ac_Header'}'`
30763                { echo "$as_me:$LINENO: result: $ac_res" >&5
30764 echo "${ECHO_T}$ac_res" >&6; }
30765 else
30766   # Is the header compilable?
30767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30769 cat >conftest.$ac_ext <<_ACEOF
30770 /* confdefs.h.  */
30771 _ACEOF
30772 cat confdefs.h >>conftest.$ac_ext
30773 cat >>conftest.$ac_ext <<_ACEOF
30774 /* end confdefs.h.  */
30775 $ac_includes_default
30776 #include <$ac_header>
30777 _ACEOF
30778 rm -f conftest.$ac_objext
30779 if { (ac_try="$ac_compile"
30780 case "(($ac_try" in
30781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782   *) ac_try_echo=$ac_try;;
30783 esac
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785   (eval "$ac_compile") 2>conftest.er1
30786   ac_status=$?
30787   grep -v '^ *+' conftest.er1 >conftest.err
30788   rm -f conftest.er1
30789   cat conftest.err >&5
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } &&
30792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30793   { (case "(($ac_try" in
30794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30795   *) ac_try_echo=$ac_try;;
30796 esac
30797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30798   (eval "$ac_try") 2>&5
30799   ac_status=$?
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); }; } &&
30802          { ac_try='test -s conftest.$ac_objext'
30803   { (case "(($ac_try" in
30804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805   *) ac_try_echo=$ac_try;;
30806 esac
30807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808   (eval "$ac_try") 2>&5
30809   ac_status=$?
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); }; }; then
30812   ac_header_compiler=yes
30813 else
30814   echo "$as_me: failed program was:" >&5
30815 sed 's/^/| /' conftest.$ac_ext >&5
30816
30817         ac_header_compiler=no
30818 fi
30819
30820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30822 echo "${ECHO_T}$ac_header_compiler" >&6; }
30823
30824 # Is the header present?
30825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30827 cat >conftest.$ac_ext <<_ACEOF
30828 /* confdefs.h.  */
30829 _ACEOF
30830 cat confdefs.h >>conftest.$ac_ext
30831 cat >>conftest.$ac_ext <<_ACEOF
30832 /* end confdefs.h.  */
30833 #include <$ac_header>
30834 _ACEOF
30835 if { (ac_try="$ac_cpp conftest.$ac_ext"
30836 case "(($ac_try" in
30837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838   *) ac_try_echo=$ac_try;;
30839 esac
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30842   ac_status=$?
30843   grep -v '^ *+' conftest.er1 >conftest.err
30844   rm -f conftest.er1
30845   cat conftest.err >&5
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); } >/dev/null; then
30848   if test -s conftest.err; then
30849     ac_cpp_err=$ac_c_preproc_warn_flag
30850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30851   else
30852     ac_cpp_err=
30853   fi
30854 else
30855   ac_cpp_err=yes
30856 fi
30857 if test -z "$ac_cpp_err"; then
30858   ac_header_preproc=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863   ac_header_preproc=no
30864 fi
30865
30866 rm -f conftest.err conftest.$ac_ext
30867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30868 echo "${ECHO_T}$ac_header_preproc" >&6; }
30869
30870 # So?  What about this header?
30871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30872   yes:no: )
30873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30877     ac_header_preproc=yes
30878     ;;
30879   no:yes:* )
30880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30892     ( cat <<\_ASBOX
30893 ## ----------------------------------- ##
30894 ## Report this to llvmbugs@cs.uiuc.edu ##
30895 ## ----------------------------------- ##
30896 _ASBOX
30897      ) | sed "s/^/$as_me: WARNING:     /" >&2
30898     ;;
30899 esac
30900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30903   echo $ECHO_N "(cached) $ECHO_C" >&6
30904 else
30905   eval "$as_ac_Header=\$ac_header_preproc"
30906 fi
30907 ac_res=`eval echo '${'$as_ac_Header'}'`
30908                { echo "$as_me:$LINENO: result: $ac_res" >&5
30909 echo "${ECHO_T}$ac_res" >&6; }
30910
30911 fi
30912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30913   cat >>confdefs.h <<_ACEOF
30914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30915 _ACEOF
30916  HAVE_PTHREAD=1
30917
30918 else
30919   HAVE_PTHREAD=0
30920
30921 fi
30922
30923 done
30924
30925 else
30926   HAVE_PTHREAD=0
30927
30928 fi
30929
30930 if test "$llvm_cv_enable_libffi" = "yes" ; then
30931
30932
30933 for ac_header in ffi.h ffi/ffi.h
30934 do
30935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30937   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940   echo $ECHO_N "(cached) $ECHO_C" >&6
30941 fi
30942 ac_res=`eval echo '${'$as_ac_Header'}'`
30943                { echo "$as_me:$LINENO: result: $ac_res" >&5
30944 echo "${ECHO_T}$ac_res" >&6; }
30945 else
30946   # Is the header compilable?
30947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30949 cat >conftest.$ac_ext <<_ACEOF
30950 /* confdefs.h.  */
30951 _ACEOF
30952 cat confdefs.h >>conftest.$ac_ext
30953 cat >>conftest.$ac_ext <<_ACEOF
30954 /* end confdefs.h.  */
30955 $ac_includes_default
30956 #include <$ac_header>
30957 _ACEOF
30958 rm -f conftest.$ac_objext
30959 if { (ac_try="$ac_compile"
30960 case "(($ac_try" in
30961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962   *) ac_try_echo=$ac_try;;
30963 esac
30964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965   (eval "$ac_compile") 2>conftest.er1
30966   ac_status=$?
30967   grep -v '^ *+' conftest.er1 >conftest.err
30968   rm -f conftest.er1
30969   cat conftest.err >&5
30970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971   (exit $ac_status); } &&
30972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30973   { (case "(($ac_try" in
30974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975   *) ac_try_echo=$ac_try;;
30976 esac
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978   (eval "$ac_try") 2>&5
30979   ac_status=$?
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); }; } &&
30982          { ac_try='test -s conftest.$ac_objext'
30983   { (case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988   (eval "$ac_try") 2>&5
30989   ac_status=$?
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); }; }; then
30992   ac_header_compiler=yes
30993 else
30994   echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30996
30997         ac_header_compiler=no
30998 fi
30999
31000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31002 echo "${ECHO_T}$ac_header_compiler" >&6; }
31003
31004 # Is the header present?
31005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31007 cat >conftest.$ac_ext <<_ACEOF
31008 /* confdefs.h.  */
31009 _ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h.  */
31013 #include <$ac_header>
31014 _ACEOF
31015 if { (ac_try="$ac_cpp conftest.$ac_ext"
31016 case "(($ac_try" in
31017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018   *) ac_try_echo=$ac_try;;
31019 esac
31020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31022   ac_status=$?
31023   grep -v '^ *+' conftest.er1 >conftest.err
31024   rm -f conftest.er1
31025   cat conftest.err >&5
31026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027   (exit $ac_status); } >/dev/null; then
31028   if test -s conftest.err; then
31029     ac_cpp_err=$ac_c_preproc_warn_flag
31030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31031   else
31032     ac_cpp_err=
31033   fi
31034 else
31035   ac_cpp_err=yes
31036 fi
31037 if test -z "$ac_cpp_err"; then
31038   ac_header_preproc=yes
31039 else
31040   echo "$as_me: failed program was:" >&5
31041 sed 's/^/| /' conftest.$ac_ext >&5
31042
31043   ac_header_preproc=no
31044 fi
31045
31046 rm -f conftest.err conftest.$ac_ext
31047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31048 echo "${ECHO_T}$ac_header_preproc" >&6; }
31049
31050 # So?  What about this header?
31051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31052   yes:no: )
31053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31057     ac_header_preproc=yes
31058     ;;
31059   no:yes:* )
31060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31072     ( cat <<\_ASBOX
31073 ## ----------------------------------- ##
31074 ## Report this to llvmbugs@cs.uiuc.edu ##
31075 ## ----------------------------------- ##
31076 _ASBOX
31077      ) | sed "s/^/$as_me: WARNING:     /" >&2
31078     ;;
31079 esac
31080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31083   echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085   eval "$as_ac_Header=\$ac_header_preproc"
31086 fi
31087 ac_res=`eval echo '${'$as_ac_Header'}'`
31088                { echo "$as_me:$LINENO: result: $ac_res" >&5
31089 echo "${ECHO_T}$ac_res" >&6; }
31090
31091 fi
31092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31093   cat >>confdefs.h <<_ACEOF
31094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31095 _ACEOF
31096
31097 fi
31098
31099 done
31100
31101 fi
31102
31103
31104
31105   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31106 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31107 if test "${ac_cv_huge_val_sanity+set}" = set; then
31108   echo $ECHO_N "(cached) $ECHO_C" >&6
31109 else
31110
31111     ac_ext=cpp
31112 ac_cpp='$CXXCPP $CPPFLAGS'
31113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31116
31117     CXXFLAGS=-pedantic
31118     if test "$cross_compiling" = yes; then
31119   ac_cv_huge_val_sanity=yes
31120 else
31121   cat >conftest.$ac_ext <<_ACEOF
31122 /* confdefs.h.  */
31123 _ACEOF
31124 cat confdefs.h >>conftest.$ac_ext
31125 cat >>conftest.$ac_ext <<_ACEOF
31126 /* end confdefs.h.  */
31127 #include <math.h>
31128 int
31129 main ()
31130 {
31131 double x = HUGE_VAL; return x != x;
31132   ;
31133   return 0;
31134 }
31135 _ACEOF
31136 rm -f conftest$ac_exeext
31137 if { (ac_try="$ac_link"
31138 case "(($ac_try" in
31139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140   *) ac_try_echo=$ac_try;;
31141 esac
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143   (eval "$ac_link") 2>&5
31144   ac_status=$?
31145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31147   { (case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_try") 2>&5
31153   ac_status=$?
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); }; }; then
31156   ac_cv_huge_val_sanity=yes
31157 else
31158   echo "$as_me: program exited with status $ac_status" >&5
31159 echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31161
31162 ( exit $ac_status )
31163 ac_cv_huge_val_sanity=no
31164 fi
31165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31166 fi
31167
31168
31169     ac_ext=c
31170 ac_cpp='$CPP $CPPFLAGS'
31171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174
31175
31176 fi
31177 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31178 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31179   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31180
31181
31182 { echo "$as_me:$LINENO: checking for pid_t" >&5
31183 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31184 if test "${ac_cv_type_pid_t+set}" = set; then
31185   echo $ECHO_N "(cached) $ECHO_C" >&6
31186 else
31187   cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193 $ac_includes_default
31194 typedef pid_t ac__type_new_;
31195 int
31196 main ()
31197 {
31198 if ((ac__type_new_ *) 0)
31199   return 0;
31200 if (sizeof (ac__type_new_))
31201   return 0;
31202   ;
31203   return 0;
31204 }
31205 _ACEOF
31206 rm -f conftest.$ac_objext
31207 if { (ac_try="$ac_compile"
31208 case "(($ac_try" in
31209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210   *) ac_try_echo=$ac_try;;
31211 esac
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213   (eval "$ac_compile") 2>conftest.er1
31214   ac_status=$?
31215   grep -v '^ *+' conftest.er1 >conftest.err
31216   rm -f conftest.er1
31217   cat conftest.err >&5
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); } &&
31220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31221   { (case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_try") 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; } &&
31230          { ac_try='test -s conftest.$ac_objext'
31231   { (case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_try") 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; }; then
31240   ac_cv_type_pid_t=yes
31241 else
31242   echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31244
31245         ac_cv_type_pid_t=no
31246 fi
31247
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249 fi
31250 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31251 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31252 if test $ac_cv_type_pid_t = yes; then
31253   :
31254 else
31255
31256 cat >>confdefs.h <<_ACEOF
31257 #define pid_t int
31258 _ACEOF
31259
31260 fi
31261
31262 { echo "$as_me:$LINENO: checking for size_t" >&5
31263 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31264 if test "${ac_cv_type_size_t+set}" = set; then
31265   echo $ECHO_N "(cached) $ECHO_C" >&6
31266 else
31267   cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273 $ac_includes_default
31274 typedef size_t ac__type_new_;
31275 int
31276 main ()
31277 {
31278 if ((ac__type_new_ *) 0)
31279   return 0;
31280 if (sizeof (ac__type_new_))
31281   return 0;
31282   ;
31283   return 0;
31284 }
31285 _ACEOF
31286 rm -f conftest.$ac_objext
31287 if { (ac_try="$ac_compile"
31288 case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_compile") 2>conftest.er1
31294   ac_status=$?
31295   grep -v '^ *+' conftest.er1 >conftest.err
31296   rm -f conftest.er1
31297   cat conftest.err >&5
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); } &&
31300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31301   { (case "(($ac_try" in
31302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303   *) ac_try_echo=$ac_try;;
31304 esac
31305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306   (eval "$ac_try") 2>&5
31307   ac_status=$?
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); }; } &&
31310          { ac_try='test -s conftest.$ac_objext'
31311   { (case "(($ac_try" in
31312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313   *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316   (eval "$ac_try") 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); }; }; then
31320   ac_cv_type_size_t=yes
31321 else
31322   echo "$as_me: failed program was:" >&5
31323 sed 's/^/| /' conftest.$ac_ext >&5
31324
31325         ac_cv_type_size_t=no
31326 fi
31327
31328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31329 fi
31330 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31331 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31332 if test $ac_cv_type_size_t = yes; then
31333   :
31334 else
31335
31336 cat >>confdefs.h <<_ACEOF
31337 #define size_t unsigned int
31338 _ACEOF
31339
31340 fi
31341
31342 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31343 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31344 if test "${ac_cv_type_signal+set}" = set; then
31345   echo $ECHO_N "(cached) $ECHO_C" >&6
31346 else
31347   cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h.  */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h.  */
31353 #include <sys/types.h>
31354 #include <signal.h>
31355
31356 int
31357 main ()
31358 {
31359 return *(signal (0, 0)) (0) == 1;
31360   ;
31361   return 0;
31362 }
31363 _ACEOF
31364 rm -f conftest.$ac_objext
31365 if { (ac_try="$ac_compile"
31366 case "(($ac_try" in
31367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368   *) ac_try_echo=$ac_try;;
31369 esac
31370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371   (eval "$ac_compile") 2>conftest.er1
31372   ac_status=$?
31373   grep -v '^ *+' conftest.er1 >conftest.err
31374   rm -f conftest.er1
31375   cat conftest.err >&5
31376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377   (exit $ac_status); } &&
31378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31379   { (case "(($ac_try" in
31380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31381   *) ac_try_echo=$ac_try;;
31382 esac
31383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31384   (eval "$ac_try") 2>&5
31385   ac_status=$?
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); }; } &&
31388          { ac_try='test -s conftest.$ac_objext'
31389   { (case "(($ac_try" in
31390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391   *) ac_try_echo=$ac_try;;
31392 esac
31393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394   (eval "$ac_try") 2>&5
31395   ac_status=$?
31396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); }; }; then
31398   ac_cv_type_signal=int
31399 else
31400   echo "$as_me: failed program was:" >&5
31401 sed 's/^/| /' conftest.$ac_ext >&5
31402
31403         ac_cv_type_signal=void
31404 fi
31405
31406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407 fi
31408 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31409 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31410
31411 cat >>confdefs.h <<_ACEOF
31412 #define RETSIGTYPE $ac_cv_type_signal
31413 _ACEOF
31414
31415
31416 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31417 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31418 if test "${ac_cv_struct_tm+set}" = set; then
31419   echo $ECHO_N "(cached) $ECHO_C" >&6
31420 else
31421   cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427 #include <sys/types.h>
31428 #include <time.h>
31429
31430 int
31431 main ()
31432 {
31433 struct tm *tp; tp->tm_sec;
31434   ;
31435   return 0;
31436 }
31437 _ACEOF
31438 rm -f conftest.$ac_objext
31439 if { (ac_try="$ac_compile"
31440 case "(($ac_try" in
31441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442   *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445   (eval "$ac_compile") 2>conftest.er1
31446   ac_status=$?
31447   grep -v '^ *+' conftest.er1 >conftest.err
31448   rm -f conftest.er1
31449   cat conftest.err >&5
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); } &&
31452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31453   { (case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458   (eval "$ac_try") 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; } &&
31462          { ac_try='test -s conftest.$ac_objext'
31463   { (case "(($ac_try" in
31464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465   *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468   (eval "$ac_try") 2>&5
31469   ac_status=$?
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); }; }; then
31472   ac_cv_struct_tm=time.h
31473 else
31474   echo "$as_me: failed program was:" >&5
31475 sed 's/^/| /' conftest.$ac_ext >&5
31476
31477         ac_cv_struct_tm=sys/time.h
31478 fi
31479
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481 fi
31482 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31483 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31484 if test $ac_cv_struct_tm = sys/time.h; then
31485
31486 cat >>confdefs.h <<\_ACEOF
31487 #define TM_IN_SYS_TIME 1
31488 _ACEOF
31489
31490 fi
31491
31492 { echo "$as_me:$LINENO: checking for int64_t" >&5
31493 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31494 if test "${ac_cv_type_int64_t+set}" = set; then
31495   echo $ECHO_N "(cached) $ECHO_C" >&6
31496 else
31497   cat >conftest.$ac_ext <<_ACEOF
31498 /* confdefs.h.  */
31499 _ACEOF
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h.  */
31503 $ac_includes_default
31504 typedef int64_t ac__type_new_;
31505 int
31506 main ()
31507 {
31508 if ((ac__type_new_ *) 0)
31509   return 0;
31510 if (sizeof (ac__type_new_))
31511   return 0;
31512   ;
31513   return 0;
31514 }
31515 _ACEOF
31516 rm -f conftest.$ac_objext
31517 if { (ac_try="$ac_compile"
31518 case "(($ac_try" in
31519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520   *) ac_try_echo=$ac_try;;
31521 esac
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523   (eval "$ac_compile") 2>conftest.er1
31524   ac_status=$?
31525   grep -v '^ *+' conftest.er1 >conftest.err
31526   rm -f conftest.er1
31527   cat conftest.err >&5
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); } &&
31530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31531   { (case "(($ac_try" in
31532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533   *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536   (eval "$ac_try") 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; } &&
31540          { ac_try='test -s conftest.$ac_objext'
31541   { (case "(($ac_try" in
31542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543   *) ac_try_echo=$ac_try;;
31544 esac
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546   (eval "$ac_try") 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; }; then
31550   ac_cv_type_int64_t=yes
31551 else
31552   echo "$as_me: failed program was:" >&5
31553 sed 's/^/| /' conftest.$ac_ext >&5
31554
31555         ac_cv_type_int64_t=no
31556 fi
31557
31558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31559 fi
31560 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31561 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31562 if test $ac_cv_type_int64_t = yes; then
31563
31564 cat >>confdefs.h <<_ACEOF
31565 #define HAVE_INT64_T 1
31566 _ACEOF
31567
31568
31569 else
31570   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31571 echo "$as_me: error: Type int64_t required but not found" >&2;}
31572    { (exit 1); exit 1; }; }
31573 fi
31574
31575 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31576 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31577 if test "${ac_cv_type_uint64_t+set}" = set; then
31578   echo $ECHO_N "(cached) $ECHO_C" >&6
31579 else
31580   cat >conftest.$ac_ext <<_ACEOF
31581 /* confdefs.h.  */
31582 _ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h.  */
31586 $ac_includes_default
31587 typedef uint64_t ac__type_new_;
31588 int
31589 main ()
31590 {
31591 if ((ac__type_new_ *) 0)
31592   return 0;
31593 if (sizeof (ac__type_new_))
31594   return 0;
31595   ;
31596   return 0;
31597 }
31598 _ACEOF
31599 rm -f conftest.$ac_objext
31600 if { (ac_try="$ac_compile"
31601 case "(($ac_try" in
31602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603   *) ac_try_echo=$ac_try;;
31604 esac
31605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606   (eval "$ac_compile") 2>conftest.er1
31607   ac_status=$?
31608   grep -v '^ *+' conftest.er1 >conftest.err
31609   rm -f conftest.er1
31610   cat conftest.err >&5
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); } &&
31613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31614   { (case "(($ac_try" in
31615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616   *) ac_try_echo=$ac_try;;
31617 esac
31618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619   (eval "$ac_try") 2>&5
31620   ac_status=$?
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); }; } &&
31623          { ac_try='test -s conftest.$ac_objext'
31624   { (case "(($ac_try" in
31625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626   *) ac_try_echo=$ac_try;;
31627 esac
31628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629   (eval "$ac_try") 2>&5
31630   ac_status=$?
31631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632   (exit $ac_status); }; }; then
31633   ac_cv_type_uint64_t=yes
31634 else
31635   echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31637
31638         ac_cv_type_uint64_t=no
31639 fi
31640
31641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31642 fi
31643 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31644 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31645 if test $ac_cv_type_uint64_t = yes; then
31646
31647 cat >>confdefs.h <<_ACEOF
31648 #define HAVE_UINT64_T 1
31649 _ACEOF
31650
31651
31652 else
31653   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31654 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31655 if test "${ac_cv_type_u_int64_t+set}" = set; then
31656   echo $ECHO_N "(cached) $ECHO_C" >&6
31657 else
31658   cat >conftest.$ac_ext <<_ACEOF
31659 /* confdefs.h.  */
31660 _ACEOF
31661 cat confdefs.h >>conftest.$ac_ext
31662 cat >>conftest.$ac_ext <<_ACEOF
31663 /* end confdefs.h.  */
31664 $ac_includes_default
31665 typedef u_int64_t ac__type_new_;
31666 int
31667 main ()
31668 {
31669 if ((ac__type_new_ *) 0)
31670   return 0;
31671 if (sizeof (ac__type_new_))
31672   return 0;
31673   ;
31674   return 0;
31675 }
31676 _ACEOF
31677 rm -f conftest.$ac_objext
31678 if { (ac_try="$ac_compile"
31679 case "(($ac_try" in
31680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681   *) ac_try_echo=$ac_try;;
31682 esac
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684   (eval "$ac_compile") 2>conftest.er1
31685   ac_status=$?
31686   grep -v '^ *+' conftest.er1 >conftest.err
31687   rm -f conftest.er1
31688   cat conftest.err >&5
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } &&
31691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31692   { (case "(($ac_try" in
31693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694   *) ac_try_echo=$ac_try;;
31695 esac
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697   (eval "$ac_try") 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; } &&
31701          { ac_try='test -s conftest.$ac_objext'
31702   { (case "(($ac_try" in
31703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704   *) ac_try_echo=$ac_try;;
31705 esac
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707   (eval "$ac_try") 2>&5
31708   ac_status=$?
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); }; }; then
31711   ac_cv_type_u_int64_t=yes
31712 else
31713   echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716         ac_cv_type_u_int64_t=no
31717 fi
31718
31719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 fi
31721 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31722 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31723 if test $ac_cv_type_u_int64_t = yes; then
31724
31725 cat >>confdefs.h <<_ACEOF
31726 #define HAVE_U_INT64_T 1
31727 _ACEOF
31728
31729
31730 else
31731   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31732 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31733    { (exit 1); exit 1; }; }
31734 fi
31735
31736 fi
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31748 do
31749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31753   echo $ECHO_N "(cached) $ECHO_C" >&6
31754 else
31755   cat >conftest.$ac_ext <<_ACEOF
31756 /* confdefs.h.  */
31757 _ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h.  */
31761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31763 #define $ac_func innocuous_$ac_func
31764
31765 /* System header to define __stub macros and hopefully few prototypes,
31766     which can conflict with char $ac_func (); below.
31767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31768     <limits.h> exists even on freestanding compilers.  */
31769
31770 #ifdef __STDC__
31771 # include <limits.h>
31772 #else
31773 # include <assert.h>
31774 #endif
31775
31776 #undef $ac_func
31777
31778 /* Override any GCC internal prototype to avoid an error.
31779    Use char because int might match the return type of a GCC
31780    builtin and then its argument prototype would still apply.  */
31781 #ifdef __cplusplus
31782 extern "C"
31783 #endif
31784 char $ac_func ();
31785 /* The GNU C library defines this for functions which it implements
31786     to always fail with ENOSYS.  Some functions are actually named
31787     something starting with __ and the normal name is an alias.  */
31788 #if defined __stub_$ac_func || defined __stub___$ac_func
31789 choke me
31790 #endif
31791
31792 int
31793 main ()
31794 {
31795 return $ac_func ();
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext conftest$ac_exeext
31801 if { (ac_try="$ac_link"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_link") 2>conftest.er1
31808   ac_status=$?
31809   grep -v '^ *+' conftest.er1 >conftest.err
31810   rm -f conftest.er1
31811   cat conftest.err >&5
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); } &&
31814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815   { (case "(($ac_try" in
31816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817   *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820   (eval "$ac_try") 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; } &&
31824          { ac_try='test -s conftest$ac_exeext'
31825   { (case "(($ac_try" in
31826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827   *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830   (eval "$ac_try") 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   eval "$as_ac_var=yes"
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839         eval "$as_ac_var=no"
31840 fi
31841
31842 rm -f core conftest.err conftest.$ac_objext \
31843       conftest$ac_exeext conftest.$ac_ext
31844 fi
31845 ac_res=`eval echo '${'$as_ac_var'}'`
31846                { echo "$as_me:$LINENO: result: $ac_res" >&5
31847 echo "${ECHO_T}$ac_res" >&6; }
31848 if test `eval echo '${'$as_ac_var'}'` = yes; then
31849   cat >>confdefs.h <<_ACEOF
31850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31851 _ACEOF
31852
31853 fi
31854 done
31855
31856
31857
31858
31859
31860 for ac_func in powf fmodf strtof round
31861 do
31862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866   echo $ECHO_N "(cached) $ECHO_C" >&6
31867 else
31868   cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31876 #define $ac_func innocuous_$ac_func
31877
31878 /* System header to define __stub macros and hopefully few prototypes,
31879     which can conflict with char $ac_func (); below.
31880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881     <limits.h> exists even on freestanding compilers.  */
31882
31883 #ifdef __STDC__
31884 # include <limits.h>
31885 #else
31886 # include <assert.h>
31887 #endif
31888
31889 #undef $ac_func
31890
31891 /* Override any GCC internal prototype to avoid an error.
31892    Use char because int might match the return type of a GCC
31893    builtin and then its argument prototype would still apply.  */
31894 #ifdef __cplusplus
31895 extern "C"
31896 #endif
31897 char $ac_func ();
31898 /* The GNU C library defines this for functions which it implements
31899     to always fail with ENOSYS.  Some functions are actually named
31900     something starting with __ and the normal name is an alias.  */
31901 #if defined __stub_$ac_func || defined __stub___$ac_func
31902 choke me
31903 #endif
31904
31905 int
31906 main ()
31907 {
31908 return $ac_func ();
31909   ;
31910   return 0;
31911 }
31912 _ACEOF
31913 rm -f conftest.$ac_objext conftest$ac_exeext
31914 if { (ac_try="$ac_link"
31915 case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_link") 2>conftest.er1
31921   ac_status=$?
31922   grep -v '^ *+' conftest.er1 >conftest.err
31923   rm -f conftest.er1
31924   cat conftest.err >&5
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } &&
31927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928   { (case "(($ac_try" in
31929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930   *) ac_try_echo=$ac_try;;
31931 esac
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933   (eval "$ac_try") 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; } &&
31937          { ac_try='test -s conftest$ac_exeext'
31938   { (case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_try") 2>&5
31944   ac_status=$?
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); }; }; then
31947   eval "$as_ac_var=yes"
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952         eval "$as_ac_var=no"
31953 fi
31954
31955 rm -f core conftest.err conftest.$ac_objext \
31956       conftest$ac_exeext conftest.$ac_ext
31957 fi
31958 ac_res=`eval echo '${'$as_ac_var'}'`
31959                { echo "$as_me:$LINENO: result: $ac_res" >&5
31960 echo "${ECHO_T}$ac_res" >&6; }
31961 if test `eval echo '${'$as_ac_var'}'` = yes; then
31962   cat >>confdefs.h <<_ACEOF
31963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964 _ACEOF
31965
31966 fi
31967 done
31968
31969
31970
31971
31972
31973
31974 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31975 do
31976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31980   echo $ECHO_N "(cached) $ECHO_C" >&6
31981 else
31982   cat >conftest.$ac_ext <<_ACEOF
31983 /* confdefs.h.  */
31984 _ACEOF
31985 cat confdefs.h >>conftest.$ac_ext
31986 cat >>conftest.$ac_ext <<_ACEOF
31987 /* end confdefs.h.  */
31988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31990 #define $ac_func innocuous_$ac_func
31991
31992 /* System header to define __stub macros and hopefully few prototypes,
31993     which can conflict with char $ac_func (); below.
31994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31995     <limits.h> exists even on freestanding compilers.  */
31996
31997 #ifdef __STDC__
31998 # include <limits.h>
31999 #else
32000 # include <assert.h>
32001 #endif
32002
32003 #undef $ac_func
32004
32005 /* Override any GCC internal prototype to avoid an error.
32006    Use char because int might match the return type of a GCC
32007    builtin and then its argument prototype would still apply.  */
32008 #ifdef __cplusplus
32009 extern "C"
32010 #endif
32011 char $ac_func ();
32012 /* The GNU C library defines this for functions which it implements
32013     to always fail with ENOSYS.  Some functions are actually named
32014     something starting with __ and the normal name is an alias.  */
32015 #if defined __stub_$ac_func || defined __stub___$ac_func
32016 choke me
32017 #endif
32018
32019 int
32020 main ()
32021 {
32022 return $ac_func ();
32023   ;
32024   return 0;
32025 }
32026 _ACEOF
32027 rm -f conftest.$ac_objext conftest$ac_exeext
32028 if { (ac_try="$ac_link"
32029 case "(($ac_try" in
32030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32031   *) ac_try_echo=$ac_try;;
32032 esac
32033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32034   (eval "$ac_link") 2>conftest.er1
32035   ac_status=$?
32036   grep -v '^ *+' conftest.er1 >conftest.err
32037   rm -f conftest.er1
32038   cat conftest.err >&5
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); } &&
32041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32042   { (case "(($ac_try" in
32043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044   *) ac_try_echo=$ac_try;;
32045 esac
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047   (eval "$ac_try") 2>&5
32048   ac_status=$?
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); }; } &&
32051          { ac_try='test -s conftest$ac_exeext'
32052   { (case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_try") 2>&5
32058   ac_status=$?
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); }; }; then
32061   eval "$as_ac_var=yes"
32062 else
32063   echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32065
32066         eval "$as_ac_var=no"
32067 fi
32068
32069 rm -f core conftest.err conftest.$ac_objext \
32070       conftest$ac_exeext conftest.$ac_ext
32071 fi
32072 ac_res=`eval echo '${'$as_ac_var'}'`
32073                { echo "$as_me:$LINENO: result: $ac_res" >&5
32074 echo "${ECHO_T}$ac_res" >&6; }
32075 if test `eval echo '${'$as_ac_var'}'` = yes; then
32076   cat >>confdefs.h <<_ACEOF
32077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32078 _ACEOF
32079
32080 fi
32081 done
32082
32083
32084
32085
32086 for ac_func in isatty mkdtemp mkstemp
32087 do
32088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32092   echo $ECHO_N "(cached) $ECHO_C" >&6
32093 else
32094   cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32102 #define $ac_func innocuous_$ac_func
32103
32104 /* System header to define __stub macros and hopefully few prototypes,
32105     which can conflict with char $ac_func (); below.
32106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107     <limits.h> exists even on freestanding compilers.  */
32108
32109 #ifdef __STDC__
32110 # include <limits.h>
32111 #else
32112 # include <assert.h>
32113 #endif
32114
32115 #undef $ac_func
32116
32117 /* Override any GCC internal prototype to avoid an error.
32118    Use char because int might match the return type of a GCC
32119    builtin and then its argument prototype would still apply.  */
32120 #ifdef __cplusplus
32121 extern "C"
32122 #endif
32123 char $ac_func ();
32124 /* The GNU C library defines this for functions which it implements
32125     to always fail with ENOSYS.  Some functions are actually named
32126     something starting with __ and the normal name is an alias.  */
32127 #if defined __stub_$ac_func || defined __stub___$ac_func
32128 choke me
32129 #endif
32130
32131 int
32132 main ()
32133 {
32134 return $ac_func ();
32135   ;
32136   return 0;
32137 }
32138 _ACEOF
32139 rm -f conftest.$ac_objext conftest$ac_exeext
32140 if { (ac_try="$ac_link"
32141 case "(($ac_try" in
32142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143   *) ac_try_echo=$ac_try;;
32144 esac
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146   (eval "$ac_link") 2>conftest.er1
32147   ac_status=$?
32148   grep -v '^ *+' conftest.er1 >conftest.err
32149   rm -f conftest.er1
32150   cat conftest.err >&5
32151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152   (exit $ac_status); } &&
32153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154   { (case "(($ac_try" in
32155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156   *) ac_try_echo=$ac_try;;
32157 esac
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159   (eval "$ac_try") 2>&5
32160   ac_status=$?
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); }; } &&
32163          { ac_try='test -s conftest$ac_exeext'
32164   { (case "(($ac_try" in
32165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166   *) ac_try_echo=$ac_try;;
32167 esac
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169   (eval "$ac_try") 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; }; then
32173   eval "$as_ac_var=yes"
32174 else
32175   echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32177
32178         eval "$as_ac_var=no"
32179 fi
32180
32181 rm -f core conftest.err conftest.$ac_objext \
32182       conftest$ac_exeext conftest.$ac_ext
32183 fi
32184 ac_res=`eval echo '${'$as_ac_var'}'`
32185                { echo "$as_me:$LINENO: result: $ac_res" >&5
32186 echo "${ECHO_T}$ac_res" >&6; }
32187 if test `eval echo '${'$as_ac_var'}'` = yes; then
32188   cat >>confdefs.h <<_ACEOF
32189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32190 _ACEOF
32191
32192 fi
32193 done
32194
32195
32196
32197
32198
32199
32200 for ac_func in mktemp realpath sbrk setrlimit strdup
32201 do
32202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32206   echo $ECHO_N "(cached) $ECHO_C" >&6
32207 else
32208   cat >conftest.$ac_ext <<_ACEOF
32209 /* confdefs.h.  */
32210 _ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h.  */
32214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32216 #define $ac_func innocuous_$ac_func
32217
32218 /* System header to define __stub macros and hopefully few prototypes,
32219     which can conflict with char $ac_func (); below.
32220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32221     <limits.h> exists even on freestanding compilers.  */
32222
32223 #ifdef __STDC__
32224 # include <limits.h>
32225 #else
32226 # include <assert.h>
32227 #endif
32228
32229 #undef $ac_func
32230
32231 /* Override any GCC internal prototype to avoid an error.
32232    Use char because int might match the return type of a GCC
32233    builtin and then its argument prototype would still apply.  */
32234 #ifdef __cplusplus
32235 extern "C"
32236 #endif
32237 char $ac_func ();
32238 /* The GNU C library defines this for functions which it implements
32239     to always fail with ENOSYS.  Some functions are actually named
32240     something starting with __ and the normal name is an alias.  */
32241 #if defined __stub_$ac_func || defined __stub___$ac_func
32242 choke me
32243 #endif
32244
32245 int
32246 main ()
32247 {
32248 return $ac_func ();
32249   ;
32250   return 0;
32251 }
32252 _ACEOF
32253 rm -f conftest.$ac_objext conftest$ac_exeext
32254 if { (ac_try="$ac_link"
32255 case "(($ac_try" in
32256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257   *) ac_try_echo=$ac_try;;
32258 esac
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260   (eval "$ac_link") 2>conftest.er1
32261   ac_status=$?
32262   grep -v '^ *+' conftest.er1 >conftest.err
32263   rm -f conftest.er1
32264   cat conftest.err >&5
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); } &&
32267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32268   { (case "(($ac_try" in
32269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270   *) ac_try_echo=$ac_try;;
32271 esac
32272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273   (eval "$ac_try") 2>&5
32274   ac_status=$?
32275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276   (exit $ac_status); }; } &&
32277          { ac_try='test -s conftest$ac_exeext'
32278   { (case "(($ac_try" in
32279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280   *) ac_try_echo=$ac_try;;
32281 esac
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283   (eval "$ac_try") 2>&5
32284   ac_status=$?
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); }; }; then
32287   eval "$as_ac_var=yes"
32288 else
32289   echo "$as_me: failed program was:" >&5
32290 sed 's/^/| /' conftest.$ac_ext >&5
32291
32292         eval "$as_ac_var=no"
32293 fi
32294
32295 rm -f core conftest.err conftest.$ac_objext \
32296       conftest$ac_exeext conftest.$ac_ext
32297 fi
32298 ac_res=`eval echo '${'$as_ac_var'}'`
32299                { echo "$as_me:$LINENO: result: $ac_res" >&5
32300 echo "${ECHO_T}$ac_res" >&6; }
32301 if test `eval echo '${'$as_ac_var'}'` = yes; then
32302   cat >>confdefs.h <<_ACEOF
32303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32304 _ACEOF
32305
32306 fi
32307 done
32308
32309
32310
32311
32312
32313 for ac_func in strerror strerror_r strerror_s setenv
32314 do
32315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32319   echo $ECHO_N "(cached) $ECHO_C" >&6
32320 else
32321   cat >conftest.$ac_ext <<_ACEOF
32322 /* confdefs.h.  */
32323 _ACEOF
32324 cat confdefs.h >>conftest.$ac_ext
32325 cat >>conftest.$ac_ext <<_ACEOF
32326 /* end confdefs.h.  */
32327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32329 #define $ac_func innocuous_$ac_func
32330
32331 /* System header to define __stub macros and hopefully few prototypes,
32332     which can conflict with char $ac_func (); below.
32333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32334     <limits.h> exists even on freestanding compilers.  */
32335
32336 #ifdef __STDC__
32337 # include <limits.h>
32338 #else
32339 # include <assert.h>
32340 #endif
32341
32342 #undef $ac_func
32343
32344 /* Override any GCC internal prototype to avoid an error.
32345    Use char because int might match the return type of a GCC
32346    builtin and then its argument prototype would still apply.  */
32347 #ifdef __cplusplus
32348 extern "C"
32349 #endif
32350 char $ac_func ();
32351 /* The GNU C library defines this for functions which it implements
32352     to always fail with ENOSYS.  Some functions are actually named
32353     something starting with __ and the normal name is an alias.  */
32354 #if defined __stub_$ac_func || defined __stub___$ac_func
32355 choke me
32356 #endif
32357
32358 int
32359 main ()
32360 {
32361 return $ac_func ();
32362   ;
32363   return 0;
32364 }
32365 _ACEOF
32366 rm -f conftest.$ac_objext conftest$ac_exeext
32367 if { (ac_try="$ac_link"
32368 case "(($ac_try" in
32369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370   *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373   (eval "$ac_link") 2>conftest.er1
32374   ac_status=$?
32375   grep -v '^ *+' conftest.er1 >conftest.err
32376   rm -f conftest.er1
32377   cat conftest.err >&5
32378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379   (exit $ac_status); } &&
32380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32381   { (case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_try") 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); }; } &&
32390          { ac_try='test -s conftest$ac_exeext'
32391   { (case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_try") 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); }; }; then
32400   eval "$as_ac_var=yes"
32401 else
32402   echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32404
32405         eval "$as_ac_var=no"
32406 fi
32407
32408 rm -f core conftest.err conftest.$ac_objext \
32409       conftest$ac_exeext conftest.$ac_ext
32410 fi
32411 ac_res=`eval echo '${'$as_ac_var'}'`
32412                { echo "$as_me:$LINENO: result: $ac_res" >&5
32413 echo "${ECHO_T}$ac_res" >&6; }
32414 if test `eval echo '${'$as_ac_var'}'` = yes; then
32415   cat >>confdefs.h <<_ACEOF
32416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32417 _ACEOF
32418
32419 fi
32420 done
32421
32422
32423
32424
32425
32426 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32427 do
32428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32429 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32432   echo $ECHO_N "(cached) $ECHO_C" >&6
32433 else
32434   cat >conftest.$ac_ext <<_ACEOF
32435 /* confdefs.h.  */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h.  */
32440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32442 #define $ac_func innocuous_$ac_func
32443
32444 /* System header to define __stub macros and hopefully few prototypes,
32445     which can conflict with char $ac_func (); below.
32446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447     <limits.h> exists even on freestanding compilers.  */
32448
32449 #ifdef __STDC__
32450 # include <limits.h>
32451 #else
32452 # include <assert.h>
32453 #endif
32454
32455 #undef $ac_func
32456
32457 /* Override any GCC internal prototype to avoid an error.
32458    Use char because int might match the return type of a GCC
32459    builtin and then its argument prototype would still apply.  */
32460 #ifdef __cplusplus
32461 extern "C"
32462 #endif
32463 char $ac_func ();
32464 /* The GNU C library defines this for functions which it implements
32465     to always fail with ENOSYS.  Some functions are actually named
32466     something starting with __ and the normal name is an alias.  */
32467 #if defined __stub_$ac_func || defined __stub___$ac_func
32468 choke me
32469 #endif
32470
32471 int
32472 main ()
32473 {
32474 return $ac_func ();
32475   ;
32476   return 0;
32477 }
32478 _ACEOF
32479 rm -f conftest.$ac_objext conftest$ac_exeext
32480 if { (ac_try="$ac_link"
32481 case "(($ac_try" in
32482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483   *) ac_try_echo=$ac_try;;
32484 esac
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486   (eval "$ac_link") 2>conftest.er1
32487   ac_status=$?
32488   grep -v '^ *+' conftest.er1 >conftest.err
32489   rm -f conftest.er1
32490   cat conftest.err >&5
32491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492   (exit $ac_status); } &&
32493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32494   { (case "(($ac_try" in
32495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496   *) ac_try_echo=$ac_try;;
32497 esac
32498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499   (eval "$ac_try") 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); }; } &&
32503          { ac_try='test -s conftest$ac_exeext'
32504   { (case "(($ac_try" in
32505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506   *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509   (eval "$ac_try") 2>&5
32510   ac_status=$?
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); }; }; then
32513   eval "$as_ac_var=yes"
32514 else
32515   echo "$as_me: failed program was:" >&5
32516 sed 's/^/| /' conftest.$ac_ext >&5
32517
32518         eval "$as_ac_var=no"
32519 fi
32520
32521 rm -f core conftest.err conftest.$ac_objext \
32522       conftest$ac_exeext conftest.$ac_ext
32523 fi
32524 ac_res=`eval echo '${'$as_ac_var'}'`
32525                { echo "$as_me:$LINENO: result: $ac_res" >&5
32526 echo "${ECHO_T}$ac_res" >&6; }
32527 if test `eval echo '${'$as_ac_var'}'` = yes; then
32528   cat >>confdefs.h <<_ACEOF
32529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32530 _ACEOF
32531
32532 fi
32533 done
32534
32535
32536
32537
32538
32539 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32540 do
32541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32545   echo $ECHO_N "(cached) $ECHO_C" >&6
32546 else
32547   cat >conftest.$ac_ext <<_ACEOF
32548 /* confdefs.h.  */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h.  */
32553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32555 #define $ac_func innocuous_$ac_func
32556
32557 /* System header to define __stub macros and hopefully few prototypes,
32558     which can conflict with char $ac_func (); below.
32559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32560     <limits.h> exists even on freestanding compilers.  */
32561
32562 #ifdef __STDC__
32563 # include <limits.h>
32564 #else
32565 # include <assert.h>
32566 #endif
32567
32568 #undef $ac_func
32569
32570 /* Override any GCC internal prototype to avoid an error.
32571    Use char because int might match the return type of a GCC
32572    builtin and then its argument prototype would still apply.  */
32573 #ifdef __cplusplus
32574 extern "C"
32575 #endif
32576 char $ac_func ();
32577 /* The GNU C library defines this for functions which it implements
32578     to always fail with ENOSYS.  Some functions are actually named
32579     something starting with __ and the normal name is an alias.  */
32580 #if defined __stub_$ac_func || defined __stub___$ac_func
32581 choke me
32582 #endif
32583
32584 int
32585 main ()
32586 {
32587 return $ac_func ();
32588   ;
32589   return 0;
32590 }
32591 _ACEOF
32592 rm -f conftest.$ac_objext conftest$ac_exeext
32593 if { (ac_try="$ac_link"
32594 case "(($ac_try" in
32595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596   *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599   (eval "$ac_link") 2>conftest.er1
32600   ac_status=$?
32601   grep -v '^ *+' conftest.er1 >conftest.err
32602   rm -f conftest.er1
32603   cat conftest.err >&5
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); } &&
32606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32607   { (case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_try") 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; } &&
32616          { ac_try='test -s conftest$ac_exeext'
32617   { (case "(($ac_try" in
32618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619   *) ac_try_echo=$ac_try;;
32620 esac
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622   (eval "$ac_try") 2>&5
32623   ac_status=$?
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); }; }; then
32626   eval "$as_ac_var=yes"
32627 else
32628   echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631         eval "$as_ac_var=no"
32632 fi
32633
32634 rm -f core conftest.err conftest.$ac_objext \
32635       conftest$ac_exeext conftest.$ac_ext
32636 fi
32637 ac_res=`eval echo '${'$as_ac_var'}'`
32638                { echo "$as_me:$LINENO: result: $ac_res" >&5
32639 echo "${ECHO_T}$ac_res" >&6; }
32640 if test `eval echo '${'$as_ac_var'}'` = yes; then
32641   cat >>confdefs.h <<_ACEOF
32642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32643 _ACEOF
32644
32645 fi
32646 done
32647
32648 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32649 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32650 if test "${llvm_cv_c_printf_a+set}" = set; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653   ac_ext=c
32654 ac_cpp='$CPP $CPPFLAGS'
32655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32658
32659  if test "$cross_compiling" = yes; then
32660   llvmac_cv_c_printf_a=no
32661 else
32662   cat >conftest.$ac_ext <<_ACEOF
32663
32664   /* confdefs.h.  */
32665 _ACEOF
32666 cat confdefs.h >>conftest.$ac_ext
32667 cat >>conftest.$ac_ext <<_ACEOF
32668 /* end confdefs.h.  */
32669
32670 #include <stdio.h>
32671 #include <stdlib.h>
32672
32673 int
32674 main ()
32675 {
32676
32677 volatile double A, B;
32678 char Buffer[100];
32679 A = 1;
32680 A /= 10.0;
32681 sprintf(Buffer, "%a", A);
32682 B = atof(Buffer);
32683 if (A != B)
32684   return (1);
32685 if (A != 0x1.999999999999ap-4)
32686   return (1);
32687 return (0);
32688   ;
32689   return 0;
32690 }
32691 _ACEOF
32692 rm -f conftest$ac_exeext
32693 if { (ac_try="$ac_link"
32694 case "(($ac_try" in
32695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696   *) ac_try_echo=$ac_try;;
32697 esac
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699   (eval "$ac_link") 2>&5
32700   ac_status=$?
32701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32703   { (case "(($ac_try" in
32704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705   *) ac_try_echo=$ac_try;;
32706 esac
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708   (eval "$ac_try") 2>&5
32709   ac_status=$?
32710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); }; }; then
32712   llvm_cv_c_printf_a=yes
32713 else
32714   echo "$as_me: program exited with status $ac_status" >&5
32715 echo "$as_me: failed program was:" >&5
32716 sed 's/^/| /' conftest.$ac_ext >&5
32717
32718 ( exit $ac_status )
32719 llvmac_cv_c_printf_a=no
32720 fi
32721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32722 fi
32723
32724
32725  ac_ext=c
32726 ac_cpp='$CPP $CPPFLAGS'
32727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32730
32731 fi
32732 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32733 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32734  if test "$llvm_cv_c_printf_a" = "yes"; then
32735
32736 cat >>confdefs.h <<\_ACEOF
32737 #define HAVE_PRINTF_A 1
32738 _ACEOF
32739
32740  fi
32741
32742 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32743 # for constant arguments.  Useless!
32744 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32745 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32746 if test "${ac_cv_working_alloca_h+set}" = set; then
32747   echo $ECHO_N "(cached) $ECHO_C" >&6
32748 else
32749   cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h.  */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h.  */
32755 #include <alloca.h>
32756 int
32757 main ()
32758 {
32759 char *p = (char *) alloca (2 * sizeof (int));
32760                           if (p) return 0;
32761   ;
32762   return 0;
32763 }
32764 _ACEOF
32765 rm -f conftest.$ac_objext conftest$ac_exeext
32766 if { (ac_try="$ac_link"
32767 case "(($ac_try" in
32768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769   *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772   (eval "$ac_link") 2>conftest.er1
32773   ac_status=$?
32774   grep -v '^ *+' conftest.er1 >conftest.err
32775   rm -f conftest.er1
32776   cat conftest.err >&5
32777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778   (exit $ac_status); } &&
32779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32780   { (case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_try") 2>&5
32786   ac_status=$?
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); }; } &&
32789          { ac_try='test -s conftest$ac_exeext'
32790   { (case "(($ac_try" in
32791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792   *) ac_try_echo=$ac_try;;
32793 esac
32794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795   (eval "$ac_try") 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; }; then
32799   ac_cv_working_alloca_h=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804         ac_cv_working_alloca_h=no
32805 fi
32806
32807 rm -f core conftest.err conftest.$ac_objext \
32808       conftest$ac_exeext conftest.$ac_ext
32809 fi
32810 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32811 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32812 if test $ac_cv_working_alloca_h = yes; then
32813
32814 cat >>confdefs.h <<\_ACEOF
32815 #define HAVE_ALLOCA_H 1
32816 _ACEOF
32817
32818 fi
32819
32820 { echo "$as_me:$LINENO: checking for alloca" >&5
32821 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_alloca_works+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831 #ifdef __GNUC__
32832 # define alloca __builtin_alloca
32833 #else
32834 # ifdef _MSC_VER
32835 #  include <malloc.h>
32836 #  define alloca _alloca
32837 # else
32838 #  if HAVE_ALLOCA_H
32839 #   include <alloca.h>
32840 #  else
32841 #   ifdef _AIX
32842  #pragma alloca
32843 #   else
32844 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32845 char *alloca ();
32846 #    endif
32847 #   endif
32848 #  endif
32849 # endif
32850 #endif
32851
32852 int
32853 main ()
32854 {
32855 char *p = (char *) alloca (1);
32856                                     if (p) return 0;
32857   ;
32858   return 0;
32859 }
32860 _ACEOF
32861 rm -f conftest.$ac_objext conftest$ac_exeext
32862 if { (ac_try="$ac_link"
32863 case "(($ac_try" in
32864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865   *) ac_try_echo=$ac_try;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868   (eval "$ac_link") 2>conftest.er1
32869   ac_status=$?
32870   grep -v '^ *+' conftest.er1 >conftest.err
32871   rm -f conftest.er1
32872   cat conftest.err >&5
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); } &&
32875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32876   { (case "(($ac_try" in
32877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878   *) ac_try_echo=$ac_try;;
32879 esac
32880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881   (eval "$ac_try") 2>&5
32882   ac_status=$?
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); }; } &&
32885          { ac_try='test -s conftest$ac_exeext'
32886   { (case "(($ac_try" in
32887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888   *) ac_try_echo=$ac_try;;
32889 esac
32890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891   (eval "$ac_try") 2>&5
32892   ac_status=$?
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); }; }; then
32895   ac_cv_func_alloca_works=yes
32896 else
32897   echo "$as_me: failed program was:" >&5
32898 sed 's/^/| /' conftest.$ac_ext >&5
32899
32900         ac_cv_func_alloca_works=no
32901 fi
32902
32903 rm -f core conftest.err conftest.$ac_objext \
32904       conftest$ac_exeext conftest.$ac_ext
32905 fi
32906 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32907 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32908
32909 if test $ac_cv_func_alloca_works = yes; then
32910
32911 cat >>confdefs.h <<\_ACEOF
32912 #define HAVE_ALLOCA 1
32913 _ACEOF
32914
32915 else
32916   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32917 # that cause trouble.  Some versions do not even contain alloca or
32918 # contain a buggy version.  If you still want to use their alloca,
32919 # use ar to extract alloca.o from them instead of compiling alloca.c.
32920
32921 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32922
32923 cat >>confdefs.h <<\_ACEOF
32924 #define C_ALLOCA 1
32925 _ACEOF
32926
32927
32928 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32929 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32930 if test "${ac_cv_os_cray+set}" = set; then
32931   echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933   cat >conftest.$ac_ext <<_ACEOF
32934 /* confdefs.h.  */
32935 _ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h.  */
32939 #if defined CRAY && ! defined CRAY2
32940 webecray
32941 #else
32942 wenotbecray
32943 #endif
32944
32945 _ACEOF
32946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32947   $EGREP "webecray" >/dev/null 2>&1; then
32948   ac_cv_os_cray=yes
32949 else
32950   ac_cv_os_cray=no
32951 fi
32952 rm -f conftest*
32953
32954 fi
32955 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32956 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32957 if test $ac_cv_os_cray = yes; then
32958   for ac_func in _getb67 GETB67 getb67; do
32959     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32963   echo $ECHO_N "(cached) $ECHO_C" >&6
32964 else
32965   cat >conftest.$ac_ext <<_ACEOF
32966 /* confdefs.h.  */
32967 _ACEOF
32968 cat confdefs.h >>conftest.$ac_ext
32969 cat >>conftest.$ac_ext <<_ACEOF
32970 /* end confdefs.h.  */
32971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32973 #define $ac_func innocuous_$ac_func
32974
32975 /* System header to define __stub macros and hopefully few prototypes,
32976     which can conflict with char $ac_func (); below.
32977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32978     <limits.h> exists even on freestanding compilers.  */
32979
32980 #ifdef __STDC__
32981 # include <limits.h>
32982 #else
32983 # include <assert.h>
32984 #endif
32985
32986 #undef $ac_func
32987
32988 /* Override any GCC internal prototype to avoid an error.
32989    Use char because int might match the return type of a GCC
32990    builtin and then its argument prototype would still apply.  */
32991 #ifdef __cplusplus
32992 extern "C"
32993 #endif
32994 char $ac_func ();
32995 /* The GNU C library defines this for functions which it implements
32996     to always fail with ENOSYS.  Some functions are actually named
32997     something starting with __ and the normal name is an alias.  */
32998 #if defined __stub_$ac_func || defined __stub___$ac_func
32999 choke me
33000 #endif
33001
33002 int
33003 main ()
33004 {
33005 return $ac_func ();
33006   ;
33007   return 0;
33008 }
33009 _ACEOF
33010 rm -f conftest.$ac_objext conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_link") 2>conftest.er1
33018   ac_status=$?
33019   grep -v '^ *+' conftest.er1 >conftest.err
33020   rm -f conftest.er1
33021   cat conftest.err >&5
33022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023   (exit $ac_status); } &&
33024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33025   { (case "(($ac_try" in
33026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027   *) ac_try_echo=$ac_try;;
33028 esac
33029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030   (eval "$ac_try") 2>&5
33031   ac_status=$?
33032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033   (exit $ac_status); }; } &&
33034          { ac_try='test -s conftest$ac_exeext'
33035   { (case "(($ac_try" in
33036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037   *) ac_try_echo=$ac_try;;
33038 esac
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040   (eval "$ac_try") 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); }; }; then
33044   eval "$as_ac_var=yes"
33045 else
33046   echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33048
33049         eval "$as_ac_var=no"
33050 fi
33051
33052 rm -f core conftest.err conftest.$ac_objext \
33053       conftest$ac_exeext conftest.$ac_ext
33054 fi
33055 ac_res=`eval echo '${'$as_ac_var'}'`
33056                { echo "$as_me:$LINENO: result: $ac_res" >&5
33057 echo "${ECHO_T}$ac_res" >&6; }
33058 if test `eval echo '${'$as_ac_var'}'` = yes; then
33059
33060 cat >>confdefs.h <<_ACEOF
33061 #define CRAY_STACKSEG_END $ac_func
33062 _ACEOF
33063
33064     break
33065 fi
33066
33067   done
33068 fi
33069
33070 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33071 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33072 if test "${ac_cv_c_stack_direction+set}" = set; then
33073   echo $ECHO_N "(cached) $ECHO_C" >&6
33074 else
33075   if test "$cross_compiling" = yes; then
33076   ac_cv_c_stack_direction=0
33077 else
33078   cat >conftest.$ac_ext <<_ACEOF
33079 /* confdefs.h.  */
33080 _ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h.  */
33084 $ac_includes_default
33085 int
33086 find_stack_direction ()
33087 {
33088   static char *addr = 0;
33089   auto char dummy;
33090   if (addr == 0)
33091     {
33092       addr = &dummy;
33093       return find_stack_direction ();
33094     }
33095   else
33096     return (&dummy > addr) ? 1 : -1;
33097 }
33098
33099 int
33100 main ()
33101 {
33102   return find_stack_direction () < 0;
33103 }
33104 _ACEOF
33105 rm -f conftest$ac_exeext
33106 if { (ac_try="$ac_link"
33107 case "(($ac_try" in
33108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109   *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112   (eval "$ac_link") 2>&5
33113   ac_status=$?
33114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33116   { (case "(($ac_try" in
33117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118   *) ac_try_echo=$ac_try;;
33119 esac
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121   (eval "$ac_try") 2>&5
33122   ac_status=$?
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); }; }; then
33125   ac_cv_c_stack_direction=1
33126 else
33127   echo "$as_me: program exited with status $ac_status" >&5
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131 ( exit $ac_status )
33132 ac_cv_c_stack_direction=-1
33133 fi
33134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33135 fi
33136
33137
33138 fi
33139 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33140 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33141
33142 cat >>confdefs.h <<_ACEOF
33143 #define STACK_DIRECTION $ac_cv_c_stack_direction
33144 _ACEOF
33145
33146
33147 fi
33148
33149
33150 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33151 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33152 if test "${ac_cv_func_rand48+set}" = set; then
33153   echo $ECHO_N "(cached) $ECHO_C" >&6
33154 else
33155   ac_ext=cpp
33156 ac_cpp='$CXXCPP $CPPFLAGS'
33157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
33161    cat >conftest.$ac_ext <<_ACEOF
33162 /* confdefs.h.  */
33163 _ACEOF
33164 cat confdefs.h >>conftest.$ac_ext
33165 cat >>conftest.$ac_ext <<_ACEOF
33166 /* end confdefs.h.  */
33167 #include <stdlib.h>
33168 int
33169 main ()
33170 {
33171 srand48(0);lrand48();drand48();
33172   ;
33173   return 0;
33174 }
33175 _ACEOF
33176 rm -f conftest.$ac_objext
33177 if { (ac_try="$ac_compile"
33178 case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_compile") 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } &&
33190          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33200          { ac_try='test -s conftest.$ac_objext'
33201   { (case "(($ac_try" in
33202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203   *) ac_try_echo=$ac_try;;
33204 esac
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206   (eval "$ac_try") 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_func_rand48=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215         ac_cv_func_rand48=no
33216 fi
33217
33218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33219   ac_ext=c
33220 ac_cpp='$CPP $CPPFLAGS'
33221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33224
33225 fi
33226 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33227 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33228
33229 if test "$ac_cv_func_rand48" = "yes" ; then
33230
33231 cat >>confdefs.h <<\_ACEOF
33232 #define HAVE_RAND48 1
33233 _ACEOF
33234
33235 fi
33236
33237
33238 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33239 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33240 if test "${ac_cv_cxx_namespaces+set}" = set; then
33241   echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33243   ac_ext=cpp
33244 ac_cpp='$CXXCPP $CPPFLAGS'
33245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33248
33249  cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h.  */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h.  */
33255 namespace Outer { namespace Inner { int i = 0; }}
33256 int
33257 main ()
33258 {
33259 using namespace Outer::Inner; return i;
33260   ;
33261   return 0;
33262 }
33263 _ACEOF
33264 rm -f conftest.$ac_objext
33265 if { (ac_try="$ac_compile"
33266 case "(($ac_try" in
33267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268   *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271   (eval "$ac_compile") 2>conftest.er1
33272   ac_status=$?
33273   grep -v '^ *+' conftest.er1 >conftest.err
33274   rm -f conftest.er1
33275   cat conftest.err >&5
33276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277   (exit $ac_status); } &&
33278          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33279   { (case "(($ac_try" in
33280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281   *) ac_try_echo=$ac_try;;
33282 esac
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284   (eval "$ac_try") 2>&5
33285   ac_status=$?
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); }; } &&
33288          { ac_try='test -s conftest.$ac_objext'
33289   { (case "(($ac_try" in
33290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291   *) ac_try_echo=$ac_try;;
33292 esac
33293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294   (eval "$ac_try") 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; }; then
33298   ac_cv_cxx_namespaces=yes
33299 else
33300   echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33302
33303         ac_cv_cxx_namespaces=no
33304 fi
33305
33306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307  ac_ext=c
33308 ac_cpp='$CPP $CPPFLAGS'
33309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33312
33313
33314 fi
33315 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33316 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33317 if test "$ac_cv_cxx_namespaces" = yes; then
33318
33319 cat >>confdefs.h <<\_ACEOF
33320 #define HAVE_NAMESPACES
33321 _ACEOF
33322
33323 fi
33324
33325 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33326 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33327 if test "${ac_cv_cxx_have_std_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 iterator<int,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_std_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_std_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_std_iterator" >&5
33407 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33408 if test "$ac_cv_cxx_have_std_iterator" = yes
33409 then
33410
33411 cat >>confdefs.h <<\_ACEOF
33412 #define HAVE_STD_ITERATOR 1
33413 _ACEOF
33414
33415 else
33416
33417 cat >>confdefs.h <<\_ACEOF
33418 #define HAVE_STD_ITERATOR 0
33419 _ACEOF
33420
33421 fi
33422
33423 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33424 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33425 if test "${ac_cv_cxx_have_bi_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 bidirectional_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_bi_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_bi_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_bi_iterator" >&5
33505 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33506 if test "$ac_cv_cxx_have_bi_iterator" = yes
33507 then
33508
33509 cat >>confdefs.h <<\_ACEOF
33510 #define HAVE_BI_ITERATOR 1
33511 _ACEOF
33512
33513 else
33514
33515 cat >>confdefs.h <<\_ACEOF
33516 #define HAVE_BI_ITERATOR 0
33517 _ACEOF
33518
33519 fi
33520
33521 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33522 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33523 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33524   echo $ECHO_N "(cached) $ECHO_C" >&6
33525 else
33526
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 <iterator>
33540 #ifdef HAVE_NAMESPACES
33541 using namespace std;
33542 #endif
33543 int
33544 main ()
33545 {
33546 forward_iterator<int,int> t; return 0;
33547   ;
33548   return 0;
33549 }
33550 _ACEOF
33551 rm -f conftest.$ac_objext
33552 if { (ac_try="$ac_compile"
33553 case "(($ac_try" in
33554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555   *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558   (eval "$ac_compile") 2>conftest.er1
33559   ac_status=$?
33560   grep -v '^ *+' conftest.er1 >conftest.err
33561   rm -f conftest.er1
33562   cat conftest.err >&5
33563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564   (exit $ac_status); } &&
33565          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566   { (case "(($ac_try" in
33567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568   *) ac_try_echo=$ac_try;;
33569 esac
33570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571   (eval "$ac_try") 2>&5
33572   ac_status=$?
33573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574   (exit $ac_status); }; } &&
33575          { ac_try='test -s conftest.$ac_objext'
33576   { (case "(($ac_try" in
33577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578   *) ac_try_echo=$ac_try;;
33579 esac
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581   (eval "$ac_try") 2>&5
33582   ac_status=$?
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); }; }; then
33585   ac_cv_cxx_have_fwd_iterator=yes
33586 else
33587   echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33589
33590         ac_cv_cxx_have_fwd_iterator=no
33591 fi
33592
33593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33594   ac_ext=c
33595 ac_cpp='$CPP $CPPFLAGS'
33596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33599
33600
33601 fi
33602 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33603 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33604 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33605 then
33606
33607 cat >>confdefs.h <<\_ACEOF
33608 #define HAVE_FWD_ITERATOR 1
33609 _ACEOF
33610
33611 else
33612
33613 cat >>confdefs.h <<\_ACEOF
33614 #define HAVE_FWD_ITERATOR 0
33615 _ACEOF
33616
33617 fi
33618
33619
33620 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33621 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33622 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33623   echo $ECHO_N "(cached) $ECHO_C" >&6
33624 else
33625   ac_ext=cpp
33626 ac_cpp='$CXXCPP $CPPFLAGS'
33627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33630
33631    cat >conftest.$ac_ext <<_ACEOF
33632 /* confdefs.h.  */
33633 _ACEOF
33634 cat confdefs.h >>conftest.$ac_ext
33635 cat >>conftest.$ac_ext <<_ACEOF
33636 /* end confdefs.h.  */
33637 #include <math.h>
33638 int
33639 main ()
33640 {
33641 float f; isnan(f);
33642   ;
33643   return 0;
33644 }
33645 _ACEOF
33646 rm -f conftest.$ac_objext
33647 if { (ac_try="$ac_compile"
33648 case "(($ac_try" in
33649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650   *) ac_try_echo=$ac_try;;
33651 esac
33652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653   (eval "$ac_compile") 2>conftest.er1
33654   ac_status=$?
33655   grep -v '^ *+' conftest.er1 >conftest.err
33656   rm -f conftest.er1
33657   cat conftest.err >&5
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); } &&
33660          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33670          { ac_try='test -s conftest.$ac_objext'
33671   { (case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_try") 2>&5
33677   ac_status=$?
33678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679   (exit $ac_status); }; }; then
33680   ac_cv_func_isnan_in_math_h=yes
33681 else
33682   echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33684
33685         ac_cv_func_isnan_in_math_h=no
33686 fi
33687
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33689   ac_ext=c
33690 ac_cpp='$CPP $CPPFLAGS'
33691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33694
33695 fi
33696 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33697 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33698
33699
33700 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33701
33702 cat >>confdefs.h <<\_ACEOF
33703 #define HAVE_ISNAN_IN_MATH_H 1
33704 _ACEOF
33705
33706 fi
33707
33708 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33709 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33710 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33711   echo $ECHO_N "(cached) $ECHO_C" >&6
33712 else
33713   ac_ext=cpp
33714 ac_cpp='$CXXCPP $CPPFLAGS'
33715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33718
33719    cat >conftest.$ac_ext <<_ACEOF
33720 /* confdefs.h.  */
33721 _ACEOF
33722 cat confdefs.h >>conftest.$ac_ext
33723 cat >>conftest.$ac_ext <<_ACEOF
33724 /* end confdefs.h.  */
33725 #include <cmath>
33726 int
33727 main ()
33728 {
33729 float f; isnan(f);
33730   ;
33731   return 0;
33732 }
33733 _ACEOF
33734 rm -f conftest.$ac_objext
33735 if { (ac_try="$ac_compile"
33736 case "(($ac_try" in
33737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738   *) ac_try_echo=$ac_try;;
33739 esac
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741   (eval "$ac_compile") 2>conftest.er1
33742   ac_status=$?
33743   grep -v '^ *+' conftest.er1 >conftest.err
33744   rm -f conftest.er1
33745   cat conftest.err >&5
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); } &&
33748          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749   { (case "(($ac_try" in
33750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751   *) ac_try_echo=$ac_try;;
33752 esac
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754   (eval "$ac_try") 2>&5
33755   ac_status=$?
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); }; } &&
33758          { ac_try='test -s conftest.$ac_objext'
33759   { (case "(($ac_try" in
33760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761   *) ac_try_echo=$ac_try;;
33762 esac
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764   (eval "$ac_try") 2>&5
33765   ac_status=$?
33766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767   (exit $ac_status); }; }; then
33768   ac_cv_func_isnan_in_cmath=yes
33769 else
33770   echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33772
33773         ac_cv_func_isnan_in_cmath=no
33774 fi
33775
33776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33777   ac_ext=c
33778 ac_cpp='$CPP $CPPFLAGS'
33779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33782
33783 fi
33784 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33785 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33786
33787 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33788
33789 cat >>confdefs.h <<\_ACEOF
33790 #define HAVE_ISNAN_IN_CMATH 1
33791 _ACEOF
33792
33793 fi
33794
33795 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33796 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33797 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33798   echo $ECHO_N "(cached) $ECHO_C" >&6
33799 else
33800   ac_ext=cpp
33801 ac_cpp='$CXXCPP $CPPFLAGS'
33802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33805
33806    cat >conftest.$ac_ext <<_ACEOF
33807 /* confdefs.h.  */
33808 _ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h.  */
33812 #include <cmath>
33813 int
33814 main ()
33815 {
33816 float f; std::isnan(f);
33817   ;
33818   return 0;
33819 }
33820 _ACEOF
33821 rm -f conftest.$ac_objext
33822 if { (ac_try="$ac_compile"
33823 case "(($ac_try" in
33824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825   *) ac_try_echo=$ac_try;;
33826 esac
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828   (eval "$ac_compile") 2>conftest.er1
33829   ac_status=$?
33830   grep -v '^ *+' conftest.er1 >conftest.err
33831   rm -f conftest.er1
33832   cat conftest.err >&5
33833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834   (exit $ac_status); } &&
33835          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33845          { ac_try='test -s conftest.$ac_objext'
33846   { (case "(($ac_try" in
33847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848   *) ac_try_echo=$ac_try;;
33849 esac
33850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851   (eval "$ac_try") 2>&5
33852   ac_status=$?
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); }; }; then
33855   ac_cv_func_std_isnan_in_cmath=yes
33856 else
33857   echo "$as_me: failed program was:" >&5
33858 sed 's/^/| /' conftest.$ac_ext >&5
33859
33860         ac_cv_func_std_isnan_in_cmath=no
33861 fi
33862
33863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864   ac_ext=c
33865 ac_cpp='$CPP $CPPFLAGS'
33866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33869
33870 fi
33871 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33872 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33873
33874 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33875
33876 cat >>confdefs.h <<\_ACEOF
33877 #define HAVE_STD_ISNAN_IN_CMATH 1
33878 _ACEOF
33879
33880 fi
33881
33882
33883 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33884 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33885 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33886   echo $ECHO_N "(cached) $ECHO_C" >&6
33887 else
33888   ac_ext=cpp
33889 ac_cpp='$CXXCPP $CPPFLAGS'
33890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33893
33894    cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h.  */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h.  */
33900 #include <math.h>
33901 int
33902 main ()
33903 {
33904 float f; isinf(f);
33905   ;
33906   return 0;
33907 }
33908 _ACEOF
33909 rm -f conftest.$ac_objext
33910 if { (ac_try="$ac_compile"
33911 case "(($ac_try" in
33912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913   *) ac_try_echo=$ac_try;;
33914 esac
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916   (eval "$ac_compile") 2>conftest.er1
33917   ac_status=$?
33918   grep -v '^ *+' conftest.er1 >conftest.err
33919   rm -f conftest.er1
33920   cat conftest.err >&5
33921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922   (exit $ac_status); } &&
33923          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924   { (case "(($ac_try" in
33925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926   *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929   (eval "$ac_try") 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); }; } &&
33933          { ac_try='test -s conftest.$ac_objext'
33934   { (case "(($ac_try" in
33935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936   *) ac_try_echo=$ac_try;;
33937 esac
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939   (eval "$ac_try") 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); }; }; then
33943   ac_cv_func_isinf_in_math_h=yes
33944 else
33945   echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33947
33948         ac_cv_func_isinf_in_math_h=no
33949 fi
33950
33951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952   ac_ext=c
33953 ac_cpp='$CPP $CPPFLAGS'
33954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33957
33958 fi
33959 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33960 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33961
33962 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33963
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_ISINF_IN_MATH_H 1
33966 _ACEOF
33967
33968 fi
33969
33970 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33971 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33972 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33973   echo $ECHO_N "(cached) $ECHO_C" >&6
33974 else
33975   ac_ext=cpp
33976 ac_cpp='$CXXCPP $CPPFLAGS'
33977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33980
33981    cat >conftest.$ac_ext <<_ACEOF
33982 /* confdefs.h.  */
33983 _ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h.  */
33987 #include <cmath>
33988 int
33989 main ()
33990 {
33991 float f; isinf(f);
33992   ;
33993   return 0;
33994 }
33995 _ACEOF
33996 rm -f conftest.$ac_objext
33997 if { (ac_try="$ac_compile"
33998 case "(($ac_try" in
33999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000   *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003   (eval "$ac_compile") 2>conftest.er1
34004   ac_status=$?
34005   grep -v '^ *+' conftest.er1 >conftest.err
34006   rm -f conftest.er1
34007   cat conftest.err >&5
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); } &&
34010          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011   { (case "(($ac_try" in
34012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013   *) ac_try_echo=$ac_try;;
34014 esac
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016   (eval "$ac_try") 2>&5
34017   ac_status=$?
34018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019   (exit $ac_status); }; } &&
34020          { ac_try='test -s conftest.$ac_objext'
34021   { (case "(($ac_try" in
34022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023   *) ac_try_echo=$ac_try;;
34024 esac
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026   (eval "$ac_try") 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; }; then
34030   ac_cv_func_isinf_in_cmath=yes
34031 else
34032   echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035         ac_cv_func_isinf_in_cmath=no
34036 fi
34037
34038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34039   ac_ext=c
34040 ac_cpp='$CPP $CPPFLAGS'
34041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34044
34045 fi
34046 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34047 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34048
34049 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34050
34051 cat >>confdefs.h <<\_ACEOF
34052 #define HAVE_ISINF_IN_CMATH 1
34053 _ACEOF
34054
34055 fi
34056
34057 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34058 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34059 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34060   echo $ECHO_N "(cached) $ECHO_C" >&6
34061 else
34062   ac_ext=cpp
34063 ac_cpp='$CXXCPP $CPPFLAGS'
34064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34067
34068    cat >conftest.$ac_ext <<_ACEOF
34069 /* confdefs.h.  */
34070 _ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h.  */
34074 #include <cmath>
34075 int
34076 main ()
34077 {
34078 float f; std::isinf(f)}
34079   ;
34080   return 0;
34081 }
34082 _ACEOF
34083 rm -f conftest.$ac_objext
34084 if { (ac_try="$ac_compile"
34085 case "(($ac_try" in
34086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087   *) ac_try_echo=$ac_try;;
34088 esac
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090   (eval "$ac_compile") 2>conftest.er1
34091   ac_status=$?
34092   grep -v '^ *+' conftest.er1 >conftest.err
34093   rm -f conftest.er1
34094   cat conftest.err >&5
34095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096   (exit $ac_status); } &&
34097          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098   { (case "(($ac_try" in
34099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100   *) ac_try_echo=$ac_try;;
34101 esac
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103   (eval "$ac_try") 2>&5
34104   ac_status=$?
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); }; } &&
34107          { ac_try='test -s conftest.$ac_objext'
34108   { (case "(($ac_try" in
34109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34110   *) ac_try_echo=$ac_try;;
34111 esac
34112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113   (eval "$ac_try") 2>&5
34114   ac_status=$?
34115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116   (exit $ac_status); }; }; then
34117   ac_cv_func_std_isinf_in_cmath=yes
34118 else
34119   echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.$ac_ext >&5
34121
34122         ac_cv_func_std_isinf_in_cmath=no
34123 fi
34124
34125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34126   ac_ext=c
34127 ac_cpp='$CPP $CPPFLAGS'
34128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34131
34132 fi
34133 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34134 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34135
34136 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34137
34138 cat >>confdefs.h <<\_ACEOF
34139 #define HAVE_STD_ISINF_IN_CMATH 1
34140 _ACEOF
34141
34142 fi
34143
34144 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34145 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34146 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34147   echo $ECHO_N "(cached) $ECHO_C" >&6
34148 else
34149   ac_ext=cpp
34150 ac_cpp='$CXXCPP $CPPFLAGS'
34151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34154
34155    cat >conftest.$ac_ext <<_ACEOF
34156 /* confdefs.h.  */
34157 _ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h.  */
34161 #include <ieeefp.h>
34162 int
34163 main ()
34164 {
34165 float f; finite(f);
34166   ;
34167   return 0;
34168 }
34169 _ACEOF
34170 rm -f conftest.$ac_objext
34171 if { (ac_try="$ac_compile"
34172 case "(($ac_try" in
34173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174   *) ac_try_echo=$ac_try;;
34175 esac
34176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177   (eval "$ac_compile") 2>conftest.er1
34178   ac_status=$?
34179   grep -v '^ *+' conftest.er1 >conftest.err
34180   rm -f conftest.er1
34181   cat conftest.err >&5
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); } &&
34184          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34185   { (case "(($ac_try" in
34186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34187   *) ac_try_echo=$ac_try;;
34188 esac
34189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34190   (eval "$ac_try") 2>&5
34191   ac_status=$?
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); }; } &&
34194          { ac_try='test -s conftest.$ac_objext'
34195   { (case "(($ac_try" in
34196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197   *) ac_try_echo=$ac_try;;
34198 esac
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200   (eval "$ac_try") 2>&5
34201   ac_status=$?
34202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203   (exit $ac_status); }; }; then
34204   ac_cv_func_finite_in_ieeefp_h=yes
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209         ac_cv_func_finite_in_ieeefp_h=no
34210 fi
34211
34212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213   ac_ext=c
34214 ac_cpp='$CPP $CPPFLAGS'
34215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34218
34219 fi
34220 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34221 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34222
34223 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34224
34225 cat >>confdefs.h <<\_ACEOF
34226 #define HAVE_FINITE_IN_IEEEFP_H 1
34227 _ACEOF
34228
34229 fi
34230
34231
34232
34233 if test "$llvm_cv_platform_type" = "Unix" ; then
34234
34235
34236 for ac_header in stdlib.h unistd.h
34237 do
34238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34240   { echo "$as_me:$LINENO: checking for $ac_header" >&5
34241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34243   echo $ECHO_N "(cached) $ECHO_C" >&6
34244 fi
34245 ac_res=`eval echo '${'$as_ac_Header'}'`
34246                { echo "$as_me:$LINENO: result: $ac_res" >&5
34247 echo "${ECHO_T}$ac_res" >&6; }
34248 else
34249   # Is the header compilable?
34250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34252 cat >conftest.$ac_ext <<_ACEOF
34253 /* confdefs.h.  */
34254 _ACEOF
34255 cat confdefs.h >>conftest.$ac_ext
34256 cat >>conftest.$ac_ext <<_ACEOF
34257 /* end confdefs.h.  */
34258 $ac_includes_default
34259 #include <$ac_header>
34260 _ACEOF
34261 rm -f conftest.$ac_objext
34262 if { (ac_try="$ac_compile"
34263 case "(($ac_try" in
34264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265   *) ac_try_echo=$ac_try;;
34266 esac
34267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268   (eval "$ac_compile") 2>conftest.er1
34269   ac_status=$?
34270   grep -v '^ *+' conftest.er1 >conftest.err
34271   rm -f conftest.er1
34272   cat conftest.err >&5
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); } &&
34275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34276   { (case "(($ac_try" in
34277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34278   *) ac_try_echo=$ac_try;;
34279 esac
34280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34281   (eval "$ac_try") 2>&5
34282   ac_status=$?
34283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284   (exit $ac_status); }; } &&
34285          { ac_try='test -s conftest.$ac_objext'
34286   { (case "(($ac_try" in
34287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34288   *) ac_try_echo=$ac_try;;
34289 esac
34290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34291   (eval "$ac_try") 2>&5
34292   ac_status=$?
34293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294   (exit $ac_status); }; }; then
34295   ac_header_compiler=yes
34296 else
34297   echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34299
34300         ac_header_compiler=no
34301 fi
34302
34303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34305 echo "${ECHO_T}$ac_header_compiler" >&6; }
34306
34307 # Is the header present?
34308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34310 cat >conftest.$ac_ext <<_ACEOF
34311 /* confdefs.h.  */
34312 _ACEOF
34313 cat confdefs.h >>conftest.$ac_ext
34314 cat >>conftest.$ac_ext <<_ACEOF
34315 /* end confdefs.h.  */
34316 #include <$ac_header>
34317 _ACEOF
34318 if { (ac_try="$ac_cpp conftest.$ac_ext"
34319 case "(($ac_try" in
34320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321   *) ac_try_echo=$ac_try;;
34322 esac
34323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34325   ac_status=$?
34326   grep -v '^ *+' conftest.er1 >conftest.err
34327   rm -f conftest.er1
34328   cat conftest.err >&5
34329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330   (exit $ac_status); } >/dev/null; then
34331   if test -s conftest.err; then
34332     ac_cpp_err=$ac_c_preproc_warn_flag
34333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34334   else
34335     ac_cpp_err=
34336   fi
34337 else
34338   ac_cpp_err=yes
34339 fi
34340 if test -z "$ac_cpp_err"; then
34341   ac_header_preproc=yes
34342 else
34343   echo "$as_me: failed program was:" >&5
34344 sed 's/^/| /' conftest.$ac_ext >&5
34345
34346   ac_header_preproc=no
34347 fi
34348
34349 rm -f conftest.err conftest.$ac_ext
34350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34351 echo "${ECHO_T}$ac_header_preproc" >&6; }
34352
34353 # So?  What about this header?
34354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34355   yes:no: )
34356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34360     ac_header_preproc=yes
34361     ;;
34362   no:yes:* )
34363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34375     ( cat <<\_ASBOX
34376 ## ----------------------------------- ##
34377 ## Report this to llvmbugs@cs.uiuc.edu ##
34378 ## ----------------------------------- ##
34379 _ASBOX
34380      ) | sed "s/^/$as_me: WARNING:     /" >&2
34381     ;;
34382 esac
34383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34386   echo $ECHO_N "(cached) $ECHO_C" >&6
34387 else
34388   eval "$as_ac_Header=\$ac_header_preproc"
34389 fi
34390 ac_res=`eval echo '${'$as_ac_Header'}'`
34391                { echo "$as_me:$LINENO: result: $ac_res" >&5
34392 echo "${ECHO_T}$ac_res" >&6; }
34393
34394 fi
34395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34396   cat >>confdefs.h <<_ACEOF
34397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34398 _ACEOF
34399
34400 fi
34401
34402 done
34403
34404
34405 for ac_func in getpagesize
34406 do
34407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34411   echo $ECHO_N "(cached) $ECHO_C" >&6
34412 else
34413   cat >conftest.$ac_ext <<_ACEOF
34414 /* confdefs.h.  */
34415 _ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h.  */
34419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34421 #define $ac_func innocuous_$ac_func
34422
34423 /* System header to define __stub macros and hopefully few prototypes,
34424     which can conflict with char $ac_func (); below.
34425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34426     <limits.h> exists even on freestanding compilers.  */
34427
34428 #ifdef __STDC__
34429 # include <limits.h>
34430 #else
34431 # include <assert.h>
34432 #endif
34433
34434 #undef $ac_func
34435
34436 /* Override any GCC internal prototype to avoid an error.
34437    Use char because int might match the return type of a GCC
34438    builtin and then its argument prototype would still apply.  */
34439 #ifdef __cplusplus
34440 extern "C"
34441 #endif
34442 char $ac_func ();
34443 /* The GNU C library defines this for functions which it implements
34444     to always fail with ENOSYS.  Some functions are actually named
34445     something starting with __ and the normal name is an alias.  */
34446 #if defined __stub_$ac_func || defined __stub___$ac_func
34447 choke me
34448 #endif
34449
34450 int
34451 main ()
34452 {
34453 return $ac_func ();
34454   ;
34455   return 0;
34456 }
34457 _ACEOF
34458 rm -f conftest.$ac_objext conftest$ac_exeext
34459 if { (ac_try="$ac_link"
34460 case "(($ac_try" in
34461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462   *) ac_try_echo=$ac_try;;
34463 esac
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465   (eval "$ac_link") 2>conftest.er1
34466   ac_status=$?
34467   grep -v '^ *+' conftest.er1 >conftest.err
34468   rm -f conftest.er1
34469   cat conftest.err >&5
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); } &&
34472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34473   { (case "(($ac_try" in
34474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34475   *) ac_try_echo=$ac_try;;
34476 esac
34477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34478   (eval "$ac_try") 2>&5
34479   ac_status=$?
34480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481   (exit $ac_status); }; } &&
34482          { ac_try='test -s conftest$ac_exeext'
34483   { (case "(($ac_try" in
34484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34485   *) ac_try_echo=$ac_try;;
34486 esac
34487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34488   (eval "$ac_try") 2>&5
34489   ac_status=$?
34490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491   (exit $ac_status); }; }; then
34492   eval "$as_ac_var=yes"
34493 else
34494   echo "$as_me: failed program was:" >&5
34495 sed 's/^/| /' conftest.$ac_ext >&5
34496
34497         eval "$as_ac_var=no"
34498 fi
34499
34500 rm -f core conftest.err conftest.$ac_objext \
34501       conftest$ac_exeext conftest.$ac_ext
34502 fi
34503 ac_res=`eval echo '${'$as_ac_var'}'`
34504                { echo "$as_me:$LINENO: result: $ac_res" >&5
34505 echo "${ECHO_T}$ac_res" >&6; }
34506 if test `eval echo '${'$as_ac_var'}'` = yes; then
34507   cat >>confdefs.h <<_ACEOF
34508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34509 _ACEOF
34510
34511 fi
34512 done
34513
34514 { echo "$as_me:$LINENO: checking for working mmap" >&5
34515 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34516 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34517   echo $ECHO_N "(cached) $ECHO_C" >&6
34518 else
34519   if test "$cross_compiling" = yes; then
34520   ac_cv_func_mmap_fixed_mapped=no
34521 else
34522   cat >conftest.$ac_ext <<_ACEOF
34523 /* confdefs.h.  */
34524 _ACEOF
34525 cat confdefs.h >>conftest.$ac_ext
34526 cat >>conftest.$ac_ext <<_ACEOF
34527 /* end confdefs.h.  */
34528 $ac_includes_default
34529 /* malloc might have been renamed as rpl_malloc. */
34530 #undef malloc
34531
34532 /* Thanks to Mike Haertel and Jim Avera for this test.
34533    Here is a matrix of mmap possibilities:
34534         mmap private not fixed
34535         mmap private fixed at somewhere currently unmapped
34536         mmap private fixed at somewhere already mapped
34537         mmap shared not fixed
34538         mmap shared fixed at somewhere currently unmapped
34539         mmap shared fixed at somewhere already mapped
34540    For private mappings, we should verify that changes cannot be read()
34541    back from the file, nor mmap's back from the file at a different
34542    address.  (There have been systems where private was not correctly
34543    implemented like the infamous i386 svr4.0, and systems where the
34544    VM page cache was not coherent with the file system buffer cache
34545    like early versions of FreeBSD and possibly contemporary NetBSD.)
34546    For shared mappings, we should conversely verify that changes get
34547    propagated back to all the places they're supposed to be.
34548
34549    Grep wants private fixed already mapped.
34550    The main things grep needs to know about mmap are:
34551    * does it exist and is it safe to write into the mmap'd area
34552    * how to use it (BSD variants)  */
34553
34554 #include <fcntl.h>
34555 #include <sys/mman.h>
34556
34557 #if !STDC_HEADERS && !HAVE_STDLIB_H
34558 char *malloc ();
34559 #endif
34560
34561 /* This mess was copied from the GNU getpagesize.h.  */
34562 #if !HAVE_GETPAGESIZE
34563 /* Assume that all systems that can run configure have sys/param.h.  */
34564 # if !HAVE_SYS_PARAM_H
34565 #  define HAVE_SYS_PARAM_H 1
34566 # endif
34567
34568 # ifdef _SC_PAGESIZE
34569 #  define getpagesize() sysconf(_SC_PAGESIZE)
34570 # else /* no _SC_PAGESIZE */
34571 #  if HAVE_SYS_PARAM_H
34572 #   include <sys/param.h>
34573 #   ifdef EXEC_PAGESIZE
34574 #    define getpagesize() EXEC_PAGESIZE
34575 #   else /* no EXEC_PAGESIZE */
34576 #    ifdef NBPG
34577 #     define getpagesize() NBPG * CLSIZE
34578 #     ifndef CLSIZE
34579 #      define CLSIZE 1
34580 #     endif /* no CLSIZE */
34581 #    else /* no NBPG */
34582 #     ifdef NBPC
34583 #      define getpagesize() NBPC
34584 #     else /* no NBPC */
34585 #      ifdef PAGESIZE
34586 #       define getpagesize() PAGESIZE
34587 #      endif /* PAGESIZE */
34588 #     endif /* no NBPC */
34589 #    endif /* no NBPG */
34590 #   endif /* no EXEC_PAGESIZE */
34591 #  else /* no HAVE_SYS_PARAM_H */
34592 #   define getpagesize() 8192   /* punt totally */
34593 #  endif /* no HAVE_SYS_PARAM_H */
34594 # endif /* no _SC_PAGESIZE */
34595
34596 #endif /* no HAVE_GETPAGESIZE */
34597
34598 int
34599 main ()
34600 {
34601   char *data, *data2, *data3;
34602   int i, pagesize;
34603   int fd;
34604
34605   pagesize = getpagesize ();
34606
34607   /* First, make a file with some known garbage in it. */
34608   data = (char *) malloc (pagesize);
34609   if (!data)
34610     return 1;
34611   for (i = 0; i < pagesize; ++i)
34612     *(data + i) = rand ();
34613   umask (0);
34614   fd = creat ("conftest.mmap", 0600);
34615   if (fd < 0)
34616     return 1;
34617   if (write (fd, data, pagesize) != pagesize)
34618     return 1;
34619   close (fd);
34620
34621   /* Next, try to mmap the file at a fixed address which already has
34622      something else allocated at it.  If we can, also make sure that
34623      we see the same garbage.  */
34624   fd = open ("conftest.mmap", O_RDWR);
34625   if (fd < 0)
34626     return 1;
34627   data2 = (char *) malloc (2 * pagesize);
34628   if (!data2)
34629     return 1;
34630   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34631   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34632                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
34633     return 1;
34634   for (i = 0; i < pagesize; ++i)
34635     if (*(data + i) != *(data2 + i))
34636       return 1;
34637
34638   /* Finally, make sure that changes to the mapped area do not
34639      percolate back to the file as seen by read().  (This is a bug on
34640      some variants of i386 svr4.0.)  */
34641   for (i = 0; i < pagesize; ++i)
34642     *(data2 + i) = *(data2 + i) + 1;
34643   data3 = (char *) malloc (pagesize);
34644   if (!data3)
34645     return 1;
34646   if (read (fd, data3, pagesize) != pagesize)
34647     return 1;
34648   for (i = 0; i < pagesize; ++i)
34649     if (*(data + i) != *(data3 + i))
34650       return 1;
34651   close (fd);
34652   return 0;
34653 }
34654 _ACEOF
34655 rm -f conftest$ac_exeext
34656 if { (ac_try="$ac_link"
34657 case "(($ac_try" in
34658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659   *) ac_try_echo=$ac_try;;
34660 esac
34661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662   (eval "$ac_link") 2>&5
34663   ac_status=$?
34664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34666   { (case "(($ac_try" in
34667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668   *) ac_try_echo=$ac_try;;
34669 esac
34670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671   (eval "$ac_try") 2>&5
34672   ac_status=$?
34673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674   (exit $ac_status); }; }; then
34675   ac_cv_func_mmap_fixed_mapped=yes
34676 else
34677   echo "$as_me: program exited with status $ac_status" >&5
34678 echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34680
34681 ( exit $ac_status )
34682 ac_cv_func_mmap_fixed_mapped=no
34683 fi
34684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34685 fi
34686
34687
34688 fi
34689 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34690 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34691 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34692
34693 cat >>confdefs.h <<\_ACEOF
34694 #define HAVE_MMAP 1
34695 _ACEOF
34696
34697 fi
34698 rm -f conftest.mmap
34699
34700   { echo "$as_me:$LINENO: checking for mmap of files" >&5
34701 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34702 if test "${ac_cv_func_mmap_file+set}" = set; then
34703   echo $ECHO_N "(cached) $ECHO_C" >&6
34704 else
34705    ac_ext=c
34706 ac_cpp='$CPP $CPPFLAGS'
34707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34710
34711   if test "$cross_compiling" = yes; then
34712   ac_cv_func_mmap_file=no
34713 else
34714   cat >conftest.$ac_ext <<_ACEOF
34715
34716     /* confdefs.h.  */
34717 _ACEOF
34718 cat confdefs.h >>conftest.$ac_ext
34719 cat >>conftest.$ac_ext <<_ACEOF
34720 /* end confdefs.h.  */
34721
34722 #include <sys/types.h>
34723 #include <sys/mman.h>
34724 #include <fcntl.h>
34725
34726 int
34727 main ()
34728 {
34729
34730   int fd;
34731   fd = creat ("foo",0777);
34732   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34733   unlink ("foo");
34734   return (fd != (int) MAP_FAILED);
34735   ;
34736   return 0;
34737 }
34738 _ACEOF
34739 rm -f conftest$ac_exeext
34740 if { (ac_try="$ac_link"
34741 case "(($ac_try" in
34742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34743   *) ac_try_echo=$ac_try;;
34744 esac
34745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34746   (eval "$ac_link") 2>&5
34747   ac_status=$?
34748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34750   { (case "(($ac_try" in
34751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752   *) ac_try_echo=$ac_try;;
34753 esac
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755   (eval "$ac_try") 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; }; then
34759   ac_cv_func_mmap_file=yes
34760 else
34761   echo "$as_me: program exited with status $ac_status" >&5
34762 echo "$as_me: failed program was:" >&5
34763 sed 's/^/| /' conftest.$ac_ext >&5
34764
34765 ( exit $ac_status )
34766 ac_cv_func_mmap_file=no
34767 fi
34768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34769 fi
34770
34771
34772   ac_ext=c
34773 ac_cpp='$CPP $CPPFLAGS'
34774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34777
34778
34779 fi
34780 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34781 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34782 if test "$ac_cv_func_mmap_file" = yes; then
34783
34784 cat >>confdefs.h <<\_ACEOF
34785 #define HAVE_MMAP_FILE
34786 _ACEOF
34787
34788    MMAP_FILE=yes
34789
34790 fi
34791
34792   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34793 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34794 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34795   echo $ECHO_N "(cached) $ECHO_C" >&6
34796 else
34797   if test "$llvm_cv_os_type" = "Interix" ; then
34798    ac_cv_need_dev_zero_for_mmap=yes
34799  else
34800    ac_cv_need_dev_zero_for_mmap=no
34801  fi
34802
34803 fi
34804 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34805 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34806 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34807
34808 cat >>confdefs.h <<\_ACEOF
34809 #define NEED_DEV_ZERO_FOR_MMAP 1
34810 _ACEOF
34811
34812 fi
34813
34814   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34815   then
34816     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34817 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34818   fi
34819   if test "$ac_cv_func_mmap_file" = "no"
34820   then
34821     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34822 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34823   fi
34824 fi
34825
34826 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34827 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34828 cat >conftest.$ac_ext <<_ACEOF
34829 /* confdefs.h.  */
34830 _ACEOF
34831 cat confdefs.h >>conftest.$ac_ext
34832 cat >>conftest.$ac_ext <<_ACEOF
34833 /* end confdefs.h.  */
34834 int main() {
34835         volatile unsigned long val = 1;
34836         __sync_synchronize();
34837         __sync_val_compare_and_swap(&val, 1, 0);
34838         __sync_add_and_fetch(&val, 1);
34839         __sync_sub_and_fetch(&val, 1);
34840         return 0;
34841       }
34842
34843 _ACEOF
34844 rm -f conftest.$ac_objext conftest$ac_exeext
34845 if { (ac_try="$ac_link"
34846 case "(($ac_try" in
34847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848   *) ac_try_echo=$ac_try;;
34849 esac
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851   (eval "$ac_link") 2>conftest.er1
34852   ac_status=$?
34853   grep -v '^ *+' conftest.er1 >conftest.err
34854   rm -f conftest.er1
34855   cat conftest.err >&5
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); } &&
34858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34859   { (case "(($ac_try" in
34860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861   *) ac_try_echo=$ac_try;;
34862 esac
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864   (eval "$ac_try") 2>&5
34865   ac_status=$?
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); }; } &&
34868          { ac_try='test -s conftest$ac_exeext'
34869   { (case "(($ac_try" in
34870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34871   *) ac_try_echo=$ac_try;;
34872 esac
34873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34874   (eval "$ac_try") 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; }; then
34878   { echo "$as_me:$LINENO: result: yes" >&5
34879 echo "${ECHO_T}yes" >&6; }
34880
34881 cat >>confdefs.h <<\_ACEOF
34882 #define LLVM_MULTITHREADED 1
34883 _ACEOF
34884
34885 else
34886   echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34888
34889         { echo "$as_me:$LINENO: result: no" >&5
34890 echo "${ECHO_T}no" >&6; }
34891
34892 cat >>confdefs.h <<\_ACEOF
34893 #define LLVM_MULTITHREADED 0
34894 _ACEOF
34895
34896   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34897 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34898 fi
34899
34900 rm -f core conftest.err conftest.$ac_objext \
34901       conftest$ac_exeext conftest.$ac_ext
34902
34903
34904
34905 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34906   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34907 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34908 if test "${llvm_cv_linux_mixed+set}" = set; then
34909   echo $ECHO_N "(cached) $ECHO_C" >&6
34910 else
34911    ac_ext=c
34912 ac_cpp='$CPP $CPPFLAGS'
34913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34916
34917   cat >conftest.$ac_ext <<_ACEOF
34918 /* confdefs.h.  */
34919 _ACEOF
34920 cat confdefs.h >>conftest.$ac_ext
34921 cat >>conftest.$ac_ext <<_ACEOF
34922 /* end confdefs.h.  */
34923 #ifndef __x86_64__
34924        error: Not x86-64 even if uname says so!
34925       #endif
34926
34927 int
34928 main ()
34929 {
34930
34931   ;
34932   return 0;
34933 }
34934 _ACEOF
34935 rm -f conftest.$ac_objext
34936 if { (ac_try="$ac_compile"
34937 case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942   (eval "$ac_compile") 2>conftest.er1
34943   ac_status=$?
34944   grep -v '^ *+' conftest.er1 >conftest.err
34945   rm -f conftest.er1
34946   cat conftest.err >&5
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); } &&
34949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34950   { (case "(($ac_try" in
34951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952   *) ac_try_echo=$ac_try;;
34953 esac
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955   (eval "$ac_try") 2>&5
34956   ac_status=$?
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); }; } &&
34959          { ac_try='test -s conftest.$ac_objext'
34960   { (case "(($ac_try" in
34961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962   *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965   (eval "$ac_try") 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969   llvm_cv_linux_mixed=no
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974         llvm_cv_linux_mixed=yes
34975 fi
34976
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978   ac_ext=c
34979 ac_cpp='$CPP $CPPFLAGS'
34980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34983
34984
34985 fi
34986 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34987 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34988
34989   if test "$llvm_cv_linux_mixed" = "yes"; then
34990     llvm_cv_target_arch="x86"
34991     ARCH="x86"
34992   fi
34993 fi
34994
34995
34996 for ac_func in __dso_handle
34997 do
34998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 else
35004   cat >conftest.$ac_ext <<_ACEOF
35005 /* confdefs.h.  */
35006 _ACEOF
35007 cat confdefs.h >>conftest.$ac_ext
35008 cat >>conftest.$ac_ext <<_ACEOF
35009 /* end confdefs.h.  */
35010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35012 #define $ac_func innocuous_$ac_func
35013
35014 /* System header to define __stub macros and hopefully few prototypes,
35015     which can conflict with char $ac_func (); below.
35016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35017     <limits.h> exists even on freestanding compilers.  */
35018
35019 #ifdef __STDC__
35020 # include <limits.h>
35021 #else
35022 # include <assert.h>
35023 #endif
35024
35025 #undef $ac_func
35026
35027 /* Override any GCC internal prototype to avoid an error.
35028    Use char because int might match the return type of a GCC
35029    builtin and then its argument prototype would still apply.  */
35030 #ifdef __cplusplus
35031 extern "C"
35032 #endif
35033 char $ac_func ();
35034 /* The GNU C library defines this for functions which it implements
35035     to always fail with ENOSYS.  Some functions are actually named
35036     something starting with __ and the normal name is an alias.  */
35037 #if defined __stub_$ac_func || defined __stub___$ac_func
35038 choke me
35039 #endif
35040
35041 int
35042 main ()
35043 {
35044 return $ac_func ();
35045   ;
35046   return 0;
35047 }
35048 _ACEOF
35049 rm -f conftest.$ac_objext conftest$ac_exeext
35050 if { (ac_try="$ac_link"
35051 case "(($ac_try" in
35052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053   *) ac_try_echo=$ac_try;;
35054 esac
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056   (eval "$ac_link") 2>conftest.er1
35057   ac_status=$?
35058   grep -v '^ *+' conftest.er1 >conftest.err
35059   rm -f conftest.er1
35060   cat conftest.err >&5
35061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062   (exit $ac_status); } &&
35063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35064   { (case "(($ac_try" in
35065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066   *) ac_try_echo=$ac_try;;
35067 esac
35068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069   (eval "$ac_try") 2>&5
35070   ac_status=$?
35071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072   (exit $ac_status); }; } &&
35073          { ac_try='test -s conftest$ac_exeext'
35074   { (case "(($ac_try" in
35075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076   *) ac_try_echo=$ac_try;;
35077 esac
35078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079   (eval "$ac_try") 2>&5
35080   ac_status=$?
35081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082   (exit $ac_status); }; }; then
35083   eval "$as_ac_var=yes"
35084 else
35085   echo "$as_me: failed program was:" >&5
35086 sed 's/^/| /' conftest.$ac_ext >&5
35087
35088         eval "$as_ac_var=no"
35089 fi
35090
35091 rm -f core conftest.err conftest.$ac_objext \
35092       conftest$ac_exeext conftest.$ac_ext
35093 fi
35094 ac_res=`eval echo '${'$as_ac_var'}'`
35095                { echo "$as_me:$LINENO: result: $ac_res" >&5
35096 echo "${ECHO_T}$ac_res" >&6; }
35097 if test `eval echo '${'$as_ac_var'}'` = yes; then
35098   cat >>confdefs.h <<_ACEOF
35099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35100 _ACEOF
35101
35102 fi
35103 done
35104
35105
35106 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35107 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35108 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35109   echo $ECHO_N "(cached) $ECHO_C" >&6
35110 else
35111   llvm_cv_llvmgcc_sanity="no"
35112 if test -x "$LLVMGCC" ; then
35113   cp /dev/null conftest.c
35114   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35115       grep 'target datalayout =' > /dev/null 2>&1
35116   if test $? -eq 0 ; then
35117     llvm_cv_llvmgcc_sanity="yes"
35118   fi
35119   rm conftest.c
35120 fi
35121 fi
35122 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35123 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35124
35125 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35126   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35127 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35128   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35129   LLVMCC1=$llvmcc1path
35130
35131   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35132   LLVMCC1PLUS=$llvmcc1pluspath
35133
35134   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35135   LLVMGCCDIR=$llvmgccdir
35136
35137   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35138   LLVMGCCLIBEXEC=$llvmgcclibexec
35139
35140   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35141   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35142   LLVMGCC_VERSION=$llvmgccversion
35143
35144   LLVMGCC_MAJVERS=$llvmgccmajvers
35145
35146   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35147   LLVMGCC_LANGS=$llvmgcclangs
35148
35149   { echo "$as_me:$LINENO: result: ok" >&5
35150 echo "${ECHO_T}ok" >&6; }
35151 fi
35152
35153 SHLIBEXT=$libltdl_cv_shlibext
35154
35155
35156 # Translate the various configuration directories and other basic
35157 # information into substitutions that will end up in Makefile.config.in
35158 # that these configured values can be used by the makefiles
35159 if test "${prefix}" = "NONE" ; then
35160   prefix="/usr/local"
35161 fi
35162 eval LLVM_PREFIX="${prefix}";
35163 eval LLVM_BINDIR="${prefix}/bin";
35164 eval LLVM_LIBDIR="${prefix}/lib";
35165 eval LLVM_DATADIR="${prefix}/share/llvm";
35166 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35167 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35168 eval LLVM_INCLUDEDIR="${prefix}/include";
35169 eval LLVM_INFODIR="${prefix}/info";
35170 eval LLVM_MANDIR="${prefix}/man";
35171 LLVM_CONFIGTIME=`date`
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183 # Place the various directores into the config.h file as #defines so that we
35184 # can know about the installation paths within LLVM.
35185
35186 cat >>confdefs.h <<_ACEOF
35187 #define LLVM_PREFIX "$LLVM_PREFIX"
35188 _ACEOF
35189
35190
35191 cat >>confdefs.h <<_ACEOF
35192 #define LLVM_BINDIR "$LLVM_BINDIR"
35193 _ACEOF
35194
35195
35196 cat >>confdefs.h <<_ACEOF
35197 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35198 _ACEOF
35199
35200
35201 cat >>confdefs.h <<_ACEOF
35202 #define LLVM_DATADIR "$LLVM_DATADIR"
35203 _ACEOF
35204
35205
35206 cat >>confdefs.h <<_ACEOF
35207 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35208 _ACEOF
35209
35210
35211 cat >>confdefs.h <<_ACEOF
35212 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35213 _ACEOF
35214
35215
35216 cat >>confdefs.h <<_ACEOF
35217 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35218 _ACEOF
35219
35220
35221 cat >>confdefs.h <<_ACEOF
35222 #define LLVM_INFODIR "$LLVM_INFODIR"
35223 _ACEOF
35224
35225
35226 cat >>confdefs.h <<_ACEOF
35227 #define LLVM_MANDIR "$LLVM_MANDIR"
35228 _ACEOF
35229
35230
35231 cat >>confdefs.h <<_ACEOF
35232 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35233 _ACEOF
35234
35235
35236 cat >>confdefs.h <<_ACEOF
35237 #define LLVM_HOSTTRIPLE "$host"
35238 _ACEOF
35239
35240
35241 # Determine which bindings to build.
35242 if test "$BINDINGS_TO_BUILD" = auto ; then
35243   BINDINGS_TO_BUILD=""
35244   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35245     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35246   fi
35247 fi
35248 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35249
35250
35251 # This isn't really configurey, but it avoids having to repeat the list in
35252 # other files.
35253 ALL_BINDINGS=ocaml
35254
35255
35256 # Do any work necessary to ensure that bindings have what they need.
35257 binding_prereqs_failed=0
35258 for a_binding in $BINDINGS_TO_BUILD ; do
35259   case "$a_binding" in
35260   ocaml)
35261     if test "x$OCAMLC" = x ; then
35262       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35263 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35264       binding_prereqs_failed=1
35265     fi
35266     if test "x$OCAMLDEP" = x ; then
35267       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35268 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35269       binding_prereqs_failed=1
35270     fi
35271     if test "x$OCAMLOPT" = x ; then
35272       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35273 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35274           fi
35275     if test "x$with_ocaml_libdir" != xauto ; then
35276       OCAML_LIBDIR=$with_ocaml_libdir
35277
35278     else
35279       ocaml_stdlib="`"$OCAMLC" -where`"
35280       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35281       then
35282         # ocaml stdlib is beneath our prefix; use stdlib
35283         OCAML_LIBDIR=$ocaml_stdlib
35284
35285       else
35286         # ocaml stdlib is outside our prefix; use libdir/ocaml
35287         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35288
35289       fi
35290     fi
35291     ;;
35292   esac
35293 done
35294 if test "$binding_prereqs_failed" = 1 ; then
35295   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35296 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35297    { (exit 1); exit 1; }; }
35298 fi
35299
35300 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35301 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35302 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35303   echo $ECHO_N "(cached) $ECHO_C" >&6
35304 else
35305    ac_ext=cpp
35306 ac_cpp='$CXXCPP $CPPFLAGS'
35307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35310
35311   oldcxxflags="$CXXFLAGS"
35312   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35313   cat >conftest.$ac_ext <<_ACEOF
35314 /* confdefs.h.  */
35315 _ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h.  */
35319
35320 int
35321 main ()
35322 {
35323
35324   ;
35325   return 0;
35326 }
35327 _ACEOF
35328 rm -f conftest.$ac_objext
35329 if { (ac_try="$ac_compile"
35330 case "(($ac_try" in
35331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332   *) ac_try_echo=$ac_try;;
35333 esac
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335   (eval "$ac_compile") 2>conftest.er1
35336   ac_status=$?
35337   grep -v '^ *+' conftest.er1 >conftest.err
35338   rm -f conftest.er1
35339   cat conftest.err >&5
35340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341   (exit $ac_status); } &&
35342          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35343   { (case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_try") 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); }; } &&
35352          { ac_try='test -s conftest.$ac_objext'
35353   { (case "(($ac_try" in
35354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35355   *) ac_try_echo=$ac_try;;
35356 esac
35357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35358   (eval "$ac_try") 2>&5
35359   ac_status=$?
35360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361   (exit $ac_status); }; }; then
35362   llvm_cv_cxx_visibility_inlines_hidden=yes
35363 else
35364   echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35366
35367         llvm_cv_cxx_visibility_inlines_hidden=no
35368 fi
35369
35370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35371   CXXFLAGS="$oldcxxflags"
35372   ac_ext=c
35373 ac_cpp='$CPP $CPPFLAGS'
35374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35377
35378
35379 fi
35380 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35381 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35382 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35383   ENABLE_VISIBILITY_INLINES_HIDDEN=1
35384
35385 else
35386   ENABLE_VISIBILITY_INLINES_HIDDEN=0
35387
35388 fi
35389
35390
35391 if test "$llvm_cv_link_use_r" = "yes" ; then
35392   RPATH="-Wl,-R"
35393 else
35394   RPATH="-Wl,-rpath"
35395 fi
35396
35397
35398 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35399   RDYNAMIC="-Wl,-export-dynamic"
35400 else
35401   RDYNAMIC=""
35402 fi
35403
35404
35405
35406 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35407
35408 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35409
35410 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35411
35412 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35413
35414 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35415
35416
35417 ac_config_files="$ac_config_files Makefile.config"
35418
35419
35420 ac_config_files="$ac_config_files llvm.spec"
35421
35422
35423 ac_config_files="$ac_config_files docs/doxygen.cfg"
35424
35425
35426 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35427
35428
35429 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35430
35431
35432 ac_config_commands="$ac_config_commands setup"
35433
35434 ac_config_commands="$ac_config_commands Makefile"
35435
35436
35437 ac_config_commands="$ac_config_commands Makefile.common"
35438
35439
35440 ac_config_commands="$ac_config_commands examples/Makefile"
35441
35442
35443 ac_config_commands="$ac_config_commands lib/Makefile"
35444
35445
35446 ac_config_commands="$ac_config_commands runtime/Makefile"
35447
35448
35449 ac_config_commands="$ac_config_commands test/Makefile"
35450
35451
35452 ac_config_commands="$ac_config_commands test/Makefile.tests"
35453
35454
35455 ac_config_commands="$ac_config_commands unittests/Makefile"
35456
35457
35458 ac_config_commands="$ac_config_commands tools/Makefile"
35459
35460
35461 ac_config_commands="$ac_config_commands utils/Makefile"
35462
35463
35464 ac_config_commands="$ac_config_commands projects/Makefile"
35465
35466
35467 ac_config_commands="$ac_config_commands bindings/Makefile"
35468
35469
35470 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35471
35472
35473
35474 cat >confcache <<\_ACEOF
35475 # This file is a shell script that caches the results of configure
35476 # tests run on this system so they can be shared between configure
35477 # scripts and configure runs, see configure's option --config-cache.
35478 # It is not useful on other systems.  If it contains results you don't
35479 # want to keep, you may remove or edit it.
35480 #
35481 # config.status only pays attention to the cache file if you give it
35482 # the --recheck option to rerun configure.
35483 #
35484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35486 # following values.
35487
35488 _ACEOF
35489
35490 # The following way of writing the cache mishandles newlines in values,
35491 # but we know of no workaround that is simple, portable, and efficient.
35492 # So, we kill variables containing newlines.
35493 # Ultrix sh set writes to stderr and can't be redirected directly,
35494 # and sets the high bit in the cache file unless we assign to the vars.
35495 (
35496   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35497     eval ac_val=\$$ac_var
35498     case $ac_val in #(
35499     *${as_nl}*)
35500       case $ac_var in #(
35501       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35502 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35503       esac
35504       case $ac_var in #(
35505       _ | IFS | as_nl) ;; #(
35506       *) $as_unset $ac_var ;;
35507       esac ;;
35508     esac
35509   done
35510
35511   (set) 2>&1 |
35512     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35513     *${as_nl}ac_space=\ *)
35514       # `set' does not quote correctly, so add quotes (double-quote
35515       # substitution turns \\\\ into \\, and sed turns \\ into \).
35516       sed -n \
35517         "s/'/'\\\\''/g;
35518           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35519       ;; #(
35520     *)
35521       # `set' quotes correctly as required by POSIX, so do not add quotes.
35522       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35523       ;;
35524     esac |
35525     sort
35526 ) |
35527   sed '
35528      /^ac_cv_env_/b end
35529      t clear
35530      :clear
35531      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35532      t end
35533      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35534      :end' >>confcache
35535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35536   if test -w "$cache_file"; then
35537     test "x$cache_file" != "x/dev/null" &&
35538       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35539 echo "$as_me: updating cache $cache_file" >&6;}
35540     cat confcache >$cache_file
35541   else
35542     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35543 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35544   fi
35545 fi
35546 rm -f confcache
35547
35548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35549 # Let make expand exec_prefix.
35550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35551
35552 DEFS=-DHAVE_CONFIG_H
35553
35554 ac_libobjs=
35555 ac_ltlibobjs=
35556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35557   # 1. Remove the extension, and $U if already installed.
35558   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35559   ac_i=`echo "$ac_i" | sed "$ac_script"`
35560   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35561   #    will be set to the directory where LIBOBJS objects are built.
35562   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35563   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35564 done
35565 LIBOBJS=$ac_libobjs
35566
35567 LTLIBOBJS=$ac_ltlibobjs
35568
35569
35570 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35571   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35572 Usually this means the macro was only invoked conditionally." >&5
35573 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35574 Usually this means the macro was only invoked conditionally." >&2;}
35575    { (exit 1); exit 1; }; }
35576 fi
35577 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35578   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35579 Usually this means the macro was only invoked conditionally." >&5
35580 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35581 Usually this means the macro was only invoked conditionally." >&2;}
35582    { (exit 1); exit 1; }; }
35583 fi
35584
35585 : ${CONFIG_STATUS=./config.status}
35586 ac_clean_files_save=$ac_clean_files
35587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35588 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35589 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35590 cat >$CONFIG_STATUS <<_ACEOF
35591 #! $SHELL
35592 # Generated by $as_me.
35593 # Run this file to recreate the current configuration.
35594 # Compiler output produced by configure, useful for debugging
35595 # configure, is in config.log if it exists.
35596
35597 debug=false
35598 ac_cs_recheck=false
35599 ac_cs_silent=false
35600 SHELL=\${CONFIG_SHELL-$SHELL}
35601 _ACEOF
35602
35603 cat >>$CONFIG_STATUS <<\_ACEOF
35604 ## --------------------- ##
35605 ## M4sh Initialization.  ##
35606 ## --------------------- ##
35607
35608 # Be Bourne compatible
35609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35610   emulate sh
35611   NULLCMD=:
35612   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35613   # is contrary to our usage.  Disable this feature.
35614   alias -g '${1+"$@"}'='"$@"'
35615   setopt NO_GLOB_SUBST
35616 else
35617   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35618 fi
35619 BIN_SH=xpg4; export BIN_SH # for Tru64
35620 DUALCASE=1; export DUALCASE # for MKS sh
35621
35622
35623 # PATH needs CR
35624 # Avoid depending upon Character Ranges.
35625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35628 as_cr_digits='0123456789'
35629 as_cr_alnum=$as_cr_Letters$as_cr_digits
35630
35631 # The user is always right.
35632 if test "${PATH_SEPARATOR+set}" != set; then
35633   echo "#! /bin/sh" >conf$$.sh
35634   echo  "exit 0"   >>conf$$.sh
35635   chmod +x conf$$.sh
35636   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35637     PATH_SEPARATOR=';'
35638   else
35639     PATH_SEPARATOR=:
35640   fi
35641   rm -f conf$$.sh
35642 fi
35643
35644 # Support unset when possible.
35645 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35646   as_unset=unset
35647 else
35648   as_unset=false
35649 fi
35650
35651
35652 # IFS
35653 # We need space, tab and new line, in precisely that order.  Quoting is
35654 # there to prevent editors from complaining about space-tab.
35655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35656 # splitting by setting IFS to empty value.)
35657 as_nl='
35658 '
35659 IFS=" ""        $as_nl"
35660
35661 # Find who we are.  Look in the path if we contain no directory separator.
35662 case $0 in
35663   *[\\/]* ) as_myself=$0 ;;
35664   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35665 for as_dir in $PATH
35666 do
35667   IFS=$as_save_IFS
35668   test -z "$as_dir" && as_dir=.
35669   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35670 done
35671 IFS=$as_save_IFS
35672
35673      ;;
35674 esac
35675 # We did not find ourselves, most probably we were run as `sh COMMAND'
35676 # in which case we are not to be found in the path.
35677 if test "x$as_myself" = x; then
35678   as_myself=$0
35679 fi
35680 if test ! -f "$as_myself"; then
35681   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35682   { (exit 1); exit 1; }
35683 fi
35684
35685 # Work around bugs in pre-3.0 UWIN ksh.
35686 for as_var in ENV MAIL MAILPATH
35687 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35688 done
35689 PS1='$ '
35690 PS2='> '
35691 PS4='+ '
35692
35693 # NLS nuisances.
35694 for as_var in \
35695   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35696   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35697   LC_TELEPHONE LC_TIME
35698 do
35699   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35700     eval $as_var=C; export $as_var
35701   else
35702     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35703   fi
35704 done
35705
35706 # Required to use basename.
35707 if expr a : '\(a\)' >/dev/null 2>&1 &&
35708    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35709   as_expr=expr
35710 else
35711   as_expr=false
35712 fi
35713
35714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35715   as_basename=basename
35716 else
35717   as_basename=false
35718 fi
35719
35720
35721 # Name of the executable.
35722 as_me=`$as_basename -- "$0" ||
35723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35724          X"$0" : 'X\(//\)$' \| \
35725          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35726 echo X/"$0" |
35727     sed '/^.*\/\([^/][^/]*\)\/*$/{
35728             s//\1/
35729             q
35730           }
35731           /^X\/\(\/\/\)$/{
35732             s//\1/
35733             q
35734           }
35735           /^X\/\(\/\).*/{
35736             s//\1/
35737             q
35738           }
35739           s/.*/./; q'`
35740
35741 # CDPATH.
35742 $as_unset CDPATH
35743
35744
35745
35746   as_lineno_1=$LINENO
35747   as_lineno_2=$LINENO
35748   test "x$as_lineno_1" != "x$as_lineno_2" &&
35749   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35750
35751   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35752   # uniformly replaced by the line number.  The first 'sed' inserts a
35753   # line-number line after each line using $LINENO; the second 'sed'
35754   # does the real work.  The second script uses 'N' to pair each
35755   # line-number line with the line containing $LINENO, and appends
35756   # trailing '-' during substitution so that $LINENO is not a special
35757   # case at line end.
35758   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35759   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35760   # E. McMahon (1931-1989) for sed's syntax.  :-)
35761   sed -n '
35762     p
35763     /[$]LINENO/=
35764   ' <$as_myself |
35765     sed '
35766       s/[$]LINENO.*/&-/
35767       t lineno
35768       b
35769       :lineno
35770       N
35771       :loop
35772       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35773       t loop
35774       s/-\n.*//
35775     ' >$as_me.lineno &&
35776   chmod +x "$as_me.lineno" ||
35777     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35778    { (exit 1); exit 1; }; }
35779
35780   # Don't try to exec as it changes $[0], causing all sort of problems
35781   # (the dirname of $[0] is not the place where we might find the
35782   # original and so on.  Autoconf is especially sensitive to this).
35783   . "./$as_me.lineno"
35784   # Exit status is that of the last command.
35785   exit
35786 }
35787
35788
35789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35790   as_dirname=dirname
35791 else
35792   as_dirname=false
35793 fi
35794
35795 ECHO_C= ECHO_N= ECHO_T=
35796 case `echo -n x` in
35797 -n*)
35798   case `echo 'x\c'` in
35799   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35800   *)   ECHO_C='\c';;
35801   esac;;
35802 *)
35803   ECHO_N='-n';;
35804 esac
35805
35806 if expr a : '\(a\)' >/dev/null 2>&1 &&
35807    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35808   as_expr=expr
35809 else
35810   as_expr=false
35811 fi
35812
35813 rm -f conf$$ conf$$.exe conf$$.file
35814 if test -d conf$$.dir; then
35815   rm -f conf$$.dir/conf$$.file
35816 else
35817   rm -f conf$$.dir
35818   mkdir conf$$.dir
35819 fi
35820 echo >conf$$.file
35821 if ln -s conf$$.file conf$$ 2>/dev/null; then
35822   as_ln_s='ln -s'
35823   # ... but there are two gotchas:
35824   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35825   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35826   # In both cases, we have to default to `cp -p'.
35827   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35828     as_ln_s='cp -p'
35829 elif ln conf$$.file conf$$ 2>/dev/null; then
35830   as_ln_s=ln
35831 else
35832   as_ln_s='cp -p'
35833 fi
35834 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35835 rmdir conf$$.dir 2>/dev/null
35836
35837 if mkdir -p . 2>/dev/null; then
35838   as_mkdir_p=:
35839 else
35840   test -d ./-p && rmdir ./-p
35841   as_mkdir_p=false
35842 fi
35843
35844 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35845 # systems may use methods other than mode bits to determine executability.
35846 cat >conf$$.file <<_ASEOF
35847 #! /bin/sh
35848 exit 0
35849 _ASEOF
35850 chmod +x conf$$.file
35851 if test -x conf$$.file >/dev/null 2>&1; then
35852   as_executable_p="test -x"
35853 else
35854   as_executable_p=:
35855 fi
35856 rm -f conf$$.file
35857
35858 # Sed expression to map a string onto a valid CPP name.
35859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35860
35861 # Sed expression to map a string onto a valid variable name.
35862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35863
35864
35865 exec 6>&1
35866
35867 # Save the log message, to keep $[0] and so on meaningful, and to
35868 # report actual input values of CONFIG_FILES etc. instead of their
35869 # values after options handling.
35870 ac_log="
35871 This file was extended by llvm $as_me 2.7svn, which was
35872 generated by GNU Autoconf 2.60.  Invocation command line was
35873
35874   CONFIG_FILES    = $CONFIG_FILES
35875   CONFIG_HEADERS  = $CONFIG_HEADERS
35876   CONFIG_LINKS    = $CONFIG_LINKS
35877   CONFIG_COMMANDS = $CONFIG_COMMANDS
35878   $ $0 $@
35879
35880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35881 "
35882
35883 _ACEOF
35884
35885 cat >>$CONFIG_STATUS <<_ACEOF
35886 # Files that config.status was made for.
35887 config_files="$ac_config_files"
35888 config_headers="$ac_config_headers"
35889 config_commands="$ac_config_commands"
35890
35891 _ACEOF
35892
35893 cat >>$CONFIG_STATUS <<\_ACEOF
35894 ac_cs_usage="\
35895 \`$as_me' instantiates files from templates according to the
35896 current configuration.
35897
35898 Usage: $0 [OPTIONS] [FILE]...
35899
35900   -h, --help       print this help, then exit
35901   -V, --version    print version number, then exit
35902   -q, --quiet      do not print progress messages
35903   -d, --debug      don't remove temporary files
35904       --recheck    update $as_me by reconfiguring in the same conditions
35905   --file=FILE[:TEMPLATE]
35906                    instantiate the configuration file FILE
35907   --header=FILE[:TEMPLATE]
35908                    instantiate the configuration header FILE
35909
35910 Configuration files:
35911 $config_files
35912
35913 Configuration headers:
35914 $config_headers
35915
35916 Configuration commands:
35917 $config_commands
35918
35919 Report bugs to <bug-autoconf@gnu.org>."
35920
35921 _ACEOF
35922 cat >>$CONFIG_STATUS <<_ACEOF
35923 ac_cs_version="\\
35924 llvm config.status 2.7svn
35925 configured by $0, generated by GNU Autoconf 2.60,
35926   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35927
35928 Copyright (C) 2006 Free Software Foundation, Inc.
35929 This config.status script is free software; the Free Software Foundation
35930 gives unlimited permission to copy, distribute and modify it."
35931
35932 ac_pwd='$ac_pwd'
35933 srcdir='$srcdir'
35934 INSTALL='$INSTALL'
35935 _ACEOF
35936
35937 cat >>$CONFIG_STATUS <<\_ACEOF
35938 # If no file are specified by the user, then we need to provide default
35939 # value.  By we need to know if files were specified by the user.
35940 ac_need_defaults=:
35941 while test $# != 0
35942 do
35943   case $1 in
35944   --*=*)
35945     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35946     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35947     ac_shift=:
35948     ;;
35949   *)
35950     ac_option=$1
35951     ac_optarg=$2
35952     ac_shift=shift
35953     ;;
35954   esac
35955
35956   case $ac_option in
35957   # Handling of the options.
35958   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35959     ac_cs_recheck=: ;;
35960   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35961     echo "$ac_cs_version"; exit ;;
35962   --debug | --debu | --deb | --de | --d | -d )
35963     debug=: ;;
35964   --file | --fil | --fi | --f )
35965     $ac_shift
35966     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35967     ac_need_defaults=false;;
35968   --header | --heade | --head | --hea )
35969     $ac_shift
35970     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35971     ac_need_defaults=false;;
35972   --he | --h)
35973     # Conflict between --help and --header
35974     { echo "$as_me: error: ambiguous option: $1
35975 Try \`$0 --help' for more information." >&2
35976    { (exit 1); exit 1; }; };;
35977   --help | --hel | -h )
35978     echo "$ac_cs_usage"; exit ;;
35979   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35980   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35981     ac_cs_silent=: ;;
35982
35983   # This is an error.
35984   -*) { echo "$as_me: error: unrecognized option: $1
35985 Try \`$0 --help' for more information." >&2
35986    { (exit 1); exit 1; }; } ;;
35987
35988   *) ac_config_targets="$ac_config_targets $1"
35989      ac_need_defaults=false ;;
35990
35991   esac
35992   shift
35993 done
35994
35995 ac_configure_extra_args=
35996
35997 if $ac_cs_silent; then
35998   exec 6>/dev/null
35999   ac_configure_extra_args="$ac_configure_extra_args --silent"
36000 fi
36001
36002 _ACEOF
36003 cat >>$CONFIG_STATUS <<_ACEOF
36004 if \$ac_cs_recheck; then
36005   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36006   CONFIG_SHELL=$SHELL
36007   export CONFIG_SHELL
36008   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36009 fi
36010
36011 _ACEOF
36012 cat >>$CONFIG_STATUS <<\_ACEOF
36013 exec 5>>config.log
36014 {
36015   echo
36016   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36017 ## Running $as_me. ##
36018 _ASBOX
36019   echo "$ac_log"
36020 } >&5
36021
36022 _ACEOF
36023 cat >>$CONFIG_STATUS <<_ACEOF
36024 #
36025 # INIT-COMMANDS
36026 #
36027 llvm_src="${srcdir}"
36028
36029 _ACEOF
36030
36031 cat >>$CONFIG_STATUS <<\_ACEOF
36032
36033 # Handling of arguments.
36034 for ac_config_target in $ac_config_targets
36035 do
36036   case $ac_config_target in
36037     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
36038     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36039     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
36040     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
36041     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
36042     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36043     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36044     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
36045     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
36046     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36047     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36048     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36049     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36050     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36051     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36052     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36053     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36054     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
36055     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
36056     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36057     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36058     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
36059     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36060     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
36061
36062   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36063 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36064    { (exit 1); exit 1; }; };;
36065   esac
36066 done
36067
36068
36069 # If the user did not use the arguments to specify the items to instantiate,
36070 # then the envvar interface is used.  Set only those that are not.
36071 # We use the long form for the default assignment because of an extremely
36072 # bizarre bug on SunOS 4.1.3.
36073 if $ac_need_defaults; then
36074   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36075   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36076   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36077 fi
36078
36079 # Have a temporary directory for convenience.  Make it in the build tree
36080 # simply because there is no reason against having it here, and in addition,
36081 # creating and moving files from /tmp can sometimes cause problems.
36082 # Hook for its removal unless debugging.
36083 # Note that there is a small window in which the directory will not be cleaned:
36084 # after its creation but before its name has been assigned to `$tmp'.
36085 $debug ||
36086 {
36087   tmp=
36088   trap 'exit_status=$?
36089   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36090 ' 0
36091   trap '{ (exit 1); exit 1; }' 1 2 13 15
36092 }
36093 # Create a (secure) tmp directory for tmp files.
36094
36095 {
36096   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36097   test -n "$tmp" && test -d "$tmp"
36098 }  ||
36099 {
36100   tmp=./conf$$-$RANDOM
36101   (umask 077 && mkdir "$tmp")
36102 } ||
36103 {
36104    echo "$me: cannot create a temporary directory in ." >&2
36105    { (exit 1); exit 1; }
36106 }
36107
36108 #
36109 # Set up the sed scripts for CONFIG_FILES section.
36110 #
36111
36112 # No need to generate the scripts if there are no CONFIG_FILES.
36113 # This happens for instance when ./config.status config.h
36114 if test -n "$CONFIG_FILES"; then
36115
36116 _ACEOF
36117
36118
36119
36120 ac_delim='%!_!# '
36121 for ac_last_try in false false false false false :; do
36122   cat >conf$$subs.sed <<_ACEOF
36123 SHELL!$SHELL$ac_delim
36124 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36125 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36126 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36127 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36128 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36129 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36130 exec_prefix!$exec_prefix$ac_delim
36131 prefix!$prefix$ac_delim
36132 program_transform_name!$program_transform_name$ac_delim
36133 bindir!$bindir$ac_delim
36134 sbindir!$sbindir$ac_delim
36135 libexecdir!$libexecdir$ac_delim
36136 datarootdir!$datarootdir$ac_delim
36137 datadir!$datadir$ac_delim
36138 sysconfdir!$sysconfdir$ac_delim
36139 sharedstatedir!$sharedstatedir$ac_delim
36140 localstatedir!$localstatedir$ac_delim
36141 includedir!$includedir$ac_delim
36142 oldincludedir!$oldincludedir$ac_delim
36143 docdir!$docdir$ac_delim
36144 infodir!$infodir$ac_delim
36145 htmldir!$htmldir$ac_delim
36146 dvidir!$dvidir$ac_delim
36147 pdfdir!$pdfdir$ac_delim
36148 psdir!$psdir$ac_delim
36149 libdir!$libdir$ac_delim
36150 localedir!$localedir$ac_delim
36151 mandir!$mandir$ac_delim
36152 DEFS!$DEFS$ac_delim
36153 ECHO_C!$ECHO_C$ac_delim
36154 ECHO_N!$ECHO_N$ac_delim
36155 ECHO_T!$ECHO_T$ac_delim
36156 LIBS!$LIBS$ac_delim
36157 build_alias!$build_alias$ac_delim
36158 host_alias!$host_alias$ac_delim
36159 target_alias!$target_alias$ac_delim
36160 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36161 subdirs!$subdirs$ac_delim
36162 build!$build$ac_delim
36163 build_cpu!$build_cpu$ac_delim
36164 build_vendor!$build_vendor$ac_delim
36165 build_os!$build_os$ac_delim
36166 host!$host$ac_delim
36167 host_cpu!$host_cpu$ac_delim
36168 host_vendor!$host_vendor$ac_delim
36169 host_os!$host_os$ac_delim
36170 target!$target$ac_delim
36171 target_cpu!$target_cpu$ac_delim
36172 target_vendor!$target_vendor$ac_delim
36173 target_os!$target_os$ac_delim
36174 OS!$OS$ac_delim
36175 HOST_OS!$HOST_OS$ac_delim
36176 TARGET_OS!$TARGET_OS$ac_delim
36177 LINKALL!$LINKALL$ac_delim
36178 NOLINKALL!$NOLINKALL$ac_delim
36179 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36180 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36181 ARCH!$ARCH$ac_delim
36182 ENDIAN!$ENDIAN$ac_delim
36183 CC!$CC$ac_delim
36184 CFLAGS!$CFLAGS$ac_delim
36185 LDFLAGS!$LDFLAGS$ac_delim
36186 CPPFLAGS!$CPPFLAGS$ac_delim
36187 ac_ct_CC!$ac_ct_CC$ac_delim
36188 EXEEXT!$EXEEXT$ac_delim
36189 OBJEXT!$OBJEXT$ac_delim
36190 CPP!$CPP$ac_delim
36191 GREP!$GREP$ac_delim
36192 EGREP!$EGREP$ac_delim
36193 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36194 BUILD_CC!$BUILD_CC$ac_delim
36195 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36196 BUILD_CXX!$BUILD_CXX$ac_delim
36197 CVSBUILD!$CVSBUILD$ac_delim
36198 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36199 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36200 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36201 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36202 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36203 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36204 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36205 JIT!$JIT$ac_delim
36206 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36207 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36208 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36209 ENABLE_PIC!$ENABLE_PIC$ac_delim
36210 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36211 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36212 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36213 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36214 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36215 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36216 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36217 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36218 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36219 CXX!$CXX$ac_delim
36220 _ACEOF
36221
36222   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36223     break
36224   elif $ac_last_try; then
36225     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36226 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36227    { (exit 1); exit 1; }; }
36228   else
36229     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36230   fi
36231 done
36232
36233 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36234 if test -n "$ac_eof"; then
36235   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36236   ac_eof=`expr $ac_eof + 1`
36237 fi
36238
36239 cat >>$CONFIG_STATUS <<_ACEOF
36240 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36242 _ACEOF
36243 sed '
36244 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36245 s/^/s,@/; s/!/@,|#_!!_#|/
36246 :n
36247 t n
36248 s/'"$ac_delim"'$/,g/; t
36249 s/$/\\/; p
36250 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36251 ' >>$CONFIG_STATUS <conf$$subs.sed
36252 rm -f conf$$subs.sed
36253 cat >>$CONFIG_STATUS <<_ACEOF
36254 CEOF$ac_eof
36255 _ACEOF
36256
36257
36258 ac_delim='%!_!# '
36259 for ac_last_try in false false false false false :; do
36260   cat >conf$$subs.sed <<_ACEOF
36261 CXXFLAGS!$CXXFLAGS$ac_delim
36262 ac_ct_CXX!$ac_ct_CXX$ac_delim
36263 NM!$NM$ac_delim
36264 ifGNUmake!$ifGNUmake$ac_delim
36265 LN_S!$LN_S$ac_delim
36266 CMP!$CMP$ac_delim
36267 CP!$CP$ac_delim
36268 DATE!$DATE$ac_delim
36269 FIND!$FIND$ac_delim
36270 MKDIR!$MKDIR$ac_delim
36271 MV!$MV$ac_delim
36272 RANLIB!$RANLIB$ac_delim
36273 RM!$RM$ac_delim
36274 SED!$SED$ac_delim
36275 TAR!$TAR$ac_delim
36276 BINPWD!$BINPWD$ac_delim
36277 GRAPHVIZ!$GRAPHVIZ$ac_delim
36278 DOT!$DOT$ac_delim
36279 FDP!$FDP$ac_delim
36280 NEATO!$NEATO$ac_delim
36281 TWOPI!$TWOPI$ac_delim
36282 CIRCO!$CIRCO$ac_delim
36283 GV!$GV$ac_delim
36284 DOTTY!$DOTTY$ac_delim
36285 PERL!$PERL$ac_delim
36286 HAVE_PERL!$HAVE_PERL$ac_delim
36287 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36288 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36289 INSTALL_DATA!$INSTALL_DATA$ac_delim
36290 BZIP2!$BZIP2$ac_delim
36291 DOXYGEN!$DOXYGEN$ac_delim
36292 GROFF!$GROFF$ac_delim
36293 GZIP!$GZIP$ac_delim
36294 POD2HTML!$POD2HTML$ac_delim
36295 POD2MAN!$POD2MAN$ac_delim
36296 RUNTEST!$RUNTEST$ac_delim
36297 TCLSH!$TCLSH$ac_delim
36298 ZIP!$ZIP$ac_delim
36299 OCAMLC!$OCAMLC$ac_delim
36300 OCAMLOPT!$OCAMLOPT$ac_delim
36301 OCAMLDEP!$OCAMLDEP$ac_delim
36302 OCAMLDOC!$OCAMLDOC$ac_delim
36303 GAS!$GAS$ac_delim
36304 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36305 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36306 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36307 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36308 LIBADD_DL!$LIBADD_DL$ac_delim
36309 ECHO!$ECHO$ac_delim
36310 AR!$AR$ac_delim
36311 STRIP!$STRIP$ac_delim
36312 CXXCPP!$CXXCPP$ac_delim
36313 F77!$F77$ac_delim
36314 FFLAGS!$FFLAGS$ac_delim
36315 ac_ct_F77!$ac_ct_F77$ac_delim
36316 LIBTOOL!$LIBTOOL$ac_delim
36317 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36318 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36319 LLVMGCC!$LLVMGCC$ac_delim
36320 LLVMGXX!$LLVMGXX$ac_delim
36321 USE_UDIS86!$USE_UDIS86$ac_delim
36322 USE_OPROFILE!$USE_OPROFILE$ac_delim
36323 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36324 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36325 ALLOCA!$ALLOCA$ac_delim
36326 MMAP_FILE!$MMAP_FILE$ac_delim
36327 LLVMCC1!$LLVMCC1$ac_delim
36328 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36329 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36330 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36331 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36332 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36333 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36334 SHLIBEXT!$SHLIBEXT$ac_delim
36335 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36336 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36337 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36338 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36339 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36340 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36341 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36342 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36343 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36344 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36345 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36346 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36347 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36348 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36349 RPATH!$RPATH$ac_delim
36350 RDYNAMIC!$RDYNAMIC$ac_delim
36351 LIBOBJS!$LIBOBJS$ac_delim
36352 LTLIBOBJS!$LTLIBOBJS$ac_delim
36353 _ACEOF
36354
36355   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
36356     break
36357   elif $ac_last_try; then
36358     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36359 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36360    { (exit 1); exit 1; }; }
36361   else
36362     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36363   fi
36364 done
36365
36366 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36367 if test -n "$ac_eof"; then
36368   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36369   ac_eof=`expr $ac_eof + 1`
36370 fi
36371
36372 cat >>$CONFIG_STATUS <<_ACEOF
36373 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36375 _ACEOF
36376 sed '
36377 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36378 s/^/s,@/; s/!/@,|#_!!_#|/
36379 :n
36380 t n
36381 s/'"$ac_delim"'$/,g/; t
36382 s/$/\\/; p
36383 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36384 ' >>$CONFIG_STATUS <conf$$subs.sed
36385 rm -f conf$$subs.sed
36386 cat >>$CONFIG_STATUS <<_ACEOF
36387 :end
36388 s/|#_!!_#|//g
36389 CEOF$ac_eof
36390 _ACEOF
36391
36392
36393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36395 # trailing colons and then remove the whole line if VPATH becomes empty
36396 # (actually we leave an empty line to preserve line numbers).
36397 if test "x$srcdir" = x.; then
36398   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36399 s/:*\$(srcdir):*/:/
36400 s/:*\${srcdir}:*/:/
36401 s/:*@srcdir@:*/:/
36402 s/^\([^=]*=[     ]*\):*/\1/
36403 s/:*$//
36404 s/^[^=]*=[       ]*$//
36405 }'
36406 fi
36407
36408 cat >>$CONFIG_STATUS <<\_ACEOF
36409 fi # test -n "$CONFIG_FILES"
36410
36411
36412 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36413 do
36414   case $ac_tag in
36415   :[FHLC]) ac_mode=$ac_tag; continue;;
36416   esac
36417   case $ac_mode$ac_tag in
36418   :[FHL]*:*);;
36419   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36420 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36421    { (exit 1); exit 1; }; };;
36422   :[FH]-) ac_tag=-:-;;
36423   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36424   esac
36425   ac_save_IFS=$IFS
36426   IFS=:
36427   set x $ac_tag
36428   IFS=$ac_save_IFS
36429   shift
36430   ac_file=$1
36431   shift
36432
36433   case $ac_mode in
36434   :L) ac_source=$1;;
36435   :[FH])
36436     ac_file_inputs=
36437     for ac_f
36438     do
36439       case $ac_f in
36440       -) ac_f="$tmp/stdin";;
36441       *) # Look for the file first in the build tree, then in the source tree
36442          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36443          # because $ac_f cannot contain `:'.
36444          test -f "$ac_f" ||
36445            case $ac_f in
36446            [\\/$]*) false;;
36447            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36448            esac ||
36449            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36450 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36451    { (exit 1); exit 1; }; };;
36452       esac
36453       ac_file_inputs="$ac_file_inputs $ac_f"
36454     done
36455
36456     # Let's still pretend it is `configure' which instantiates (i.e., don't
36457     # use $as_me), people would be surprised to read:
36458     #    /* config.h.  Generated by config.status.  */
36459     configure_input="Generated from "`IFS=:
36460           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36461     if test x"$ac_file" != x-; then
36462       configure_input="$ac_file.  $configure_input"
36463       { echo "$as_me:$LINENO: creating $ac_file" >&5
36464 echo "$as_me: creating $ac_file" >&6;}
36465     fi
36466
36467     case $ac_tag in
36468     *:-:* | *:-) cat >"$tmp/stdin";;
36469     esac
36470     ;;
36471   esac
36472
36473   ac_dir=`$as_dirname -- "$ac_file" ||
36474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36475          X"$ac_file" : 'X\(//\)[^/]' \| \
36476          X"$ac_file" : 'X\(//\)$' \| \
36477          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36478 echo X"$ac_file" |
36479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36480             s//\1/
36481             q
36482           }
36483           /^X\(\/\/\)[^/].*/{
36484             s//\1/
36485             q
36486           }
36487           /^X\(\/\/\)$/{
36488             s//\1/
36489             q
36490           }
36491           /^X\(\/\).*/{
36492             s//\1/
36493             q
36494           }
36495           s/.*/./; q'`
36496   { as_dir="$ac_dir"
36497   case $as_dir in #(
36498   -*) as_dir=./$as_dir;;
36499   esac
36500   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36501     as_dirs=
36502     while :; do
36503       case $as_dir in #(
36504       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36505       *) as_qdir=$as_dir;;
36506       esac
36507       as_dirs="'$as_qdir' $as_dirs"
36508       as_dir=`$as_dirname -- "$as_dir" ||
36509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36510          X"$as_dir" : 'X\(//\)[^/]' \| \
36511          X"$as_dir" : 'X\(//\)$' \| \
36512          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36513 echo X"$as_dir" |
36514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36515             s//\1/
36516             q
36517           }
36518           /^X\(\/\/\)[^/].*/{
36519             s//\1/
36520             q
36521           }
36522           /^X\(\/\/\)$/{
36523             s//\1/
36524             q
36525           }
36526           /^X\(\/\).*/{
36527             s//\1/
36528             q
36529           }
36530           s/.*/./; q'`
36531       test -d "$as_dir" && break
36532     done
36533     test -z "$as_dirs" || eval "mkdir $as_dirs"
36534   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36535 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36536    { (exit 1); exit 1; }; }; }
36537   ac_builddir=.
36538
36539 case "$ac_dir" in
36540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36541 *)
36542   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36543   # A ".." for each directory in $ac_dir_suffix.
36544   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36545   case $ac_top_builddir_sub in
36546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36548   esac ;;
36549 esac
36550 ac_abs_top_builddir=$ac_pwd
36551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36552 # for backward compatibility:
36553 ac_top_builddir=$ac_top_build_prefix
36554
36555 case $srcdir in
36556   .)  # We are building in place.
36557     ac_srcdir=.
36558     ac_top_srcdir=$ac_top_builddir_sub
36559     ac_abs_top_srcdir=$ac_pwd ;;
36560   [\\/]* | ?:[\\/]* )  # Absolute name.
36561     ac_srcdir=$srcdir$ac_dir_suffix;
36562     ac_top_srcdir=$srcdir
36563     ac_abs_top_srcdir=$srcdir ;;
36564   *) # Relative name.
36565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36566     ac_top_srcdir=$ac_top_build_prefix$srcdir
36567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36568 esac
36569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36570
36571
36572   case $ac_mode in
36573   :F)
36574   #
36575   # CONFIG_FILE
36576   #
36577
36578   case $INSTALL in
36579   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36580   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36581   esac
36582 _ACEOF
36583
36584 cat >>$CONFIG_STATUS <<\_ACEOF
36585 # If the template does not know about datarootdir, expand it.
36586 # FIXME: This hack should be removed a few years after 2.60.
36587 ac_datarootdir_hack=; ac_datarootdir_seen=
36588
36589 case `sed -n '/datarootdir/ {
36590   p
36591   q
36592 }
36593 /@datadir@/p
36594 /@docdir@/p
36595 /@infodir@/p
36596 /@localedir@/p
36597 /@mandir@/p
36598 ' $ac_file_inputs` in
36599 *datarootdir*) ac_datarootdir_seen=yes;;
36600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36601   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36602 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36603 _ACEOF
36604 cat >>$CONFIG_STATUS <<_ACEOF
36605   ac_datarootdir_hack='
36606   s&@datadir@&$datadir&g
36607   s&@docdir@&$docdir&g
36608   s&@infodir@&$infodir&g
36609   s&@localedir@&$localedir&g
36610   s&@mandir@&$mandir&g
36611     s&\\\${datarootdir}&$datarootdir&g' ;;
36612 esac
36613 _ACEOF
36614
36615 # Neutralize VPATH when `$srcdir' = `.'.
36616 # Shell code in configure.ac might set extrasub.
36617 # FIXME: do we really want to maintain this feature?
36618 cat >>$CONFIG_STATUS <<_ACEOF
36619   sed "$ac_vpsub
36620 $extrasub
36621 _ACEOF
36622 cat >>$CONFIG_STATUS <<\_ACEOF
36623 :t
36624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36625 s&@configure_input@&$configure_input&;t t
36626 s&@top_builddir@&$ac_top_builddir_sub&;t t
36627 s&@srcdir@&$ac_srcdir&;t t
36628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36629 s&@top_srcdir@&$ac_top_srcdir&;t t
36630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36631 s&@builddir@&$ac_builddir&;t t
36632 s&@abs_builddir@&$ac_abs_builddir&;t t
36633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36634 s&@INSTALL@&$ac_INSTALL&;t t
36635 $ac_datarootdir_hack
36636 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36637
36638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36639   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36640   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36641   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36642 which seems to be undefined.  Please make sure it is defined." >&5
36643 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36644 which seems to be undefined.  Please make sure it is defined." >&2;}
36645
36646   rm -f "$tmp/stdin"
36647   case $ac_file in
36648   -) cat "$tmp/out"; rm -f "$tmp/out";;
36649   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36650   esac
36651  ;;
36652   :H)
36653   #
36654   # CONFIG_HEADER
36655   #
36656 _ACEOF
36657
36658 # Transform confdefs.h into a sed script `conftest.defines', that
36659 # substitutes the proper values into config.h.in to produce config.h.
36660 rm -f conftest.defines conftest.tail
36661 # First, append a space to every undef/define line, to ease matching.
36662 echo 's/$/ /' >conftest.defines
36663 # Then, protect against being on the right side of a sed subst, or in
36664 # an unquoted here document, in config.status.  If some macros were
36665 # called several times there might be several #defines for the same
36666 # symbol, which is useless.  But do not sort them, since the last
36667 # AC_DEFINE must be honored.
36668 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36669 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36670 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36671 # PARAMS is the parameter list in the macro definition--in most cases, it's
36672 # just an empty string.
36673 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36674 ac_dB='\\)[      (].*,\\1define\\2'
36675 ac_dC=' '
36676 ac_dD=' ,'
36677
36678 uniq confdefs.h |
36679   sed -n '
36680         t rset
36681         :rset
36682         s/^[     ]*#[    ]*define[       ][      ]*//
36683         t ok
36684         d
36685         :ok
36686         s/[\\&,]/\\&/g
36687         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36688         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36689   ' >>conftest.defines
36690
36691 # Remove the space that was appended to ease matching.
36692 # Then replace #undef with comments.  This is necessary, for
36693 # example, in the case of _POSIX_SOURCE, which is predefined and required
36694 # on some systems where configure will not decide to define it.
36695 # (The regexp can be short, since the line contains either #define or #undef.)
36696 echo 's/ $//
36697 s,^[     #]*u.*,/* & */,' >>conftest.defines
36698
36699 # Break up conftest.defines:
36700 ac_max_sed_lines=50
36701
36702 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36703 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36704 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36705 # et cetera.
36706 ac_in='$ac_file_inputs'
36707 ac_out='"$tmp/out1"'
36708 ac_nxt='"$tmp/out2"'
36709
36710 while :
36711 do
36712   # Write a here document:
36713     cat >>$CONFIG_STATUS <<_ACEOF
36714     # First, check the format of the line:
36715     cat >"\$tmp/defines.sed" <<\\CEOF
36716 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36717 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36718 b
36719 :def
36720 _ACEOF
36721   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36722   echo 'CEOF
36723     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36724   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36725   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36726   grep . conftest.tail >/dev/null || break
36727   rm -f conftest.defines
36728   mv conftest.tail conftest.defines
36729 done
36730 rm -f conftest.defines conftest.tail
36731
36732 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36733 cat >>$CONFIG_STATUS <<\_ACEOF
36734   if test x"$ac_file" != x-; then
36735     echo "/* $configure_input  */" >"$tmp/config.h"
36736     cat "$ac_result" >>"$tmp/config.h"
36737     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36738       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36739 echo "$as_me: $ac_file is unchanged" >&6;}
36740     else
36741       rm -f $ac_file
36742       mv "$tmp/config.h" $ac_file
36743     fi
36744   else
36745     echo "/* $configure_input  */"
36746     cat "$ac_result"
36747   fi
36748   rm -f "$tmp/out12"
36749  ;;
36750
36751   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36752 echo "$as_me: executing $ac_file commands" >&6;}
36753  ;;
36754   esac
36755
36756
36757   case $ac_file$ac_mode in
36758     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36759    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36760     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36761    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36762     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36763    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36764     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36765    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36766     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36767    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36768     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36769    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36770     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36771    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36772     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36773    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36774     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36775    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36776     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36777    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36778     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36779    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36780     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36781    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36782     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36783    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36784
36785   esac
36786 done # for ac_tag
36787
36788
36789 { (exit 0); exit 0; }
36790 _ACEOF
36791 chmod +x $CONFIG_STATUS
36792 ac_clean_files=$ac_clean_files_save
36793
36794
36795 # configure is writing to config.log, and then calls config.status.
36796 # config.status does its own redirection, appending to config.log.
36797 # Unfortunately, on DOS this fails, as config.log is still kept open
36798 # by configure, so config.status won't be able to write to it; its
36799 # output is simply discarded.  So we exec the FD to /dev/null,
36800 # effectively closing config.log, so it can be properly (re)opened and
36801 # appended to by config.status.  When coming back to configure, we
36802 # need to make the FD available again.
36803 if test "$no_create" != yes; then
36804   ac_cs_success=:
36805   ac_config_status_args=
36806   test "$silent" = yes &&
36807     ac_config_status_args="$ac_config_status_args --quiet"
36808   exec 5>/dev/null
36809   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36810   exec 5>>config.log
36811   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36812   # would make configure fail if this is the last instruction.
36813   $ac_cs_success || { (exit 1); exit 1; }
36814 fi
36815
36816 #
36817 # CONFIG_SUBDIRS section.
36818 #
36819 if test "$no_recursion" != yes; then
36820
36821   # Remove --cache-file and --srcdir arguments so they do not pile up.
36822   ac_sub_configure_args=
36823   ac_prev=
36824   eval "set x $ac_configure_args"
36825   shift
36826   for ac_arg
36827   do
36828     if test -n "$ac_prev"; then
36829       ac_prev=
36830       continue
36831     fi
36832     case $ac_arg in
36833     -cache-file | --cache-file | --cache-fil | --cache-fi \
36834     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36835       ac_prev=cache_file ;;
36836     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36837     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36838     | --c=*)
36839       ;;
36840     --config-cache | -C)
36841       ;;
36842     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36843       ac_prev=srcdir ;;
36844     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36845       ;;
36846     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36847       ac_prev=prefix ;;
36848     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36849       ;;
36850     *)
36851       case $ac_arg in
36852       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36853       esac
36854       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36855     esac
36856   done
36857
36858   # Always prepend --prefix to ensure using the same prefix
36859   # in subdir configurations.
36860   ac_arg="--prefix=$prefix"
36861   case $ac_arg in
36862   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36863   esac
36864   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36865
36866   ac_popdir=`pwd`
36867   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36868
36869     # Do not complain, so a configure script can configure whichever
36870     # parts of a large source tree are present.
36871     test -d "$srcdir/$ac_dir" || continue
36872
36873     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36874     echo "$as_me:$LINENO: $ac_msg" >&5
36875     echo "$ac_msg" >&6
36876     { as_dir="$ac_dir"
36877   case $as_dir in #(
36878   -*) as_dir=./$as_dir;;
36879   esac
36880   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36881     as_dirs=
36882     while :; do
36883       case $as_dir in #(
36884       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36885       *) as_qdir=$as_dir;;
36886       esac
36887       as_dirs="'$as_qdir' $as_dirs"
36888       as_dir=`$as_dirname -- "$as_dir" ||
36889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36890          X"$as_dir" : 'X\(//\)[^/]' \| \
36891          X"$as_dir" : 'X\(//\)$' \| \
36892          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36893 echo X"$as_dir" |
36894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36895             s//\1/
36896             q
36897           }
36898           /^X\(\/\/\)[^/].*/{
36899             s//\1/
36900             q
36901           }
36902           /^X\(\/\/\)$/{
36903             s//\1/
36904             q
36905           }
36906           /^X\(\/\).*/{
36907             s//\1/
36908             q
36909           }
36910           s/.*/./; q'`
36911       test -d "$as_dir" && break
36912     done
36913     test -z "$as_dirs" || eval "mkdir $as_dirs"
36914   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36915 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36916    { (exit 1); exit 1; }; }; }
36917     ac_builddir=.
36918
36919 case "$ac_dir" in
36920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36921 *)
36922   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36923   # A ".." for each directory in $ac_dir_suffix.
36924   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36925   case $ac_top_builddir_sub in
36926   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36927   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36928   esac ;;
36929 esac
36930 ac_abs_top_builddir=$ac_pwd
36931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36932 # for backward compatibility:
36933 ac_top_builddir=$ac_top_build_prefix
36934
36935 case $srcdir in
36936   .)  # We are building in place.
36937     ac_srcdir=.
36938     ac_top_srcdir=$ac_top_builddir_sub
36939     ac_abs_top_srcdir=$ac_pwd ;;
36940   [\\/]* | ?:[\\/]* )  # Absolute name.
36941     ac_srcdir=$srcdir$ac_dir_suffix;
36942     ac_top_srcdir=$srcdir
36943     ac_abs_top_srcdir=$srcdir ;;
36944   *) # Relative name.
36945     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36946     ac_top_srcdir=$ac_top_build_prefix$srcdir
36947     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36948 esac
36949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36950
36951
36952     cd "$ac_dir"
36953
36954     # Check for guested configure; otherwise get Cygnus style configure.
36955     if test -f "$ac_srcdir/configure.gnu"; then
36956       ac_sub_configure=$ac_srcdir/configure.gnu
36957     elif test -f "$ac_srcdir/configure"; then
36958       ac_sub_configure=$ac_srcdir/configure
36959     elif test -f "$ac_srcdir/configure.in"; then
36960       # This should be Cygnus configure.
36961       ac_sub_configure=$ac_aux_dir/configure
36962     else
36963       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36965       ac_sub_configure=
36966     fi
36967
36968     # The recursion is here.
36969     if test -n "$ac_sub_configure"; then
36970       # Make the cache file name correct relative to the subdirectory.
36971       case $cache_file in
36972       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36973       *) # Relative name.
36974         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36975       esac
36976
36977       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36978 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36979       # The eval makes quoting arguments work.
36980       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36981            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36982         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36983 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36984    { (exit 1); exit 1; }; }
36985     fi
36986
36987     cd "$ac_popdir"
36988   done
36989 fi
36990